@reltio/data-model 1.4.2001 → 1.4.2002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +4 -4
package/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["@mui/icons-material/Add","@mui/icons-material/ArrowDropDown","@mui/icons-material/Business","@mui/icons-material/Cancel","@mui/icons-material/Close","@mui/icons-material/DescriptionOutlined","@mui/icons-material/FormatListBulletedOutlined","@mui/icons-material/HighlightOff","@mui/icons-material/Info","@mui/icons-material/MultipleStop","@mui/icons-material/Remove","@mui/icons-material/Search","@mui/icons-material/TableChartOutlined","@mui/material","@mui/material/Avatar","@mui/material/Button","@mui/material/Checkbox","@mui/material/Chip","@mui/material/Collapse","@mui/material/Divider","@mui/material/FormControlLabel","@mui/material/Grid","@mui/material/IconButton","@mui/material/Input","@mui/material/InputAdornment","@mui/material/Menu","@mui/material/MenuItem","@mui/material/Paper","@mui/material/Popper","@mui/material/Portal","@mui/material/Select","@mui/material/Skeleton","@mui/material/Slider","@mui/material/Table","@mui/material/TableBody","@mui/material/TableCell","@mui/material/TableContainer","@mui/material/TableHead","@mui/material/TableRow","@mui/material/TextField","@mui/material/Toolbar","@mui/material/Tooltip","@mui/material/Typography","@mui/material/colors","@mui/material/styles","@mui/styles/StylesProvider","@mui/styles/createGenerateClassName","@mui/styles/withStyles","classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e["@mui/icons-material/Add"],e["@mui/icons-material/ArrowDropDown"],e["@mui/icons-material/Business"],e["@mui/icons-material/Cancel"],e["@mui/icons-material/Close"],e["@mui/icons-material/DescriptionOutlined"],e["@mui/icons-material/FormatListBulletedOutlined"],e["@mui/icons-material/HighlightOff"],e["@mui/icons-material/Info"],e["@mui/icons-material/MultipleStop"],e["@mui/icons-material/Remove"],e["@mui/icons-material/Search"],e["@mui/icons-material/TableChartOutlined"],e["@mui/material"],e["@mui/material/Avatar"],e["@mui/material/Button"],e["@mui/material/Checkbox"],e["@mui/material/Chip"],e["@mui/material/Collapse"],e["@mui/material/Divider"],e["@mui/material/FormControlLabel"],e["@mui/material/Grid"],e["@mui/material/IconButton"],e["@mui/material/Input"],e["@mui/material/InputAdornment"],e["@mui/material/Menu"],e["@mui/material/MenuItem"],e["@mui/material/Paper"],e["@mui/material/Popper"],e["@mui/material/Portal"],e["@mui/material/Select"],e["@mui/material/Skeleton"],e["@mui/material/Slider"],e["@mui/material/Table"],e["@mui/material/TableBody"],e["@mui/material/TableCell"],e["@mui/material/TableContainer"],e["@mui/material/TableHead"],e["@mui/material/TableRow"],e["@mui/material/TextField"],e["@mui/material/Toolbar"],e["@mui/material/Tooltip"],e["@mui/material/Typography"],e["@mui/material/colors"],e["@mui/material/styles"],e["@mui/styles/StylesProvider"],e["@mui/styles/createGenerateClassName"],e["@mui/styles/withStyles"],e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dom"],e["react-redux"],e["ui-i18n"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,x,E,_,O,S,C,k,L,P,T,R,A,M,D,z,j,N,I,F,B,G,U,H,W,q,V,$,Y,Z,X,K,Q,J,ee,te,ne,re){return(()=>{var ie={8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var i=0;i<n;i++)e[r+i]=t[i]}}},8994:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},2196:(e,t,n)=>{"use strict";var r=n(1600);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(7218));e.exports=t.default},7218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4812:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4596:(e,t,n)=>{"use strict";var r=n(1600);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,l,c,u,d,p,f,h,m=r(n(6892)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=u,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=f,t.animationDuration=p,t.animationName=d,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=u=i+"-transition-delay",t.transitionTiming=c=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=p=i+"-animation-duration",t.animationTiming=f=i+"-animation-delay",t.animationDelay=h=i+"-animation-timing-function"}var y={transform:g,end:o,property:s,timing:c,delay:u,duration:l};t.default=y},6892:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},6463:(e,t,n)=>{"use strict";var r=n(1600);t.__esModule=!0,t.default=void 0;var i,o=r(n(6892)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}}));var c=(new Date).getTime();(i=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var u=i;t.default=u,e.exports=t.default},2699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9869:e=>{e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},6061:(e,t)=>{t.assign=function(e){e=e||{};var t,n,r,i=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=i.length;t<r;t++)if(i[t])for(n in i[t])e[n]=i[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"==typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"==typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,i=e.size,o={},a=new Float32Array(10*r),s=new Float32Array(3*i);return n=0,e.forEachNode((function(e,t){o[e]=n,a[n]=t.x,a[n+1]=t.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1,a[n+7]=1,a[n+8]=t.size||1,a[n+9]=t.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,i,l,c,u,d){var p=o[i],f=o[l],h=t(e,r,i,l,c,u,d);a[p+6]+=h,a[f+6]+=h,s[n]=p,s[n+1]=f,s[n+2]=h,n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,i){return i.x=t[r],i.y=t[r+1],r+=10,n?n(e,i):i}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),i={},o=0,a=0,s=t.length;o<s;o+=10){if(n){var l=Object.assign({},e.getNodeAttributes(r[a]));l.x=t[o],l.y=t[o+1],l=n(r[a],l),i[r[a]]={x:l.x,y:l.y}}else i[r[a]]={x:t[o],y:t[o+1]};a++}return i},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),i=new Worker(r);return t.revokeObjectURL(r),i}},3660:(e,t,n)=>{var r=n(1880),i=n(4363).Q6,o=n(8725),a=n(6061),s=n(9869);function l(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof n&&(n={iterations:n});var l=n.iterations;if("number"!=typeof l)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(l<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var c=i("getEdgeWeight"in n?n.getEdgeWeight:"weight").fromEntry,u="function"==typeof n.outputReducer?n.outputReducer:null,d=a.assign({},s,n.settings),p=a.validateSettings(d);if(p)throw new Error("graphology-layout-forceatlas2: "+p.message);var f,h=a.graphToByteArrays(t,c);for(f=0;f<l;f++)o(d,h.nodes,h.edges);if(!e)return a.collectLayoutChanges(t,h.nodes);a.assignLayoutChanges(t,h.nodes,u)}var c=l.bind(null,!1);c.assign=l.bind(null,!0),c.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=c},8725:e=>{var t=10;e.exports=function(e,n,r){var i,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,x,E,_,O,S,C,k=n.length,L=r.length,P=e.adjustSizes,T=e.barnesHutTheta*e.barnesHutTheta,R=[];for(a=0;a<k;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<k;a+=t)h+=n[a+6];h/=k/t}if(e.barnesHutOptimize){var A,M,D,z=1/0,j=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=t)z=Math.min(z,n[a+0]),j=Math.max(j,n[a+0]),N=Math.min(N,n[a+1]),I=Math.max(I,n[a+1]);var F=j-z,B=I-N;for(F>B?I=(N-=(F-B)/2)+F:j=(z-=(B-F)/2)+B,R[0]=-1,R[1]=(z+j)/2,R[2]=(N+I)/2,R[3]=Math.max(j-z,I-N),R[4]=-1,R[5]=-1,R[6]=0,R[7]=0,R[8]=0,i=1,a=0;a<k;a+=t)for(o=0,D=3;;){if(!(R[o+5]>=0)){if(R[o+0]<0){R[o+0]=a;break}if(R[o+5]=9*i,d=R[o+3]/2,R[(p=R[o+5])+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=R[o+4],R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,i+=4,A=n[R[o+0]+0]<R[o+1]?n[R[o+0]+1]<R[o+2]?R[o+5]:R[o+5]+9:n[R[o+0]+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+6]=n[R[o+0]+6],R[o+7]=n[R[o+0]+0],R[o+8]=n[R[o+0]+1],R[A+0]=R[o+0],R[o+0]=-1,A===(M=n[a+0]<R[o+1]?n[a+1]<R[o+2]?R[o+5]:R[o+5]+9:n[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27)){if(D--){o=A;continue}D=3;break}R[M+0]=a;break}A=n[a+0]<R[o+1]?n[a+1]<R[o+2]?R[o+5]:R[o+5]+9:n[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+7]=(R[o+7]*R[o+6]+n[a+0]*n[a+6])/(R[o+6]+n[a+6]),R[o+8]=(R[o+8]*R[o+6]+n[a+1]*n[a+6])/(R[o+6]+n[a+6]),R[o+6]+=n[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=t)for(o=0;;)if(R[o+5]>=0){if(b=Math.pow(n[a+0]-R[o+7],2)+Math.pow(n[a+1]-R[o+8],2),4*(f=R[o+3])*f/b<T){if(g=n[a+0]-R[o+7],v=n[a+1]-R[o+8],!0===P?b>0?(w=m*n[a+6]*R[o+6]/b,n[a+2]+=g*w,n[a+3]+=v*w):b<0&&(w=-m*n[a+6]*R[o+6]/Math.sqrt(b),n[a+2]+=g*w,n[a+3]+=v*w):b>0&&(w=m*n[a+6]*R[o+6]/b,n[a+2]+=g*w,n[a+3]+=v*w),(o=R[o+4])<0)break;continue}o=R[o+5]}else if((c=R[o+0])>=0&&c!==a&&(b=(g=n[a+0]-n[c+0])*g+(v=n[a+1]-n[c+1])*v,!0===P?b>0?(w=m*n[a+6]*n[c+6]/b,n[a+2]+=g*w,n[a+3]+=v*w):b<0&&(w=-m*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=g*w,n[a+3]+=v*w):b>0&&(w=m*n[a+6]*n[c+6]/b,n[a+2]+=g*w,n[a+3]+=v*w)),(o=R[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=t)for(l=0;l<s;l+=t)g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8])>0?(w=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w):b<0&&(w=100*m*n[s+6]*n[l+6],n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w):(b=Math.sqrt(g*g+v*v))>0&&(w=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w);for(p=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=t)w=0,g=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=m*n[a+6]*p):b>0&&(w=m*n[a+6]*p/b),n[a+2]-=g*w,n[a+3]-=v*w;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-m*y/n[s+6]):b>0&&(w=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-m*y/n[s+6]):(b=1,w=-m*y)),b>0&&(n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w);if(!0===P)for(a=0;a<k;a+=t)1!==n[a+9]&&((x=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/x,n[a+3]=10*n[a+3]/x),E=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,O=.1*Math.log(1+_)/(1+Math.sqrt(E)),S=n[a+0]+n[a+2]*(O/e.slowDown),n[a+0]=S,C=n[a+1]+n[a+3]*(O/e.slowDown),n[a+1]=C);else for(a=0;a<k;a+=t)1!==n[a+9]&&(E=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,O=n[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),n[a+7]=Math.min(1,Math.sqrt(O*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(E)))),S=n[a+0]+n[a+2]*(O/e.slowDown),n[a+0]=S,C=n[a+1]+n[a+3]*(O/e.slowDown),n[a+1]=C);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var i,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,x,E,_,O,S,C,k=t.length,L=r.length,P=e.adjustSizes,T=e.barnesHutTheta*e.barnesHutTheta,R=[];for(a=0;a<k;a+=n)t[a+4]=t[a+2],t[a+5]=t[a+3],t[a+2]=0,t[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<k;a+=n)h+=t[a+6];h/=k/n}if(e.barnesHutOptimize){var A,M,D,z=1/0,j=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=n)z=Math.min(z,t[a+0]),j=Math.max(j,t[a+0]),N=Math.min(N,t[a+1]),I=Math.max(I,t[a+1]);var F=j-z,B=I-N;for(F>B?I=(N-=(F-B)/2)+F:j=(z-=(B-F)/2)+B,R[0]=-1,R[1]=(z+j)/2,R[2]=(N+I)/2,R[3]=Math.max(j-z,I-N),R[4]=-1,R[5]=-1,R[6]=0,R[7]=0,R[8]=0,i=1,a=0;a<k;a+=n)for(o=0,D=3;;){if(!(R[o+5]>=0)){if(R[o+0]<0){R[o+0]=a;break}if(R[o+5]=9*i,d=R[o+3]/2,R[(p=R[o+5])+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=R[o+4],R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,i+=4,A=t[R[o+0]+0]<R[o+1]?t[R[o+0]+1]<R[o+2]?R[o+5]:R[o+5]+9:t[R[o+0]+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+6]=t[R[o+0]+6],R[o+7]=t[R[o+0]+0],R[o+8]=t[R[o+0]+1],R[A+0]=R[o+0],R[o+0]=-1,A===(M=t[a+0]<R[o+1]?t[a+1]<R[o+2]?R[o+5]:R[o+5]+9:t[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27)){if(D--){o=A;continue}D=3;break}R[M+0]=a;break}A=t[a+0]<R[o+1]?t[a+1]<R[o+2]?R[o+5]:R[o+5]+9:t[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+7]=(R[o+7]*R[o+6]+t[a+0]*t[a+6])/(R[o+6]+t[a+6]),R[o+8]=(R[o+8]*R[o+6]+t[a+1]*t[a+6])/(R[o+6]+t[a+6]),R[o+6]+=t[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=n)for(o=0;;)if(R[o+5]>=0){if(b=Math.pow(t[a+0]-R[o+7],2)+Math.pow(t[a+1]-R[o+8],2),4*(f=R[o+3])*f/b<T){if(g=t[a+0]-R[o+7],v=t[a+1]-R[o+8],!0===P?b>0?(w=m*t[a+6]*R[o+6]/b,t[a+2]+=g*w,t[a+3]+=v*w):b<0&&(w=-m*t[a+6]*R[o+6]/Math.sqrt(b),t[a+2]+=g*w,t[a+3]+=v*w):b>0&&(w=m*t[a+6]*R[o+6]/b,t[a+2]+=g*w,t[a+3]+=v*w),(o=R[o+4])<0)break;continue}o=R[o+5]}else if((c=R[o+0])>=0&&c!==a&&(b=(g=t[a+0]-t[c+0])*g+(v=t[a+1]-t[c+1])*v,!0===P?b>0?(w=m*t[a+6]*t[c+6]/b,t[a+2]+=g*w,t[a+3]+=v*w):b<0&&(w=-m*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=g*w,t[a+3]+=v*w):b>0&&(w=m*t[a+6]*t[c+6]/b,t[a+2]+=g*w,t[a+3]+=v*w)),(o=R[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=n)for(l=0;l<s;l+=n)g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8])>0?(w=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w):b<0&&(w=100*m*t[s+6]*t[l+6],t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w):(b=Math.sqrt(g*g+v*v))>0&&(w=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w);for(p=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=n)w=0,g=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=m*t[a+6]*p):b>0&&(w=m*t[a+6]*p/b),t[a+2]-=g*w,t[a+3]-=v*w;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-m*y/t[s+6]):b>0&&(w=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-m*y/t[s+6]):(b=1,w=-m*y)),b>0&&(t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w);if(!0===P)for(a=0;a<k;a+=n)1!==t[a+9]&&((x=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/x,t[a+3]=10*t[a+3]/x),E=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,O=.1*Math.log(1+_)/(1+Math.sqrt(E)),S=t[a+0]+t[a+2]*(O/e.slowDown),t[a+0]=S,C=t[a+1]+t[a+3]*(O/e.slowDown),t[a+1]=C);else for(a=0;a<k;a+=n)1!==t[a+9]&&(E=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,O=t[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),t[a+7]=Math.min(1,Math.sqrt(O*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(E)))),S=t[a+0]+t[a+2]*(O/e.slowDown),t[a+0]=S,C=t[a+1]+t[a+3]*(O/e.slowDown),t[a+1]=C);return{}};var i=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),i(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),i=n(1880),o=n(4363).Q6,a=n(6061),s=n(9869);function l(e,t){if(t=t||{},!i(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=o("getEdgeWeight"in t?t.getEdgeWeight:"weight").fromEntry,r=a.assign({},s,t.settings),l=a.validateSettings(r);if(l)throw new Error("graphology-layout-forceatlas2/worker: "+l.message);this.worker=null,this.graph=e,this.settings=r,this.getEdgeWeight=n,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var c=void 0,u=this;this.handleGraphUpdate=function(){u.worker&&u.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,u.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}l.prototype.isRunning=function(){return this.running},l.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=a.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},l.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);a.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&a.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},l.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},l.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=a.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0)),this},l.prototype.stop=function(){return this.running=!1,this},l.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=l},8833:(e,t,n)=>{var r=n(6586),i=n(1880),o={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!i(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,o)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,l=n.scale,c=2*Math.PI,u=(s-.5)*l,d=t.order,p=a[0],f=a[1];function h(e,t){return t[p]=l*Math.cos(e*c/d)+u,t[f]=l*Math.sin(e*c/d)+u,t}var m=0;if(!e){var g={};return t.forEachNode((function(e){g[e]=h(m++,{})})),g}t.updateEachNodeAttributes((function(e,t){return h(m++,t),t}),{attributes:a})}var s=a.bind(null,!1);s.assign=a.bind(null,!0),e.exports=s},6586:e=>{e.exports=function e(t,n){t=t||{};var r,i={};for(var o in n){var a=t[o],s=n[o];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?i[o]=void 0===a?s:a:i[o]=e(a,s)}return i}},4363:(e,t)=>{function n(e){return"number"!=typeof e||isNaN(e)?1:e}t.Q6=function(e){return function(e,t){var n={},r=function(e){return void 0===e?t:e};"function"==typeof t&&(r=t);var i=function(t){return r(t[e])},o=function(){return r(void 0)};return"string"==typeof e?(n.fromAttributes=i,n.fromGraph=function(e,t){return i(e.getEdgeAttributes(t))},n.fromEntry=function(e,t){return i(t)},n.fromPartialEntry=n.fromEntry,n.fromMinimalEntry=n.fromEntry):"function"==typeof e?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},n.fromGraph=function(t,n){var i=t.extremities(n);return r(e(n,t.getEdgeAttributes(n),i[0],i[1],t.getNodeAttributes(i[0]),t.getNodeAttributes(i[1]),t.isUndirected(n)))},n.fromEntry=function(t,n,i,o,a,s,l){return r(e(t,n,i,o,a,s,l))},n.fromPartialEntry=function(t,n,i,o){return r(e(t,n,i,o))},n.fromMinimalEntry=function(t,n){return r(e(t,n))}):(n.fromAttributes=o,n.fromGraph=o,n.fromEntry=o,n.fromMinimalEntry=o),n}(e,n)}},1880:e=>{e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},8996:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t,n){return o=i()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return o(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function c(e,t,n,r){var i=e._nodes.get(t),o=null;return i?o="mixed"===r?i.out&&i.out[n]||i.undirected&&i.undirected[n]:"directed"===r?i.out&&i.out[n]:i.undirected&&i.undirected[n]:o}function u(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function d(e){var t;for(t in e)return!1;return!0}function p(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function f(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function h(e){return!(!u(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(l=Object.assign);var m,g={exports:{}},v="object"==typeof Reflect?Reflect:null,y=v&&"function"==typeof v.apply?v.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};m=v&&"function"==typeof v.ownKeys?v.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var b=Number.isNaN||function(e){return e!=e};function w(){w.init.call(this)}g.exports=w,g.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}T(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&T(e,"error",t,{once:!0})}(e,i)}))},w.EventEmitter=w,w.prototype._events=void 0,w.prototype._eventsCount=0,w.prototype._maxListeners=void 0;var x=10;function E(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _(e){return void 0===e._maxListeners?w.defaultMaxListeners:e._maxListeners}function O(e,t,n,r){var i,o,a,s;if(E(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=_(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function S(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=S.bind(r);return i.listener=n,r.wrapFn=i,i}function k(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):P(i,i.length)}function L(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function P(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function T(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}function R(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(w,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||b(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),w.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},w.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||b(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},w.prototype.getMaxListeners=function(){return _(this)},w.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)y(s,this,t);else{var l=s.length,c=P(s,l);for(n=0;n<l;++n)y(c[n],this,t)}return!0},w.prototype.addListener=function(e,t){return O(this,e,t,!1)},w.prototype.on=w.prototype.addListener,w.prototype.prependListener=function(e,t){return O(this,e,t,!0)},w.prototype.once=function(e,t){return E(t),this.on(e,C(this,e,t)),this},w.prototype.prependOnceListener=function(e,t){return E(t),this.prependListener(e,C(this,e,t)),this},w.prototype.removeListener=function(e,t){var n,r,i,o,a;if(E(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},w.prototype.off=w.prototype.removeListener,w.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},w.prototype.listeners=function(e){return k(this,e,!0)},w.prototype.rawListeners=function(e){return k(this,e,!1)},w.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):L.call(e,t)},w.prototype.listenerCount=L,w.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]},"undefined"!=typeof Symbol&&(R.prototype[Symbol.iterator]=function(){return this}),R.of=function(){var e=arguments,t=e.length,n=0;return new R((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},R.empty=function(){return new R((function(){return{done:!0}}))},R.fromSequence=function(e){var t=0,n=e.length;return new R((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},R.is=function(e){return e instanceof R||"object"==typeof e&&null!==e&&"function"==typeof e.next};var A=R,M={};M.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,M.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var D=A,z=M,j=z.ARRAY_BUFFER_SUPPORT,N=z.SYMBOL_SUPPORT,I=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||j&&ArrayBuffer.isView(e)?D.fromSequence(e):"object"!=typeof e||null===e?null:N&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},F=I,B=function(e,t){for(var n,r=arguments.length>1?t:1/0,i=r!==1/0?new Array(r):[],o=0,a=F(e);;){if(o===r)return i;if((n=a.next()).done)return o!==t&&(i.length=o),i;i[o++]=n.value}},G=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),U=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(G),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(G),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(G);function q(e,t){this.key=e,this.attributes=t,this.clear()}function V(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,i,o,a){var s,l,c,u;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=i,u=o}else if(3===n){if(i=""+i,!(l=e._edges.get(i)))throw new H("Graph.".concat(t,': could not find the "').concat(i,'" edge in the graph.'));var d=l.source.key,p=l.target.key;if(r===d)s=l.target;else{if(r!==p)throw new H("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(i,'" edge (').concat(d,", ").concat(p,")."));s=l.source}c=o,u=a}else{if(!(l=e._edges.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?l.source:l.target,c=i,u=o}return[s,c,u]}q.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}},V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}},$.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}},Y.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},Y.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var i=this.source[e],o=i[r];if(void 0===o)return i[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));o.previous=this,this.next=o,i[r]=this,this.target[t][n]=this},Y.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},Y.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];return a.attributes[s]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return Z(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];return a.attributes.hasOwnProperty(s)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];return s.attributes[l]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];if("function"!=typeof c)throw new U("Graph.".concat(t,": updater should be a function."));var u=s.attributes,d=c(u[l]);return u[l]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if(!u(s))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if(!u(s))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return l(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if("function"!=typeof s)throw new U("Graph.".concat(t,": provided updater is not a function."));return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],K=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,o=""+arguments[1];if(!(r=c(this,i,o,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(o,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],i=arguments[3],!(o=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],i=arguments[3],!(o=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof i)throw new U("Graph.".concat(t,": updater should be a function."));return o.attributes[r]=i(o.attributes[r]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete i.attributes[r],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!u(r))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return i.attributes=r,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!u(r))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return l(i.attributes,r),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new U("Graph.".concat(t,": provided updater is not a function."));return i.attributes=r(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}}],Q=A,J=I,ee=function(){var e=arguments,t=null,n=-1;return new Q((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=J(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},te=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function ne(e,t,n,r){var i=!1;for(var o in t)if(o!==r){var a=t[o];if(i=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&i)return a.key}}function re(e,t,n,r){var i,o,a,s=!1;for(var l in t)if(l!==r){i=t[l];do{if(o=i.source,a=i.target,s=n(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected),e&&s)return i.key;i=i.next}while(void 0!==i)}}function ie(e,t){var n,r=Object.keys(e),i=r.length,o=0;return new A((function(){do{if(n)n=n.next;else{if(o>=i)return{done:!0};var a=r[o++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function oe(e,t,n,r){var i=t[n];if(i){var o=i.source,a=i.target;return r(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected)&&e?i.key:void 0}}function ae(e,t,n,r){var i=t[n];if(i){var o=!1;do{if(o=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&o)return i.key;i=i.next}while(void 0!==i)}}function se(e,t){var n=e[t];return void 0!==n.next?new A((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):A.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function le(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):B(e._edges.keys(),e._edges.size);for(var n,r,i="undirected"===t?e.undirectedSize:e.directedSize,o=new Array(i),a="undirected"===t,s=e._edges.values(),l=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(o[l++]=r.key);return o}function ce(e,t,n,r){if(0!==t.size)for(var i,o,a="mixed"!==n&&n!==t.type,s="undirected"===n,l=!1,c=t._edges.values();!0!==(i=c.next()).done;)if(o=i.value,!a||o.undirected===s){var u=o,d=u.key,p=u.attributes,f=u.source,h=u.target;if(l=r(d,p,f.key,h.key,f.attributes,h.attributes,o.undirected),e&&l)return d}}function ue(e,t){if(0===e.size)return A.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,i=e._edges.values();return new A((function(){for(var e,t;;){if((e=i.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function de(e,t,n,r,i,o){var a,s=t?re:ne;if("undirected"!==n){if("out"!==r&&(a=s(e,i.in,o),e&&a))return a;if("in"!==r&&(a=s(e,i.out,o,r?void 0:i.key),e&&a))return a}if("directed"!==n&&(a=s(e,i.undirected,o),e&&a))return a}function pe(e,t,n,r){var i=[];return de(!1,e,t,n,r,(function(e){i.push(e)})),i}function fe(e,t,n){var r=A.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=ee(r,ie(n.in))),"in"!==t&&void 0!==n.out&&(r=ee(r,ie(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=ee(r,ie(n.undirected))),r}function he(e,t,n,r,i,o,a){var s,l=n?ae:oe;if("undirected"!==t){if(void 0!==i.in&&"out"!==r&&(s=l(e,i.in,o,a),e&&s))return s;if(void 0!==i.out&&"in"!==r&&(r||i.key!==o)&&(s=l(e,i.out,o,a),e&&s))return s}if("directed"!==t&&void 0!==i.undirected&&(s=l(e,i.undirected,o,a),e&&s))return s}function me(e,t,n,r,i){var o=[];return he(!1,e,t,n,r,i,(function(e){o.push(e)})),o}function ge(e,t,n,r){var i=A.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(i=ee(i,se(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(i=ee(i,se(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(i=ee(i,se(n.undirected,r))),i}var ve=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function ye(){this.A=null,this.B=null}function be(e,t,n,r,i){for(var o in r){var a=r[o],s=a.source,l=a.target,c=s===n?l:s;if(!t||!t.has(c.key)){var u=i(c.key,c.attributes);if(e&&u)return c.key}}}function we(e,t,n,r,i){if("mixed"!==t){if("undirected"===t)return be(e,null,r,r.undirected,i);if("string"==typeof n)return be(e,null,r,r[n],i)}var o,a=new ye;if("undirected"!==t){if("out"!==n){if(o=be(e,null,r,r.in,i),e&&o)return o;a.wrap(r.in)}if("in"!==n){if(o=be(e,a,r,r.out,i),e&&o)return o;a.wrap(r.out)}}if("directed"!==t&&(o=be(e,a,r,r.undirected,i),e&&o))return o}function xe(e,t,n){var r=Object.keys(n),i=r.length,o=0;return new A((function(){var a=null;do{if(o>=i)return e&&e.wrap(n),{done:!0};var s=n[r[o++]],l=s.source,c=s.target;a=l===t?c:l,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function Ee(e,t,n,r,i){for(var o,a,s,l,c,u,d,p=r._nodes.values(),f=r.type;!0!==(o=p.next()).done;){var h=!1;if(a=o.value,"undirected"!==f)for(s in l=a.out){c=l[s];do{if(u=c.target,h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==f)for(s in l=a.undirected)if(!(t&&a.key>s)){c=l[s];do{if((u=c.target).key!==s&&(u=c.source),h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!h&&(d=i(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function _e(e){if(!u(e))throw new U('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new U("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!u(e.attributes)||null===e.attributes))throw new U("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Oe(e){if(!u(e))throw new U('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new U("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new U("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!u(e.attributes)||null===e.attributes))throw new U("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new U("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}ye.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},ye.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var Se,Ce=(Se=255&Math.floor(256*Math.random()),function(){return Se++}),ke=new Set(["directed","undirected","mixed"]),Le=new Set(["domain","_events","_eventsCount","_maxListeners"]),Pe={allowSelfLoops:!0,multi:!1,type:"mixed"};function Te(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function Re(e,t,n,r,i,o,a,s){if(!r&&"undirected"===e.type)throw new W("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new W("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!u(s))throw new U("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(o=""+o,a=""+a,s=s||{},!e.allowSelfLoops&&o===a)throw new W("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var l=e._nodes.get(o),c=e._nodes.get(a);if(!l)throw new H("Graph.".concat(t,': source node "').concat(o,'" not found.'));if(!c)throw new H("Graph.".concat(t,': target node "').concat(a,'" not found.'));var d={key:null,undirected:r,source:o,target:a,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new W("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==l.undirected[a]:void 0!==l.out[a]))throw new W("Graph.".concat(t,': an edge linking "').concat(o,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var p=new Y(r,i,l,c,s);e._edges.set(i,p);var f=o===a;return r?(l.undirectedDegree++,c.undirectedDegree++,f&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,c.inDegree++,f&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,d.key=i,e.emit("edgeAdded",d),i}function Ae(e,t,n,r,i,o,a,s,c){if(!r&&"undirected"===e.type)throw new W("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new W("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(s)if(c){if("function"!=typeof s)throw new U("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(s,'"'))}else if(!u(s))throw new U("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));var d;if(o=""+o,a=""+a,c&&(d=s,s=void 0),!e.allowSelfLoops&&o===a)throw new W("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var p,f,h=e._nodes.get(o),m=e._nodes.get(a);if(!n&&(p=e._edges.get(i))){if(!(p.source.key===o&&p.target.key===a||r&&p.source.key===a&&p.target.key===o))throw new W("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(i,'" edge with "').concat(o,'" source & "').concat(a,'" target vs. ("').concat(p.source.key,'", "').concat(p.target.key,'").'));f=p}if(f||e.multi||!h||(f=r?h.undirected[a]:h.out[a]),f){var g=[f.key,!1,!1,!1];if(c?!d:!s)return g;if(c){var v=f.attributes;f.attributes=d(v),e.emit("edgeAttributesUpdated",{type:"replace",key:f.key,attributes:f.attributes})}else l(f.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:f.key,attributes:f.attributes,data:s});return g}s=s||{},c&&d&&(s=d(s));var y={key:null,undirected:r,source:o,target:a,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new W("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));var b=!1,w=!1;h||(h=Te(e,o,{}),b=!0,o===a&&(m=h,w=!0)),m||(m=Te(e,a,{}),w=!0),p=new Y(r,i,h,m,s),e._edges.set(i,p);var x=o===a;return r?(h.undirectedDegree++,m.undirectedDegree++,x&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,m.inDegree++,x&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,b,w]}function Me(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,i=t.attributes,o=t.undirected,a=n===r;o?(n.undirectedDegree--,r.undirectedDegree--,a&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,a&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),o?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:o})}var De=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=l({},Pe,e)).multi)throw new U("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!ke.has(e.type))throw new U('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new U("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?q:"directed"===e.type?V:$;p(s(t),"NodeDataClass",r);var i="geid_"+Ce()+"_",o=0;return p(s(t),"_attributes",{}),p(s(t),"_nodes",new Map),p(s(t),"_edges",new Map),p(s(t),"_directedSize",0),p(s(t),"_undirectedSize",0),p(s(t),"_directedSelfLoopCount",0),p(s(t),"_undirectedSelfLoopCount",0),p(s(t),"_edgeKeyGenerator",(function(){var e;do{e=i+o++}while(t._edges.has(e));return e})),p(s(t),"_options",e),Le.forEach((function(e){return p(s(t),e,t[e])})),f(s(t),"order",(function(){return t._nodes.size})),f(s(t),"size",(function(){return t._edges.size})),f(s(t),"directedSize",(function(){return t._directedSize})),f(s(t),"undirectedSize",(function(){return t._undirectedSize})),f(s(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),f(s(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),f(s(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),f(s(t),"multi",t._options.multi),f(s(t),"type",t._options.type),f(s(t),"allowSelfLoops",t._options.allowSelfLoops),f(s(t),"implementation",(function(){return"graphology"})),t}t(r,n);var i=r.prototype;return i._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},i.hasNode=function(e){return this._nodes.has(""+e)},i.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var i=this._nodes.get(e);return!!i&&i.out.hasOwnProperty(t)}throw new U("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var i=this._nodes.get(e);return!!i&&i.undirected.hasOwnProperty(t)}throw new U("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);return!!r&&(void 0!==r.out&&r.out.hasOwnProperty(t)||void 0!==r.undirected&&r.undirected.hasOwnProperty(t))}throw new U("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new W("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},i.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new W("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},i.edge=function(e,t){if(this.multi)throw new W("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},i.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},i.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},i.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},i.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},i.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},i.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},i.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},i.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},i.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},i.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},i.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},i.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},i.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},i.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},i.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree-t.directedLoops},i.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree-t.directedLoops},i.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree-2*t.directedLoops},i.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree-2*t.undirectedLoops},i.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree,r+=t.directedLoops),n-r},i.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.outDegree,r+=t.directedLoops),n-r},i.degreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree,r+=2*t.directedLoops),n-r},i.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},i.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},i.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},i.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new H('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,i=n.target.key;if(e===r)return i;if(e===i)return r;throw new H('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(i,")."))},i.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new H('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},i.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},i.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},i.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},i.addNode=function(e,t){var n=function(e,t,n){if(n&&!u(n))throw new U('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new W('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},i.mergeNode=function(e,t){if(t&&!u(t))throw new U('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(l(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},i.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new U('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var i=t?t({}):{};return n=new this.NodeDataClass(e,i),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:i}),[e,!0]},i.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Me(this,t),t=t.next}while(t)}for(var i in n.in){t=n.in[i];do{Me(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var o in n.undirected){t=n.undirected[o];do{Me(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},i.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=c(this,n,r,this.type)))throw new H('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new H('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Me(this,t),this},i.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new W("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new W("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e=""+e,t=""+t,"directed");if(!n)throw new H('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Me(this,n),this},i.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new W("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new W("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e,t,"undirected");if(!n)throw new H('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Me(this,n),this},i.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},i.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},i.getAttribute=function(e){return this._attributes[e]},i.getAttributes=function(){return this._attributes},i.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},i.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.updateAttribute=function(e,t){if("function"!=typeof t)throw new U("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},i.replaceAttributes=function(e){if(!u(e))throw new U("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},i.mergeAttributes=function(e){if(!u(e))throw new U("Graph.mergeAttributes: provided attributes are not a plain object.");return l(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},i.updateAttributes=function(e){if("function"!=typeof e)throw new U("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},i.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new U("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!h(t))throw new U("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i=this._nodes.values();!0!==(n=i.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},i.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new U("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!h(t))throw new U("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i,o,a=this._edges.values();!0!==(n=a.next()).done;)i=(r=n.value).source,o=r.target,r.attributes=e(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},i.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new U("Graph.forEachAdjacencyEntry: expecting a callback.");Ee(!1,!1,!1,this,e)},i.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new U("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Ee(!1,!1,!0,this,e)},i.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new U("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Ee(!1,!0,!1,this,e)},i.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new U("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Ee(!1,!0,!0,this,e)},i.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):B(this._nodes.keys(),this._nodes.size)},i.forEachNode=function(e){if("function"!=typeof e)throw new U("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},i.findNode=function(e){if("function"!=typeof e)throw new U("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},i.mapNodes=function(e){if("function"!=typeof e)throw new U("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),i=new Array(this.order),o=0;!0!==(t=r.next()).done;)n=t.value,i[o++]=e(n.key,n.attributes);return i},i.someNode=function(e){if("function"!=typeof e)throw new U("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},i.everyNode=function(e){if("function"!=typeof e)throw new U("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},i.filterNodes=function(e){if("function"!=typeof e)throw new U("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),i=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&i.push(n.key);return i},i.reduceNodes=function(e,t){if("function"!=typeof e)throw new U("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new U("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,i=t,o=this._nodes.values();!0!==(n=o.next()).done;)i=e(i,(r=n.value).key,r.attributes);return i},i.nodeEntries=function(){var e=this._nodes.values();return new A((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},i.export=function(){var e=this,t=new Array(this._nodes.size),n=0;this._nodes.forEach((function(e,r){t[n++]=function(e,t){var n={key:e};return d(t.attributes)||(n.attributes=l({},t.attributes)),n}(r,e)}));var r=new Array(this._edges.size);return n=0,this._edges.forEach((function(t,i){r[n++]=function(e,t,n){var r={key:t,source:n.source.key,target:n.target.key};return d(n.attributes)||(r.attributes=l({},n.attributes)),"mixed"===e&&n.undirected&&(r.undirected=!0),r}(e.type,i,t)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}},i.import=function(e){var t,n,i,o,a,s=this,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof r)return e.forEachNode((function(e,t){l?s.mergeNode(e,t):s.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,i,o,a){l?a?s.mergeUndirectedEdgeWithKey(e,n,r,t):s.mergeDirectedEdgeWithKey(e,n,r,t):a?s.addUndirectedEdgeWithKey(e,n,r,t):s.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!u(e))throw new U("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!u(e.attributes))throw new U("Graph.import: invalid attributes. Expecting a plain object.");l?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(i=e.nodes,!Array.isArray(i))throw new U("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=i.length;t<n;t++){_e(o=i[t]);var c=o,d=c.key,p=c.attributes;l?this.mergeNode(d,p):this.addNode(d,p)}}if(e.edges){var f=!1;if("undirected"===this.type&&(f=!0),i=e.edges,!Array.isArray(i))throw new U("Graph.import: invalid edges. Expecting an array.");for(t=0,n=i.length;t<n;t++){Oe(a=i[t]);var h=a,m=h.source,g=h.target,v=h.attributes,y=h.undirected,b=void 0===y?f:y;"key"in a?(l?b?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:b?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,a.key,m,g,v):(l?b?this.mergeUndirectedEdge:this.mergeDirectedEdge:b?this.addUndirectedEdge:this.addDirectedEdge).call(this,m,g,v)}}return this},i.nullCopy=function(e){var t=new r(l({},this._options,e));return t.replaceAttributes(l({},this.getAttributes())),t},i.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=l({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},i.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new W('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new W("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new W("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),i=this._edges.values();!0!==(t=i.next()).done;)Re(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,l({},n.attributes));return r},i.toJSON=function(){return this.export()},i.toString=function(){return"[object Graph]"},i.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},i={};this._edges.forEach((function(e,n){var o,a=e.undirected?"--":"->",s="",l=e.source.key,c=e.target.key;e.undirected&&l>c&&(o=l,l=c,c=o);var u="(".concat(l,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===i[u]?i[u]=0:i[u]++,s+="".concat(i[u],". ")):s+="[".concat(n,"]: "),r[s+=u]=e.attributes}));var o={};for(var a in this)this.hasOwnProperty(a)&&!Le.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(o[a]=this[a]);return o.attributes=this._attributes,o.nodes=n,o.edges=r,p(o,"constructor",this.constructor),o},r}(g.exports.EventEmitter);"undefined"!=typeof Symbol&&(De.prototype[Symbol.for("nodejs.util.inspect.custom")]=De.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?Re:Ae;e.generateKey?De.prototype[n]=function(i,o,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,i,o,a,"update"===t)}:De.prototype[n]=function(i,o,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),i,o,a,s,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(De),function(e){K.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(De),function(e){te.forEach((function(t){!function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return le(this,r);if(1===arguments.length){e=""+e;var o=this._nodes.get(e);if(void 0===o)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return pe(this.multi,"mixed"===r?this.type:r,i,o)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return me(r,this.multi,i,a,t)}throw new U("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return ce(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return de(!1,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return he(!1,r,this.multi,i,s,t,n)}throw new U("Graph.".concat(o,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var i=0;"directed"!==r&&(i+=this.undirectedSize),"undirected"!==r&&(i+=this.directedSize),e=new Array(i);var a=0;t.push((function(t,r,i,o,s,l,c){e[a++]=n(t,r,i,o,s,l,c)}))}else e=[],t.push((function(t,r,i,o,a,s,l){e.push(n(t,r,i,o,a,s,l))}));return this[o].apply(this,t),e};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,i,o,a,s,l){t(e,r,i,o,a,s,l)&&n.push(e)})),this[o].apply(this,e),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new U("Graph.".concat(l,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new U("Graph.".concat(l,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,i,o,a,s,l){r=e(r,t,n,i,o,a,s,l)})),this[o].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return ce(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return de(!0,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return he(!0,r,this.multi,i,s,t,n)}throw new U("Graph.".concat(o,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,i,o,a,s){return t(e,n,r,i,o,a,s)})),!!this[o].apply(this,e)};var s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,i,o,a,s){return!t(e,n,r,i,o,a,s)})),!this[o].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return A.empty();if(!arguments.length)return ue(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return fe(r,i,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return ge(r,i,a,t)}throw new U("Graph.".concat(o,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(De),function(e){ve.forEach((function(t){(function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return we(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,i,t)}})(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));we(!1,"mixed"===r?this.type:r,i,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[o](e,(function(e,r){n.push(t(e,r))})),n};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){var n=[];return this[o](e,(function(e,r){t(e,r)&&n.push(e)})),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(e,t,n){if(arguments.length<3)throw new U("Graph.".concat(l,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[o](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n[0].toUpperCase()+n.slice(1,-1),a="find"+o;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return we(!0,"mixed"===r?this.type:r,i,n,t)}};var s="some"+o;e.prototype[s]=function(e,t){return!!this[a](e,t)};var l="every"+o;e.prototype[l]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return A.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return xe(null,n,n.undirected);if("string"==typeof t)return xe(null,n,n[t])}var r=A.empty(),i=new ye;return"undirected"!==e&&("out"!==t&&(r=ee(r,xe(i,n,n.in))),"in"!==t&&(r=ee(r,xe(i,n,n.out)))),"directed"!==e&&(r=ee(r,xe(i,n,n.undirected))),r}("mixed"===r?this.type:r,i,t)}}(e,t)}))}(De);var ze=function(e){function n(t){var n=l({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new U("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new U('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De),je=function(e){function n(t){var n=l({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new U("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new U('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De),Ne=function(e){function n(t){var n=l({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new U("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(De),Ie=function(e){function n(t){var n=l({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new U("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new U('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De),Fe=function(e){function n(t){var n=l({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new U("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new U('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De);function Be(e){e.from=function(t,n){var r=l({},t.options,n),i=new e(r);return i.import(t),i}}return Be(De),Be(ze),Be(je),Be(Ne),Be(Ie),Be(Fe),De.Graph=De,De.DirectedGraph=ze,De.UndirectedGraph=je,De.MultiGraph=Ne,De.MultiDirectedGraph=Ie,De.MultiUndirectedGraph=Fe,De.InvalidArgumentsGraphError=U,De.NotFoundGraphError=H,De.UsageGraphError=W,De}()},9612:(e,t,n)=>{var r=n(2118),i=n(6909),o=n(8138),a=n(4174),s=n(7942);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},235:(e,t,n)=>{var r=n(3945),i=n(1846),o=n(8028),a=n(2344),s=n(4769);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),i=n(6417),o=n(6928),a=n(9493),s=n(4150);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3324:(e,t,n)=>{var r=n(7297),i=n(3812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},3366:(e,t,n)=>{var r=n(857),i=n(2107),o=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},6840:(e,t,n)=>{var r=n(1049),i=n(7394),o=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},1054:(e,t,n)=>{var r=n(857),i=n(343),o=n(6152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1704:(e,t,n)=>{var r=n(2153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7297:(e,t,n)=>{var r=n(6152),i=n(1401),o=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),i=n(8109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),i=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 i.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);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}},1401:(e,t,n)=>{var r=n(6152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,i=n(4019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),i=n(235),o=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4452:(e,t,n)=>{var r=n(7777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),i=n(1100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,p=setTimeout(x,t),m?y(e):d}function w(e){var n=e-f;return void 0===f||n>=t||n<0||g&&e-h>=u}function x(){var e=i();if(w(e))return E(e);p=setTimeout(x,function(e){var n=t-(e-f);return g?s(n,u-(e-h)):n}(e))}function E(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=w(e);if(l=arguments,c=this,f=e,n){if(void 0===p)return b(f);if(g)return clearTimeout(p),p=setTimeout(x,t),y(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=c=p=void 0},_.flush=function(){return void 0===p?d:E(i())},_}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},6152:e=>{var t=Array.isArray;e.exports=t},1049:(e,t,n)=>{var r=n(3366),i=n(9259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,p=NaN,f=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",x="[object GeneratorFunction]",E="[object Map]",_="[object Number]",O="[object Object]",S="[object Promise]",C="[object RegExp]",k="[object Set]",L="[object String]",P="[object Symbol]",T="[object WeakMap]",R="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",z="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",I="[object Uint8Array]",F="[object Uint8ClampedArray]",B="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,$=RegExp(q.source),Y=RegExp(V.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+Oe+"]",Ce="["+xe+"]",ke="\\d+",Le="["+Ee+"]",Pe="[^\\ud800-\\udfff"+Oe+ke+"\\u2700-\\u27bf"+Ee+_e+"]",Te="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+_e+"]",ze="(?:"+Le+"|"+Pe+")",je="(?:"+De+"|"+Pe+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Ie="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+Ce+"|"+Te+")?",Be="[\\ufe0e\\ufe0f]?",Ge=Be+Fe+"(?:\\u200d(?:"+[Re,Ae,Me].join("|")+")"+Be+Fe+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Ae,Me].join("|")+")"+Ge,He="(?:"+[Re+Ce+"?",Ce,Ae,Me,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),qe=RegExp(Ce,"g"),Ve=RegExp(Te+"(?="+Te+")|"+He+Ge,"g"),$e=RegExp([De+"?"+Le+"+"+Ne+"(?="+[Se,De,"$"].join("|")+")",je+"+"+Ie+"(?="+[Se,De+ze,"$"].join("|")+")",De+"?"+ze+"+"+Ne,De+"+"+Ie,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Ue].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+xe+"\\ufe0e\\ufe0f]"),Ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Qe={};Qe[M]=Qe[D]=Qe[z]=Qe[j]=Qe[N]=Qe[I]=Qe[F]=Qe[B]=Qe[G]=!0,Qe[m]=Qe[g]=Qe[R]=Qe[v]=Qe[A]=Qe[y]=Qe[b]=Qe[w]=Qe[E]=Qe[_]=Qe[O]=Qe[C]=Qe[k]=Qe[L]=Qe[T]=!1;var Je={};Je[m]=Je[g]=Je[R]=Je[A]=Je[v]=Je[y]=Je[M]=Je[D]=Je[z]=Je[j]=Je[N]=Je[E]=Je[_]=Je[O]=Je[C]=Je[k]=Je[L]=Je[P]=Je[I]=Je[F]=Je[B]=Je[G]=!0,Je[b]=Je[w]=Je[T]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ct=lt&&rt.process,ut=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),dt=ut&&ut.isArrayBuffer,pt=ut&&ut.isDate,ft=ut&&ut.isMap,ht=ut&&ut.isRegExp,mt=ut&&ut.isSet,gt=ut&&ut.isTypedArray;function vt(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 yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Et(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function _t(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ct(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function kt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Tt=Nt("length");function Rt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function At(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Mt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):At(e,zt,n)}function Dt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function zt(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Nt(e){return function(t){return null==t?i:t[e]}}function It(e){return function(t){return null==e?i:e[t]}}function Ft(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Bt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Ht(e){return function(t){return e(t)}}function Wt(e,t){return St(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Vt(e,t){for(var n=-1,r=e.length;++n<r&&Mt(t,e[n],0)>-1;);return n}function $t(e,t){for(var n=e.length;n--&&Mt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Zt=It({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xt=It({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Kt(e){return"\\"+et[e]}function Qt(e){return Ye.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=Ve.lastIndex=0;Ve.test(e);)++t;return t}(e):Tt(e)}function an(e){return Qt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=It({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,Xe))).Array,ie=t.Date,xe=t.Error,Ee=t.Function,_e=t.Math,Oe=t.Object,Se=t.RegExp,Ce=t.String,ke=t.TypeError,Le=r.prototype,Pe=Ee.prototype,Te=Oe.prototype,Re=t["__core-js_shared__"],Ae=Pe.toString,Me=Te.hasOwnProperty,De=0,ze=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Te.toString,Ne=Ae.call(Oe),Ie=ot._,Fe=Se("^"+Ae.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=lt?t.Buffer:i,Ge=t.Symbol,Ue=t.Uint8Array,He=Be?Be.allocUnsafe:i,Ve=en(Oe.getPrototypeOf,Oe),Ye=Oe.create,et=Te.propertyIsEnumerable,rt=Le.splice,it=Ge?Ge.isConcatSpreadable:i,at=Ge?Ge.iterator:i,st=Ge?Ge.toStringTag:i,ct=function(){try{var e=co(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Tt=ie&&ie.now!==ot.Date.now&&ie.now,It=t.setTimeout!==ot.setTimeout&&t.setTimeout,un=_e.ceil,dn=_e.floor,pn=Oe.getOwnPropertySymbols,fn=Be?Be.isBuffer:i,hn=t.isFinite,mn=Le.join,gn=en(Oe.keys,Oe),vn=_e.max,yn=_e.min,bn=ie.now,wn=t.parseInt,xn=_e.random,En=Le.reverse,_n=co(t,"DataView"),On=co(t,"Map"),Sn=co(t,"Promise"),Cn=co(t,"Set"),kn=co(t,"WeakMap"),Ln=co(Oe,"create"),Pn=kn&&new kn,Tn={},Rn=Fo(_n),An=Fo(On),Mn=Fo(Sn),Dn=Fo(Cn),zn=Fo(kn),jn=Ge?Ge.prototype:i,Nn=jn?jn.valueOf:i,In=jn?jn.toString:i;function Fn(e){if(ns(e)&&!qa(e)&&!(e instanceof Hn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return Bo(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Gn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new qn(e);this.size=t.size}function Zn(e,t){var n=qa(e),r=!n&&Wa(e),i=!n&&!r&&Za(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?Gt(e.length,Ce):[],l=s.length;for(var c in e)!t&&!Me.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Vr(0,t-1)]:i}function Kn(e,t){return Do(ki(e),ar(t,0,e.length))}function Qn(e){return Do(ki(e))}function Jn(e,t,n){(n!==i&&!Ga(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Me.call(e,t)&&Ga(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ga(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Li(t,As(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ki(e,s)}else{var p=fo(e),f=p==w||p==x;if(Za(e))return xi(e,l);if(p==O||p==m||f&&!o){if(s=c||f?{}:mo(e),!l)return c?function(e,t){return Li(e,po(e),t)}(e,function(e,t){return e&&Li(t,Ms(t),e)}(s,e)):function(e,t){return Li(e,uo(e),t)}(e,rr(s,e))}else{if(!Je[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case R:return Ei(e);case v:case y:return new i(+e);case A:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case D:case z:case j:case N:case I:case F:case B:case G:return _i(e,n);case E:return new i;case _:case L:return new i(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case P:return r=e,Nn?Oe(Nn.call(r)):{}}}(e,p,l)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var g=d?i:(u?c?no:to:c?Ms:As)(e);return bt(g||e,(function(r,i){g&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Oe(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new ke(o);return To((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,o=_t,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=St(t,Ht(n))),r?(o=Ot,a=!1):t.length>=200&&(o=qt,a=!1,t=new $n(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:Z,evaluate:X,interpolate:K,variable:"",imports:{_:Fn}},Fn.prototype=Gn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Bn(Gn.prototype),Un.prototype.constructor=Un,Hn.prototype=Bn(Gn.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Ln?Ln(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Ln){var n=t[e];return n===a?i:n}return Me.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return Ln?t[e]!==i:Me.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ln&&t===i?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(On||qn),string:new Wn}},Vn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return so(this,e).get(e)},Vn.prototype.has=function(e){return so(this,e).has(e)},Vn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,a),this},$n.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var dr=Ri(br),pr=Ri(wr,!0);function fr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function mr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=go),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?gr(s,t-1,n,r,i):Ct(i,s):r||(i[i.length]=s)}return i}var vr=Ai(),yr=Ai(!0);function br(e,t){return e&&vr(e,t,As)}function wr(e,t){return e&&yr(e,t,As)}function xr(e,t){return Et(t,(function(t){return Qa(e[t])}))}function Er(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[Io(t[n++])];return n&&n==r?e:i}function _r(e,t,n){var r=t(e);return qa(e)?r:Ct(r,n(e))}function Or(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Oe(e)?function(e){var t=Me.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=je.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return je.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Me.call(e,t)}function kr(e,t){return null!=e&&t in Oe(e)}function Lr(e,t,n){for(var o=n?Ot:_t,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=St(p,Ht(t))),u=yn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new $n(l&&p):i}p=e[0];var f=-1,h=c[0];e:for(;++f<a&&d.length<u;){var m=p[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?qt(h,g):o(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?qt(v,g):o(e[l],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function Pr(e,t,n){var r=null==(e=Co(e,t=vi(t,e)))?e:e[Io(Ko(t))];return null==r?i:vt(r,e,n)}function Tr(e){return ns(e)&&Or(e)==m}function Rr(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=qa(e),l=qa(t),c=s?g:fo(e),u=l?g:fo(t),d=(c=c==m?O:c)==O,p=(u=u==m?O:u)==O,f=c==u;if(f&&Za(e)){if(!Za(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Yn),s||us(e)?Ji(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case y:case _:return Ga(+e,+t);case b:return e.name==t.name&&e.message==t.message;case C:case L:return e==t+"";case E:var s=Jt;case k:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Ji(s(e),s(t),r,i,o,a);return a.delete(e),u;case P:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=d&&Me.call(e,"__wrapped__"),w=p&&Me.call(t,"__wrapped__");if(h||w){var x=h?e.value():e,S=w?t.value():t;return a||(a=new Yn),o(x,S,n,r,a)}}return!!f&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,l=to(e),c=l.length;if(c!=to(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Me.call(t,d)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<c;){var g=e[d=l[u]],v=t[d];if(r)var y=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(!(y===i?g===v||o(g,v,n,r,a):y)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Rr,o))}function Ar(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Oe(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var p=new Yn;if(r)var f=r(u,d,c,e,t,p);if(!(f===i?Rr(d,u,3,r,p):f))return!1}}return!0}function Mr(e){return!(!ts(e)||(t=e,ze&&ze in t))&&(Qa(e)?Fe:me).test(Fo(e));var t}function Dr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?qa(e)?Fr(e[0],e[1]):Ir(e):fl(e)}function zr(e){if(!Eo(e))return gn(e);var t=[];for(var n in Oe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Nr(e,t){var n=-1,i=$a(e)?r(e.length):[];return dr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Ir(e){var t=lo(e);return 1==t.length&&t[0][2]?Oo(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function Fr(e,t){return bo(e)&&_o(t)?Oo(Io(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Ls(n,e):Rr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var l=Lo(e,n),c=Lo(t,n),u=s.get(c);if(u)Jn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,p=d===i;if(p){var f=qa(c),h=!f&&Za(c),m=!f&&!h&&us(c);d=c,f||h||m?qa(l)?d=l:Ya(l)?d=ki(l):h?(p=!1,d=xi(c,!0)):m?(p=!1,d=_i(c,!0)):d=[]:os(c)||Wa(c)?(d=l,Wa(l)?d=ys(l):ts(l)&&!Qa(l)||(d=mo(c))):p=!1}p&&(s.set(c,d),o(d,c,r,a,s),s.delete(c)),Jn(e,n,d)}}(e,t,s,n,Br,r,o);else{var l=r?r(Lo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Jn(e,s,l)}}),Ms)}function Gr(e,t){var n=e.length;if(n)return vo(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?St(t,(function(e){return qa(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;t=St(t,Ht(ao()));var i=Nr(e,(function(e,n,i){var o=St(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Oi(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Hr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Er(e,a);n(s,a)&&Kr(o,vi(a,e),s)}return o}function Wr(e,t,n,r){var i=r?Dt:Mt,o=-1,a=t.length,s=e;for(e===t&&(t=ki(t)),n&&(s=St(e,Ht(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?rt.call(e,i,1):ci(e,i)}}return e}function Vr(e,t){return e+dn(xn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Ro(So(e,t,il),e+"")}function Zr(e){return Xn(Gs(e))}function Xr(e,t){var n=Gs(e);return Do(n,ar(t,0,n.length))}function Kr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=vi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Io(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=ts(d)?d:vo(t[o+1])?[]:{})}er(l,c,u),l=l[c]}return e}var Qr=Pn?function(e,t){return Pn.set(e,t),e}:il,Jr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ei(e){return Do(Gs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,il,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===i;o<a;){var d=dn((o+a)/2),p=n(e[d]),f=p!==i,h=null===p,m=p==p,g=cs(p);if(s)var v=r||m;else v=u?m&&(r||f):l?m&&f&&(r||!h):c?m&&f&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);v?o=d+1:a=d}return yn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ga(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:cs(e)?p:+e}function si(e){if("string"==typeof e)return e;if(qa(e))return St(e,si)+"";if(cs(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function li(e,t,n){var r=-1,i=_t,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Ot;else if(o>=200){var c=t?null:$i(e);if(c)return nn(c);a=!1,i=qt,l=new $n}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ci(e,t){return null==(e=Co(e,t=vi(t,e)))||delete e[Io(Ko(t))]}function ui(e,t,n,r){return Kr(e,t,n(Er(e,t)),r)}function di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Ct([e],t.args))}),n)}function fi(e,t,n){var i=e.length;if(i<2)return i?li(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=ur(a[o]||s,e[l],t,n));return li(gr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function mi(e){return Ya(e)?e:[]}function gi(e){return"function"==typeof e?e:il}function vi(e,t){return qa(e)?e:bo(e,t)?[e]:No(bs(e))}var yi=Yr;function bi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var wi=ut||function(e){return ot.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function _i(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=cs(e),s=t!==i,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Si(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=vn(a-s,0),d=r(c+u),p=!i;++l<c;)d[l]=t[l];for(;++o<s;)(p||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=vn(a-l,0),p=r(d+u),f=!i;++o<d;)p[o]=e[o];for(var h=o;++c<u;)p[h+c]=t[c];for(;++s<l;)(f||o<a)&&(p[h+n[s]]=e[o++]);return p}function ki(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Li(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?ir(n,l,c):er(n,l,c)}return n}function Pi(e,t){return function(n,r){var i=qa(n)?yt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ti(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Oe(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Oe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ai(e){return function(t,n,r){for(var i=-1,o=Oe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Mi(e){return function(t){var n=Qt(t=bs(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?bi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return kt(Qs(Ws(t).replace(We,"")),e,"")}}function zi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function ji(e){return function(t,n,r){var o=Oe(t);if(!$a(t)){var a=ao(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ni(e){return eo((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(o);if(a&&!l&&"wrapper"==io(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=io(s=t[r]),u="wrapper"==c?ro(s):i;l=u&&wo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[io(u[0])].apply(l,u[3]):1==s.length&&wo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&qa(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ii(e,t,n,o,a,s,l,u,d,p){var f=t&c,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:zi(e);return function i(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(g)var x=oo(i),E=Yt(b,x);if(o&&(b=Si(b,o,a,g)),s&&(b=Ci(b,s,l,g)),c-=E,g&&c<p){var _=tn(b,x);return qi(e,t,Ii,i.placeholder,n,b,_,u,d,p-c)}var O=h?n:this,S=m?O[e]:e;return c=b.length,u?b=ko(b,u):v&&c>1&&b.reverse(),f&&d<c&&(b.length=d),this&&this!==ot&&this instanceof i&&(S=y||zi(S)),S.apply(O,b)}}function Fi(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function Gi(e){return eo((function(t){return t=St(t,Ht(ao())),Yr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Ui(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,un(e/on(t)));return Qt(t)?bi(an(r),0,e).join(""):r.slice(0,e)}function Hi(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=vn(un((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function qi(e,t,n,r,o,a,s,c,u,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var f=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,u,d],h=n.apply(i,f);return wo(e)&&Po(h,f),h.placeholder=r,Ao(h,e,t)}function Vi(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(ms(n),292))&&hn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Cn&&1/nn(new Cn([,-0]))[1]==u?function(e){return new Cn(e)}:cl;function Yi(e){return function(t){var n=fo(t);return n==E?Jt(t):n==k?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,n,a,u,d,p,f){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(o);var m=a?a.length:0;if(m||(t&=-97,a=u=i),p=p===i?p:vn(ms(p),0),f=f===i?f:ms(f),m-=u?u.length:0,64&t){var g=a,v=u;a=u=i}var y=h?i:ro(e),b=[e,t,n,a,u,g,v,d,p,f];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Si(u,l,t[4]):l,e[4]=u?tn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ci(u,l,t[6]):l,e[6]=u?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],u=b[4],!(f=b[9]=b[9]===i?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=zi(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=oo(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:tn(l,u);return(s-=d.length)<n?qi(e,t,Ii,a.placeholder,i,l,d,i,i,n-s):vt(this&&this!==ot&&this instanceof a?o:e,this,l)}}(e,t,f):t!=l&&33!=t||u.length?Ii.apply(i,b):function(e,t,n,i){var o=1&t,a=zi(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),p=this&&this!==ot&&this instanceof t?a:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return vt(p,o?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,i=zi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ao((y?Qr:Po)(w,b),e,t)}function Xi(e,t,n,r){return e===i||Ga(e,Te[n])&&!Me.call(r,n)?t:e}function Ki(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,i,Ki,a),a.delete(t)),e}function Qi(e){return os(e)?i:e}function Ji(e,t,n,r,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&n?new $n:i;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==i){if(v)continue;f=!1;break}if(h){if(!Pt(t,(function(e,t){if(!qt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function eo(e){return Ro(So(e,i,Vo),e+"")}function to(e){return _r(e,As,uo)}function no(e){return _r(e,Ms,po)}var ro=Pn?function(e){return Pn.get(e)}:cl;function io(e){for(var t=e.name+"",n=Tn[t],r=Me.call(Tn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Me.call(Fn,"placeholder")?Fn:e).placeholder}function ao(){var e=Fn.iteratee||ol;return e=e===ol?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function lo(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_o(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Mr(n)?n:i}var uo=pn?function(e){return null==e?[]:(e=Oe(e),Et(pn(e),(function(t){return et.call(e,t)})))}:gl,po=pn?function(e){for(var t=[];e;)Ct(t,uo(e)),e=Ve(e);return t}:gl,fo=Or;function ho(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,o=!1;++r<i;){var a=Io(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&vo(a,i)&&(qa(e)||Wa(e))}function mo(e){return"function"!=typeof e.constructor||Eo(e)?{}:Bn(Ve(e))}function go(e){return qa(e)||Wa(e)||!!(it&&e&&e[it])}function vo(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&vo(t,n.length):"string"==r&&t in n)&&Ga(n[t],e)}function bo(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||J.test(e)||!Q.test(e)||null!=t&&e in Oe(t)}function wo(e){var t=io(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(_n&&fo(new _n(new ArrayBuffer(1)))!=A||On&&fo(new On)!=E||Sn&&fo(Sn.resolve())!=S||Cn&&fo(new Cn)!=k||kn&&fo(new kn)!=T)&&(fo=function(e){var t=Or(e),n=t==O?e.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Rn:return A;case An:return E;case Mn:return S;case Dn:return k;case zn:return T}return t});var xo=Re?Qa:vl;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function _o(e){return e==e&&!ts(e)}function Oo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Oe(n))}}function So(e,t,n){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=vn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),vt(e,this,l)}}function Co(e,t){return t.length<2?e:Er(e,ti(t,0,-1))}function ko(e,t){for(var n=e.length,r=yn(t.length,n),o=ki(e);r--;){var a=t[r];e[r]=vo(a,n)?o[a]:i}return e}function Lo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Po=Mo(Qr),To=It||function(e,t){return ot.setTimeout(e,t)},Ro=Mo(Jr);function Ao(e,t,n){var r=t+"";return Ro(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Vr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var zo,jo,No=(zo=za((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===jo.size&&jo.clear(),e})),jo=zo.cache,zo);function Io(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Hn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Go=Yr((function(e,t){return Ya(e)?ur(e,gr(t,1,Ya,!0)):[]})),Uo=Yr((function(e,t){var n=Ko(t);return Ya(n)&&(n=i),Ya(e)?ur(e,gr(t,1,Ya,!0),ao(n,2)):[]})),Ho=Yr((function(e,t){var n=Ko(t);return Ya(n)&&(n=i),Ya(e)?ur(e,gr(t,1,Ya,!0),i,n):[]}));function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(r+i,0)),At(e,ao(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ms(n),o=n<0?vn(r+o,0):yn(o,r-1)),At(e,ao(t,3),o,!0)}function Vo(e){return null!=e&&e.length?gr(e,1):[]}function $o(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=St(e,mi);return t.length&&t[0]===e[0]?Lr(t):[]})),Zo=Yr((function(e){var t=Ko(e),n=St(e,mi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Lr(n,ao(t,2)):[]})),Xo=Yr((function(e){var t=Ko(e),n=St(e,mi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Lr(n,i,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Yr(Jo);function Jo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,St(t,(function(e){return vo(e,n)?+e:e})).sort(Oi)),r}));function ta(e){return null==e?e:En.call(e)}var na=Yr((function(e){return li(gr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Ko(e);return Ya(t)&&(t=i),li(gr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,li(gr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Et(e,(function(e){if(Ya(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return St(e,Nt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:St(n,(function(e){return vt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?ur(e,t):[]})),la=Yr((function(e){return fi(Et(e,Ya))})),ca=Yr((function(e){var t=Ko(e);return Ya(t)&&(t=i),fi(Et(e,Ya),ao(t,2))})),ua=Yr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,fi(Et(e,Ya),i,t)})),da=Yr(oa),pa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function fa(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ga=Pi((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)})),va=ji(Wo),ya=ji(qo);function ba(e,t){return(qa(e)?bt:dr)(e,ao(t,3))}function wa(e,t){return(qa(e)?wt:pr)(e,ao(t,3))}var xa=Pi((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])})),Ea=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=$a(e)?r(e.length):[];return dr(e,(function(e){a[++i]=o?vt(t,e,n):Pr(e,t,n)})),a})),_a=Pi((function(e,t,n){ir(e,n,t)}));function Oa(e,t){return(qa(e)?St:Nr)(e,ao(t,3))}var Sa=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),ka=Tt||function(){return ot.Date.now()};function La(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zi(e,c,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ta=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ta));r|=l}return Zi(e,r,t,n,i)})),Ra=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ra));r|=l}return Zi(t,r,e,n,i)}));function Aa(e,t,n){var r,a,s,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new ke(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){return d=e,c=To(y,t),p?m(e):l}function v(e){var n=e-u;return u===i||n>=t||n<0||f&&e-d>=s}function y(){var e=ka();if(v(e))return b(e);c=To(y,function(e){var n=t-(e-u);return f?yn(n,s-(e-d)):n}(e))}function b(e){return c=i,h&&r?m(e):(r=a=i,l)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===i)return g(u);if(f)return wi(c),c=To(y,t),m(u)}return c===i&&(c=To(y,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(f="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){c!==i&&wi(c),d=0,r=u=a=c=i},w.flush=function(){return c===i?l:b(ka())},w}var Ma=Yr((function(e,t){return cr(e,1,t)})),Da=Yr((function(e,t,n){return cr(e,vs(t)||0,n)}));function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(za.Cache||Vn),n}function ja(e){if("function"!=typeof e)throw new ke(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}za.Cache=Vn;var Na=yi((function(e,t){var n=(t=1==t.length&&qa(t[0])?St(t[0],Ht(ao())):St(gr(t,1),Ht(ao()))).length;return Yr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return vt(e,this,r)}))})),Ia=Yr((function(e,t){var n=tn(t,oo(Ia));return Zi(e,l,i,t,n)})),Fa=Yr((function(e,t){var n=tn(t,oo(Fa));return Zi(e,64,i,t,n)})),Ba=eo((function(e,t){return Zi(e,256,i,i,i,t)}));function Ga(e,t){return e===t||e!=e&&t!=t}var Ua=Wi(Sr),Ha=Wi((function(e,t){return e>=t})),Wa=Tr(function(){return arguments}())?Tr:function(e){return ns(e)&&Me.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Va=dt?Ht(dt):function(e){return ns(e)&&Or(e)==R};function $a(e){return null!=e&&es(e.length)&&!Qa(e)}function Ya(e){return ns(e)&&$a(e)}var Za=fn||vl,Xa=pt?Ht(pt):function(e){return ns(e)&&Or(e)==y};function Ka(e){if(!ns(e))return!1;var t=Or(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qa(e){if(!ts(e))return!1;var t=Or(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ft?Ht(ft):function(e){return ns(e)&&fo(e)==E};function is(e){return"number"==typeof e||ns(e)&&Or(e)==_}function os(e){if(!ns(e)||Or(e)!=O)return!1;var t=Ve(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ne}var as=ht?Ht(ht):function(e){return ns(e)&&Or(e)==C},ss=mt?Ht(mt):function(e){return ns(e)&&fo(e)==k};function ls(e){return"string"==typeof e||!qa(e)&&ns(e)&&Or(e)==L}function cs(e){return"symbol"==typeof e||ns(e)&&Or(e)==P}var us=gt?Ht(gt):function(e){return ns(e)&&es(e.length)&&!!Qe[Or(e)]},ds=Wi(jr),ps=Wi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if($a(e))return ls(e)?an(e):ki(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=fo(e);return(t==E?Jt:t==k?nn:Gs)(e)}function hs(e){return e?(e=vs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?ar(ms(e),0,f):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?p:+e}function ys(e){return Li(e,Ms(e))}function bs(e){return null==e?"":si(e)}var ws=Ti((function(e,t){if(Eo(t)||$a(t))Li(t,As(t),e);else for(var n in t)Me.call(t,n)&&er(e,n,t[n])})),xs=Ti((function(e,t){Li(t,Ms(t),e)})),Es=Ti((function(e,t,n,r){Li(t,Ms(t),e,r)})),_s=Ti((function(e,t,n,r){Li(t,As(t),e,r)})),Os=eo(or),Ss=Yr((function(e,t){e=Oe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===i||Ga(d,Te[u])&&!Me.call(e,u))&&(e[u]=a[u])}return e})),Cs=Yr((function(e){return e.push(i,Ki),vt(zs,i,e)}));function ks(e,t,n){var r=null==e?i:Er(e,t);return r===i?n:r}function Ls(e,t){return null!=e&&ho(e,t,kr)}var Ps=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tl(il)),Ts=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Rs=Yr(Pr);function As(e){return $a(e)?Zn(e):zr(e)}function Ms(e){return $a(e)?Zn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Oe(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}(e)}var Ds=Ti((function(e,t,n){Br(e,t,n)})),zs=Ti((function(e,t,n,r){Br(e,t,n,r)})),js=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=vi(t,e),r||(r=t.length>1),t})),Li(e,no(e),n),r&&(n=sr(n,7,Qi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ns=eo((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Ls(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=St(no(e),(function(e){return[e]}));return t=ao(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Yi(As),Bs=Yi(Ms);function Gs(e){return null==e?[]:Wt(e,As(e))}var Us=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Ks(bs(e).toLowerCase())}function Ws(e){return(e=bs(e))&&e.replace(ye,Zt).replace(qe,"")}var qs=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=Mi("toLowerCase"),Ys=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Zs=Di((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Xs=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Mi("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return Ze.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Js=Yr((function(e,t){try{return vt(e,i,t)}catch(e){return Ka(e)?e:new xe(e)}})),el=eo((function(e,t){return bt(t,(function(t){t=Io(t),ir(e,t,Ta(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Ni(),rl=Ni(!0);function il(e){return e}function ol(e){return Dr("function"==typeof e?e:sr(e,1))}var al=Yr((function(e,t){return function(n){return Pr(n,e,t)}})),sl=Yr((function(e,t){return function(n){return Pr(e,n,t)}}));function ll(e,t,n){var r=As(t),i=xr(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,As(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return bt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})})),e}function cl(){}var ul=Gi(St),dl=Gi(xt),pl=Gi(Pt);function fl(e){return bo(e)?Nt(Io(e)):function(e){return function(t){return Er(t,e)}}(e)}var hl=Hi(),ml=Hi(!0);function gl(){return[]}function vl(){return!1}var yl,bl=Bi((function(e,t){return e+t}),0),wl=Vi("ceil"),xl=Bi((function(e,t){return e/t}),1),El=Vi("floor"),_l=Bi((function(e,t){return e*t}),1),Ol=Vi("round"),Sl=Bi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=La,Fn.assign=ws,Fn.assignIn=xs,Fn.assignInWith=Es,Fn.assignWith=_s,Fn.at=Os,Fn.before=Pa,Fn.bind=Ta,Fn.bindAll=el,Fn.bindKey=Ra,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Fn.chain=fa,Fn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:vn(ms(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(un(o/t));a<o;)l[s++]=ti(e,a,a+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ct(qa(n)?ki(n):[n],gr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(vt(i[0],this,n))return vt(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=As(e);return function(n){return lr(n,e,t)}}(sr(e,1))},Fn.constant=tl,Fn.countBy=ga,Fn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var o=Zi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,r){var o=Zi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.debounce=Aa,Fn.defaults=Ss,Fn.defaultsDeep=Cs,Fn.defer=Ma,Fn.delay=Da,Fn.difference=Go,Fn.differenceBy=Uo,Fn.differenceWith=Ho,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:ms(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:ms(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0):[]},Fn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ms(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ms(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(qa(e)?Et:mr)(e,ao(t,3))},Fn.flatMap=function(e,t){return gr(Oa(e,t),1)},Fn.flatMapDeep=function(e,t){return gr(Oa(e,t),u)},Fn.flatMapDepth=function(e,t,n){return n=n===i?1:ms(n),gr(Oa(e,t),n)},Fn.flatten=Vo,Fn.flattenDeep=function(e){return null!=e&&e.length?gr(e,u):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:ms(t)):[]},Fn.flip=function(e){return Zi(e,512)},Fn.flow=nl,Fn.flowRight=rl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:xr(e,As(e))},Fn.functionsIn=function(e){return null==e?[]:xr(e,Ms(e))},Fn.groupBy=xa,Fn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Fn.intersection=Yo,Fn.intersectionBy=Zo,Fn.intersectionWith=Xo,Fn.invert=Ps,Fn.invertBy=Ts,Fn.invokeMap=Ea,Fn.iteratee=ol,Fn.keyBy=_a,Fn.keys=As,Fn.keysIn=Ms,Fn.map=Oa,Fn.mapKeys=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Ir(sr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Fn.memoize=za,Fn.merge=Ds,Fn.mergeWith=zs,Fn.method=al,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=ja,Fn.nthArg=function(e){return e=ms(e),Yr((function(t){return Gr(t,e)}))},Fn.omit=js,Fn.omitBy=function(e,t){return Is(e,ja(ao(t)))},Fn.once=function(e){return Pa(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Fn.over=ul,Fn.overArgs=Na,Fn.overEvery=dl,Fn.overSome=pl,Fn.partial=Ia,Fn.partialRight=Fa,Fn.partition=Sa,Fn.pick=Ns,Fn.pickBy=Is,Fn.property=fl,Fn.propertyOf=function(e){return function(t){return null==e?i:Er(e,t)}},Fn.pull=Qo,Fn.pullAll=Jo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,ao(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},Fn.pullAt=ea,Fn.range=hl,Fn.rangeRight=ml,Fn.rearg=Ba,Fn.reject=function(e,t){return(qa(e)?Et:mr)(e,ja(ao(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return Yr(e,t=t===i?t:ms(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ms(t),(qa(e)?Kn:Xr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Kr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Kr(e,t,n,r)},Fn.shuffle=function(e){return(qa(e)?Qn:ei)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===i?r:ms(n)),ti(e,t,n)):[]},Fn.sortBy=Ca,Fn.sortedUniq=function(e){return e&&e.length?oi(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Qt(e)?bi(an(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:vn(ms(t),0),Yr((function(n){var r=n[t],i=bi(n,0,t);return r&&Ct(i,r),vt(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:ms(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:ms(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?di(e,ao(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=ha,Fn.toArray=fs,Fn.toPairs=Fs,Fn.toPairsIn=Bs,Fn.toPath=function(e){return qa(e)?St(e,Io):cs(e)?[e]:ki(No(bs(e)))},Fn.toPlainObject=ys,Fn.transform=function(e,t,n){var r=qa(e),i=r||Za(e)||us(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Qa(o)?Bn(Ve(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return La(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=ia,Fn.uniq=function(e){return e&&e.length?li(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?li(e,ao(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?li(e,i,t):[]},Fn.unset=function(e,t){return null==e||ci(e,t)},Fn.unzip=oa,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:ui(e,t,gi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,gi(n),r)},Fn.values=Gs,Fn.valuesIn=function(e){return null==e?[]:Wt(e,Ms(e))},Fn.without=sa,Fn.words=Qs,Fn.wrap=function(e,t){return Ia(gi(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=ua,Fn.zip=da,Fn.zipObject=function(e,t){return hi(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Kr)},Fn.zipWith=pa,Fn.entries=Fs,Fn.entriesIn=Bs,Fn.extend=xs,Fn.extendWith=Es,ll(Fn,Fn),Fn.add=bl,Fn.attempt=Js,Fn.camelCase=Us,Fn.capitalize=Hs,Fn.ceil=wl,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))==n?n:0),t!==i&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Fn.clone=function(e){return sr(e,4)},Fn.cloneDeep=function(e){return sr(e,5)},Fn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,As(t))},Fn.deburr=Ws,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=xl,Fn.endsWith=function(e,t,n){e=bs(e),t=si(t);var r=e.length,o=n=n===i?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=Ga,Fn.escape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(V,Xt):e},Fn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=qa(e)?xt:fr;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},Fn.find=va,Fn.findIndex=Wo,Fn.findKey=function(e,t){return Rt(e,ao(t,3),br)},Fn.findLast=ya,Fn.findLastIndex=qo,Fn.findLastKey=function(e,t){return Rt(e,ao(t,3),wr)},Fn.floor=El,Fn.forEach=ba,Fn.forEachRight=wa,Fn.forIn=function(e,t){return null==e?e:vr(e,ao(t,3),Ms)},Fn.forInRight=function(e,t){return null==e?e:yr(e,ao(t,3),Ms)},Fn.forOwn=function(e,t){return e&&br(e,ao(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,ao(t,3))},Fn.get=ks,Fn.gt=Ua,Fn.gte=Ha,Fn.has=function(e,t){return null!=e&&ho(e,t,Cr)},Fn.hasIn=Ls,Fn.head=$o,Fn.identity=il,Fn.includes=function(e,t,n,r){e=$a(e)?e:Gs(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Mt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(r+i,0)),Mt(e,t,i)},Fn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Fn.invoke=Rs,Fn.isArguments=Wa,Fn.isArray=qa,Fn.isArrayBuffer=Va,Fn.isArrayLike=$a,Fn.isArrayLikeObject=Ya,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Or(e)==v},Fn.isBuffer=Za,Fn.isDate=Xa,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Fn.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||us(e)||Wa(e)))return!e.length;var t=fo(e);if(t==E||t==k)return!e.size;if(Eo(e))return!zr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Rr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Rr(e,t,i,n):!!r},Fn.isError=Ka,Fn.isFinite=function(e){return"number"==typeof e&&hn(e)},Fn.isFunction=Qa,Fn.isInteger=Ja,Fn.isLength=es,Fn.isMap=rs,Fn.isMatch=function(e,t){return e===t||Ar(e,t,lo(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ar(e,t,lo(t),n)},Fn.isNaN=function(e){return is(e)&&e!=+e},Fn.isNative=function(e){if(xo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=is,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=os,Fn.isRegExp=as,Fn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=us,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return ns(e)&&fo(e)==T},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Or(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=qs,Fn.last=Ko,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ms(n))<0?vn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):At(e,zt,o,!0)},Fn.lowerCase=Vs,Fn.lowerFirst=$s,Fn.lt=ds,Fn.lte=ps,Fn.max=function(e){return e&&e.length?hr(e,il,Sr):i},Fn.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Sr):i},Fn.mean=function(e){return jt(e,il)},Fn.meanBy=function(e,t){return jt(e,ao(t,2))},Fn.min=function(e){return e&&e.length?hr(e,il,jr):i},Fn.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),jr):i},Fn.stubArray=gl,Fn.stubFalse=vl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=_l,Fn.nth=function(e,t){return e&&e.length?Gr(e,ms(t)):i},Fn.noConflict=function(){return ot._===this&&(ot._=Ie),this},Fn.noop=cl,Fn.now=ka,Fn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(dn(i),n)+e+Ui(un(i),n)},Fn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Ui(t-r,n):e},Fn.padStart=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Ui(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return yn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Vr(e,t)},Fn.reduce=function(e,t,n){var r=qa(e)?kt:Ft,i=arguments.length<3;return r(e,ao(t,4),n,i,dr)},Fn.reduceRight=function(e,t,n){var r=qa(e)?Lt:Ft,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Fn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ms(t),$r(bs(e),t)},Fn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Io(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},Fn.round=Ol,Fn.runInContext=e,Fn.sample=function(e){return(qa(e)?Xn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if($a(e))return ls(e)?on(e):e.length;var t=fo(e);return t==E||t==k?e.size:zr(e).length},Fn.snakeCase=Ys,Fn.some=function(e,t,n){var r=qa(e)?Pt:ni;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},Fn.sortedIndex=function(e,t){return ri(e,t)},Fn.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Ga(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ri(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Ga(e[n],t))return n}return-1},Fn.startCase=Zs,Fn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(ms(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Fn.subtract=Sl,Fn.sum=function(e){return e&&e.length?Bt(e,il):0},Fn.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&yo(e,t,n)&&(t=i),e=bs(e),t=Es({},t,r,Xi);var o,a,s=Es({},t.imports,r.imports,Xi),l=As(s),c=Wt(s,l),u=0,d=t.interpolate||be,p="__p += '",f=Se((t.escape||be).source+"|"+d.source+"|"+(d===K?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ke+"]")+"\n";e.replace(f,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(u,l).replace(we,Kt),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Me.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Js((function(){return Ee(l,h+"return "+p).apply(i,c)}));if(g.source=p,Ka(g))throw g;return g},Fn.times=function(e,t){if((e=ms(e))<1||e>d)return[];var n=f,r=yn(e,f);t=ao(t),e-=f;for(var i=Gt(r,t);++n<e;)t(n);return i},Fn.toFinite=hs,Fn.toInteger=ms,Fn.toLength=gs,Fn.toLower=function(e){return bs(e).toLowerCase()},Fn.toNumber=vs,Fn.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,d):0===e?e:0},Fn.toString=bs,Fn.toUpper=function(e){return bs(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=bs(e))&&(n||t===i))return Ut(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return bi(r,Vt(r,o),$t(r,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,0,$t(r,an(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,Vt(r,an(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?ms(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=bs(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var c=s?bi(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),as(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Se(o.source,bs(pe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===i?l:p)}}else if(e.indexOf(si(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Fn.unescape=function(e){return(e=bs(e))&&$.test(e)?e.replace(q,ln):e},Fn.uniqueId=function(e){var t=++De;return bs(e)+t},Fn.upperCase=Xs,Fn.upperFirst=Ks,Fn.each=ba,Fn.eachRight=wa,Fn.first=$o,ll(Fn,(yl={},br(Fn,(function(e,t){Me.call(Fn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),Fn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),bt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===i?1:vn(ms(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(il)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Pr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(ja(ao(e)))},Hn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},br(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,c=s[0],u=l||qa(t),d=function(e){var t=o.apply(Fn,Ct([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=l&&!f;if(!a&&u){t=m?t:new Hn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:i}),new Un(g,p)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Me.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Ii(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ki(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=yn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return pi(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[p++]=g}return h},Fn.prototype.at=ma,Fn.prototype.chain=function(){return fa(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Un(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,at&&(Fn.prototype[at]=function(){return this}),Fn}();ot._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},733:(e,t,n)=>{var r=n(6738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},2436:(e,t,n)=>{var r=n(4073),i=n(9259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(1704),i=n(9259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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,o){for(var a,s,l=i(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},8018:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),f=n(901),h=r(n(1230)),m=r(n(6496)),g=r(n(5099)),v=r(n(835)),y=r(n(7339)),b=r(n(8310));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}var x=n(4841).deepPurple[500],E=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(){var e;(0,o.default)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e=r.call.apply(r,[this].concat(n)),(0,d.default)((0,s.default)(e),"buildUrl",(function(t){var n=e.props.storagePath;return t?t.startsWith("http:")||t.startsWith("https:")?t:n+t.replace(/^\/+/,""):""})),(0,d.default)((0,s.default)(e),"getFallbackAvatar",(function(){var t=e.props,n=t.entityType,r=t.classes,i=t.backgroundColor,o=t.color,a=t.className,s=(0,v.default)(n);return p.default.createElement(f.Avatar,{className:(0,b.default)(a,r.avatar),style:{border:"2px solid ".concat(n.typeColor||x),backgroundColor:i||n.typeColor||x,color:o}},s&&s.charAt(0)||p.default.createElement(m.default,null))})),e}return(0,a.default)(i,[{key:"render",value:function(){var e=this.props,t=e.entityType,n=e.classes,r=e.className,i=t.typeIcon||t.typeImage;return i?p.default.createElement(f.Avatar,{className:(0,b.default)(r,n.avatar),style:{border:"2px solid ".concat(t.typeColor||x),backgroundColor:"#FFFFFF"},src:this.buildUrl(i)},this.getFallbackAvatar()):this.getFallbackAvatar()}}]),i}(p.PureComponent);(0,d.default)(E,"propTypes",{entityType:g.default.shape({typeColor:g.default.string,typeIcon:g.default.string,typeImage:g.default.string,label:g.default.string,uri:g.default.string}),className:g.default.string,classes:g.default.shape({avatar:g.default.string}),storagePath:g.default.string,backgroundColor:g.default.string,color:g.default.string}),(0,d.default)(E,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var _=(0,h.default)(y.default)(E);t.ZP=_},7339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},4660:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8156)),o=r(n(5099)),a=r(n(3627)),s=r(n(9233)),l=r(n(4294)),c=r(n(5751)),u=r(n(8310));function d(e){var t=e.classes,n=e.title,r=e.message;return i.default.createElement("div",null,i.default.createElement("span",{className:t.errorTitle},n),i.default.createElement("span",{className:t.errorMessage},r))}d.defaultProps={title:c.default.text("Error:"),message:c.default.text("Something was wrong"),classes:{}},d.propTypes={title:o.default.string,message:o.default.string,classes:o.default.object};var p=function(e){var t,n=e.error,r=e.onClose,o=e.style,p=e.classes,f=e.className,h=c.default.text("Close");if(i.default.isValidElement(n))t=n;else{var m=n||{},g=m.title,v=m.message;t=i.default.createElement(d,{classes:p,title:g,message:v})}return i.default.createElement("div",{className:(0,u.default)(p.errorBlock,f),style:o},i.default.createElement("div",{className:p.descriptionBlock},t),i.default.createElement("div",{className:p.closeIconContainer},i.default.createElement(a.default,{title:h,placement:"bottom"},i.default.createElement(s.default,{onClick:r,"aria-label":h,size:"large"},i.default.createElement(l.default,null)))))};p.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),error:o.default.oneOfType([o.default.node,o.default.shape({title:o.default.string,message:o.default.string})]),style:o.default.object,onClose:o.default.func,className:o.default.oneOfType([o.default.string,o.default.object]),classes:o.default.object},p.defaultProps={classes:{}};var f=p;t.default=f},4176:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),f=r(n(5099)),h=n(72),m=r(n(4660)),g=r(n(1230)),v=r(n(1444));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(e){var t;return(0,o.default)(this,i),t=r.call(this,e),(0,d.default)((0,s.default)(t),"processAutoCloseInterval",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.autoCloseInterval&&(t.timer&&(clearTimeout(t.timer),t.timer=null),e&&(t.timer=setTimeout((function(){t.handleCloseErrorMessage()}),t.autoCloseInterval)))})),i.$$instance=(0,s.default)(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind((0,s.default)(t)),t.state={errors:[]},t}return(0,a.default)(i,[{key:"handleCloseErrorMessage",value:function(){var e=this.state.errors,t=e.length;this.setState({errors:e.slice(0,t-1)}),this.processAutoCloseInterval(t>1)}},{key:"autoCloseInterval",get:function(){return 1e3*(this.props.autoCloseInterval||0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.classes,r=this.state.errors,i=r.length,o=r[i-1];return p.default.createElement(h.CSSTransitionGroup,{transitionName:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,leave:n.errorContainerLeave,leaveActive:n.errorContainerLeaveActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},transitionAppearTimeout:600,transitionEnterTimeout:600,transitionLeaveTimeout:300,transitionAppear:!0},Boolean(i)&&p.default.createElement(m.default,{classes:n,key:"errorMessage".concat(i),onClose:this.handleCloseErrorMessage,error:o,className:t}))}}],[{key:"addError",value:function(e){i.$$instance&&(i.$$instance.setState({errors:i.$$instance.state.errors.concat(e)}),i.$$instance.processAutoCloseInterval())}}]),i}(p.PureComponent);b.propTypes={className:f.default.oneOfType([f.default.string,f.default.object]),classes:f.default.object,autoCloseInterval:f.default.number},b.defaultProps={classes:{}};var w=(0,g.default)(v.default)(b);t.ZP=w},1444:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6290)),o="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerLeave:{opacity:1},errorContainerLeaveActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:o,position:"absolute",display:"flex",left:346,top:64,right:90,background:"linear-gradient(180deg, ".concat("#E54C4C"," 0%, ").concat("#F16262"," 100%)"),minHeight:48,justifyContent:"space-between",alignItems:"baseline",boxShadow:"0 0 24px 0 rgba(0,0,0,0.22)"},(0,i.default)(t,e.breakpoints.down("md"),{left:0,right:0}),(0,i.default)(t,e.breakpoints.down("lg"),{left:288,right:32}),(0,i.default)(t,e.breakpoints.down("xl"),{left:336,right:80}),(0,i.default)(t,e.breakpoints.up("xl"),{left:456,right:200}),t),descriptionBlock:{fontSize:13,padding:"20px 32px",alignSelf:"center",overflow:"hidden",textOverflow:"ellipsis"},errorTitle:{fontWeight:"bold",marginRight:7},errorMessage:{},closeIconContainer:{position:"relative","& button":{color:o,marginTop:5}}}}},835:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?(0,i.default)(e,"label")||(0,i.default)(e,"uri","").slice((0,i.default)(e,"uri","").lastIndexOf("/")+1):null};var i=r(n(2579))},4129:(e,t,n)=>{"use strict";t.__esModule=!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},i=c(n(8156)),o=c(n(5099)),a=c(n(2205)),s=c(n(9490)),l=n(9685);function c(e){return e&&e.__esModule?e:{default:e}}function u(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}l.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var p=function(e){function t(){var n,r;u(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return i.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},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),t.prototype.render=function(){return i.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(i.default.Component);p.displayName="CSSTransitionGroup",p.propTypes={},p.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=p,e.exports=t.default},9490:(e,t,n)=>{"use strict";t.__esModule=!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},i=p(n(2196)),o=p(n(4812)),a=p(n(6463)),s=n(4596),l=p(n(8156)),c=p(n(5099)),u=n(7111),d=n(9685);function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 m=[];s.transitionEnd&&m.push(s.transitionEnd),s.animationEnd&&m.push(s.animationEnd),c.default.node,d.nameShape.isRequired,c.default.bool,c.default.bool,c.default.bool,c.default.number,c.default.number,c.default.number;var g=function(e){function t(){var n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(o))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},h(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),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,u.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",c=null,d=void 0;(0,i.default)(r,a),this.queueClassAndNode(l,r);var p=function(e){e&&e.target!==r||(clearTimeout(c),d&&d(),(0,o.default)(r,a),(0,o.default)(r,l),d&&d(),t&&t())};n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):s.transitionEnd&&(d=function(e,t){return m.length?m.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){m.length&&m.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,p))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,i.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);g.displayName="CSSTransitionGroupChild",g.propTypes={},t.default=g,e.exports=t.default},2205:(e,t,n)=>{"use strict";t.__esModule=!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},i=l(n(8994)),o=l(n(8156)),a=l(n(5099)),s=(l(n(2564)),n(276));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var c=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=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,e.call(this,n,i));return o.performAppear=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(o._handleDoneAppearing.bind(o,e,t)):o._handleDoneAppearing(e,t)},o._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performEnter=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(o._handleDoneEntering.bind(o,e,t)):o._handleDoneEntering(e,t)},o._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performLeave=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(o._handleDoneLeaving.bind(o,e,t)):o._handleDoneLeaving(e,t)},o._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)?o.keysToEnter.push(e):o.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},o.childRefs=Object.create(null),o.state={children:(0,s.getChildMapping)(n.children)},o}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),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,i.default)(r.ref,l)),t.push(o.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,o.default.createElement(this.props.component,s,t)},t}(o.default.Component);c.displayName="TransitionGroup",c.propTypes={},c.defaultProps={component:"span",childFactory:function(e){return e}},t.default=c,e.exports=t.default},72:(e,t,n)=>{"use strict";var r=o(n(4129)),i=o(n(2205));function o(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:i.default,CSSTransitionGroup:r.default}},276:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s};var r=n(8156)},9685:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},i(n(8156));var r=i(n(5099));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},1950:(e,t,n)=>{"use strict";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},i=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(8156),a=l(o),s=l(n(5099));function l(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},h=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.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},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),i(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||f(),prevId:n}:null}}]),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=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}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},1837:(e,t,n)=>{"use strict";n(7320);var r=n(8156),i=60103;if("function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},6475:(e,t)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://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")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var v=!1,y=null,b=-1,w=5,x=0;o=function(){return t.unstable_now()>=x},a=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"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,_=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(e){throw _.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,_.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},i=function(){h(b),b=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],P=[],T=1,R=null,A=3,M=!1,D=!1,z=!1;function j(e){for(var t=S(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,O(L,t)}t=S(P)}}function N(e){if(z=!1,j(e),!D)if(null!==S(L))D=!0,n(I);else{var t=S(P);null!==t&&r(N,t.startTime-e)}}function I(e,n){D=!1,z&&(z=!1,i()),M=!0;var a=A;try{for(j(n),R=S(L);null!==R&&(!(R.expirationTime>n)||e&&!o());){var s=R.callback;if(null!==s){R.callback=null,A=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===S(L)&&C(L),j(n)}else C(L);R=S(L)}if(null!==R)var c=!0;else{var u=S(P);null!==u&&r(N,u.startTime-n),c=!1}return c}finally{R=null,A=a,M=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||M||(D=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(L)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),l=s;return e={id:T++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,O(P,e),null===S(L)&&e===S(P)&&(z?i():z=!0,r(N,l-s))):(e.sortIndex=a,O(L,e),D||M||(D=!0,n(I))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=S(L);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},1250:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=o(n(2383)),l=n(8586),c=n(432),u=1.5,d=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return i(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"==typeof e.x&&(t.x=e.x),"number"==typeof e.y&&(t.y=e.y),"number"==typeof e.angle&&(t.angle=e.angle),"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.angle&&(this.angle=t.angle),"number"==typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.updateState=function(e){return this.setState(e(this.getState())),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var i=Object.assign({},a.ANIMATE_DEFAULTS,t),o=this.validateState(e),c="function"==typeof i.easing?i.easing:s.default[i.easing],u=Date.now(),d=this.getState(),p=function(){var e=(Date.now()-u)/i.duration;if(e>=1)return r.nextFrame=null,r.setState(o),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof o.x&&(n.x=d.x+(o.x-d.x)*t),"number"==typeof o.y&&(n.y=d.y+(o.y-d.y)*t),"number"==typeof o.angle&&(n.angle=d.angle+(o.angle-d.angle)*t),"number"==typeof o.ratio&&(n.ratio=d.ratio+(o.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,l.requestFrame)(p)};this.nextFrame?((0,l.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,l.requestFrame)(p)):p(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||u)},e)}else this.animate({ratio:this.ratio/u})},t.prototype.animatedUnzoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||u)},e)}else this.animate({ratio:this.ratio*u})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(c.TypedEventEmitter);t.default=d},8231:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var a=n(432);function s(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function l(e,t){var n=o(o({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}function c(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function u(e){if(void 0!==e.deltaY)return-3*e.deltaY/360;if(void 0!==e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getPosition=s,t.getMouseCoords=l,t.getWheelCoords=function(e,t){return o(o({},l(e,t)),{delta:u(e)})},t.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=u;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return i(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(8231)),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return i(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,l.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,l.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){if(0===e.button){this.startCameraState=this.renderer.getCamera().getState();var t=(0,l.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,l.getPosition)(e,this.container),i=r.x,o=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===i&&this.lastMouseY===o||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,l.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),!n.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),i=(0,l.getPosition)(e,this.container),o=i.x,a=i.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:o,y:a}),u=s.x-c.x,d=s.y-c.y,p=r.getState(),f=p.x+u,h=p.y+d;r.setState({x:f,y:h}),this.lastMouseX=o,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,l.getWheelDelta)(e);if(n){var r=(0,l.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var i=n>0?1/1.7:1.7,o=this.renderer.getCamera(),a=o.getBoundedRatio(o.getState().ratio*i),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(o.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(l.default);t.default=c},916:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.hasMoved=!1,r.touchMode=0,r.startTouchesPositions=[],r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return i(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var i=n||t.touches[0],o=new MouseEvent(e,{clientX:i.clientX,clientY:i.clientY,altKey:t.altKey,ctrlKey:t.ctrlKey});o.isFakeSigmaMouseEvent=!0,(r||this.container).dispatchEvent(o)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,c.getTouchesArray)(e.touches);if(this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouches=n,this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=l(this.startTouchesPositions,2),i=r[0],o=i.x,a=i.y,s=r[1],u=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,u-o),this.startTouchesDistance=Math.sqrt(Math.pow(u-o,2)+Math.pow(d-a,2))}this.emit("touchdown",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouches&&this.lastTouches.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouches[0],document),this.hasMoved||this.dispatchRelatedMouseEvent("click",e,this.lastTouches[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=(0,c.getTouchesArray)(e.touches),i=r.map((function(e){return(0,c.getPosition)(e,n.container)}));if(this.lastTouches=r,this.lastTouchesPositions=i,this.hasMoved||(this.hasMoved=i.some((function(e,t){var r=n.startTouchesPositions[t];return e.x!==r.x||e.y!==r.y}))),this.hasMoved){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200);var o=this.renderer.getCamera(),a=this.startCameraState;switch(this.touchMode){case 1:var s=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),u=s.x,d=s.y,p=this.renderer.viewportToFramedGraph(i[0]),f=p.x,h=p.y;o.setState({x:a.x+u-f,y:a.y+d-h});break;case 2:var m={},g=i[0],v=g.x,y=g.y,b=i[1],w=b.x,x=b.y,E=Math.atan2(x-y,w-v)-this.startTouchesAngle,_=Math.hypot(x-y,w-v)/this.startTouchesDistance,O=o.getBoundedRatio(a.ratio/_);m.ratio=O,m.angle=a.angle+E;var S=this.getDimensions(),C=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:a}),k=Math.min(S.width,S.height),L=k/S.width,P=O/k;h=y-k/2/(k/S.height),f=(t=l([(f=v-k/2/L)*Math.cos(-m.angle)-h*Math.sin(-m.angle),h*Math.cos(-m.angle)+f*Math.sin(-m.angle)],2))[0],h=t[1],m.x=C.x-f*P,m.y=C.y+h*P,o.setState(m)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}}},t}(c.default);t.default=u},2306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var i=new n(e,t),o=this.getIndex(r),a=this.cells[o];a||(a=[],this.cells[o]=a),a.push(i)},e.prototype.organize=function(){for(var e in this.cells)this.cells[e].sort(n.compare)},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,i=Math.ceil(r),o=[];for(var a in this.cells)for(var s=this.cells[a],l=0;l<Math.min(i,s.length);l++)o.push(s[l].key);return o},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,o=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||i.has(a)&&i.has(s))&&o.push(e)})),o}},9316:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var i=r(n(8884)),o=!1;function a(e){return e.x1===e.x2||e.y1===e.y2}function s(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,i={x:e.x1,y:e.y1},o={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},l=Math.min(i.x,o.x,a.x,s.x),c=Math.max(i.x,o.x,a.x,s.x),u=Math.min(i.y,o.y,a.y,s.y);return{x1:l,y1:u,x2:c,y2:u,height:Math.max(i.y,o.y,a.y,s.y)-u}}function l(e,t,n,r,i,o,a){return e<r+o&&e+n>r&&t<i+a&&t+n>i}function c(e,t,n,r,i,o,a,s){return e<i+a&&e+n>i&&t<o+s&&t+r>o}function u(e,t,n,r,i,o){var a=e<n+i/2;return t<r+o/2?a?1:2:a?3:4}t.isRectangleAligned=a,t.getCircumscribedAlignedRectangle=s,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=c;var d=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={})[5460]=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,i,a,s){for(var c=i-s,u=a-s,d=2*s,p=0,f=0;;){if(p>=5)return n[f]=n[f]||[],void n[f].push(r);var h=4*f+4,m=4*f+8,g=4*f+12,v=4*f+16,y=l(c,u,d,t[h+0],t[h+1],t[h+2],t[h+3]),b=l(c,u,d,t[m+0],t[m+1],t[m+2],t[m+3]),w=l(c,u,d,t[g+0],t[g+1],t[g+2],t[g+3]),x=l(c,u,d,t[v+0],t[v+1],t[v+2],t[v+3]),E=[y,b,w,x].reduce((function(e,t){return t?e+1:e}),0);if(0===E&&0===p)return n[5460].push(r),void(!o&&n[5460].length>=5&&(o=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===E)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(p,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(3===E)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(p,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(E>1)return n[f]=n[f]||[],void n[f].push(r);p++,y&&(f=h),b&&(f=m),w&&(f=g),x&&(f=v)}}(0,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),i=n.pop(),o=4*i+4,a=4*i+8,s=4*i+12,l=4*i+16,c=t[i+0],u=t[i+1],d=t[i+2]/2,p=t[i+3]/2;t[o+0]=c,t[o+1]=u,t[o+2]=d,t[o+3]=p,t[a+0]=c+d,t[a+1]=u,t[a+2]=d,t[a+3]=p,t[s+0]=c,t[s+1]=u+p,t[s+2]=d,t[s+3]=p,t[l+0]=c+d,t[l+1]=u+p,t[l+2]=d,t[l+3]=p,r<4&&(n.push(l,r+1),n.push(s,r+1),n.push(a,r+1),n.push(o,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={})[5460]=[],e),this},e.prototype.point=function(e,t){var n=this.containers[5460].slice(),r=0,o=0;do{this.containers[r]&&(0,i.default)(n,this.containers[r]),r=4*r+4*u(e,t,this.data[r+0],this.data[r+1],this.data[r+2],this.data[r+3]),o++}while(o<=5);return n},e.prototype.rectangle=function(e,t,n,r,o){var l=this.lastRectangle;return l&&e===l.x1&&n===l.x2&&t===l.y1&&r===l.y2&&o===l.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:r,height:o},a(this.lastRectangle)||(this.lastRectangle=s(this.lastRectangle)),this.cache=function(e,t,n,r,o,a,s){for(var l,u=[0,0],d=[];u.length;){var p=u.pop(),f=u.pop();if((l=n[f])&&(0,i.default)(d,l),!(p>=5)){var h=4*f+4,m=4*f+8,g=4*f+12,v=4*f+16,y=c(r,o,a,s,t[h+0],t[h+1],t[h+2],t[h+3]),b=c(r,o,a,s,t[m+0],t[m+1],t[m+2],t[m+3]),w=c(r,o,a,s,t[g+0],t[g+1],t[g+2],t[g+3]),x=c(r,o,a,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&u.push(h,p+1),b&&u.push(m,p+1),w&&u.push(g,p+1),x&&u.push(v,p+1)}}return d}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-r),o),(0,i.default)(this.cache,this.containers[5460])),this.cache},e}();t.default=d},9358:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var i=r(n(8953));t.Sigma=i.default;var o=r(n(1250));t.Camera=o.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=i.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o=i.edgeLabelSize,a=i.edgeLabelFont,s=i.edgeLabelWeight,l=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=l,e.font="".concat(s," ").concat(o,"px ").concat(a);var u,d,p=n.size,f=r.size,h=n.x,m=n.y,g=r.x,v=r.y,y=g-h,b=v-m,w=Math.sqrt(y*y+b*b);if(!(w<p+f)){u=((h+=y*p/w)+(g-=y*f/w))/2,d=((m+=b*p/w)+(v-=b*f/w))/2,y=g-h,b=v-m,w=Math.sqrt(y*y+b*b);var x,E=e.measureText(c).width;if(E>w){for(c+="…",E=e.measureText(c).width;E>w&&c.length>1;)c=c.slice(0,-2)+"…",E=e.measureText(c).width;if(c.length<4)return}x=y>0?b>0?Math.acos(y/w):Math.asin(b/w):b>0?Math.acos(y/w)+Math.PI:Math.asin(y/w)+Math.PI/2,e.save(),e.translate(u,d),e.rotate(x),e.fillText(c,-E/2,t.size/2+o),e.restore()}}}},4362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,o=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(o),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var s=e.measureText(t.label).width,l=Math.round(s+5),c=Math.round(r+4),u=Math.max(t.size,r/2)+2,d=Math.asin(c/2/u),p=Math.sqrt(Math.abs(Math.pow(u,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+p,t.y+c/2),e.lineTo(t.x+u+l,t.y+c/2),e.lineTo(t.x+u+l,t.y-c/2),e.lineTo(t.x+p,t.y-c/2),e.arc(t.x,t.y,u,d,-d),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,i.default)(e,t,n)}},2193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,o=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(o," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var o=function(e){function t(t,n,r,i,o){return e.call(this,t,n,r,i,o)||this}return i(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=o,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,i){this.programs.forEach((function(o){return o.process(e,t,n,r,i)}))},t}()}},1624:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i,o)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var s=t.getUniformLocation(a.program,"u_matrix");if(null===s)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=s;var l=t.getUniformLocation(a.program,"u_ratio");if(null===l)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=l;var c=t.getUniformLocation(a.program,"u_scale");if(null===c)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=c,a}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(1549).AbstractProgram);t.AbstractNodeProgram=o,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},1549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3451),i=function(){function e(e,t,n,i,o){this.array=new Float32Array,this.points=i,this.attributes=o,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=i},5696:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(4488),o=r(n(3193)),a=r(n(3653)),s=(0,i.createEdgeCompoundProgram)([a.default,o.default]);t.default=s},3193:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(577)),l=o(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=o,n.bind(),n}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=27*i,s=o+27;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=t.size||1,u=e.x,d=e.y,p=t.x,f=t.y,h=(0,a.floatColor)(n.color),m=p-u,g=f-d,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var w=27*i,x=this.array;x[w++]=p,x[w++]=f,x[w++]=-y,x[w++]=-b,x[w++]=c,x[w++]=h,x[w++]=1,x[w++]=0,x[w++]=0,x[w++]=p,x[w++]=f,x[w++]=-y,x[w++]=-b,x[w++]=c,x[w++]=h,x[w++]=0,x[w++]=1,x[w++]=0,x[w++]=p,x[w++]=f,x[w++]=-y,x[w++]=-b,x[w++]=c,x[w++]=h,x[w++]=0,x[w++]=0,x[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(n(4488).AbstractEdgeProgram);t.default=c},3653:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4488),s=n(8586),l=o(n(3574)),c=o(n(3343)),u=function(e){function t(t){var n=e.call(this,t,l.default,c.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=o;var a=t.getUniformLocation(n.program,"u_correctionRatio");if(null===a)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=a,n.canUse32BitsIndices=(0,s.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=24*i,a=o+24;o<a;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,p=t.y,f=t.size||1,h=(0,s.floatColor)(n.color),m=d-c,g=p-u,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var w=24*i,x=this.array;x[w++]=c,x[w++]=u,x[w++]=y,x[w++]=b,x[w++]=h,x[w++]=0,x[w++]=c,x[w++]=u,x[w++]=-y,x[w++]=-b,x[w++]=h,x[w++]=0,x[w++]=d,x[w++]=p,x[w++]=y,x[w++]=b,x[w++]=h,x[w++]=f,x[w++]=d,x[w++]=p,x[w++]=-y,x[w++]=-b,x[w++]=h,x[w]=-f}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(a.AbstractEdgeProgram);t.default=u},5372:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(9843)),l=o(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=o;var c=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===c)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=c,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=20*i,s=o+20;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,p=t.y,f=(0,a.floatColor)(n.color),h=d-c,m=p-u,g=h*h+m*m,v=0,y=0;g&&(v=-m*(g=1/Math.sqrt(g))*l,y=h*g*l);var b=20*i,w=this.array;w[b++]=c,w[b++]=u,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=c,w[b++]=u,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=d,w[b++]=p,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=d,w[b++]=p,w[b++]=-v,w[b++]=-y,w[b]=f}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(n(4488).AbstractEdgeProgram);t.default=c},732:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(1432)),l=o(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,1,4)||this;return n.bind(),n}return i(t,e),t.prototype.process=function(e,t,n){var r=this.array,i=1*n*4;if(t)return r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);var o=(0,a.floatColor)(e.color);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i]=o},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(n(1624).AbstractNodeProgram);t.default=c},1604:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n})()},577:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3574:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3343:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}\n";e.exports=n})()},9843:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasing effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n})()},6846:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(transparent, v_color, t);\n}\n";e.exports=n})()},1432:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3451:(e,t)=>{"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,i=t.createShader(r);if(null===i)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error("loadShader: error while compiling the shader:\n".concat(o,"\n").concat(n))}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,i=e.createProgram();if(null===i)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(i,t[n]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS))throw e.deleteProgram(i),new Error("loadProgram: error while linking the program.");return i}},9061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSettings=t.validateSettings=t.DEFAULT_EDGE_PROGRAM_CLASSES=t.DEFAULT_NODE_PROGRAM_CLASSES=t.DEFAULT_SETTINGS=void 0;var i=n(8586),o=r(n(2193)),a=r(n(4362)),s=r(n(284)),l=r(n(732)),c=r(n(5372)),u=r(n(5696));t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:o.default,hoverRenderer:a.default,edgeLabelRenderer:s.default,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},t.DEFAULT_NODE_PROGRAM_CLASSES={circle:l.default},t.DEFAULT_EDGE_PROGRAM_CLASSES={arrow:u.default,line:c.default},t.validateSettings=function(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.resolveSettings=function(e){var n=(0,i.assign)({},t.DEFAULT_SETTINGS,e);return n.nodeProgramClasses=(0,i.assign)({},t.DEFAULT_NODE_PROGRAM_CLASSES,n.nodeProgramClasses),n.edgeProgramClasses=(0,i.assign)({},t.DEFAULT_EDGE_PROGRAM_CLASSES,n.edgeProgramClasses),n}},8953:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(8884)),c=s(n(1250)),u=s(n(3834)),d=s(n(9316)),p=n(432),f=n(8586),h=n(2306),m=n(9061),g=s(n(916)),v=n(2237),y=n(8073);function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var x=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;if(i.elements={},i.canvasContexts={},i.webGLContexts={},i.activeListeners={},i.quadtree=new d.default,i.labelGrid=new h.LabelGrid,i.nodeDataCache={},i.edgeDataCache={},i.nodesWithForcedLabels=[],i.edgesWithForcedLabels=[],i.nodeExtent={x:[0,1],y:[0,1]},i.matrix=(0,v.identity)(),i.invMatrix=(0,v.identity)(),i.correctionRatio=1,i.customBBox=null,i.normalizationFunction=(0,f.createNormalizationFunction)({x:[0,1],y:[0,1]}),i.cameraSizeRatio=1,i.width=0,i.height=0,i.pixelRatio=(0,f.getPixelRatio)(),i.displayedLabels=new Set,i.highlightedNodes=new Set,i.hoveredNode=null,i.hoveredEdge=null,i.renderFrame=null,i.renderHighlightedNodesFrame=null,i.needToProcess=!1,i.needToSoftProcess=!1,i.checkEdgesEventsFrame=null,i.nodePrograms={},i.nodeHoverPrograms={},i.edgePrograms={},i.settings=(0,m.resolveSettings)(r),(0,m.validateSettings)(i.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var o in i.graph=t,i.container=n,i.createWebGLContext("edges",{preserveDrawingBuffer:!0}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes"),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse"),i.webGLContexts){var a=i.webGLContexts[o];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in i.settings.nodeProgramClasses){var l=i.settings.nodeProgramClasses[s];i.nodePrograms[s]=new l(i.webGLContexts.nodes,i);var p=l;s in i.settings.nodeHoverProgramClasses&&(p=i.settings.nodeHoverProgramClasses[s]),i.nodeHoverPrograms[s]=new p(i.webGLContexts.hoverNodes,i)}for(var s in i.settings.edgeProgramClasses){var y=i.settings.edgeProgramClasses[s];i.edgePrograms[s]=new y(i.webGLContexts.edges,i)}return i.resize(),i.camera=new c.default,i.bindCameraHandlers(),i.mouseCaptor=new u.default(i.elements.mouse,i),i.touchCaptor=new g.default(i.elements.mouse,i),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.process(),i.render(),i}return i(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),i=o({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",i))||(n=r.getContext("webgl",i)),n||(n=r.getContext("experimental-webgl",i)),this.webGLContexts[e]=n,this},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.mouseIsOnNode=function(e,t,n){var r=e.x,i=e.y,o=t.x,a=t.y;return r>o-n&&r<o+n&&i>a-n&&i<a+n&&Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))<n},t.prototype.getQuadNodes=function(e){var t=this.viewportToFramedGraph(e);return this.quadtree.point(t.x,1-t.y)},t.prototype.getNodeAtPosition=function(e){for(var t=e.x,n=e.y,r=this.getQuadNodes(e),i=1/0,o=null,a=0,s=r.length;a<s;a++){var l=r[a],c=this.nodeDataCache[l],u=this.framedGraphToViewport(c),d=this.scaleSize(c.size);if(!c.hidden&&this.mouseIsOnNode(e,u,d)){var p=Math.sqrt(Math.pow(t-u.x,2)+Math.pow(n-u.y,2));p<i&&(i=p,o=l)}}return o},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(t){var n={event:t,preventSigmaDefault:function(){t.preventSigmaDefault()}},r=e.getNodeAtPosition(t);if(r&&e.hoveredNode!==r&&!e.nodeDataCache[r].hidden)return e.hoveredNode&&e.emit("leaveNode",o(o({},n),{node:e.hoveredNode})),e.hoveredNode=r,e.emit("enterNode",o(o({},n),{node:r})),void e.scheduleHighlightedNodesRender();if(e.hoveredNode){var i=e.nodeDataCache[e.hoveredNode],a=e.framedGraphToViewport(i),s=e.scaleSize(i.size);if(!e.mouseIsOnNode(t,a,s)){var l=e.hoveredNode;return e.hoveredNode=null,e.emit("leaveNode",o(o({},n),{node:l})),void e.scheduleHighlightedNodesRender()}}!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(n):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(n),e.checkEdgesEventsFrame=null}))))};var t=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){n.preventSigmaDefault()}},i=n.original.isFakeSigmaMouseEvent?e.getNodeAtPosition(n):e.hoveredNode;if(i)return e.emit("".concat(t,"Node"),o(o({},r),{node:i}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var a=e.getEdgeAtPoint(n.x,n.y);if(a)return e.emit("".concat(t,"Edge"),o(o({},r),{edge:a}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=t("click"),this.activeListeners.handleRightClick=t("rightClick"),this.activeListeners.handleDoubleClick=t("doubleClick"),this.activeListeners.handleWheel=t("wheel"),this.activeListeners.handleDown=t("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.dropNodeGraphUpdate=function(t){delete e.nodeDataCache[t.key],e.hoveredNode===t.key&&(e.hoveredNode=null),e.activeListeners.graphUpdate()},this.activeListeners.dropEdgeGraphUpdate=function(t){delete e.edgeDataCache[t.key],e.hoveredEdge===t.key&&(e.hoveredEdge=null),e.activeListeners.graphUpdate()},this.activeListeners.clearEdgesGraphUpdate=function(){e.edgeDataCache={},e.hoveredEdge=null,e.activeListeners.graphUpdate()},this.activeListeners.clearGraphUpdate=function(){e.nodeDataCache={},e.hoveredNode=null,e.activeListeners.clearEdgesGraphUpdate()},t.on("nodeAdded",this.activeListeners.graphUpdate),t.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.graphUpdate),t.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),t.on("cleared",this.activeListeners.clearGraphUpdate),this},t.prototype.unbindGraphHandlers=function(){var e=this.graph;e.removeListener("nodeAdded",this.activeListeners.graphUpdate),e.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.graphUpdate),e.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),e.removeListener("cleared",this.activeListeners.clearGraphUpdate)},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",o(o({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",o(o({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,i=this,o=this.edgeDataCache,s=this.nodeDataCache;if(!(0,y.isPixelColored)(this.webGLContexts.edges,e*this.pixelRatio,t*this.pixelRatio))return null;var l=this.viewportToGraph({x:e,y:t}),c=l.x,u=l.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,l){var c=a.x,u=a.y,p=l.x,f=l.y;if(o[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==p||u!==f){var h=Math.sqrt(Math.pow(p-c,2)+Math.pow(f-u,2)),m=i.graphToViewport({x:c,y:u}),g=m.x,v=m.y,y=i.graphToViewport({x:p,y:f}),b=y.x,w=y.y,x=Math.sqrt(Math.pow(b-g,2)+Math.pow(w-v,2));return d=h/x,!0}})),!d)return null;var p=this.graph.filterEdges((function(e,t,n,r,a,l){return!(o[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,y.doEdgeCollideWithPoint)(c,u,a.x,a.y,l.x,l.y,o[e].size*d/i.cameraSizeRatio)||void 0)}));if(0===p.length)return null;var f=p[p.length-1],h=-1/0;try{for(var m=a(p),g=m.next();!g.done;g=m.next()){var v=g.value,b=this.graph.getEdgeAttribute(v,"zIndex");b>=h&&(f=v,h=b)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return f},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,i=this.getDimensions(),o=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(i,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,f.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new c.default,l=(0,f.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var u={},d=n.nodes(),p=0,h=d.length;p<h;p++){var m=d[p],g=Object.assign({},n.getNodeAttributes(m));r.nodeReducer&&(g=r.nodeReducer(m,g)),u[(y=b(this.settings,m,g)).type]=(u[y.type]||0)+1,this.nodeDataCache[m]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(m),this.settings.zIndex&&(y.zIndex<o[0]&&(o[0]=y.zIndex),y.zIndex>o[1]&&(o[1]=y.zIndex))}for(var v in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for node type "'.concat(v,'"!'));e||this.nodePrograms[v].allocate(u[v]||0),u[v]=0}for(this.settings.zIndex&&o[0]!==o[1]&&(d=(0,f.zIndexOrdering)(o,(function(e){return t.nodeDataCache[e].zIndex}),d)),p=0,h=d.length;p<h;p++){m=d[p];var y=this.nodeDataCache[m];this.quadtree.add(m,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(m,y.size,this.framedGraphToViewport(y,{matrix:l}));var x=this.nodePrograms[y.type];if(!x)throw new Error('Sigma: could not find a suitable program for node type "'.concat(y.type,'"!'));x.process(y,y.hidden,u[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(m)}this.labelGrid.organize();var E={},_=n.edges();for(p=0,h=_.length;p<h;p++){var O=_[p];g=Object.assign({},n.getEdgeAttributes(O)),r.edgeReducer&&(g=r.edgeReducer(O,g)),E[(y=w(this.settings,0,g)).type]=(E[y.type]||0)+1,this.edgeDataCache[O]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(O),this.settings.zIndex&&(y.zIndex<a[0]&&(a[0]=y.zIndex),y.zIndex>a[1]&&(a[1]=y.zIndex))}for(var v in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(v,'"!'));e||this.edgePrograms[v].allocate(E[v]||0),E[v]=0}for(this.settings.zIndex&&a[0]!==a[1]&&(_=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),_)),p=0,h=_.length;p<h;p++){O=_[p],y=this.edgeDataCache[O];var S=n.extremities(O),C=this.nodeDataCache[S[0]],k=this.nodeDataCache[S[1]],L=y.hidden||C.hidden||k.hidden;this.edgePrograms[y.type].process(C,k,y,L,E[y.type]++)}for(var v in this.edgePrograms){var P=this.edgePrograms[v];e||"function"!=typeof P.computeIndices||P.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e=this.camera.getState(),t=this.labelGrid.getLabelsToDisplay(e.ratio,this.settings.labelDensity);(0,l.default)(t,this.nodesWithForcedLabels),this.displayedLabels=new Set;for(var n=this.canvasContexts.labels,r=0,i=t.length;r<i;r++){var a=t[r],s=this.nodeDataCache[a];if(!this.displayedLabels.has(a)&&!s.hidden){var c=this.framedGraphToViewport(s),u=c.x,d=c.y,p=this.scaleSize(s.size);!s.forceLabel&&p<this.settings.labelRenderedSizeThreshold||u<-150||u>this.width+150||d<-50||d>this.height+50||(this.displayedLabels.add(a),this.settings.labelRenderer(n,o(o({key:a},s),{size:p,x:u,y:d}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,h.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,i=t.length;r<i;r++){var a=t[r],s=this.graph.extremities(a),l=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],u=this.edgeDataCache[a];n.has(a)||u.hidden||l.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,o(o({key:a},u),{size:this.scaleSize(u.size)}),o(o(o({key:s[0]},l),this.framedGraphToViewport(l)),{size:this.scaleSize(l.size)}),o(o(o({key:s[1]},c),this.framedGraphToViewport(c)),{size:this.scaleSize(c.size)}),this.settings),n.add(a))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],i=e.framedGraphToViewport(r),a=i.x,s=i.y,l=e.scaleSize(r.size);e.settings.hoverRenderer(t,o(o({key:n},r),{size:l,x:a,y:s}),e.settings)}(n)}));var r={};for(var i in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.nodeHoverPrograms)this.nodeHoverPrograms[i].allocate(r[i]||0),r[i]=0;for(var i in n.forEach((function(t){var n=e.nodeDataCache[t];e.nodeHoverPrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.nodeHoverPrograms){var a=this.nodeHoverPrograms[i];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:this.pixelRatio})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){var e=this;this.emit("beforeRender");var t=function(){return e.emit("afterRender"),e};if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return t();var n=this.mouseCaptor,r=this.camera.isAnimated()||n.isMoving||n.draggedEvents||n.currentWheelDirection,i=this.camera.getState(),o=this.getDimensions(),a=this.getGraphDimensions(),s=this.getSetting("stagePadding")||0;for(var l in this.matrix=(0,f.matrixFromCamera)(i,o,a,s),this.invMatrix=(0,f.matrixFromCamera)(i,o,a,s,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,i,o),this.nodePrograms)(c=this.nodePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio});if(!this.settings.hideEdgesOnMove||!r)for(var l in this.edgePrograms){var c;(c=this.edgePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio})}return this.settings.hideLabelsOnMove&&r||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),t()},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getContainer=function(){return this.container},t.prototype.getGraph=function(){return this.graph},t.prototype.setGraph=function(e){e!==this.graph&&(this.unbindGraphHandlers(),this.nodeDataCache={},this.edgeDataCache={},this.displayedLabels.clear(),this.highlightedNodes.clear(),this.hoveredNode=null,this.hoveredEdge=null,this.nodesWithForcedLabels.length=0,this.edgesWithForcedLabels.length=0,null!==this.checkEdgesEventsFrame&&((0,f.cancelFrame)(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=e,this.bindGraphHandlers(),this.process(),this.render())},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return o({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,m.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,m.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=(0,f.getPixelRatio)(),0===this.width){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.width=1}if(0===this.height){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.height=1}if(e===this.width&&t===this.height)return this;for(var n in this.emit("resize"),this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),1!==this.pixelRatio&&this.canvasContexts[n].scale(this.pixelRatio,this.pixelRatio);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),this.webGLContexts[n].viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,i=n.angle,o=n.x,a=n.y,s=t/r,l={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),u=this.viewportToFramedGraph(l);return{angle:i,x:(c.x-u.x)*(1-s)+o,y:(c.y-u.y)*(1-s)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),i=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-i.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,i=(0,v.multiplyVec2)(r,e);return{x:(1+i.x)*this.width/2,y:(1-i.y)*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,i=(0,v.multiplyVec2)(r,{x:e.x/this.width*2-1,y:1-e.y/this.height*2});return isNaN(i.x)&&(i.x=0),isNaN(i.y)&&(i.y=0),i},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,f.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.quadtree=new d.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return o({},this.elements)},t}(p.TypedEventEmitter);t.default=x},432:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var o=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return i(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=o},1181:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var i=n(8586),o=r(n(2383));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var s=Object.assign({},t.ANIMATE_DEFAULTS,r),l="function"==typeof s.easing?s.easing:o.default[s.easing],c=Date.now(),u={};for(var d in n){var p=n[d];for(var f in u[d]={},p)u[d][f]=e.getNodeAttribute(d,f)}var h=null,m=function(){h=null;var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var o=n[r];for(var d in o)e.setNodeAttribute(r,d,o[d])}"function"==typeof a&&a()}else{for(var r in t=l(t),n){o=n[r];var p=u[r];for(var d in o)e.setNodeAttribute(r,d,o[d]*t+p[d]*(1-t))}h=(0,i.requestFrame)(m)}};return m(),function(){h&&(0,i.cancelFrame)(h)}}},1078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},2383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0,t.linear=function(e){return e},t.quadraticIn=function(e){return e*e},t.quadraticOut=function(e){return e*(2-e)},t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.cubicIn=function(e){return e*e*e},t.cubicOut=function(e){return--e*e*e+1},t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},8073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,i,o,a){return!(e<n-a&&e<i-a||t<r-a&&t<o-a||e>n+a&&e>i+a||t>r+a&&t>o+a||!(Math.abs((i-n)*(r-t)-(n-e)*(o-r))/Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2))<a/2))}},8586:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.floatArrayColor=t.parseColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var o=i(n(1880)),a=n(2237),s=n(1078);function l(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=l,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,i=t.length;r<i;r++){var o=t[r];o&&Object.assign(e,o)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var i=0,o=n.length;i<o;i++){var a=n[i];if(a)for(var s in a)l(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!=typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var i in t)r.style[i]=t[i];if(n)for(var i in n)r.setAttribute(i,n[i]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode((function(e,o){var a=o.x,s=o.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>i&&(i=s)})),{x:[t,n],y:[r,i]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],i=t[1],o=r(e.y,2),a=o[0],s=o[1],l=Math.max(i-n,s-a),c=(i+n)/2,u=(s+a)/2;(0===l||Math.abs(l)===1/0||isNaN(l))&&(l=1),isNaN(c)&&(c=0),isNaN(u)&&(u=0);var d=function(e){return{x:.5+(e.x-c)/l,y:.5+(e.y-u)/l}};return d.applyTo=function(e){e.x=.5+(e.x-c)/l,e.y=.5+(e.y-u)/l},d.inverse=function(e){return{x:c+l*(e.x-.5),y:u+l*(e.y-.5)}},d.ratio=l,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,i=t(n)||0;return r<i?-1:r>i?1:0}))};var c=new Int8Array(4),u=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),p=/^\s*rgba?\s*\(/,f=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function h(e){var t=0,n=0,r=0,i=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),9===e.length&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(p.test(e)){var o=e.match(f);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}return{r:t,g:n,b:r,a:i}}t.parseColor=h;var m={};for(var g in s.HTML_COLORS)m[g]=v(s.HTML_COLORS[g]),m[s.HTML_COLORS[g]]=m[g];function v(e){if(void 0!==m[e])return m[e];var t=h(e),n=t.r,r=t.g,i=t.b,o=t.a;o=255*o|0,u[0]=4278190079&(o<<24|i<<16|r<<8|n);var a=d[0];return m[e]=a,a}function y(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatArrayColor=function(e){var t=h(e=s.HTML_COLORS[e]||e),n=t.r,r=t.g,i=t.b,o=t.a;return new Float32Array([n/255,r/255,i/255,o])},t.floatColor=v,t.getCorrectionRatio=y,t.matrixFromCamera=function(e,t,n,r,i){var o=e.angle,s=e.ratio,l=e.x,c=e.y,u=t.width,d=t.height,p=(0,a.identity)(),f=Math.min(u,d)-2*r,h=y(t,n);return i?((0,a.multiply)(p,(0,a.translate)((0,a.identity)(),l,c)),(0,a.multiply)(p,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(p,(0,a.rotate)((0,a.identity)(),o)),(0,a.multiply)(p,(0,a.scale)((0,a.identity)(),u/f/2/h,d/f/2/h))):((0,a.multiply)(p,(0,a.scale)((0,a.identity)(),f/u*2*h,f/d*2*h)),(0,a.multiply)(p,(0,a.rotate)((0,a.identity)(),-o)),(0,a.multiply)(p,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(p,(0,a.translate)((0,a.identity)(),-l,-c))),p},t.getMatrixImpact=function(e,t,n){var r=(0,a.multiplyVec2)(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,o=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/n.width},t.extractPixel=function(e,t,n,r){var i=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,i),i},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,o.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec2=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"==typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=t[0],p=t[1],f=t[2],h=t[3],m=t[4],g=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+p*o+f*l,e[1]=d*r+p*a+f*c,e[2]=d*i+p*s+f*u,e[3]=h*n+m*o+g*l,e[4]=h*r+m*a+g*c,e[5]=h*i+m*s+g*u,e[6]=v*n+y*o+b*l,e[7]=v*r+y*a+b*c,e[8]=v*i+y*s+b*u,e},t.multiplyVec2=function(e,t,n){void 0===n&&(n=1);var r=e[0],i=e[1],o=e[3],a=e[4],s=e[6],l=e[7],c=t.x,u=t.y;return{x:c*r+u*o+s*n,y:c*i+u*a+l*n}}},2564:e=>{"use strict";e.exports=function(){}},1884:t=>{"use strict";t.exports=e},8282:e=>{"use strict";e.exports=t},6496:e=>{"use strict";e.exports=n},5635:e=>{"use strict";e.exports=r},4294:e=>{"use strict";e.exports=i},8668:e=>{"use strict";e.exports=o},3839:e=>{"use strict";e.exports=a},518:e=>{"use strict";e.exports=s},8475:e=>{"use strict";e.exports=l},6236:e=>{"use strict";e.exports=c},6439:e=>{"use strict";e.exports=u},4501:e=>{"use strict";e.exports=d},7499:e=>{"use strict";e.exports=p},901:e=>{"use strict";e.exports=f},5743:e=>{"use strict";e.exports=h},5206:e=>{"use strict";e.exports=m},2811:e=>{"use strict";e.exports=g},6091:e=>{"use strict";e.exports=v},4539:e=>{"use strict";e.exports=y},6825:e=>{"use strict";e.exports=b},3463:e=>{"use strict";e.exports=w},3643:e=>{"use strict";e.exports=x},9233:e=>{"use strict";e.exports=E},3732:e=>{"use strict";e.exports=_},8214:e=>{"use strict";e.exports=O},3526:e=>{"use strict";e.exports=S},3222:e=>{"use strict";e.exports=C},4436:e=>{"use strict";e.exports=k},5788:e=>{"use strict";e.exports=L},1733:e=>{"use strict";e.exports=P},3734:e=>{"use strict";e.exports=T},2600:e=>{"use strict";e.exports=R},5608:e=>{"use strict";e.exports=A},9850:e=>{"use strict";e.exports=M},8012:e=>{"use strict";e.exports=D},8878:e=>{"use strict";e.exports=z},918:e=>{"use strict";e.exports=j},1159:e=>{"use strict";e.exports=N},5681:e=>{"use strict";e.exports=I},7290:e=>{"use strict";e.exports=F},6038:e=>{"use strict";e.exports=B},3627:e=>{"use strict";e.exports=G},8759:e=>{"use strict";e.exports=U},4841:e=>{"use strict";e.exports=H},7655:e=>{"use strict";e.exports=W},3962:e=>{"use strict";e.exports=q},9881:e=>{"use strict";e.exports=V},1230:e=>{"use strict";e.exports=$},8310:e=>{"use strict";e.exports=Y},2308:e=>{"use strict";e.exports=Z},2396:e=>{"use strict";e.exports=X},3192:e=>{"use strict";e.exports=K},5099:e=>{"use strict";e.exports=Q},3288:e=>{"use strict";e.exports=J},8156:e=>{"use strict";e.exports=ee},7111:e=>{"use strict";e.exports=te},4756:e=>{"use strict";e.exports=ne},5751:e=>{"use strict";e.exports=re},5297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3100:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8870:(e,t,n)=>{var r=n(7739);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6290:(e,t,n)=>{var r=n(7739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8230:(e,t,n)=>{var r=n(8560);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},421:(e,t,n)=>{var r=n(7425).default,i=n(5297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8064:(e,t,n)=>{var r=n(7425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7739:(e,t,n)=>{var r=n(7425).default,i=n(8064);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},oe={};function ae(e){var t=oe[e];if(void 0!==t)return t.exports;var n=oe[e]={id:e,loaded:!1,exports:{}};return ie[e].call(n.exports,n,n.exports,ae),n.loaded=!0,n.exports}ae.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return ae.d(t,{a:t}),t},ae.d=(e,t)=>{for(var n in t)ae.o(t,n)&&!ae.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},ae.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),ae.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ae.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},ae.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var se={};return(()=>{"use strict";ae.r(se),ae.d(se,{DataModelScreen:()=>Qh});var e=ae(8156),t=ae.n(e),n=ae(9881),r=ae.n(n),i=ae(3962),o=ae.n(i);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var s=ae(3192),l=ae.n(s);const c={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},u={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},d=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class p{constructor({locale:e,formats:t,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=c,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(d);const n="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?n:n.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;if(e.isUTC())return"UTC";const i=null==(t=e._z)?void 0:t.name;return null!=(n=null!=i?i:null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system"},this.setTimezone=(e,t)=>{var n,r;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(d)}const i="default"===t?null!=(n=null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system":t,o=e.clone();return o.tz(i),o},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||l().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(l().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?l().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>l().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let i=0,o=n;const a=[];for(;o.isBefore(r);){const e=Math.floor(i/7);a[e]=a[e]||[],a[e].push(o),o=o.clone().add(1,"day"),i+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),i=[];let o=n;for(;o.isBefore(r);)i.push(o),o=o.clone().add(1,"year");return i},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?l().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=n||l(),this.locale=e,this.formats=a({},u,t)}}function f(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var h=ae(5099),m=ae.n(h),g=ae(7655),v=ae(2322);const y=["localeText"],b=e.createContext(null),w=function(t){var n;const{localeText:r}=t,i=f(t,y),{utils:o,localeText:s}=null!=(n=e.useContext(b))?n:{utils:void 0,localeText:void 0},l=(0,g.useThemeProps)({props:i,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:u,dateFormats:d,dateLibInstance:p,adapterLocale:h,localeText:m}=l,w=e.useMemo((()=>a({},m,s,r)),[m,s,r]),x=e.useMemo((()=>{if(!u)return o||null;const e=new u({locale:h,formats:d,instance:p});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[u,h,d,p,o]),E=e.useMemo((()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null),[x]),_=e.useMemo((()=>({utils:x,defaultDates:E,localeText:w})),[E,x,w]);return(0,v.jsx)(b.Provider,{value:_,children:c})};var x=ae(3288),E=ae(2396),_=ae(4756),O=ae(2308),S=ae.n(O);const C=()=>{const t=(0,_.useSelector)(S().selectors.getMetadata);return{entityTypes:(0,e.useMemo)((()=>t.entityTypes.filter((0,x.complement)(E.isAbstractEntityType))),[t.entityTypes]),relationTypes:t.relationTypes,interactionTypes:t.interactionTypes}};var k=ae(5751),L=ae.n(k),P=ae(6038),T=ae.n(P),R=ae(8759),A=ae.n(R),M="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};const D="object"===("undefined"==typeof window?"undefined":M(window))&&"object"===("undefined"==typeof document?"undefined":M(document))&&9===document.nodeType;function z(e){return z="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},z(e)}function j(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==z(t)?t:t+""}function N(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,j(r.key),r)}}function I(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F(e,t)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U={}.constructor;function H(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(H);if(e.constructor!==U)return e;var t={};for(var n in e)t[n]=H(e[n]);return t}function W(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=H(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var q=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},V=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=q(e[n]," ");else t=q(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function $(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Y(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Z(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=$(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Y(p+":"+c+V(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Y(h+":"+c+V(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Y(g+":"+c+V(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Y(""+e+c+"{"+r,--o)+Y("}",o)):r}var X=/([[\].#*$><+~=|^:(),"'`\s])/g,K="undefined"!=typeof CSS&&CSS.escape,Q=function(e){return K?K(e):e.replace(X,"\\$1")},J=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),ee=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(G(G(i)),s),i.selectorText="."+Q(i.id)),i}B(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=V(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?a({},e,{allowEmpty:!0}):e;return Z(this.selectorText,this.style,n)},I(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(J),te={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new ee(e,t,n)}},ne={indent:1,children:!0},re=/@([\w-]+)/,ie=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(re);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Te(a({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=ne);var t=$(e).linebreak;if(null==e.indent&&(e.indent=ne.indent),null==e.children&&(e.children=ne.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),oe=/@container|@media|@supports\s+/,le={onCreateRule:function(e,t,n){return oe.test(e)?new ie(e,t,n):null}},ce={indent:1,children:!0},ue=/@keyframes\s+([\w-]+)/,de=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ue);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:Q(s(this,o)),this.rules=new Te(a({},n,{parent:this})),t)this.rules.add(l,t[l],a({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ce);var t=$(e).linebreak;if(null==e.indent&&(e.indent=ce.indent),null==e.children&&(e.children=ce.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),pe=/@keyframes\s+/,fe=/\$([\w-]+)/g,he=function(e,t){return"string"==typeof e?e.replace(fe,(function(e,n){return n in t?t[n]:e})):e},me=function(e,t,n){var r=e[t],i=he(r,n);i!==r&&(e[t]=i)},ge={onCreateRule:function(e,t,n){return"string"==typeof e&&pe.test(e)?new de(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&me(e,"animation-name",n.keyframes),"animation"in e&&me(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return he(e,r.keyframes);default:return e}}},ve=function(e){function t(){return e.apply(this,arguments)||this}return B(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?a({},e,{allowEmpty:!0}):e;return Z(this.key,this.style,n)},t}(J),ye={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ve(e,t,n):null}},be=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=$(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Z(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Z(this.at,this.style,e)},e}(),we=/@font-face/,xe={onCreateRule:function(e,t,n){return we.test(e)?new be(e,t,n):null}},Ee=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Z(this.key,this.style,e)},e}(),_e={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ee(e,t,n):null}},Oe=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Se={"@charset":!0,"@import":!0,"@namespace":!0},Ce={onCreateRule:function(e,t,n){return e in Se?new Oe(e,t,n):null}},ke=[te,le,ge,ye,xe,_e,Ce],Le={process:!0},Pe={force:!0,process:!0},Te=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,s=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,d=a({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+Q(this.classes[p]));var f=W(p,t,d);if(!f)return null;this.register(f);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=a({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof ee?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof de&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof ee?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof de&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Le);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Pe)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Pe)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=$(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Re=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=a({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Te(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Ae=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Me=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=f(t,["attached"]),i=$(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},I(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),De=new Me,ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),je="2f1acc6c3a606b082e5eef5e54414ffb";null==ze[je]&&(ze[je]=0);var Ne=ze[je]++,Ie=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Ne+i+t:o+n.key+"-"+Ne+(i?"-"+i:"")+"-"+t}},Fe=function(e){var t;return function(){return t||(t=e()),t}},Be=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Ge=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=V(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ue=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},He=function(e,t){return e.selectorText=t,e.selectorText===t},We=Fe((function(){return document.querySelector("head")}));var qe=Fe((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ve=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},$e=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ye=function(){function e(e){this.getPropertyValue=Be,this.setProperty=Ge,this.removeProperty=Ue,this.setSelector=He,this.hasInsertedRules=!1,this.cssRules=[],e&&De.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=qe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=De.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=We(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else We().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=$e(n,t);if(!1===(i=Ve(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=$e(n,t),l=Ve(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Re&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ze=0,Xe=function(){function e(e){this.id=Ze++,this.version="10.10.0",this.plugins=new Ae,this.options={id:{minify:!1},createGenerateId:Ie,Renderer:D?Ye:null,plugins:[]},this.generateId=Ie({minify:!1});for(var t=0;t<ke.length;t++)this.plugins.use(ke[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=a({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===De.index?0:De.index+1);var r=new Re(e,a({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),De.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=a({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=W(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ke=function(e){return new Xe(e)},Qe="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Je(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Je(r);o&&(t||(t={}),t[n]=o)}}return t}function et(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const i=a({},t);return Object.keys(n).forEach((e=>{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}Ke();const tt={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},nt=tt,rt=e.createContext(null);const it="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var at=Date.now(),st="fnValues"+at,lt="fnStyle"+ ++at;var ct="@global",ut="@global ",dt=function(){function e(e,t,n){for(var r in this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Te(a({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),pt=function(){function e(e,t,n){this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(ut.length);this.rule=n.jss.createRule(r,t,a({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ft=/\s*,\s*/g;function ht(e,t){for(var n=e.split(ft),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var mt=/\s*,\s*/g,gt=/&/g,vt=/\$([\w-]+)/g;var yt=/[A-Z]/g,bt=/^ms-/,wt={};function xt(e){return"-"+e.toLowerCase()}const Et=function(e){if(wt.hasOwnProperty(e))return wt[e];var t=e.replace(yt,xt);return wt[e]=bt.test(t)?"-"+t:t};function _t(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:Et(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(_t):t.fallbacks=_t(e.fallbacks)),t}var Ot=Qe&&CSS?CSS.px:"px",St=Qe&&CSS?CSS.ms:"ms",Ct=Qe&&CSS?CSS.percent:"%";function kt(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Lt=kt({"animation-delay":St,"animation-duration":St,"background-position":Ot,"background-position-x":Ot,"background-position-y":Ot,"background-size":Ot,border:Ot,"border-bottom":Ot,"border-bottom-left-radius":Ot,"border-bottom-right-radius":Ot,"border-bottom-width":Ot,"border-left":Ot,"border-left-width":Ot,"border-radius":Ot,"border-right":Ot,"border-right-width":Ot,"border-top":Ot,"border-top-left-radius":Ot,"border-top-right-radius":Ot,"border-top-width":Ot,"border-width":Ot,"border-block":Ot,"border-block-end":Ot,"border-block-end-width":Ot,"border-block-start":Ot,"border-block-start-width":Ot,"border-block-width":Ot,"border-inline":Ot,"border-inline-end":Ot,"border-inline-end-width":Ot,"border-inline-start":Ot,"border-inline-start-width":Ot,"border-inline-width":Ot,"border-start-start-radius":Ot,"border-start-end-radius":Ot,"border-end-start-radius":Ot,"border-end-end-radius":Ot,margin:Ot,"margin-bottom":Ot,"margin-left":Ot,"margin-right":Ot,"margin-top":Ot,"margin-block":Ot,"margin-block-end":Ot,"margin-block-start":Ot,"margin-inline":Ot,"margin-inline-end":Ot,"margin-inline-start":Ot,padding:Ot,"padding-bottom":Ot,"padding-left":Ot,"padding-right":Ot,"padding-top":Ot,"padding-block":Ot,"padding-block-end":Ot,"padding-block-start":Ot,"padding-inline":Ot,"padding-inline-end":Ot,"padding-inline-start":Ot,"mask-position-x":Ot,"mask-position-y":Ot,"mask-size":Ot,height:Ot,width:Ot,"min-height":Ot,"max-height":Ot,"min-width":Ot,"max-width":Ot,bottom:Ot,left:Ot,top:Ot,right:Ot,inset:Ot,"inset-block":Ot,"inset-block-end":Ot,"inset-block-start":Ot,"inset-inline":Ot,"inset-inline-end":Ot,"inset-inline-start":Ot,"box-shadow":Ot,"text-shadow":Ot,"column-gap":Ot,"column-rule":Ot,"column-rule-width":Ot,"column-width":Ot,"font-size":Ot,"font-size-delta":Ot,"letter-spacing":Ot,"text-decoration-thickness":Ot,"text-indent":Ot,"text-stroke":Ot,"text-stroke-width":Ot,"word-spacing":Ot,motion:Ot,"motion-offset":Ot,outline:Ot,"outline-offset":Ot,"outline-width":Ot,perspective:Ot,"perspective-origin-x":Ct,"perspective-origin-y":Ct,"transform-origin":Ct,"transform-origin-x":Ct,"transform-origin-y":Ct,"transform-origin-z":Ct,"transition-delay":St,"transition-duration":St,"vertical-align":Ot,"flex-basis":Ot,"shape-margin":Ot,size:Ot,gap:Ot,grid:Ot,"grid-gap":Ot,"row-gap":Ot,"grid-row-gap":Ot,"grid-column-gap":Ot,"grid-template-rows":Ot,"grid-template-columns":Ot,"grid-auto-rows":Ot,"grid-auto-columns":Ot,"box-shadow-x":Ot,"box-shadow-y":Ot,"box-shadow-blur":Ot,"box-shadow-spread":Ot,"font-line-height":Ot,"text-shadow-x":Ot,"text-shadow-y":Ot,"text-shadow-blur":Ot});function Pt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Pt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Pt(i,t[i],n);else for(var o in t)t[o]=Pt(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Lt[e];return!a||0===t&&a===Ot?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rt(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}function At(e){return function(e){if(Array.isArray(e))return Tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mt="",Dt="",zt="",jt="",Nt=D&&"ontouchstart"in document.documentElement;if(D){var It={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ft=document.createElement("p").style;for(var Bt in It)if(Bt+"Transform"in Ft){Mt=Bt,Dt=It[Bt];break}"Webkit"===Mt&&"msHyphens"in Ft&&(Mt="ms",Dt=It.ms,jt="edge"),"Webkit"===Mt&&"-apple-trailing-word"in Ft&&(zt="apple")}var Gt=Mt,Ut=Dt,Ht=zt,Wt=jt,qt=Nt,Vt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Gt?"-webkit-"+e:Ut+e)}},$t={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Gt?Ut+"print-"+e:e)}},Yt=/[-\s]+(.)?/g;function Zt(e,t){return t?t.toUpperCase():""}function Xt(e){return e.replace(Yt,Zt)}function Kt(e){return Xt("-"+e)}var Qt,Jt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Gt){var n="mask-image";if(Xt(n)in t)return e;if(Gt+Kt(n)in t)return Ut+e}return e}},en={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ht||qt?e:Ut+e)}},tn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ut+e)}},nn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ut+e)}},rn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Gt||"ms"===Gt&&"edge"!==Wt?Ut+e:e)}},on={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Gt||"ms"===Gt||"apple"===Ht?Ut+e:e)}},an={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Gt?"WebkitColumn"+Kt(e)in t&&Ut+"column-"+e:"Moz"===Gt&&"page"+Kt(e)in t&&"page-"+e)}},sn={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Gt)return e;var n=e.replace("-inline","");return Gt+Kt(n)in t&&Ut+n}},ln={supportedProperty:function(e,t){return Xt(e)in t&&e}},cn={supportedProperty:function(e,t){var n=Kt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Gt+n in t?Ut+e:"Webkit"!==Gt&&"Webkit"+n in t&&"-webkit-"+e}},un={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Gt?""+Ut+e:e)}},dn={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Gt?Ut+"scroll-chaining":e)}},pn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fn={supportedProperty:function(e,t){var n=pn[e];return!!n&&Gt+Kt(n)in t&&Ut+n}},hn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},mn=Object.keys(hn),gn=function(e){return Ut+e},vn={supportedProperty:function(e,t,n){var r=n.multiple;if(mn.indexOf(e)>-1){var i=hn[e];if(!Array.isArray(i))return Gt+Kt(i)in t&&Ut+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Gt+Kt(i[0])in t))return!1;return i.map(gn)}return!1}},yn=[Vt,$t,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un,dn,fn,vn],bn=yn.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),wn=yn.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,At(t.noPrefill)),e}),[]),xn={};if(D){Qt=document.createElement("p");var En=window.getComputedStyle(document.documentElement,"");for(var _n in En)isNaN(_n)||(xn[En[_n]]=En[_n]);wn.forEach((function(e){return delete xn[e]}))}function On(e,t){if(void 0===t&&(t={}),!Qt)return e;if(null!=xn[e])return xn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Qt.style);for(var n=0;n<bn.length&&(xn[e]=bn[n](e,Qt.style,t),!xn[e]);n++);try{Qt.style[e]=""}catch(e){return!1}return xn[e]}var Sn,Cn={},kn={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ln=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pn(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?On(t):", "+On(n))||t||n}function Tn(e,t){var n=t;if(!Sn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Cn[r])return Cn[r];try{Sn.style[e]=n}catch(e){return Cn[r]=!1,!1}if(kn[e])n=n.replace(Ln,Pn);else if(""===Sn.style[e]&&("-ms-flex"===(n=Ut+n)&&(Sn.style[e]="-ms-flexbox"),Sn.style[e]=n,""===Sn.style[e]))return Cn[r]=!1,!1;return Sn.style[e]="",Cn[r]=n,Cn[r]}D&&(Sn=document.createElement("p"));const Rn=Ke({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=W(e,{},n);return r[lt]=t,r},onProcessStyle:function(e,t){if(st in t||lt in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[st]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[lt];o&&(i.style=o(e)||{});var a=i[st];if(a)for(var s in a)i.prop(s,a[s](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===ct)return new dt(e,t,n);if("@"===e[0]&&e.substr(0,ut.length)===ut)return new pt(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[ct]:null;if(i){for(var o in i)t.addRule(o,i[o],a({},n,{selector:ht(o,e.selector)}));delete r[ct]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,ct.length)===ct){var o=ht(i.substr(ct.length),e.selector);t.addRule(o,r[i],a({},n,{selector:o})),delete r[i]}}(e,t))}},function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(mt),r=e.split(mt),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(gt,a):a+" "+l}return i}function n(e,t,n){if(n)return a({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=a({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,l,c=i,u=c.options.parent;for(var d in r){var p=-1!==d.indexOf("&"),f="@"===d[0];if(p||f){if(s=n(c,u,s),p){var h=t(d,c.selector);l||(l=e(u,o)),h=h.replace(vt,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],a({},s,{selector:h})):u.addRule(m,r[d],a({},s,{selector:h}))}else f&&u.addRule(d,{},s).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=_t(e[t]);return e}return _t(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Et(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=kt(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Pt(r,e[r],t);return e},onChangeValue:function(e,n){return Pt(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=On(n);o&&o!==n&&(i=!0);var a=!1,s=Tn(o,V(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Gt?e:"@"+Ut+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Tn(t,V(e))||e}}}(),(Dn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Dn),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return n}})]}),An={disableGeneration:!1,generateClassName:function(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,i=""===r?"":`${r}-`;let o=0;const a=()=>(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==ot.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[it]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),jss:Rn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Mn=e.createContext(An);var Dn;let zn=-1e9;function jn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Nn(e){if(!jn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Nn(e[n])})),t}function In(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return jn(e)&&jn(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(jn(t[i])&&i in e&&jn(e[i])?r[i]=In(e[i],t[i],n):n.clone?r[i]=jn(t[i])?Nn(t[i]):t[i]:r[i]=t[i])})),r}function Fn(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Bn=["variant"];function Gn(e){return 0===e.length}const Un={},Hn=["name","classNamePrefix","Component","defaultTheme"];function Wn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let s=nt.get(n.sheetsManager,r,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},nt.set(n.sheetsManager,r,t,s));const l=a({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(0===s.refs){let e;n.sheetsCache&&(e=nt.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,a({link:!1},l)),e.attach(),n.sheetsCache&&nt.set(n.sheetsCache,r,t,e)),c&&c.add(e),s.staticSheet=e,s.dynamicStyles=Je(o)}if(s.dynamicStyles){const t=n.jss.createStyleSheet(s.dynamicStyles,a({link:!0},l));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=et({baseClasses:s.staticSheet.classes,newClasses:t.classes}),c&&c.add(t)}else e.classes=s.staticSheet.classes;s.refs+=1}function qn(t,n={}){const{name:r,classNamePrefix:i,Component:o,defaultTheme:s=Un}=n,l=f(n,Hn),c=function(e){const t="function"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},s=n.components[r].variants||[],l=a({},i);return Object.keys(o).forEach((e=>{l[e]=In(l[e]||{},o[e])})),s.forEach((e=>{const t=function(e){const{variant:t}=e,n=f(e,Bn);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Gn(r)?e[t]:Fn(e[t]):`${Gn(r)?t:Fn(t)}${Fn(e[t].toString())}`})),r}(e.props);l[t]=In(l[t]||{},e.style)})),l},options:{}}}(t),u=r||i||"makeStyles";return c.options={index:(zn+=1,zn),name:r,meta:u,classNamePrefix:u},(t={})=>{const n=function(){var t;const n=e.useContext(rt);return null!=(t=null==n?void 0:n.$$material)?t:n}()||s,i=a({},e.useContext(Mn),l),u=e.useRef(),d=e.useRef();!function(o,a){const s=e.useRef([]);let l;const p=e.useMemo((()=>({})),a);s.current!==p&&(s.current=p,l=(()=>{const e={name:r,state:{},stylesCreator:c,stylesOptions:i,theme:n};return Wn(e,t),d.current=!1,u.current=e,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=nt.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(nt.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(e)}})()),e.useEffect((()=>()=>{l&&l()}),[p])}(0,[n,c]),e.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(u.current,t),d.current=!0}));const p=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=et({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(u.current,t.classes,o);return p}}const Vn=qn({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}const Yn=e=>{let{title:n="",children:r=null,classes:i={}}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","children","classes"]);const a=Vn();return t().createElement(T(),$n({className:i.root,classes:{root:a.toolbar}},o),n&&t().createElement(A(),{className:i.title,classes:{root:a.title},variant:"h6"},L().text(n)),r)};var Zn=ae(6825),Xn=ae.n(Zn),Kn=ae(8310),Qn=ae.n(Kn),Jn=ae(8282),er=ae.n(Jn);const tr=qn((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(null,arguments)}const rr=e=>{const{selectProps:{classes:n,menuIsOpen:r,isDisabled:i},innerProps:o}=e,a=tr();return t().createElement(er(),nr({"data-reltio-id":"select-dropdown-indicator"},o,{className:Qn()(n.dropdownIndicator,{[a.expanded]:r},{[a.disabled]:i})}))};function ir(e,t){if(null==e)return{};var n,r,i=f(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}function sr(e,t){if(t&&("object"==z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}rr.propTypes={innerProps:m().object.isRequired,selectProps:m().shape({classes:m().shape({dropdownIndicator:m().string}).isRequired,menuIsOpen:m().bool.isRequired,isDisabled:m().bool}).isRequired};var cr=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();const ur=function(e){function t(e,r,l,c,p){for(var f,h,m,g,w,E=0,_=0,O=0,S=0,C=0,A=0,D=m=f=0,j=0,N=0,I=0,F=0,B=l.length,G=B-1,U="",H="",W="",q="";j<B;){if(h=l.charCodeAt(j),j===G&&0!==_+S+O+E&&(0!==_&&(h=47===_?10:47),S=O=E=0,B++,G++),0===_+S+O+E){if(j===G&&(0<N&&(U=U.replace(d,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(j)}h=59}switch(h){case 123:for(f=(U=U.trim()).charCodeAt(0),m=1,F=++j;j<B;){switch(h=l.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(j+1)){case 42:case 47:e:{for(D=j+1;D<G;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&j+2!==D){j=D+1;break e}break;case 10:if(47===h){j=D+1;break e}}j=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<G&&l.charCodeAt(j)!==h;);}if(0===m)break;j++}if(m=l.substring(F,j),0===f&&(f=(U=U.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<N&&(U=U.replace(d,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=R}if(F=(m=t(r,N,m,h,p+1)).length,0<M&&(w=s(3,m,N=n(R,U,I),r,L,k,F,h,p,c),U=N.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:U=U.replace(x,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(v,"$1 $2"))+"{"+m+"}",m=1===T||2===T&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===c&&(H+=m,m="")}else m=""}else m=t(r,n(r,U,I),m,c,p+1);W+=m,m=I=N=D=f=0,U="",h=l.charCodeAt(++j);break;case 125:case 59:if(1<(F=(U=(0<N?U.replace(d,""):U).trim()).length))switch(0===D&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(F=(U=U.replace(" ",":")).length),0<M&&void 0!==(w=s(1,U,r,e,L,k,H.length,c,p,c))&&0===(F=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),h=U.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){q+=U+l.charAt(j);break}default:58!==U.charCodeAt(F-1)&&(H+=i(U,f,h,U.charCodeAt(2)))}I=N=D=f=0,U="",h=l.charCodeAt(++j)}}switch(h){case 13:case 10:47===_?_=0:0===1+f&&107!==c&&0<U.length&&(N=1,U+="\0"),0<M*z&&s(0,U,r,e,L,k,H.length,c,p,c),k=1,L++;break;case 59:case 125:if(0===_+S+O+E){k++;break}default:switch(k++,g=l.charAt(j),h){case 9:case 32:if(0===S+E+_)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+_+E&&(N=I=1,g="\f"+g);break;case 108:if(0===S+_+E+P&&0<D)switch(j-D){case 2:112===C&&58===l.charCodeAt(j-3)&&(P=C);case 8:111===A&&(P=A)}break;case 58:0===S+_+E&&(D=j);break;case 44:0===_+O+S+E&&(N=1,g+="\r");break;case 34:case 39:0===_&&(S=S===h?0:0===S?h:S);break;case 91:0===S+_+O&&E++;break;case 93:0===S+_+O&&E--;break;case 41:0===S+_+E&&O--;break;case 40:0===S+_+E&&(0===f&&(2*C+3*A==533||(f=1)),O++);break;case 64:0===_+O+S+E+D+m&&(m=1);break;case 42:case 47:if(!(0<S+E+O))switch(_){case 0:switch(2*h+3*l.charCodeAt(j+1)){case 235:_=47;break;case 220:F=j,_=42}break;case 42:47===h&&42===C&&F+2!==j&&(33===l.charCodeAt(F+2)&&(H+=l.substring(F,j+1)),g="",_=0)}}0===_&&(U+=g)}A=C,C=h,j++}if(0<(F=H.length)){if(N=r,0<M&&void 0!==(w=s(2,H,N,e,L,k,F,c,p,c))&&0===(H=w).length)return q+H+W;if(H=N.join(",")+"{"+H+"}",0!=T*P){switch(2!==T||o(H,2)||(P=0),P){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}P=0}}return q+H+W}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===T||2===T&&o(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(O,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,p=0,f=t;p<M;++p)switch(d=A[p].call(c,e,f,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?T=1:(T=2,D=e):T=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var i=s(-1,n,r,r,L,k,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(R,r,n,0,0);return 0<M&&void 0!==(i=s(-2,o,r,r,L,k,o.length,0,0,0))&&(o=i),P=0,k=L=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,_=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,k=1,L=1,P=0,T=1,R=[],A=[],M=0,D=null,z=0;return c.use=function e(t){switch(t){case void 0:case null:M=A.length=0;break;default:if("function"==typeof t)A[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else z=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};var dr="/*|*/";function pr(e){e&&fr.current.insert(e+"}")}var fr={current:null},hr=function(e,t,n,r,i,o,a,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return fr.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+dr;break;case 3:switch(s){case 102:case 112:return fr.current.insert(n[0]+t),"";default:return t+(0===c?dr:"")}case-2:t.split("/*|*/}").forEach(pr)}};function mr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var gr=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0),i=i.next}while(void 0!==i)}};const vr=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},yr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var br=/[A-Z]|^ms/g,wr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xr=function(e){return 45===e.charCodeAt(1)},Er=function(e){return null!=e&&"boolean"!=typeof e},_r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return xr(e)?e:e.replace(br,"-$&").toLowerCase()})),Or=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(wr,(function(e,t,n){return Cr={name:t,styles:n,next:Cr},t}))}return 1===yr[e]||xr(e)||"number"!=typeof t||0===t?t:t+"px"};function Sr(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Cr={name:n.name,styles:n.styles,next:Cr},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)Cr={name:i.name,styles:i.styles,next:Cr},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Sr(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Er(a)&&(r+=_r(o)+":"+Or(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Sr(e,t,a,!1);switch(o){case"animation":case"animationName":r+=_r(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Er(a[l])&&(r+=_r(o)+":"+Or(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Cr,a=n(e);return Cr=o,Sr(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Cr,kr=/label:\s*([^\s;\n{]+)\s*;/g,Lr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Cr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Sr(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=Sr(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);kr.lastIndex=0;for(var s,l="";null!==(s=kr.exec(i));)l+="-"+s[1];return{name:vr(i)+l,styles:i,next:Cr}},Pr=Object.prototype.hasOwnProperty,Tr=(0,e.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,i=new ur(t),o={};r=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),i.use(e.stylisPlugins)(hr),a=function(e,t,n,r){var o=t.name;fr.current=n,i(e,t.styles),r&&(l.inserted[o]=!0)};var l={key:n,sheet:new cr({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return l}():null),Rr=(0,e.createContext)({}),Ar=(Tr.Provider,function(t){var n=function(n,r){return(0,e.createElement)(Tr.Consumer,null,(function(e){return t(n,e,r)}))};return(0,e.forwardRef)(n)}),Mr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dr=function(e,t){var n={};for(var r in t)Pr.call(t,r)&&(n[r]=t[r]);return n[Mr]=e,n},zr=function(){return null},jr=function(t,n,r,i){var o=null===r?n.css:n.css(r);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=n[Mr],s=[o],l="";"string"==typeof n.className?l=mr(t.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=Lr(s);gr(t,c,"string"==typeof a),l+=t.key+"-"+c.name;var u={};for(var d in n)Pr.call(n,d)&&"css"!==d&&d!==Mr&&(u[d]=n[d]);u.ref=i,u.className=l;var p=(0,e.createElement)(a,u),f=(0,e.createElement)(zr,null);return(0,e.createElement)(e.Fragment,null,f,p)},Nr=Ar((function(t,n,r){return"function"==typeof t.css?(0,e.createElement)(Rr.Consumer,null,(function(e){return jr(n,t,e,r)})):jr(n,t,null,r)}));const Ir=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lr(t)};var Fr=function(t,n){var r=arguments;if(null==n||!Pr.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Nr,o[1]=Dr(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)},Br=(e.Component,function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i});function Gr(e,t,n){var r=[],i=mr(e,r,n);return r.length<2?n:i+t(r)}var Ur=function(){return null},Hr=Ar((function(t,n){return(0,e.createElement)(Rr.Consumer,null,(function(r){var i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=Lr(t,n.registered);return gr(n,i,!1),n.key+"-"+i.name},o={css:i,cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gr(n.registered,i,Br(t))},theme:r},a=t.children(o),s=(0,e.createElement)(Ur,null);return(0,e.createElement)(e.Fragment,null,s,a)}))})),Wr=ae(7111);function qr(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vr=ae(1950),$r=function(){};function Yr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Zr(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(Yr(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Xr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===z(e)&&null!==e?[e]:[]};function Kr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Qr(e){return Kr(e)?window.pageYOffset:e.scrollTop}function Jr(e,t){Kr(e)?window.scrollTo(0,t):e.scrollTop=t}function ei(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ti(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$r,i=Qr(e),o=t-i,a=10,s=0;function l(){var t=ei(s+=a,i,o,n);Jr(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function ni(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lr(e);if(t){var i=lr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sr(this,n)}}function ai(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Qr(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,x=g-h,E=w+v,_=u-v-h,O=p-g+v+y,S=v+h-b,C=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(_>=f&&!a)return o&&ti(l,O,C),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&x>=r)return o&&ti(l,O,C),{placement:"bottom",maxHeight:a?x-y:_-y};if("auto"===i||a){var k=t,L=a?w:E;return L>=r&&(k=Math.min(L-y-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return Jr(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(E>=f&&!a)return o&&ti(l,S,C),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var P=t;return(!a&&E>=r||a&&w>=r)&&(P=a?w-b:E-b),o&&ti(l,S,C),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var si=function(e){return"auto"===e?"bottom":e},li=(0,e.createContext)({getPortalPlacement:null}),ci=function(e){ar(n,e);var t=oi(n);function n(){var e;or(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=ai({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||si(t);return ii(ii({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return I(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);ci.contextType=li;var ui=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},di=ui,pi=ui,fi=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};fi.defaultProps={children:"No options"};var hi=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};hi.defaultProps={children:"Loading..."};var mi=function(e){ar(n,e);var t=oi(n);function n(){var e;or(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==si(e.props.menuPlacement)&&e.setState({placement:n})},e}return I(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,i=e.menuPlacement,o=e.menuPosition,a=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var l=this.state.placement||si(i),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),u=s?0:window.pageYOffset,d=c[l]+u,p=Fr("div",{css:a("menuPortal",{offset:d,position:o,rect:c})},n);return Fr(li.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Wr.createPortal)(p,t):p)}}]),n}(e.Component),gi=Array.isArray,vi=Object.keys,yi=Object.prototype.hasOwnProperty;function bi(e,t){if(e===t)return!0;if(e&&t&&"object"==z(e)&&"object"==z(t)){var n,r,i,o=gi(e),a=gi(t);if(o&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!bi(e[n],t[n]))return!1;return!0}if(o!=a)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=vi(e);if((r=d.length)!==vi(t).length)return!1;for(n=r;0!=n--;)if(!yi.call(t,d[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(i=d[n])&&e.$$typeof||bi(e[i],t[i])))return!1;return!0}return e!=e&&t!=t}function wi(e,t){try{return bi(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function xi(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return xi=function(){return n},n}var Ei={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},_i=function(e){var t=e.size,n=ir(e,["size"]);return Fr("svg",a({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ei},n))},Oi=function(e){return Fr(_i,a({size:20},e),Fr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Si=function(e){return Fr(_i,a({size:20},e),Fr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ci=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},ki=Ci,Li=Ci,Pi=function(){var e=Ir.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(xi()),Ti=function(e){var t=e.delay,n=e.offset;return Fr("span",{css:Ir({animation:"".concat(Pi," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ri=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isRtl;return Fr("div",a({},i,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Fr(Ti,{delay:0,offset:o}),Fr(Ti,{delay:160,offset:!0}),Fr(Ti,{delay:320,offset:!o}))};function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ri.defaultProps={size:4};var ji=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fi=function(e){var t=e.children,n=e.innerProps;return Fr("div",n,t)},Bi=Fi,Gi=Fi,Ui=function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,o=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,p=r.Label,f=r.Remove;return Fr(Hr,null,(function(r){var h=r.css,m=r.cx;return Fr(d,{data:o,innerProps:Ii(Ii({},s),{},{className:m(h(a("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},Fr(p,{data:o,innerProps:{className:m(h(a("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:u},t),Fr(f,{data:o,innerProps:Ii({className:m(h(a("multiValueRemove",e)),i({"multi-value__remove":!0},n))},c),selectProps:u}))}))};function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ui.defaultProps={cropWithEllipsis:!0};var qi={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({},o,{css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||Fr(Oi,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,o=e.isDisabled,s=e.isFocused,l=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return Fr("div",a({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":u},i)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({},o,{css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||Fr(Si,null))},DownChevron:Si,CrossIcon:Oi,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.Heading,s=e.headingProps,l=e.label,c=e.theme,u=e.selectProps;return Fr("div",{css:i("group",e),className:r({group:!0},n)},Fr(o,a({},s,{selectProps:u,theme:c,getStyles:i,cx:r}),l),Fr("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.theme,o=(e.selectProps,ir(e,["className","cx","getStyles","theme","selectProps"]));return Fr("div",a({css:r("groupHeading",Mi({theme:i},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles;return Fr("div",{css:i("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Fr("span",a({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerRef,o=e.isHidden,s=e.isDisabled,l=e.theme,c=(e.selectProps,ir(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Fr("div",{css:r("input",zi({theme:l},c))},Fr(Vr.Z,a({className:n({input:!0},t),inputRef:i,inputStyle:ji(o),disabled:s},c)))},LoadingIndicator:Ri,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerRef,s=e.innerProps;return Fr("div",a({css:i("menu",e),className:r({menu:!0},n)},s,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isMulti,s=e.innerRef,l=e.innerProps;return Fr("div",a({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:s},l),t)},MenuPortal:mi,LoadingMessage:hi,NoOptionsMessage:fi,MultiValue:Ui,MultiValueContainer:Bi,MultiValueLabel:Gi,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Fr("div",n,t||Fr(Oi,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,s=e.isFocused,l=e.isSelected,c=e.innerRef,u=e.innerProps;return Fr("div",a({css:i("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":l},n),ref:c},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({css:i("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,s=e.isDisabled,l=e.isRtl;return Fr("div",a({css:i("container",e),className:r({"--is-disabled":s,"--is-rtl":l},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,s=e.innerProps;return Fr("div",a({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.isMulti,o=e.getStyles,a=e.hasValue;return Fr("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a},n)},t)}},Vi=function(e){return Wi(Wi({},qi),e.components)};function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Rt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const Zi=function(e,t){var n;void 0===t&&(t=Yi);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}};for(var Xi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ki=new RegExp("["+Xi.map((function(e){return e.letters})).join("")+"]","g"),Qi={},Ji=0;Ji<Xi.length;Ji++)for(var eo=Xi[Ji],to=0;to<eo.letters.length;to++)Qi[eo.letters[to]]=eo.base;var no=function(e){return e.replace(Ki,(function(e){return Qi[e]}))};function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var io=function(e){return e.replace(/^\s+|\s+$/g,"")},oo=function(e){return"".concat(e.label," ").concat(e.value)},ao=function(e){return function(t,n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:oo,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?io(n):n,u=s?io(a(t)):a(t);return i&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=no(c),u=no(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}},so={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},lo=function(e){return Fr("span",a({css:so},e))};function co(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,ir(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Fr("input",a({ref:t},n,{css:Ir({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var uo=function(e){ar(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=lr(t);if(n){var i=lr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return sr(this,e)});function i(){return or(this,i),r.apply(this,arguments)}return I(i,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Wr.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),i}(e.Component),po=["boxSizing","height","overflow","paddingRight","position"],fo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ho(e){e.preventDefault()}function mo(e){e.stopPropagation()}function go(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function vo(){return"ontouchstart"in window||navigator.maxTouchPoints}var yo=!(!window.document||!window.document.createElement),bo=0,wo=function(e){ar(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=lr(t);if(n){var i=lr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return sr(this,e)});function i(){var e;or(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return I(i,[{key:"componentDidMount",value:function(){var e=this;if(yo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,i=document.body,o=i&&i.style;if(n&&po.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&bo<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+a||0;Object.keys(fo).forEach((function(e){var t=fo[e];o&&(o[e]=t)})),o&&(o.paddingRight="".concat(l,"px"))}i&&vo()&&(i.addEventListener("touchmove",ho,this.listenerOptions),r&&(r.addEventListener("touchstart",go,this.listenerOptions),r.addEventListener("touchmove",mo,this.listenerOptions))),bo+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(yo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,i=document.body,o=i&&i.style;bo=Math.max(bo-1,0),n&&bo<1&&po.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),i&&vo()&&(i.removeEventListener("touchmove",ho,this.listenerOptions),r&&(r.removeEventListener("touchstart",go,this.listenerOptions),r.removeEventListener("touchmove",mo,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),i}(e.Component);wo.defaultProps={accountForScrollbars:!0};var xo={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Eo=function(e){ar(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=lr(t);if(n){var i=lr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return sr(this,e)});function i(){var e;or(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return I(i,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?Fr("div",null,Fr("div",{onClick:this.blurSelectInput,css:xo}),Fr(uo,{innerRef:this.getScrollTarget},t),r?Fr(wo,{touchScrollTarget:r}):null):t}}]),i}(e.PureComponent);var _o=function(e){ar(o,e);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(r){var i=lr(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return sr(this,e)});function o(){var e;or(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,i=r.onBottomArrive,o=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,l=e.scrollTarget,c=l.scrollTop,u=l.scrollHeight,d=l.clientHeight,p=e.scrollTarget,f=n>0,h=u-d-c,m=!1;h>n&&e.isBottom&&(o&&o(t),e.isBottom=!1),f&&e.isTop&&(s&&s(t),e.isTop=!1),f&&n>h?(i&&!e.isBottom&&i(t),p.scrollTop=u,m=!0,e.isBottom=!0):!f&&-n>c&&(a&&!e.isTop&&a(t),p.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return I(o,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return t().createElement(uo,{innerRef:this.getScrollTarget},this.props.children)}}]),o}(e.Component);function Oo(e){var n=e.isEnabled,r=void 0===n||n,i=ir(e,["isEnabled"]);return r?t().createElement(_o,i):i.children}var So=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,i=t.label,o=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(i||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Co=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},ko=function(e){return!!e.isDisabled},Lo={clearIndicator:Li,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:ki,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:pi,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return qr(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),qr(t,"backgroundColor",a.neutral0),qr(t,"borderRadius",i),qr(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),qr(t,"marginBottom",o.menuGutter),qr(t,"marginTop",o.menuGutter),qr(t,"position","absolute"),qr(t,"width","100%"),qr(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:di,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Po={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ao={backspaceRemovesValue:!0,blurInputOnSelect:ni(),captureMenuScroll:!ni(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ao(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ko,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Mo=1,Do=function(e){ar(o,e);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(r){var i=lr(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return sr(this,e)});function o(e){var t;or(this,o),(t=i.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=Vi({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;i(e,Ro(Ro({},n),{},{name:o}))},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,i=t.props,o=i.closeMenuOnSelect,a=i.isMulti;t.onInputChange("",{action:"set-value"}),o&&(t.inputIsHiddenAfterUpdate=!a,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=t.state.selectValue;if(i)if(t.isOptionSelected(e,o)){var a=t.getOptionValue(e);t.setValue(o.filter((function(e){return t.getOptionValue(e)!==a})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,o)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(At(o),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,o)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),i=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(i.length?i:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Zr.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=Lo[e](n);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,i=n.focusedOption;if(i&&e){var o=r.focusable.indexOf(i),a=r.render[o];return a&&a.key}},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:Co(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:So(n,Ro(Ro({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Kr(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,i=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:i}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return void 0===n?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,i=void 0===r?"":r,o=e.options,a=function(e,r){var o=t.isOptionDisabled(e,n),a=t.isOptionSelected(e,n),s=t.getOptionLabel(e),l=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&a||!t.filterOption({label:s,value:l,data:e},i))){var c=o?void 0:function(){return t.onOptionHover(e)},u=o?void 0:function(){return t.selectOption(e)},d="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:o,isSelected:a,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var i=n.options.map((function(t,n){var i=a(t,"".concat(r,"-").concat(n));return i&&e.focusable.push(t),i})).filter(Boolean);if(i.length){var o="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:o,data:n,options:i})}}else{var s=a(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var n=e.value;t.cacheComponents=Zi(t.cacheComponents,wi).bind(G(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++Mo);var r=Xr(n);t.buildMenuOptions=Zi(t.buildMenuOptions,(function(e,t){var n=$i(e,2),r=n[0],i=n[1],o=$i(t,2),a=o[0];return i===o[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(G(t));var a=e.menuIsOpen?t.buildMenuOptions(e,r):{render:[],focusable:[]};return t.state.menuOptions=a,t.state.selectValue=r,t}return I(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,i=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==i||e.inputValue!==o){var a=Xr(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},l=this.getNextFocusedValue(a),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,a=this.props,s=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=n.offsetHeight/3,i.bottom+o>r.bottom?Jr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<r.top&&Jr(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,l=a.tabSelectsValue,c="first"===e?0:o.focusable.length-1;if(!s){var u=o.focusable.indexOf(r[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:l}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,i=this.state,o=i.selectValue,a=i.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,c=-1;if(o.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,i=this.state,o=i.focusedOption,a=i.menuOptions,s=a.focusable;if(s.length){var l=0,c=s.indexOf(o);o||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?l=c>0?c-1:s.length-1:"down"===e?l=(c+1)%s.length:"pageup"===e?(l=c-n)<0&&(l=0):"pagedown"===e?(l=c+n)>s.length-1&&(l=s.length-1):"last"===e&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:ko(s[l]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Po):Ro(Ro({},Po),this.props.theme):Po}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.setValue,o=this.selectOption,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:o,setValue:i,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,i=e.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,l=o.inputValue,c=o.screenReaderStatus,u=r?function(e){var t=e.focusedValue,n=e.selectValue;return"value ".concat((0,e.getOptionLabel)(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=i&&s?function(e){var t=e.focusedOption,n=e.options;return"option ".concat((0,e.getOptionLabel)(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(d," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,i=e.inputId,o=e.inputValue,s=e.tabIndex,l=e.form,c=this.components.Input,u=this.state.inputIsHidden,d=i||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return t().createElement(co,a({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$r,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:s,form:l,value:""},p));var f=this.commonProps,h=f.cx,m=f.theme,g=f.selectProps;return t().createElement(c,a({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:h,getStyles:this.getStyles,id:d,innerRef:this.getInputRef,isDisabled:n,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:g,spellCheck:"false",tabIndex:s,form:l,theme:m,type:"text",value:o},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.components,r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,s=n.MultiValueRemove,l=n.SingleValue,c=n.Placeholder,u=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!p)return m?null:t().createElement(c,a({},u,{key:"placeholder",isDisabled:f,isFocused:w}),g);if(h)return y.map((function(n,l){var c=n===b;return t().createElement(r,a({},u,{components:{Container:i,Label:o,Remove:s},isFocused:c,isDisabled:f,key:"".concat(e.getOptionValue(n)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));if(m)return null;var x=y[0];return t().createElement(l,a({},u,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,a({},n,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;return e&&o?t().createElement(e,a({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused;return t().createElement(r,a({},i,{isDisabled:o,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,a({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,n=this.components,r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,c=n.LoadingMessage,u=n.NoOptionsMessage,d=n.Option,p=this.commonProps,f=this.state,h=f.focusedOption,m=f.menuOptions,g=this.props,v=g.captureMenuScroll,y=g.inputValue,b=g.isLoading,w=g.loadingMessage,x=g.minMenuHeight,E=g.maxMenuHeight,_=g.menuIsOpen,O=g.menuPlacement,S=g.menuPosition,C=g.menuPortalTarget,k=g.menuShouldBlockScroll,L=g.menuShouldScrollIntoView,P=g.noOptionsMessage,T=g.onMenuScrollToTop,R=g.onMenuScrollToBottom;if(!_)return null;var A,M=function(n){var r=h===n.data;return n.innerRef=r?e.getFocusedOptionRef:void 0,t().createElement(d,a({},p,n,{isFocused:r}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())A=m.render.map((function(n){if("group"===n.type){n.type;var o=ir(n,["type"]),s="".concat(n.key,"-heading");return t().createElement(r,a({},p,o,{Heading:i,headingProps:{id:s,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return M(e)})))}if("option"===n.type)return M(n)}));else if(b){var D=w({inputValue:y});if(null===D)return null;A=t().createElement(c,p,D)}else{var z=P({inputValue:y});if(null===z)return null;A=t().createElement(u,p,z)}var j={minMenuHeight:x,maxMenuHeight:E,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:L},N=t().createElement(ci,a({},p,j),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,c=i.maxHeight;return t().createElement(o,a({},p,j,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:l}),t().createElement(Oo,{isEnabled:v,onTopArrive:T,onBottomArrive:R},t().createElement(Eo,{isEnabled:k},t().createElement(s,a({},p,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:c}),A))))}));return C||"fixed"===S?t().createElement(l,a({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),N):N}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,s=this.state.selectValue;if(a&&!i){if(o){if(r){var l=s.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:a,type:"hidden"});return t().createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return t().createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?t().createElement(lo,{"aria-live":"polite"},t().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),t().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,n=e.Control,r=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,s=this.props,l=s.className,c=s.id,u=s.isDisabled,d=s.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return t().createElement(i,a({},f,{className:l,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),t().createElement(n,a({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:d}),t().createElement(o,a({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,a({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),o}(e.Component);Do.defaultProps=Ao;var zo={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},jo=function(n){var r,i;return i=r=function(e){ar(s,e);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(r);if(i){var n=lr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return sr(this,e)});function s(){var e;or(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return I(s,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,r=this.props,i=(r.defaultInputValue,r.defaultMenuIsOpen,r.defaultValue,ir(r,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return t().createElement(n,a({},i,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),s}(e.Component),r.defaultProps=zo,i};var No,Io,Fo,Bo=jo(Do),Go=(No=Bo,Fo=Io=function(e){ar(o,e);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(r){var i=lr(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return sr(this,e)});function o(e){var t;return or(this,o),(t=i.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,n){var r=t.props,i=r.cacheOptions,o=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!o)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&t.optionsCache[o])t.setState({inputValue:o,loadedInputValue:o,loadedOptions:t.optionsCache[o],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:o,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(o,(function(e){t.mounted&&(e&&(t.optionsCache[o]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:o,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return o},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return I(o,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,n=this.props,r=(n.loadOptions,n.isLoading),i=ir(n,["loadOptions","isLoading"]),o=this.state,s=o.defaultOptions,l=o.inputValue,c=o.isLoading,u=o.loadedInputValue,d=o.loadedOptions,p=o.passEmptyOptions?[]:l&&u?d:s||[];return t().createElement(No,a({},i,{ref:function(t){e.select=t},options:p,isLoading:c||r,onInputChange:this.handleInputChange}))}}]),o}(e.Component),Io.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Fo);const Uo=Go;var Ho=ae(518),Wo=ae.n(Ho),qo=ae(9233),Vo=ae.n(qo);function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(null,arguments)}var Yo=ae(7290),Zo=ae.n(Yo);function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ko(e,t,n[t])}))}return e}function Ko(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(null,arguments)}const Jo=t().forwardRef(((e,n)=>t().createElement("div",Qo({ref:n},e))));Jo.displayName="InputComponent",Jo.propTypes={inputRef:m().oneOfType([m().func,m().shape({current:m().any.isRequired})])};const ea=e=>{const{children:n,innerProps:r,innerRef:i,selectProps:{classes:o,TextFieldProps:a={}}}=e;return t().createElement(Zo(),Qo({variant:"standard",fullWidth:!0},a,{InputProps:Xo({inputComponent:Jo},a.InputProps,{inputProps:Xo({className:o.control,ref:i,children:n},r,a.inputProps)})}))};function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(null,arguments)}ea.propTypes={children:m().node,innerProps:m().shape({onMouseDown:m().func.isRequired}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]).isRequired,selectProps:m().shape({classes:m().shape({control:m().string.isRequired}),TextFieldProps:m().object})};const na=e=>{const{selectProps:{classes:n},innerProps:r}=e;return t().createElement(Vo(),ta({},r,{className:n.dropdownIndicator,size:"large"}),t().createElement(er(),null))};na.propTypes={innerProps:m().shape({onMouseDown:m().func.isRequired,onTouchEnd:m().func.isRequired,"aria-hidden":m().string.isRequired}).isRequired,selectProps:m().shape({classes:m().object.isRequired}).isRequired};const ra=e=>{const{children:n,selectProps:{classes:r}}=e;return t().createElement(A(),{variant:"subtitle2",className:Qn()(r.groupHeading)},n)};ra.propTypes={children:m().node,selectProps:m().shape({classes:m().shape({groupHeading:m().string})})};var ia=ae(4436),oa=ae.n(ia);function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(null,arguments)}const sa=e=>{const{selectProps:{classes:n},innerProps:r,innerRef:i,getStyles:o,children:a}=e;return t().createElement(oa(),aa({ref:i,style:o("menu",e),className:n.menu},r),a)};sa.propTypes={children:m().element.isRequired,innerProps:m().object.isRequired,selectProps:m().object.isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]),getStyles:m().func};var la=ae(6091),ca=ae.n(la),ua=ae(5635),da=ae.n(ua);function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(null,arguments)}const fa=e=>{const{children:n,selectProps:r,removeProps:i}=e;return t().createElement(ca(),{tabIndex:-1,label:n,className:r.classes.multiValue,classes:{label:r.classes.multiValue__label},onDelete:i.onClick,deleteIcon:t().createElement(da(),pa({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})};fa.propTypes={children:m().node,isFocused:m().bool.isRequired,removeProps:m().shape({onClick:m().func.isRequired,onMouseDown:m().func.isRequired,onTouchEnd:m().func.isRequired}).isRequired,selectProps:m().object.isRequired};const ha=e=>{const{selectProps:{classes:n},children:r}=e;return t().createElement(A(),{color:"textSecondary",className:n.noOptionsMessage},r)};ha.propTypes={children:m().node,selectProps:m().object.isRequired};var ma=ae(3222),ga=ae.n(ma),va=ae(4073),ya=ae.n(va),ba=ae(2436),wa=ae.n(ba),xa=function(e,t){return xa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xa(e,t)};"function"==typeof SuppressedError&&SuppressedError;var Ea=function(e){return"function"==typeof e},_a=function(){return"undefined"==typeof window},Oa=function(e){return e instanceof Element||e instanceof HTMLDocument},Sa=function(n){function r(t){var r=n.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!_a()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(_a())return null;if(t)return document.querySelector(t);if(n&&Oa(n))return n;if(r.targetRef&&Oa(r.targetRef.current))return r.targetRef.current;var i=(0,Wr.findDOMNode)(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,s=t.onResize;(i||a)&&e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,o=t.height;!r.skipOnMount&&!_a()&&function(e){var t=e.width,n=e.height;r.state.width===t&&r.state.height===n||r.state.width===t&&!a||r.state.height===n&&!i||(null==s||s(t,n),r.setState({width:t,height:n}))}({width:n,height:o}),r.skipOnMount=!1}))},r.getRenderType=function(){var t=r.props,n=t.render,i=t.children;return Ea(n)?"renderProp":Ea(i)?"childFunction":(0,e.isValidElement)(i)?"child":Array.isArray(i)?"childArray":"parent"};var i=t.skipOnMount,o=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,l=t.refreshOptions;return r.state={width:void 0,height:void 0},r.sizeRef={current:r.state},r.skipOnMount=i,r.targetRef=(0,e.createRef)(),r.observableElement=null,_a()||(r.resizeHandler=function(e,t,n,r){switch(t){case"debounce":return ya()(e,n,r);case"throttle":return wa()(e,n,r);default:return e}}(r.createResizeHandler,o,s,l),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}xa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,n),r.prototype.componentDidMount=function(){this.attachObserver()},r.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},r.prototype.componentWillUnmount=function(){_a()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},r.prototype.render=function(){var n=this.props,r=n.render,i=n.children,o=n.nodeType,a=void 0===o?"div":o,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==r?void 0:r(l);case"childFunction":return null==i?void 0:i(l);case"child":var c=i;if(c.type&&"string"==typeof c.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(l,["targetRef"]);return(0,e.cloneElement)(c,u)}return(0,e.cloneElement)(c,l);case"childArray":return i.map((function(t){return!!t&&(0,e.cloneElement)(t,l)}));default:return t().createElement(a,null)}},r}(e.PureComponent),Ca=ae(3627),ka=ae.n(Ca);const La=qn((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}})));function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(null,arguments)}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ra(e,t,n[t])}))}return e}function Ra(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aa=n=>{let{children:r,value:i="",className:o,showOnExceededWidth:a=!0,showOnExceededHeight:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const c=La(),u=(0,e.useRef)(),[d,p]=(0,e.useState)(!1),f=()=>p(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,s));return(0,e.useEffect)(f,[s,a,i]),t().createElement(t().Fragment,null,t().createElement(Sa,{handleWidth:a,handleHeight:s,onResize:f,refreshMode:"debounce",refreshRate:100}),t().createElement(ka(),Pa({ref:u,title:d?i:"",classes:Ta({},c,{tooltip:o})},l),r))};function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ma.apply(null,arguments)}const Da=e=>{const{innerProps:n,innerRef:r,children:i,isFocused:o,isSelected:a,label:s,selectProps:{classes:l}}=e;return t().createElement(ga(),Ma({className:Qn()(l.option,{[l["option--selected"]]:a}),ref:r,selected:o,component:"div"},n),t().createElement(Aa,{value:s},t().createElement("div",{className:l["option--item"]},i)))};function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},za.apply(null,arguments)}Da.propTypes={children:m().node,innerProps:m().shape({id:m().string.isRequired,key:m().string,onClick:m().func.isRequired,onMouseMove:m().func.isRequired,onMouseOver:m().func.isRequired,tabIndex:m().number.isRequired}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]),isFocused:m().bool.isRequired,isSelected:m().bool.isRequired,label:m().string,selectProps:m().shape({classes:m().shape({option:m().string,"option--selected":m().string})})};const ja=e=>{const{selectProps:{classes:n},innerProps:r={},children:i}=e;return t().createElement(A(),za({color:"textSecondary",className:n.placeholder},r),i)};function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(null,arguments)}ja.propTypes={children:m().node,innerProps:m().object,selectProps:m().object.isRequired};const Ia=e=>{const{selectProps:{classes:n},innerProps:r,children:i}=e;return t().createElement(A(),Na({className:n.singleValue},r),i)};Ia.propTypes={children:m().node,innerProps:m().object,selectProps:m().object.isRequired};const Fa=e=>{const{selectProps:{classes:n},children:r,isMulti:i}=e;return t().createElement("div",{className:Qn()(n.valueContainer,{[n["valueContainer--multi"]]:i})},r)};Fa.propTypes={children:m().node,selectProps:m().object.isRequired,isMulti:m().bool};const Ba={ClearIndicator:({selectProps:{classes:e},innerProps:n})=>t().createElement(Vo(),$o({},n,{className:e.clearIndicator,size:"large"}),t().createElement(Wo(),null)),Control:ea,DropdownIndicator:na,GroupHeading:ra,Menu:sa,MultiValue:fa,NoOptionsMessage:ha,Option:Da,Placeholder:ja,SingleValue:Ia,ValueContainer:Fa};function Ga(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ua=qn((e=>({control:{display:"flex","&&":{padding:0},height:"auto"},valueContainer:{display:"flex",flexWrap:"nowrap",flex:1,alignItems:"center",overflow:"hidden",marginLeft:e.spacing(1)},"valueContainer--multi":{flexWrap:"wrap"},multiValue:{margin:e.spacing(.5,.5),maxWidth:"calc(100% - 8px)"},multiValue__label:{paddingRight:0,marginRight:12,maxWidth:"100%",overflow:"hidden"},noOptionsMessage:{padding:e.spacing(1,2)},singleValue:{fontSize:16,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},placeholder:{position:"absolute",left:6,bottom:10,fontSize:16},menu:{zIndex:40,marginTop:e.spacing(1)},clearIndicator:{},dropdownIndicator:{},groupHeading:{paddingLeft:"28px"},option:{fontWeight:400},"option--selected":{fontWeight:400},"option--item":{display:"block",width:"100%",textOverflow:"ellipsis",overflow:"hidden"}})));function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(null,arguments)}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){qa(e,t,n[t])}))}return e}function qa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Va=e=>{function n(n){const{components:r,classes:i,error:o,TextFieldProps:a,innerRef:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["components","classes","error","TextFieldProps","innerRef"]),c=Ua(),u=Wa({},Ba,r),d=((e,t)=>(0,x.union)(Object.keys(e),Object.keys(t)).reduce(((n,r)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ga(e,t,n[t])}))}return e}({},n,{[r]:Qn()(e[r],t[r])})),{}))(c,i);return t().createElement(e,Ha({ref:s,components:u,classes:d,TextFieldProps:Wa({},a,{error:o})},l))}return n.displayName=`withMuiSkin(${e.displayName||e.name})`,n.defaultProps={components:{},classes:{}},n},$a=Va(Uo);e.Component;const Ya=Va(jo(Do)),Za=()=>null;var Xa=ae(1884),Ka=ae.n(Xa);const Qa=t().createContext(null);Qa.displayName="PopupBoundariesContext";var Ja=ae(1733),es=ae.n(Ja),ts=ae(5788),ns=ae.n(ts);const rs=({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a=0})=>{if(e){if(Date.now()-a>100&&r.current&&t.current&&n.current&&i.current){const o=e.getBoundingClientRect();r.current.style.top="0",r.current.style.left="0",r.current.style.right="0",r.current.style.height=o.top+"px",t.current.style.top="0",t.current.style.left="0",t.current.style.width=o.left+"px",t.current.style.bottom="0",n.current.style.top="0",n.current.style.left=o.right+"px",n.current.style.right="0",n.current.style.bottom="0",i.current.style.top=o.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",a=Date.now()}o.current=requestAnimationFrame((()=>rs({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a})))}},is=qn({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},os.apply(null,arguments)}const as=(0,e.forwardRef)(((n,r)=>{let{open:i,anchorEl:o,className:a,modal:s=!0,excludeAnchorFromBackdrop:l=!0,onClose:c=x.identity}=n,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["open","anchorEl","className","modal","excludeAnchorFromBackdrop","onClose"]);const d=is(),p=(0,e.useRef)(),f=(0,e.useRef)(),h=(0,e.useRef)(),m=(0,e.useRef)(),g=(0,e.useRef)();return(0,e.useEffect)((()=>{if(i&&s)return rs({anchorEl:o,leftBackdropRef:p,rightBackdropRef:f,topBackdropRef:h,bottomBackdropRef:m,rafIdRef:g}),()=>cancelAnimationFrame(g.current)}),[o,i,s]),t().createElement(t().Fragment,null,s&&i&&t().createElement(es(),{container:document.body},l?t().createElement(t().Fragment,null,t().createElement("div",{ref:h,className:d.backdrop,onClick:c}),t().createElement("div",{ref:f,className:d.backdrop,onClick:c}),t().createElement("div",{ref:m,className:d.backdrop,onClick:c}),t().createElement("div",{ref:p,className:d.backdrop,onClick:c})):t().createElement("div",{className:d.backdrop,onClick:c})),t().createElement(ns(),os({open:i,anchorEl:o},u,{className:Qn()(a,d.popper),ref:r})))}));as.displayName="Popper";const ss=qn({popper:{borderRadius:"4px",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",backgroundColor:"#FFFFFF",margin:0,zIndex:1e4}});function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ls.apply(null,arguments)}const cs=n=>{const{selectProps:{inputRef:r,menuIsOpen:i,inputValue:o},innerRef:a,children:s,innerProps:l}=n,[c,u]=(0,e.useState)("id");(0,e.useEffect)((()=>{u(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())}),[o]);const d=ss(),p=(0,e.useContext)(Qa),f=Boolean(null==p?void 0:p.element),h=f?p.element.clientWidth:window.innerWidth;return t().createElement(as,{anchorEl:r.current,open:i,className:d.popper,key:c,modifiers:[{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!0,tether:!1,boundary:f?p.element:document.body,padding:5}}],placement:"bottom-start"},t().createElement(oa(),ls({ref:a,style:{minWidth:Math.min((0,x.prop)("clientWidth",r.current),h),maxWidth:Math.min(521,h)}},l),s))};cs.propTypes={children:m().oneOfType([m().element,m().array]).isRequired,selectProps:m().shape({inputRef:m().object.isRequired,menuIsOpen:m().bool.isRequired,inputValue:m().string}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]).isRequired,innerProps:m().object.isRequired};const us=qn((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),ds=e=>{const{selectProps:{onCreate:n,createLabel:r,inputValue:i,components:o},children:a}=e,s=us();return t().createElement(cs,e,a,r&&!(0,x.prop)("Group",o)&&t().createElement("span",{className:s.addLabel,onClick:()=>n(i)},t().createElement(Ka(),{className:s.addIcon}),r))};ds.propTypes={children:m().element.isRequired,selectProps:m().object.isRequired};const ps=qn({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(null,arguments)}const hs=e=>{const{selectProps:{menuIsOpen:n},innerProps:r,children:i}=e,o=ps();return!n&&t().createElement(A(),fs({className:o.singleValue},r),i)};function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){gs(e,t,n[t])}))}return e}function gs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hs.propTypes={children:m().node,innerProps:m().object};const vs=qn({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),ys={menu:e=>ms({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>ms({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>ms({},e,{padding:"0 0 8px 0"}),input:e=>ms({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>ms({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},bs={menuList:e=>ms({},e,{padding:0})},ws={input:e=>ms({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){_s(e,t,n[t])}))}return e}function _s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Os=n=>{let{value:r,label:i,createLabel:o,getOptions:a,options:s,height:l=46,onChange:c=x.identity,onCreate:u,onClear:d=x.identity,components:p,textFieldInputRef:f,TextFieldProps:h,classes:m}=n,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const v=vs({height:l}),[y,b]=(0,e.useState)(!1),w=(0,e.useRef)(null),_=a?$a:Ya,O=(0,x.prop)("ClearIndicator",p)?{}:{IndicatorSeparator:Za,ClearIndicator:Za},S=u?(e,t)=>{u(e,t),b(!1)}:void 0,C=(0,x.prop)("Group",p)?bs:{},k=(0,x.isEmpty)(i)?ws:{},L=Es({},ys,C,k),P=Es({},v,m);return t().createElement(_,xs({placeholder:"",defaultOptions:!0},g,{value:(0,x.defaultTo)(null,r),loadOptions:a,options:s,cacheOptions:!0,onChange:c,onCreate:S,onClear:d,createLabel:o,classes:P,styles:L,components:Es({DropdownIndicator:rr,LoadingIndicator:Za,SingleValue:hs,Menu:ds},O,p),menuPlacement:"auto",TextFieldProps:Es({},h,{label:i,variant:"filled",size:"small",classes:Es({},(0,x.prop)("classes",h),{root:Qn()(v.formControl,(0,x.path)(["classes","root"],h))}),inputProps:Es({},(0,x.prop)("inputProps",h)),InputProps:Es({},(0,x.prop)("InputProps",h),{classes:Es({},(0,x.path)(["InputProps","classes"],h),{root:Qn()(v.filledInputRoot,(0,x.path)(["InputProps","classes","root"],h)),underline:Qn()({[v.filledInputUnderline]:(0,E.isEmptyValue)(r)},(0,x.path)(["InputProps","classes","underline"],h)),focused:Qn()("focused",(0,x.path)(["InputProps","classes","focused"],h))})}),InputLabelProps:Es({},(0,x.prop)("InputLabelProps",h),{classes:Es({},(0,x.path)(["InputLabelProps","classes"],h),{root:Qn()(v.inputLabel,(0,x.path)(["InputLabelProps","classes","root"],h)),shrink:Qn()("shrink",(0,x.path)(["InputLabelProps","classes","shrink"],h))}),shrink:!(0,E.isEmptyValue)(r)||void 0}),ref:f||w}),inputRef:f||w,menuIsOpen:y,onMenuOpen:()=>b(!0),onMenuClose:()=>b(!1)}))},Ss={value:m().oneOfType([m().object,m().array]),label:m().string.isRequired,getOptions:m().func,options:m().array,onChange:m().func,onCreate:m().func,onClear:m().func,createLabel:m().string,components:m().object,textFieldInputRef:m().object,TextFieldProps:m().object,height:m().number,classes:m().object};Os.propTypes=Ss;const Cs={BY_LABEL:ao({stringify:(0,x.prop)("label")})};var ks=ae(8018);const Ls="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Ps=(t,n)=>{const r=e.useContext(t),{value:{current:i},version:{current:o},listeners:a}=r,s=n(i),[l,c]=e.useReducer(((e,t)=>{if(!t)return[i,s];if(t[0]<=o)return Ts(e[1],s)?e:[i,s];try{if(Ts(e[0],t[1]))return e;const r=n(t[1]);return Ts(e[1],r)?e:[t[1],r]}catch(e){}return[e[0],e[1]]}),[i,s]);return Ts(l[1],s)||c(void 0),Ls((()=>(a.push(c),()=>{const e=a.indexOf(c);a.splice(e,1)})),[a]),l[1]},Ts="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};var Rs=ae(4616);const As=t=>{const n=e.createContext({value:{current:t},version:{current:-1},listeners:[]});var r;return n.Provider=(r=n.Provider,t=>{const n=e.useRef(t.value),i=e.useRef(0),o=e.useRef();return o.current||(o.current={value:n,version:i,listeners:[]}),Ls((()=>{n.current=t.value,i.current+=1,(0,Rs.unstable_runWithPriority)(Rs.unstable_NormalPriority,(()=>{o.current.listeners.forEach((e=>{e([i.current,t.value])}))}))}),[t.value]),e.createElement(r,{value:o.current},t.children)}),delete n.Consumer,n},Ms=As({}),Ds=As({}),zs=(As({}),e=>Ps(Ds,e));function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(null,arguments)}const Ns=e=>{const n=zs((e=>e.absoluteImagePath))||"";return t().createElement(ks.ZP,js({},e,{storagePath:(r=n,r.endsWith("/")?r:r+"/")}));var r},Is=qn({dropDownSelector:{width:"276px"},entityTypeAvatar:{width:"20px",height:"20px",marginRight:"8px"},entityTypeLabel:{fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis"},text:{overflow:"hidden"},container:{width:"100%"},valueContainer:{paddingLeft:"0","&:hover":{backgroundColor:"transparent"}}}),Fs=({selectOption:e,data:n,type:r,isFocused:i,innerRef:o})=>{const a=Is(),s=(0,E.getLabel)(n.label),l="option"===r,c=l?()=>e(n):x.identity;return t().createElement(ga(),{ref:o,selected:i,className:Qn()(a.container,{[a.valueContainer]:!l}),onClick:c,disableRipple:!l},t().createElement(Ns,{className:a.entityTypeAvatar,entityType:n}),t().createElement("div",{className:a.text},t().createElement(Aa,{value:s},t().createElement(A(),{className:a.entityTypeLabel},s))))},Bs=({value:e,options:n,onChange:r})=>{const i=Is(),o=n.length?"":L().text("There are no available entity types");return t().createElement(Os,{height:40,className:i.dropDownSelector,value:e,filterOption:Cs.BY_LABEL,options:n,onChange:r,components:{Option:Fs,SingleValue:Fs},label:o})},Gs=qn({header:{backgroundColor:"rgba(255, 255, 255, 1)",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},headerTitle:{fontSize:"18px"},divider:{marginLeft:"24px",marginRight:"16px",height:"42px",borderColor:"rgba(0, 0, 0, 0.12)"}}),Us=({selectedEntityType:e,entityTypes:n,showEntityTypeSelector:r,onChangeEntityType:i})=>{const o=Gs();return t().createElement(Yn,{className:o.header},t().createElement(A(),{className:o.headerTitle},L().text("Data Model")),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{orientation:"vertical",className:o.divider}),t().createElement(Bs,{value:e,options:n,onChange:i})))},Hs=qn({tableContainer:{boxSizing:"border-box",padding:"0 16px 0 16px",marginTop:"16px",overflow:"hidden",position:"absolute",top:0,bottom:0,left:0,right:0}});let Ws=function(e){return e.AttributeLabel="attributeLabel",e.Name="name",e.Type="type",e.Description="description",e.Sources="sources",e}({});const qs=(0,e.createContext)({loadedAttributesSourcesRef:{current:{}},entityTypeUri:null}),Vs=({children:n,entityTypeUri:r})=>{const i=(0,e.useRef)({}),o=(0,e.useMemo)((()=>({loadedAttributesSourcesRef:i,entityTypeUri:r})),[r]);return t().createElement(qs.Provider,{value:o},n)};var $s=ae(3643),Ys=ae.n($s);const Zs=qn({attributesListHeader:{backgroundColor:"white",minHeight:"48px",borderBottom:"1px solid rgba(0, 0, 0, 0.05)",alignItems:"center",fontWeight:"500",lineHeight:"16px",paddingRight:"6px"},columnWithPadding:{paddingLeft:"16px"},rightSidePaneStyles:{fontSize:"12px"}}),Xs=({columnsData:e,isRightSidePanel:n})=>{const r=Zs();return t().createElement(Ys(),{container:!0,className:r.attributesListHeader},e.map((({id:e,size:i,isWithPadding:o})=>t().createElement(Ys(),{key:e,item:!0,xs:i,className:Qn()({[r.columnWithPadding]:o,[r.rightSidePaneStyles]:n})},(e=>{switch(e){case Ws.AttributeLabel:return L().text("Attribute label");case Ws.Name:return L().text("Name");case Ws.Type:return L().text("Type");case Ws.Description:return L().text("Description");case Ws.Sources:return L().text("Contributing sources");default:return""}})(e)))))};var Ks=ae(4539),Qs=ae.n(Ks);function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(null,arguments)}const el=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Js({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg2452379238a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},t().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),t().createElement("g",{mask:"url(#svg2452379238a)"},t().createElement("path",{fill:"#000",fillOpacity:".54",d:"M0 0h16v16H0z"})))};function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(null,arguments)}const nl=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",tl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg4130327632a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.95 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.948 12v-1.1h1.1V12h-1.1zM13.651 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),t().createElement("g",{mask:"url(#svg4130327632a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rl.apply(null,arguments)}const il=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",rl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741V4.85l1.331-.55h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(null,arguments)}const al=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",ol({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000",fillOpacity:".541"}))};function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sl.apply(null,arguments)}const ll=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",sl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.667 12h2v-.667c0-.368.298-.666.666-.666H12c.368 0 .667.298.667.666V14a.667.667 0 01-.667.667H9.333A.667.667 0 018.667 14v-.667H5.333v-8H4a.667.667 0 01-.667-.666V2c0-.368.299-.667.667-.667h4c.368 0 .667.299.667.667v2.667A.667.667 0 018 5.333H6.667v2h2v-.666c0-.369.298-.667.666-.667H12c.368 0 .667.298.667.667v2.666A.667.667 0 0112 10H9.333a.667.667 0 01-.666-.667v-.666h-2V12z",fill:"#000",fillOpacity:".54"}))};function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cl.apply(null,arguments)}const ul=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",cl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000",fillOpacity:".54"}))};function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(null,arguments)}const pl=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",dl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg1811967645a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),t().createElement("g",{mask:"url(#svg1811967645a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function fl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hl=e=>{switch(e){case E.DataTypes.TYPE_NUMBER:case E.DataTypes.TYPE_LONG:return nl;case E.DataTypes.TYPE_INT:return il;case E.DataTypes.TYPE_BOOLEAN:case E.DataTypes.TYPE_BOOLEAN_RADIO:return al;case E.DataTypes.TYPE_NESTED:case E.DataTypes.TYPE_REFERENCE:return ll;case E.DataTypes.TYPE_DATE:case E.DataTypes.TYPE_TIMESTAMP:return ul;case E.DataTypes.TYPE_SSN:return pl;default:return el}},ml=(0,x.pipe)((0,x.defaultTo)([]),(0,x.count)((0,x.complement)(E.isHiddenAttribute))),gl=qn({label:{margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{position:"relative",padding:"9px 16px 9px 20px",boxSizing:"border-box",height:"100%",overflow:"hidden"},labelTittle:{margin:"0 0 4px 0",padding:0,display:"flex",alignItems:"center",fontSize:"13px"},icon:{marginRight:"8px"},description:{margin:0,padding:"0 0 0 24px",fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)",display:"-webkit-box",maxWidth:"100%",lineClamp:3,boxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},complex:{cursor:"pointer"}}),vl=(0,e.memo)((({label:e,type:n,description:r,isComplex:i})=>{const o=gl(),a=hl(n);return t().createElement("div",{className:Qn()(o.labelContainer,{[o.complex]:i})},t().createElement("div",{className:o.labelTittle},t().createElement(a,{className:o.icon}),t().createElement(Aa,{value:e},t().createElement("p",{className:o.label},e))),t().createElement(Aa,{showOnExceededHeight:!0,value:r},t().createElement("p",{className:o.description},r)))}));vl.displayName="LabelComponentWithDescription";const yl=qn({container:{display:"flex",height:"100%",position:"relative",marginLeft:"10px"},treeLine:{height:"100%",width:"12px"},treeLineBorder:{borderRight:"1px solid rgba(0, 114, 206, 0.3)"},treeLineLastElement:{width:"12px",height:"50%",borderRight:"1px solid rgba(0, 114, 206, 0.3)"},marker:{top:"50%",right:"-3px",position:"absolute",width:"4px",height:"1px",backgroundColor:"rgba(0, 114, 206, 0.3)"},rightSidePanelMarker:{top:"16px"},rightPanelTreeLineLastElement:{height:"16px"}}),bl=({level:e,isLastAttributeInGroup:n,parentLevelsWithoutElementsBelow:r,isRightSidePanel:i})=>{const o=yl();return t().createElement("div",{className:o.container},Array(e).fill(null).map(((a,s)=>{const l=n&&s+1===e;return t().createElement("div",{"data-reltio-id":"tree-list-item",className:Qn()(o.treeLine,{[o.treeLineBorder]:!r.includes(s+1),[o.treeLineLastElement]:l,[o.rightPanelTreeLineLastElement]:i&&l}),key:s},t().createElement("div",{"data-reltio-id":"tree-list-item-marker",className:Qn()({[o.marker]:s+1===e,[o.rightSidePanelMarker]:i})}))})))},wl=qn((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}})));function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(null,arguments)}const El=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:i,tooltipPlacement:o,showForDisabled:a=!1}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["tooltipTitle","tooltipPlacement","showForDisabled"]);const l=wl();return i?t().createElement(ka(),{ref:r,title:i,placement:o||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:l.tooltip},PopperProps:{modifiers:[{name:"preventOverflow",options:{altAxis:!0}}]}},(e=>e?t().createElement("span",{ref:r,className:l.wrapper},t().createElement(n,s)):t().createElement(n,xl({ref:r},s)))(a)):t().createElement(n,xl({ref:r},s))}));return r.displayName="WithTooltip",r};var _l=ae(5743),Ol=ae.n(_l);let Sl=function(e){return e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE",e}({});function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cl.apply(null,arguments)}const kl=n=>{let{className:r,icon:i,avatarText:o,rootClasses:a}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["className","icon","avatarText","rootClasses"]);const[l,c]=(0,e.useState)(null);(0,e.useEffect)((()=>{c(i?Sl.ICON_MODE:Sl.TEXT_MODE)}),[i,o]);const u=()=>{c(Sl.ERROR_MODE)};switch(l){case Sl.ICON_MODE:return t().createElement(Ol(),Cl({className:Qn()(r,null==a?void 0:a.iconRoot),src:i,onError:u},s));case Sl.TEXT_MODE:case Sl.ERROR_MODE:return t().createElement(Ol(),Cl({className:Qn()(r,null==a?void 0:a.textRoot)},s),o);default:return null}},Ll=({sourceType:e,className:n,classes:r})=>{const i=zs((e=>e.metadata)),{uri:o,icon:a}=(0,E.findSourceSystemByUri)(i,e)||{},s=o?(0,E.getSourceSystemLabel)(i,o)[0]:"",l=a?(0,E.getAbsoluteImageUrl)("https://s3.amazonaws.com/reltio.images/api",a):null;return t().createElement(kl,{className:n,avatarText:s,icon:l,variant:"square",rootClasses:r})};var Pl=ae(2600),Tl=ae.n(Pl);const Rl=qn((e=>({sourcesContainer:{padding:"10px 10px 0 16px",color:"rgba(0, 0, 0, 0.87)"},source:{padding:"0 0 10px 0",margin:0},chipContainer:{position:"relative",top:"-2px",height:"19px",marginLeft:"6px",backgroundColor:"white",borderColor:e.palette.primary.main},chipLabel:{paddingLeft:"6px",paddingRight:"6px",fontSize:"13px",color:e.palette.primary.main},sourceContainer:{display:"flex"},sourceIcon:{height:"16px",width:"16px",marginRight:"4px"},sourceSystemRowSkeleton:{width:"55px",height:"20px","&:last-child":{marginBottom:"10px"}}}))),Al=El(ca()),Ml=(0,e.memo)((({attributeUri:e,sourcesData:n,parents:r})=>{const i=Rl(),{sourcesByAttributeName:o}=n,a=(0,E.attributeUriToSearchUri)(e,r),{sources:s=[],isLoading:l}=o[a]||{},[c,u]=(0,x.splitAt)(2,s),d=u.map(((e,n)=>t().createElement("div",{key:n},e)));return l?t().createElement("div",{className:i.sourcesContainer},t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton}),t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton})):t().createElement("div",{className:i.sourcesContainer},c.map(((e,n)=>{const r=`configuration/sources/${e}`;return t().createElement("div",{className:i.sourceContainer,key:n},t().createElement(Ll,{className:i.sourceIcon,sourceType:r}),t().createElement("p",{className:i.source},e),!!u.length&&n===c.length-1&&t().createElement(Al,{"data-reltio-id":"sources-chip",tooltipTitle:d,label:`+ ${u.length}`,variant:"outlined",classes:{root:i.chipContainer,label:i.chipLabel}}))})))}));Ml.displayName="AttributeSources";const Dl=qn({attributeTypeContainer:{display:"flex",alignItems:"center",paddingRight:"16px"},text:{marginLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"},icon:{flexShrink:0}}),zl=(0,e.memo)((({type:e})=>{const n=Dl(),r=hl(e);return t().createElement("div",{className:n.attributeTypeContainer},t().createElement(r,{className:n.icon}),t().createElement(Aa,{value:e},t().createElement("p",{className:n.text},e)))}));zl.displayName="AttributeTypeComponent";const jl=qn({basicCellStyles:{paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"}}),Nl=(0,e.memo)((({value:e,className:n})=>{const r=jl();return t().createElement(Aa,{value:e},t().createElement("p",{className:Qn()(r.basicCellStyles,n)},e))}));Nl.displayName="TableBasicCell";const Il="rgba(0, 0, 0, 0.05)",Fl=`1px solid ${Il}`,Bl=qn({container:{width:"100%"},expandIcon:{position:"absolute",opacity:"0.54",cursor:"pointer",top:"calc(50% - 12px)"},expandIconNormal:{transform:"rotate(-90deg)"},expandIconRotated:{transform:"rotate(0)"},attributeRow:{position:"relative",minHeight:"48px",width:"100%",display:"flex",alignItems:"center",fontSize:"13px",lineHeight:"15px",backgroundColor:"white"},divider:{width:"100%",borderColor:Il},label:{position:"relative",paddingLeft:"36px",paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{display:"flex",alignItems:"center",minHeight:"48px",alignSelf:"stretch",position:"relative"},sourcesContainer:{alignSelf:"stretch",alignContent:"start",minHeight:"36px",borderLeft:Fl},rightSidePanelMinHeight:{minHeight:"36px"},isComplex:{cursor:"pointer"},rightSidePanelExpandIconPosition:{top:"6px"},attributeRowBorder:{borderLeft:Fl,borderRight:Fl}}),Gl=({attributeNode:n,level:r,attributesGroupLength:i,index:o,isParentLastInGroup:a,parentLevelsWithoutElementsBelow:s,columnsData:l,isRightSidePanel:c,sourcesData:u,parents:d,shouldCollapse:p})=>{const{label:f,description:h,name:m,children:g,analyticsAttributes:v,shouldExpand:y}=n,[b,w]=(0,e.useState)(!0),[O,C]=(0,e.useState)(!1),k=(0,E.isComplexAttribute)(n),L=Bl();(0,e.useEffect)((()=>{w(p||!y)}),[p,y]);const P=(0,_.useSelector)(S().selectors.getMetadata),T=((e,t)=>{if(null!=e&&e.includes("/attributeTypes/")){const n=t.attributeTypes.find((0,x.propEq)("uri",e));return(null==n?void 0:n.valueType)||""}return e})(n.type,P),R=o+1===i;a&&s.push(r-1);const A=[...g||[],...c?[]:(null==v?void 0:v.filter(E.isReadableAttribute))||[]],M=d.concat({name:m,label:f}),D=(0,e.useCallback)((e=>{switch(e){case Ws.Name:return t().createElement(Nl,{value:m});case Ws.Type:return t().createElement(zl,{type:T});case Ws.Description:return t().createElement(Nl,{value:h});case Ws.Sources:return t().createElement(Ml,{attributeUri:n.uri,sourcesData:u,parents:d});default:return null}}),[n.uri,T,h,m,d,u]),z=(0,x.find)((0,x.propEq)("id",Ws.AttributeLabel),l),j=(0,e.useMemo)((()=>(0,x.pipe)((0,x.reject)((({id:e})=>e===Ws.AttributeLabel)),(0,x.map)((({id:e,size:n})=>t().createElement(Ys(),{key:e,item:!0,xs:n,className:Qn()({[L.sourcesContainer]:e===Ws.Sources})},D(e)))))(l)),[l,D,L.sourcesContainer]);return t().createElement(Ys(),{container:!0,className:Qn()(L.attributeRow,{[L.rightSidePanelMinHeight]:c,[L.attributeRowBorder]:0===r&&!c}),"data-reltio-id":`level-${r}-row-${o}`},!!z&&t().createElement(Ys(),{item:!0,xs:z.size,className:Qn()(L.labelContainer,{[L.rightSidePanelMinHeight]:c}),onClick:()=>{y&&C(!0),w((e=>!e))}},k&&t().createElement(er(),{"data-reltio-id":"expand-icon",className:Qn()(L.expandIcon,{[L.rightSidePanelExpandIconPosition]:c,[L.expandIconNormal]:b,[L.expandIconRotated]:!b}),style:{left:12*(r+1)+"px"}}),t().createElement(bl,{isRightSidePanel:c,level:r,isLastAttributeInGroup:R,parentLevelsWithoutElementsBelow:s}),c?t().createElement(vl,{label:f,type:T,description:h,isComplex:k}):t().createElement(Nl,{value:f,className:Qn()(L.label,{[L.isComplex]:k})})),j,t().createElement(Xn(),{className:L.divider}),k&&t().createElement(Qs(),{in:!b,className:L.container,mountOnEnter:!0,unmountOnExit:!0},t().createElement(Ql,{isRightSidePanel:c,columnsData:l,key:r+1,attributeNodes:A,level:r+1,isParentLastInGroup:R,parentLevelsWithoutElementsBelow:[...s],parents:M,shouldCollapse:O})))},Ul=new Promise((()=>{})),Hl=({cancelPrevious:t=!0,cancelOnUnmount:n=!0}={})=>{const r=(0,e.useRef)(x.identity),i=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&i()}),[]),(0,e.useCallback)((e=>(t&&i(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Ul;throw e})))),[])};var Wl=ae(4176);const ql=qn((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",left:0,right:0,width:"calc(100% - 64px)",maxWidth:"1280px",margin:"0 auto",zIndex:1e4}})));function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(null,arguments)}const $l=Wl.ZP.addError,Yl=n=>{let{showErrorFromStore:r}=n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["showErrorFromStore"]);const o=ql(),a=(c="errorSet",Ps(Ms,(e=>e[c]))),s=zs((e=>e.autoCloseInterval)),l=zs((e=>e.uiError));var c;return(0,e.useEffect)((()=>{l&&r&&(Yl.addError({title:L().text("Error"),message:l}),a(null))}),[a,l,r]),t().createElement(es(),{container:document.body},t().createElement(Wl.ZP,Vl({classes:{errorBlock:Qn()(o.errorBlock,(0,x.path)(["classes","errorBlock"],i))},autoCloseInterval:s},i)))};Yl.addError=$l;const Zl=(e,t)=>{const{title:n=L().text("Error"),message:r,defaultMessage:i}=t||{};console.warn(e),Yl.addError({title:n,message:r||(0,E.getRequestErrorMessage)(e,i)})};function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Kl(e,t,n[t])}))}return e}function Kl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ql=({attributeNodes:n,level:r,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o=[],columnsData:a,isRightSidePanel:s,parents:l=[],shouldCollapse:c})=>{const u=((t,n)=>{const{loadedAttributesSourcesRef:r,entityTypeUri:i}=(()=>{const t=(0,e.useContext)(qs);if(void 0===t)throw new Error("AttributesTableSources must be used within a AttributesTableSourcesProvider");return t})(),o=Hl(),[a,s]=(0,e.useState)({}),l=(0,e.useRef)(null);(0,e.useEffect)((()=>(l.current=new AbortController,()=>{l.current.abort()})),[]);const c=(0,e.useCallback)((async(e,t)=>{const n=(0,x.reduce)(((e,t)=>Xl({},e,{[t]:{isLoading:!0}})),{},e);s((e=>Xl({},e,n)));try{const n=await o((0,E.getDQChartsData)({entityTypeUri:i,attributes:e,dataLevel:E.DQDataLevel.ATTRIBUTE_TYPE,metrics:[E.DQMetric.CROSSWALK_ANALYSIS]},l.current.signal));if("statistic"in n){const e=(0,x.map)((e=>({sources:Object.keys(e.crosswalkAnalysis.data),isLoading:!1})),n.statistic);s((t=>Xl({},t,e))),Object.assign(t,e)}}catch(e){const t=(0,x.map)((0,x.assoc)("isLoading",!1),n);s(t),Zl(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}}),[]);return(0,e.useEffect)((()=>{if(!i||!t.length)return;const e=t.map((({uri:e})=>(0,E.attributeUriToSearchUri)(e,n))),o=r.current,[a,l]=(0,x.partition)((0,x.includes)(x.__,(0,x.keys)(o)),e);if(l.length||(0,E.isEmptyValue)(o)){if(a.length){const e=(0,x.pick)(a,o);s(e)}l.length&&c(l,o)}else s(o)}),[]),{sourcesByAttributeName:a}})(n,l);return t().createElement(t().Fragment,null,n.map(((e,d)=>t().createElement(Gl,{sourcesData:u,isRightSidePanel:s,columnsData:a,key:e.uri,attributeNode:e,level:r,index:d,attributesGroupLength:n.length,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o,parents:l,shouldCollapse:c}))))},Jl=qn({attributesListContainer:{height:"100%",overflow:"auto"}}),ec=({columnsData:e,attributeNodesList:n,isRightSidePanel:r,metadataTypeUri:i})=>{const o=Jl(),a=(0,E.isEntityTypeUri)(i)?i:null;return t().createElement(Vs,{entityTypeUri:a},t().createElement(Xs,{columnsData:e,isRightSidePanel:r}),t().createElement("div",{className:o.attributesListContainer},t().createElement(Ql,{attributeNodes:n,level:0,columnsData:e,isRightSidePanel:r})))},tc=[{id:Ws.AttributeLabel,size:3,isWithPadding:!0},{id:Ws.Name,size:2},{id:Ws.Type,size:2},{id:Ws.Description,size:5}],nc=({entityType:e})=>{const n=Hs(),r=(0,_.useSelector)(S().selectors.getMetadata),i=e?(0,E.getAllAttributeTypesTree)(r,e):[];return t().createElement("div",{key:null==e?void 0:e.uri,className:n.tableContainer},t().createElement(ec,{columnsData:tc,attributeNodesList:i}))},rc=t().createContext({settings:{},onChange:()=>{}});rc.displayName="PerspectivesSettingsContext";const ic=t=>{const{settings:n,onChange:r}=(0,e.useContext)(rc)||{},i=null==n?void 0:n[t];return{updatePerspectiveSettings:(0,e.useCallback)((e=>{r(t,e)}),[t,r]),perspectiveSettings:i}},{createElement:oc,createContext:ac,createRef:sc,forwardRef:lc,useCallback:cc,useContext:uc,useEffect:dc,useImperativeHandle:pc,useLayoutEffect:fc,useMemo:hc,useRef:mc,useState:gc}=e,vc=e["useId".toString()],yc=fc,bc=ac(null);bc.displayName="PanelGroupContext";const wc=yc,xc="function"==typeof vc?vc:()=>null;let Ec=0;function _c(e=null){const t=xc(),n=mc(e||t||null);return null===n.current&&(n.current=""+Ec++),null!=e?e:n.current}function Oc({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:s,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:p,style:f,tagName:h="div",...m}){const g=uc(bc);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:y,getPanelSize:b,getPanelStyle:w,groupId:x,isPanelCollapsed:E,reevaluatePanelConstraints:_,registerPanel:O,resizePanel:S,unregisterPanel:C}=g,k=_c(a),L=mc({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:k,idIsFromProps:void 0!==a,order:p});mc({didLogMissingDefaultSizeWarning:!1}),wc((()=>{const{callbacks:e,constraints:t}=L.current,o={...t};L.current.id=k,L.current.idIsFromProps=void 0!==a,L.current.order=p,e.onCollapse=c,e.onExpand=u,e.onResize=d,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=s,t.minSize=l,o.collapsedSize===t.collapsedSize&&o.collapsible===t.collapsible&&o.maxSize===t.maxSize&&o.minSize===t.minSize||_(L.current,o)})),wc((()=>{const e=L.current;return O(e),()=>{C(e)}}),[p,k,O,C]),pc(o,(()=>({collapse:()=>{v(L.current)},expand:e=>{y(L.current,e)},getId:()=>k,getSize:()=>b(L.current),isCollapsed:()=>E(L.current),isExpanded:()=>!E(L.current),resize:e=>{S(L.current,e)}})),[v,y,b,E,k,S]);const P=w(L.current,i);return oc(h,{...m,children:e,className:t,id:a,style:{...P,...f},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":k,"data-panel-size":parseFloat(""+P.flexGrow).toFixed(1)})}const Sc=lc(((e,t)=>oc(Oc,{...e,forwardedRef:t})));Oc.displayName="Panel",Sc.displayName="forwardRef(Panel)";let Cc=null,kc=null;function Lc(e,t){const n=function(e,t){if(t){const e=0!=(t&Gc),n=0!=(t&Uc);if(0!=(t&Fc))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&Bc))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);Cc!==n&&(Cc=n,null===kc&&(kc=document.createElement("style"),document.head.appendChild(kc)),kc.innerHTML=`*{cursor: ${n}!important;}`)}function Pc(e){return"keydown"===e.type}function Tc(e){return e.type.startsWith("pointer")}function Rc(e){return e.type.startsWith("mouse")}function Ac(e){if(Tc(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Rc(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const Mc=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dc(e){const t=getComputedStyle(e);return"fixed"===t.position||!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=Ic(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||+t.opacity<1||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||!!Mc.test(t.willChange)||"touch"===t.webkitOverflowScrolling}function zc(e){let t=e.length;for(;t--;){const n=e[t];if(nu(n,"Missing node"),Dc(n))return n}return null}function jc(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Nc(e){const t=[];for(;e;)t.push(e),e=Ic(e);return t}function Ic(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Fc=1,Bc=2,Gc=4,Uc=8,Hc="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let Wc=[],qc=!1,Vc=new Map,$c=new Map;const Yc=new Set;function Zc(e){const{target:t}=e,{x:n,y:r}=Ac(e);qc=!0,Qc({target:t,x:n,y:r}),eu(),Wc.length>0&&(tu("down",e),e.preventDefault(),e.stopPropagation())}function Xc(e){const{x:t,y:n}=Ac(e);if(!qc){const{target:r}=e;Qc({target:r,x:t,y:n})}tu("move",e),Jc(),Wc.length>0&&e.preventDefault()}function Kc(e){const{target:t}=e,{x:n,y:r}=Ac(e);$c.clear(),qc=!1,Wc.length>0&&e.preventDefault(),tu("up",e),Qc({target:t,x:n,y:r}),Jc(),eu()}function Qc({target:e,x:t,y:n}){Wc.splice(0);let r=null;e instanceof HTMLElement&&(r=e),Yc.forEach((e=>{const{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=Hc?o.coarse:o.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Nc(e),b:Nc(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;nu(r,"Stacking order can only be calculated for elements with a common ancestor");const i=jc(zc(n.a)),o=jc(zc(n.b));if(i===o){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let i=e.length;for(;i--;){const n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i-o)}(r,i)>0){let e=r,t=!1;for(;e&&!e.contains(i);){if(p=e.getBoundingClientRect(),f=a,!0?p.x<f.x+f.width&&p.x+p.width>f.x&&p.y<f.y+f.height&&p.y+p.height>f.y:p.x<=f.x+f.width&&p.x+p.width>=f.x&&p.y<=f.y+f.height&&p.y+p.height>=f.y){t=!0;break}e=e.parentElement}if(t)return}Wc.push(e)}var p,f}))}function Jc(){let e=!1,t=!1;Wc.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;$c.forEach((e=>{n|=e})),e&&t?Lc("intersection",n):e?Lc("horizontal",n):t?Lc("vertical",n):null!==kc&&(document.head.removeChild(kc),Cc=null,kc=null)}function eu(){Vc.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",Kc),n.removeEventListener("pointerdown",Zc),n.removeEventListener("pointerleave",Xc),n.removeEventListener("pointermove",Xc)})),window.removeEventListener("pointerup",Kc),window.removeEventListener("pointercancel",Kc),Yc.size>0&&(qc?(Wc.length>0&&Vc.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",Kc),n.addEventListener("pointerleave",Xc),n.addEventListener("pointermove",Xc))})),window.addEventListener("pointerup",Kc),window.addEventListener("pointercancel",Kc)):Vc.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",Zc,{capture:!0}),n.addEventListener("pointermove",Xc))})))}function tu(e,t){Yc.forEach((n=>{const{setResizeHandlerState:r}=n,i=Wc.includes(n);r(e,i,t)}))}function nu(e,t){if(!e)throw console.error(t),Error(t)}function ru(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function iu(e,t,n=10){return 0===ru(e,t,n)}function ou(e,t,n){return 0===ru(e,t,n)}function au({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];nu(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return ru(n,s)<0&&(n=o&&ru(n,(i+s)/2)<0?i:s),n=Math.min(a,n),parseFloat(n.toFixed(10))}function su({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(ou(e,0))return t;const a=[...t],[s,l]=r;nu(null!=s,"Invalid first pivot index"),nu(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{const r=e<0?l:s,i=n[r];nu(i,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(nu(null!=n,`Previous layout not found for panel index ${r}`),ou(n,o)){const t=c-n;ru(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,i=n[r];nu(i,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(nu(null!=n,`Previous layout not found for panel index ${r}`),ou(n,c)){const t=n-o;ru(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?l:s,o=0;for(;;){const e=t[i];if(nu(null!=e,`Previous layout not found for panel index ${i}`),o+=au({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const i=Math.abs(e)-Math.abs(c),o=t[r];nu(null!=o,`Previous layout not found for panel index ${r}`);const s=au({panelConstraints:n,panelIndex:r,size:o-i});if(!ou(o,s)&&(c+=o-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ou(e[n],t[n],undefined))return!1;return!0}(i,a))return i;{const r=e<0?l:s,i=t[r];nu(null!=i,`Previous layout not found for panel index ${r}`);const o=i+c,u=au({panelConstraints:n,panelIndex:r,size:o});if(a[r]=u,!ou(u,o)){let t=o-u,r=e<0?l:s;for(;r>=0&&r<n.length;){const i=a[r];nu(null!=i,`Previous layout not found for panel index ${r}`);const o=au({panelConstraints:n,panelIndex:r,size:i+t});if(ou(i,o)||(t-=o-i,a[r]=o),ou(t,0))break;e>0?r--:r++}}}return ou(a.reduce(((e,t)=>t+e),0),100)?a:i}function lu({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];return nu(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,i=l):(o+=c,a+=l)})),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function cu(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function uu(e,t,n=document){const r=cu(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function du(e,t,n){const r=uu(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function pu(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;return t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function fu(e,t=document){return t.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function hu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function mu(e,t){const n="horizontal"===e,{x:r,y:i}=Ac(t);return n?r:i}function gu(e,t,n){t.forEach(((t,r)=>{const i=e[r];nu(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,u),c&&(e||r)&&(!r||null!=u&&!iu(u,l)||iu(t,l)||r(),!e||null!=u&&iu(u,l)||!iu(t,l)||e())}}))}function vu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function yu(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function bu(e){return`react-resizable-panels:${e}`}function wu(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function xu(e,t){try{const n=bu(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function Eu(e,t,n,r,i){var o;const a=bu(e),s=wu(t),l=null!==(o=xu(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function _u({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!ou(r,100))for(let e=0;e<t.length;e++){const t=n[e];nu(null!=t,`No layout data found for index ${e}`);const i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){const r=n[e];nu(null!=r,`No layout data found for index ${e}`);const o=au({panelConstraints:t,panelIndex:e,size:r});r!=o&&(i+=r-o,n[e]=o)}if(!ou(i,0))for(let e=0;e<t.length;e++){const r=n[e];nu(null!=r,`No layout data found for index ${e}`);const o=au({panelConstraints:t,panelIndex:e,size:r+i});if(r!==o&&(i-=o-r,n[e]=o,ou(i,0)))break}return n}const Ou={getItem:e=>(yu(Ou),Ou.getItem(e)),setItem:(e,t)=>{yu(Ou),Ou.setItem(e,t)}},Su={};function Cu({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=Ou,style:c,tagName:u="div",...d}){const p=_c(o),f=mc(null),[h,m]=gc(null),[g,v]=gc([]),y=mc({}),b=mc(new Map),w=mc(0),x=mc({autoSaveId:e,direction:r,dragState:h,id:p,keyboardResizeBy:s,onLayout:a,storage:l}),E=mc({layout:g,panelDataArray:[],panelDataArrayChanged:!1});mc({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),pc(i,(()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current,i=_u({layout:e,panelConstraints:r.map((e=>e.constraints))});hu(n,i)||(v(i),E.current.layout=i,t&&t(i),gu(r,i,y.current))}})),[]),wc((()=>{x.current.autoSaveId=e,x.current.direction=r,x.current.dragState=h,x.current.id=p,x.current.onLayout=a,x.current.storage=l})),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){mc({didWarnAboutMissingResizeHandle:!1}),wc((()=>{if(!o)return;const e=cu(n,o);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:o,valueNow:a}=lu({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];nu(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,i,o]),dc((()=>{if(!o)return;const e=t.current;nu(e,"Eager values not found");const{panelDataArray:i}=e;nu(null!=pu(n,o),`No group found for id "${n}"`);const s=cu(n,o);nu(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");nu(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var i,o,a,s;const l=fu(t,r),c=cu(e,r),u=l?c.indexOf(l):-1;return[null!==(i=null===(o=n[u])||void 0===o?void 0:o.id)&&void 0!==i?i:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,i,o);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=i.findIndex((e=>e.id===s));if(l>=0){const e=i[l];nu(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=su({delta:ou(s,c)?d-c:c-s,initialLayout:r,panelConstraints:i.map((e=>e.constraints)),pivotIndices:du(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[o,e,t,n,r,i,a])}({committedValuesRef:x,eagerValuesRef:E,groupId:p,layout:g,panelDataArray:E.current.panelDataArray,setLayout:v,panelGroupElement:f.current}),dc((()=>{const{panelDataArray:t}=E.current;if(e){if(0===g.length||g.length!==t.length)return;let n=Su[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(Eu,100),Su[e]=n);const r=[...t],i=new Map(b.current);n(e,r,i,g,l)}}),[e,g,l]),dc((()=>{}));const _=cc((e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map((e=>e.constraints)),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=Pu(r,e,n);if(nu(null!=a,`Panel size not found for panel "${e.id}"`),!iu(a,o)){b.current.set(e.id,a);const l=su({delta:Lu(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});vu(n,l)||(v(l),E.current.layout=l,t&&t(l),gu(r,l,y.current))}}}),[]),O=cc(((e,t)=>{const{onLayout:n}=x.current,{layout:r,panelDataArray:i}=E.current;if(e.constraints.collapsible){const o=i.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=Pu(i,e,r),u=null!=t?t:l;if(iu(s,a)){const t=b.current.get(e.id),a=null!=t&&t>=u?t:u,l=su({delta:Lu(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});vu(r,l)||(v(l),E.current.layout=l,n&&n(l),gu(i,l,y.current))}}}),[]),S=cc((e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=Pu(n,e,t);return nu(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),C=cc(((e,t)=>{const{panelDataArray:n}=E.current,r=Lu(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:g,panelData:n,panelIndex:r})}),[h,g]),k=cc((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Pu(n,e,t);return nu(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&iu(o,r)}),[]),L=cc((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Pu(n,e,t);return nu(null!=o,`Panel size not found for panel "${e.id}"`),!i||ru(o,r)>0}),[]),P=cc((e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),E.current.panelDataArrayChanged=!0}),[]);wc((()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=x.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=xu(e,n))&&void 0!==r?r:{})[wu(t)])&&void 0!==i?i:null}(e,i,n);t&&(b.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,i=100;for(let o=0;o<e.length;o++){const e=n[o];nu(e,`Panel constraints not found for index ${o}`);const{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){const a=n[o];nu(a,`Panel constraints not found for index ${o}`);const{defaultSize:s}=a;if(null!=s)continue;const l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:i}));const a=_u({layout:o,panelConstraints:i.map((e=>e.constraints))});hu(r,a)||(v(a),E.current.layout=a,t&&t(a),gu(i,a,y.current))}})),wc((()=>{const e=E.current;return()=>{e.layout=[]}}),[]);const T=cc((e=>function(t){t.preventDefault();const n=f.current;if(!n)return()=>null;const{direction:r,dragState:i,id:o,keyboardResizeBy:a,onLayout:s}=x.current,{layout:l,panelDataArray:c}=E.current,{initialLayout:u}=null!=i?i:{},d=du(o,e,n);let p=function(e,t,n,r,i,o){if(Pc(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,i){const o="horizontal"===n,a=fu(t,i);nu(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");nu(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=mu(n,e),u=pu(s,i);nu(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(o?d.width:d.height)*100}(e,t,n,r,o)}(t,e,r,i,a,n);if(0===p)return;const h="horizontal"===r;"rtl"===document.dir&&h&&(p=-p);const m=su({delta:p,initialLayout:null!=u?u:l,panelConstraints:c.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:Pc(t)?"keyboard":"mouse-or-touch"}),g=!vu(l,m);var b,_;(Tc(t)||Rc(t))&&w.current!=p&&(w.current=p,b=e,_=g?0:h?p<0?Fc:Bc:p<0?Gc:Uc,$c.set(b,_)),g&&(v(m),E.current.layout=m,s&&s(m),gu(c,m,y.current))}),[]),R=cc(((e,t)=>{const{onLayout:n}=x.current,{layout:r,panelDataArray:i}=E.current,o=i.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=Pu(i,e,r);nu(null!=a,`Panel size not found for panel "${e.id}"`);const l=su({delta:Lu(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});vu(r,l)||(v(l),E.current.layout=l,n&&n(l),gu(i,l,y.current))}),[]),A=cc(((e,t)=>{const{layout:n,panelDataArray:r}=E.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=Pu(r,e,n);null!=u&&(o&&s&&iu(u,i)?iu(i,a)||R(e,a):u<c?R(e,c):u>l&&R(e,l))}),[R]),M=cc(((e,t)=>{const{direction:n}=x.current,{layout:r}=E.current;if(!f.current)return;const i=fu(e,f.current);nu(i,`Drag handle element not found for id "${e}"`);const o=mu(n,t);m({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})}),[]),D=cc((()=>{m(null)}),[]),z=cc((e=>{const{panelDataArray:t}=E.current,n=Lu(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],E.current.panelDataArrayChanged=!0)}),[]),j=hc((()=>({collapsePanel:_,direction:r,dragState:h,expandPanel:O,getPanelSize:S,getPanelStyle:C,groupId:p,isPanelCollapsed:k,isPanelExpanded:L,reevaluatePanelConstraints:A,registerPanel:P,registerResizeHandle:T,resizePanel:R,startDragging:M,stopDragging:D,unregisterPanel:z,panelGroupElement:f.current})),[_,h,r,O,S,C,p,k,L,A,P,T,R,M,D,z]),N={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return oc(bc.Provider,{value:j},oc(u,{...d,children:t,className:n,id:o,ref:f,style:{...N,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const ku=lc(((e,t)=>oc(Cu,{...e,forwardedRef:t})));function Lu(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function Pu(e,t,n){const r=Lu(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function Tu({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:a,onFocus:s,style:l={},tabIndex:c=0,tagName:u="div",...d}){var p,f;const h=mc(null),m=mc({onDragging:a});dc((()=>{m.current.onDragging=a}));const g=uc(bc);if(null===g)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:y,registerResizeHandle:b,startDragging:w,stopDragging:x,panelGroupElement:E}=g,_=_c(i),[O,S]=gc("inactive"),[C,k]=gc(!1),[L,P]=gc(null),T=mc({state:O});wc((()=>{T.current.state=O})),dc((()=>{if(n)P(null);else{const e=b(_);P((()=>e))}}),[n,_,b]);const R=null!==(p=null==r?void 0:r.coarse)&&void 0!==p?p:15,A=null!==(f=null==r?void 0:r.fine)&&void 0!==f?f:5;return dc((()=>{if(n||null==L)return;const e=h.current;return nu(e,"Element ref not attached"),function(e,t,n,r,i){var o;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!==(o=Vc.get(a))&&void 0!==o?o:0;return Vc.set(a,l+1),Yc.add(s),eu(),function(){var t;$c.delete(e),Yc.delete(s);const n=null!==(t=Vc.get(a))&&void 0!==t?t:1;if(Vc.set(a,n-1),eu(),1===n&&Vc.delete(a),Wc.includes(s)){const e=Wc.indexOf(s);e>=0&&Wc.splice(e,1),Jc()}}}(_,e,v,{coarse:R,fine:A},((e,t,n)=>{if(t)switch(e){case"down":{S("drag"),w(_,n);const{onDragging:e}=m.current;e&&e(!0);break}case"move":{const{state:e}=T.current;"drag"!==e&&S("hover"),L(n);break}case"up":{S("hover"),x();const{onDragging:e}=m.current;e&&e(!1);break}}else S("inactive")}))}),[R,v,n,A,b,_,L,w,x]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){dc((()=>{if(e||null==n||null==r)return;const i=fu(t,r);if(null==i)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=i.getAttribute("data-panel-group-id");nu(n,`No group element found for id "${n}"`);const o=cu(n,r),a=uu(n,t,r);nu(null!==a,`No resize element found for id "${t}"`),o[e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}}),[r,e,t,n])}({disabled:n,handleId:_,resizeHandler:L,panelGroupElement:E}),oc(u,{...d,children:e,className:t,id:i,onBlur:()=>{k(!1),null==o||o()},onFocus:()=>{k(!0),null==s||s()},ref:h,role:"separator",style:{touchAction:"none",userSelect:"none",...l},tabIndex:c,"data-panel-group-direction":v,"data-panel-group-id":y,"data-resize-handle":"","data-resize-handle-active":"drag"===O?"pointer":C?"keyboard":void 0,"data-resize-handle-state":O,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}Cu.displayName="PanelGroup",ku.displayName="forwardRef(PanelGroup)",Tu.displayName="PanelResizeHandle";const Ru=qn((()=>({container:{position:"relative"},panel:{position:"relative"},horizontal:{},vertical:{},disabled:{},resizer:{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&$disabled":{cursor:"initial",height:0,margin:0},"&$horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ns-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&$vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ew-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}})));function Au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Mu(e,t,n[t])}))}return e}function Mu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Du=e=>"horizontal"===e,zu=(e,t)=>e.toFixed(2)===t.toFixed(2),ju=({className:n,children:r,orientation:i="vertical",primary:o="first",size:a,minSize:s,maxSize:l,allowResize:c,debounceInterval:u=250,onChange:d})=>{const p=Ru(),f=(0,g.useTheme)(),h=(0,e.useRef)(),[m,v]=(0,e.useState)(null),[y,b]=(0,e.useState)(0),[w,x]=(0,e.useState)(0),[_,O]=(0,e.useState)(!0),S=(0,e.useCallback)((()=>O(!0)),[]),C=(0,e.useCallback)((()=>O(!1)),[]),k=(0,e.useCallback)((()=>Du(i)?null==m?void 0:m.clientHeight:null==m?void 0:m.clientWidth),[m,i]);"number"==typeof a&&a<0&&(a=(k()||0)+a);const L=(0,e.useCallback)((e=>"string"==typeof e&&e.endsWith("%")?+e.replace("%",""):("string"==typeof e&&e.endsWith("px")&&(e=e.replace("px","")),isNaN(+e)?null:+e/k()*100)),[k]),P=(0,e.useCallback)(((e,t)=>0===e||100===e?0:L(t)||0),[L]),T=(0,e.useCallback)((()=>{if(m&&h.current){const e=L(a);null==e||isNaN(e)||(x(P(e,l)),b(P(e,s)),h.current.resize(e))}}),[L,P,s,l,a,m]);(0,e.useEffect)((()=>{T()}),[T,w,y]);const R=(0,e.useCallback)((0,E.debounce)((e=>{if(void 0===e)return;const t=k();d({percentageSize:e+"%",isMaxSize:zu(e,+w>0?w:100+w),isMinSize:zu(e,y),size:Math.round(e*t/100)})}),u),[d,w,y,k]),A=(0,e.useCallback)((e=>{e?(R(),C()):(R(h.current.getSize()),S())}),[C,S,R]),M=(0,e.useMemo)((()=>({transition:f.transitions.create("flex",{easing:f.transitions.easing.sharp,duration:f.transitions.duration.leavingScreen})})),[f]),D=Au({className:p.panel,minSize:y},w>0?{maxSize:w}:{},{ref:h,style:_?M:void 0}),z=Au({className:p.panel,style:_?M:void 0},w<0?{minSize:-w}:{});return t().createElement("div",{ref:v,className:Qn()(p.container,n)},t().createElement(Sa,{handleHeight:Du(i),handleWidth:!Du(i),onResize:T,refreshMode:"debounce",refreshRate:50}),t().createElement(ku,{direction:Du(i)?"vertical":"horizontal"},t().createElement(Sc,"first"===o?D:z,r[0]),t().createElement(Tu,{className:Qn()(p.resizer,p[i],{[p.disabled]:!c}),disabled:!c,hitAreaMargins:{coarse:0,fine:0},onDragging:A}),t().createElement(Sc,"second"===o?D:z,r[1])))};ju.displayName="ResizablePanes";const Nu={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Iu=qn({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}});function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fu.apply(null,arguments)}function Bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Gu(e,t,n[t])}))}return e}function Gu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uu=(0,e.forwardRef)(((e,n)=>{const{className:r,onClick:i,icon:o,size:a=Nu.XS,iconClassName:s,classes:l={}}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["className","onClick","icon","size","iconClassName","classes"]),u=Iu();return t().createElement(Vo(),Fu({ref:n,classes:Bu({root:`${u[`root${a}`]} ${u.rootAll}`,disabled:u.disabled},l),onClick:i,className:r},c,{size:"large"}),o&&t().createElement(o,{classes:{root:u[`icon${a}`]},className:s}))}));Uu.displayName="SmallIconButton";const Hu=El(Uu),Wu=qn((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,g.alpha)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qu.apply(null,arguments)}const Vu=({disabled:e,buttonsProps:n,activeIndexId:r,className:i,onButtonClick:o})=>{const a=Wu();return t().createElement("div",{className:Qn()(a.container,i)},n.map((n=>{let{id:i}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["id"]);return t().createElement(Hu,qu({},s,{disabled:e,size:"S",key:i,className:Qn()(a.buttonWrapper,{[a.active]:r===i}),onClick:()=>o(i),"data-reltio-id":`reltio-profile-right-side-button-${i}`}))})))},$u=qn((()=>({resizablePanesWrapper:{flexGrow:1,height:"100%",marginRight:"1px"},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}))),Yu=480,Zu=({perspectiveId:n,children:r,buttonsProps:i,disabled:o,defaultTab:a})=>{const s=$u(),{perspectiveSettings:l,updatePerspectiveSettings:c}=ic(n),{width:u=Yu}=l||{},d=a||(null==l?void 0:l.active),p=!(0,x.isNil)(d)&&!o,f=(0,e.useCallback)((e=>{c(e)}),[c]),h=(0,e.useCallback)((e=>{f({active:d===e?null:e})}),[d,f]),m=(0,e.useCallback)((()=>{f({active:null})}),[f]),g=(0,e.useCallback)((({size:e})=>{f({width:e})}),[f]);return t().createElement(t().Fragment,null,t().createElement(ju,{className:s.resizablePanesWrapper,primary:"second",orientation:"vertical",size:p?u:0,minSize:320,maxSize:640,allowResize:p,onChange:g,debounceInterval:2500},t().createElement("div",{className:s.pane},r[0]),t().createElement("div",{className:s.pane},(0,e.cloneElement)(r[1],{active:d,onClose:m}))),t().createElement(Vu,{disabled:o,buttonsProps:i,onButtonClick:h,activeIndexId:d}))};Zu.displayName="ProfileResizablePanes";var Xu=ae(8996),Ku=ae.n(Xu),Qu=ae(6635),Ju=ae(9358);const ed=(0,e.createContext)(null),td=ed.Provider;function nd(){const t=(0,e.useContext)(ed);if(null==t)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return t}function rd(){return nd().sigma}function id(){const{sigma:t,container:n}=nd(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e={};return Object.keys(r).forEach((n=>{e[n]=r[n],t.setSetting(n,r[n])})),()=>{t&&n&&n.offsetWidth>0&&n.offsetHeight>0&&Object.keys(e).forEach((n=>{t.setSetting(n,e[n])}))}}),[t,r,n]),i}const od=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","beforeRender","afterRender","kill"],ad=["click","rightClick","mouseup","mousedown","mousemove","mousemovebody","doubleClick","wheel"],sd=["touchup","touchdown","touchmove"],ld=["updated"];function cd(){const t=rd(),n=id(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e=r,i=Object.keys(e),o={},a={},s=t.getSettings();return i.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===s.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,a.enableEdgeClickEvents=!1),i.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===s.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,a.enableEdgeHoverEvents=!1),i.some((e=>["wheelEdge"].includes(e)))&&!1===s.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,a.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&n(o),i.forEach((n=>{const r=e[n];od.find((e=>e===n))&&t.on(n,r),ad.find((e=>e===n))&&t.getMouseCaptor().on(n,r),sd.find((e=>e===n))&&t.getTouchCaptor().on(n,r),ld.find((e=>e===n))&&t.getCamera().on(n,r)})),()=>{Object.keys(a).length>0&&n(a),t&&i.forEach((n=>{const r=e[n];od.find((e=>e===n))&&t.off(n,r),ad.find((e=>e===n))&&t.getMouseCaptor().off(n,r),sd.find((e=>e===n))&&t.getTouchCaptor().off(n,r),ld.find((e=>e===n))&&t.getCamera().off(n,r)}))}}),[t,r,n]),i}const ud=(0,e.forwardRef)((({graph:n,id:r,className:i,style:o,settings:a,children:s},l)=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),d={className:`react-sigma ${i||""}`,id:r,style:o},[p,f]=(0,e.useState)(null),h=(0,e.useRef)({});(0,Qu.isEqual)(h.current,a)||(h.current=a||{}),(0,e.useEffect)((()=>{let e=null;if(null!==u.current){const t=n?"function"==typeof n?new n:n:new(Ku());e=new Ju.Sigma(t,u.current,Object.assign({allowInvalidContainer:!0},h.current)),p&&e.getCamera().setState(p.getCamera().getState())}return f(e),()=>{e&&e.kill(),f(null)}}),[u,n,h]),(0,e.useImperativeHandle)(l,(()=>p),[p]);const m=(0,e.useMemo)((()=>p&&c.current?{sigma:p,container:c.current}:null),[p,c.current]),g=null!==m?t().createElement(td,{value:m},s):null;return t().createElement("div",Object.assign({},d,{ref:c}),t().createElement("div",{className:"sigma-container",ref:u}),g)}));var dd=ae(1624),pd=ae(4488),fd=ae(5372),hd=ae.n(fd),md=ae(8586);const gd=e=>e.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),vd=e=>{const t=document.createElement("canvas");return t.style.position="absolute",t.setAttribute("class",`sigma-${e}`),t},yd=()=>{const{container:t,sigma:n}=nd(),[r,i]=(0,e.useState)({}),o=(0,e.useRef)({}),a=(0,e.useRef)(0),s=(0,e.useRef)(0),l=(0,e.useCallback)((e=>{i((0,x.mergeLeft)(e))}),[]),c=(0,e.useCallback)((()=>{a.current=t.offsetWidth,s.current=t.offsetHeight;const e=(0,md.getPixelRatio)();for(const t in o.current){const{canvasElement:n,context:r}=o.current[t];n.style.width=a.current+"px",n.style.height=s.current+"px",n.setAttribute("width",a.current*e+"px"),n.setAttribute("height",s.current*e+"px"),1!==e&&r.scale(e,e)}}),[t.offsetHeight,t.offsetWidth]),u=(0,e.useCallback)((()=>{for(const e in r){const{context:t}=o.current[e];t.clearRect(0,0,a.current,s.current);const{renderer:n}=r[e];n(t)}}),[r]),d=(0,e.useCallback)((()=>{for(const e in r){if(!(0,E.isEmptyValue)(o.current[e]))continue;const{insertBefore:n}=r[e],i=t.querySelector(".sigma-container"),a=vd(e),s=gd(a);i.insertBefore(a,i.querySelector(`.sigma-${n}`)),o.current[e]={canvasElement:a,context:s},c()}}),[r,t,c]);return(0,e.useEffect)((()=>(n.addListener("beforeRender",d),()=>{n.off("beforeRender",d)})),[n,d]),(0,e.useEffect)((()=>(n.addListener("afterRender",u),()=>{n.off("afterRender",u)})),[n,u]),(0,e.useEffect)((()=>(n.addListener("resize",c),()=>{n.off("resize",c)})),[n,c]),(0,e.useEffect)((()=>{const e=o.current;return()=>{for(const t in e)e[t].canvasElement.remove(),delete e[t]}}),[]),{addRenderers:l,canvases:o.current,canvasesRef:o}},bd=(0,e.createContext)({addRenderers:x.identity,canvases:{}});bd.displayName="SigmaCustomRenderersContext";const wd=({children:e})=>{const n=yd();return t().createElement(bd.Provider,{value:n},e)},xd=()=>{const n=rd(),r=(0,e.useCallback)((()=>{n.refresh()}),[n]);return t().createElement(Sa,{handleWidth:!0,onResize:r})},Ed=(e,t,n,{backgroundColor:r,borderColor:i}={})=>{var o;if(!t.label)return;const a=n.labelSize,s=n.labelFont,l=n.labelWeight,c=t.selected?6:2,u=1.2*a;e.font=`${l} ${a}px ${s}`;const d=((e,t,n,{backgroundColor:r="rgba(245, 245, 245, 0.9)",marginLeft:i=2,borderColor:o,lineHeight:a}={})=>{e.fillStyle=r,o&&(e.strokeStyle=o);const s=new Path2D;if("string"==typeof t.label){const r=t.secondaryLabel?a:0,l=n.labelSize+r+2,c=2,u=Math.max(e.measureText(t.label).width,e.measureText(t.secondaryLabel||"").width),d=Math.round(u+14),p=Math.round(l+4),f=t.size+2,h=t.y-p/2,m=t.y+p/2,g=t.x+f+i,v=g+d;s.moveTo(g,m-c),s.quadraticCurveTo(g,m,g+c,m),s.lineTo(v-c,m),s.quadraticCurveTo(v,m,v,m-c),s.lineTo(v,h+c),s.quadraticCurveTo(v,h,v-c,h),s.lineTo(g+c,h),s.quadraticCurveTo(g,h,g,h+c),s.closePath(),e.fill(s),o&&e.stroke(s)}return s})(e,t,n,{backgroundColor:t.selected?"#FFF":r,marginLeft:c,borderColor:i,lineHeight:u});e.fillStyle=null!==(o=n.labelColor)&&void 0!==o&&o.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;const p=t.secondaryLabel?t.y-a/3.75:t.y+a/3;var f,h,m;return e.fillText(t.label,t.x+t.size+9+c,p),t.secondaryLabel&&(e.fillStyle=null!==(f=n.secondaryLabelColor)&&void 0!==f&&f.attribute?t[n.secondaryLabelColor.attribute]||(null===(h=n.secondaryLabelColor)||void 0===h?void 0:h.color)||"#000":null===(m=n.secondaryLabelColor)||void 0===m?void 0:m.color,e.fillText(t.secondaryLabel,t.x+t.size+9+c,p+u)),d},_d=(e,t,{padding:n=1.5,color:r="#FFF",lineWidth:i=4}={})=>{e.lineWidth=i,e.strokeStyle=r,e.beginPath(),e.arc(t.x,t.y,t.size+n,0,2*Math.PI),e.closePath(),e.stroke()},Od=(e,t)=>{((e,t)=>{t.selected&&(e.shadowColor="rgba(0, 114, 206, 0.5)",e.shadowBlur=10,_d(e,t,{lineWidth:2,color:"#0072CE",padding:4.5}),e.shadowColor="none",e.shadowBlur=0)})(e,t),_d(e,t)},Sd=(e,t,n)=>{Od(e,t),Ed(e,t,n,{backgroundColor:"#FFF"})},Cd="\n// convert color to pale gray\nvec4 toPaleGrayscale(in vec4 color, float paleFactor)\n{\n vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n vec4 paleColor = mix(color, white, paleFactor);\n\n float average = (paleColor.r + paleColor.g + paleColor.b) / 3.0;\n return vec4(average, average, average, 1.0);\n}",kd=`\nprecision mediump float;\n\nvarying vec4 v_color; // base color of node\nvarying float v_border;\nvarying float v_borderRadius; // inner border radius\nvarying float v_inactive;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); // transparent color\nconst float radius = 0.5;\nconst float dashGapRatio = 5.5; // adjust this to change the ratio of dash size to gap size\nconst float totalLength = 2.0 * 3.14159 * radius;\nconst float dashSize = totalLength / (dashGapRatio + 1.0);\nconst float gapSize = dashSize / dashGapRatio;\n\n${Cd}\n\nvoid main(void) {\n vec4 color;\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(v_color, 0.5);\n } else {\n color = v_color;\n }\n\n float distToCenter = length(gl_PointCoord - vec2(0.5, 0.5)); // distance from current point to center of node\n float distAlongBorder = atan(gl_PointCoord.y - 0.5, gl_PointCoord.x - 0.5); // distance along the border\n float dashGapRatio = mod(distAlongBorder, dashSize + gapSize) / dashSize; // ratio of dash to gap\n\n // our change - added if statement to check if within a dash\n if (dashGapRatio < 1.0) {// if within a dash\n if (distToCenter < v_borderRadius - v_border) // distance to inner border radius\n gl_FragColor = transparent;\n else if (distToCenter < v_borderRadius)\n gl_FragColor = mix(color, transparent, (v_borderRadius - distToCenter) / v_border);\n else if (distToCenter < radius - v_border) // distance to outer border radius\n gl_FragColor = color;\n else if (distToCenter < radius)\n gl_FragColor = mix(transparent, color, (radius - distToCenter) / v_border);\n else // points outside the button\n gl_FragColor = transparent;\n } else {\n gl_FragColor = transparent;\n }\n}\n`;class Ld extends dd.AbstractNodeProgram{constructor(e){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute float a_borderSize;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying float v_borderRadius;\nvarying float v_inactive;\n\nconst float bias = 255.0 / 254.0;\nconst float radius = 0.5;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n v_borderRadius = radius - (radius * a_borderSize / a_size); // border radius in node's size (full size is 1)\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",kd,1,6),this.borderSize=void 0,this.inactive=void 0,this.borderSize=e.getAttribLocation(this.program,"a_borderSize"),this.inactive=e.getAttribLocation(this.program,"a_inactive"),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.borderSize),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.borderSize,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*6;if(t||!e.hasBorder)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,md.floatColor)(e.color),r[i++]=e.highlighted?2:1,r[i]=e.inactive?1:0}render(e){const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/6)}}const Pd=`\nprecision mediump float;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float radius = 0.5;\n\n${Cd}\n\nvoid main(void) {\n vec4 color;\n\n // set texel as color of point\n if (v_texture.w > 0.0) {\n vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));\n } else {\n color = v_color;\n }\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(color, 0.5);\n }\n\n // distance from point to center of node\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n\n if (dist < radius - v_border) // points inside node\n gl_FragColor = color;\n else if (dist < radius) // border of node\n gl_FragColor = mix(transparent, color, (radius - dist) / v_border);\n else // points outside node\n gl_FragColor = transparent;\n}`;class Td{constructor(){this.rebindTextureFns=[],this.images={},this.textureImage=void 0,this.hasReceivedImages=!1,this.pendingImagesFrameID=void 0,this.loadImage=(e,t)=>{if(this.images[e])return;const n=new Image;var r;n.addEventListener("load",(()=>{this.images[e]={status:"pending",image:n},"number"!=typeof this.pendingImagesFrameID&&(this.pendingImagesFrameID=requestAnimationFrame((()=>this.finalizePendingImages())))})),n.addEventListener("error",(()=>{this.images[e]={status:"error"}})),this.images[e]={status:"loading"},r=n,new URL(t,window.location.href).origin!==window.location.origin&&(r.crossOrigin=""),n.src=t.startsWith("data:image")?t:t+"?not-from-cache"},this.finalizePendingImages=()=>{this.pendingImagesFrameID=void 0;const e=[];for(const t in this.images){const n=this.images[t];"pending"===n.status&&e.push({id:t,image:n.image,size:Math.min(n.image.width,n.image.height)||1})}const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.reduce(((e,{size:t})=>e+t),this.hasReceivedImages?this.textureImage.width:0),t.height=Math.max(this.hasReceivedImages?this.textureImage.height:0,...e.map((({size:e})=>e)));let r=0;this.hasReceivedImages&&(n.putImageData(this.textureImage,0,0),r=this.textureImage.width),e.forEach((({id:e,image:t,size:i})=>{const o=Math.min(128,i);let a=0,s=0;(t.width||0)>(t.height||0)?a=(t.width-t.height)/2:s=(t.height-t.width)/2,n.drawImage(t,a,s,i,i,r,0,o,o),this.images[e]={status:"ready",x:r,y:0,width:o,height:o},r+=o})),this.textureImage=n.getImageData(0,0,t.width,t.height),this.hasReceivedImages=!0,this.rebindTextureFns.forEach((e=>e()))}}}const Rd={id:"defaultImage",path:(0,E.svg2Url)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};class Ad extends dd.AbstractNodeProgram{constructor(e,t){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute vec4 a_texture;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass the texture coordinates:\n v_texture = a_texture;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",Pd,1,9),this.imageLoader=void 0,this.texture=void 0,this.textureLocation=void 0,this.atlasLocation=void 0,this.latestRenderParams=void 0,this.inactive=void 0,this.imageLoader=new Td,this.imageLoader.rebindTextureFns.push((()=>{this&&this.rebindTexture&&this.rebindTexture(),t&&t.refresh&&t.refresh()})),this.imageLoader.textureImage=new ImageData(1,1),this.textureLocation=e.getAttribLocation(this.program,"a_texture"),this.inactive=e.getAttribLocation(this.program,"a_inactive");const n=e.getUniformLocation(this.program,"u_atlas");if(null===n)throw new Error("NodeProgramImage: error while getting atlasLocation");this.atlasLocation=n,this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),this.imageLoader.loadImage(Rd.id,Rd.path),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.textureLocation),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*9;const o=e.image;let a=o&&this.imageLoader.images[o];if("string"!=typeof o||a||this.imageLoader.loadImage(o,o),t)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);if(r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,md.floatColor)(e.color),r[i++]=e.inactive?1:0,a&&"ready"===a.status||(a=this.imageLoader.images[Rd.id]),a&&"ready"===a.status){const{width:e,height:t}=this.imageLoader.textureImage;r[i++]=a.x/e,r[i++]=a.y/t,r[i++]=a.width/e,r[i++]=a.height/t}else r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0}render(e){if(this.hasNothingToRender())return;this.latestRenderParams=e;const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1i(this.atlasLocation,0),t.drawArrays(t.POINTS,0,this.array.length/9)}rebindTexture(){const e=this.gl;e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.imageLoader.textureImage),e.generateMipmap(e.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))}}var Md=ae(3193),Dd=ae.n(Md);class zd extends(Dd()){process(e,t,n,r,i){if(r){for(let e=27*i,t=e+27;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size*o||1,s=t.size||1,l=e.x,c=e.y,u=t.x,d=t.y,p=(0,md.floatColor)(n.color),f=u-l,h=d-c;let m=f*f+h*h,g=0,v=0;m&&(m=1/Math.sqrt(m),g=-h*m*a,v=f*m*a);let y=27*i;const b=this.array;b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=p,b[y++]=1,b[y++]=0,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=p,b[y++]=0,b[y++]=1,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=p,b[y++]=0,b[y++]=0,b[y]=1}}class jd extends zd{process(e,t,n,r,i){super.process(t,e,n,r,i)}}var Nd=ae(3343),Id=ae.n(Nd);class Fd extends pd.AbstractEdgeProgram{constructor(e){super(e,"\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\nattribute float a_arrowSizeRatio;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // our change - apply a_arrowSizeRatio depending on current zoom and minThickness\n float arrowSizeCoefficient = min(a_arrowSizeRatio, a_arrowSizeRatio / (u_sqrtZoomRatio * minThickness));\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio * arrowSizeCoefficient;\n\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}",Id(),4,7),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.radiusLocation=void 0,this.arrowSizeRatioLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0,this.canUse32BitsIndices=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.radiusLocation=e.getAttribLocation(this.program,"a_radius"),this.arrowSizeRatioLocation=e.getAttribLocation(this.program,"a_arrowSizeRatio");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeClampedProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===r)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");this.sqrtZoomRatioLocation=r;const i=e.getUniformLocation(this.program,"u_correctionRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");this.correctionRatioLocation=i,this.canUse32BitsIndices=(0,md.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.arrowSizeRatioLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,7*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.arrowSizeRatioLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,24)}process(e,t,n,r,i){if(r){for(let e=28*i,t=e+28;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size||1,s=e.x,l=e.y,c=t.x,u=t.y,d="doubleArrow"===n.type?e.size||1:0,p=t.size||1,f=(0,md.floatColor)(n.color),h=c-s,m=u-l;let g=h*h+m*m,v=0,y=0;g&&(g=1/Math.sqrt(g),v=-m*g*a,y=h*g*a);let b=28*i;const w=this.array;w[b++]=s,w[b++]=l,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=-d,w[b++]=o,w[b++]=s,w[b++]=l,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=d,w[b++]=o,w[b++]=c,w[b++]=u,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=p,w[b++]=o,w[b++]=c,w[b++]=u,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=-p,w[b]=o}computeIndices(){const e=this.array.length/7,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}render(e){if(this.hasNothingToRender())return;const t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}}class Bd extends pd.AbstractEdgeProgram{constructor(e){super(e,"\nattribute float a_lineLength; // our addition\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_position; // our addition\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least 'minThickness' pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our \"magic\" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the \"SQRT rule\" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be 'adapted = value * zoom / sqrt(zoom)', but\n // it's simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the \"magic\"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasing effect does not depend on the zoom level. So here's yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n v_position = a_lineLength / u_sqrtZoomRatio; // our addition\n}\n","\nprecision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_position; // our addition - the position along the line\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float u_dashSize = 0.01; // our addition\nconst float u_gapSize = 0.005; // our addition\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n // our additions\n float totalSize = u_dashSize + u_gapSize;\n float positionInDashGap = mod(v_position, totalSize);\n float dashGapRatio = positionInDashGap / u_dashSize;\n // end additions (dashGapRatio is used below in if)\n\n if (dashGapRatio < 1.0) {\n gl_FragColor = mix(v_color, transparent, t);\n } else {\n discard;\n }\n}\n",4,6),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.canUse32BitsIndices=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.lineLengthLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeProgram: error while creating indicesBuffer");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.lineLengthLocation=e.getAttribLocation(this.program,"a_lineLength");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_correctionRatio");if(null===r)throw new Error("EdgeProgram: error while getting correctionRatioLocation");this.correctionRatioLocation=r;const i=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");this.sqrtZoomRatioLocation=i,this.canUse32BitsIndices=(0,md.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.lineLengthLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.lineLengthLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,20)}computeIndices(){const e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}process(e,t,n,r,i){if(r){for(let e=24*i,t=e+24;e<t;e++)this.array[e]=0;return}const o=n.size||1,a=e.x,s=e.y,l=t.x,c=t.y,u=(0,md.floatColor)(n.color),d=l-a,p=c-s;let f=d*d+p*p,h=0,m=0;const g=Math.sqrt(f);f&&(f=1/Math.sqrt(f),h=-p*f*o,m=d*f*o);let v=24*i;const y=this.array;y[v++]=a,y[v++]=s,y[v++]=h,y[v++]=m,y[v++]=0,y[v++]=u,y[v++]=a,y[v++]=s,y[v++]=-h,y[v++]=-m,y[v++]=0,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=h,y[v++]=m,y[v++]=g,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=-h,y[v++]=-m,y[v++]=g,y[v]=u}render(e){if(this.hasNothingToRender())return;const t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}}const Gd=qn({"@global :root":{"--sigma-background-color":"#fff","--sigma-controls-background-color":"#fff","--sigma-controls-background-color-hover":"rgba(0,0,0,0.2)","--sigma-controls-border-color":"rgba(0,0,0,0.2)","--sigma-controls-color":"#000","--sigma-controls-zindex":"100","--sigma-controls-margin":"5px","--sigma-controls-size":"30px"},"@global div.react-sigma":{height:"100%",width:"100%",position:"relative",background:"var(--sigma-background-color)"},"@global div.sigma-container":{height:"100%",width:"100%"},"@global .react-sigma-controls":{position:"absolute",zIndex:"var(--sigma-controls-zindex)",border:"2px solid var(--sigma-controls-border-color)",borderRadius:"4px",color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-controls.bottom-right":{bottom:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.bottom-left":{bottom:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-right":{top:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-left":{top:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls:first-child":{borderTopLeftRadius:"2px",borderTopRightRadius:"2px"},"@global .react-sigma-controls:last-child":{borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px"},"@global .react-sigma-control":{width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundColor:"var(--sigma-controls-background-color)",borderBottom:"1px solid var(--sigma-controls-border-color)"},"@global .react-sigma-control:last-child":{borderBottom:"none"},"@global .react-sigma-control > *":{boxSizing:"border-box"},"@global .react-sigma-control > button":{display:"block",border:"none",margin:"0",padding:"0",width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundPosition:"center",backgroundSize:"50%",backgroundRepeat:"no-repeat",backgroundColor:"var(--sigma-controls-background-color)",clip:"rect(0,0,0,0)"},"@global .react-sigma-control > button:hover":{backgroundColor:"var(--sigma-controls-background-color-hover)"},"@global .react-sigma-search":{backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-search label":{visibility:"hidden"},"@global .react-sigma-search input":{color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)",fontSize:"1em",width:"100%",margin:"0",border:"none",padding:"var(--sigma-controls-margin)",boxSizing:"border-box"}}),Ud=({children:n,initialSettings:r})=>{Gd();const i=(0,e.useMemo)((()=>(0,x.mergeDeepRight)({allowInvalidContainer:!0,defaultNodeType:"image",hoverRenderer:Sd,labelRenderer:Ed,nodeProgramClasses:{image:(0,dd.createNodeCompoundProgram)([Ad,Ld])},edgeProgramClasses:{line:hd(),arrow:(0,pd.createEdgeCompoundProgram)([Fd,zd]),doubleArrow:(0,pd.createEdgeCompoundProgram)([Fd,zd,jd]),dashed:Bd},labelFont:"Roboto",labelSize:13,labelColor:{color:"rgba(0, 0, 0, 0.87)",attribute:"labelColor"},secondaryLabelColor:{color:"rgba(0, 0, 0, 0.54)",attribute:"secondaryLabelColor"}},r||{})),[r]);return t().createElement(ud,{graph:Xu.MultiGraph,style:{background:"transparent"},settings:i},t().createElement(wd,null,t().createElement(xd,null),n))};var Hd=ae(8833),Wd=ae.n(Hd),qd=ae(3660),Vd=ae.n(qd),$d=ae(8301),Yd=ae.n($d),Zd=ae(1181);function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Kd(e,t,n[t])}))}return e}function Kd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qd=({graph:t,newNodesIds:n,animationDuration:r,relayoutTrigger:i})=>{const o=(0,e.useMemo)((()=>(Wd().assign(t),{settings:Xd({},Vd().inferSettings(t),{gravity:1})})),[t]);((r,i)=>{const o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{o.current?(()=>{if(null!=n&&n.length){const e=t.copy();Wd().assign(e),n.forEach((n=>{t.setNodeAttribute(n,"x",e.getNodeAttribute(n,"x")),t.setNodeAttribute(n,"y",e.getNodeAttribute(n,"y"))}))}})():o.current=!0}),i)})(0,[n]),(({graph:t,syncLayout:n,workerLayout:r,layoutSettings:i,initialCameraRatio:o=1.2,animationDuration:a,relayoutTrigger:s})=>{const l=rd(),c=function(){const t=rd();return(0,e.useCallback)(((e,n=!0)=>{t&&e&&(n&&t.getGraph().order>0&&t.getGraph().clear(),t.getGraph().import(e),t.refresh())}),[t])}();(0,e.useEffect)((()=>{l.getCamera().setState({ratio:o})}),[t,l,o]),(0,e.useEffect)((()=>{if(c(t),n){const e=n(l.getGraph(),i);(0,Zd.animateNodes)(l.getGraph(),e,{duration:a||1e3})}if(r){const e=new r(l.getGraph(),i);e.start();const t=setTimeout((()=>{e.stop()}),a||5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,i,c,l,n,r,a,s])})({workerLayout:Yd(),layoutSettings:o,animationDuration:r,graph:t,relayoutTrigger:i})};let Jd=function(e){return e.entityType="entityType",e.interactionType="interactionType",e}({});const ep=.4,tp=(e,t,n,r=0)=>({x1:e-7*(n+r),y1:t,x2:e,y2:t+7*(n+r)}),np=(e,t,n,r,i,o,a)=>({aX:e+(r-e)*(n-a-o)/n,aY:t+(i-t)*(n-a-o)/n,vX:(r-e)*a/n,vY:(i-t)*a/n}),rp=(e,t,n,r,i)=>{e.beginPath(),e.moveTo(t+r,n+i),e.lineTo(t+i*ep,n-r*ep),e.lineTo(t-i*ep,n+r*ep),e.lineTo(t+r,n+i),e.closePath(),e.fill()};function ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){op(e,t,n[t])}))}return e}function op(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ap=t=>{const n=rd(),{addRenderers:r,canvases:i}=(0,e.useContext)(bd),o=(0,e.useRef)({}),{selfRelationLoops:a}=i;return(0,e.useEffect)((()=>{r({selfRelationLoops:{renderer:e=>{t.forEachEdge(((t,r,i)=>{if(r.loop){delete o.current[t];const r=n.getEdgeDisplayData(t),a=n.getNodeDisplayData(i);if(r.hidden||a.hidden)return;const s=((e,t,n)=>{const{size:r,color:i,arrowSizeRatio:o=1}=t,a=n.x,s=n.y,l=n.size,c=tp(a,s,.6*l);e.strokeStyle=i,e.lineWidth=r;const u=new Path2D;if("arrow"===t.type||"doubleArrow"===t.type){if(e.fillStyle=i,"doubleArrow"===t.type){const t=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return np(e.x2,e.y2,o,t,n,r,i)})(c,a,s,l,r*o*2.2);rp(e,t.aX,t.aY,t.vX,t.vY),u.moveTo(t.aX,t.aY)}else u.moveTo(a,s);const n=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return np(e.x1,e.y1,o,t,n,r,i)})(c,a,s,l,r*o*2.2);u.bezierCurveTo(c.x2,c.y2,c.x1,c.y1,n.aX,n.aY),e.stroke(u),rp(e,n.aX,n.aY,n.vX,n.vY)}else u.moveTo(a,s),u.bezierCurveTo(c.x1,c.y1,c.x2,c.y2,a,s),e.stroke(u);return u})(e,ip({},r,{size:n.scaleSize(r.size)}),ip({},a,n.framedGraphToViewport(a),{size:n.scaleSize(a.size)}));o.current[t]=s}}))},insertBefore:"edges"}})}),[r,t,n]),{selfRelationsPathsMap:o.current,selfRelationLoopsCanvas:a}},sp=(e,t,n,r)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n),s=r.framedGraphToViewport({x:o.x,y:o.y}),l=r.framedGraphToViewport({x:a.x,y:a.y}),c=i.loop&&(()=>{const{x1:e,y1:t,x2:n,y2:i}=tp(s.x,s.y,.6*r.scaleSize(o.size));return((e,t,n,r,i,o,a,s)=>({x:.125*e+.375*i+.375*a+.125*n,y:.125*t+.375*o+.375*s+.125*r}))(s.x,s.y,s.x,s.y,e,t,n,i)})(),u=e=>s[e]+(l[e]-s[e])/2;return{x:i.loop?c.x:u("x"),y:i.loop?c.y:u("y")}};function lp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cp="customEdgeLabels";function up(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){pp(e,t,n[t])}))}return e}function pp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fp={type:"image",size:28,color:"rgba(55, 71, 79, 1)"},hp={size:1},mp="rgba(224, 224, 224, 1)",gp="rgba(0, 0, 0, 0.38)",vp=({graph:t,selectedNode:n,onNodeClick:r,selectedEdges:i,onEdgeLabelClick:o,hideInteractionTypes:a})=>(Qd({graph:t,animationDuration:3e3}),(({graph:t,selectedNode:n,selectedEdges:r,onNodeClick:i,onEdgeLabelClick:o,hideInteractionTypes:a,relationEdgesLabelsAmountThreshold:s=29})=>{const l=rd(),{container:c}=nd(),[u,d]=(0,e.useState)(null),p=cd(),f=id();ap(t);const h=(({graph:t,onEdgeLabelClick:n})=>{const r=rd(),i=r.getSettings(),o=cd(),{addRenderers:a,canvasesRef:s}=yd(),{[cp]:l}=s.current,c=(0,e.useRef)({}),[u,d]=(0,e.useState)(),[p,f]=(0,e.useState)(!1),h=(0,e.useCallback)(((e,t,n)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n);return[o.nodeType,a.nodeType].every((e=>e===Jd.entityType))&&!i.hidden&&i.label}),[r]),m=(0,e.useCallback)(((e,t,n,o)=>{delete c.current[t];const a=r.getEdgeDisplayData(t);if(h(t,n,o)){const s=u===t,l=a.selected,d=s?1.2:1,{x:p,y:f}=sp(t,n,o,r),h=Ed(e,{label:a.label,labelColor:a.labelColor,x:p,y:f,size:r.scaleSize(4)},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){lp(e,t,n[t])}))}return e}({},i,{labelSize:i.labelSize*d}),{backgroundColor:`rgba(250, 250, 250, ${l||s?"1":"0.9"})`,borderColor:l?"#0072CE":void 0});c.current[t]=h}}),[r,u,h]),g=(0,e.useCallback)(((e,t,n,i)=>{const o=r.getEdgeDisplayData(t);if(h(t,n,i)){const a=u===t,s=o.selected,l=a||s?1.4:1,c=r.scaleSize(2*l),{x:d,y:p}=sp(t,n,i,r);e.beginPath(),e.arc(d,p,c,0,2*Math.PI),e.fillStyle=(0,E.rgbaToRgb)(o.color),e.fill()}}),[r,u,h]);return(0,e.useEffect)((()=>{let e;const t=()=>{const{[cp]:n}=s.current;n?f(!0):e=setTimeout(t,100)};return t(),()=>{clearTimeout(e)}}),[s]),(0,e.useEffect)((()=>{o({click:e=>{u&&(n(u,e.original),d(null))},mousemove:e=>{if(!l)return;const{context:t,canvasElement:n}=l,{x:r,y:i}=((e,t)=>{const n=e.getBoundingClientRect();return{x:(t.clientX-n.left)/(n.right-n.left)*e.width,y:(t.clientY-n.top)/(n.bottom-n.top)*e.height}})(n,e.original);let o=null;for(const e in c.current){const n=c.current[e];if(t.isPointInPath(n,r,i)){o=e;break}o=null}d(o)}})}),[r,l,o,u,n,p]),(0,e.useEffect)((()=>{a({[cp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&m(e,t,r,i)}))},insertBefore:"labels"}})}),[a,t,m,u]),(0,e.useEffect)((()=>{a({edgeDots:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&g(e,t,r,i)}))},insertBefore:"edgeLabels"}})}),[a,t,g,u]),(0,e.useEffect)((()=>{a({customEdgeLabelsHovers:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t===u&&(m(e,t,r,i),g(e,t,r,i))}))},insertBefore:"hovers"}})}),[a,t,m,g,u]),u})({graph:t,onEdgeLabelClick:o});(t=>{const n=rd(),{addRenderers:r}=yd();(0,e.useEffect)((()=>{r({selectedNodeBorder:{renderer:e=>{t.forEachNode((t=>{const r=n.getNodeDisplayData(t);if(!r.selected)return;const i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){up(e,t,n[t])}))}return e}({},r,n.framedGraphToViewport(r),{size:n.scaleSize(r.size)});Od(e,i)}))},insertBefore:cp}})}),[r,t,n])})(t);const m=(0,e.useMemo)((()=>t.reduceEdges(((e,t,n)=>{var r;return(null===(r=n.relationTypes)||void 0===r?void 0:r.length)>0?e+1:e}),0)),[t]);(0,e.useEffect)((()=>{p({enterNode:({node:e})=>{d(e)},leaveNode:()=>{d(null)},clickNode:({node:e})=>{i(e)}})}),[l,p,i]),(0,e.useEffect)((()=>{c.style.cursor=u||h?"pointer":"default"}),[c,u,h]),(0,e.useEffect)((()=>{const e=l.getGraph();let t;try{t=e.neighbors(n)}catch(e){}f({nodeReducer:(i,o)=>{const s=i===n,l=n&&t&&[...t,n].every((e=>e!==i))||(null==r?void 0:r.length)>0&&r.every((t=>!e.hasExtremity(t,i)))||!1,c=dp({},fp,o);return o.nodeType===Jd.interactionType&&(c.hasBorder=!0,c.image=(0,E.svg2Url)('\n<svg id="123" width="500px" height="500px" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="25" cy="25" r="25" fill="#E7EAED" stroke="#E7EAED" stroke-width="0"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M26 26.1458C26.1784 26.3176 26.3127 26.5349 26.3841 26.7791L28.7321 28.1346C28.9712 28.2727 29.0531 28.5785 28.9151 28.8177L28.4151 29.6837C28.277 29.9228 27.9712 30.0048 27.7321 29.8667L25.4564 28.5529C25.313 28.6007 25.1595 28.6266 25 28.6266C24.8405 28.6266 24.687 28.6007 24.5436 28.5529L22.2679 29.8667C22.0288 30.0048 21.723 29.9228 21.5849 29.6837L21.0849 28.8177C20.9469 28.5785 21.0288 28.2727 21.2679 28.1346L23.6159 26.7791C23.6873 26.5349 23.8216 26.3176 24 26.1458V23.8846C24 23.6085 24.2239 23.3846 24.5 23.3846H25.5C25.7761 23.3846 26 23.6085 26 23.8846V26.1458ZM24.8 22.3846C23.1431 22.3846 21.8 21.0415 21.8 19.3846C21.8 17.7278 23.1431 16.3846 24.8 16.3846C26.4569 16.3846 27.8 17.7278 27.8 19.3846C27.8 21.0415 26.4569 22.3846 24.8 22.3846ZM18 34.3846C16.3431 34.3846 15 33.0415 15 31.3846C15 29.7278 16.3431 28.3846 18 28.3846C19.6569 28.3846 21 29.7278 21 31.3846C21 33.0415 19.6569 34.3846 18 34.3846ZM32 34.3846C30.3431 34.3846 29 33.0415 29 31.3846C29 29.7278 30.3431 28.3846 32 28.3846C33.6569 28.3846 35 29.7278 35 31.3846C35 33.0415 33.6569 34.3846 32 34.3846Z" fill="#37474F"/>\n</svg>\n')),l&&(c.inactive=!0,c.labelColor=gp,c.secondaryLabelColor=gp),s&&(c.selected=!0,c.zIndex=100),u===i||s||delete c.secondaryLabel,o.nodeType===Jd.interactionType&&a&&(c.hidden=!0),c},edgeReducer:(t,i)=>{const o="dashed"===i.type,a=dp({},hp,i),l=null==r?void 0:r.includes(t);a.selected=l;const c=m>s;return n?e.hasExtremity(t,n)?a.color=o?"rgba(79, 79, 79, 1)":"rgba(130, 130, 130, 1)":(a.color=mp,a.labelColor=gp,c&&delete a.label):null!=r&&r.length?(a.color=l?"rgba(79, 79, 79, 1)":mp,a.labelColor=l?void 0:gp,c&&!l&&delete a.label):(a.color="rgba(0, 0, 0, 0.2)",c&&delete a.label),a}})}),[l,f,n,r,h,u,m,s,a])})({graph:t,selectedNode:n,selectedEdges:i,onNodeClick:r,onEdgeLabelClick:o,hideInteractionTypes:a}),null);var yp=ae(6439),bp=ae.n(yp),wp=ae(5608),xp=ae.n(wp);function Ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){_p(e,t,n[t])}))}return e}function _p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Op="0 1px 1px rgba(0,0,0,0.14), 0 2px 1px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.2)",Sp={background:"#FFFFFF",boxShadow:Op,width:"28px",height:"28px"},Cp=qn({container:{display:"flex",alignItems:"center"},maxButton:Ep({},Sp,{borderRadius:"2px 4px 4px 2px"}),minButton:Ep({},Sp,{borderRadius:"4px 2px 2px 4px"}),thumb:{boxShadow:Op,borderRadius:"2px",width:"8px",height:"28px",marginLeft:"5px",color:"rgba(0,0,0,0.54)",backgroundColor:"#FFFFFF","&.MuiSlider-thumb.Mui-focusVisible, &:hover":{boxShadow:Op},"&:before":{boxShadow:"none"}},thumbIcon:{transform:"rotate(90deg)"},icon:{width:"18px",height:"18px"},rail:{opacity:1,height:"4px",paddingRight:"10px",marginTop:"1px"},sliderRoot:{color:"#EDEDED",marginRight:"10px",height:"2px"}}),kp=e=>Math.pow(100/e,2),Lp=e=>100/Math.sqrt(e),Pp=e=>{const{children:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]),i=Cp();return t().createElement(wp.SliderThumb,r,n,t().createElement(bp(),{className:Qn()(i.icon,i.thumbIcon)}))},Tp=({className:n,max:r,min:i})=>{const o=Cp(),a=id(),s=cd(),l=rd().getCamera(),{zoomIn:c,zoomOut:u}=function(t){const n=rd(),r=(0,e.useRef)();(0,Qu.isEqual)(r.current,t)||(r.current=t);const i=(0,e.useCallback)((e=>{n.getCamera().animatedZoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),o=(0,e.useCallback)((e=>{n.getCamera().animatedUnzoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),a=(0,e.useCallback)((e=>{n.getCamera().animatedReset(Object.assign(Object.assign({},r.current),e))}),[n,r]),s=(0,e.useCallback)(((e,t)=>{n.getCamera().animate(e,Object.assign(Object.assign({},r.current),t))}),[n,r]),l=(0,e.useCallback)(((e,t)=>{const i=n.getNodeDisplayData(e);i?n.getCamera().animate(i,Object.assign(Object.assign({},r.current),t)):console.log(`Node ${e} not found`)}),[n,r]);return{zoomIn:i,zoomOut:o,reset:a,goto:s,gotoNode:l}}({factor:1.2}),[d,p]=(0,e.useState)((0,x.clamp)(i,r,Lp(l.getState().ratio))),f=(0,e.useMemo)((()=>i>0?kp(i):null),[i]),h=(0,e.useMemo)((()=>r>0?kp(r):null),[r]);return(0,e.useEffect)((()=>(a({maxCameraRatio:f,minCameraRatio:h}),()=>{a({maxCameraRatio:null,minCameraRatio:null})})),[a,h,f]),(0,e.useEffect)((()=>{s({updated:e=>p(Lp(e.ratio))})}),[s]),t().createElement("div",{className:Qn()(o.container,n)},t().createElement(Vo(),{className:o.minButton,onClick:()=>u(),size:"large"},t().createElement(bp(),{className:o.icon})),t().createElement(xp(),{slots:{thumb:Pp},slotProps:{thumb:{className:o.thumb}},classes:{root:o.sliderRoot,rail:o.rail},track:!1,value:d,min:i,max:r,onChange:(e,t)=>l.setState({ratio:l.getBoundedRatio(kp(t))})}),t().createElement(Vo(),{className:o.maxButton,onClick:()=>c(),size:"large"},t().createElement(Ka(),{className:o.icon})))},Rp=qn({wrapper:{height:"100%",position:"relative",background:"rgb(245, 245, 245)"},graph:{height:"100%"},rightBottomControls:{position:"absolute",zIndex:100,right:"18px",bottom:"16px",display:"flex",width:"200px"},zoomSlider:{flexGrow:1,marginRight:"8px"}}),Ap={labelRenderedSizeThreshold:11,zIndex:!0},Mp=({graph:e,children:n,selectedNode:r,onNodeClick:i=x.identity,selectedEdges:o,onEdgeLabelClick:a=x.identity,hideInteractionTypes:s})=>{const l=Rp();return t().createElement("div",{className:l.wrapper},t().createElement("div",{className:l.graph},e&&t().createElement(Ud,{initialSettings:Ap},t().createElement(t().Fragment,null,t().createElement(vp,{graph:e,selectedNode:r,onNodeClick:i,selectedEdges:o,onEdgeLabelClick:a,hideInteractionTypes:s}),t().createElement("div",{className:l.rightBottomControls},t().createElement(Tp,{className:l.zoomSlider,min:30,max:300}))))),n)},Dp=qn((e=>({summaryContainer:{position:"absolute",top:12,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:32,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},summaryDivider:{height:4,width:4,margin:"0 24px",borderRadius:"50%",backgroundColor:"#D9D9D9"},summaryItem:{display:"flex",alignItems:"center"},summaryItemName:{marginRight:8,color:e.palette.text.secondary,fontSize:13},summaryItemValue:{color:e.palette.text.primary,fontSize:18}}))),zp=()=>{const e=Dp(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=C();return t().createElement("div",{className:e.summaryContainer},t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Entity types")),t().createElement("span",{className:e.summaryItemValue},n.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Interaction types")),t().createElement("span",{className:e.summaryItemValue},r.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Relationship types")),t().createElement("span",{className:e.summaryItemValue},i.length)))};function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(null,arguments)}const Np=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",jp({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{width:"8",height:"8",rx:"4",fill:"#006"}))};function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ip.apply(null,arguments)}const Fp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Ip({width:"8",height:"8",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{x:".5",y:".5",width:"8",height:"8",rx:"4",stroke:"#006",strokeDasharray:"4 2"}))};function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bp.apply(null,arguments)}const Gp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Bp({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0l4 2-4 2V2.5H0v-1h12V0z",fill:"#006"}))},Up=qn((e=>({legendContainer:{position:"absolute",bottom:18,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:28,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},legendItem:{display:"flex",alignItems:"center","&:not(:first-child)":{marginLeft:16}},legendItemName:{marginLeft:8,color:e.palette.text.secondary,fontSize:12}}))),Hp=()=>{const e=Up();return t().createElement("div",{className:e.legendContainer},t().createElement("div",{className:e.legendItem},t().createElement(Np,null),t().createElement("span",{className:e.legendItemName},L().text("Entity type"))),t().createElement("div",{className:e.legendItem},t().createElement(Fp,null),t().createElement("span",{className:e.legendItemName},L().text("Interaction type"))),t().createElement("div",{className:e.legendItem},t().createElement(Gp,null),t().createElement("span",{className:e.legendItemName},L().text("Relationship type"))))};var Wp=ae(2811),qp=ae.n(Wp),Vp=ae(3463),$p=ae.n(Vp);const Yp=qn((e=>({checkbox:{position:"absolute",top:12,right:16,zIndex:1},checkboxLabel:{fontSize:13,color:e.palette.text.primary}}))),Zp=({isChecked:e,onChange:n})=>{const r=Yp();return t().createElement($p(),{classes:{label:r.checkboxLabel},className:r.checkbox,control:t().createElement(qp(),{checked:e,onChange:n,size:"medium"}),label:L().text("Hide Interaction types")})};var Xp=ae(3526),Kp=ae.n(Xp);const Qp=qn({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:"calc(100% - 68px)"},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"45 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"56 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:"68px",bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}}),Jp=(0,e.memo)((({relationType:e,onSelect:n})=>{const r=Qp(),{startObject:i,endObject:o,direction:a}=e,s=(0,E.getLabel)(e.label),l=(0,_.useSelector)(S().selectors.getMetadata),c=(0,E.getEntityType)(l,i.objectTypeURI),u=(0,E.getEntityType)(l,o.objectTypeURI),d=(0,E.getLabel)(c.label)+` ${(e=>{switch(e){case E.RelationTypeDirection.directed:return"→";case E.RelationTypeDirection.bidirectional:default:return"↔"}})(a)} `+(0,E.getLabel)(u.label);return t().createElement(ga(),{className:r.container,onClick:()=>n(e.uri)},t().createElement("div",{className:r.icons},t().createElement(Ns,{className:r.iconTop,entityType:c}),t().createElement(Ns,{className:r.iconBottom,entityType:u})),t().createElement("div",{className:r.text},t().createElement(Aa,{value:s},t().createElement(A(),{className:Qn()(r.textItem,r.primaryTextItem)},s)),t().createElement(Aa,{value:d},t().createElement(A(),{color:"textSecondary",className:Qn()(r.textItem,r.secondaryTextItem)},d))))}));Jp.displayName="RelationTypesMenuItem";const ef=qn({paper:{minWidth:"395px",maxWidth:"460px",maxHeight:"min(calc(100vh - 100px), 500px)"}});function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(null,arguments)}const nf=(0,e.memo)((e=>{let{relationTypes:n,onSelect:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["relationTypes","onSelect"]);const o=ef();return t().createElement(Kp(),tf({},i,{slotProps:{paper:{className:o.paper}}}),n.map((e=>t().createElement(Jp,{key:e.uri,relationType:e,onSelect:r}))))}));function rf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nf.displayName="RelationTypesMenu";const of="-###-",af=(e,t)=>[e,t].sort().join(of),sf=e=>({id:e,startNode:e.split(of)[0],endNode:e.split(of)[1]}),lf=(e,t)=>Object.entries(t).filter((([t,n])=>n.includes(e))).map((([e])=>e)),cf=()=>{const t=(0,_.useSelector)(S().selectors.getMetadata),{entityTypes:n,relationTypes:r,interactionTypes:i}=C(),o=(0,_.useSelector)(S().selectors.getAbsoluteImagePath)||"",a=(0,e.useMemo)((()=>{const e=new(Ku()),a={};(n||[]).forEach((n=>{var r;a[n.uri]=(0,E.getInheritancePath)(t,n.uri),e.addNode(n.uri,{nodeType:Jd.entityType,label:n.label,secondaryLabel:L().text("${count} attributes",{count:(null===(r=n.attributes)||void 0===r?void 0:r.length)||0}),image:(0,E.getAbsoluteImageUrl)(o,(0,E.getEntityTypeImage)(t,n))})})),(i||[]).forEach((t=>{var n;e.addNode(t.uri,{nodeType:Jd.interactionType,label:t.label,secondaryLabel:L().text("${count} attributes",{count:(null===(n=t.attributes)||void 0===n?void 0:n.length)||0})})}));const s=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>((n.memberTypes||[]).forEach((({objectTypeURI:r})=>{lf(r,t).forEach((t=>{const r=af(n.uri,t);e[r]=e[r]||sf(r)}))})),e)),{});return Object.values(n)})(i,a);s.forEach((({id:t,startNode:n,endNode:r})=>{e.addEdgeWithKey(t,n,r,{type:"dashed"})}));const l=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>{var r,i;const o=lf(null===(r=n.startObject)||void 0===r?void 0:r.objectTypeURI,t),a=lf(null===(i=n.endObject)||void 0===i?void 0:i.objectTypeURI,t);return o.forEach((t=>{a.forEach((r=>{const i=af(t,r);e[i]=e[i]||function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){rf(e,t,n[t])}))}return e}({},sf(i),{relationTypes:[]}),e[i].relationTypes.includes(n)||e[i].relationTypes.push(n)}))})),e}),{});return Object.values(n)})(r,a);return l.forEach((({id:t,startNode:n,endNode:r,relationTypes:i})=>{e.addEdgeWithKey(t,n,r,{relationTypes:i,label:String(i.length),loop:n===r})})),e}),[t,n,r,i,o]);return a},uf=qn({graphContainer:{flexGrow:1}}),df=({currentMetadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=uf(),o=cf(),a=(0,E.isRelationTypeUri)(n),s=(0,e.useMemo)((()=>a?o.reduceEdges(((e,t,r)=>{var i;return null!==(i=r.relationTypes)&&void 0!==i&&i.some((e=>e.uri===n))&&e.push(t),e}),[]):[]),[a,o,n]),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(),[p,f]=(0,e.useState)(),h=(0,e.useCallback)(((e,t)=>{d({left:t.clientX,top:t.clientY}),f(e)}),[]),m=(0,e.useMemo)((()=>{var e;return p&&(null===(e=o.getEdgeAttributes(p))||void 0===e?void 0:e.relationTypes)||[]}),[o,p]),g=(0,e.useCallback)((()=>{d(null),f(null)}),[]),v=(0,e.useCallback)((e=>{r(e),g()}),[r,g]);return t().createElement("div",{className:i.graphContainer},t().createElement(Mp,{graph:o,selectedNode:n&&!a?n:null,onNodeClick:r,selectedEdges:s,onEdgeLabelClick:h,hideInteractionTypes:l},t().createElement(Zp,{isChecked:l,onChange:()=>{!l&&(0,E.isInteractionTypeUri)(n)&&r(n),c((e=>!e))}}),t().createElement(zp,null),t().createElement(Hp,null)),t().createElement(nf,{relationTypes:m,open:Boolean(u),onClose:g,anchorReference:"anchorPosition",anchorPosition:u,onSelect:v}))};class pf extends t().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}var ff=ae(5206),hf=ae.n(ff);function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(null,arguments)}function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(null,arguments)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(null,arguments)}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(null,arguments)}const bf=qn((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wf.apply(null,arguments)}let xf=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const Ef={SEARCH_RESULTS:e=>t().createElement("svg",mf({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgEmptySearchResults"},e),t().createElement("defs",null,t().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},t().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),t().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},t().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},t().createElement("stop",{stopColor:"#FFF",offset:"0%"}),t().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},t().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),t().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),t().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},t().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),t().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},t().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),t().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("g",{transform:"translate(56 34)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),t().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),t().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),t().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),t().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),t().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),t().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),t().createElement("g",null,t().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),t().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>t().createElement("svg",gf({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgSelectAttributes"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),t().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),t().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),t().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})))),NO_DATA:e=>t().createElement("svg",vf({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgNoData"},e),t().createElement("defs",null,t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),t().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},t().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#000",offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},t().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),t().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),t().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},t().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),t().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),t().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),t().createElement("feMerge",null,t().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),t().createElement("feMergeNode",{in:"SourceGraphic"}))),t().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},t().createElement("use",{xlinkHref:"#NoData_svg__a"})),t().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),t().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("g",{transform:"translate(29 37)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),t().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),t().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),t().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),t().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},t().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),t().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),t().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>t().createElement("svg",yf({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgError"},e),t().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),t().createElement("g",{mask:"url(#Error_svg__a)"},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),t().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),t().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),t().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),t().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),t().createElement("g",{filter:"url(#Error_svg__filter0_d)"},t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),t().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),t().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),t().createElement("g",{filter:"url(#Error_svg__filter1_d)"},t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),t().createElement("g",{filter:"url(#Error_svg__filter2_d)"},t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),t().createElement("defs",null,t().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:0}),t().createElement("stop",{offset:1})))),LOADING:e=>t().createElement("svg",wf({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgEmptyLoading"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.03}),t().createElement("mask",{id:"EmptyLoading_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#EmptyLoading_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#EmptyLoading_svg__paint0_linear_2978_41880)"}),t().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},t().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),t().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#EmptyLoading_svg__paint1_linear_2978_41880)"}),t().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),t().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),t().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#EmptyLoading_svg__paint2_linear_2978_41880)"})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter0_d_2978_41880)"},t().createElement("rect",{x:81.703,y:99,width:170,height:26,rx:8,fill:"#D1E6FF"}),t().createElement("rect",{x:84.703,y:102,width:164,height:20,rx:5,stroke:"#fff",strokeWidth:6})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter1_d_2978_41880)"},t().createElement("mask",{id:"EmptyLoading_svg__b",fill:"#fff"},t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2})),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,fill:"#61A3F1"}),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,stroke:"#4A90E2",strokeWidth:8,mask:"url(#EmptyLoading_svg__b)"})),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter2_ddd_2978_41880)"},t().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),t().createElement("rect",{x:62,y:59,width:28,height:8,rx:1,fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),t().createElement("path",{opacity:.144,fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#EmptyLoading_svg__paint3_linear_2978_41880)"}),t().createElement("circle",{cx:75.94,cy:123.237,r:44.723,fill:"#91B0C2"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter3_d_2978_41880)"},t().createElement("circle",{r:42.793,transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"})),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#EmptyLoading_svg__paint4_linear_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#EmptyLoading_svg__paint5_angular_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),t().createElement("circle",{cx:75.94,cy:123.237,r:2.896,fill:"#EEEBF6"}),t().createElement("circle",{cx:96.211,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:107.15,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("rect",{x:62.427,y:135.592,width:27.027,height:10.039,rx:3,fill:"#A0C3D7"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint6_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint7_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#EmptyLoading_svg__paint8_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#EmptyLoading_svg__paint9_linear_2978_41880)"}),t().createElement("circle",{cx:75.618,cy:155.734,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:55.026,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:44.73,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("g",{fill:"#A0C3D7"},t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 96.21 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 107.149 114.094)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 75.618 90.284)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 55.026 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 44.73 114.094)"})))),t().createElement("defs",null,t().createElement("linearGradient",{id:"EmptyLoading_svg__paint0_linear_2978_41880",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint1_linear_2978_41880",x1:178.214,y1:43.106,x2:178.214,y2:195.709,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#F2F9FB"}),t().createElement("stop",{offset:1,stopColor:"#fff"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint2_linear_2978_41880",x1:178.497,y1:204.542,x2:178.497,y2:213.991,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#90AABF"}),t().createElement("stop",{offset:1,stopColor:"#869DAE"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint3_linear_2978_41880",x1:154.275,y1:146.574,x2:96.683,y2:91.352,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint4_linear_2978_41880",x1:60.762,y1:143.327,x2:114.747,y2:176.019,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.87}),t().createElement("stop",{offset:1,stopOpacity:.01})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint6_linear_2978_41880",x1:90.287,y1:154.267,x2:68.53,y2:131.301,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint7_linear_2978_41880",x1:100.735,y1:120.288,x2:78.978,y2:97.322,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint8_linear_2978_41880",x1:121.119,y1:112.739,x2:99.362,y2:89.773,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint9_linear_2978_41880",x1:90.166,y1:136.143,x2:68.409,y2:113.177,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("filter",{id:"EmptyLoading_svg__filter0_d_2978_41880",x:77.703,y:96,width:178,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter1_d_2978_41880",x:77,y:102,width:116,height:22,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter2_ddd_2978_41880",x:-13.297,y:28,width:181.534,height:189.17,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:7}),t().createElement("feGaussianBlur",{stdDeviation:4}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:5}),t().createElement("feGaussianBlur",{stdDeviation:16}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:2,operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:12}),t().createElement("feGaussianBlur",{stdDeviation:8.5}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter3_d_2978_41880",x:29.148,y:78.444,width:93.585,height:93.585,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("radialGradient",{id:"EmptyLoading_svg__paint5_angular_2978_41880",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},t().createElement("stop",{stopColor:"#CFE8FF"}),t().createElement("stop",{offset:.599,stopColor:"#D1F2F9",stopOpacity:0}))))},_f=({variant:e=xf.full,LogoRenderer:n=Ef.SEARCH_RESULTS,text:r,secondaryText:i,buttonTitle:o,onClick:a=x.identity,access:s})=>{const l=bf(),c=s&&o;return t().createElement("div",{className:Qn()(l.root,l[`root_${e}`])},t().createElement(n,{className:l[`${e}`]}),t().createElement("div",{className:l.textBox},t().createElement(A(),{variant:"h5",classes:{h5:l.text}},r),i&&t().createElement(A(),{variant:"subtitle1",classes:{subtitle1:l.secondaryText}},i)),c&&t().createElement(hf(),{className:l.button,variant:"contained",color:"primary",onClick:a},o))},Of=qn((e=>({contentWrapper:{display:"flex",boxSizing:"border-box",flex:1,flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen}),height:"100%"}}))),Sf=({width:e,open:n,children:r})=>{const i=Of();return t().createElement("div",{className:i.contentWrapper,"data-reltio-id":"side-panel",style:{width:e?`${n?e:0}px`:"100%"}},t().createElement(pf,{error:t().createElement(_f,{LogoRenderer:Ef.ERROR,text:L().text("Something went wrong"),variant:xf.full})},n&&r))};var Cf=ae(4294),kf=ae.n(Cf);const Lf=qn({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}}),Pf=({onClose:e,mainTitle:n,secondTitle:r,content:i,rightContent:o})=>{const a=Lf();return t().createElement("div",{className:a.container},t().createElement(Hu,{size:"L",icon:kf(),onClick:e,className:a.icon,tooltipTitle:L().text("Close")}),i||t().createElement(t().Fragment,null,t().createElement(A(),{variant:"h6"},n),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{orientation:"vertical",flexItem:!0,className:a.divider}),t().createElement(A(),{variant:"body1",color:"textSecondary",className:a.secondTitle},r)),o))};function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tf.apply(null,arguments)}const Rf=(0,e.memo)((({active:e,tabs:n,onClose:r})=>{const i=!(0,x.isNil)(e),{content:o,headerProps:a}=n[e]||{};return t().createElement(Sf,{open:i,key:e},t().createElement(Pf,Tf({onClose:r},a)),o)}));Rf.displayName="RightSidePanel";var Af=ae(8475),Mf=ae.n(Af),Df=ae(7499),zf=ae.n(Df),jf=ae(3734),Nf=ae.n(jf);const If=qn((()=>({root:{fontSize:"20px",fontWeight:500},input:{background:"transparent !important",paddingRight:"32px !important"},menuPaper:{maxWidth:"300px",maxHeight:"600px"},label:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),Ff=({className:n,metadataTypeUri:r,metadataTypes:i,onChange:o})=>{const a=If(),s=(0,e.useCallback)((e=>o(e.target.value)),[o]);return t().createElement(Nf(),{value:r,onChange:s,variant:"standard",disableUnderline:!0,className:Qn()(a.root,n),classes:{standard:a.input},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:a.menuPaper}},"data-reltio-id":"data-model-metadata-type-selector"},i.map((e=>{const n=(0,E.getLabel)(e.label);return t().createElement(ga(),{key:e.uri,value:e.uri},t().createElement(Aa,{value:n},t().createElement("div",{className:a.label},n)))})))},Bf=qn({selector:{maxWidth:"100%",minWidth:0,marginRight:"28px"}}),Gf=({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=Bf(),{entityTypes:o,relationTypes:a,interactionTypes:s}=C(),l=(0,e.useMemo)((()=>(0,E.isEntityTypeUri)(n)?o:(0,E.isRelationTypeUri)(n)?a:(0,E.isInteractionTypeUri)(n)?s:void 0),[n,o,a,s]);return n?t().createElement(Ff,{className:i.selector,metadataTypeUri:n,metadataTypes:l,onChange:r}):t().createElement(A(),{variant:"h6"},L().text("Tenant information"))};var Uf=ae(8668),Hf=ae.n(Uf),Wf=ae(3839),qf=ae.n(Wf),Vf=ae(6236),$f=ae.n(Vf);function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yf.apply(null,arguments)}const Zf=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Yf({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20a2 2 0 110 4 2 2 0 010-4zm1-15v1.352l3.229 2.051 1.334-.769 1 1.732-1.63.94v3.386l1.63.942-1 1.732-1.334-.77-3.23 2.052L13 19h-2v-1.318l-3.258-2.069-1.304.753-1-1.732 1.575-.91v-3.448l-1.575-.91 1-1.732 1.305.752L11 6.318V5h2zM5.072 16a2 2 0 11-3.464 2 2 2 0 013.464-2zm16.589-.732a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 9a3 3 0 100 6 3 3 0 000-6zm10.392-3a2 2 0 11-3.464 2 2 2 0 013.464-2zM4.34 5.268a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 0a2 2 0 110 4 2 2 0 010-4z",fill:"#000",fillOpacity:".54"}))};function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Kf(e,t,n[t])}))}return e}function Kf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qf={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Jf=qn((e=>({root:{display:"flex",alignItems:"flex-start",padding:"12px",borderRadius:"6px",border:"1px solid rgb(224, 224, 224)",boxSizing:"border-box"},icon:{width:"24px",height:"24px",flexShrink:0,color:e.palette.text.secondary,fill:"currentColor"},content:{marginLeft:"16px",minWidth:0},title:Xf({marginBottom:"4px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"15.25px",fontWeight:400},Qf),count:Xf({color:e.palette.text.primary,fontSize:"18px",lineHeight:"21.1px",fontWeight:400},Qf)}))),eh=({icon:e,title:n,count:r,className:i,isLoading:o=!1})=>{const a=Jf(),s=E.intl.number(r);return t().createElement("div",{className:Qn()(a.root,i),"data-reltio-id":"data-model-metric-card"},t().createElement(e,{className:a.icon}),t().createElement("div",{className:a.content},t().createElement(Aa,{value:n},t().createElement(A(),{className:a.title},n)),t().createElement(Aa,{value:s},t().createElement(A(),{className:a.count},o?t().createElement(Tl(),{"data-reltio-id":"metric-card-skeleton"}):s))))},th=qn((e=>({root:{display:"flex",alignItems:"center"},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"4px",border:"1px solid rgb(217, 217, 217)"},icon:{width:"16px",height:"16px"},label:{marginLeft:"11px",fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.primary}}))),nh=({name:n})=>{const r=th(),i=(0,_.useSelector)(S().selectors.getMetadata),o=`configuration/sources/${n}`,a=(0,e.useMemo)((()=>(0,E.getSourceSystemLabel)(i,o)),[i,o]);return t().createElement("div",{className:r.root,"data-reltio-id":"data-model-source-system"},t().createElement("div",{className:r.iconWrapper},t().createElement(Ll,{className:r.icon,sourceType:o})),t().createElement(A(),{className:r.label},a))},rh=qn((e=>({title:{marginBottom:"8px"},description:{fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.secondary}}))),ih=({children:e,className:n})=>{const r=rh();return t().createElement("div",{className:n},t().createElement(A(),{className:r.title},L().text("Description")),t().createElement(A(),{className:r.description},e))},oh=qn((e=>({title:{fontSize:"16px",fontWeight:400,lineHeight:"24px",letterSpacing:"0.15px",color:e.palette.text.primary}}))),ah=({children:e,className:n})=>{const r=oh();return t().createElement(A(),{className:Qn()(r.title,n)},e)},sh=qn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCards:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"24px"},metricCard:{width:"calc(50% - 4px)"},sourceSystems:{display:"flex",flexWrap:"wrap",gap:"8px 16px"},sourceSystemRowSkeleton:{width:"100%",height:"30px",marginBottom:"8px",transform:"none"}}),lh=({entityTypeUri:n})=>{const r=sh(),i=(0,_.useSelector)(S().selectors.getMetadata),{count:o,isLoading:a}=(t=>{const n=Hl(),[r,i]=(0,e.useState)(0),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{const e=[{filter:"equals",fieldName:"type",values:[t]}],{total:r}=await n((0,E.getTotals)({filters:e}));i(r)}catch(e){i(0),Zl(e,{defaultMessage:L().text("Something went wrong while loading the total number of profiles")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{count:r,isLoading:o}})(n),{sourceSystems:s,isLoading:l}=(t=>{const n=Hl(),[r,i]=(0,e.useState)([]),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{var e;const r=await n((0,E.getDQChartsData)({dataLevel:E.DQDataLevel.ENTITY_TYPE,metrics:[E.DQMetric.CONSOLIDATION_RATE],entityTypeUri:t}));i(Object.keys((null==r||null===(e=r.consolidationRate)||void 0===e?void 0:e.totalCrosswalksBySource)??{}))}catch(e){i([]),Zl(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{sourceSystems:r,isLoading:o}})(n),c=(0,e.useMemo)((()=>(0,E.getEntityType)(i,n)),[i,n]),u=(0,e.useMemo)((()=>(0,E.getInteractionTypesForEntityType)(i,n)),[i,n]),d=(0,e.useMemo)((()=>i.relationTypes.filter((e=>(0,E.isRelationWithEntityType)(i,n,e.uri)))),[i,n]),p=(0,e.useMemo)((()=>ml(c.attributes)),[c]);return t().createElement(t().Fragment,null,c.description&&t().createElement(ih,{className:r.description},c.description),t().createElement("div",{className:r.metricCards},t().createElement(eh,{className:r.metricCard,icon:Hf(),title:L().text("Profiles"),count:o,isLoading:a}),t().createElement(eh,{className:r.metricCard,icon:qf(),title:L().text("Attributes"),count:p}),t().createElement(eh,{className:r.metricCard,icon:$f(),title:L().text("Relationship types"),count:d.length}),t().createElement(eh,{className:r.metricCard,icon:Zf,title:L().text("Interaction types"),count:u.length})),(l||0!==s.length)&&t().createElement(ah,{className:r.title},L().text("Contributing sources")),l?t().createElement(t().Fragment,null,t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton})):t().createElement("div",{className:r.sourceSystems},s.map((e=>t().createElement(nh,{key:e,name:e})))))},ch=qn((e=>({root:{display:"flex",alignItems:"center"},entityType:{padding:"4px 8px",display:"flex",alignItems:"center",minWidth:"56px",flexShrink:1},relationType:{padding:"0 6px",minWidth:"30px",textAlign:"center",flexShrink:9999},relationTypeLabel:{marginBottom:"6px",fontSize:"10px",fontWeight:400,lineHeight:"12px",color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},relationTypeLine:{position:"relative",width:"100%",height:"1px",background:"rgb(130, 130, 130)","&:before, &:after":{position:"absolute",top:0,transform:"translateY(-50%)",width:0,height:0,borderTop:"4px solid transparent",borderBottom:"4px solid transparent"}},relationTypeLineLeftArrow:{"&:before":{content:'""',left:"-2px",borderRight:"6px solid rgb(130, 130, 130)"}},relationTypeLineRightArrow:{"&:after":{content:'""',right:"-2px",borderLeft:"6px solid rgb(130, 130, 130)"}},entityTypeIcon:{width:"32px",height:"32px"},entityTypeLabel:{marginLeft:"8px",fontSize:"13px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),uh=({relationType:n})=>{const{direction:r,uri:i,label:o}=n,a=ch(),s=(0,_.useSelector)(S().selectors.getMetadata),[l,c]=(0,e.useMemo)((()=>(0,E.getRelationEntityTypesUris)(s,i)),[s,i]),u=(0,e.useMemo)((()=>(0,E.getEntityType)(s,l)),[s,l]),d=(0,e.useMemo)((()=>(0,E.getEntityType)(s,c)),[s,c]);return t().createElement("div",{className:a.root,"data-reltio-id":"data-model-relation-type-direction"},t().createElement("div",{className:a.entityType},t().createElement(Ns,{className:a.entityTypeIcon,entityType:u}),t().createElement(Aa,{value:(0,E.getLabel)(u.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(u.label)))),t().createElement("div",{className:a.relationType},t().createElement(Aa,{value:(0,E.getLabel)(o)},t().createElement(A(),{className:a.relationTypeLabel},(0,E.getLabel)(o))),t().createElement("div",{className:Qn()(a.relationTypeLine,{[a.relationTypeLineLeftArrow]:r===E.RelationTypeDirection.bidirectional,[a.relationTypeLineRightArrow]:r===E.RelationTypeDirection.directed||r===E.RelationTypeDirection.bidirectional})})),t().createElement("div",{className:a.entityType},t().createElement(Ns,{className:a.entityTypeIcon,entityType:d}),t().createElement(Aa,{value:(0,E.getLabel)(d.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(d.label)))))},dh=qn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),ph=({relationTypeUri:n})=>{const r=dh(),i=(0,_.useSelector)(S().selectors.getMetadata),o=(0,e.useMemo)((()=>(0,E.getRelationType)(i,n)),[i,n]);return t().createElement(t().Fragment,null,o.description&&t().createElement(ih,{className:r.description},o.description),t().createElement(eh,{className:r.metricCard,count:ml(o.attributes),title:L().text("Attributes"),icon:qf()}),t().createElement(ah,{className:r.title},L().text("Direction")),t().createElement(uh,{relationType:o}))};var fh=ae(918),hh=ae.n(fh),mh=ae(9850),gh=ae.n(mh),vh=ae(1159),yh=ae.n(vh),bh=ae(8012),wh=ae.n(bh),xh=ae(5681),Eh=ae.n(xh),_h=ae(8878),Oh=ae.n(_h);const Sh=qn({headCell:{fontSize:"14px"},bodyCell:{fontSize:"13px"}}),Ch=({memberTypes:e})=>{const n=Sh(),r=(0,_.useSelector)(S().selectors.getMetadata);return t().createElement(hh(),{component:oa()},t().createElement(gh(),null,t().createElement(yh(),null,t().createElement(Eh(),null,t().createElement(Oh(),{className:n.headCell},L().text("Member type name")),t().createElement(Oh(),{className:n.headCell},L().text("Entity type")))),t().createElement(wh(),null,e.map((e=>{const i=(0,E.getEntityType)(r,e.objectTypeURI);return t().createElement(Eh(),{key:e.uri},t().createElement(Oh(),{className:n.bodyCell},(0,E.getLabel)(e.label)),t().createElement(Oh(),{className:n.bodyCell},(0,E.getLabel)(null==i?void 0:i.label)))})))))},kh=qn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),Lh=({interactionTypeUri:n})=>{var r;const i=kh(),o=(0,_.useSelector)(S().selectors.getMetadata),a=(0,e.useMemo)((()=>(0,E.getInteractionType)(o,n)),[o,n]);return t().createElement(t().Fragment,null,a.description&&t().createElement(ih,{className:i.description},a.description),t().createElement(eh,{className:i.metricCard,count:ml(a.attributes),title:L().text("Attributes"),icon:qf()}),Boolean(null===(r=a.memberTypes)||void 0===r?void 0:r.length)&&t().createElement(t().Fragment,null,t().createElement(ah,{className:i.title},L().text("Member types")),t().createElement(Ch,{memberTypes:a.memberTypes})))};function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(null,arguments)}const Th=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Ph({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.25 4h1.5v1.5h-1.5V4zm4.25 4.5h-7v7h7v-7zM7 7v10h10V7H7zm5.75 11.5h-1.5V20h1.5v-1.5zM20 11.25v1.5h-1.5v-1.5H20zm-14.5 1.5v-1.5H4v1.5h1.5z"}))},Rh=qn({metricCards:{display:"flex",flexWrap:"wrap",gap:"8px"},metricCard:{width:"calc(50% - 4px)"}}),Ah=()=>{const e=Rh(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=C();return t().createElement("div",{className:e.metricCards},t().createElement(eh,{className:e.metricCard,icon:Th,title:L().text("Entity types"),count:n.length}),t().createElement(eh,{className:e.metricCard,icon:Zf,title:L().text("Interaction types"),count:r.length}),t().createElement(eh,{className:e.metricCard,icon:$f(),title:L().text("Relationship types"),count:i.length}))},Mh=qn({root:{padding:"16px",overflowY:"auto"}}),Dh=({metadataTypeUri:e})=>{const n=Mh();return t().createElement("div",{className:n.root},(0,E.isEntityTypeUri)(e)?t().createElement(lh,{entityTypeUri:e}):(0,E.isRelationTypeUri)(e)?t().createElement(ph,{relationTypeUri:e}):(0,E.isInteractionTypeUri)(e)?t().createElement(Lh,{interactionTypeUri:e}):t().createElement(Ah,null))},zh=e=>e.target.value;var jh=ae(3732),Nh=ae.n(jh),Ih=ae(8214),Fh=ae.n(Ih),Bh=ae(4501),Gh=ae.n(Bh);const Uh=qn({input:{maxWidth:"320px",width:"100%",height:"40px",fontSize:"14px",background:"rgba(0,0,0,0.03)",padding:"8px 8px 8px 15px",marginRight:"14px",borderRadius:"4px"},startAdornment:{color:"rgba(0,0,0,0.54)"},searchContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 0"},title:{fontSize:"16px",marginRight:"50px",marginLeft:"16px"}}),Hh=({onApplySearch:n})=>{const r=Uh(),[i,o]=(0,e.useState)(""),a=()=>(0,x.pipe)(x.trim,x.toLower,n)(i);return t().createElement("div",{className:r.searchContainer},t().createElement("div",{className:r.title},L().text("Attributes")),t().createElement(Nh(),{className:r.input,value:i,placeholder:L().text("Search"),disableUnderline:!0,onChange:(0,x.pipe)(zh,o),onBlur:a,startAdornment:t().createElement(Fh(),{position:"start"},t().createElement(Gh(),{className:r.startAdornment})),endAdornment:t().createElement(Fh(),{position:"end"},t().createElement(Uu,{"data-reltio-id":"reset-search",size:"S",icon:kf(),onClick:()=>{n(""),o("")}})),onKeyPress:(0,x.when)((0,x.propEq)("key","Enter"),a)}))},Wh=({metadataTypeUri:n})=>{const[r,i]=(0,e.useState)(""),o=(0,_.useSelector)(S().selectors.getMetadata),a=(0,e.useMemo)((()=>(e=>(0,E.isEntityTypeUri)(e)?[{id:Ws.AttributeLabel,size:7,isWithPadding:!0},{id:Ws.Sources,size:5,isWithPadding:!0}]:[{id:Ws.AttributeLabel,size:12,isWithPadding:!0}])(n)),[n]),s=(0,e.useMemo)((()=>{const e=((e,t)=>{if((0,E.isEntityTypeUri)(t)){const n=(0,E.getEntityType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isRelationTypeUri)(t)){const n=(0,E.getRelationType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isInteractionTypeUri)(t)){const n=(0,E.getInteractionType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}return[]})(o,n);return r?((e,t)=>{const n=(e,t,r=[])=>{const i=t.map((t=>{var i;const o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){fl(e,t,n[t])}))}return e}({},t);return((e,t)=>{var n,r;return(null===(n=e.label)||void 0===n?void 0:n.toLocaleLowerCase().startsWith(t))||(null===(r=e.description)||void 0===r?void 0:r.toLocaleLowerCase().startsWith(t))})(o,e)&&(o.isSearchedElement=!0,r.forEach((e=>e.shouldExpand=!0))),null!==(i=t.children)&&void 0!==i&&i.length&&(o.children=n(e,o.children,[...r,o])),o}));return i},r=e=>{const t=e.filter((e=>e.isSearchedElement||e.shouldExpand));for(const e of t){var n;null!==(n=e.children)&&void 0!==n&&n.length&&(e.children=r(e.children))}return t};return(0,x.pipe)(n,r)(e,t)})(r,e):e}),[o,n,r]);return t().createElement(t().Fragment,null,t().createElement(Hh,{onApplySearch:e=>i(e)}),t().createElement(ec,{columnsData:a,attributeNodesList:s,metadataTypeUri:n,isRightSidePanel:!0}))};var qh=function(e){return e[e.Info=0]="Info",e[e.AttributesTable=1]="AttributesTable",e}(qh||{});const Vh=qn({container:{display:"flex",width:"100%",height:"100%"}}),$h="dataModel",Yh=()=>{const n=Vh(),[r,i]=(0,e.useState)(null),{perspectiveSettings:{active:o}={},updatePerspectiveSettings:a}=ic($h),s=(0,e.useCallback)((e=>{const t=r===e;i(t?null:e),t||null!=o||a({active:0})}),[o,r,a]),l=(({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>(0,e.useMemo)((()=>[{buttonProps:{id:qh.Info,icon:Mf(),tooltipTitle:L().text("Info"),showForDisabled:!0},headerProps:{content:t().createElement(Gf,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(Dh,{metadataTypeUri:n})},{buttonProps:{id:qh.AttributesTable,icon:zf(),tooltipTitle:L().text("Attributes table"),showForDisabled:!0},headerProps:{content:t().createElement(Gf,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(Wh,{key:n,metadataTypeUri:n})}]),[n,r]))({metadataTypeUri:r,onChangeMetadataTypeUri:s});return t().createElement("div",{className:n.container},t().createElement(Zu,{perspectiveId:$h,buttonsProps:(0,x.pluck)("buttonProps",l)},t().createElement(df,{currentMetadataTypeUri:r,onChangeMetadataTypeUri:s}),t().createElement(Rf,{tabs:l})))},Zh=qn({dataModelContainer:{display:"flex",width:"100%",height:"calc(100% - 65px)",position:"absolute"}}),Xh=({config:{defaultEntityType:n,mode:r}})=>{const i=Zh(),{entityTypes:o}=C(),a=n?o.find((0,x.propEq)("uri",n)):o[0],[s,l]=(0,e.useState)(a);return t().createElement(t().Fragment,null,t().createElement(Us,{showEntityTypeSelector:!n&&r!==E.DataModelMode.GRAPH,entityTypes:o,selectedEntityType:s,onChangeEntityType:l}),t().createElement("div",{className:i.dataModelContainer},r===E.DataModelMode.GRAPH?t().createElement(Yh,null):t().createElement(nc,{entityType:s})))},Kh=r()({productionPrefix:"dataModel",disableGlobal:!0,seed:"dtm"}),Qh=({config:e})=>t().createElement(o(),{generateClassName:Kh},t().createElement(w,{dateAdapter:p},t().createElement(Xh,{config:e})))})(),se})()}));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n"));else if("function"==typeof define&&define.amd)define(["@mui/icons-material/Add","@mui/icons-material/ArrowDropDown","@mui/icons-material/Business","@mui/icons-material/Cancel","@mui/icons-material/Close","@mui/icons-material/DescriptionOutlined","@mui/icons-material/FormatListBulletedOutlined","@mui/icons-material/HighlightOff","@mui/icons-material/Info","@mui/icons-material/MultipleStop","@mui/icons-material/Remove","@mui/icons-material/Search","@mui/icons-material/TableChartOutlined","@mui/material","@mui/material/Avatar","@mui/material/Button","@mui/material/Checkbox","@mui/material/Chip","@mui/material/Collapse","@mui/material/Divider","@mui/material/FormControlLabel","@mui/material/Grid","@mui/material/IconButton","@mui/material/Input","@mui/material/InputAdornment","@mui/material/Menu","@mui/material/MenuItem","@mui/material/Paper","@mui/material/Popper","@mui/material/Portal","@mui/material/Select","@mui/material/Skeleton","@mui/material/Slider","@mui/material/Table","@mui/material/TableBody","@mui/material/TableCell","@mui/material/TableContainer","@mui/material/TableHead","@mui/material/TableRow","@mui/material/TextField","@mui/material/Toolbar","@mui/material/Tooltip","@mui/material/Typography","@mui/material/colors","@mui/material/styles","@mui/styles/StylesProvider","@mui/styles/createGenerateClassName","@mui/styles/withStyles","classnames","mdm-module","mdm-sdk","moment","prop-types","ramda","react","react-dom","react-redux","ui-i18n"],t);else{var n="object"==typeof exports?t(require("@mui/icons-material/Add"),require("@mui/icons-material/ArrowDropDown"),require("@mui/icons-material/Business"),require("@mui/icons-material/Cancel"),require("@mui/icons-material/Close"),require("@mui/icons-material/DescriptionOutlined"),require("@mui/icons-material/FormatListBulletedOutlined"),require("@mui/icons-material/HighlightOff"),require("@mui/icons-material/Info"),require("@mui/icons-material/MultipleStop"),require("@mui/icons-material/Remove"),require("@mui/icons-material/Search"),require("@mui/icons-material/TableChartOutlined"),require("@mui/material"),require("@mui/material/Avatar"),require("@mui/material/Button"),require("@mui/material/Checkbox"),require("@mui/material/Chip"),require("@mui/material/Collapse"),require("@mui/material/Divider"),require("@mui/material/FormControlLabel"),require("@mui/material/Grid"),require("@mui/material/IconButton"),require("@mui/material/Input"),require("@mui/material/InputAdornment"),require("@mui/material/Menu"),require("@mui/material/MenuItem"),require("@mui/material/Paper"),require("@mui/material/Popper"),require("@mui/material/Portal"),require("@mui/material/Select"),require("@mui/material/Skeleton"),require("@mui/material/Slider"),require("@mui/material/Table"),require("@mui/material/TableBody"),require("@mui/material/TableCell"),require("@mui/material/TableContainer"),require("@mui/material/TableHead"),require("@mui/material/TableRow"),require("@mui/material/TextField"),require("@mui/material/Toolbar"),require("@mui/material/Tooltip"),require("@mui/material/Typography"),require("@mui/material/colors"),require("@mui/material/styles"),require("@mui/styles/StylesProvider"),require("@mui/styles/createGenerateClassName"),require("@mui/styles/withStyles"),require("classnames"),require("mdm-module"),require("mdm-sdk"),require("moment"),require("prop-types"),require("ramda"),require("react"),require("react-dom"),require("react-redux"),require("ui-i18n")):t(e["@mui/icons-material/Add"],e["@mui/icons-material/ArrowDropDown"],e["@mui/icons-material/Business"],e["@mui/icons-material/Cancel"],e["@mui/icons-material/Close"],e["@mui/icons-material/DescriptionOutlined"],e["@mui/icons-material/FormatListBulletedOutlined"],e["@mui/icons-material/HighlightOff"],e["@mui/icons-material/Info"],e["@mui/icons-material/MultipleStop"],e["@mui/icons-material/Remove"],e["@mui/icons-material/Search"],e["@mui/icons-material/TableChartOutlined"],e["@mui/material"],e["@mui/material/Avatar"],e["@mui/material/Button"],e["@mui/material/Checkbox"],e["@mui/material/Chip"],e["@mui/material/Collapse"],e["@mui/material/Divider"],e["@mui/material/FormControlLabel"],e["@mui/material/Grid"],e["@mui/material/IconButton"],e["@mui/material/Input"],e["@mui/material/InputAdornment"],e["@mui/material/Menu"],e["@mui/material/MenuItem"],e["@mui/material/Paper"],e["@mui/material/Popper"],e["@mui/material/Portal"],e["@mui/material/Select"],e["@mui/material/Skeleton"],e["@mui/material/Slider"],e["@mui/material/Table"],e["@mui/material/TableBody"],e["@mui/material/TableCell"],e["@mui/material/TableContainer"],e["@mui/material/TableHead"],e["@mui/material/TableRow"],e["@mui/material/TextField"],e["@mui/material/Toolbar"],e["@mui/material/Tooltip"],e["@mui/material/Typography"],e["@mui/material/colors"],e["@mui/material/styles"],e["@mui/styles/StylesProvider"],e["@mui/styles/createGenerateClassName"],e["@mui/styles/withStyles"],e.classnames,e["mdm-module"],e["mdm-sdk"],e.moment,e["prop-types"],e.ramda,e.react,e["react-dom"],e["react-redux"],e["ui-i18n"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,x,E,_,O,S,C,k,L,P,T,R,A,M,D,z,j,N,I,F,B,G,U,H,W,q,V,$,Y,Z,X,K,Q,J,ee,te,ne,re){return(()=>{var ie={8884:e=>{e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var i=0;i<n;i++)e[r+i]=t[i]}}},8994:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter((function(e){return null!=e}))).length)return 1===t.length?t[0]:t.reduce((function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}))}},2196:(e,t,n)=>{"use strict";var r=n(1600);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(7218));e.exports=t.default},7218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4812:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4596:(e,t,n)=>{"use strict";var r=n(1600);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,l,c,u,d,p,f,h,m=r(n(6892)),g="transform";if(t.transform=g,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=u,t.transitionTiming=c,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=f,t.animationDuration=p,t.animationName=d,m.default){var v=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=v.prefix,t.transitionEnd=o=v.transitionEnd,t.animationEnd=a=v.animationEnd,t.transform=g=i+"-"+g,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=u=i+"-transition-delay",t.transitionTiming=c=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=p=i+"-animation-duration",t.animationTiming=f=i+"-animation-delay",t.animationDelay=h=i+"-animation-timing-function"}var y={transform:g,end:o,property:s,timing:c,delay:u,duration:l};t.default=y},6892:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},6463:(e,t,n)=>{"use strict";var r=n(1600);t.__esModule=!0,t.default=void 0;var i,o=r(n(6892)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&["","webkit","moz","o","ms"].some((function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}}));var c=(new Date).getTime();(i=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var u=i;t.default=u,e.exports=t.default},2699:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9869:e=>{e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},6061:(e,t)=>{t.assign=function(e){e=e||{};var t,n,r,i=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=i.length;t<r;t++)if(i[t])for(n in i[t])e[n]=i[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"==typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"==typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,i=e.size,o={},a=new Float32Array(10*r),s=new Float32Array(3*i);return n=0,e.forEachNode((function(e,t){o[e]=n,a[n]=t.x,a[n+1]=t.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1,a[n+7]=1,a[n+8]=t.size||1,a[n+9]=t.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,i,l,c,u,d){var p=o[i],f=o[l],h=t(e,r,i,l,c,u,d);a[p+6]+=h,a[f+6]+=h,s[n]=p,s[n+1]=f,s[n+2]=h,n+=3})),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,i){return i.x=t[r],i.y=t[r+1],r+=10,n?n(e,i):i}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),i={},o=0,a=0,s=t.length;o<s;o+=10){if(n){var l=Object.assign({},e.getNodeAttributes(r[a]));l.x=t[o],l.y=t[o+1],l=n(r[a],l),i[r[a]]={x:l.x,y:l.y}}else i[r[a]]={x:t[o],y:t[o+1]};a++}return i},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),i=new Worker(r);return t.revokeObjectURL(r),i}},3660:(e,t,n)=>{var r=n(1880),i=n(4363).Q6,o=n(8725),a=n(6061),s=n(9869);function l(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof n&&(n={iterations:n});var l=n.iterations;if("number"!=typeof l)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(l<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var c=i("getEdgeWeight"in n?n.getEdgeWeight:"weight").fromEntry,u="function"==typeof n.outputReducer?n.outputReducer:null,d=a.assign({},s,n.settings),p=a.validateSettings(d);if(p)throw new Error("graphology-layout-forceatlas2: "+p.message);var f,h=a.graphToByteArrays(t,c);for(f=0;f<l;f++)o(d,h.nodes,h.edges);if(!e)return a.collectLayoutChanges(t,h.nodes);a.assignLayoutChanges(t,h.nodes,u)}var c=l.bind(null,!1);c.assign=l.bind(null,!0),c.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=c},8725:e=>{var t=10;e.exports=function(e,n,r){var i,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,x,E,_,O,S,C,k=n.length,L=r.length,P=e.adjustSizes,T=e.barnesHutTheta*e.barnesHutTheta,R=[];for(a=0;a<k;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<k;a+=t)h+=n[a+6];h/=k/t}if(e.barnesHutOptimize){var A,M,D,z=1/0,j=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=t)z=Math.min(z,n[a+0]),j=Math.max(j,n[a+0]),N=Math.min(N,n[a+1]),I=Math.max(I,n[a+1]);var F=j-z,B=I-N;for(F>B?I=(N-=(F-B)/2)+F:j=(z-=(B-F)/2)+B,R[0]=-1,R[1]=(z+j)/2,R[2]=(N+I)/2,R[3]=Math.max(j-z,I-N),R[4]=-1,R[5]=-1,R[6]=0,R[7]=0,R[8]=0,i=1,a=0;a<k;a+=t)for(o=0,D=3;;){if(!(R[o+5]>=0)){if(R[o+0]<0){R[o+0]=a;break}if(R[o+5]=9*i,d=R[o+3]/2,R[(p=R[o+5])+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=R[o+4],R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,i+=4,A=n[R[o+0]+0]<R[o+1]?n[R[o+0]+1]<R[o+2]?R[o+5]:R[o+5]+9:n[R[o+0]+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+6]=n[R[o+0]+6],R[o+7]=n[R[o+0]+0],R[o+8]=n[R[o+0]+1],R[A+0]=R[o+0],R[o+0]=-1,A===(M=n[a+0]<R[o+1]?n[a+1]<R[o+2]?R[o+5]:R[o+5]+9:n[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27)){if(D--){o=A;continue}D=3;break}R[M+0]=a;break}A=n[a+0]<R[o+1]?n[a+1]<R[o+2]?R[o+5]:R[o+5]+9:n[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+7]=(R[o+7]*R[o+6]+n[a+0]*n[a+6])/(R[o+6]+n[a+6]),R[o+8]=(R[o+8]*R[o+6]+n[a+1]*n[a+6])/(R[o+6]+n[a+6]),R[o+6]+=n[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=t)for(o=0;;)if(R[o+5]>=0){if(b=Math.pow(n[a+0]-R[o+7],2)+Math.pow(n[a+1]-R[o+8],2),4*(f=R[o+3])*f/b<T){if(g=n[a+0]-R[o+7],v=n[a+1]-R[o+8],!0===P?b>0?(w=m*n[a+6]*R[o+6]/b,n[a+2]+=g*w,n[a+3]+=v*w):b<0&&(w=-m*n[a+6]*R[o+6]/Math.sqrt(b),n[a+2]+=g*w,n[a+3]+=v*w):b>0&&(w=m*n[a+6]*R[o+6]/b,n[a+2]+=g*w,n[a+3]+=v*w),(o=R[o+4])<0)break;continue}o=R[o+5]}else if((c=R[o+0])>=0&&c!==a&&(b=(g=n[a+0]-n[c+0])*g+(v=n[a+1]-n[c+1])*v,!0===P?b>0?(w=m*n[a+6]*n[c+6]/b,n[a+2]+=g*w,n[a+3]+=v*w):b<0&&(w=-m*n[a+6]*n[c+6]/Math.sqrt(b),n[a+2]+=g*w,n[a+3]+=v*w):b>0&&(w=m*n[a+6]*n[c+6]/b,n[a+2]+=g*w,n[a+3]+=v*w)),(o=R[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=t)for(l=0;l<s;l+=t)g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8])>0?(w=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w):b<0&&(w=100*m*n[s+6]*n[l+6],n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w):(b=Math.sqrt(g*g+v*v))>0&&(w=m*n[s+6]*n[l+6]/b/b,n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w);for(p=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=t)w=0,g=n[a+0],v=n[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=m*n[a+6]*p):b>0&&(w=m*n[a+6]*p/b),n[a+2]-=g*w,n[a+3]-=v*w;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=n[s+0]-n[l+0],v=n[s+1]-n[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-n[s+8]-n[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-m*y/n[s+6]):b>0&&(w=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/n[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-m*y/n[s+6]):(b=1,w=-m*y)),b>0&&(n[s+2]+=g*w,n[s+3]+=v*w,n[l+2]-=g*w,n[l+3]-=v*w);if(!0===P)for(a=0;a<k;a+=t)1!==n[a+9]&&((x=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/x,n[a+3]=10*n[a+3]/x),E=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,O=.1*Math.log(1+_)/(1+Math.sqrt(E)),S=n[a+0]+n[a+2]*(O/e.slowDown),n[a+0]=S,C=n[a+1]+n[a+3]*(O/e.slowDown),n[a+1]=C);else for(a=0;a<k;a+=t)1!==n[a+9]&&(E=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),_=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,O=n[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),n[a+7]=Math.min(1,Math.sqrt(O*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(E)))),S=n[a+0]+n[a+2]*(O/e.slowDown),n[a+0]=S,C=n[a+1]+n[a+3]*(O/e.slowDown),n[a+1]=C);return{}}},1026:e=>{e.exports=function(){var e,t,n,r={};n=10,r.exports=function(e,t,r){var i,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,w,x,E,_,O,S,C,k=t.length,L=r.length,P=e.adjustSizes,T=e.barnesHutTheta*e.barnesHutTheta,R=[];for(a=0;a<k;a+=n)t[a+4]=t[a+2],t[a+5]=t[a+3],t[a+2]=0,t[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<k;a+=n)h+=t[a+6];h/=k/n}if(e.barnesHutOptimize){var A,M,D,z=1/0,j=-1/0,N=1/0,I=-1/0;for(a=0;a<k;a+=n)z=Math.min(z,t[a+0]),j=Math.max(j,t[a+0]),N=Math.min(N,t[a+1]),I=Math.max(I,t[a+1]);var F=j-z,B=I-N;for(F>B?I=(N-=(F-B)/2)+F:j=(z-=(B-F)/2)+B,R[0]=-1,R[1]=(z+j)/2,R[2]=(N+I)/2,R[3]=Math.max(j-z,I-N),R[4]=-1,R[5]=-1,R[6]=0,R[7]=0,R[8]=0,i=1,a=0;a<k;a+=n)for(o=0,D=3;;){if(!(R[o+5]>=0)){if(R[o+0]<0){R[o+0]=a;break}if(R[o+5]=9*i,d=R[o+3]/2,R[(p=R[o+5])+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]-d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]-d,R[p+3]=d,R[p+4]=p+9,R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,R[(p+=9)+0]=-1,R[p+1]=R[o+1]+d,R[p+2]=R[o+2]+d,R[p+3]=d,R[p+4]=R[o+4],R[p+5]=-1,R[p+6]=0,R[p+7]=0,R[p+8]=0,i+=4,A=t[R[o+0]+0]<R[o+1]?t[R[o+0]+1]<R[o+2]?R[o+5]:R[o+5]+9:t[R[o+0]+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+6]=t[R[o+0]+6],R[o+7]=t[R[o+0]+0],R[o+8]=t[R[o+0]+1],R[A+0]=R[o+0],R[o+0]=-1,A===(M=t[a+0]<R[o+1]?t[a+1]<R[o+2]?R[o+5]:R[o+5]+9:t[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27)){if(D--){o=A;continue}D=3;break}R[M+0]=a;break}A=t[a+0]<R[o+1]?t[a+1]<R[o+2]?R[o+5]:R[o+5]+9:t[a+1]<R[o+2]?R[o+5]+18:R[o+5]+27,R[o+7]=(R[o+7]*R[o+6]+t[a+0]*t[a+6])/(R[o+6]+t[a+6]),R[o+8]=(R[o+8]*R[o+6]+t[a+1]*t[a+6])/(R[o+6]+t[a+6]),R[o+6]+=t[a+6],o=A}}if(e.barnesHutOptimize){for(m=e.scalingRatio,a=0;a<k;a+=n)for(o=0;;)if(R[o+5]>=0){if(b=Math.pow(t[a+0]-R[o+7],2)+Math.pow(t[a+1]-R[o+8],2),4*(f=R[o+3])*f/b<T){if(g=t[a+0]-R[o+7],v=t[a+1]-R[o+8],!0===P?b>0?(w=m*t[a+6]*R[o+6]/b,t[a+2]+=g*w,t[a+3]+=v*w):b<0&&(w=-m*t[a+6]*R[o+6]/Math.sqrt(b),t[a+2]+=g*w,t[a+3]+=v*w):b>0&&(w=m*t[a+6]*R[o+6]/b,t[a+2]+=g*w,t[a+3]+=v*w),(o=R[o+4])<0)break;continue}o=R[o+5]}else if((c=R[o+0])>=0&&c!==a&&(b=(g=t[a+0]-t[c+0])*g+(v=t[a+1]-t[c+1])*v,!0===P?b>0?(w=m*t[a+6]*t[c+6]/b,t[a+2]+=g*w,t[a+3]+=v*w):b<0&&(w=-m*t[a+6]*t[c+6]/Math.sqrt(b),t[a+2]+=g*w,t[a+3]+=v*w):b>0&&(w=m*t[a+6]*t[c+6]/b,t[a+2]+=g*w,t[a+3]+=v*w)),(o=R[o+4])<0)break}else for(m=e.scalingRatio,s=0;s<k;s+=n)for(l=0;l<s;l+=n)g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8])>0?(w=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w):b<0&&(w=100*m*t[s+6]*t[l+6],t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w):(b=Math.sqrt(g*g+v*v))>0&&(w=m*t[s+6]*t[l+6]/b/b,t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w);for(p=e.gravity/e.scalingRatio,m=e.scalingRatio,a=0;a<k;a+=n)w=0,g=t[a+0],v=t[a+1],b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.strongGravityMode?b>0&&(w=m*t[a+6]*p):b>0&&(w=m*t[a+6]*p/b),t[a+2]-=g*w,t[a+3]-=v*w;for(m=1*(e.outboundAttractionDistribution?h:1),u=0;u<L;u+=3)s=r[u+0],l=r[u+1],d=r[u+2],y=Math.pow(d,e.edgeWeightInfluence),g=t[s+0]-t[l+0],v=t[s+1]-t[l+1],!0===P?(b=Math.sqrt(g*g+v*v)-t[s+8]-t[l+8],e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?b>0&&(w=-m*y/t[s+6]):b>0&&(w=-m*y)):(b=Math.sqrt(Math.pow(g,2)+Math.pow(v,2)),e.linLogMode?e.outboundAttractionDistribution?b>0&&(w=-m*y*Math.log(1+b)/b/t[s+6]):b>0&&(w=-m*y*Math.log(1+b)/b):e.outboundAttractionDistribution?(b=1,w=-m*y/t[s+6]):(b=1,w=-m*y)),b>0&&(t[s+2]+=g*w,t[s+3]+=v*w,t[l+2]-=g*w,t[l+3]-=v*w);if(!0===P)for(a=0;a<k;a+=n)1!==t[a+9]&&((x=Math.sqrt(Math.pow(t[a+2],2)+Math.pow(t[a+3],2)))>10&&(t[a+2]=10*t[a+2]/x,t[a+3]=10*t[a+3]/x),E=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,O=.1*Math.log(1+_)/(1+Math.sqrt(E)),S=t[a+0]+t[a+2]*(O/e.slowDown),t[a+0]=S,C=t[a+1]+t[a+3]*(O/e.slowDown),t[a+1]=C);else for(a=0;a<k;a+=n)1!==t[a+9]&&(E=t[a+6]*Math.sqrt((t[a+4]-t[a+2])*(t[a+4]-t[a+2])+(t[a+5]-t[a+3])*(t[a+5]-t[a+3])),_=Math.sqrt((t[a+4]+t[a+2])*(t[a+4]+t[a+2])+(t[a+5]+t[a+3])*(t[a+5]+t[a+3]))/2,O=t[a+7]*Math.log(1+_)/(1+Math.sqrt(E)),t[a+7]=Math.min(1,Math.sqrt(O*(Math.pow(t[a+2],2)+Math.pow(t[a+3],2))/(1+Math.sqrt(E)))),S=t[a+0]+t[a+2]*(O/e.slowDown),t[a+0]=S,C=t[a+1]+t[a+3]*(O/e.slowDown),t[a+1]=C);return{}};var i=r.exports;self.addEventListener("message",(function(n){var r=n.data;e=new Float32Array(r.nodes),r.edges&&(t=new Float32Array(r.edges)),i(r.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},8301:(e,t,n)=>{var r=n(1026),i=n(1880),o=n(4363).Q6,a=n(6061),s=n(9869);function l(e,t){if(t=t||{},!i(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=o("getEdgeWeight"in t?t.getEdgeWeight:"weight").fromEntry,r=a.assign({},s,t.settings),l=a.validateSettings(r);if(l)throw new Error("graphology-layout-forceatlas2/worker: "+l.message);this.worker=null,this.graph=e,this.settings=r,this.getEdgeWeight=n,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var c=void 0,u=this;this.handleGraphUpdate=function(){u.worker&&u.worker.terminate(),c&&clearTimeout(c),c=setTimeout((function(){c=void 0,u.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}l.prototype.isRunning=function(){return this.running},l.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=a.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},l.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);a.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&a.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},l.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},l.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=a.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0)),this},l.prototype.stop=function(){return this.running=!1,this},l.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=l},8833:(e,t,n)=>{var r=n(6586),i=n(1880),o={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!i(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,o)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var s=n.center,l=n.scale,c=2*Math.PI,u=(s-.5)*l,d=t.order,p=a[0],f=a[1];function h(e,t){return t[p]=l*Math.cos(e*c/d)+u,t[f]=l*Math.sin(e*c/d)+u,t}var m=0;if(!e){var g={};return t.forEachNode((function(e){g[e]=h(m++,{})})),g}t.updateEachNodeAttributes((function(e,t){return h(m++,t),t}),{attributes:a})}var s=a.bind(null,!1);s.assign=a.bind(null,!0),e.exports=s},6586:e=>{e.exports=function e(t,n){t=t||{};var r,i={};for(var o in n){var a=t[o],s=n[o];!(r=s)||"object"!=typeof r||"function"==typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?i[o]=void 0===a?s:a:i[o]=e(a,s)}return i}},4363:(e,t)=>{function n(e){return"number"!=typeof e||isNaN(e)?1:e}t.Q6=function(e){return function(e,t){var n={},r=function(e){return void 0===e?t:e};"function"==typeof t&&(r=t);var i=function(t){return r(t[e])},o=function(){return r(void 0)};return"string"==typeof e?(n.fromAttributes=i,n.fromGraph=function(e,t){return i(e.getEdgeAttributes(t))},n.fromEntry=function(e,t){return i(t)},n.fromPartialEntry=n.fromEntry,n.fromMinimalEntry=n.fromEntry):"function"==typeof e?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},n.fromGraph=function(t,n){var i=t.extremities(n);return r(e(n,t.getEdgeAttributes(n),i[0],i[1],t.getNodeAttributes(i[0]),t.getNodeAttributes(i[1]),t.isUndirected(n)))},n.fromEntry=function(t,n,i,o,a,s,l){return r(e(t,n,i,o,a,s,l))},n.fromPartialEntry=function(t,n,i,o){return r(e(t,n,i,o))},n.fromMinimalEntry=function(t,n){return r(e(t,n))}):(n.fromAttributes=o,n.fromGraph=o,n.fromEntry=o,n.fromMinimalEntry=o),n}(e,n)}},1880:e=>{e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},8996:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t,n){return o=i()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return o(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function c(e,t,n,r){var i=e._nodes.get(t),o=null;return i?o="mixed"===r?i.out&&i.out[n]||i.undirected&&i.undirected[n]:"directed"===r?i.out&&i.out[n]:i.undirected&&i.undirected[n]:o}function u(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function d(e){var t;for(t in e)return!1;return!0}function p(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function f(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function h(e){return!(!u(e)||e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(l=Object.assign);var m,g={exports:{}},v="object"==typeof Reflect?Reflect:null,y=v&&"function"==typeof v.apply?v.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};m=v&&"function"==typeof v.ownKeys?v.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var b=Number.isNaN||function(e){return e!=e};function w(){w.init.call(this)}g.exports=w,g.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}T(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&T(e,"error",t,{once:!0})}(e,i)}))},w.EventEmitter=w,w.prototype._events=void 0,w.prototype._eventsCount=0,w.prototype._maxListeners=void 0;var x=10;function E(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _(e){return void 0===e._maxListeners?w.defaultMaxListeners:e._maxListeners}function O(e,t,n,r){var i,o,a,s;if(E(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=_(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function S(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=S.bind(r);return i.listener=n,r.wrapFn=i,i}function k(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):P(i,i.length)}function L(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function P(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function T(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}function R(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(w,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||b(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),w.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},w.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||b(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},w.prototype.getMaxListeners=function(){return _(this)},w.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)y(s,this,t);else{var l=s.length,c=P(s,l);for(n=0;n<l;++n)y(c[n],this,t)}return!0},w.prototype.addListener=function(e,t){return O(this,e,t,!1)},w.prototype.on=w.prototype.addListener,w.prototype.prependListener=function(e,t){return O(this,e,t,!0)},w.prototype.once=function(e,t){return E(t),this.on(e,C(this,e,t)),this},w.prototype.prependOnceListener=function(e,t){return E(t),this.prependListener(e,C(this,e,t)),this},w.prototype.removeListener=function(e,t){var n,r,i,o,a;if(E(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},w.prototype.off=w.prototype.removeListener,w.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},w.prototype.listeners=function(e){return k(this,e,!0)},w.prototype.rawListeners=function(e){return k(this,e,!1)},w.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):L.call(e,t)},w.prototype.listenerCount=L,w.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]},"undefined"!=typeof Symbol&&(R.prototype[Symbol.iterator]=function(){return this}),R.of=function(){var e=arguments,t=e.length,n=0;return new R((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},R.empty=function(){return new R((function(){return{done:!0}}))},R.fromSequence=function(e){var t=0,n=e.length;return new R((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},R.is=function(e){return e instanceof R||"object"==typeof e&&null!==e&&"function"==typeof e.next};var A=R,M={};M.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,M.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var D=A,z=M,j=z.ARRAY_BUFFER_SUPPORT,N=z.SYMBOL_SUPPORT,I=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||j&&ArrayBuffer.isView(e)?D.fromSequence(e):"object"!=typeof e||null===e?null:N&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},F=I,B=function(e,t){for(var n,r=arguments.length>1?t:1/0,i=r!==1/0?new Array(r):[],o=0,a=F(e);;){if(o===r)return i;if((n=a.next()).done)return o!==t&&(i.length=o),i;i[o++]=n.value}},G=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),U=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(G),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(G),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s(r),n.prototype.constructor),r}return t(n,e),n}(G);function q(e,t){this.key=e,this.attributes=t,this.clear()}function V(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function Z(e,t,n,r,i,o,a){var s,l,c,u;if(r=""+r,0===n){if(!(s=e._nodes.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));c=i,u=o}else if(3===n){if(i=""+i,!(l=e._edges.get(i)))throw new H("Graph.".concat(t,': could not find the "').concat(i,'" edge in the graph.'));var d=l.source.key,p=l.target.key;if(r===d)s=l.target;else{if(r!==p)throw new H("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(i,'" edge (').concat(d,", ").concat(p,")."));s=l.source}c=o,u=a}else{if(!(l=e._edges.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));s=1===n?l.source:l.target,c=i,u=o}return[s,c,u]}q.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}},V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}},$.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}},Y.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},Y.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var i=this.source[e],o=i[r];if(void 0===o)return i[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));o.previous=this,this.next=o,i[r]=this,this.target[t][n]=this},Y.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},Y.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];return a.attributes[s]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return Z(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];return a.attributes.hasOwnProperty(s)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];return s.attributes[l]=c,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=Z(this,t,n,e,r,i,o),s=a[0],l=a[1],c=a[2];if("function"!=typeof c)throw new U("Graph.".concat(t,": updater should be a function."));var u=s.attributes,d=c(u[l]);return u[l]=d,this.emit("nodeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:l}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];return delete a.attributes[s],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:s}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if(!u(s))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=s,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if(!u(s))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return l(a.attributes,s),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:s}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=Z(this,t,n,e,r,i),a=o[0],s=o[1];if("function"!=typeof s)throw new U("Graph.".concat(t,": provided updater is not a function."));return a.attributes=s(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],K=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,o=""+arguments[1];if(!(r=c(this,i,o,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(o,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],i=arguments[3],!(o=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,s=""+r;if(r=arguments[2],i=arguments[3],!(o=c(this,a,s,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(s,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof i)throw new U("Graph.".concat(t,": updater should be a function."));return o.attributes[r]=i(o.attributes[r]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete i.attributes[r],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!u(r))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return i.attributes=r,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!u(r))throw new U("Graph.".concat(t,": provided attributes are not a plain object."));return l(i.attributes,r),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new W("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new W("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=c(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new W("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new U("Graph.".concat(t,": provided updater is not a function."));return i.attributes=r(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}}],Q=A,J=I,ee=function(){var e=arguments,t=null,n=-1;return new Q((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=J(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},te=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function ne(e,t,n,r){var i=!1;for(var o in t)if(o!==r){var a=t[o];if(i=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&i)return a.key}}function re(e,t,n,r){var i,o,a,s=!1;for(var l in t)if(l!==r){i=t[l];do{if(o=i.source,a=i.target,s=n(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected),e&&s)return i.key;i=i.next}while(void 0!==i)}}function ie(e,t){var n,r=Object.keys(e),i=r.length,o=0;return new A((function(){do{if(n)n=n.next;else{if(o>=i)return{done:!0};var a=r[o++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function oe(e,t,n,r){var i=t[n];if(i){var o=i.source,a=i.target;return r(i.key,i.attributes,o.key,a.key,o.attributes,a.attributes,i.undirected)&&e?i.key:void 0}}function ae(e,t,n,r){var i=t[n];if(i){var o=!1;do{if(o=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&o)return i.key;i=i.next}while(void 0!==i)}}function se(e,t){var n=e[t];return void 0!==n.next?new A((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):A.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function le(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):B(e._edges.keys(),e._edges.size);for(var n,r,i="undirected"===t?e.undirectedSize:e.directedSize,o=new Array(i),a="undirected"===t,s=e._edges.values(),l=0;!0!==(n=s.next()).done;)(r=n.value).undirected===a&&(o[l++]=r.key);return o}function ce(e,t,n,r){if(0!==t.size)for(var i,o,a="mixed"!==n&&n!==t.type,s="undirected"===n,l=!1,c=t._edges.values();!0!==(i=c.next()).done;)if(o=i.value,!a||o.undirected===s){var u=o,d=u.key,p=u.attributes,f=u.source,h=u.target;if(l=r(d,p,f.key,h.key,f.attributes,h.attributes,o.undirected),e&&l)return d}}function ue(e,t){if(0===e.size)return A.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,i=e._edges.values();return new A((function(){for(var e,t;;){if((e=i.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function de(e,t,n,r,i,o){var a,s=t?re:ne;if("undirected"!==n){if("out"!==r&&(a=s(e,i.in,o),e&&a))return a;if("in"!==r&&(a=s(e,i.out,o,r?void 0:i.key),e&&a))return a}if("directed"!==n&&(a=s(e,i.undirected,o),e&&a))return a}function pe(e,t,n,r){var i=[];return de(!1,e,t,n,r,(function(e){i.push(e)})),i}function fe(e,t,n){var r=A.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=ee(r,ie(n.in))),"in"!==t&&void 0!==n.out&&(r=ee(r,ie(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=ee(r,ie(n.undirected))),r}function he(e,t,n,r,i,o,a){var s,l=n?ae:oe;if("undirected"!==t){if(void 0!==i.in&&"out"!==r&&(s=l(e,i.in,o,a),e&&s))return s;if(void 0!==i.out&&"in"!==r&&(r||i.key!==o)&&(s=l(e,i.out,o,a),e&&s))return s}if("directed"!==t&&void 0!==i.undirected&&(s=l(e,i.undirected,o,a),e&&s))return s}function me(e,t,n,r,i){var o=[];return he(!1,e,t,n,r,i,(function(e){o.push(e)})),o}function ge(e,t,n,r){var i=A.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(i=ee(i,se(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(i=ee(i,se(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(i=ee(i,se(n.undirected,r))),i}var ve=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function ye(){this.A=null,this.B=null}function be(e,t,n,r,i){for(var o in r){var a=r[o],s=a.source,l=a.target,c=s===n?l:s;if(!t||!t.has(c.key)){var u=i(c.key,c.attributes);if(e&&u)return c.key}}}function we(e,t,n,r,i){if("mixed"!==t){if("undirected"===t)return be(e,null,r,r.undirected,i);if("string"==typeof n)return be(e,null,r,r[n],i)}var o,a=new ye;if("undirected"!==t){if("out"!==n){if(o=be(e,null,r,r.in,i),e&&o)return o;a.wrap(r.in)}if("in"!==n){if(o=be(e,a,r,r.out,i),e&&o)return o;a.wrap(r.out)}}if("directed"!==t&&(o=be(e,a,r,r.undirected,i),e&&o))return o}function xe(e,t,n){var r=Object.keys(n),i=r.length,o=0;return new A((function(){var a=null;do{if(o>=i)return e&&e.wrap(n),{done:!0};var s=n[r[o++]],l=s.source,c=s.target;a=l===t?c:l,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function Ee(e,t,n,r,i){for(var o,a,s,l,c,u,d,p=r._nodes.values(),f=r.type;!0!==(o=p.next()).done;){var h=!1;if(a=o.value,"undirected"!==f)for(s in l=a.out){c=l[s];do{if(u=c.target,h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if("directed"!==f)for(s in l=a.undirected)if(!(t&&a.key>s)){c=l[s];do{if((u=c.target).key!==s&&(u=c.source),h=!0,d=i(a.key,u.key,a.attributes,u.attributes,c.key,c.attributes,c.undirected),e&&d)return c;c=c.next}while(c)}if(n&&!h&&(d=i(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function _e(e){if(!u(e))throw new U('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new U("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!u(e.attributes)||null===e.attributes))throw new U("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Oe(e){if(!u(e))throw new U('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new U("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new U("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!u(e.attributes)||null===e.attributes))throw new U("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new U("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}ye.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},ye.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var Se,Ce=(Se=255&Math.floor(256*Math.random()),function(){return Se++}),ke=new Set(["directed","undirected","mixed"]),Le=new Set(["domain","_events","_eventsCount","_maxListeners"]),Pe={allowSelfLoops:!0,multi:!1,type:"mixed"};function Te(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function Re(e,t,n,r,i,o,a,s){if(!r&&"undirected"===e.type)throw new W("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new W("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(s&&!u(s))throw new U("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));if(o=""+o,a=""+a,s=s||{},!e.allowSelfLoops&&o===a)throw new W("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var l=e._nodes.get(o),c=e._nodes.get(a);if(!l)throw new H("Graph.".concat(t,': source node "').concat(o,'" not found.'));if(!c)throw new H("Graph.".concat(t,': target node "').concat(a,'" not found.'));var d={key:null,undirected:r,source:o,target:a,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new W("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==l.undirected[a]:void 0!==l.out[a]))throw new W("Graph.".concat(t,': an edge linking "').concat(o,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var p=new Y(r,i,l,c,s);e._edges.set(i,p);var f=o===a;return r?(l.undirectedDegree++,c.undirectedDegree++,f&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,c.inDegree++,f&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,d.key=i,e.emit("edgeAdded",d),i}function Ae(e,t,n,r,i,o,a,s,c){if(!r&&"undirected"===e.type)throw new W("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new W("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(s)if(c){if("function"!=typeof s)throw new U("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(s,'"'))}else if(!u(s))throw new U("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(s,'"'));var d;if(o=""+o,a=""+a,c&&(d=s,s=void 0),!e.allowSelfLoops&&o===a)throw new W("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var p,f,h=e._nodes.get(o),m=e._nodes.get(a);if(!n&&(p=e._edges.get(i))){if(!(p.source.key===o&&p.target.key===a||r&&p.source.key===a&&p.target.key===o))throw new W("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(i,'" edge with "').concat(o,'" source & "').concat(a,'" target vs. ("').concat(p.source.key,'", "').concat(p.target.key,'").'));f=p}if(f||e.multi||!h||(f=r?h.undirected[a]:h.out[a]),f){var g=[f.key,!1,!1,!1];if(c?!d:!s)return g;if(c){var v=f.attributes;f.attributes=d(v),e.emit("edgeAttributesUpdated",{type:"replace",key:f.key,attributes:f.attributes})}else l(f.attributes,s),e.emit("edgeAttributesUpdated",{type:"merge",key:f.key,attributes:f.attributes,data:s});return g}s=s||{},c&&d&&(s=d(s));var y={key:null,undirected:r,source:o,target:a,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new W("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));var b=!1,w=!1;h||(h=Te(e,o,{}),b=!0,o===a&&(m=h,w=!0)),m||(m=Te(e,a,{}),w=!0),p=new Y(r,i,h,m,s),e._edges.set(i,p);var x=o===a;return r?(h.undirectedDegree++,m.undirectedDegree++,x&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,m.inDegree++,x&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,b,w]}function Me(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,i=t.attributes,o=t.undirected,a=n===r;o?(n.undirectedDegree--,r.undirectedDegree--,a&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,a&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),o?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:o})}var De=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=l({},Pe,e)).multi)throw new U("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!ke.has(e.type))throw new U('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new U("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?q:"directed"===e.type?V:$;p(s(t),"NodeDataClass",r);var i="geid_"+Ce()+"_",o=0;return p(s(t),"_attributes",{}),p(s(t),"_nodes",new Map),p(s(t),"_edges",new Map),p(s(t),"_directedSize",0),p(s(t),"_undirectedSize",0),p(s(t),"_directedSelfLoopCount",0),p(s(t),"_undirectedSelfLoopCount",0),p(s(t),"_edgeKeyGenerator",(function(){var e;do{e=i+o++}while(t._edges.has(e));return e})),p(s(t),"_options",e),Le.forEach((function(e){return p(s(t),e,t[e])})),f(s(t),"order",(function(){return t._nodes.size})),f(s(t),"size",(function(){return t._edges.size})),f(s(t),"directedSize",(function(){return t._directedSize})),f(s(t),"undirectedSize",(function(){return t._undirectedSize})),f(s(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),f(s(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),f(s(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),f(s(t),"multi",t._options.multi),f(s(t),"type",t._options.type),f(s(t),"allowSelfLoops",t._options.allowSelfLoops),f(s(t),"implementation",(function(){return"graphology"})),t}t(r,n);var i=r.prototype;return i._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},i.hasNode=function(e){return this._nodes.has(""+e)},i.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var i=this._nodes.get(e);return!!i&&i.out.hasOwnProperty(t)}throw new U("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var i=this._nodes.get(e);return!!i&&i.undirected.hasOwnProperty(t)}throw new U("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);return!!r&&(void 0!==r.out&&r.out.hasOwnProperty(t)||void 0!==r.undirected&&r.undirected.hasOwnProperty(t))}throw new U("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new W("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},i.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new W("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},i.edge=function(e,t){if(this.multi)throw new W("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},i.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},i.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},i.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},i.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},i.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},i.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},i.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},i.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},i.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},i.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},i.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},i.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},i.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},i.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},i.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree-t.directedLoops},i.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree-t.directedLoops},i.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree-2*t.directedLoops},i.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree-2*t.undirectedLoops},i.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree,r+=t.directedLoops),n-r},i.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.outDegree,r+=t.directedLoops),n-r},i.degreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree,r+=2*t.directedLoops),n-r},i.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},i.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},i.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},i.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new H('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,i=n.target.key;if(e===r)return i;if(e===i)return r;throw new H('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(i,")."))},i.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new H('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},i.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},i.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},i.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},i.addNode=function(e,t){var n=function(e,t,n){if(n&&!u(n))throw new U('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new W('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},i.mergeNode=function(e,t){if(t&&!u(t))throw new U('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(l(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},i.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new U('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var i=t?t({}):{};return n=new this.NodeDataClass(e,i),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:i}),[e,!0]},i.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new H('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Me(this,t),t=t.next}while(t)}for(var i in n.in){t=n.in[i];do{Me(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var o in n.undirected){t=n.undirected[o];do{Me(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},i.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=c(this,n,r,this.type)))throw new H('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new H('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Me(this,t),this},i.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new W("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new W("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e=""+e,t=""+t,"directed");if(!n)throw new H('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Me(this,n),this},i.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new W("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new W("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=c(this,e,t,"undirected");if(!n)throw new H('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Me(this,n),this},i.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},i.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},i.getAttribute=function(e){return this._attributes[e]},i.getAttributes=function(){return this._attributes},i.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},i.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.updateAttribute=function(e,t){if("function"!=typeof t)throw new U("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},i.replaceAttributes=function(e){if(!u(e))throw new U("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},i.mergeAttributes=function(e){if(!u(e))throw new U("Graph.mergeAttributes: provided attributes are not a plain object.");return l(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},i.updateAttributes=function(e){if("function"!=typeof e)throw new U("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},i.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new U("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!h(t))throw new U("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i=this._nodes.values();!0!==(n=i.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},i.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new U("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!h(t))throw new U("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i,o,a=this._edges.values();!0!==(n=a.next()).done;)i=(r=n.value).source,o=r.target,r.attributes=e(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},i.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new U("Graph.forEachAdjacencyEntry: expecting a callback.");Ee(!1,!1,!1,this,e)},i.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new U("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Ee(!1,!1,!0,this,e)},i.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new U("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Ee(!1,!0,!1,this,e)},i.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new U("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Ee(!1,!0,!0,this,e)},i.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):B(this._nodes.keys(),this._nodes.size)},i.forEachNode=function(e){if("function"!=typeof e)throw new U("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},i.findNode=function(e){if("function"!=typeof e)throw new U("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},i.mapNodes=function(e){if("function"!=typeof e)throw new U("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),i=new Array(this.order),o=0;!0!==(t=r.next()).done;)n=t.value,i[o++]=e(n.key,n.attributes);return i},i.someNode=function(e){if("function"!=typeof e)throw new U("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},i.everyNode=function(e){if("function"!=typeof e)throw new U("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},i.filterNodes=function(e){if("function"!=typeof e)throw new U("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),i=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&i.push(n.key);return i},i.reduceNodes=function(e,t){if("function"!=typeof e)throw new U("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new U("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,i=t,o=this._nodes.values();!0!==(n=o.next()).done;)i=e(i,(r=n.value).key,r.attributes);return i},i.nodeEntries=function(){var e=this._nodes.values();return new A((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},i.export=function(){var e=this,t=new Array(this._nodes.size),n=0;this._nodes.forEach((function(e,r){t[n++]=function(e,t){var n={key:e};return d(t.attributes)||(n.attributes=l({},t.attributes)),n}(r,e)}));var r=new Array(this._edges.size);return n=0,this._edges.forEach((function(t,i){r[n++]=function(e,t,n){var r={key:t,source:n.source.key,target:n.target.key};return d(n.attributes)||(r.attributes=l({},n.attributes)),"mixed"===e&&n.undirected&&(r.undirected=!0),r}(e.type,i,t)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}},i.import=function(e){var t,n,i,o,a,s=this,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof r)return e.forEachNode((function(e,t){l?s.mergeNode(e,t):s.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,i,o,a){l?a?s.mergeUndirectedEdgeWithKey(e,n,r,t):s.mergeDirectedEdgeWithKey(e,n,r,t):a?s.addUndirectedEdgeWithKey(e,n,r,t):s.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!u(e))throw new U("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!u(e.attributes))throw new U("Graph.import: invalid attributes. Expecting a plain object.");l?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(i=e.nodes,!Array.isArray(i))throw new U("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=i.length;t<n;t++){_e(o=i[t]);var c=o,d=c.key,p=c.attributes;l?this.mergeNode(d,p):this.addNode(d,p)}}if(e.edges){var f=!1;if("undirected"===this.type&&(f=!0),i=e.edges,!Array.isArray(i))throw new U("Graph.import: invalid edges. Expecting an array.");for(t=0,n=i.length;t<n;t++){Oe(a=i[t]);var h=a,m=h.source,g=h.target,v=h.attributes,y=h.undirected,b=void 0===y?f:y;"key"in a?(l?b?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:b?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,a.key,m,g,v):(l?b?this.mergeUndirectedEdge:this.mergeDirectedEdge:b?this.addUndirectedEdge:this.addDirectedEdge).call(this,m,g,v)}}return this},i.nullCopy=function(e){var t=new r(l({},this._options,e));return t.replaceAttributes(l({},this.getAttributes())),t},i.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=l({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},i.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new W('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new W("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new W("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),i=this._edges.values();!0!==(t=i.next()).done;)Re(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,l({},n.attributes));return r},i.toJSON=function(){return this.export()},i.toString=function(){return"[object Graph]"},i.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},i={};this._edges.forEach((function(e,n){var o,a=e.undirected?"--":"->",s="",l=e.source.key,c=e.target.key;e.undirected&&l>c&&(o=l,l=c,c=o);var u="(".concat(l,")").concat(a,"(").concat(c,")");n.startsWith("geid_")?t.multi&&(void 0===i[u]?i[u]=0:i[u]++,s+="".concat(i[u],". ")):s+="[".concat(n,"]: "),r[s+=u]=e.attributes}));var o={};for(var a in this)this.hasOwnProperty(a)&&!Le.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(o[a]=this[a]);return o.attributes=this._attributes,o.nodes=n,o.edges=r,p(o,"constructor",this.constructor),o},r}(g.exports.EventEmitter);"undefined"!=typeof Symbol&&(De.prototype[Symbol.for("nodejs.util.inspect.custom")]=De.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?Re:Ae;e.generateKey?De.prototype[n]=function(i,o,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,i,o,a,"update"===t)}:De.prototype[n]=function(i,o,a,s){return r(this,n,!1,"undirected"===(e.type||this.type),i,o,a,s,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(De),function(e){K.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(De),function(e){te.forEach((function(t){!function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return le(this,r);if(1===arguments.length){e=""+e;var o=this._nodes.get(e);if(void 0===o)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return pe(this.multi,"mixed"===r?this.type:r,i,o)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return me(r,this.multi,i,a,t)}throw new U("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return ce(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return de(!1,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return he(!1,r,this.multi,i,s,t,n)}throw new U("Graph.".concat(o,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var i=0;"directed"!==r&&(i+=this.undirectedSize),"undirected"!==r&&(i+=this.directedSize),e=new Array(i);var a=0;t.push((function(t,r,i,o,s,l,c){e[a++]=n(t,r,i,o,s,l,c)}))}else e=[],t.push((function(t,r,i,o,a,s,l){e.push(n(t,r,i,o,a,s,l))}));return this[o].apply(this,t),e};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,i,o,a,s,l){t(e,r,i,o,a,s,l)&&n.push(e)})),this[o].apply(this,e),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new U("Graph.".concat(l,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new U("Graph.".concat(l,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,i,o,a,s,l){r=e(r,t,n,i,o,a,s,l)})),this[o].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return ce(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return de(!0,this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var s=this._nodes.get(e);if(!s)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return he(!0,r,this.multi,i,s,t,n)}throw new U("Graph.".concat(o,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,i,o,a,s){return t(e,n,r,i,o,a,s)})),!!this[o].apply(this,e)};var s="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,i,o,a,s){return!t(e,n,r,i,o,a,s)})),!this[o].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return A.empty();if(!arguments.length)return ue(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return fe(r,i,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,': could not find the "').concat(t,'" target node in the graph.'));return ge(r,i,a,t)}throw new U("Graph.".concat(o,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(De),function(e){ve.forEach((function(t){(function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return we(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,i,t)}})(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));we(!1,"mixed"===r?this.type:r,i,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[o](e,(function(e,r){n.push(t(e,r))})),n};var s="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){var n=[];return this[o](e,(function(e,r){t(e,r)&&n.push(e)})),n};var l="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(e,t,n){if(arguments.length<3)throw new U("Graph.".concat(l,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[o](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n[0].toUpperCase()+n.slice(1,-1),a="find"+o;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return we(!0,"mixed"===r?this.type:r,i,n,t)}};var s="some"+o;e.prototype[s]=function(e,t){return!!this[a](e,t)};var l="every"+o;e.prototype[l]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return A.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return xe(null,n,n.undirected);if("string"==typeof t)return xe(null,n,n[t])}var r=A.empty(),i=new ye;return"undirected"!==e&&("out"!==t&&(r=ee(r,xe(i,n,n.in))),"in"!==t&&(r=ee(r,xe(i,n,n.out)))),"directed"!==e&&(r=ee(r,xe(i,n,n.undirected))),r}("mixed"===r?this.type:r,i,t)}}(e,t)}))}(De);var ze=function(e){function n(t){var n=l({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new U("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new U('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De),je=function(e){function n(t){var n=l({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new U("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new U('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De),Ne=function(e){function n(t){var n=l({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new U("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(De),Ie=function(e){function n(t){var n=l({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new U("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new U('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De),Fe=function(e){function n(t){var n=l({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new U("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new U('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(De);function Be(e){e.from=function(t,n){var r=l({},t.options,n),i=new e(r);return i.import(t),i}}return Be(De),Be(ze),Be(je),Be(Ne),Be(Ie),Be(Fe),De.Graph=De,De.DirectedGraph=ze,De.UndirectedGraph=je,De.MultiGraph=Ne,De.MultiDirectedGraph=Ie,De.MultiUndirectedGraph=Fe,De.InvalidArgumentsGraphError=U,De.NotFoundGraphError=H,De.UsageGraphError=W,De}()},9612:(e,t,n)=>{var r=n(2118),i=n(6909),o=n(8138),a=n(4174),s=n(7942);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},235:(e,t,n)=>{var r=n(3945),i=n(1846),o=n(8028),a=n(2344),s=n(4769);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),i=n(6417),o=n(6928),a=n(9493),s=n(4150);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3324:(e,t,n)=>{var r=n(7297),i=n(3812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},3366:(e,t,n)=>{var r=n(857),i=n(2107),o=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},6840:(e,t,n)=>{var r=n(1049),i=n(7394),o=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},1054:(e,t,n)=>{var r=n(857),i=n(343),o=n(6152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1704:(e,t,n)=>{var r=n(2153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7297:(e,t,n)=>{var r=n(6152),i=n(1401),o=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),i=n(8109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),i=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 i.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);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}},1401:(e,t,n)=>{var r=n(6152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,i=n(4019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),i=n(235),o=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4452:(e,t,n)=>{var r=n(7777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),i=n(1100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,p=setTimeout(x,t),m?y(e):d}function w(e){var n=e-f;return void 0===f||n>=t||n<0||g&&e-h>=u}function x(){var e=i();if(w(e))return E(e);p=setTimeout(x,function(e){var n=t-(e-f);return g?s(n,u-(e-h)):n}(e))}function E(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=i(),n=w(e);if(l=arguments,c=this,f=e,n){if(void 0===p)return b(f);if(g)return clearTimeout(p),p=setTimeout(x,t),y(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=c=p=void 0},_.flush=function(){return void 0===p?d:E(i())},_}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},6152:e=>{var t=Array.isArray;e.exports=t},1049:(e,t,n)=>{var r=n(3366),i=n(9259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,p=NaN,f=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",x="[object GeneratorFunction]",E="[object Map]",_="[object Number]",O="[object Object]",S="[object Promise]",C="[object RegExp]",k="[object Set]",L="[object String]",P="[object Symbol]",T="[object WeakMap]",R="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",z="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",I="[object Uint8Array]",F="[object Uint8ClampedArray]",B="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,$=RegExp(q.source),Y=RegExp(V.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+Oe+"]",Ce="["+xe+"]",ke="\\d+",Le="["+Ee+"]",Pe="[^\\ud800-\\udfff"+Oe+ke+"\\u2700-\\u27bf"+Ee+_e+"]",Te="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+_e+"]",ze="(?:"+Le+"|"+Pe+")",je="(?:"+De+"|"+Pe+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Ie="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+Ce+"|"+Te+")?",Be="[\\ufe0e\\ufe0f]?",Ge=Be+Fe+"(?:\\u200d(?:"+[Re,Ae,Me].join("|")+")"+Be+Fe+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Ae,Me].join("|")+")"+Ge,He="(?:"+[Re+Ce+"?",Ce,Ae,Me,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),qe=RegExp(Ce,"g"),Ve=RegExp(Te+"(?="+Te+")|"+He+Ge,"g"),$e=RegExp([De+"?"+Le+"+"+Ne+"(?="+[Se,De,"$"].join("|")+")",je+"+"+Ie+"(?="+[Se,De+ze,"$"].join("|")+")",De+"?"+ze+"+"+Ne,De+"+"+Ie,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,Ue].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+xe+"\\ufe0e\\ufe0f]"),Ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Qe={};Qe[M]=Qe[D]=Qe[z]=Qe[j]=Qe[N]=Qe[I]=Qe[F]=Qe[B]=Qe[G]=!0,Qe[m]=Qe[g]=Qe[R]=Qe[v]=Qe[A]=Qe[y]=Qe[b]=Qe[w]=Qe[E]=Qe[_]=Qe[O]=Qe[C]=Qe[k]=Qe[L]=Qe[T]=!1;var Je={};Je[m]=Je[g]=Je[R]=Je[A]=Je[v]=Je[y]=Je[M]=Je[D]=Je[z]=Je[j]=Je[N]=Je[E]=Je[_]=Je[O]=Je[C]=Je[k]=Je[L]=Je[P]=Je[I]=Je[F]=Je[B]=Je[G]=!0,Je[b]=Je[w]=Je[T]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ct=lt&&rt.process,ut=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),dt=ut&&ut.isArrayBuffer,pt=ut&&ut.isDate,ft=ut&&ut.isMap,ht=ut&&ut.isRegExp,mt=ut&&ut.isSet,gt=ut&&ut.isTypedArray;function vt(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 yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Et(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function _t(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ct(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function kt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Tt=Nt("length");function Rt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function At(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Mt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):At(e,zt,n)}function Dt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function zt(e){return e!=e}function jt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Nt(e){return function(t){return null==t?i:t[e]}}function It(e){return function(t){return null==e?i:e[t]}}function Ft(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Bt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Ht(e){return function(t){return e(t)}}function Wt(e,t){return St(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function Vt(e,t){for(var n=-1,r=e.length;++n<r&&Mt(t,e[n],0)>-1;);return n}function $t(e,t){for(var n=e.length;n--&&Mt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Zt=It({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xt=It({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Kt(e){return"\\"+et[e]}function Qt(e){return Ye.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=Ve.lastIndex=0;Ve.test(e);)++t;return t}(e):Tt(e)}function an(e){return Qt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var ln=It({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,Xe))).Array,ie=t.Date,xe=t.Error,Ee=t.Function,_e=t.Math,Oe=t.Object,Se=t.RegExp,Ce=t.String,ke=t.TypeError,Le=r.prototype,Pe=Ee.prototype,Te=Oe.prototype,Re=t["__core-js_shared__"],Ae=Pe.toString,Me=Te.hasOwnProperty,De=0,ze=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Te.toString,Ne=Ae.call(Oe),Ie=ot._,Fe=Se("^"+Ae.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=lt?t.Buffer:i,Ge=t.Symbol,Ue=t.Uint8Array,He=Be?Be.allocUnsafe:i,Ve=en(Oe.getPrototypeOf,Oe),Ye=Oe.create,et=Te.propertyIsEnumerable,rt=Le.splice,it=Ge?Ge.isConcatSpreadable:i,at=Ge?Ge.iterator:i,st=Ge?Ge.toStringTag:i,ct=function(){try{var e=co(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Tt=ie&&ie.now!==ot.Date.now&&ie.now,It=t.setTimeout!==ot.setTimeout&&t.setTimeout,un=_e.ceil,dn=_e.floor,pn=Oe.getOwnPropertySymbols,fn=Be?Be.isBuffer:i,hn=t.isFinite,mn=Le.join,gn=en(Oe.keys,Oe),vn=_e.max,yn=_e.min,bn=ie.now,wn=t.parseInt,xn=_e.random,En=Le.reverse,_n=co(t,"DataView"),On=co(t,"Map"),Sn=co(t,"Promise"),Cn=co(t,"Set"),kn=co(t,"WeakMap"),Ln=co(Oe,"create"),Pn=kn&&new kn,Tn={},Rn=Fo(_n),An=Fo(On),Mn=Fo(Sn),Dn=Fo(Cn),zn=Fo(kn),jn=Ge?Ge.prototype:i,Nn=jn?jn.valueOf:i,In=jn?jn.toString:i;function Fn(e){if(ns(e)&&!qa(e)&&!(e instanceof Hn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return Bo(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Gn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new qn(e);this.size=t.size}function Zn(e,t){var n=qa(e),r=!n&&Wa(e),i=!n&&!r&&Za(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?Gt(e.length,Ce):[],l=s.length;for(var c in e)!t&&!Me.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vo(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Vr(0,t-1)]:i}function Kn(e,t){return Do(ki(e),ar(t,0,e.length))}function Qn(e){return Do(ki(e))}function Jn(e,t,n){(n!==i&&!Ga(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Me.call(e,t)&&Ga(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ga(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Li(t,As(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return ki(e,s)}else{var p=fo(e),f=p==w||p==x;if(Za(e))return xi(e,l);if(p==O||p==m||f&&!o){if(s=c||f?{}:mo(e),!l)return c?function(e,t){return Li(e,po(e),t)}(e,function(e,t){return e&&Li(t,Ms(t),e)}(s,e)):function(e,t){return Li(e,uo(e),t)}(e,rr(s,e))}else{if(!Je[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case R:return Ei(e);case v:case y:return new i(+e);case A:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case D:case z:case j:case N:case I:case F:case B:case G:return _i(e,n);case E:return new i;case _:case L:return new i(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case P:return r=e,Nn?Oe(Nn.call(r)):{}}}(e,p,l)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var g=d?i:(u?c?no:to:c?Ms:As)(e);return bt(g||e,(function(r,i){g&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Oe(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new ke(o);return To((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,o=_t,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=St(t,Ht(n))),r?(o=Ot,a=!1):t.length>=200&&(o=qt,a=!1,t=new $n(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:Z,evaluate:X,interpolate:K,variable:"",imports:{_:Fn}},Fn.prototype=Gn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Bn(Gn.prototype),Un.prototype.constructor=Un,Hn.prototype=Bn(Gn.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Ln?Ln(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Ln){var n=t[e];return n===a?i:n}return Me.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return Ln?t[e]!==i:Me.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ln&&t===i?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(On||qn),string:new Wn}},Vn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return so(this,e).get(e)},Vn.prototype.has=function(e){return so(this,e).has(e)},Vn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,a),this},$n.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var dr=Ri(br),pr=Ri(wr,!0);function fr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function mr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=go),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?gr(s,t-1,n,r,i):Ct(i,s):r||(i[i.length]=s)}return i}var vr=Ai(),yr=Ai(!0);function br(e,t){return e&&vr(e,t,As)}function wr(e,t){return e&&yr(e,t,As)}function xr(e,t){return Et(t,(function(t){return Qa(e[t])}))}function Er(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[Io(t[n++])];return n&&n==r?e:i}function _r(e,t,n){var r=t(e);return qa(e)?r:Ct(r,n(e))}function Or(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Oe(e)?function(e){var t=Me.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=je.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return je.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Me.call(e,t)}function kr(e,t){return null!=e&&t in Oe(e)}function Lr(e,t,n){for(var o=n?Ot:_t,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=St(p,Ht(t))),u=yn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new $n(l&&p):i}p=e[0];var f=-1,h=c[0];e:for(;++f<a&&d.length<u;){var m=p[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?qt(h,g):o(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?qt(v,g):o(e[l],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function Pr(e,t,n){var r=null==(e=Co(e,t=vi(t,e)))?e:e[Io(Ko(t))];return null==r?i:vt(r,e,n)}function Tr(e){return ns(e)&&Or(e)==m}function Rr(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=qa(e),l=qa(t),c=s?g:fo(e),u=l?g:fo(t),d=(c=c==m?O:c)==O,p=(u=u==m?O:u)==O,f=c==u;if(f&&Za(e)){if(!Za(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Yn),s||us(e)?Ji(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case y:case _:return Ga(+e,+t);case b:return e.name==t.name&&e.message==t.message;case C:case L:return e==t+"";case E:var s=Jt;case k:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Ji(s(e),s(t),r,i,o,a);return a.delete(e),u;case P:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=d&&Me.call(e,"__wrapped__"),w=p&&Me.call(t,"__wrapped__");if(h||w){var x=h?e.value():e,S=w?t.value():t;return a||(a=new Yn),o(x,S,n,r,a)}}return!!f&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,l=to(e),c=l.length;if(c!=to(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Me.call(t,d)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<c;){var g=e[d=l[u]],v=t[d];if(r)var y=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(!(y===i?g===v||o(g,v,n,r,a):y)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Rr,o))}function Ar(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Oe(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var p=new Yn;if(r)var f=r(u,d,c,e,t,p);if(!(f===i?Rr(d,u,3,r,p):f))return!1}}return!0}function Mr(e){return!(!ts(e)||(t=e,ze&&ze in t))&&(Qa(e)?Fe:me).test(Fo(e));var t}function Dr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?qa(e)?Fr(e[0],e[1]):Ir(e):fl(e)}function zr(e){if(!Eo(e))return gn(e);var t=[];for(var n in Oe(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Nr(e,t){var n=-1,i=$a(e)?r(e.length):[];return dr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Ir(e){var t=lo(e);return 1==t.length&&t[0][2]?Oo(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function Fr(e,t){return bo(e)&&_o(t)?Oo(Io(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Ls(n,e):Rr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var l=Lo(e,n),c=Lo(t,n),u=s.get(c);if(u)Jn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):i,p=d===i;if(p){var f=qa(c),h=!f&&Za(c),m=!f&&!h&&us(c);d=c,f||h||m?qa(l)?d=l:Ya(l)?d=ki(l):h?(p=!1,d=xi(c,!0)):m?(p=!1,d=_i(c,!0)):d=[]:os(c)||Wa(c)?(d=l,Wa(l)?d=ys(l):ts(l)&&!Qa(l)||(d=mo(c))):p=!1}p&&(s.set(c,d),o(d,c,r,a,s),s.delete(c)),Jn(e,n,d)}}(e,t,s,n,Br,r,o);else{var l=r?r(Lo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),Jn(e,s,l)}}),Ms)}function Gr(e,t){var n=e.length;if(n)return vo(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?St(t,(function(e){return qa(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;t=St(t,Ht(ao()));var i=Nr(e,(function(e,n,i){var o=St(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Oi(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Hr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Er(e,a);n(s,a)&&Kr(o,vi(a,e),s)}return o}function Wr(e,t,n,r){var i=r?Dt:Mt,o=-1,a=t.length,s=e;for(e===t&&(t=ki(t)),n&&(s=St(e,Ht(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?rt.call(e,i,1):ci(e,i)}}return e}function Vr(e,t){return e+dn(xn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Ro(So(e,t,il),e+"")}function Zr(e){return Xn(Gs(e))}function Xr(e,t){var n=Gs(e);return Do(n,ar(t,0,n.length))}function Kr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=vi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Io(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=ts(d)?d:vo(t[o+1])?[]:{})}er(l,c,u),l=l[c]}return e}var Qr=Pn?function(e,t){return Pn.set(e,t),e}:il,Jr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ei(e){return Do(Gs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,il,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===i;o<a;){var d=dn((o+a)/2),p=n(e[d]),f=p!==i,h=null===p,m=p==p,g=cs(p);if(s)var v=r||m;else v=u?m&&(r||f):l?m&&f&&(r||!h):c?m&&f&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);v?o=d+1:a=d}return yn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ga(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:cs(e)?p:+e}function si(e){if("string"==typeof e)return e;if(qa(e))return St(e,si)+"";if(cs(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function li(e,t,n){var r=-1,i=_t,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Ot;else if(o>=200){var c=t?null:$i(e);if(c)return nn(c);a=!1,i=qt,l=new $n}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ci(e,t){return null==(e=Co(e,t=vi(t,e)))||delete e[Io(Ko(t))]}function ui(e,t,n,r){return Kr(e,t,n(Er(e,t)),r)}function di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Ct([e],t.args))}),n)}function fi(e,t,n){var i=e.length;if(i<2)return i?li(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=ur(a[o]||s,e[l],t,n));return li(gr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function mi(e){return Ya(e)?e:[]}function gi(e){return"function"==typeof e?e:il}function vi(e,t){return qa(e)?e:bo(e,t)?[e]:No(bs(e))}var yi=Yr;function bi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var wi=ut||function(e){return ot.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function _i(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=cs(e),s=t!==i,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e<t||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Si(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=vn(a-s,0),d=r(c+u),p=!i;++l<c;)d[l]=t[l];for(;++o<s;)(p||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=vn(a-l,0),p=r(d+u),f=!i;++o<d;)p[o]=e[o];for(var h=o;++c<u;)p[h+c]=t[c];for(;++s<l;)(f||o<a)&&(p[h+n[s]]=e[o++]);return p}function ki(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Li(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?ir(n,l,c):er(n,l,c)}return n}function Pi(e,t){return function(n,r){var i=qa(n)?yt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ti(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Oe(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Oe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ai(e){return function(t,n,r){for(var i=-1,o=Oe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Mi(e){return function(t){var n=Qt(t=bs(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?bi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return kt(Qs(Ws(t).replace(We,"")),e,"")}}function zi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function ji(e){return function(t,n,r){var o=Oe(t);if(!$a(t)){var a=ao(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ni(e){return eo((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(o);if(a&&!l&&"wrapper"==io(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=io(s=t[r]),u="wrapper"==c?ro(s):i;l=u&&wo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[io(u[0])].apply(l,u[3]):1==s.length&&wo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&qa(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ii(e,t,n,o,a,s,l,u,d,p){var f=t&c,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:zi(e);return function i(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(g)var x=oo(i),E=Yt(b,x);if(o&&(b=Si(b,o,a,g)),s&&(b=Ci(b,s,l,g)),c-=E,g&&c<p){var _=tn(b,x);return qi(e,t,Ii,i.placeholder,n,b,_,u,d,p-c)}var O=h?n:this,S=m?O[e]:e;return c=b.length,u?b=ko(b,u):v&&c>1&&b.reverse(),f&&d<c&&(b.length=d),this&&this!==ot&&this instanceof i&&(S=y||zi(S)),S.apply(O,b)}}function Fi(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function Gi(e){return eo((function(t){return t=St(t,Ht(ao())),Yr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Ui(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,un(e/on(t)));return Qt(t)?bi(an(r),0,e).join(""):r.slice(0,e)}function Hi(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=vn(un((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function qi(e,t,n,r,o,a,s,c,u,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var f=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,u,d],h=n.apply(i,f);return wo(e)&&Po(h,f),h.placeholder=r,Ao(h,e,t)}function Vi(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(ms(n),292))&&hn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Cn&&1/nn(new Cn([,-0]))[1]==u?function(e){return new Cn(e)}:cl;function Yi(e){return function(t){var n=fo(t);return n==E?Jt(t):n==k?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,n,a,u,d,p,f){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(o);var m=a?a.length:0;if(m||(t&=-97,a=u=i),p=p===i?p:vn(ms(p),0),f=f===i?f:ms(f),m-=u?u.length:0,64&t){var g=a,v=u;a=u=i}var y=h?i:ro(e),b=[e,t,n,a,u,g,v,d,p,f];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Si(u,l,t[4]):l,e[4]=u?tn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ci(u,l,t[6]):l,e[6]=u?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],u=b[4],!(f=b[9]=b[9]===i?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var o=zi(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=oo(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:tn(l,u);return(s-=d.length)<n?qi(e,t,Ii,a.placeholder,i,l,d,i,i,n-s):vt(this&&this!==ot&&this instanceof a?o:e,this,l)}}(e,t,f):t!=l&&33!=t||u.length?Ii.apply(i,b):function(e,t,n,i){var o=1&t,a=zi(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),p=this&&this!==ot&&this instanceof t?a:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return vt(p,o?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,i=zi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ao((y?Qr:Po)(w,b),e,t)}function Xi(e,t,n,r){return e===i||Ga(e,Te[n])&&!Me.call(r,n)?t:e}function Ki(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,i,Ki,a),a.delete(t)),e}function Qi(e){return os(e)?i:e}function Ji(e,t,n,r,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&n?new $n:i;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==i){if(v)continue;f=!1;break}if(h){if(!Pt(t,(function(e,t){if(!qt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function eo(e){return Ro(So(e,i,Vo),e+"")}function to(e){return _r(e,As,uo)}function no(e){return _r(e,Ms,po)}var ro=Pn?function(e){return Pn.get(e)}:cl;function io(e){for(var t=e.name+"",n=Tn[t],r=Me.call(Tn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Me.call(Fn,"placeholder")?Fn:e).placeholder}function ao(){var e=Fn.iteratee||ol;return e=e===ol?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function lo(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_o(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Mr(n)?n:i}var uo=pn?function(e){return null==e?[]:(e=Oe(e),Et(pn(e),(function(t){return et.call(e,t)})))}:gl,po=pn?function(e){for(var t=[];e;)Ct(t,uo(e)),e=Ve(e);return t}:gl,fo=Or;function ho(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,o=!1;++r<i;){var a=Io(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&vo(a,i)&&(qa(e)||Wa(e))}function mo(e){return"function"!=typeof e.constructor||Eo(e)?{}:Bn(Ve(e))}function go(e){return qa(e)||Wa(e)||!!(it&&e&&e[it])}function vo(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&vo(t,n.length):"string"==r&&t in n)&&Ga(n[t],e)}function bo(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||J.test(e)||!Q.test(e)||null!=t&&e in Oe(t)}function wo(e){var t=io(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(_n&&fo(new _n(new ArrayBuffer(1)))!=A||On&&fo(new On)!=E||Sn&&fo(Sn.resolve())!=S||Cn&&fo(new Cn)!=k||kn&&fo(new kn)!=T)&&(fo=function(e){var t=Or(e),n=t==O?e.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Rn:return A;case An:return E;case Mn:return S;case Dn:return k;case zn:return T}return t});var xo=Re?Qa:vl;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function _o(e){return e==e&&!ts(e)}function Oo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Oe(n))}}function So(e,t,n){return t=vn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=vn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),vt(e,this,l)}}function Co(e,t){return t.length<2?e:Er(e,ti(t,0,-1))}function ko(e,t){for(var n=e.length,r=yn(t.length,n),o=ki(e);r--;){var a=t[r];e[r]=vo(a,n)?o[a]:i}return e}function Lo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Po=Mo(Qr),To=It||function(e,t){return ot.setTimeout(e,t)},Ro=Mo(Jr);function Ao(e,t,n){var r=t+"";return Ro(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Vr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var zo,jo,No=(zo=za((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===jo.size&&jo.clear(),e})),jo=zo.cache,zo);function Io(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Hn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Go=Yr((function(e,t){return Ya(e)?ur(e,gr(t,1,Ya,!0)):[]})),Uo=Yr((function(e,t){var n=Ko(t);return Ya(n)&&(n=i),Ya(e)?ur(e,gr(t,1,Ya,!0),ao(n,2)):[]})),Ho=Yr((function(e,t){var n=Ko(t);return Ya(n)&&(n=i),Ya(e)?ur(e,gr(t,1,Ya,!0),i,n):[]}));function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(r+i,0)),At(e,ao(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ms(n),o=n<0?vn(r+o,0):yn(o,r-1)),At(e,ao(t,3),o,!0)}function Vo(e){return null!=e&&e.length?gr(e,1):[]}function $o(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=St(e,mi);return t.length&&t[0]===e[0]?Lr(t):[]})),Zo=Yr((function(e){var t=Ko(e),n=St(e,mi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Lr(n,ao(t,2)):[]})),Xo=Yr((function(e){var t=Ko(e),n=St(e,mi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Lr(n,i,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Yr(Jo);function Jo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,St(t,(function(e){return vo(e,n)?+e:e})).sort(Oi)),r}));function ta(e){return null==e?e:En.call(e)}var na=Yr((function(e){return li(gr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Ko(e);return Ya(t)&&(t=i),li(gr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,li(gr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Et(e,(function(e){if(Ya(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return St(e,Nt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:St(n,(function(e){return vt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?ur(e,t):[]})),la=Yr((function(e){return fi(Et(e,Ya))})),ca=Yr((function(e){var t=Ko(e);return Ya(t)&&(t=i),fi(Et(e,Ya),ao(t,2))})),ua=Yr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,fi(Et(e,Ya),i,t)})),da=Yr(oa),pa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function fa(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ga=Pi((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)})),va=ji(Wo),ya=ji(qo);function ba(e,t){return(qa(e)?bt:dr)(e,ao(t,3))}function wa(e,t){return(qa(e)?wt:pr)(e,ao(t,3))}var xa=Pi((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])})),Ea=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=$a(e)?r(e.length):[];return dr(e,(function(e){a[++i]=o?vt(t,e,n):Pr(e,t,n)})),a})),_a=Pi((function(e,t,n){ir(e,n,t)}));function Oa(e,t){return(qa(e)?St:Nr)(e,ao(t,3))}var Sa=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),ka=Tt||function(){return ot.Date.now()};function La(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zi(e,c,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new ke(o);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ta=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ta));r|=l}return Zi(e,r,t,n,i)})),Ra=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ra));r|=l}return Zi(t,r,e,n,i)}));function Aa(e,t,n){var r,a,s,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new ke(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){return d=e,c=To(y,t),p?m(e):l}function v(e){var n=e-u;return u===i||n>=t||n<0||f&&e-d>=s}function y(){var e=ka();if(v(e))return b(e);c=To(y,function(e){var n=t-(e-u);return f?yn(n,s-(e-d)):n}(e))}function b(e){return c=i,h&&r?m(e):(r=a=i,l)}function w(){var e=ka(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===i)return g(u);if(f)return wi(c),c=To(y,t),m(u)}return c===i&&(c=To(y,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(f="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){c!==i&&wi(c),d=0,r=u=a=c=i},w.flush=function(){return c===i?l:b(ka())},w}var Ma=Yr((function(e,t){return cr(e,1,t)})),Da=Yr((function(e,t,n){return cr(e,vs(t)||0,n)}));function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(za.Cache||Vn),n}function ja(e){if("function"!=typeof e)throw new ke(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}za.Cache=Vn;var Na=yi((function(e,t){var n=(t=1==t.length&&qa(t[0])?St(t[0],Ht(ao())):St(gr(t,1),Ht(ao()))).length;return Yr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return vt(e,this,r)}))})),Ia=Yr((function(e,t){var n=tn(t,oo(Ia));return Zi(e,l,i,t,n)})),Fa=Yr((function(e,t){var n=tn(t,oo(Fa));return Zi(e,64,i,t,n)})),Ba=eo((function(e,t){return Zi(e,256,i,i,i,t)}));function Ga(e,t){return e===t||e!=e&&t!=t}var Ua=Wi(Sr),Ha=Wi((function(e,t){return e>=t})),Wa=Tr(function(){return arguments}())?Tr:function(e){return ns(e)&&Me.call(e,"callee")&&!et.call(e,"callee")},qa=r.isArray,Va=dt?Ht(dt):function(e){return ns(e)&&Or(e)==R};function $a(e){return null!=e&&es(e.length)&&!Qa(e)}function Ya(e){return ns(e)&&$a(e)}var Za=fn||vl,Xa=pt?Ht(pt):function(e){return ns(e)&&Or(e)==y};function Ka(e){if(!ns(e))return!1;var t=Or(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qa(e){if(!ts(e))return!1;var t=Or(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ft?Ht(ft):function(e){return ns(e)&&fo(e)==E};function is(e){return"number"==typeof e||ns(e)&&Or(e)==_}function os(e){if(!ns(e)||Or(e)!=O)return!1;var t=Ve(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ne}var as=ht?Ht(ht):function(e){return ns(e)&&Or(e)==C},ss=mt?Ht(mt):function(e){return ns(e)&&fo(e)==k};function ls(e){return"string"==typeof e||!qa(e)&&ns(e)&&Or(e)==L}function cs(e){return"symbol"==typeof e||ns(e)&&Or(e)==P}var us=gt?Ht(gt):function(e){return ns(e)&&es(e.length)&&!!Qe[Or(e)]},ds=Wi(jr),ps=Wi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if($a(e))return ls(e)?an(e):ki(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=fo(e);return(t==E?Jt:t==k?nn:Gs)(e)}function hs(e){return e?(e=vs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?ar(ms(e),0,f):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?p:+e}function ys(e){return Li(e,Ms(e))}function bs(e){return null==e?"":si(e)}var ws=Ti((function(e,t){if(Eo(t)||$a(t))Li(t,As(t),e);else for(var n in t)Me.call(t,n)&&er(e,n,t[n])})),xs=Ti((function(e,t){Li(t,Ms(t),e)})),Es=Ti((function(e,t,n,r){Li(t,Ms(t),e,r)})),_s=Ti((function(e,t,n,r){Li(t,As(t),e,r)})),Os=eo(or),Ss=Yr((function(e,t){e=Oe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===i||Ga(d,Te[u])&&!Me.call(e,u))&&(e[u]=a[u])}return e})),Cs=Yr((function(e){return e.push(i,Ki),vt(zs,i,e)}));function ks(e,t,n){var r=null==e?i:Er(e,t);return r===i?n:r}function Ls(e,t){return null!=e&&ho(e,t,kr)}var Ps=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),tl(il)),Ts=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Rs=Yr(Pr);function As(e){return $a(e)?Zn(e):zr(e)}function Ms(e){return $a(e)?Zn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Oe(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}(e)}var Ds=Ti((function(e,t,n){Br(e,t,n)})),zs=Ti((function(e,t,n,r){Br(e,t,n,r)})),js=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=vi(t,e),r||(r=t.length>1),t})),Li(e,no(e),n),r&&(n=sr(n,7,Qi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ns=eo((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Ls(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=St(no(e),(function(e){return[e]}));return t=ao(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Yi(As),Bs=Yi(Ms);function Gs(e){return null==e?[]:Wt(e,As(e))}var Us=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Ks(bs(e).toLowerCase())}function Ws(e){return(e=bs(e))&&e.replace(ye,Zt).replace(qe,"")}var qs=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=Mi("toLowerCase"),Ys=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Zs=Di((function(e,t,n){return e+(n?" ":"")+Ks(t)})),Xs=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Mi("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return Ze.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Js=Yr((function(e,t){try{return vt(e,i,t)}catch(e){return Ka(e)?e:new xe(e)}})),el=eo((function(e,t){return bt(t,(function(t){t=Io(t),ir(e,t,Ta(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Ni(),rl=Ni(!0);function il(e){return e}function ol(e){return Dr("function"==typeof e?e:sr(e,1))}var al=Yr((function(e,t){return function(n){return Pr(n,e,t)}})),sl=Yr((function(e,t){return function(n){return Pr(e,n,t)}}));function ll(e,t,n){var r=As(t),i=xr(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,As(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return bt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})})),e}function cl(){}var ul=Gi(St),dl=Gi(xt),pl=Gi(Pt);function fl(e){return bo(e)?Nt(Io(e)):function(e){return function(t){return Er(t,e)}}(e)}var hl=Hi(),ml=Hi(!0);function gl(){return[]}function vl(){return!1}var yl,bl=Bi((function(e,t){return e+t}),0),wl=Vi("ceil"),xl=Bi((function(e,t){return e/t}),1),El=Vi("floor"),_l=Bi((function(e,t){return e*t}),1),Ol=Vi("round"),Sl=Bi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=La,Fn.assign=ws,Fn.assignIn=xs,Fn.assignInWith=Es,Fn.assignWith=_s,Fn.at=Os,Fn.before=Pa,Fn.bind=Ta,Fn.bindAll=el,Fn.bindKey=Ra,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Fn.chain=fa,Fn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:vn(ms(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(un(o/t));a<o;)l[s++]=ti(e,a,a+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ct(qa(n)?ki(n):[n],gr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new ke(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(vt(i[0],this,n))return vt(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=As(e);return function(n){return lr(n,e,t)}}(sr(e,1))},Fn.constant=tl,Fn.countBy=ga,Fn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var o=Zi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,r){var o=Zi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.debounce=Aa,Fn.defaults=Ss,Fn.defaultsDeep=Cs,Fn.defer=Ma,Fn.delay=Da,Fn.difference=Go,Fn.differenceBy=Uo,Fn.differenceWith=Ho,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:ms(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:ms(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!0):[]},Fn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ms(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ms(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(qa(e)?Et:mr)(e,ao(t,3))},Fn.flatMap=function(e,t){return gr(Oa(e,t),1)},Fn.flatMapDeep=function(e,t){return gr(Oa(e,t),u)},Fn.flatMapDepth=function(e,t,n){return n=n===i?1:ms(n),gr(Oa(e,t),n)},Fn.flatten=Vo,Fn.flattenDeep=function(e){return null!=e&&e.length?gr(e,u):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:ms(t)):[]},Fn.flip=function(e){return Zi(e,512)},Fn.flow=nl,Fn.flowRight=rl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:xr(e,As(e))},Fn.functionsIn=function(e){return null==e?[]:xr(e,Ms(e))},Fn.groupBy=xa,Fn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Fn.intersection=Yo,Fn.intersectionBy=Zo,Fn.intersectionWith=Xo,Fn.invert=Ps,Fn.invertBy=Ts,Fn.invokeMap=Ea,Fn.iteratee=ol,Fn.keyBy=_a,Fn.keys=As,Fn.keysIn=Ms,Fn.map=Oa,Fn.mapKeys=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Ir(sr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Fn.memoize=za,Fn.merge=Ds,Fn.mergeWith=zs,Fn.method=al,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=ja,Fn.nthArg=function(e){return e=ms(e),Yr((function(t){return Gr(t,e)}))},Fn.omit=js,Fn.omitBy=function(e,t){return Is(e,ja(ao(t)))},Fn.once=function(e){return Pa(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Fn.over=ul,Fn.overArgs=Na,Fn.overEvery=dl,Fn.overSome=pl,Fn.partial=Ia,Fn.partialRight=Fa,Fn.partition=Sa,Fn.pick=Ns,Fn.pickBy=Is,Fn.property=fl,Fn.propertyOf=function(e){return function(t){return null==e?i:Er(e,t)}},Fn.pull=Qo,Fn.pullAll=Jo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,ao(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},Fn.pullAt=ea,Fn.range=hl,Fn.rangeRight=ml,Fn.rearg=Ba,Fn.reject=function(e,t){return(qa(e)?Et:mr)(e,ja(ao(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new ke(o);return Yr(e,t=t===i?t:ms(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ms(t),(qa(e)?Kn:Xr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Kr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Kr(e,t,n,r)},Fn.shuffle=function(e){return(qa(e)?Qn:ei)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===i?r:ms(n)),ti(e,t,n)):[]},Fn.sortBy=Ca,Fn.sortedUniq=function(e){return e&&e.length?oi(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Qt(e)?bi(an(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:vn(ms(t),0),Yr((function(n){var r=n[t],i=bi(n,0,t);return r&&Ct(i,r),vt(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:ms(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:ms(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?di(e,ao(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?di(e,ao(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ke(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=ha,Fn.toArray=fs,Fn.toPairs=Fs,Fn.toPairsIn=Bs,Fn.toPath=function(e){return qa(e)?St(e,Io):cs(e)?[e]:ki(No(bs(e)))},Fn.toPlainObject=ys,Fn.transform=function(e,t,n){var r=qa(e),i=r||Za(e)||us(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Qa(o)?Bn(Ve(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return La(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=ia,Fn.uniq=function(e){return e&&e.length?li(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?li(e,ao(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?li(e,i,t):[]},Fn.unset=function(e,t){return null==e||ci(e,t)},Fn.unzip=oa,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:ui(e,t,gi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,gi(n),r)},Fn.values=Gs,Fn.valuesIn=function(e){return null==e?[]:Wt(e,Ms(e))},Fn.without=sa,Fn.words=Qs,Fn.wrap=function(e,t){return Ia(gi(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=ua,Fn.zip=da,Fn.zipObject=function(e,t){return hi(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Kr)},Fn.zipWith=pa,Fn.entries=Fs,Fn.entriesIn=Bs,Fn.extend=xs,Fn.extendWith=Es,ll(Fn,Fn),Fn.add=bl,Fn.attempt=Js,Fn.camelCase=Us,Fn.capitalize=Hs,Fn.ceil=wl,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))==n?n:0),t!==i&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Fn.clone=function(e){return sr(e,4)},Fn.cloneDeep=function(e){return sr(e,5)},Fn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,As(t))},Fn.deburr=Ws,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=xl,Fn.endsWith=function(e,t,n){e=bs(e),t=si(t);var r=e.length,o=n=n===i?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=Ga,Fn.escape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(V,Xt):e},Fn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=qa(e)?xt:fr;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},Fn.find=va,Fn.findIndex=Wo,Fn.findKey=function(e,t){return Rt(e,ao(t,3),br)},Fn.findLast=ya,Fn.findLastIndex=qo,Fn.findLastKey=function(e,t){return Rt(e,ao(t,3),wr)},Fn.floor=El,Fn.forEach=ba,Fn.forEachRight=wa,Fn.forIn=function(e,t){return null==e?e:vr(e,ao(t,3),Ms)},Fn.forInRight=function(e,t){return null==e?e:yr(e,ao(t,3),Ms)},Fn.forOwn=function(e,t){return e&&br(e,ao(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,ao(t,3))},Fn.get=ks,Fn.gt=Ua,Fn.gte=Ha,Fn.has=function(e,t){return null!=e&&ho(e,t,Cr)},Fn.hasIn=Ls,Fn.head=$o,Fn.identity=il,Fn.includes=function(e,t,n,r){e=$a(e)?e:Gs(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Mt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(r+i,0)),Mt(e,t,i)},Fn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Fn.invoke=Rs,Fn.isArguments=Wa,Fn.isArray=qa,Fn.isArrayBuffer=Va,Fn.isArrayLike=$a,Fn.isArrayLikeObject=Ya,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Or(e)==v},Fn.isBuffer=Za,Fn.isDate=Xa,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Fn.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||us(e)||Wa(e)))return!e.length;var t=fo(e);if(t==E||t==k)return!e.size;if(Eo(e))return!zr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Rr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Rr(e,t,i,n):!!r},Fn.isError=Ka,Fn.isFinite=function(e){return"number"==typeof e&&hn(e)},Fn.isFunction=Qa,Fn.isInteger=Ja,Fn.isLength=es,Fn.isMap=rs,Fn.isMatch=function(e,t){return e===t||Ar(e,t,lo(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ar(e,t,lo(t),n)},Fn.isNaN=function(e){return is(e)&&e!=+e},Fn.isNative=function(e){if(xo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=is,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=os,Fn.isRegExp=as,Fn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=d},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=us,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return ns(e)&&fo(e)==T},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Or(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=qs,Fn.last=Ko,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ms(n))<0?vn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):At(e,zt,o,!0)},Fn.lowerCase=Vs,Fn.lowerFirst=$s,Fn.lt=ds,Fn.lte=ps,Fn.max=function(e){return e&&e.length?hr(e,il,Sr):i},Fn.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Sr):i},Fn.mean=function(e){return jt(e,il)},Fn.meanBy=function(e,t){return jt(e,ao(t,2))},Fn.min=function(e){return e&&e.length?hr(e,il,jr):i},Fn.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),jr):i},Fn.stubArray=gl,Fn.stubFalse=vl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=_l,Fn.nth=function(e,t){return e&&e.length?Gr(e,ms(t)):i},Fn.noConflict=function(){return ot._===this&&(ot._=Ie),this},Fn.noop=cl,Fn.now=ka,Fn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(dn(i),n)+e+Ui(un(i),n)},Fn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Ui(t-r,n):e},Fn.padStart=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Ui(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return yn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Vr(e,t)},Fn.reduce=function(e,t,n){var r=qa(e)?kt:Ft,i=arguments.length<3;return r(e,ao(t,4),n,i,dr)},Fn.reduceRight=function(e,t,n){var r=qa(e)?Lt:Ft,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Fn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ms(t),$r(bs(e),t)},Fn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Io(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},Fn.round=Ol,Fn.runInContext=e,Fn.sample=function(e){return(qa(e)?Xn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if($a(e))return ls(e)?on(e):e.length;var t=fo(e);return t==E||t==k?e.size:zr(e).length},Fn.snakeCase=Ys,Fn.some=function(e,t,n){var r=qa(e)?Pt:ni;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},Fn.sortedIndex=function(e,t){return ri(e,t)},Fn.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Ga(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ri(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Ga(e[n],t))return n}return-1},Fn.startCase=Zs,Fn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(ms(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Fn.subtract=Sl,Fn.sum=function(e){return e&&e.length?Bt(e,il):0},Fn.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&yo(e,t,n)&&(t=i),e=bs(e),t=Es({},t,r,Xi);var o,a,s=Es({},t.imports,r.imports,Xi),l=As(s),c=Wt(s,l),u=0,d=t.interpolate||be,p="__p += '",f=Se((t.escape||be).source+"|"+d.source+"|"+(d===K?de:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ke+"]")+"\n";e.replace(f,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(u,l).replace(we,Kt),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Me.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Js((function(){return Ee(l,h+"return "+p).apply(i,c)}));if(g.source=p,Ka(g))throw g;return g},Fn.times=function(e,t){if((e=ms(e))<1||e>d)return[];var n=f,r=yn(e,f);t=ao(t),e-=f;for(var i=Gt(r,t);++n<e;)t(n);return i},Fn.toFinite=hs,Fn.toInteger=ms,Fn.toLength=gs,Fn.toLower=function(e){return bs(e).toLowerCase()},Fn.toNumber=vs,Fn.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,d):0===e?e:0},Fn.toString=bs,Fn.toUpper=function(e){return bs(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=bs(e))&&(n||t===i))return Ut(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return bi(r,Vt(r,o),$t(r,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,0,$t(r,an(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,Vt(r,an(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?ms(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=bs(e)).length;if(Qt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var c=s?bi(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),as(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Se(o.source,bs(pe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===i?l:p)}}else if(e.indexOf(si(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Fn.unescape=function(e){return(e=bs(e))&&$.test(e)?e.replace(q,ln):e},Fn.uniqueId=function(e){var t=++De;return bs(e)+t},Fn.upperCase=Xs,Fn.upperFirst=Ks,Fn.each=ba,Fn.eachRight=wa,Fn.first=$o,ll(Fn,(yl={},br(Fn,(function(e,t){Me.call(Fn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),Fn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),bt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===i?1:vn(ms(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(il)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Pr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(ja(ao(e)))},Hn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},br(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,c=s[0],u=l||qa(t),d=function(e){var t=o.apply(Fn,Ct([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=l&&!f;if(!a&&u){t=m?t:new Hn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:i}),new Un(g,p)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),br(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Me.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Ii(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ki(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=yn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return pi(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[p++]=g}return h},Fn.prototype.at=ma,Fn.prototype.chain=function(){return fa(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Un(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,at&&(Fn.prototype[at]=function(){return this}),Fn}();ot._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},733:(e,t,n)=>{var r=n(6738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},2436:(e,t,n)=>{var r=n(4073),i=n(9259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(1704),i=n(9259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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,o){for(var a,s,l=i(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},8018:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),f=n(901),h=r(n(1230)),m=r(n(6496)),g=r(n(5099)),v=r(n(835)),y=r(n(7339)),b=r(n(8310));function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}var x=n(4841).deepPurple[500],E=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(){var e;(0,o.default)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e=r.call.apply(r,[this].concat(n)),(0,d.default)((0,s.default)(e),"buildUrl",(function(t){var n=e.props.storagePath;return t?t.startsWith("http:")||t.startsWith("https:")?t:n+t.replace(/^\/+/,""):""})),(0,d.default)((0,s.default)(e),"getFallbackAvatar",(function(){var t=e.props,n=t.entityType,r=t.classes,i=t.backgroundColor,o=t.color,a=t.className,s=(0,v.default)(n);return p.default.createElement(f.Avatar,{className:(0,b.default)(a,r.avatar),style:{border:"2px solid ".concat(n.typeColor||x),backgroundColor:i||n.typeColor||x,color:o}},s&&s.charAt(0)||p.default.createElement(m.default,null))})),e}return(0,a.default)(i,[{key:"render",value:function(){var e=this.props,t=e.entityType,n=e.classes,r=e.className,i=t.typeIcon||t.typeImage;return i?p.default.createElement(f.Avatar,{className:(0,b.default)(r,n.avatar),style:{border:"2px solid ".concat(t.typeColor||x),backgroundColor:"#FFFFFF"},src:this.buildUrl(i)},this.getFallbackAvatar()):this.getFallbackAvatar()}}]),i}(p.PureComponent);(0,d.default)(E,"propTypes",{entityType:g.default.shape({typeColor:g.default.string,typeIcon:g.default.string,typeImage:g.default.string,label:g.default.string,uri:g.default.string}),className:g.default.string,classes:g.default.shape({avatar:g.default.string}),storagePath:g.default.string,backgroundColor:g.default.string,color:g.default.string}),(0,d.default)(E,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var _=(0,h.default)(y.default)(E);t.ZP=_},7339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},4660:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(8156)),o=r(n(5099)),a=r(n(3627)),s=r(n(9233)),l=r(n(4294)),c=r(n(5751)),u=r(n(8310));function d(e){var t=e.classes,n=e.title,r=e.message;return i.default.createElement("div",null,i.default.createElement("span",{className:t.errorTitle},n),i.default.createElement("span",{className:t.errorMessage},r))}d.defaultProps={title:c.default.text("Error:"),message:c.default.text("Something was wrong"),classes:{}},d.propTypes={title:o.default.string,message:o.default.string,classes:o.default.object};var p=function(e){var t,n=e.error,r=e.onClose,o=e.style,p=e.classes,f=e.className,h=c.default.text("Close");if(i.default.isValidElement(n))t=n;else{var m=n||{},g=m.title,v=m.message;t=i.default.createElement(d,{classes:p,title:g,message:v})}return i.default.createElement("div",{className:(0,u.default)(p.errorBlock,f),style:o},i.default.createElement("div",{className:p.descriptionBlock},t),i.default.createElement("div",{className:p.closeIconContainer},i.default.createElement(a.default,{title:h,placement:"bottom"},i.default.createElement(s.default,{onClick:r,"aria-label":h,size:"large"},i.default.createElement(l.default,null)))))};p.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),error:o.default.oneOfType([o.default.node,o.default.shape({title:o.default.string,message:o.default.string})]),style:o.default.object,onClose:o.default.func,className:o.default.oneOfType([o.default.string,o.default.object]),classes:o.default.object},p.defaultProps={classes:{}};var f=p;t.default=f},4176:(e,t,n)=>{"use strict";var r=n(1600),i=n(7425);t.ZP=void 0;var o=r(n(3100)),a=r(n(8870)),s=r(n(5297)),l=r(n(8230)),c=r(n(421)),u=r(n(1147)),d=r(n(6290)),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(8156)),f=r(n(5099)),h=n(72),m=r(n(4660)),g=r(n(1230)),v=r(n(1444));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var b=function(e){(0,l.default)(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,u.default)(t);if(n){var i=(0,u.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,c.default)(this,e)});function i(e){var t;return(0,o.default)(this,i),t=r.call(this,e),(0,d.default)((0,s.default)(t),"processAutoCloseInterval",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.autoCloseInterval&&(t.timer&&(clearTimeout(t.timer),t.timer=null),e&&(t.timer=setTimeout((function(){t.handleCloseErrorMessage()}),t.autoCloseInterval)))})),i.$$instance=(0,s.default)(t),t.handleCloseErrorMessage=t.handleCloseErrorMessage.bind((0,s.default)(t)),t.state={errors:[]},t}return(0,a.default)(i,[{key:"handleCloseErrorMessage",value:function(){var e=this.state.errors,t=e.length;this.setState({errors:e.slice(0,t-1)}),this.processAutoCloseInterval(t>1)}},{key:"autoCloseInterval",get:function(){return 1e3*(this.props.autoCloseInterval||0)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.classes,r=this.state.errors,i=r.length,o=r[i-1];return p.default.createElement(h.CSSTransitionGroup,{transitionName:{enter:n.errorContainerEnter,enterActive:n.errorContainerEnterActive,leave:n.errorContainerLeave,leaveActive:n.errorContainerLeaveActive,appear:n.errorContainerEnter,appearActive:n.errorContainerEnterActive},transitionAppearTimeout:600,transitionEnterTimeout:600,transitionLeaveTimeout:300,transitionAppear:!0},Boolean(i)&&p.default.createElement(m.default,{classes:n,key:"errorMessage".concat(i),onClose:this.handleCloseErrorMessage,error:o,className:t}))}}],[{key:"addError",value:function(e){i.$$instance&&(i.$$instance.setState({errors:i.$$instance.state.errors.concat(e)}),i.$$instance.processAutoCloseInterval())}}]),i}(p.PureComponent);b.propTypes={className:f.default.oneOfType([f.default.string,f.default.object]),classes:f.default.object,autoCloseInterval:f.default.number},b.defaultProps={classes:{}};var w=(0,g.default)(v.default)(b);t.ZP=w},1444:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(6290)),o="#FFFFFF";t.default=function(e){var t;return{errorContainer:{zIndex:2},errorContainerEnter:{opacity:0},errorContainerEnterActive:{opacity:1,transition:"opacity 600ms ease-in"},errorContainerLeave:{opacity:1},errorContainerLeaveActive:{opacity:0,transition:"opacity 300ms ease-in"},errorBlock:(t={zIndex:2,color:o,position:"absolute",display:"flex",left:346,top:64,right:90,background:"linear-gradient(180deg, ".concat("#E54C4C"," 0%, ").concat("#F16262"," 100%)"),minHeight:48,justifyContent:"space-between",alignItems:"baseline",boxShadow:"0 0 24px 0 rgba(0,0,0,0.22)"},(0,i.default)(t,e.breakpoints.down("md"),{left:0,right:0}),(0,i.default)(t,e.breakpoints.down("lg"),{left:288,right:32}),(0,i.default)(t,e.breakpoints.down("xl"),{left:336,right:80}),(0,i.default)(t,e.breakpoints.up("xl"),{left:456,right:200}),t),descriptionBlock:{fontSize:13,padding:"20px 32px",alignSelf:"center",overflow:"hidden",textOverflow:"ellipsis"},errorTitle:{fontWeight:"bold",marginRight:7},errorMessage:{},closeIconContainer:{position:"relative","& button":{color:o,marginTop:5}}}}},835:(e,t,n)=>{"use strict";var r=n(1600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?(0,i.default)(e,"label")||(0,i.default)(e,"uri","").slice((0,i.default)(e,"uri","").lastIndexOf("/")+1):null};var i=r(n(2579))},4129:(e,t,n)=>{"use strict";t.__esModule=!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},i=c(n(8156)),o=c(n(5099)),a=c(n(2205)),s=c(n(9490)),l=n(9685);function c(e){return e&&e.__esModule?e:{default:e}}function u(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}l.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var p=function(e){function t(){var n,r;u(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=d(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return i.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},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),t.prototype.render=function(){return i.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(i.default.Component);p.displayName="CSSTransitionGroup",p.propTypes={},p.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=p,e.exports=t.default},9490:(e,t,n)=>{"use strict";t.__esModule=!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},i=p(n(2196)),o=p(n(4812)),a=p(n(6463)),s=n(4596),l=p(n(8156)),c=p(n(5099)),u=n(7111),d=n(9685);function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 m=[];s.transitionEnd&&m.push(s.transitionEnd),s.animationEnd&&m.push(s.animationEnd),c.default.node,d.nameShape.isRequired,c.default.bool,c.default.bool,c.default.bool,c.default.number,c.default.number,c.default.number;var g=function(e){function t(){var n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(o))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},h(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),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,u.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",c=null,d=void 0;(0,i.default)(r,a),this.queueClassAndNode(l,r);var p=function(e){e&&e.target!==r||(clearTimeout(c),d&&d(),(0,o.default)(r,a),(0,o.default)(r,l),d&&d(),t&&t())};n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):s.transitionEnd&&(d=function(e,t){return m.length?m.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){m.length&&m.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,p))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)((function(){return n.flushClassNameAndNodeQueue()})))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,(0,i.default)(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);g.displayName="CSSTransitionGroupChild",g.propTypes={},t.default=g,e.exports=t.default},2205:(e,t,n)=>{"use strict";t.__esModule=!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},i=l(n(8994)),o=l(n(8156)),a=l(n(5099)),s=(l(n(2564)),n(276));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var c=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=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,e.call(this,n,i));return o.performAppear=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(o._handleDoneAppearing.bind(o,e,t)):o._handleDoneAppearing(e,t)},o._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performEnter=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(o._handleDoneEntering.bind(o,e,t)):o._handleDoneEntering(e,t)},o._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performLeave=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(o._handleDoneLeaving.bind(o,e,t)):o._handleDoneLeaving(e,t)},o._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)?o.keysToEnter.push(e):o.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}}))},o.childRefs=Object.create(null),o.state={children:(0,s.getChildMapping)(n.children)},o}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),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach((function(t){return e.performEnter(t,e.childRefs[t])}));var n=this.keysToLeave;this.keysToLeave=[],n.forEach((function(t){return e.performLeave(t,e.childRefs[t])}))},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,i.default)(r.ref,l)),t.push(o.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,o.default.createElement(this.props.component,s,t)},t}(o.default.Component);c.displayName="TransitionGroup",c.propTypes={},c.defaultProps={component:"span",childFactory:function(e){return e}},t.default=c,e.exports=t.default},72:(e,t,n)=>{"use strict";var r=o(n(4129)),i=o(n(2205));function o(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:i.default,CSSTransitionGroup:r.default}},276:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,(function(e){return e})).forEach((function(e){t[e.key]=e})),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s};var r=n(8156)},9685:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},i(n(8156));var r=i(n(5099));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},1950:(e,t,n)=>{"use strict";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},i=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(8156),a=l(o),s=l(n(5099));function l(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},h=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.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},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),i(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||f(),prevId:n}:null}}]),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=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}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},1837:(e,t,n)=>{"use strict";n(7320);var r=n(8156),i=60103;if("function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},6475:(e,t)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://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")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var v=!1,y=null,b=-1,w=5,x=0;o=function(){return t.unstable_now()>=x},a=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"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,_=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(e){throw _.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,_.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},i=function(){h(b),b=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],P=[],T=1,R=null,A=3,M=!1,D=!1,z=!1;function j(e){for(var t=S(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,O(L,t)}t=S(P)}}function N(e){if(z=!1,j(e),!D)if(null!==S(L))D=!0,n(I);else{var t=S(P);null!==t&&r(N,t.startTime-e)}}function I(e,n){D=!1,z&&(z=!1,i()),M=!0;var a=A;try{for(j(n),R=S(L);null!==R&&(!(R.expirationTime>n)||e&&!o());){var s=R.callback;if(null!==s){R.callback=null,A=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===S(L)&&C(L),j(n)}else C(L);R=S(L)}if(null!==R)var c=!0;else{var u=S(P);null!==u&&r(N,u.startTime-n),c=!1}return c}finally{R=null,A=a,M=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||M||(D=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(L)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),l=s;return e={id:T++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,O(P,e),null===S(L)&&e===S(P)&&(z?i():z=!0,r(N,l-s))):(e.sortIndex=a,O(L,e),D||M||(D=!0,n(I))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=S(L);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},1250:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1181),s=o(n(2383)),l=n(8586),c=n(432),u=1.5,d=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return i(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"==typeof e.x&&(t.x=e.x),"number"==typeof e.y&&(t.y=e.y),"number"==typeof e.angle&&(t.angle=e.angle),"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.angle&&(this.angle=t.angle),"number"==typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.updateState=function(e){return this.setState(e(this.getState())),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var i=Object.assign({},a.ANIMATE_DEFAULTS,t),o=this.validateState(e),c="function"==typeof i.easing?i.easing:s.default[i.easing],u=Date.now(),d=this.getState(),p=function(){var e=(Date.now()-u)/i.duration;if(e>=1)return r.nextFrame=null,r.setState(o),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var t=c(e),n={};"number"==typeof o.x&&(n.x=d.x+(o.x-d.x)*t),"number"==typeof o.y&&(n.y=d.y+(o.y-d.y)*t),"number"==typeof o.angle&&(n.angle=d.angle+(o.angle-d.angle)*t),"number"==typeof o.ratio&&(n.ratio=d.ratio+(o.ratio-d.ratio)*t),r.setState(n),r.nextFrame=(0,l.requestFrame)(p)};this.nextFrame?((0,l.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,l.requestFrame)(p)):p(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||u)},e)}else this.animate({ratio:this.ratio/u})},t.prototype.animatedUnzoom=function(e){if(e){if("number"==typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||u)},e)}else this.animate({ratio:this.ratio*u})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(c.TypedEventEmitter);t.default=d},8231:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var a=n(432);function s(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function l(e,t){var n=o(o({},s(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}function c(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function u(e){if(void 0!==e.deltaY)return-3*e.deltaY/360;if(void 0!==e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getPosition=s,t.getMouseCoords=l,t.getWheelCoords=function(e,t){return o(o({},l(e,t)),{delta:u(e)})},t.getTouchesArray=c,t.getTouchCoords=function(e,t){return{touches:c(e.touches).map((function(e){return s(e,t)})),original:e}},t.getWheelDelta=u;var d=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return i(t,e),t}(a.TypedEventEmitter);t.default=d},3834:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(8231)),c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return i(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,l.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,l.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){if(0===e.button){this.startCameraState=this.renderer.getCamera().getState();var t=(0,l.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,l.getPosition)(e,this.container),i=r.x,o=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===i&&this.lastMouseY===o||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,l.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),!n.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),i=(0,l.getPosition)(e,this.container),o=i.x,a=i.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),c=this.renderer.viewportToFramedGraph({x:o,y:a}),u=s.x-c.x,d=s.y-c.y,p=r.getState(),f=p.x+u,h=p.y+d;r.setState({x:f,y:h}),this.lastMouseX=o,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,l.getWheelDelta)(e);if(n){var r=(0,l.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var i=n>0?1/1.7:1.7,o=this.renderer.getCamera(),a=o.getBoundedRatio(o.getState().ratio*i),s=n>0?1:-1,c=Date.now();this.currentWheelDirection===s&&this.lastWheelTriggerTime&&c-this.lastWheelTriggerTime<50||(o.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=c)}}}},t.prototype.handleOut=function(){},t}(l.default);t.default=c},916:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},l=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=s(n(8231)),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.hasMoved=!1,r.touchMode=0,r.startTouchesPositions=[],r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return i(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var i=n||t.touches[0],o=new MouseEvent(e,{clientX:i.clientX,clientY:i.clientY,altKey:t.altKey,ctrlKey:t.ctrlKey});o.isFakeSigmaMouseEvent=!0,(r||this.container).dispatchEvent(o)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,c.getTouchesArray)(e.touches);if(this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,c.getPosition)(e,t.container)})),this.lastTouches=n,this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=l(this.startTouchesPositions,2),i=r[0],o=i.x,a=i.y,s=r[1],u=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,u-o),this.startTouchesDistance=Math.sqrt(Math.pow(u-o,2)+Math.pow(d-a,2))}this.emit("touchdown",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouches&&this.lastTouches.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouches[0],document),this.hasMoved||this.dispatchRelatedMouseEvent("click",e,this.lastTouches[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,c.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=(0,c.getTouchesArray)(e.touches),i=r.map((function(e){return(0,c.getPosition)(e,n.container)}));if(this.lastTouches=r,this.lastTouchesPositions=i,this.hasMoved||(this.hasMoved=i.some((function(e,t){var r=n.startTouchesPositions[t];return e.x!==r.x||e.y!==r.y}))),this.hasMoved){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200);var o=this.renderer.getCamera(),a=this.startCameraState;switch(this.touchMode){case 1:var s=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),u=s.x,d=s.y,p=this.renderer.viewportToFramedGraph(i[0]),f=p.x,h=p.y;o.setState({x:a.x+u-f,y:a.y+d-h});break;case 2:var m={},g=i[0],v=g.x,y=g.y,b=i[1],w=b.x,x=b.y,E=Math.atan2(x-y,w-v)-this.startTouchesAngle,_=Math.hypot(x-y,w-v)/this.startTouchesDistance,O=o.getBoundedRatio(a.ratio/_);m.ratio=O,m.angle=a.angle+E;var S=this.getDimensions(),C=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:a}),k=Math.min(S.width,S.height),L=k/S.width,P=O/k;h=y-k/2/(k/S.height),f=(t=l([(f=v-k/2/L)*Math.cos(-m.angle)-h*Math.sin(-m.angle),h*Math.cos(-m.angle)+f*Math.sin(-m.angle)],2))[0],h=t[1],m.x=C.x-f*P,m.y=C.y+h*P,o.setState(m)}this.emit("touchmove",(0,c.getTouchCoords)(e,this.container))}}},t}(c.default);t.default=u},2306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var i=new n(e,t),o=this.getIndex(r),a=this.cells[o];a||(a=[],this.cells[o]=a),a.push(i)},e.prototype.organize=function(){for(var e in this.cells)this.cells[e].sort(n.compare)},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,i=Math.ceil(r),o=[];for(var a in this.cells)for(var s=this.cells[a],l=0;l<Math.min(i,s.length);l++)o.push(s[l].key);return o},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,o=[];return t.forEachEdge((function(e,t,a,s){(a===n||s===n||r.has(a)||r.has(s)||i.has(a)&&i.has(s))&&o.push(e)})),o}},9316:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var i=r(n(8884)),o=!1;function a(e){return e.x1===e.x2||e.y1===e.y2}function s(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,i={x:e.x1,y:e.y1},o={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},s={x:e.x2+n,y:e.y2+r},l=Math.min(i.x,o.x,a.x,s.x),c=Math.max(i.x,o.x,a.x,s.x),u=Math.min(i.y,o.y,a.y,s.y);return{x1:l,y1:u,x2:c,y2:u,height:Math.max(i.y,o.y,a.y,s.y)-u}}function l(e,t,n,r,i,o,a){return e<r+o&&e+n>r&&t<i+a&&t+n>i}function c(e,t,n,r,i,o,a,s){return e<i+a&&e+n>i&&t<o+s&&t+r>o}function u(e,t,n,r,i,o){var a=e<n+i/2;return t<r+o/2?a?1:2:a?3:4}t.isRectangleAligned=a,t.getCircumscribedAlignedRectangle=s,t.squareCollidesWithQuad=l,t.rectangleCollidesWithQuad=c;var d=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={})[5460]=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,i,a,s){for(var c=i-s,u=a-s,d=2*s,p=0,f=0;;){if(p>=5)return n[f]=n[f]||[],void n[f].push(r);var h=4*f+4,m=4*f+8,g=4*f+12,v=4*f+16,y=l(c,u,d,t[h+0],t[h+1],t[h+2],t[h+3]),b=l(c,u,d,t[m+0],t[m+1],t[m+2],t[m+3]),w=l(c,u,d,t[g+0],t[g+1],t[g+2],t[g+3]),x=l(c,u,d,t[v+0],t[v+1],t[v+2],t[v+3]),E=[y,b,w,x].reduce((function(e,t){return t?e+1:e}),0);if(0===E&&0===p)return n[5460].push(r),void(!o&&n[5460].length>=5&&(o=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===E)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(p,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(3===E)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(p,", key: ").concat(r,", x: ").concat(i,", y: ").concat(a,", size: ").concat(s,")."));if(E>1)return n[f]=n[f]||[],void n[f].push(r);p++,y&&(f=h),b&&(f=m),w&&(f=g),x&&(f=v)}}(0,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),i=n.pop(),o=4*i+4,a=4*i+8,s=4*i+12,l=4*i+16,c=t[i+0],u=t[i+1],d=t[i+2]/2,p=t[i+3]/2;t[o+0]=c,t[o+1]=u,t[o+2]=d,t[o+3]=p,t[a+0]=c+d,t[a+1]=u,t[a+2]=d,t[a+3]=p,t[s+0]=c,t[s+1]=u+p,t[s+2]=d,t[s+3]=p,t[l+0]=c+d,t[l+1]=u+p,t[l+2]=d,t[l+3]=p,r<4&&(n.push(l,r+1),n.push(s,r+1),n.push(a,r+1),n.push(o,r+1))}}(0,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={})[5460]=[],e),this},e.prototype.point=function(e,t){var n=this.containers[5460].slice(),r=0,o=0;do{this.containers[r]&&(0,i.default)(n,this.containers[r]),r=4*r+4*u(e,t,this.data[r+0],this.data[r+1],this.data[r+2],this.data[r+3]),o++}while(o<=5);return n},e.prototype.rectangle=function(e,t,n,r,o){var l=this.lastRectangle;return l&&e===l.x1&&n===l.x2&&t===l.y1&&r===l.y2&&o===l.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:r,height:o},a(this.lastRectangle)||(this.lastRectangle=s(this.lastRectangle)),this.cache=function(e,t,n,r,o,a,s){for(var l,u=[0,0],d=[];u.length;){var p=u.pop(),f=u.pop();if((l=n[f])&&(0,i.default)(d,l),!(p>=5)){var h=4*f+4,m=4*f+8,g=4*f+12,v=4*f+16,y=c(r,o,a,s,t[h+0],t[h+1],t[h+2],t[h+3]),b=c(r,o,a,s,t[m+0],t[m+1],t[m+2],t[m+3]),w=c(r,o,a,s,t[g+0],t[g+1],t[g+2],t[g+3]),x=c(r,o,a,s,t[v+0],t[v+1],t[v+2],t[v+3]);y&&u.push(h,p+1),b&&u.push(m,p+1),w&&u.push(g,p+1),x&&u.push(v,p+1)}}return d}(0,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-r),o),(0,i.default)(this.cache,this.containers[5460])),this.cache},e}();t.default=d},9358:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var i=r(n(8953));t.Sigma=i.default;var o=r(n(1250));t.Camera=o.default;var a=r(n(9316));t.QuadTree=a.default;var s=r(n(3834));t.MouseCaptor=s.default,t.default=i.default},284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o=i.edgeLabelSize,a=i.edgeLabelFont,s=i.edgeLabelWeight,l=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,c=t.label;if(c){e.fillStyle=l,e.font="".concat(s," ").concat(o,"px ").concat(a);var u,d,p=n.size,f=r.size,h=n.x,m=n.y,g=r.x,v=r.y,y=g-h,b=v-m,w=Math.sqrt(y*y+b*b);if(!(w<p+f)){u=((h+=y*p/w)+(g-=y*f/w))/2,d=((m+=b*p/w)+(v-=b*f/w))/2,y=g-h,b=v-m,w=Math.sqrt(y*y+b*b);var x,E=e.measureText(c).width;if(E>w){for(c+="…",E=e.measureText(c).width;E>w&&c.length>1;)c=c.slice(0,-2)+"…",E=e.measureText(c).width;if(c.length<4)return}x=y>0?b>0?Math.acos(y/w):Math.asin(b/w):b>0?Math.acos(y/w)+Math.PI:Math.asin(y/w)+Math.PI/2,e.save(),e.translate(u,d),e.rotate(x),e.fillText(c,-E/2,t.size/2+o),e.restore()}}}},4362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2193));t.default=function(e,t,n){var r=n.labelSize,o=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(o),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var s=e.measureText(t.label).width,l=Math.round(s+5),c=Math.round(r+4),u=Math.max(t.size,r/2)+2,d=Math.asin(c/2/u),p=Math.sqrt(Math.abs(Math.pow(u,2)-Math.pow(c/2,2)));e.beginPath(),e.moveTo(t.x+p,t.y+c/2),e.lineTo(t.x+u+l,t.y+c/2),e.lineTo(t.x+u+l,t.y-c/2),e.lineTo(t.x+p,t.y-c/2),e.arc(t.x,t.y,u,d,-d),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,i.default)(e,t,n)}},2193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,o=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(o," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},4488:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var o=function(e){function t(t,n,r,i,o){return e.call(this,t,n,r,i,o)||this}return i(t,e),t}(n(1549).AbstractProgram);t.AbstractEdgeProgram=o,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,i){this.programs.forEach((function(o){return o.process(e,t,n,r,i)}))},t}()}},1624:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var o=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i,o)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var s=t.getUniformLocation(a.program,"u_matrix");if(null===s)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=s;var l=t.getUniformLocation(a.program,"u_ratio");if(null===l)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=l;var c=t.getUniformLocation(a.program,"u_scale");if(null===c)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=c,a}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(1549).AbstractProgram);t.AbstractNodeProgram=o,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},1549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3451),i=function(){function e(e,t,n,i,o){this.array=new Float32Array,this.points=i,this.attributes=o,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=i},5696:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(4488),o=r(n(3193)),a=r(n(3653)),s=(0,i.createEdgeCompoundProgram)([a.default,o.default]);t.default=s},3193:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(577)),l=o(n(1604)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=o,n.bind(),n}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=27*i,s=o+27;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=t.size||1,u=e.x,d=e.y,p=t.x,f=t.y,h=(0,a.floatColor)(n.color),m=p-u,g=f-d,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var w=27*i,x=this.array;x[w++]=p,x[w++]=f,x[w++]=-y,x[w++]=-b,x[w++]=c,x[w++]=h,x[w++]=1,x[w++]=0,x[w++]=0,x[w++]=p,x[w++]=f,x[w++]=-y,x[w++]=-b,x[w++]=c,x[w++]=h,x[w++]=0,x[w++]=1,x[w++]=0,x[w++]=p,x[w++]=f,x[w++]=-y,x[w++]=-b,x[w++]=c,x[w++]=h,x[w++]=0,x[w++]=0,x[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(n(4488).AbstractEdgeProgram);t.default=c},3653:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4488),s=n(8586),l=o(n(3574)),c=o(n(3343)),u=function(e){function t(t){var n=e.call(this,t,l.default,c.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=o;var a=t.getUniformLocation(n.program,"u_correctionRatio");if(null===a)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=a,n.canUse32BitsIndices=(0,s.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=24*i,a=o+24;o<a;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,p=t.y,f=t.size||1,h=(0,s.floatColor)(n.color),m=d-c,g=p-u,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var w=24*i,x=this.array;x[w++]=c,x[w++]=u,x[w++]=y,x[w++]=b,x[w++]=h,x[w++]=0,x[w++]=c,x[w++]=u,x[w++]=-y,x[w++]=-b,x[w++]=h,x[w++]=0,x[w++]=d,x[w++]=p,x[w++]=y,x[w++]=b,x[w++]=h,x[w++]=f,x[w++]=d,x[w++]=p,x[w++]=-y,x[w++]=-b,x[w++]=h,x[w]=-f}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(a.AbstractEdgeProgram);t.default=u},5372:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(9843)),l=o(n(3343)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=o;var c=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===c)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=c,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return i(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=20*i,s=o+20;o<s;o++)this.array[o]=0;else{var l=n.size||1,c=e.x,u=e.y,d=t.x,p=t.y,f=(0,a.floatColor)(n.color),h=d-c,m=p-u,g=h*h+m*m,v=0,y=0;g&&(v=-m*(g=1/Math.sqrt(g))*l,y=h*g*l);var b=20*i,w=this.array;w[b++]=c,w[b++]=u,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=c,w[b++]=u,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=d,w[b++]=p,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=d,w[b++]=p,w[b++]=-v,w[b++]=-y,w[b]=f}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(n(4488).AbstractEdgeProgram);t.default=c},732:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(8586),s=o(n(1432)),l=o(n(6846)),c=function(e){function t(t){var n=e.call(this,t,s.default,l.default,1,4)||this;return n.bind(),n}return i(t,e),t.prototype.process=function(e,t,n){var r=this.array,i=1*n*4;if(t)return r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);var o=(0,a.floatColor)(e.color);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i]=o},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(n(1624).AbstractNodeProgram);t.default=c},1604:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n})()},577:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3574:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3343:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}\n";e.exports=n})()},9843:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasing effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n})()},6846:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(transparent, v_color, t);\n}\n";e.exports=n})()},1432:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>r});const r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n})()},3451:(e,t)=>{"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,i=t.createShader(r);if(null===i)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error("loadShader: error while compiling the shader:\n".concat(o,"\n").concat(n))}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,i=e.createProgram();if(null===i)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(i,t[n]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS))throw e.deleteProgram(i),new Error("loadProgram: error while linking the program.");return i}},9061:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSettings=t.validateSettings=t.DEFAULT_EDGE_PROGRAM_CLASSES=t.DEFAULT_NODE_PROGRAM_CLASSES=t.DEFAULT_SETTINGS=void 0;var i=n(8586),o=r(n(2193)),a=r(n(4362)),s=r(n(284)),l=r(n(732)),c=r(n(5372)),u=r(n(5696));t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:o.default,hoverRenderer:a.default,edgeLabelRenderer:s.default,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},t.DEFAULT_NODE_PROGRAM_CLASSES={circle:l.default},t.DEFAULT_EDGE_PROGRAM_CLASSES={arrow:u.default,line:c.default},t.validateSettings=function(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.resolveSettings=function(e){var n=(0,i.assign)({},t.DEFAULT_SETTINGS,e);return n.nodeProgramClasses=(0,i.assign)({},t.DEFAULT_NODE_PROGRAM_CLASSES,n.nodeProgramClasses),n.edgeProgramClasses=(0,i.assign)({},t.DEFAULT_EDGE_PROGRAM_CLASSES,n.edgeProgramClasses),n}},8953:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=s(n(8884)),c=s(n(1250)),u=s(n(3834)),d=s(n(9316)),p=n(432),f=n(8586),h=n(2306),m=n(9061),g=s(n(916)),v=n(2237),y=n(8073);function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var x=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;if(i.elements={},i.canvasContexts={},i.webGLContexts={},i.activeListeners={},i.quadtree=new d.default,i.labelGrid=new h.LabelGrid,i.nodeDataCache={},i.edgeDataCache={},i.nodesWithForcedLabels=[],i.edgesWithForcedLabels=[],i.nodeExtent={x:[0,1],y:[0,1]},i.matrix=(0,v.identity)(),i.invMatrix=(0,v.identity)(),i.correctionRatio=1,i.customBBox=null,i.normalizationFunction=(0,f.createNormalizationFunction)({x:[0,1],y:[0,1]}),i.cameraSizeRatio=1,i.width=0,i.height=0,i.pixelRatio=(0,f.getPixelRatio)(),i.displayedLabels=new Set,i.highlightedNodes=new Set,i.hoveredNode=null,i.hoveredEdge=null,i.renderFrame=null,i.renderHighlightedNodesFrame=null,i.needToProcess=!1,i.needToSoftProcess=!1,i.checkEdgesEventsFrame=null,i.nodePrograms={},i.nodeHoverPrograms={},i.edgePrograms={},i.settings=(0,m.resolveSettings)(r),(0,m.validateSettings)(i.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var o in i.graph=t,i.container=n,i.createWebGLContext("edges",{preserveDrawingBuffer:!0}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes"),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse"),i.webGLContexts){var a=i.webGLContexts[o];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var s in i.settings.nodeProgramClasses){var l=i.settings.nodeProgramClasses[s];i.nodePrograms[s]=new l(i.webGLContexts.nodes,i);var p=l;s in i.settings.nodeHoverProgramClasses&&(p=i.settings.nodeHoverProgramClasses[s]),i.nodeHoverPrograms[s]=new p(i.webGLContexts.hoverNodes,i)}for(var s in i.settings.edgeProgramClasses){var y=i.settings.edgeProgramClasses[s];i.edgePrograms[s]=new y(i.webGLContexts.edges,i)}return i.resize(),i.camera=new c.default,i.bindCameraHandlers(),i.mouseCaptor=new u.default(i.elements.mouse,i),i.touchCaptor=new g.default(i.elements.mouse,i),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.process(),i.render(),i}return i(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),i=o({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",i))||(n=r.getContext("webgl",i)),n||(n=r.getContext("experimental-webgl",i)),this.webGLContexts[e]=n,this},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.mouseIsOnNode=function(e,t,n){var r=e.x,i=e.y,o=t.x,a=t.y;return r>o-n&&r<o+n&&i>a-n&&i<a+n&&Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))<n},t.prototype.getQuadNodes=function(e){var t=this.viewportToFramedGraph(e);return this.quadtree.point(t.x,1-t.y)},t.prototype.getNodeAtPosition=function(e){for(var t=e.x,n=e.y,r=this.getQuadNodes(e),i=1/0,o=null,a=0,s=r.length;a<s;a++){var l=r[a],c=this.nodeDataCache[l],u=this.framedGraphToViewport(c),d=this.scaleSize(c.size);if(!c.hidden&&this.mouseIsOnNode(e,u,d)){var p=Math.sqrt(Math.pow(t-u.x,2)+Math.pow(n-u.y,2));p<i&&(i=p,o=l)}}return o},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(t){var n={event:t,preventSigmaDefault:function(){t.preventSigmaDefault()}},r=e.getNodeAtPosition(t);if(r&&e.hoveredNode!==r&&!e.nodeDataCache[r].hidden)return e.hoveredNode&&e.emit("leaveNode",o(o({},n),{node:e.hoveredNode})),e.hoveredNode=r,e.emit("enterNode",o(o({},n),{node:r})),void e.scheduleHighlightedNodesRender();if(e.hoveredNode){var i=e.nodeDataCache[e.hoveredNode],a=e.framedGraphToViewport(i),s=e.scaleSize(i.size);if(!e.mouseIsOnNode(t,a,s)){var l=e.hoveredNode;return e.hoveredNode=null,e.emit("leaveNode",o(o({},n),{node:l})),void e.scheduleHighlightedNodesRender()}}!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(n):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(n),e.checkEdgesEventsFrame=null}))))};var t=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){n.preventSigmaDefault()}},i=n.original.isFakeSigmaMouseEvent?e.getNodeAtPosition(n):e.hoveredNode;if(i)return e.emit("".concat(t,"Node"),o(o({},r),{node:i}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var a=e.getEdgeAtPoint(n.x,n.y);if(a)return e.emit("".concat(t,"Edge"),o(o({},r),{edge:a}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=t("click"),this.activeListeners.handleRightClick=t("rightClick"),this.activeListeners.handleDoubleClick=t("doubleClick"),this.activeListeners.handleWheel=t("wheel"),this.activeListeners.handleDown=t("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.dropNodeGraphUpdate=function(t){delete e.nodeDataCache[t.key],e.hoveredNode===t.key&&(e.hoveredNode=null),e.activeListeners.graphUpdate()},this.activeListeners.dropEdgeGraphUpdate=function(t){delete e.edgeDataCache[t.key],e.hoveredEdge===t.key&&(e.hoveredEdge=null),e.activeListeners.graphUpdate()},this.activeListeners.clearEdgesGraphUpdate=function(){e.edgeDataCache={},e.hoveredEdge=null,e.activeListeners.graphUpdate()},this.activeListeners.clearGraphUpdate=function(){e.nodeDataCache={},e.hoveredNode=null,e.activeListeners.clearEdgesGraphUpdate()},t.on("nodeAdded",this.activeListeners.graphUpdate),t.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.graphUpdate),t.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),t.on("cleared",this.activeListeners.clearGraphUpdate),this},t.prototype.unbindGraphHandlers=function(){var e=this.graph;e.removeListener("nodeAdded",this.activeListeners.graphUpdate),e.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.graphUpdate),e.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),e.removeListener("cleared",this.activeListeners.clearGraphUpdate)},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",o(o({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",o(o({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,i=this,o=this.edgeDataCache,s=this.nodeDataCache;if(!(0,y.isPixelColored)(this.webGLContexts.edges,e*this.pixelRatio,t*this.pixelRatio))return null;var l=this.viewportToGraph({x:e,y:t}),c=l.x,u=l.y,d=0;if(this.graph.someEdge((function(e,t,n,r,a,l){var c=a.x,u=a.y,p=l.x,f=l.y;if(o[e].hidden||s[n].hidden||s[r].hidden)return!1;if(c!==p||u!==f){var h=Math.sqrt(Math.pow(p-c,2)+Math.pow(f-u,2)),m=i.graphToViewport({x:c,y:u}),g=m.x,v=m.y,y=i.graphToViewport({x:p,y:f}),b=y.x,w=y.y,x=Math.sqrt(Math.pow(b-g,2)+Math.pow(w-v,2));return d=h/x,!0}})),!d)return null;var p=this.graph.filterEdges((function(e,t,n,r,a,l){return!(o[e].hidden||s[n].hidden||s[r].hidden)&&(!!(0,y.doEdgeCollideWithPoint)(c,u,a.x,a.y,l.x,l.y,o[e].size*d/i.cameraSizeRatio)||void 0)}));if(0===p.length)return null;var f=p[p.length-1],h=-1/0;try{for(var m=a(p),g=m.next();!g.done;g=m.next()){var v=g.value,b=this.graph.getEdgeAttribute(v,"zIndex");b>=h&&(f=v,h=b)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return f},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,i=this.getDimensions(),o=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(i,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,f.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var s=new c.default,l=(0,f.matrixFromCamera)(s.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var u={},d=n.nodes(),p=0,h=d.length;p<h;p++){var m=d[p],g=Object.assign({},n.getNodeAttributes(m));r.nodeReducer&&(g=r.nodeReducer(m,g)),u[(y=b(this.settings,m,g)).type]=(u[y.type]||0)+1,this.nodeDataCache[m]=y,this.normalizationFunction.applyTo(y),y.forceLabel&&this.nodesWithForcedLabels.push(m),this.settings.zIndex&&(y.zIndex<o[0]&&(o[0]=y.zIndex),y.zIndex>o[1]&&(o[1]=y.zIndex))}for(var v in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for node type "'.concat(v,'"!'));e||this.nodePrograms[v].allocate(u[v]||0),u[v]=0}for(this.settings.zIndex&&o[0]!==o[1]&&(d=(0,f.zIndexOrdering)(o,(function(e){return t.nodeDataCache[e].zIndex}),d)),p=0,h=d.length;p<h;p++){m=d[p];var y=this.nodeDataCache[m];this.quadtree.add(m,y.x,1-y.y,y.size/this.width),"string"!=typeof y.label||y.hidden||this.labelGrid.add(m,y.size,this.framedGraphToViewport(y,{matrix:l}));var x=this.nodePrograms[y.type];if(!x)throw new Error('Sigma: could not find a suitable program for node type "'.concat(y.type,'"!'));x.process(y,y.hidden,u[y.type]++),y.highlighted&&!y.hidden&&this.highlightedNodes.add(m)}this.labelGrid.organize();var E={},_=n.edges();for(p=0,h=_.length;p<h;p++){var O=_[p];g=Object.assign({},n.getEdgeAttributes(O)),r.edgeReducer&&(g=r.edgeReducer(O,g)),E[(y=w(this.settings,0,g)).type]=(E[y.type]||0)+1,this.edgeDataCache[O]=y,y.forceLabel&&!y.hidden&&this.edgesWithForcedLabels.push(O),this.settings.zIndex&&(y.zIndex<a[0]&&(a[0]=y.zIndex),y.zIndex>a[1]&&(a[1]=y.zIndex))}for(var v in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(v))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(v,'"!'));e||this.edgePrograms[v].allocate(E[v]||0),E[v]=0}for(this.settings.zIndex&&a[0]!==a[1]&&(_=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),_)),p=0,h=_.length;p<h;p++){O=_[p],y=this.edgeDataCache[O];var S=n.extremities(O),C=this.nodeDataCache[S[0]],k=this.nodeDataCache[S[1]],L=y.hidden||C.hidden||k.hidden;this.edgePrograms[y.type].process(C,k,y,L,E[y.type]++)}for(var v in this.edgePrograms){var P=this.edgePrograms[v];e||"function"!=typeof P.computeIndices||P.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e=this.camera.getState(),t=this.labelGrid.getLabelsToDisplay(e.ratio,this.settings.labelDensity);(0,l.default)(t,this.nodesWithForcedLabels),this.displayedLabels=new Set;for(var n=this.canvasContexts.labels,r=0,i=t.length;r<i;r++){var a=t[r],s=this.nodeDataCache[a];if(!this.displayedLabels.has(a)&&!s.hidden){var c=this.framedGraphToViewport(s),u=c.x,d=c.y,p=this.scaleSize(s.size);!s.forceLabel&&p<this.settings.labelRenderedSizeThreshold||u<-150||u>this.width+150||d<-50||d>this.height+50||(this.displayedLabels.add(a),this.settings.labelRenderer(n,o(o({key:a},s),{size:p,x:u,y:d}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,h.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,i=t.length;r<i;r++){var a=t[r],s=this.graph.extremities(a),l=this.nodeDataCache[s[0]],c=this.nodeDataCache[s[1]],u=this.edgeDataCache[a];n.has(a)||u.hidden||l.hidden||c.hidden||(this.settings.edgeLabelRenderer(e,o(o({key:a},u),{size:this.scaleSize(u.size)}),o(o(o({key:s[0]},l),this.framedGraphToViewport(l)),{size:this.scaleSize(l.size)}),o(o(o({key:s[1]},c),this.framedGraphToViewport(c)),{size:this.scaleSize(c.size)}),this.settings),n.add(a))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],i=e.framedGraphToViewport(r),a=i.x,s=i.y,l=e.scaleSize(r.size);e.settings.hoverRenderer(t,o(o({key:n},r),{size:l,x:a,y:s}),e.settings)}(n)}));var r={};for(var i in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.nodeHoverPrograms)this.nodeHoverPrograms[i].allocate(r[i]||0),r[i]=0;for(var i in n.forEach((function(t){var n=e.nodeDataCache[t];e.nodeHoverPrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.nodeHoverPrograms){var a=this.nodeHoverPrograms[i];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:this.pixelRatio})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){var e=this;this.emit("beforeRender");var t=function(){return e.emit("afterRender"),e};if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return t();var n=this.mouseCaptor,r=this.camera.isAnimated()||n.isMoving||n.draggedEvents||n.currentWheelDirection,i=this.camera.getState(),o=this.getDimensions(),a=this.getGraphDimensions(),s=this.getSetting("stagePadding")||0;for(var l in this.matrix=(0,f.matrixFromCamera)(i,o,a,s),this.invMatrix=(0,f.matrixFromCamera)(i,o,a,s,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,i,o),this.nodePrograms)(c=this.nodePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio});if(!this.settings.hideEdgesOnMove||!r)for(var l in this.edgePrograms){var c;(c=this.edgePrograms[l]).bind(),c.bufferData(),c.render({matrix:this.matrix,width:this.width,height:this.height,ratio:i.ratio,correctionRatio:this.correctionRatio/i.ratio,scalingRatio:this.pixelRatio})}return this.settings.hideLabelsOnMove&&r||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),t()},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getContainer=function(){return this.container},t.prototype.getGraph=function(){return this.graph},t.prototype.setGraph=function(e){e!==this.graph&&(this.unbindGraphHandlers(),this.nodeDataCache={},this.edgeDataCache={},this.displayedLabels.clear(),this.highlightedNodes.clear(),this.hoveredNode=null,this.hoveredEdge=null,this.nodesWithForcedLabels.length=0,this.edgesWithForcedLabels.length=0,null!==this.checkEdgesEventsFrame&&((0,f.cancelFrame)(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=e,this.bindGraphHandlers(),this.process(),this.render())},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return o({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,m.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,m.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=(0,f.getPixelRatio)(),0===this.width){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.width=1}if(0===this.height){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.height=1}if(e===this.width&&t===this.height)return this;for(var n in this.emit("resize"),this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),1!==this.pixelRatio&&this.canvasContexts[n].scale(this.pixelRatio,this.pixelRatio);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),this.webGLContexts[n].viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,i=n.angle,o=n.x,a=n.y,s=t/r,l={x:this.width/2,y:this.height/2},c=this.viewportToFramedGraph(e),u=this.viewportToFramedGraph(l);return{angle:i,x:(c.x-u.x)*(1-s)+o,y:(c.y-u.y)*(1-s)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),i=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-i.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,i=(0,v.multiplyVec2)(r,e);return{x:(1+i.x)*this.width/2,y:(1-i.y)*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,i=(0,v.multiplyVec2)(r,{x:e.x/this.width*2-1,y:1-e.y/this.height*2});return isNaN(i.x)&&(i.x=0),isNaN(i.y)&&(i.y=0),i},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,f.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.quadtree=new d.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return o({},this.elements)},t}(p.TypedEventEmitter);t.default=x},432:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var o=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return i(t,e),t}(n(2699).EventEmitter);t.TypedEventEmitter=o},1181:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var i=n(8586),o=r(n(2383));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var s=Object.assign({},t.ANIMATE_DEFAULTS,r),l="function"==typeof s.easing?s.easing:o.default[s.easing],c=Date.now(),u={};for(var d in n){var p=n[d];for(var f in u[d]={},p)u[d][f]=e.getNodeAttribute(d,f)}var h=null,m=function(){h=null;var t=(Date.now()-c)/s.duration;if(t>=1){for(var r in n){var o=n[r];for(var d in o)e.setNodeAttribute(r,d,o[d])}"function"==typeof a&&a()}else{for(var r in t=l(t),n){o=n[r];var p=u[r];for(var d in o)e.setNodeAttribute(r,d,o[d]*t+p[d]*(1-t))}h=(0,i.requestFrame)(m)}};return m(),function(){h&&(0,i.cancelFrame)(h)}}},1078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},2383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0,t.linear=function(e){return e},t.quadraticIn=function(e){return e*e},t.quadraticOut=function(e){return e*(2-e)},t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.cubicIn=function(e){return e*e*e},t.cubicOut=function(e){return--e*e*e+1},t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},8073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,i,o,a){return!(e<n-a&&e<i-a||t<r-a&&t<o-a||e>n+a&&e>i+a||t>r+a&&t>o+a||!(Math.abs((i-n)*(r-t)-(n-e)*(o-r))/Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2))<a/2))}},8586:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.floatArrayColor=t.parseColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var o=i(n(1880)),a=n(2237),s=n(1078);function l(e){return"object"==typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=l,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,i=t.length;r<i;r++){var o=t[r];o&&Object.assign(e,o)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var i=0,o=n.length;i<o;i++){var a=n[i];if(a)for(var s in a)l(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!=typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!=typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var i in t)r.style[i]=t[i];if(n)for(var i in n)r.setAttribute(i,n[i]);return r},t.getPixelRatio=function(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode((function(e,o){var a=o.x,s=o.y;a<t&&(t=a),a>n&&(n=a),s<r&&(r=s),s>i&&(i=s)})),{x:[t,n],y:[r,i]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],i=t[1],o=r(e.y,2),a=o[0],s=o[1],l=Math.max(i-n,s-a),c=(i+n)/2,u=(s+a)/2;(0===l||Math.abs(l)===1/0||isNaN(l))&&(l=1),isNaN(c)&&(c=0),isNaN(u)&&(u=0);var d=function(e){return{x:.5+(e.x-c)/l,y:.5+(e.y-u)/l}};return d.applyTo=function(e){e.x=.5+(e.x-c)/l,e.y=.5+(e.y-u)/l},d.inverse=function(e){return{x:c+l*(e.x-.5),y:u+l*(e.y-.5)}},d.ratio=l,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,i=t(n)||0;return r<i?-1:r>i?1:0}))};var c=new Int8Array(4),u=new Int32Array(c.buffer,0,1),d=new Float32Array(c.buffer,0,1),p=/^\s*rgba?\s*\(/,f=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function h(e){var t=0,n=0,r=0,i=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),9===e.length&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(p.test(e)){var o=e.match(f);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}return{r:t,g:n,b:r,a:i}}t.parseColor=h;var m={};for(var g in s.HTML_COLORS)m[g]=v(s.HTML_COLORS[g]),m[s.HTML_COLORS[g]]=m[g];function v(e){if(void 0!==m[e])return m[e];var t=h(e),n=t.r,r=t.g,i=t.b,o=t.a;o=255*o|0,u[0]=4278190079&(o<<24|i<<16|r<<8|n);var a=d[0];return m[e]=a,a}function y(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatArrayColor=function(e){var t=h(e=s.HTML_COLORS[e]||e),n=t.r,r=t.g,i=t.b,o=t.a;return new Float32Array([n/255,r/255,i/255,o])},t.floatColor=v,t.getCorrectionRatio=y,t.matrixFromCamera=function(e,t,n,r,i){var o=e.angle,s=e.ratio,l=e.x,c=e.y,u=t.width,d=t.height,p=(0,a.identity)(),f=Math.min(u,d)-2*r,h=y(t,n);return i?((0,a.multiply)(p,(0,a.translate)((0,a.identity)(),l,c)),(0,a.multiply)(p,(0,a.scale)((0,a.identity)(),s)),(0,a.multiply)(p,(0,a.rotate)((0,a.identity)(),o)),(0,a.multiply)(p,(0,a.scale)((0,a.identity)(),u/f/2/h,d/f/2/h))):((0,a.multiply)(p,(0,a.scale)((0,a.identity)(),f/u*2*h,f/d*2*h)),(0,a.multiply)(p,(0,a.rotate)((0,a.identity)(),-o)),(0,a.multiply)(p,(0,a.scale)((0,a.identity)(),1/s)),(0,a.multiply)(p,(0,a.translate)((0,a.identity)(),-l,-c))),p},t.getMatrixImpact=function(e,t,n){var r=(0,a.multiplyVec2)(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,o=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(o,2))/n.width},t.extractPixel=function(e,t,n,r){var i=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,i),i},t.canUse32BitsIndices=function(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,o.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec2=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"==typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=t[0],p=t[1],f=t[2],h=t[3],m=t[4],g=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*n+p*o+f*l,e[1]=d*r+p*a+f*c,e[2]=d*i+p*s+f*u,e[3]=h*n+m*o+g*l,e[4]=h*r+m*a+g*c,e[5]=h*i+m*s+g*u,e[6]=v*n+y*o+b*l,e[7]=v*r+y*a+b*c,e[8]=v*i+y*s+b*u,e},t.multiplyVec2=function(e,t,n){void 0===n&&(n=1);var r=e[0],i=e[1],o=e[3],a=e[4],s=e[6],l=e[7],c=t.x,u=t.y;return{x:c*r+u*o+s*n,y:c*i+u*a+l*n}}},2564:e=>{"use strict";e.exports=function(){}},1884:t=>{"use strict";t.exports=e},8282:e=>{"use strict";e.exports=t},6496:e=>{"use strict";e.exports=n},5635:e=>{"use strict";e.exports=r},4294:e=>{"use strict";e.exports=i},8668:e=>{"use strict";e.exports=o},3839:e=>{"use strict";e.exports=a},518:e=>{"use strict";e.exports=s},8475:e=>{"use strict";e.exports=l},6236:e=>{"use strict";e.exports=c},6439:e=>{"use strict";e.exports=u},4501:e=>{"use strict";e.exports=d},7499:e=>{"use strict";e.exports=p},901:e=>{"use strict";e.exports=f},5743:e=>{"use strict";e.exports=h},5206:e=>{"use strict";e.exports=m},2811:e=>{"use strict";e.exports=g},6091:e=>{"use strict";e.exports=v},4539:e=>{"use strict";e.exports=y},6825:e=>{"use strict";e.exports=b},3463:e=>{"use strict";e.exports=w},3643:e=>{"use strict";e.exports=x},9233:e=>{"use strict";e.exports=E},3732:e=>{"use strict";e.exports=_},8214:e=>{"use strict";e.exports=O},3526:e=>{"use strict";e.exports=S},3222:e=>{"use strict";e.exports=C},4436:e=>{"use strict";e.exports=k},5788:e=>{"use strict";e.exports=L},1733:e=>{"use strict";e.exports=P},3734:e=>{"use strict";e.exports=T},2600:e=>{"use strict";e.exports=R},5608:e=>{"use strict";e.exports=A},9850:e=>{"use strict";e.exports=M},8012:e=>{"use strict";e.exports=D},8878:e=>{"use strict";e.exports=z},918:e=>{"use strict";e.exports=j},1159:e=>{"use strict";e.exports=N},5681:e=>{"use strict";e.exports=I},7290:e=>{"use strict";e.exports=F},6038:e=>{"use strict";e.exports=B},3627:e=>{"use strict";e.exports=G},8759:e=>{"use strict";e.exports=U},4841:e=>{"use strict";e.exports=H},7655:e=>{"use strict";e.exports=W},3962:e=>{"use strict";e.exports=q},9881:e=>{"use strict";e.exports=V},1230:e=>{"use strict";e.exports=$},8310:e=>{"use strict";e.exports=Y},2308:e=>{"use strict";e.exports=Z},2396:e=>{"use strict";e.exports=X},3192:e=>{"use strict";e.exports=K},5099:e=>{"use strict";e.exports=Q},3288:e=>{"use strict";e.exports=J},8156:e=>{"use strict";e.exports=ee},7111:e=>{"use strict";e.exports=te},4756:e=>{"use strict";e.exports=ne},5751:e=>{"use strict";e.exports=re},5297:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},3100:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8870:(e,t,n)=>{var r=n(7739);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6290:(e,t,n)=>{var r=n(7739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8230:(e,t,n)=>{var r=n(8560);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},1600:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},421:(e,t,n)=>{var r=n(7425).default,i=n(5297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8560:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},8064:(e,t,n)=>{var r=n(7425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7739:(e,t,n)=>{var r=n(7425).default,i=n(8064);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},oe={};function ae(e){var t=oe[e];if(void 0!==t)return t.exports;var n=oe[e]={id:e,loaded:!1,exports:{}};return ie[e].call(n.exports,n,n.exports,ae),n.loaded=!0,n.exports}ae.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return ae.d(t,{a:t}),t},ae.d=(e,t)=>{for(var n in t)ae.o(t,n)&&!ae.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},ae.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),ae.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ae.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},ae.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var se={};return(()=>{"use strict";ae.r(se),ae.d(se,{DataModelScreen:()=>Qh});var e=ae(8156),t=ae.n(e),n=ae(9881),r=ae.n(n),i=ae(3962),o=ae.n(i);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var s=ae(3192),l=ae.n(s);const c={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},u={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},d=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class p{constructor({locale:e,formats:t,instance:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=c,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(d);const n="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?n:n.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,n,r;if(e.isUTC())return"UTC";const i=null==(t=e._z)?void 0:t.name;return null!=(n=null!=i?i:null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system"},this.setTimezone=(e,t)=>{var n,r;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(d)}const i="default"===t?null!=(n=null==(r=this.moment.defaultZone)?void 0:r.name)?n:"system":t,o=e.clone();return o.tz(i),o},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||l().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(l().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?l().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const n=e.clone();return n.locale(this.getCurrentLocaleCode()),n.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>l().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week");let i=0,o=n;const a=[];for(;o.isBefore(r);){const e=Math.floor(i/7);a[e]=a[e]||[],a[e].push(o),o=o.clone().add(1,"day"),i+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const n=this.moment(e).startOf("year"),r=this.moment(t).endOf("year"),i=[];let o=n;for(;o.isBefore(r);)i.push(o),o=o.clone().add(1,"year");return i},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?l().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=n||l(),this.locale=e,this.formats=a({},u,t)}}function f(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var h=ae(5099),m=ae.n(h),g=ae(7655),v=ae(2322);const y=["localeText"],b=e.createContext(null),w=function(t){var n;const{localeText:r}=t,i=f(t,y),{utils:o,localeText:s}=null!=(n=e.useContext(b))?n:{utils:void 0,localeText:void 0},l=(0,g.useThemeProps)({props:i,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:u,dateFormats:d,dateLibInstance:p,adapterLocale:h,localeText:m}=l,w=e.useMemo((()=>a({},m,s,r)),[m,s,r]),x=e.useMemo((()=>{if(!u)return o||null;const e=new u({locale:h,formats:d,instance:p});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[u,h,d,p,o]),E=e.useMemo((()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null),[x]),_=e.useMemo((()=>({utils:x,defaultDates:E,localeText:w})),[E,x,w]);return(0,v.jsx)(b.Provider,{value:_,children:c})};var x=ae(3288),E=ae(2396),_=ae(4756),O=ae(2308),S=ae.n(O);const C=()=>{const t=(0,_.useSelector)(S().selectors.getMetadata);return{entityTypes:(0,e.useMemo)((()=>t.entityTypes.filter((0,x.complement)(E.isAbstractEntityType))),[t.entityTypes]),relationTypes:t.relationTypes,interactionTypes:t.interactionTypes}};var k=ae(5751),L=ae.n(k),P=ae(6038),T=ae.n(P),R=ae(8759),A=ae.n(R),M="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};const D="object"===("undefined"==typeof window?"undefined":M(window))&&"object"===("undefined"==typeof document?"undefined":M(document))&&9===document.nodeType;function z(e){return z="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},z(e)}function j(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==z(t)?t:t+""}function N(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,j(r.key),r)}}function I(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F(e,t)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U={}.constructor;function H(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(H);if(e.constructor!==U)return e;var t={};for(var n in e)t[n]=H(e[n]);return t}function W(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=H(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var q=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},V=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=q(e[n]," ");else t=q(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function $(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Y(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Z(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=$(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Y(p+":"+c+V(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Y(h+":"+c+V(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Y(g+":"+c+V(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Y(""+e+c+"{"+r,--o)+Y("}",o)):r}var X=/([[\].#*$><+~=|^:(),"'`\s])/g,K="undefined"!=typeof CSS&&CSS.escape,Q=function(e){return K?K(e):e.replace(X,"\\$1")},J=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),ee=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(G(G(i)),s),i.selectorText="."+Q(i.id)),i}B(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=V(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?a({},e,{allowEmpty:!0}):e;return Z(this.selectorText,this.style,n)},I(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(J),te={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new ee(e,t,n)}},ne={indent:1,children:!0},re=/@([\w-]+)/,ie=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(re);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Te(a({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=ne);var t=$(e).linebreak;if(null==e.indent&&(e.indent=ne.indent),null==e.children&&(e.children=ne.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),oe=/@container|@media|@supports\s+/,le={onCreateRule:function(e,t,n){return oe.test(e)?new ie(e,t,n):null}},ce={indent:1,children:!0},ue=/@keyframes\s+([\w-]+)/,de=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ue);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:Q(s(this,o)),this.rules=new Te(a({},n,{parent:this})),t)this.rules.add(l,t[l],a({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ce);var t=$(e).linebreak;if(null==e.indent&&(e.indent=ce.indent),null==e.children&&(e.children=ce.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),pe=/@keyframes\s+/,fe=/\$([\w-]+)/g,he=function(e,t){return"string"==typeof e?e.replace(fe,(function(e,n){return n in t?t[n]:e})):e},me=function(e,t,n){var r=e[t],i=he(r,n);i!==r&&(e[t]=i)},ge={onCreateRule:function(e,t,n){return"string"==typeof e&&pe.test(e)?new de(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&me(e,"animation-name",n.keyframes),"animation"in e&&me(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return he(e,r.keyframes);default:return e}}},ve=function(e){function t(){return e.apply(this,arguments)||this}return B(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?a({},e,{allowEmpty:!0}):e;return Z(this.key,this.style,n)},t}(J),ye={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ve(e,t,n):null}},be=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=$(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Z(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Z(this.at,this.style,e)},e}(),we=/@font-face/,xe={onCreateRule:function(e,t,n){return we.test(e)?new be(e,t,n):null}},Ee=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Z(this.key,this.style,e)},e}(),_e={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ee(e,t,n):null}},Oe=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Se={"@charset":!0,"@import":!0,"@namespace":!0},Ce={onCreateRule:function(e,t,n){return e in Se?new Oe(e,t,n):null}},ke=[te,le,ge,ye,xe,_e,Ce],Le={process:!0},Pe={force:!0,process:!0},Te=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,s=r.jss,l=r.Renderer,c=r.generateId,u=r.scoped,d=a({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(d.selector="."+Q(this.classes[p]));var f=W(p,t,d);if(!f)return null;this.register(f);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=a({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof ee?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof de&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof ee?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof de&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Le);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Pe)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Pe)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=$(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Re=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=a({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Te(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Ae=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Me=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=f(t,["attached"]),i=$(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},I(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),De=new Me,ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),je="2f1acc6c3a606b082e5eef5e54414ffb";null==ze[je]&&(ze[je]=0);var Ne=ze[je]++,Ie=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Ne+i+t:o+n.key+"-"+Ne+(i?"-"+i:"")+"-"+t}},Fe=function(e){var t;return function(){return t||(t=e()),t}},Be=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Ge=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=V(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ue=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},He=function(e,t){return e.selectorText=t,e.selectorText===t},We=Fe((function(){return document.querySelector("head")}));var qe=Fe((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ve=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},$e=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ye=function(){function e(e){this.getPropertyValue=Be,this.setProperty=Ge,this.removeProperty=Ue,this.setSelector=He,this.hasInsertedRules=!1,this.cssRules=[],e&&De.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=qe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=De.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=We(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else We().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=$e(n,t);if(!1===(i=Ve(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=$e(n,t),l=Ve(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Re&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ze=0,Xe=function(){function e(e){this.id=Ze++,this.version="10.10.0",this.plugins=new Ae,this.options={id:{minify:!1},createGenerateId:Ie,Renderer:D?Ye:null,plugins:[]},this.generateId=Ie({minify:!1});for(var t=0;t<ke.length;t++)this.plugins.use(ke[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=a({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===De.index?0:De.index+1);var r=new Re(e,a({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),De.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=a({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=W(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ke=function(e){return new Xe(e)},Qe="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Je(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Je(r);o&&(t||(t={}),t[n]=o)}}return t}function et(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const i=a({},t);return Object.keys(n).forEach((e=>{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}Ke();const tt={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},nt=tt,rt=e.createContext(null);const it="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var at=Date.now(),st="fnValues"+at,lt="fnStyle"+ ++at;var ct="@global",ut="@global ",dt=function(){function e(e,t,n){for(var r in this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Te(a({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),pt=function(){function e(e,t,n){this.type="global",this.at=ct,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(ut.length);this.rule=n.jss.createRule(r,t,a({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ft=/\s*,\s*/g;function ht(e,t){for(var n=e.split(ft),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var mt=/\s*,\s*/g,gt=/&/g,vt=/\$([\w-]+)/g;var yt=/[A-Z]/g,bt=/^ms-/,wt={};function xt(e){return"-"+e.toLowerCase()}const Et=function(e){if(wt.hasOwnProperty(e))return wt[e];var t=e.replace(yt,xt);return wt[e]=bt.test(t)?"-"+t:t};function _t(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:Et(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(_t):t.fallbacks=_t(e.fallbacks)),t}var Ot=Qe&&CSS?CSS.px:"px",St=Qe&&CSS?CSS.ms:"ms",Ct=Qe&&CSS?CSS.percent:"%";function kt(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Lt=kt({"animation-delay":St,"animation-duration":St,"background-position":Ot,"background-position-x":Ot,"background-position-y":Ot,"background-size":Ot,border:Ot,"border-bottom":Ot,"border-bottom-left-radius":Ot,"border-bottom-right-radius":Ot,"border-bottom-width":Ot,"border-left":Ot,"border-left-width":Ot,"border-radius":Ot,"border-right":Ot,"border-right-width":Ot,"border-top":Ot,"border-top-left-radius":Ot,"border-top-right-radius":Ot,"border-top-width":Ot,"border-width":Ot,"border-block":Ot,"border-block-end":Ot,"border-block-end-width":Ot,"border-block-start":Ot,"border-block-start-width":Ot,"border-block-width":Ot,"border-inline":Ot,"border-inline-end":Ot,"border-inline-end-width":Ot,"border-inline-start":Ot,"border-inline-start-width":Ot,"border-inline-width":Ot,"border-start-start-radius":Ot,"border-start-end-radius":Ot,"border-end-start-radius":Ot,"border-end-end-radius":Ot,margin:Ot,"margin-bottom":Ot,"margin-left":Ot,"margin-right":Ot,"margin-top":Ot,"margin-block":Ot,"margin-block-end":Ot,"margin-block-start":Ot,"margin-inline":Ot,"margin-inline-end":Ot,"margin-inline-start":Ot,padding:Ot,"padding-bottom":Ot,"padding-left":Ot,"padding-right":Ot,"padding-top":Ot,"padding-block":Ot,"padding-block-end":Ot,"padding-block-start":Ot,"padding-inline":Ot,"padding-inline-end":Ot,"padding-inline-start":Ot,"mask-position-x":Ot,"mask-position-y":Ot,"mask-size":Ot,height:Ot,width:Ot,"min-height":Ot,"max-height":Ot,"min-width":Ot,"max-width":Ot,bottom:Ot,left:Ot,top:Ot,right:Ot,inset:Ot,"inset-block":Ot,"inset-block-end":Ot,"inset-block-start":Ot,"inset-inline":Ot,"inset-inline-end":Ot,"inset-inline-start":Ot,"box-shadow":Ot,"text-shadow":Ot,"column-gap":Ot,"column-rule":Ot,"column-rule-width":Ot,"column-width":Ot,"font-size":Ot,"font-size-delta":Ot,"letter-spacing":Ot,"text-decoration-thickness":Ot,"text-indent":Ot,"text-stroke":Ot,"text-stroke-width":Ot,"word-spacing":Ot,motion:Ot,"motion-offset":Ot,outline:Ot,"outline-offset":Ot,"outline-width":Ot,perspective:Ot,"perspective-origin-x":Ct,"perspective-origin-y":Ct,"transform-origin":Ct,"transform-origin-x":Ct,"transform-origin-y":Ct,"transform-origin-z":Ct,"transition-delay":St,"transition-duration":St,"vertical-align":Ot,"flex-basis":Ot,"shape-margin":Ot,size:Ot,gap:Ot,grid:Ot,"grid-gap":Ot,"row-gap":Ot,"grid-row-gap":Ot,"grid-column-gap":Ot,"grid-template-rows":Ot,"grid-template-columns":Ot,"grid-auto-rows":Ot,"grid-auto-columns":Ot,"box-shadow-x":Ot,"box-shadow-y":Ot,"box-shadow-blur":Ot,"box-shadow-spread":Ot,"font-line-height":Ot,"text-shadow-x":Ot,"text-shadow-y":Ot,"text-shadow-blur":Ot});function Pt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Pt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Pt(i,t[i],n);else for(var o in t)t[o]=Pt(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Lt[e];return!a||0===t&&a===Ot?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rt(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}function At(e){return function(e){if(Array.isArray(e))return Tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mt="",Dt="",zt="",jt="",Nt=D&&"ontouchstart"in document.documentElement;if(D){var It={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ft=document.createElement("p").style;for(var Bt in It)if(Bt+"Transform"in Ft){Mt=Bt,Dt=It[Bt];break}"Webkit"===Mt&&"msHyphens"in Ft&&(Mt="ms",Dt=It.ms,jt="edge"),"Webkit"===Mt&&"-apple-trailing-word"in Ft&&(zt="apple")}var Gt=Mt,Ut=Dt,Ht=zt,Wt=jt,qt=Nt,Vt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Gt?"-webkit-"+e:Ut+e)}},$t={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Gt?Ut+"print-"+e:e)}},Yt=/[-\s]+(.)?/g;function Zt(e,t){return t?t.toUpperCase():""}function Xt(e){return e.replace(Yt,Zt)}function Kt(e){return Xt("-"+e)}var Qt,Jt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Gt){var n="mask-image";if(Xt(n)in t)return e;if(Gt+Kt(n)in t)return Ut+e}return e}},en={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ht||qt?e:Ut+e)}},tn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ut+e)}},nn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ut+e)}},rn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Gt||"ms"===Gt&&"edge"!==Wt?Ut+e:e)}},on={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Gt||"ms"===Gt||"apple"===Ht?Ut+e:e)}},an={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Gt?"WebkitColumn"+Kt(e)in t&&Ut+"column-"+e:"Moz"===Gt&&"page"+Kt(e)in t&&"page-"+e)}},sn={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Gt)return e;var n=e.replace("-inline","");return Gt+Kt(n)in t&&Ut+n}},ln={supportedProperty:function(e,t){return Xt(e)in t&&e}},cn={supportedProperty:function(e,t){var n=Kt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Gt+n in t?Ut+e:"Webkit"!==Gt&&"Webkit"+n in t&&"-webkit-"+e}},un={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Gt?""+Ut+e:e)}},dn={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Gt?Ut+"scroll-chaining":e)}},pn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fn={supportedProperty:function(e,t){var n=pn[e];return!!n&&Gt+Kt(n)in t&&Ut+n}},hn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},mn=Object.keys(hn),gn=function(e){return Ut+e},vn={supportedProperty:function(e,t,n){var r=n.multiple;if(mn.indexOf(e)>-1){var i=hn[e];if(!Array.isArray(i))return Gt+Kt(i)in t&&Ut+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Gt+Kt(i[0])in t))return!1;return i.map(gn)}return!1}},yn=[Vt,$t,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un,dn,fn,vn],bn=yn.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),wn=yn.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,At(t.noPrefill)),e}),[]),xn={};if(D){Qt=document.createElement("p");var En=window.getComputedStyle(document.documentElement,"");for(var _n in En)isNaN(_n)||(xn[En[_n]]=En[_n]);wn.forEach((function(e){return delete xn[e]}))}function On(e,t){if(void 0===t&&(t={}),!Qt)return e;if(null!=xn[e])return xn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Qt.style);for(var n=0;n<bn.length&&(xn[e]=bn[n](e,Qt.style,t),!xn[e]);n++);try{Qt.style[e]=""}catch(e){return!1}return xn[e]}var Sn,Cn={},kn={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ln=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pn(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?On(t):", "+On(n))||t||n}function Tn(e,t){var n=t;if(!Sn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Cn[r])return Cn[r];try{Sn.style[e]=n}catch(e){return Cn[r]=!1,!1}if(kn[e])n=n.replace(Ln,Pn);else if(""===Sn.style[e]&&("-ms-flex"===(n=Ut+n)&&(Sn.style[e]="-ms-flexbox"),Sn.style[e]=n,""===Sn.style[e]))return Cn[r]=!1,!1;return Sn.style[e]="",Cn[r]=n,Cn[r]}D&&(Sn=document.createElement("p"));const Rn=Ke({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=W(e,{},n);return r[lt]=t,r},onProcessStyle:function(e,t){if(st in t||lt in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[st]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[lt];o&&(i.style=o(e)||{});var a=i[st];if(a)for(var s in a)i.prop(s,a[s](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===ct)return new dt(e,t,n);if("@"===e[0]&&e.substr(0,ut.length)===ut)return new pt(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[ct]:null;if(i){for(var o in i)t.addRule(o,i[o],a({},n,{selector:ht(o,e.selector)}));delete r[ct]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,ct.length)===ct){var o=ht(i.substr(ct.length),e.selector);t.addRule(o,r[i],a({},n,{selector:o})),delete r[i]}}(e,t))}},function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(mt),r=e.split(mt),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(gt,a):a+" "+l}return i}function n(e,t,n){if(n)return a({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=a({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,l,c=i,u=c.options.parent;for(var d in r){var p=-1!==d.indexOf("&"),f="@"===d[0];if(p||f){if(s=n(c,u,s),p){var h=t(d,c.selector);l||(l=e(u,o)),h=h.replace(vt,l);var m=c.key+"-"+d;"replaceRule"in u?u.replaceRule(m,r[d],a({},s,{selector:h})):u.addRule(m,r[d],a({},s,{selector:h}))}else f&&u.addRule(d,{},s).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}}(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=_t(e[t]);return e}return _t(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Et(t);return t===r?e:(n.prop(r,e),null)}},function(e){void 0===e&&(e={});var t=kt(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Pt(r,e[r],t);return e},onChangeValue:function(e,n){return Pt(n,e,t)}}}(),"undefined"==typeof window?null:function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=On(n);o&&o!==n&&(i=!0);var a=!1,s=Tn(o,V(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Gt?e:"@"+Ut+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Tn(t,V(e))||e}}}(),(Dn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Dn),i=0;i<r.length;i++)n[r[i]]=e[r[i]];return n}})]}),An={disableGeneration:!1,generateClassName:function(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,i=""===r?"":`${r}-`;let o=0;const a=()=>(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==ot.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[it]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),jss:Rn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Mn=e.createContext(An);var Dn;let zn=-1e9;function jn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Nn(e){if(!jn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Nn(e[n])})),t}function In(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return jn(e)&&jn(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(jn(t[i])&&i in e&&jn(e[i])?r[i]=In(e[i],t[i],n):n.clone?r[i]=jn(t[i])?Nn(t[i]):t[i]:r[i]=t[i])})),r}function Fn(e){if("string"!=typeof e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Bn=["variant"];function Gn(e){return 0===e.length}const Un={},Hn=["name","classNamePrefix","Component","defaultTheme"];function Wn({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let s=nt.get(n.sheetsManager,r,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},nt.set(n.sheetsManager,r,t,s));const l=a({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(0===s.refs){let e;n.sheetsCache&&(e=nt.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,a({link:!1},l)),e.attach(),n.sheetsCache&&nt.set(n.sheetsCache,r,t,e)),c&&c.add(e),s.staticSheet=e,s.dynamicStyles=Je(o)}if(s.dynamicStyles){const t=n.jss.createStyleSheet(s.dynamicStyles,a({link:!0},l));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=et({baseClasses:s.staticSheet.classes,newClasses:t.classes}),c&&c.add(t)}else e.classes=s.staticSheet.classes;s.refs+=1}function qn(t,n={}){const{name:r,classNamePrefix:i,Component:o,defaultTheme:s=Un}=n,l=f(n,Hn),c=function(e){const t="function"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},s=n.components[r].variants||[],l=a({},i);return Object.keys(o).forEach((e=>{l[e]=In(l[e]||{},o[e])})),s.forEach((e=>{const t=function(e){const{variant:t}=e,n=f(e,Bn);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Gn(r)?e[t]:Fn(e[t]):`${Gn(r)?t:Fn(t)}${Fn(e[t].toString())}`})),r}(e.props);l[t]=In(l[t]||{},e.style)})),l},options:{}}}(t),u=r||i||"makeStyles";return c.options={index:(zn+=1,zn),name:r,meta:u,classNamePrefix:u},(t={})=>{const n=function(){var t;const n=e.useContext(rt);return null!=(t=null==n?void 0:n.$$material)?t:n}()||s,i=a({},e.useContext(Mn),l),u=e.useRef(),d=e.useRef();!function(o,a){const s=e.useRef([]);let l;const p=e.useMemo((()=>({})),a);s.current!==p&&(s.current=p,l=(()=>{const e={name:r,state:{},stylesCreator:c,stylesOptions:i,theme:n};return Wn(e,t),d.current=!1,u.current=e,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=nt.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(nt.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(e)}})()),e.useEffect((()=>()=>{l&&l()}),[p])}(0,[n,c]),e.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(u.current,t),d.current=!0}));const p=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=et({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(u.current,t.classes,o);return p}}const Vn=qn({toolbar:{minHeight:"48px",padding:"8px 24px",lineHeight:"28px"},title:{fontSize:"18px",minWidth:"20px",fontWeight:"normal",lineHeight:"inherit",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}});function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(null,arguments)}const Yn=e=>{let{title:n="",children:r=null,classes:i={}}=e,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["title","children","classes"]);const a=Vn();return t().createElement(T(),$n({className:i.root,classes:{root:a.toolbar}},o),n&&t().createElement(A(),{className:i.title,classes:{root:a.title},variant:"h6"},L().text(n)),r)};var Zn=ae(6825),Xn=ae.n(Zn),Kn=ae(8310),Qn=ae.n(Kn),Jn=ae(8282),er=ae.n(Jn);const tr=qn((e=>({expanded:{transform:"rotate(180deg)"},disabled:{color:`${e.palette.text.disabled} !important`}})));function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(null,arguments)}const rr=e=>{const{selectProps:{classes:n,menuIsOpen:r,isDisabled:i},innerProps:o}=e,a=tr();return t().createElement(er(),nr({"data-reltio-id":"select-dropdown-indicator"},o,{className:Qn()(n.dropdownIndicator,{[a.expanded]:r},{[a.disabled]:i})}))};function ir(e,t){if(null==e)return{};var n,r,i=f(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}function sr(e,t){if(t&&("object"==z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}rr.propTypes={innerProps:m().object.isRequired,selectProps:m().shape({classes:m().shape({dropdownIndicator:m().string}).isRequired,menuIsOpen:m().bool.isRequired,isDisabled:m().bool}).isRequired};var cr=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();const ur=function(e){function t(e,r,l,c,p){for(var f,h,m,g,w,E=0,_=0,O=0,S=0,C=0,A=0,D=m=f=0,j=0,N=0,I=0,F=0,B=l.length,G=B-1,U="",H="",W="",q="";j<B;){if(h=l.charCodeAt(j),j===G&&0!==_+S+O+E&&(0!==_&&(h=47===_?10:47),S=O=E=0,B++,G++),0===_+S+O+E){if(j===G&&(0<N&&(U=U.replace(d,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(j)}h=59}switch(h){case 123:for(f=(U=U.trim()).charCodeAt(0),m=1,F=++j;j<B;){switch(h=l.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(j+1)){case 42:case 47:e:{for(D=j+1;D<G;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&j+2!==D){j=D+1;break e}break;case 10:if(47===h){j=D+1;break e}}j=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<G&&l.charCodeAt(j)!==h;);}if(0===m)break;j++}if(m=l.substring(F,j),0===f&&(f=(U=U.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<N&&(U=U.replace(d,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=R}if(F=(m=t(r,N,m,h,p+1)).length,0<M&&(w=s(3,m,N=n(R,U,I),r,L,k,F,h,p,c),U=N.join(""),void 0!==w&&0===(F=(m=w.trim()).length)&&(h=0,m="")),0<F)switch(h){case 115:U=U.replace(x,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(v,"$1 $2"))+"{"+m+"}",m=1===T||2===T&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===c&&(H+=m,m="")}else m=""}else m=t(r,n(r,U,I),m,c,p+1);W+=m,m=I=N=D=f=0,U="",h=l.charCodeAt(++j);break;case 125:case 59:if(1<(F=(U=(0<N?U.replace(d,""):U).trim()).length))switch(0===D&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(F=(U=U.replace(" ",":")).length),0<M&&void 0!==(w=s(1,U,r,e,L,k,H.length,c,p,c))&&0===(F=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),h=U.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){q+=U+l.charAt(j);break}default:58!==U.charCodeAt(F-1)&&(H+=i(U,f,h,U.charCodeAt(2)))}I=N=D=f=0,U="",h=l.charCodeAt(++j)}}switch(h){case 13:case 10:47===_?_=0:0===1+f&&107!==c&&0<U.length&&(N=1,U+="\0"),0<M*z&&s(0,U,r,e,L,k,H.length,c,p,c),k=1,L++;break;case 59:case 125:if(0===_+S+O+E){k++;break}default:switch(k++,g=l.charAt(j),h){case 9:case 32:if(0===S+E+_)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+_+E&&(N=I=1,g="\f"+g);break;case 108:if(0===S+_+E+P&&0<D)switch(j-D){case 2:112===C&&58===l.charCodeAt(j-3)&&(P=C);case 8:111===A&&(P=A)}break;case 58:0===S+_+E&&(D=j);break;case 44:0===_+O+S+E&&(N=1,g+="\r");break;case 34:case 39:0===_&&(S=S===h?0:0===S?h:S);break;case 91:0===S+_+O&&E++;break;case 93:0===S+_+O&&E--;break;case 41:0===S+_+E&&O--;break;case 40:0===S+_+E&&(0===f&&(2*C+3*A==533||(f=1)),O++);break;case 64:0===_+O+S+E+D+m&&(m=1);break;case 42:case 47:if(!(0<S+E+O))switch(_){case 0:switch(2*h+3*l.charCodeAt(j+1)){case 235:_=47;break;case 220:F=j,_=42}break;case 42:47===h&&42===C&&F+2!==j&&(33===l.charCodeAt(F+2)&&(H+=l.substring(F,j+1)),g="",_=0)}}0===_&&(U+=g)}A=C,C=h,j++}if(0<(F=H.length)){if(N=r,0<M&&void 0!==(w=s(2,H,N,e,L,k,F,c,p,c))&&0===(H=w).length)return q+H+W;if(H=N.join(",")+"{"+H+"}",0!=T*P){switch(2!==T||o(H,2)||(P=0),P){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}P=0}}return q+H+W}function n(e,t,n){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===T||2===T&&o(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(O,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,p=0,f=t;p<M;++p)switch(d=A[p].call(c,e,f,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?T=1:(T=2,D=e):T=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var i=s(-1,n,r,r,L,k,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(R,r,n,0,0);return 0<M&&void 0!==(i=s(-2,o,r,r,L,k,o.length,0,0,0))&&(o=i),P=0,k=L=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,_=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,k=1,L=1,P=0,T=1,R=[],A=[],M=0,D=null,z=0;return c.use=function e(t){switch(t){case void 0:case null:M=A.length=0;break;default:if("function"==typeof t)A[M++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else z=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};var dr="/*|*/";function pr(e){e&&fr.current.insert(e+"}")}var fr={current:null},hr=function(e,t,n,r,i,o,a,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return fr.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+dr;break;case 3:switch(s){case 102:case 112:return fr.current.insert(n[0]+t),"";default:return t+(0===c?dr:"")}case-2:t.split("/*|*/}").forEach(pr)}};function mr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var gr=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0),i=i.next}while(void 0!==i)}};const vr=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},yr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var br=/[A-Z]|^ms/g,wr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xr=function(e){return 45===e.charCodeAt(1)},Er=function(e){return null!=e&&"boolean"!=typeof e},_r=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return xr(e)?e:e.replace(br,"-$&").toLowerCase()})),Or=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(wr,(function(e,t,n){return Cr={name:t,styles:n,next:Cr},t}))}return 1===yr[e]||xr(e)||"number"!=typeof t||0===t?t:t+"px"};function Sr(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Cr={name:n.name,styles:n.styles,next:Cr},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)Cr={name:i.name,styles:i.styles,next:Cr},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Sr(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Er(a)&&(r+=_r(o)+":"+Or(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Sr(e,t,a,!1);switch(o){case"animation":case"animationName":r+=_r(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Er(a[l])&&(r+=_r(o)+":"+Or(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Cr,a=n(e);return Cr=o,Sr(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Cr,kr=/label:\s*([^\s;\n{]+)\s*;/g,Lr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Cr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Sr(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=Sr(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);kr.lastIndex=0;for(var s,l="";null!==(s=kr.exec(i));)l+="-"+s[1];return{name:vr(i)+l,styles:i,next:Cr}},Pr=Object.prototype.hasOwnProperty,Tr=(0,e.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,i=new ur(t),o={};r=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),i.use(e.stylisPlugins)(hr),a=function(e,t,n,r){var o=t.name;fr.current=n,i(e,t.styles),r&&(l.inserted[o]=!0)};var l={key:n,sheet:new cr({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return l}():null),Rr=(0,e.createContext)({}),Ar=(Tr.Provider,function(t){var n=function(n,r){return(0,e.createElement)(Tr.Consumer,null,(function(e){return t(n,e,r)}))};return(0,e.forwardRef)(n)}),Mr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dr=function(e,t){var n={};for(var r in t)Pr.call(t,r)&&(n[r]=t[r]);return n[Mr]=e,n},zr=function(){return null},jr=function(t,n,r,i){var o=null===r?n.css:n.css(r);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=n[Mr],s=[o],l="";"string"==typeof n.className?l=mr(t.registered,s,n.className):null!=n.className&&(l=n.className+" ");var c=Lr(s);gr(t,c,"string"==typeof a),l+=t.key+"-"+c.name;var u={};for(var d in n)Pr.call(n,d)&&"css"!==d&&d!==Mr&&(u[d]=n[d]);u.ref=i,u.className=l;var p=(0,e.createElement)(a,u),f=(0,e.createElement)(zr,null);return(0,e.createElement)(e.Fragment,null,f,p)},Nr=Ar((function(t,n,r){return"function"==typeof t.css?(0,e.createElement)(Rr.Consumer,null,(function(e){return jr(n,t,e,r)})):jr(n,t,null,r)}));const Ir=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lr(t)};var Fr=function(t,n){var r=arguments;if(null==n||!Pr.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Nr,o[1]=Dr(t,n);for(var a=2;a<i;a++)o[a]=r[a];return e.createElement.apply(null,o)},Br=(e.Component,function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i});function Gr(e,t,n){var r=[],i=mr(e,r,n);return r.length<2?n:i+t(r)}var Ur=function(){return null},Hr=Ar((function(t,n){return(0,e.createElement)(Rr.Consumer,null,(function(r){var i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=Lr(t,n.registered);return gr(n,i,!1),n.key+"-"+i.name},o={css:i,cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gr(n.registered,i,Br(t))},theme:r},a=t.children(o),s=(0,e.createElement)(Ur,null);return(0,e.createElement)(e.Fragment,null,s,a)}))})),Wr=ae(7111);function qr(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vr=ae(1950),$r=function(){};function Yr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Zr(e,t,n){var r=[n];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(Yr(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Xr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===z(e)&&null!==e?[e]:[]};function Kr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Qr(e){return Kr(e)?window.pageYOffset:e.scrollTop}function Jr(e,t){Kr(e)?window.scrollTo(0,t):e.scrollTop=t}function ei(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function ti(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$r,i=Qr(e),o=t-i,a=10,s=0;function l(){var t=ei(s+=a,i,o,n);Jr(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function ni(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lr(e);if(t){var i=lr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sr(this,n)}}function ai(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Qr(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,x=g-h,E=w+v,_=u-v-h,O=p-g+v+y,S=v+h-b,C=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(_>=f&&!a)return o&&ti(l,O,C),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&x>=r)return o&&ti(l,O,C),{placement:"bottom",maxHeight:a?x-y:_-y};if("auto"===i||a){var k=t,L=a?w:E;return L>=r&&(k=Math.min(L-y-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return Jr(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(E>=f&&!a)return o&&ti(l,S,C),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var P=t;return(!a&&E>=r||a&&w>=r)&&(P=a?w-b:E-b),o&&ti(l,S,C),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var si=function(e){return"auto"===e?"bottom":e},li=(0,e.createContext)({getPortalPlacement:null}),ci=function(e){ar(n,e);var t=oi(n);function n(){var e;or(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=ai({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||si(t);return ii(ii({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return I(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(e.Component);ci.contextType=li;var ui=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},di=ui,pi=ui,fi=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({css:i("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};fi.defaultProps={children:"No options"};var hi=function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({css:i("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};hi.defaultProps={children:"Loading..."};var mi=function(e){ar(n,e);var t=oi(n);function n(){var e;or(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==si(e.props.menuPlacement)&&e.setState({placement:n})},e}return I(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,i=e.menuPlacement,o=e.menuPosition,a=e.getStyles,s="fixed"===o;if(!t&&!s||!r)return null;var l=this.state.placement||si(i),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),u=s?0:window.pageYOffset,d=c[l]+u,p=Fr("div",{css:a("menuPortal",{offset:d,position:o,rect:c})},n);return Fr(li.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Wr.createPortal)(p,t):p)}}]),n}(e.Component),gi=Array.isArray,vi=Object.keys,yi=Object.prototype.hasOwnProperty;function bi(e,t){if(e===t)return!0;if(e&&t&&"object"==z(e)&&"object"==z(t)){var n,r,i,o=gi(e),a=gi(t);if(o&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!bi(e[n],t[n]))return!1;return!0}if(o!=a)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=vi(e);if((r=d.length)!==vi(t).length)return!1;for(n=r;0!=n--;)if(!yi.call(t,d[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(i=d[n])&&e.$$typeof||bi(e[i],t[i])))return!1;return!0}return e!=e&&t!=t}function wi(e,t){try{return bi(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function xi(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return xi=function(){return n},n}var Ei={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},_i=function(e){var t=e.size,n=ir(e,["size"]);return Fr("svg",a({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ei},n))},Oi=function(e){return Fr(_i,a({size:20},e),Fr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Si=function(e){return Fr(_i,a({size:20},e),Fr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ci=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},ki=Ci,Li=Ci,Pi=function(){var e=Ir.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(xi()),Ti=function(e){var t=e.delay,n=e.offset;return Fr("span",{css:Ir({animation:"".concat(Pi," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ri=function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isRtl;return Fr("div",a({},i,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Fr(Ti,{delay:0,offset:o}),Fr(Ti,{delay:160,offset:!0}),Fr(Ti,{delay:320,offset:!o}))};function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ri.defaultProps={size:4};var ji=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fi=function(e){var t=e.children,n=e.innerProps;return Fr("div",n,t)},Bi=Fi,Gi=Fi,Ui=function(e){var t=e.children,n=e.className,r=e.components,i=e.cx,o=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=r.Container,p=r.Label,f=r.Remove;return Fr(Hr,null,(function(r){var h=r.css,m=r.cx;return Fr(d,{data:o,innerProps:Ii(Ii({},s),{},{className:m(h(a("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},Fr(p,{data:o,innerProps:{className:m(h(a("multiValueLabel",e)),i({"multi-value__label":!0},n))},selectProps:u},t),Fr(f,{data:o,innerProps:Ii({className:m(h(a("multiValueRemove",e)),i({"multi-value__remove":!0},n))},c),selectProps:u}))}))};function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ui.defaultProps={cropWithEllipsis:!0};var qi={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({},o,{css:i("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||Fr(Oi,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.className,o=e.isDisabled,s=e.isFocused,l=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return Fr("div",a({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":u},i)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({},o,{css:i("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||Fr(Si,null))},DownChevron:Si,CrossIcon:Oi,Group:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.Heading,s=e.headingProps,l=e.label,c=e.theme,u=e.selectProps;return Fr("div",{css:i("group",e),className:r({group:!0},n)},Fr(o,a({},s,{selectProps:u,theme:c,getStyles:i,cx:r}),l),Fr("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.theme,o=(e.selectProps,ir(e,["className","cx","getStyles","theme","selectProps"]));return Fr("div",a({css:r("groupHeading",Mi({theme:i},o)),className:n({"group-heading":!0},t)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles;return Fr("div",{css:i("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return Fr("span",a({},i,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,i=e.innerRef,o=e.isHidden,s=e.isDisabled,l=e.theme,c=(e.selectProps,ir(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Fr("div",{css:r("input",zi({theme:l},c))},Fr(Vr.Z,a({className:n({input:!0},t),inputRef:i,inputStyle:ji(o),disabled:s},c)))},LoadingIndicator:Ri,Menu:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerRef,s=e.innerProps;return Fr("div",a({css:i("menu",e),className:r({menu:!0},n)},s,{ref:o}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isMulti,s=e.innerRef,l=e.innerProps;return Fr("div",a({css:i("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":o},n),ref:s},l),t)},MenuPortal:mi,LoadingMessage:hi,NoOptionsMessage:fi,MultiValue:Ui,MultiValueContainer:Bi,MultiValueLabel:Gi,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Fr("div",n,t||Fr(Oi,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,s=e.isFocused,l=e.isSelected,c=e.innerRef,u=e.innerProps;return Fr("div",a({css:i("option",e),className:r({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":l},n),ref:c},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps;return Fr("div",a({css:i("placeholder",e),className:r({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.innerProps,s=e.isDisabled,l=e.isRtl;return Fr("div",a({css:i("container",e),className:r({"--is-disabled":s,"--is-rtl":l},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,i=e.getStyles,o=e.isDisabled,s=e.innerProps;return Fr("div",a({css:i("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":o},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,i=e.isMulti,o=e.getStyles,a=e.hasValue;return Fr("div",{css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a},n)},t)}},Vi=function(e){return Wi(Wi({},qi),e.components)};function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Rt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const Zi=function(e,t){var n;void 0===t&&(t=Yi);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}};for(var Xi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ki=new RegExp("["+Xi.map((function(e){return e.letters})).join("")+"]","g"),Qi={},Ji=0;Ji<Xi.length;Ji++)for(var eo=Xi[Ji],to=0;to<eo.letters.length;to++)Qi[eo.letters[to]]=eo.base;var no=function(e){return e.replace(Ki,(function(e){return Qi[e]}))};function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var io=function(e){return e.replace(/^\s+|\s+$/g,"")},oo=function(e){return"".concat(e.label," ").concat(e.value)},ao=function(e){return function(t,n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:oo,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?io(n):n,u=s?io(a(t)):a(t);return i&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=no(c),u=no(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}},so={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},lo=function(e){return Fr("span",a({css:so},e))};function co(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,ir(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Fr("input",a({ref:t},n,{css:Ir({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var uo=function(e){ar(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=lr(t);if(n){var i=lr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return sr(this,e)});function i(){return or(this,i),r.apply(this,arguments)}return I(i,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Wr.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),i}(e.Component),po=["boxSizing","height","overflow","paddingRight","position"],fo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ho(e){e.preventDefault()}function mo(e){e.stopPropagation()}function go(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function vo(){return"ontouchstart"in window||navigator.maxTouchPoints}var yo=!(!window.document||!window.document.createElement),bo=0,wo=function(e){ar(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=lr(t);if(n){var i=lr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return sr(this,e)});function i(){var e;or(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return I(i,[{key:"componentDidMount",value:function(){var e=this;if(yo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,i=document.body,o=i&&i.style;if(n&&po.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&bo<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,l=window.innerWidth-s+a||0;Object.keys(fo).forEach((function(e){var t=fo[e];o&&(o[e]=t)})),o&&(o.paddingRight="".concat(l,"px"))}i&&vo()&&(i.addEventListener("touchmove",ho,this.listenerOptions),r&&(r.addEventListener("touchstart",go,this.listenerOptions),r.addEventListener("touchmove",mo,this.listenerOptions))),bo+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(yo){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,i=document.body,o=i&&i.style;bo=Math.max(bo-1,0),n&&bo<1&&po.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),i&&vo()&&(i.removeEventListener("touchmove",ho,this.listenerOptions),r&&(r.removeEventListener("touchstart",go,this.listenerOptions),r.removeEventListener("touchmove",mo,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),i}(e.Component);wo.defaultProps={accountForScrollbars:!0};var xo={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Eo=function(e){ar(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=lr(t);if(n){var i=lr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return sr(this,e)});function i(){var e;or(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return I(i,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?Fr("div",null,Fr("div",{onClick:this.blurSelectInput,css:xo}),Fr(uo,{innerRef:this.getScrollTarget},t),r?Fr(wo,{touchScrollTarget:r}):null):t}}]),i}(e.PureComponent);var _o=function(e){ar(o,e);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(r){var i=lr(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return sr(this,e)});function o(){var e;or(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,i=r.onBottomArrive,o=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,l=e.scrollTarget,c=l.scrollTop,u=l.scrollHeight,d=l.clientHeight,p=e.scrollTarget,f=n>0,h=u-d-c,m=!1;h>n&&e.isBottom&&(o&&o(t),e.isBottom=!1),f&&e.isTop&&(s&&s(t),e.isTop=!1),f&&n>h?(i&&!e.isBottom&&i(t),p.scrollTop=u,m=!0,e.isBottom=!0):!f&&-n>c&&(a&&!e.isTop&&a(t),p.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return I(o,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return t().createElement(uo,{innerRef:this.getScrollTarget},this.props.children)}}]),o}(e.Component);function Oo(e){var n=e.isEnabled,r=void 0===n||n,i=ir(e,["isEnabled"]);return r?t().createElement(_o,i):i.children}var So=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,i=t.label,o=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(i||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Co=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},ko=function(e){return!!e.isDisabled},Lo={clearIndicator:Li,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,i=r.colors,o=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:n?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?i.primary:i.neutral30}}},dropdownIndicator:ki,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,i=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,i=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:pi,menu:function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return qr(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),qr(t,"backgroundColor",a.neutral0),qr(t,"borderRadius",i),qr(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),qr(t,"marginBottom",o.menuGutter),qr(t,"marginTop",o.menuGutter),qr(t,"position","absolute"),qr(t,"width","100%"),qr(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,i=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:di,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,i=n.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Po={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ao={backspaceRemovesValue:!0,blurInputOnSelect:ni(),captureMenuScroll:!ni(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ao(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ko,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Mo=1,Do=function(e){ar(o,e);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(r){var i=lr(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return sr(this,e)});function o(e){var t;or(this,o),(t=i.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=Vi({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;i(e,Ro(Ro({},n),{},{name:o}))},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,i=t.props,o=i.closeMenuOnSelect,a=i.isMulti;t.onInputChange("",{action:"set-value"}),o&&(t.inputIsHiddenAfterUpdate=!a,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=t.state.selectValue;if(i)if(t.isOptionSelected(e,o)){var a=t.getOptionValue(e);t.setValue(o.filter((function(e){return t.getOptionValue(e)!==a})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,o)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(At(o),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,o)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));r&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),i=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(i.length?i:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Zr.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=Lo[e](n);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,i=n.focusedOption;if(i&&e){var o=r.focusable.indexOf(i),a=r.render[o];return a&&a.key}},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:Co(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:So(n,Ro(Ro({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Kr(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,i=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:i}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return void 0===n?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":c?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,i=void 0===r?"":r,o=e.options,a=function(e,r){var o=t.isOptionDisabled(e,n),a=t.isOptionSelected(e,n),s=t.getOptionLabel(e),l=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&a||!t.filterOption({label:s,value:l,data:e},i))){var c=o?void 0:function(){return t.onOptionHover(e)},u=o?void 0:function(){return t.selectOption(e)},d="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:o,isSelected:a,key:d,label:s,type:"option",value:l}}};return o.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var i=n.options.map((function(t,n){var i=a(t,"".concat(r,"-").concat(n));return i&&e.focusable.push(t),i})).filter(Boolean);if(i.length){var o="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:o,data:n,options:i})}}else{var s=a(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var n=e.value;t.cacheComponents=Zi(t.cacheComponents,wi).bind(G(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++Mo);var r=Xr(n);t.buildMenuOptions=Zi(t.buildMenuOptions,(function(e,t){var n=$i(e,2),r=n[0],i=n[1],o=$i(t,2),a=o[0];return i===o[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(G(t));var a=e.menuIsOpen?t.buildMenuOptions(e,r):{render:[],focusable:[]};return t.state.menuOptions=a,t.state.selectValue=r,t}return I(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,i=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==i||e.inputValue!==o){var a=Xr(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},l=this.getNextFocusedValue(a),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,i,o,a=this.props,s=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=n.offsetHeight/3,i.bottom+o>r.bottom?Jr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<r.top&&Jr(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,l=a.tabSelectsValue,c="first"===e?0:o.focusable.length-1;if(!s){var u=o.focusable.indexOf(r[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:l}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,i=this.state,o=i.selectValue,a=i.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=o.length-1,c=-1;if(o.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s<l&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:o[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,i=this.state,o=i.focusedOption,a=i.menuOptions,s=a.focusable;if(s.length){var l=0,c=s.indexOf(o);o||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?l=c>0?c-1:s.length-1:"down"===e?l=(c+1)%s.length:"pageup"===e?(l=c-n)<0&&(l=0):"pagedown"===e?(l=c+n)>s.length-1&&(l=s.length-1):"last"===e&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:ko(s[l]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Po):Ro(Ro({},Po),this.props.theme):Po}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.setValue,o=this.selectOption,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:o,setValue:i,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,i=e.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,l=o.inputValue,c=o.screenReaderStatus,u=r?function(e){var t=e.focusedValue,n=e.selectValue;return"value ".concat((0,e.getOptionLabel)(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=i&&s?function(e){var t=e.focusedOption,n=e.options;return"option ".concat((0,e.getOptionLabel)(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(d," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,r=e.isSearchable,i=e.inputId,o=e.inputValue,s=e.tabIndex,l=e.form,c=this.components.Input,u=this.state.inputIsHidden,d=i||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return t().createElement(co,a({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$r,onFocus:this.onInputFocus,readOnly:!0,disabled:n,tabIndex:s,form:l,value:""},p));var f=this.commonProps,h=f.cx,m=f.theme,g=f.selectProps;return t().createElement(c,a({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:h,getStyles:this.getStyles,id:d,innerRef:this.getInputRef,isDisabled:n,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:g,spellCheck:"false",tabIndex:s,form:l,theme:m,type:"text",value:o},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.components,r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,s=n.MultiValueRemove,l=n.SingleValue,c=n.Placeholder,u=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!p)return m?null:t().createElement(c,a({},u,{key:"placeholder",isDisabled:f,isFocused:w}),g);if(h)return y.map((function(n,l){var c=n===b;return t().createElement(r,a({},u,{components:{Container:i,Label:o,Remove:s},isFocused:c,isDisabled:f,key:"".concat(e.getOptionValue(n)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:n}),e.formatOptionLabel(n,"value"))}));if(m)return null;var x=y[0];return t().createElement(l,a({},u,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,a({},n,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;return e&&o?t().createElement(e,a({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused;return t().createElement(r,a({},i,{isDisabled:o,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t().createElement(e,a({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,n=this.components,r=n.Group,i=n.GroupHeading,o=n.Menu,s=n.MenuList,l=n.MenuPortal,c=n.LoadingMessage,u=n.NoOptionsMessage,d=n.Option,p=this.commonProps,f=this.state,h=f.focusedOption,m=f.menuOptions,g=this.props,v=g.captureMenuScroll,y=g.inputValue,b=g.isLoading,w=g.loadingMessage,x=g.minMenuHeight,E=g.maxMenuHeight,_=g.menuIsOpen,O=g.menuPlacement,S=g.menuPosition,C=g.menuPortalTarget,k=g.menuShouldBlockScroll,L=g.menuShouldScrollIntoView,P=g.noOptionsMessage,T=g.onMenuScrollToTop,R=g.onMenuScrollToBottom;if(!_)return null;var A,M=function(n){var r=h===n.data;return n.innerRef=r?e.getFocusedOptionRef:void 0,t().createElement(d,a({},p,n,{isFocused:r}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())A=m.render.map((function(n){if("group"===n.type){n.type;var o=ir(n,["type"]),s="".concat(n.key,"-heading");return t().createElement(r,a({},p,o,{Heading:i,headingProps:{id:s,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return M(e)})))}if("option"===n.type)return M(n)}));else if(b){var D=w({inputValue:y});if(null===D)return null;A=t().createElement(c,p,D)}else{var z=P({inputValue:y});if(null===z)return null;A=t().createElement(u,p,z)}var j={minMenuHeight:x,maxMenuHeight:E,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:L},N=t().createElement(ci,a({},p,j),(function(n){var r=n.ref,i=n.placerProps,l=i.placement,c=i.maxHeight;return t().createElement(o,a({},p,j,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:l}),t().createElement(Oo,{isEnabled:v,onTopArrive:T,onBottomArrive:R},t().createElement(Eo,{isEnabled:k},t().createElement(s,a({},p,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:c}),A))))}));return C||"fixed"===S?t().createElement(l,a({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),N):N}},{key:"renderFormField",value:function(){var e=this,n=this.props,r=n.delimiter,i=n.isDisabled,o=n.isMulti,a=n.name,s=this.state.selectValue;if(a&&!i){if(o){if(r){var l=s.map((function(t){return e.getOptionValue(t)})).join(r);return t().createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.map((function(n,r){return t().createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(n)})})):t().createElement("input",{name:a,type:"hidden"});return t().createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return t().createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?t().createElement(lo,{"aria-live":"polite"},t().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),t().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,n=e.Control,r=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,s=this.props,l=s.className,c=s.id,u=s.isDisabled,d=s.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return t().createElement(i,a({},f,{className:l,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),t().createElement(n,a({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:d}),t().createElement(o,a({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),t().createElement(r,a({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),o}(e.Component);Do.defaultProps=Ao;var zo={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},jo=function(n){var r,i;return i=r=function(e){ar(s,e);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(r);if(i){var n=lr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return sr(this,e)});function s(){var e;or(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return I(s,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,r=this.props,i=(r.defaultInputValue,r.defaultMenuIsOpen,r.defaultValue,ir(r,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return t().createElement(n,a({},i,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),s}(e.Component),r.defaultProps=zo,i};var No,Io,Fo,Bo=jo(Do),Go=(No=Bo,Fo=Io=function(e){ar(o,e);var n,r,i=(n=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lr(n);if(r){var i=lr(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return sr(this,e)});function o(e){var t;return or(this,o),(t=i.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,n){var r=t.props,i=r.cacheOptions,o=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!o)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&t.optionsCache[o])t.setState({inputValue:o,loadedInputValue:o,loadedOptions:t.optionsCache[o],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:o,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(o,(function(e){t.mounted&&(e&&(t.optionsCache[o]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:o,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return o},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return I(o,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,n=this.props,r=(n.loadOptions,n.isLoading),i=ir(n,["loadOptions","isLoading"]),o=this.state,s=o.defaultOptions,l=o.inputValue,c=o.isLoading,u=o.loadedInputValue,d=o.loadedOptions,p=o.passEmptyOptions?[]:l&&u?d:s||[];return t().createElement(No,a({},i,{ref:function(t){e.select=t},options:p,isLoading:c||r,onInputChange:this.handleInputChange}))}}]),o}(e.Component),Io.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Fo);const Uo=Go;var Ho=ae(518),Wo=ae.n(Ho),qo=ae(9233),Vo=ae.n(qo);function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(null,arguments)}var Yo=ae(7290),Zo=ae.n(Yo);function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ko(e,t,n[t])}))}return e}function Ko(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(null,arguments)}const Jo=t().forwardRef(((e,n)=>t().createElement("div",Qo({ref:n},e))));Jo.displayName="InputComponent",Jo.propTypes={inputRef:m().oneOfType([m().func,m().shape({current:m().any.isRequired})])};const ea=e=>{const{children:n,innerProps:r,innerRef:i,selectProps:{classes:o,TextFieldProps:a={}}}=e;return t().createElement(Zo(),Qo({variant:"standard",fullWidth:!0},a,{InputProps:Xo({inputComponent:Jo},a.InputProps,{inputProps:Xo({className:o.control,ref:i,children:n},r,a.inputProps)})}))};function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(null,arguments)}ea.propTypes={children:m().node,innerProps:m().shape({onMouseDown:m().func.isRequired}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]).isRequired,selectProps:m().shape({classes:m().shape({control:m().string.isRequired}),TextFieldProps:m().object})};const na=e=>{const{selectProps:{classes:n},innerProps:r}=e;return t().createElement(Vo(),ta({},r,{className:n.dropdownIndicator,size:"large"}),t().createElement(er(),null))};na.propTypes={innerProps:m().shape({onMouseDown:m().func.isRequired,onTouchEnd:m().func.isRequired,"aria-hidden":m().string.isRequired}).isRequired,selectProps:m().shape({classes:m().object.isRequired}).isRequired};const ra=e=>{const{children:n,selectProps:{classes:r}}=e;return t().createElement(A(),{variant:"subtitle2",className:Qn()(r.groupHeading)},n)};ra.propTypes={children:m().node,selectProps:m().shape({classes:m().shape({groupHeading:m().string})})};var ia=ae(4436),oa=ae.n(ia);function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(null,arguments)}const sa=e=>{const{selectProps:{classes:n},innerProps:r,innerRef:i,getStyles:o,children:a}=e;return t().createElement(oa(),aa({ref:i,style:o("menu",e),className:n.menu},r),a)};sa.propTypes={children:m().element.isRequired,innerProps:m().object.isRequired,selectProps:m().object.isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]),getStyles:m().func};var la=ae(6091),ca=ae.n(la),ua=ae(5635),da=ae.n(ua);function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(null,arguments)}const fa=e=>{const{children:n,selectProps:r,removeProps:i}=e;return t().createElement(ca(),{tabIndex:-1,label:n,className:r.classes.multiValue,classes:{label:r.classes.multiValue__label},onDelete:i.onClick,deleteIcon:t().createElement(da(),pa({},e.removeProps,{style:{height:"18px",width:"18px",color:"rgba(0,0,0,0.38)",marginRight:"8px"}}))})};fa.propTypes={children:m().node,isFocused:m().bool.isRequired,removeProps:m().shape({onClick:m().func.isRequired,onMouseDown:m().func.isRequired,onTouchEnd:m().func.isRequired}).isRequired,selectProps:m().object.isRequired};const ha=e=>{const{selectProps:{classes:n},children:r}=e;return t().createElement(A(),{color:"textSecondary",className:n.noOptionsMessage},r)};ha.propTypes={children:m().node,selectProps:m().object.isRequired};var ma=ae(3222),ga=ae.n(ma),va=ae(4073),ya=ae.n(va),ba=ae(2436),wa=ae.n(ba),xa=function(e,t){return xa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xa(e,t)};"function"==typeof SuppressedError&&SuppressedError;var Ea=function(e){return"function"==typeof e},_a=function(){return"undefined"==typeof window},Oa=function(e){return e instanceof Element||e instanceof HTMLDocument},Sa=function(n){function r(t){var r=n.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!_a()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(_a())return null;if(t)return document.querySelector(t);if(n&&Oa(n))return n;if(r.targetRef&&Oa(r.targetRef.current))return r.targetRef.current;var i=(0,Wr.findDOMNode)(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,s=t.onResize;(i||a)&&e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,o=t.height;!r.skipOnMount&&!_a()&&function(e){var t=e.width,n=e.height;r.state.width===t&&r.state.height===n||r.state.width===t&&!a||r.state.height===n&&!i||(null==s||s(t,n),r.setState({width:t,height:n}))}({width:n,height:o}),r.skipOnMount=!1}))},r.getRenderType=function(){var t=r.props,n=t.render,i=t.children;return Ea(n)?"renderProp":Ea(i)?"childFunction":(0,e.isValidElement)(i)?"child":Array.isArray(i)?"childArray":"parent"};var i=t.skipOnMount,o=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,l=t.refreshOptions;return r.state={width:void 0,height:void 0},r.sizeRef={current:r.state},r.skipOnMount=i,r.targetRef=(0,e.createRef)(),r.observableElement=null,_a()||(r.resizeHandler=function(e,t,n,r){switch(t){case"debounce":return ya()(e,n,r);case"throttle":return wa()(e,n,r);default:return e}}(r.createResizeHandler,o,s,l),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}xa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,n),r.prototype.componentDidMount=function(){this.attachObserver()},r.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},r.prototype.componentWillUnmount=function(){_a()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},r.prototype.render=function(){var n=this.props,r=n.render,i=n.children,o=n.nodeType,a=void 0===o?"div":o,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==r?void 0:r(l);case"childFunction":return null==i?void 0:i(l);case"child":var c=i;if(c.type&&"string"==typeof c.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(l,["targetRef"]);return(0,e.cloneElement)(c,u)}return(0,e.cloneElement)(c,l);case"childArray":return i.map((function(t){return!!t&&(0,e.cloneElement)(t,l)}));default:return t().createElement(a,null)}},r}(e.PureComponent),Ca=ae(3627),ka=ae.n(Ca);const La=qn((e=>({tooltip:e.tooltip,popper:{zIndex:1e4}})));function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pa.apply(null,arguments)}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ra(e,t,n[t])}))}return e}function Ra(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Aa=n=>{let{children:r,value:i="",className:o,showOnExceededWidth:a=!0,showOnExceededHeight:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["children","value","className","showOnExceededWidth","showOnExceededHeight"]);const c=La(),u=(0,e.useRef)(),[d,p]=(0,e.useState)(!1),f=()=>p(((e,t,n)=>e&&(t&&e.clientWidth<e.scrollWidth||n&&e.clientHeight<e.scrollHeight))(u.current,a,s));return(0,e.useEffect)(f,[s,a,i]),t().createElement(t().Fragment,null,t().createElement(Sa,{handleWidth:a,handleHeight:s,onResize:f,refreshMode:"debounce",refreshRate:100}),t().createElement(ka(),Pa({ref:u,title:d?i:"",classes:Ta({},c,{tooltip:o})},l),r))};function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ma.apply(null,arguments)}const Da=e=>{const{innerProps:n,innerRef:r,children:i,isFocused:o,isSelected:a,label:s,selectProps:{classes:l}}=e;return t().createElement(ga(),Ma({className:Qn()(l.option,{[l["option--selected"]]:a}),ref:r,selected:o,component:"div"},n),t().createElement(Aa,{value:s},t().createElement("div",{className:l["option--item"]},i)))};function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},za.apply(null,arguments)}Da.propTypes={children:m().node,innerProps:m().shape({id:m().string.isRequired,key:m().string,onClick:m().func.isRequired,onMouseMove:m().func.isRequired,onMouseOver:m().func.isRequired,tabIndex:m().number.isRequired}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]),isFocused:m().bool.isRequired,isSelected:m().bool.isRequired,label:m().string,selectProps:m().shape({classes:m().shape({option:m().string,"option--selected":m().string})})};const ja=e=>{const{selectProps:{classes:n},innerProps:r={},children:i}=e;return t().createElement(A(),za({color:"textSecondary",className:n.placeholder},r),i)};function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(null,arguments)}ja.propTypes={children:m().node,innerProps:m().object,selectProps:m().object.isRequired};const Ia=e=>{const{selectProps:{classes:n},innerProps:r,children:i}=e;return t().createElement(A(),Na({className:n.singleValue},r),i)};Ia.propTypes={children:m().node,innerProps:m().object,selectProps:m().object.isRequired};const Fa=e=>{const{selectProps:{classes:n},children:r,isMulti:i}=e;return t().createElement("div",{className:Qn()(n.valueContainer,{[n["valueContainer--multi"]]:i})},r)};Fa.propTypes={children:m().node,selectProps:m().object.isRequired,isMulti:m().bool};const Ba={ClearIndicator:({selectProps:{classes:e},innerProps:n})=>t().createElement(Vo(),$o({},n,{className:e.clearIndicator,size:"large"}),t().createElement(Wo(),null)),Control:ea,DropdownIndicator:na,GroupHeading:ra,Menu:sa,MultiValue:fa,NoOptionsMessage:ha,Option:Da,Placeholder:ja,SingleValue:Ia,ValueContainer:Fa};function Ga(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ua=qn((e=>({control:{display:"flex","&&":{padding:0},height:"auto"},valueContainer:{display:"flex",flexWrap:"nowrap",flex:1,alignItems:"center",overflow:"hidden",marginLeft:e.spacing(1)},"valueContainer--multi":{flexWrap:"wrap"},multiValue:{margin:e.spacing(.5,.5),maxWidth:"calc(100% - 8px)"},multiValue__label:{paddingRight:0,marginRight:12,maxWidth:"100%",overflow:"hidden"},noOptionsMessage:{padding:e.spacing(1,2)},singleValue:{fontSize:16,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},placeholder:{position:"absolute",left:6,bottom:10,fontSize:16},menu:{zIndex:40,marginTop:e.spacing(1)},clearIndicator:{},dropdownIndicator:{},groupHeading:{paddingLeft:"28px"},option:{fontWeight:400},"option--selected":{fontWeight:400},"option--item":{display:"block",width:"100%",textOverflow:"ellipsis",overflow:"hidden"}})));function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(null,arguments)}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){qa(e,t,n[t])}))}return e}function qa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Va=e=>{function n(n){const{components:r,classes:i,error:o,TextFieldProps:a,innerRef:s}=n,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["components","classes","error","TextFieldProps","innerRef"]),c=Ua(),u=Wa({},Ba,r),d=((e,t)=>(0,x.union)(Object.keys(e),Object.keys(t)).reduce(((n,r)=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ga(e,t,n[t])}))}return e}({},n,{[r]:Qn()(e[r],t[r])})),{}))(c,i);return t().createElement(e,Ha({ref:s,components:u,classes:d,TextFieldProps:Wa({},a,{error:o})},l))}return n.displayName=`withMuiSkin(${e.displayName||e.name})`,n.defaultProps={components:{},classes:{}},n},$a=Va(Uo);e.Component;const Ya=Va(jo(Do)),Za=()=>null;var Xa=ae(1884),Ka=ae.n(Xa);const Qa=t().createContext(null);Qa.displayName="PopupBoundariesContext";var Ja=ae(1733),es=ae.n(Ja),ts=ae(5788),ns=ae.n(ts);const rs=({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a=0})=>{if(e){if(Date.now()-a>100&&r.current&&t.current&&n.current&&i.current){const o=e.getBoundingClientRect();r.current.style.top="0",r.current.style.left="0",r.current.style.right="0",r.current.style.height=o.top+"px",t.current.style.top="0",t.current.style.left="0",t.current.style.width=o.left+"px",t.current.style.bottom="0",n.current.style.top="0",n.current.style.left=o.right+"px",n.current.style.right="0",n.current.style.bottom="0",i.current.style.top=o.bottom+"px",i.current.style.left="0",i.current.style.right="0",i.current.style.bottom="0",a=Date.now()}o.current=requestAnimationFrame((()=>rs({anchorEl:e,leftBackdropRef:t,rightBackdropRef:n,topBackdropRef:r,bottomBackdropRef:i,rafIdRef:o,lastResizeTimestamp:a})))}},is=qn({backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10},popper:{zIndex:1300}});function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},os.apply(null,arguments)}const as=(0,e.forwardRef)(((n,r)=>{let{open:i,anchorEl:o,className:a,modal:s=!0,excludeAnchorFromBackdrop:l=!0,onClose:c=x.identity}=n,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["open","anchorEl","className","modal","excludeAnchorFromBackdrop","onClose"]);const d=is(),p=(0,e.useRef)(),f=(0,e.useRef)(),h=(0,e.useRef)(),m=(0,e.useRef)(),g=(0,e.useRef)();return(0,e.useEffect)((()=>{if(i&&s)return rs({anchorEl:o,leftBackdropRef:p,rightBackdropRef:f,topBackdropRef:h,bottomBackdropRef:m,rafIdRef:g}),()=>cancelAnimationFrame(g.current)}),[o,i,s]),t().createElement(t().Fragment,null,s&&i&&t().createElement(es(),{container:document.body},l?t().createElement(t().Fragment,null,t().createElement("div",{ref:h,className:d.backdrop,onClick:c}),t().createElement("div",{ref:f,className:d.backdrop,onClick:c}),t().createElement("div",{ref:m,className:d.backdrop,onClick:c}),t().createElement("div",{ref:p,className:d.backdrop,onClick:c})):t().createElement("div",{className:d.backdrop,onClick:c})),t().createElement(ns(),os({open:i,anchorEl:o},u,{className:Qn()(a,d.popper),ref:r})))}));as.displayName="Popper";const ss=qn({popper:{borderRadius:"4px",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",backgroundColor:"#FFFFFF",margin:0,zIndex:1e4}});function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ls.apply(null,arguments)}const cs=n=>{const{selectProps:{inputRef:r,menuIsOpen:i,inputValue:o},innerRef:a,children:s,innerProps:l}=n,[c,u]=(0,e.useState)("id");(0,e.useEffect)((()=>{u(((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())}),[o]);const d=ss(),p=(0,e.useContext)(Qa),f=Boolean(null==p?void 0:p.element),h=f?p.element.clientWidth:window.innerWidth;return t().createElement(as,{anchorEl:r.current,open:i,className:d.popper,key:c,modifiers:[{name:"preventOverflow",enabled:!0,options:{altAxis:!0,altBoundary:!0,tether:!1,boundary:f?p.element:document.body,padding:5}}],placement:"bottom-start"},t().createElement(oa(),ls({ref:a,style:{minWidth:Math.min((0,x.prop)("clientWidth",r.current),h),maxWidth:Math.min(521,h)}},l),s))};cs.propTypes={children:m().oneOfType([m().element,m().array]).isRequired,selectProps:m().shape({inputRef:m().object.isRequired,menuIsOpen:m().bool.isRequired,inputValue:m().string}).isRequired,innerRef:m().oneOfType([m().oneOf([null]),m().func,m().shape({current:m().any.isRequired})]).isRequired,innerProps:m().object.isRequired};const us=qn((e=>({addLabel:{display:"flex",padding:"0 7px",height:"35px",alignItems:"center",fontSize:"13px",fontWeight:"500",color:e.palette.primary.main,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",borderTop:"solid 1px rgba(0, 0, 0, 0.14)",backgroundColor:"rgba(0, 0, 0, 0.03)"},addIcon:{height:"18px",width:"18px",padding:"0 9px"}}))),ds=e=>{const{selectProps:{onCreate:n,createLabel:r,inputValue:i,components:o},children:a}=e,s=us();return t().createElement(cs,e,a,r&&!(0,x.prop)("Group",o)&&t().createElement("span",{className:s.addLabel,onClick:()=>n(i)},t().createElement(Ka(),{className:s.addIcon}),r))};ds.propTypes={children:m().element.isRequired,selectProps:m().object.isRequired};const ps=qn({singleValue:{fontSize:"14px",lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"17px"}});function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(null,arguments)}const hs=e=>{const{selectProps:{menuIsOpen:n},innerProps:r,children:i}=e,o=ps();return!n&&t().createElement(A(),fs({className:o.singleValue},r),i)};function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){gs(e,t,n[t])}))}return e}function gs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hs.propTypes={children:m().node,innerProps:m().object};const vs=qn({control:{height:"auto"},dropdownIndicator:{boxSizing:"content-box",transition:"transform .15s ease",padding:e=>(e.height-24)/2+"px 12px",cursor:"pointer",color:"rgba(0, 0, 0, 0.54)"},valueContainer:{marginLeft:"16px",width:0},formControl:{margin:0},filledInputRoot:{backgroundColor:"rgba(0, 0, 0, 0.03)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"},"&.focused":{backgroundColor:"rgba(0, 0, 0, 0.03)"}},filledInputUnderline:{"&:before":{display:"none"}},inputLabel:{color:"rgba(0,0,0,0.6)",fontSize:"14px",paddingLeft:"4px","&.shrink":{paddingLeft:"4px"}}}),ys={menu:e=>ms({},e,{borderRadius:"0 0 4px 4px",backgroundColor:"#FFFFFFFF",boxShadow:"0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2)",margin:0}),menuList:e=>ms({},e,{maxHeight:"208px",padding:"8px 0"}),group:e=>ms({},e,{padding:"0 0 8px 0"}),input:e=>ms({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:"16px 0 0",padding:0}),option:e=>ms({},e,{fontSize:"13px",lineHeight:"15px",height:"32px"})},bs={menuList:e=>ms({},e,{padding:0})},ws={input:e=>ms({},e,{height:"16px",color:"rgba(0, 0, 0, 0.87)",fontSize:"14px",lineHeight:"16px",margin:0,padding:0})};function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){_s(e,t,n[t])}))}return e}function _s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Os=n=>{let{value:r,label:i,createLabel:o,getOptions:a,options:s,height:l=46,onChange:c=x.identity,onCreate:u,onClear:d=x.identity,components:p,textFieldInputRef:f,TextFieldProps:h,classes:m}=n,g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["value","label","createLabel","getOptions","options","height","onChange","onCreate","onClear","components","textFieldInputRef","TextFieldProps","classes"]);const v=vs({height:l}),[y,b]=(0,e.useState)(!1),w=(0,e.useRef)(null),_=a?$a:Ya,O=(0,x.prop)("ClearIndicator",p)?{}:{IndicatorSeparator:Za,ClearIndicator:Za},S=u?(e,t)=>{u(e,t),b(!1)}:void 0,C=(0,x.prop)("Group",p)?bs:{},k=(0,x.isEmpty)(i)?ws:{},L=Es({},ys,C,k),P=Es({},v,m);return t().createElement(_,xs({placeholder:"",defaultOptions:!0},g,{value:(0,x.defaultTo)(null,r),loadOptions:a,options:s,cacheOptions:!0,onChange:c,onCreate:S,onClear:d,createLabel:o,classes:P,styles:L,components:Es({DropdownIndicator:rr,LoadingIndicator:Za,SingleValue:hs,Menu:ds},O,p),menuPlacement:"auto",TextFieldProps:Es({},h,{label:i,variant:"filled",size:"small",classes:Es({},(0,x.prop)("classes",h),{root:Qn()(v.formControl,(0,x.path)(["classes","root"],h))}),inputProps:Es({},(0,x.prop)("inputProps",h)),InputProps:Es({},(0,x.prop)("InputProps",h),{classes:Es({},(0,x.path)(["InputProps","classes"],h),{root:Qn()(v.filledInputRoot,(0,x.path)(["InputProps","classes","root"],h)),underline:Qn()({[v.filledInputUnderline]:(0,E.isEmptyValue)(r)},(0,x.path)(["InputProps","classes","underline"],h)),focused:Qn()("focused",(0,x.path)(["InputProps","classes","focused"],h))})}),InputLabelProps:Es({},(0,x.prop)("InputLabelProps",h),{classes:Es({},(0,x.path)(["InputLabelProps","classes"],h),{root:Qn()(v.inputLabel,(0,x.path)(["InputLabelProps","classes","root"],h)),shrink:Qn()("shrink",(0,x.path)(["InputLabelProps","classes","shrink"],h))}),shrink:!(0,E.isEmptyValue)(r)||void 0}),ref:f||w}),inputRef:f||w,menuIsOpen:y,onMenuOpen:()=>b(!0),onMenuClose:()=>b(!1)}))},Ss={value:m().oneOfType([m().object,m().array]),label:m().string.isRequired,getOptions:m().func,options:m().array,onChange:m().func,onCreate:m().func,onClear:m().func,createLabel:m().string,components:m().object,textFieldInputRef:m().object,TextFieldProps:m().object,height:m().number,classes:m().object};Os.propTypes=Ss;const Cs={BY_LABEL:ao({stringify:(0,x.prop)("label")})};var ks=ae(8018);const Ls="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Ps=(t,n)=>{const r=e.useContext(t),{value:{current:i},version:{current:o},listeners:a}=r,s=n(i),[l,c]=e.useReducer(((e,t)=>{if(!t)return[i,s];if(t[0]<=o)return Ts(e[1],s)?e:[i,s];try{if(Ts(e[0],t[1]))return e;const r=n(t[1]);return Ts(e[1],r)?e:[t[1],r]}catch(e){}return[e[0],e[1]]}),[i,s]);return Ts(l[1],s)||c(void 0),Ls((()=>(a.push(c),()=>{const e=a.indexOf(c);a.splice(e,1)})),[a]),l[1]},Ts="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};var Rs=ae(4616);const As=t=>{const n=e.createContext({value:{current:t},version:{current:-1},listeners:[]});var r;return n.Provider=(r=n.Provider,t=>{const n=e.useRef(t.value),i=e.useRef(0),o=e.useRef();return o.current||(o.current={value:n,version:i,listeners:[]}),Ls((()=>{n.current=t.value,i.current+=1,(0,Rs.unstable_runWithPriority)(Rs.unstable_NormalPriority,(()=>{o.current.listeners.forEach((e=>{e([i.current,t.value])}))}))}),[t.value]),e.createElement(r,{value:o.current},t.children)}),delete n.Consumer,n},Ms=As({}),Ds=As({}),zs=(As({}),e=>Ps(Ds,e));function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(null,arguments)}const Ns=e=>{const n=zs((e=>e.absoluteImagePath))||"";return t().createElement(ks.ZP,js({},e,{storagePath:(r=n,r.endsWith("/")?r:r+"/")}));var r},Is=qn({dropDownSelector:{width:"276px"},entityTypeAvatar:{width:"20px",height:"20px",marginRight:"8px"},entityTypeLabel:{fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis"},text:{overflow:"hidden"},container:{width:"100%"},valueContainer:{paddingLeft:"0","&:hover":{backgroundColor:"transparent"}}}),Fs=({selectOption:e,data:n,type:r,isFocused:i,innerRef:o})=>{const a=Is(),s=(0,E.getLabel)(n.label),l="option"===r,c=l?()=>e(n):x.identity;return t().createElement(ga(),{ref:o,selected:i,className:Qn()(a.container,{[a.valueContainer]:!l}),onClick:c,disableRipple:!l},t().createElement(Ns,{className:a.entityTypeAvatar,entityType:n}),t().createElement("div",{className:a.text},t().createElement(Aa,{value:s},t().createElement(A(),{className:a.entityTypeLabel},s))))},Bs=({value:e,options:n,onChange:r})=>{const i=Is(),o=n.length?"":L().text("There are no available entity types");return t().createElement(Os,{height:40,className:i.dropDownSelector,value:e,filterOption:Cs.BY_LABEL,options:n,onChange:r,components:{Option:Fs,SingleValue:Fs},label:o})},Gs=qn({header:{backgroundColor:"rgba(255, 255, 255, 1)",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"},headerTitle:{fontSize:"18px"},divider:{marginLeft:"24px",marginRight:"16px",height:"42px",borderColor:"rgba(0, 0, 0, 0.12)"}}),Us=({selectedEntityType:e,entityTypes:n,showEntityTypeSelector:r,onChangeEntityType:i})=>{const o=Gs();return t().createElement(Yn,{className:o.header},t().createElement(A(),{className:o.headerTitle},L().text("Data Model")),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{orientation:"vertical",className:o.divider}),t().createElement(Bs,{value:e,options:n,onChange:i})))},Hs=qn({tableContainer:{boxSizing:"border-box",padding:"0 16px 0 16px",marginTop:"16px",overflow:"hidden",position:"absolute",top:0,bottom:0,left:0,right:0}});let Ws=function(e){return e.AttributeLabel="attributeLabel",e.Name="name",e.Type="type",e.Description="description",e.Sources="sources",e}({});const qs=(0,e.createContext)({loadedAttributesSourcesRef:{current:{}},entityTypeUri:null}),Vs=({children:n,entityTypeUri:r})=>{const i=(0,e.useRef)({}),o=(0,e.useMemo)((()=>({loadedAttributesSourcesRef:i,entityTypeUri:r})),[r]);return t().createElement(qs.Provider,{value:o},n)};var $s=ae(3643),Ys=ae.n($s);const Zs=qn({attributesListHeader:{backgroundColor:"white",minHeight:"48px",borderBottom:"1px solid rgba(0, 0, 0, 0.05)",alignItems:"center",fontWeight:"500",lineHeight:"16px",paddingRight:"6px"},columnWithPadding:{paddingLeft:"16px"},rightSidePaneStyles:{fontSize:"12px"}}),Xs=({columnsData:e,isRightSidePanel:n})=>{const r=Zs();return t().createElement(Ys(),{container:!0,className:r.attributesListHeader},e.map((({id:e,size:i,isWithPadding:o})=>t().createElement(Ys(),{key:e,item:!0,xs:i,className:Qn()({[r.columnWithPadding]:o,[r.rightSidePaneStyles]:n})},(e=>{switch(e){case Ws.AttributeLabel:return L().text("Attribute label");case Ws.Name:return L().text("Name");case Ws.Type:return L().text("Type");case Ws.Description:return L().text("Description");case Ws.Sources:return L().text("Contributing sources");default:return""}})(e)))))};var Ks=ae(4539),Qs=ae.n(Ks);function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(null,arguments)}const el=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Js({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg2452379238a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"14",height:"8"},t().createElement("path",{d:"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z",fill:"#000"})),t().createElement("g",{mask:"url(#svg2452379238a)"},t().createElement("path",{fill:"#000",fillOpacity:".54",d:"M0 0h16v16H0z"})))};function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(null,arguments)}const nl=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",tl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg4130327632a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.95 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.948 12v-1.1h1.1V12h-1.1zM13.651 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z",fill:"#000"})),t().createElement("g",{mask:"url(#svg4130327632a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rl.apply(null,arguments)}const il=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",rl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M2.11 12v-.825h1.331V5.169L2 5.741V4.85l1.331-.55h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z",fill:"#000",fillOpacity:".541"}))};function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(null,arguments)}const al=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",ol({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z",fill:"#000",fillOpacity:".541"}))};function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sl.apply(null,arguments)}const ll=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",sl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.667 12h2v-.667c0-.368.298-.666.666-.666H12c.368 0 .667.298.667.666V14a.667.667 0 01-.667.667H9.333A.667.667 0 018.667 14v-.667H5.333v-8H4a.667.667 0 01-.667-.666V2c0-.368.299-.667.667-.667h4c.368 0 .667.299.667.667v2.667A.667.667 0 018 5.333H6.667v2h2v-.666c0-.369.298-.667.666-.667H12c.368 0 .667.298.667.667v2.666A.667.667 0 0112 10H9.333a.667.667 0 01-.666-.667v-.666h-2V12z",fill:"#000",fillOpacity:".54"}))};function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cl.apply(null,arguments)}const ul=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",cl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z",fill:"#000",fillOpacity:".54"}))};function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(null,arguments)}const pl=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",dl({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("mask",{id:"svg1811967645a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"4",width:"13",height:"8"},t().createElement("path",{d:"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z",fill:"#000"})),t().createElement("g",{mask:"url(#svg1811967645a)"},t().createElement("path",{fill:"#000",fillOpacity:".541",d:"M0 0h16v16H0z"})))};function fl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hl=e=>{switch(e){case E.DataTypes.TYPE_NUMBER:case E.DataTypes.TYPE_LONG:return nl;case E.DataTypes.TYPE_INT:return il;case E.DataTypes.TYPE_BOOLEAN:case E.DataTypes.TYPE_BOOLEAN_RADIO:return al;case E.DataTypes.TYPE_NESTED:case E.DataTypes.TYPE_REFERENCE:return ll;case E.DataTypes.TYPE_DATE:case E.DataTypes.TYPE_TIMESTAMP:return ul;case E.DataTypes.TYPE_SSN:return pl;default:return el}},ml=(0,x.pipe)((0,x.defaultTo)([]),(0,x.count)((0,x.complement)(E.isHiddenAttribute))),gl=qn({label:{margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{position:"relative",padding:"9px 16px 9px 20px",boxSizing:"border-box",height:"100%",overflow:"hidden"},labelTittle:{margin:"0 0 4px 0",padding:0,display:"flex",alignItems:"center",fontSize:"13px"},icon:{marginRight:"8px"},description:{margin:0,padding:"0 0 0 24px",fontSize:"12px",lineHeight:"16px",color:"rgba(0, 0, 0, 0.54)",display:"-webkit-box",maxWidth:"100%",lineClamp:3,boxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},complex:{cursor:"pointer"}}),vl=(0,e.memo)((({label:e,type:n,description:r,isComplex:i})=>{const o=gl(),a=hl(n);return t().createElement("div",{className:Qn()(o.labelContainer,{[o.complex]:i})},t().createElement("div",{className:o.labelTittle},t().createElement(a,{className:o.icon}),t().createElement(Aa,{value:e},t().createElement("p",{className:o.label},e))),t().createElement(Aa,{showOnExceededHeight:!0,value:r},t().createElement("p",{className:o.description},r)))}));vl.displayName="LabelComponentWithDescription";const yl=qn({container:{display:"flex",height:"100%",position:"relative",marginLeft:"10px"},treeLine:{height:"100%",width:"12px"},treeLineBorder:{borderRight:"1px solid rgba(0, 114, 206, 0.3)"},treeLineLastElement:{width:"12px",height:"50%",borderRight:"1px solid rgba(0, 114, 206, 0.3)"},marker:{top:"50%",right:"-3px",position:"absolute",width:"4px",height:"1px",backgroundColor:"rgba(0, 114, 206, 0.3)"},rightSidePanelMarker:{top:"16px"},rightPanelTreeLineLastElement:{height:"16px"}}),bl=({level:e,isLastAttributeInGroup:n,parentLevelsWithoutElementsBelow:r,isRightSidePanel:i})=>{const o=yl();return t().createElement("div",{className:o.container},Array(e).fill(null).map(((a,s)=>{const l=n&&s+1===e;return t().createElement("div",{"data-reltio-id":"tree-list-item",className:Qn()(o.treeLine,{[o.treeLineBorder]:!r.includes(s+1),[o.treeLineLastElement]:l,[o.rightPanelTreeLineLastElement]:i&&l}),key:s},t().createElement("div",{"data-reltio-id":"tree-list-item-marker",className:Qn()({[o.marker]:s+1===e,[o.rightSidePanelMarker]:i})}))})))},wl=qn((e=>({tooltip:e.tooltip,wrapper:{lineHeight:0}})));function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xl.apply(null,arguments)}const El=n=>{const r=(0,e.forwardRef)(((e,r)=>{let{tooltipTitle:i,tooltipPlacement:o,showForDisabled:a=!1}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["tooltipTitle","tooltipPlacement","showForDisabled"]);const l=wl();return i?t().createElement(ka(),{ref:r,title:i,placement:o||"bottom",disableFocusListener:!0,disableTouchListener:!0,classes:{tooltip:l.tooltip},PopperProps:{modifiers:[{name:"preventOverflow",options:{altAxis:!0}}]}},(e=>e?t().createElement("span",{ref:r,className:l.wrapper},t().createElement(n,s)):t().createElement(n,xl({ref:r},s)))(a)):t().createElement(n,xl({ref:r},s))}));return r.displayName="WithTooltip",r};var _l=ae(5743),Ol=ae.n(_l);let Sl=function(e){return e[e.ICON_MODE=0]="ICON_MODE",e[e.TEXT_MODE=1]="TEXT_MODE",e[e.ERROR_MODE=2]="ERROR_MODE",e}({});function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cl.apply(null,arguments)}const kl=n=>{let{className:r,icon:i,avatarText:o,rootClasses:a}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["className","icon","avatarText","rootClasses"]);const[l,c]=(0,e.useState)(null);(0,e.useEffect)((()=>{c(i?Sl.ICON_MODE:Sl.TEXT_MODE)}),[i,o]);const u=()=>{c(Sl.ERROR_MODE)};switch(l){case Sl.ICON_MODE:return t().createElement(Ol(),Cl({className:Qn()(r,null==a?void 0:a.iconRoot),src:i,onError:u},s));case Sl.TEXT_MODE:case Sl.ERROR_MODE:return t().createElement(Ol(),Cl({className:Qn()(r,null==a?void 0:a.textRoot)},s),o);default:return null}},Ll=({sourceType:e,className:n,classes:r})=>{const i=zs((e=>e.metadata)),{uri:o,icon:a}=(0,E.findSourceSystemByUri)(i,e)||{},s=o?(0,E.getSourceSystemLabel)(i,o)[0]:"",l=a?(0,E.getAbsoluteImageUrl)("https://s3.amazonaws.com/reltio.images/api",a):null;return t().createElement(kl,{className:n,avatarText:s,icon:l,variant:"square",rootClasses:r})};var Pl=ae(2600),Tl=ae.n(Pl);const Rl=qn((e=>({sourcesContainer:{padding:"10px 10px 0 16px",color:"rgba(0, 0, 0, 0.87)"},source:{padding:"0 0 10px 0",margin:0},chipContainer:{position:"relative",top:"-2px",height:"19px",marginLeft:"6px",backgroundColor:"white",borderColor:e.palette.primary.main},chipLabel:{paddingLeft:"6px",paddingRight:"6px",fontSize:"13px",color:e.palette.primary.main},sourceContainer:{display:"flex"},sourceIcon:{height:"16px",width:"16px",marginRight:"4px"},sourceSystemRowSkeleton:{width:"55px",height:"20px","&:last-child":{marginBottom:"10px"}}}))),Al=El(ca()),Ml=(0,e.memo)((({attributeUri:e,sourcesData:n,parents:r})=>{const i=Rl(),{sourcesByAttributeName:o}=n,a=(0,E.attributeUriToSearchUri)(e,r),{sources:s=[],isLoading:l}=o[a]||{},[c,u]=(0,x.splitAt)(2,s),d=u.map(((e,n)=>t().createElement("div",{key:n},e)));return l?t().createElement("div",{className:i.sourcesContainer},t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton}),t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:i.sourceSystemRowSkeleton})):t().createElement("div",{className:i.sourcesContainer},c.map(((e,n)=>{const r=`configuration/sources/${e}`;return t().createElement("div",{className:i.sourceContainer,key:n},t().createElement(Ll,{className:i.sourceIcon,sourceType:r}),t().createElement("p",{className:i.source},e),!!u.length&&n===c.length-1&&t().createElement(Al,{"data-reltio-id":"sources-chip",tooltipTitle:d,label:`+ ${u.length}`,variant:"outlined",classes:{root:i.chipContainer,label:i.chipLabel}}))})))}));Ml.displayName="AttributeSources";const Dl=qn({attributeTypeContainer:{display:"flex",alignItems:"center",paddingRight:"16px"},text:{marginLeft:"16px",overflow:"hidden",textOverflow:"ellipsis"},icon:{flexShrink:0}}),zl=(0,e.memo)((({type:e})=>{const n=Dl(),r=hl(e);return t().createElement("div",{className:n.attributeTypeContainer},t().createElement(r,{className:n.icon}),t().createElement(Aa,{value:e},t().createElement("p",{className:n.text},e)))}));zl.displayName="AttributeTypeComponent";const jl=qn({basicCellStyles:{paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"}}),Nl=(0,e.memo)((({value:e,className:n})=>{const r=jl();return t().createElement(Aa,{value:e},t().createElement("p",{className:Qn()(r.basicCellStyles,n)},e))}));Nl.displayName="TableBasicCell";const Il="rgba(0, 0, 0, 0.05)",Fl=`1px solid ${Il}`,Bl=qn({container:{width:"100%"},expandIcon:{position:"absolute",opacity:"0.54",cursor:"pointer",top:"calc(50% - 12px)"},expandIconNormal:{transform:"rotate(-90deg)"},expandIconRotated:{transform:"rotate(0)"},attributeRow:{position:"relative",minHeight:"48px",width:"100%",display:"flex",alignItems:"center",fontSize:"13px",lineHeight:"15px",backgroundColor:"white"},divider:{width:"100%",borderColor:Il},label:{position:"relative",paddingLeft:"36px",paddingRight:"16px",overflow:"hidden",textOverflow:"ellipsis"},labelContainer:{display:"flex",alignItems:"center",minHeight:"48px",alignSelf:"stretch",position:"relative"},sourcesContainer:{alignSelf:"stretch",alignContent:"start",minHeight:"36px",borderLeft:Fl},rightSidePanelMinHeight:{minHeight:"36px"},isComplex:{cursor:"pointer"},rightSidePanelExpandIconPosition:{top:"6px"},attributeRowBorder:{borderLeft:Fl,borderRight:Fl}}),Gl=({attributeNode:n,level:r,attributesGroupLength:i,index:o,isParentLastInGroup:a,parentLevelsWithoutElementsBelow:s,columnsData:l,isRightSidePanel:c,sourcesData:u,parents:d,shouldCollapse:p})=>{const{label:f,description:h,name:m,children:g,analyticsAttributes:v,shouldExpand:y}=n,[b,w]=(0,e.useState)(!0),[O,C]=(0,e.useState)(!1),k=(0,E.isComplexAttribute)(n),L=Bl();(0,e.useEffect)((()=>{w(p||!y)}),[p,y]);const P=(0,_.useSelector)(S().selectors.getMetadata),T=((e,t)=>{if(null!=e&&e.includes("/attributeTypes/")){const n=t.attributeTypes.find((0,x.propEq)("uri",e));return(null==n?void 0:n.valueType)||""}return e})(n.type,P),R=o+1===i;a&&s.push(r-1);const A=[...g||[],...c?[]:(null==v?void 0:v.filter(E.isReadableAttribute))||[]],M=d.concat({name:m,label:f}),D=(0,e.useCallback)((e=>{switch(e){case Ws.Name:return t().createElement(Nl,{value:m});case Ws.Type:return t().createElement(zl,{type:T});case Ws.Description:return t().createElement(Nl,{value:h});case Ws.Sources:return t().createElement(Ml,{attributeUri:n.uri,sourcesData:u,parents:d});default:return null}}),[n.uri,T,h,m,d,u]),z=(0,x.find)((0,x.propEq)("id",Ws.AttributeLabel),l),j=(0,e.useMemo)((()=>(0,x.pipe)((0,x.reject)((({id:e})=>e===Ws.AttributeLabel)),(0,x.map)((({id:e,size:n})=>t().createElement(Ys(),{key:e,item:!0,xs:n,className:Qn()({[L.sourcesContainer]:e===Ws.Sources})},D(e)))))(l)),[l,D,L.sourcesContainer]);return t().createElement(Ys(),{container:!0,className:Qn()(L.attributeRow,{[L.rightSidePanelMinHeight]:c,[L.attributeRowBorder]:0===r&&!c}),"data-reltio-id":`level-${r}-row-${o}`},!!z&&t().createElement(Ys(),{item:!0,xs:z.size,className:Qn()(L.labelContainer,{[L.rightSidePanelMinHeight]:c}),onClick:()=>{y&&C(!0),w((e=>!e))}},k&&t().createElement(er(),{"data-reltio-id":"expand-icon",className:Qn()(L.expandIcon,{[L.rightSidePanelExpandIconPosition]:c,[L.expandIconNormal]:b,[L.expandIconRotated]:!b}),style:{left:12*(r+1)+"px"}}),t().createElement(bl,{isRightSidePanel:c,level:r,isLastAttributeInGroup:R,parentLevelsWithoutElementsBelow:s}),c?t().createElement(vl,{label:f,type:T,description:h,isComplex:k}):t().createElement(Nl,{value:f,className:Qn()(L.label,{[L.isComplex]:k})})),j,t().createElement(Xn(),{className:L.divider}),k&&t().createElement(Qs(),{in:!b,className:L.container,mountOnEnter:!0,unmountOnExit:!0},t().createElement(Ql,{isRightSidePanel:c,columnsData:l,key:r+1,attributeNodes:A,level:r+1,isParentLastInGroup:R,parentLevelsWithoutElementsBelow:[...s],parents:M,shouldCollapse:O})))},Ul=new Promise((()=>{})),Hl=({cancelPrevious:t=!0,cancelOnUnmount:n=!0}={})=>{const r=(0,e.useRef)(x.identity),i=()=>r.current();return(0,e.useEffect)((()=>()=>{n&&i()}),[]),(0,e.useCallback)((e=>(t&&i(),new Promise(((t,n)=>{r.current=()=>n("canceled"),e.then(t,n)})).catch((function(e){if("canceled"===e)return Ul;throw e})))),[])};var Wl=ae(4176);const ql=qn((()=>({errorBlock:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",minHeight:"58px",left:0,right:0,width:"calc(100% - 64px)",maxWidth:"1280px",margin:"0 auto",zIndex:1e4}})));function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(null,arguments)}const $l=Wl.ZP.addError,Yl=n=>{let{showErrorFromStore:r}=n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["showErrorFromStore"]);const o=ql(),a=(c="errorSet",Ps(Ms,(e=>e[c]))),s=zs((e=>e.autoCloseInterval)),l=zs((e=>e.uiError));var c;return(0,e.useEffect)((()=>{l&&r&&(Yl.addError({title:L().text("Error"),message:l}),a(null))}),[a,l,r]),t().createElement(es(),{container:document.body},t().createElement(Wl.ZP,Vl({classes:{errorBlock:Qn()(o.errorBlock,(0,x.path)(["classes","errorBlock"],i))},autoCloseInterval:s},i)))};Yl.addError=$l;const Zl=(e,t)=>{const{title:n=L().text("Error"),message:r,defaultMessage:i}=t||{};console.warn(e),Yl.addError({title:n,message:r||(0,E.getRequestErrorMessage)(e,i)})};function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Kl(e,t,n[t])}))}return e}function Kl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ql=({attributeNodes:n,level:r,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o=[],columnsData:a,isRightSidePanel:s,parents:l=[],shouldCollapse:c})=>{const u=((t,n)=>{const{loadedAttributesSourcesRef:r,entityTypeUri:i}=(()=>{const t=(0,e.useContext)(qs);if(void 0===t)throw new Error("AttributesTableSources must be used within a AttributesTableSourcesProvider");return t})(),o=Hl(),[a,s]=(0,e.useState)({}),l=(0,e.useRef)(null);(0,e.useEffect)((()=>(l.current=new AbortController,()=>{l.current.abort()})),[]);const c=(0,e.useCallback)((async(e,t)=>{const n=(0,x.reduce)(((e,t)=>Xl({},e,{[t]:{isLoading:!0}})),{},e);s((e=>Xl({},e,n)));try{const n=await o((0,E.getDQChartsData)({entityTypeUri:i,attributes:e,dataLevel:E.DQDataLevel.ATTRIBUTE_TYPE,metrics:[E.DQMetric.CROSSWALK_ANALYSIS]},l.current.signal));if("statistic"in n){const e=(0,x.map)((e=>({sources:Object.keys(e.crosswalkAnalysis.data),isLoading:!1})),n.statistic);s((t=>Xl({},t,e))),Object.assign(t,e)}}catch(e){const t=(0,x.map)((0,x.assoc)("isLoading",!1),n);s(t),Zl(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}}),[]);return(0,e.useEffect)((()=>{if(!i||!t.length)return;const e=t.map((({uri:e})=>(0,E.attributeUriToSearchUri)(e,n))),o=r.current,[a,l]=(0,x.partition)((0,x.includes)(x.__,(0,x.keys)(o)),e);if(l.length||(0,E.isEmptyValue)(o)){if(a.length){const e=(0,x.pick)(a,o);s(e)}l.length&&c(l,o)}else s(o)}),[]),{sourcesByAttributeName:a}})(n,l);return t().createElement(t().Fragment,null,n.map(((e,d)=>t().createElement(Gl,{sourcesData:u,isRightSidePanel:s,columnsData:a,key:e.uri,attributeNode:e,level:r,index:d,attributesGroupLength:n.length,isParentLastInGroup:i,parentLevelsWithoutElementsBelow:o,parents:l,shouldCollapse:c}))))},Jl=qn({attributesListContainer:{height:"100%",overflow:"auto"}}),ec=({columnsData:e,attributeNodesList:n,isRightSidePanel:r,metadataTypeUri:i})=>{const o=Jl(),a=(0,E.isEntityTypeUri)(i)?i:null;return t().createElement(Vs,{entityTypeUri:a},t().createElement(Xs,{columnsData:e,isRightSidePanel:r}),t().createElement("div",{className:o.attributesListContainer},t().createElement(Ql,{attributeNodes:n,level:0,columnsData:e,isRightSidePanel:r})))},tc=[{id:Ws.AttributeLabel,size:3,isWithPadding:!0},{id:Ws.Name,size:2},{id:Ws.Type,size:2},{id:Ws.Description,size:5}],nc=({entityType:e})=>{const n=Hs(),r=(0,_.useSelector)(S().selectors.getMetadata),i=e?(0,E.getAllAttributeTypesTree)(r,e):[];return t().createElement("div",{key:null==e?void 0:e.uri,className:n.tableContainer},t().createElement(ec,{columnsData:tc,attributeNodesList:i}))},rc=t().createContext({settings:{},onChange:()=>{}});rc.displayName="PerspectivesSettingsContext";const ic=t=>{const{settings:n,onChange:r}=(0,e.useContext)(rc)||{},i=null==n?void 0:n[t];return{updatePerspectiveSettings:(0,e.useCallback)((e=>{r(t,e)}),[t,r]),perspectiveSettings:i}},{createElement:oc,createContext:ac,createRef:sc,forwardRef:lc,useCallback:cc,useContext:uc,useEffect:dc,useImperativeHandle:pc,useLayoutEffect:fc,useMemo:hc,useRef:mc,useState:gc}=e,vc=e["useId".toString()],yc=fc,bc=ac(null);bc.displayName="PanelGroupContext";const wc=yc,xc="function"==typeof vc?vc:()=>null;let Ec=0;function _c(e=null){const t=xc(),n=mc(e||t||null);return null===n.current&&(n.current=""+Ec++),null!=e?e:n.current}function Oc({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:a,maxSize:s,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:p,style:f,tagName:h="div",...m}){const g=uc(bc);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:y,getPanelSize:b,getPanelStyle:w,groupId:x,isPanelCollapsed:E,reevaluatePanelConstraints:_,registerPanel:O,resizePanel:S,unregisterPanel:C}=g,k=_c(a),L=mc({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:s,minSize:l},id:k,idIsFromProps:void 0!==a,order:p});mc({didLogMissingDefaultSizeWarning:!1}),wc((()=>{const{callbacks:e,constraints:t}=L.current,o={...t};L.current.id=k,L.current.idIsFromProps=void 0!==a,L.current.order=p,e.onCollapse=c,e.onExpand=u,e.onResize=d,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=s,t.minSize=l,o.collapsedSize===t.collapsedSize&&o.collapsible===t.collapsible&&o.maxSize===t.maxSize&&o.minSize===t.minSize||_(L.current,o)})),wc((()=>{const e=L.current;return O(e),()=>{C(e)}}),[p,k,O,C]),pc(o,(()=>({collapse:()=>{v(L.current)},expand:e=>{y(L.current,e)},getId:()=>k,getSize:()=>b(L.current),isCollapsed:()=>E(L.current),isExpanded:()=>!E(L.current),resize:e=>{S(L.current,e)}})),[v,y,b,E,k,S]);const P=w(L.current,i);return oc(h,{...m,children:e,className:t,id:a,style:{...P,...f},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":k,"data-panel-size":parseFloat(""+P.flexGrow).toFixed(1)})}const Sc=lc(((e,t)=>oc(Oc,{...e,forwardedRef:t})));Oc.displayName="Panel",Sc.displayName="forwardRef(Panel)";let Cc=null,kc=null;function Lc(e,t){const n=function(e,t){if(t){const e=0!=(t&Gc),n=0!=(t&Uc);if(0!=(t&Fc))return e?"se-resize":n?"ne-resize":"e-resize";if(0!=(t&Bc))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);Cc!==n&&(Cc=n,null===kc&&(kc=document.createElement("style"),document.head.appendChild(kc)),kc.innerHTML=`*{cursor: ${n}!important;}`)}function Pc(e){return"keydown"===e.type}function Tc(e){return e.type.startsWith("pointer")}function Rc(e){return e.type.startsWith("mouse")}function Ac(e){if(Tc(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Rc(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}const Mc=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dc(e){const t=getComputedStyle(e);return"fixed"===t.position||!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=Ic(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||+t.opacity<1||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||!!Mc.test(t.willChange)||"touch"===t.webkitOverflowScrolling}function zc(e){let t=e.length;for(;t--;){const n=e[t];if(nu(n,"Missing node"),Dc(n))return n}return null}function jc(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Nc(e){const t=[];for(;e;)t.push(e),e=Ic(e);return t}function Ic(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Fc=1,Bc=2,Gc=4,Uc=8,Hc="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let Wc=[],qc=!1,Vc=new Map,$c=new Map;const Yc=new Set;function Zc(e){const{target:t}=e,{x:n,y:r}=Ac(e);qc=!0,Qc({target:t,x:n,y:r}),eu(),Wc.length>0&&(tu("down",e),e.preventDefault(),e.stopPropagation())}function Xc(e){const{x:t,y:n}=Ac(e);if(!qc){const{target:r}=e;Qc({target:r,x:t,y:n})}tu("move",e),Jc(),Wc.length>0&&e.preventDefault()}function Kc(e){const{target:t}=e,{x:n,y:r}=Ac(e);$c.clear(),qc=!1,Wc.length>0&&e.preventDefault(),tu("up",e),Qc({target:t,x:n,y:r}),Jc(),eu()}function Qc({target:e,x:t,y:n}){Wc.splice(0);let r=null;e instanceof HTMLElement&&(r=e),Yc.forEach((e=>{const{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=Hc?o.coarse:o.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Nc(e),b:Nc(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;nu(r,"Stacking order can only be calculated for elements with a common ancestor");const i=jc(zc(n.a)),o=jc(zc(n.b));if(i===o){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let i=e.length;for(;i--;){const n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i-o)}(r,i)>0){let e=r,t=!1;for(;e&&!e.contains(i);){if(p=e.getBoundingClientRect(),f=a,!0?p.x<f.x+f.width&&p.x+p.width>f.x&&p.y<f.y+f.height&&p.y+p.height>f.y:p.x<=f.x+f.width&&p.x+p.width>=f.x&&p.y<=f.y+f.height&&p.y+p.height>=f.y){t=!0;break}e=e.parentElement}if(t)return}Wc.push(e)}var p,f}))}function Jc(){let e=!1,t=!1;Wc.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;$c.forEach((e=>{n|=e})),e&&t?Lc("intersection",n):e?Lc("horizontal",n):t?Lc("vertical",n):null!==kc&&(document.head.removeChild(kc),Cc=null,kc=null)}function eu(){Vc.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",Kc),n.removeEventListener("pointerdown",Zc),n.removeEventListener("pointerleave",Xc),n.removeEventListener("pointermove",Xc)})),window.removeEventListener("pointerup",Kc),window.removeEventListener("pointercancel",Kc),Yc.size>0&&(qc?(Wc.length>0&&Vc.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",Kc),n.addEventListener("pointerleave",Xc),n.addEventListener("pointermove",Xc))})),window.addEventListener("pointerup",Kc),window.addEventListener("pointercancel",Kc)):Vc.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",Zc,{capture:!0}),n.addEventListener("pointermove",Xc))})))}function tu(e,t){Yc.forEach((n=>{const{setResizeHandlerState:r}=n,i=Wc.includes(n);r(e,i,t)}))}function nu(e,t){if(!e)throw console.error(t),Error(t)}function ru(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function iu(e,t,n=10){return 0===ru(e,t,n)}function ou(e,t,n){return 0===ru(e,t,n)}function au({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];nu(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return ru(n,s)<0&&(n=o&&ru(n,(i+s)/2)<0?i:s),n=Math.min(a,n),parseFloat(n.toFixed(10))}function su({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(ou(e,0))return t;const a=[...t],[s,l]=r;nu(null!=s,"Invalid first pivot index"),nu(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{const r=e<0?l:s,i=n[r];nu(i,`Panel constraints not found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(nu(null!=n,`Previous layout not found for panel index ${r}`),ou(n,o)){const t=c-n;ru(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,i=n[r];nu(i,`No panel constraints found for index ${r}`);const{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){const n=t[r];if(nu(null!=n,`Previous layout not found for panel index ${r}`),ou(n,c)){const t=n-o;ru(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let i=e<0?l:s,o=0;for(;;){const e=t[i];if(nu(null!=e,`Previous layout not found for panel index ${i}`),o+=au({panelConstraints:n,panelIndex:i,size:100})-e,i+=r,i<0||i>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const i=Math.abs(e)-Math.abs(c),o=t[r];nu(null!=o,`Previous layout not found for panel index ${r}`);const s=au({panelConstraints:n,panelIndex:r,size:o-i});if(!ou(o,s)&&(c+=o-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ou(e[n],t[n],undefined))return!1;return!0}(i,a))return i;{const r=e<0?l:s,i=t[r];nu(null!=i,`Previous layout not found for panel index ${r}`);const o=i+c,u=au({panelConstraints:n,panelIndex:r,size:o});if(a[r]=u,!ou(u,o)){let t=o-u,r=e<0?l:s;for(;r>=0&&r<n.length;){const i=a[r];nu(null!=i,`Previous layout not found for panel index ${r}`);const o=au({panelConstraints:n,panelIndex:r,size:i+t});if(ou(i,o)||(t-=o-i,a[r]=o),ou(t,0))break;e>0?r--:r++}}}return ou(a.reduce(((e,t)=>t+e),0),100)?a:i}function lu({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0;const s=n[0];return nu(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,i=l):(o+=c,a+=l)})),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}function cu(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function uu(e,t,n=document){const r=cu(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function du(e,t,n){const r=uu(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function pu(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;return t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function fu(e,t=document){return t.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function hu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function mu(e,t){const n="horizontal"===e,{x:r,y:i}=Ac(t);return n?r:i}function gu(e,t,n){t.forEach(((t,r)=>{const i=e[r];nu(i,`Panel data not found for index ${r}`);const{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,u),c&&(e||r)&&(!r||null!=u&&!iu(u,l)||iu(t,l)||r(),!e||null!=u&&iu(u,l)||!iu(t,l)||e())}}))}function vu(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function yu(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function bu(e){return`react-resizable-panels:${e}`}function wu(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function xu(e,t){try{const n=bu(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function Eu(e,t,n,r,i){var o;const a=bu(e),s=wu(t),l=null!==(o=xu(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function _u({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!ou(r,100))for(let e=0;e<t.length;e++){const t=n[e];nu(null!=t,`No layout data found for index ${e}`);const i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){const r=n[e];nu(null!=r,`No layout data found for index ${e}`);const o=au({panelConstraints:t,panelIndex:e,size:r});r!=o&&(i+=r-o,n[e]=o)}if(!ou(i,0))for(let e=0;e<t.length;e++){const r=n[e];nu(null!=r,`No layout data found for index ${e}`);const o=au({panelConstraints:t,panelIndex:e,size:r+i});if(r!==o&&(i-=o-r,n[e]=o,ou(i,0)))break}return n}const Ou={getItem:e=>(yu(Ou),Ou.getItem(e)),setItem:(e,t)=>{yu(Ou),Ou.setItem(e,t)}},Su={};function Cu({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=Ou,style:c,tagName:u="div",...d}){const p=_c(o),f=mc(null),[h,m]=gc(null),[g,v]=gc([]),y=mc({}),b=mc(new Map),w=mc(0),x=mc({autoSaveId:e,direction:r,dragState:h,id:p,keyboardResizeBy:s,onLayout:a,storage:l}),E=mc({layout:g,panelDataArray:[],panelDataArrayChanged:!1});mc({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),pc(i,(()=>({getId:()=>x.current.id,getLayout:()=>{const{layout:e}=E.current;return e},setLayout:e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current,i=_u({layout:e,panelConstraints:r.map((e=>e.constraints))});hu(n,i)||(v(i),E.current.layout=i,t&&t(i),gu(r,i,y.current))}})),[]),wc((()=>{x.current.autoSaveId=e,x.current.direction=r,x.current.dragState=h,x.current.id=p,x.current.onLayout=a,x.current.storage=l})),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){mc({didWarnAboutMissingResizeHandle:!1}),wc((()=>{if(!o)return;const e=cu(n,o);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:o,valueNow:a}=lu({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];nu(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,i,o]),dc((()=>{if(!o)return;const e=t.current;nu(e,"Eager values not found");const{panelDataArray:i}=e;nu(null!=pu(n,o),`No group found for id "${n}"`);const s=cu(n,o);nu(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");nu(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var i,o,a,s;const l=fu(t,r),c=cu(e,r),u=l?c.indexOf(l):-1;return[null!==(i=null===(o=n[u])||void 0===o?void 0:o.id)&&void 0!==i?i:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,i,o);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=i.findIndex((e=>e.id===s));if(l>=0){const e=i[l];nu(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=su({delta:ou(s,c)?d-c:c-s,initialLayout:r,panelConstraints:i.map((e=>e.constraints)),pivotIndices:du(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[o,e,t,n,r,i,a])}({committedValuesRef:x,eagerValuesRef:E,groupId:p,layout:g,panelDataArray:E.current.panelDataArray,setLayout:v,panelGroupElement:f.current}),dc((()=>{const{panelDataArray:t}=E.current;if(e){if(0===g.length||g.length!==t.length)return;let n=Su[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(Eu,100),Su[e]=n);const r=[...t],i=new Map(b.current);n(e,r,i,g,l)}}),[e,g,l]),dc((()=>{}));const _=cc((e=>{const{onLayout:t}=x.current,{layout:n,panelDataArray:r}=E.current;if(e.constraints.collapsible){const i=r.map((e=>e.constraints)),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=Pu(r,e,n);if(nu(null!=a,`Panel size not found for panel "${e.id}"`),!iu(a,o)){b.current.set(e.id,a);const l=su({delta:Lu(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});vu(n,l)||(v(l),E.current.layout=l,t&&t(l),gu(r,l,y.current))}}}),[]),O=cc(((e,t)=>{const{onLayout:n}=x.current,{layout:r,panelDataArray:i}=E.current;if(e.constraints.collapsible){const o=i.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=Pu(i,e,r),u=null!=t?t:l;if(iu(s,a)){const t=b.current.get(e.id),a=null!=t&&t>=u?t:u,l=su({delta:Lu(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});vu(r,l)||(v(l),E.current.layout=l,n&&n(l),gu(i,l,y.current))}}}),[]),S=cc((e=>{const{layout:t,panelDataArray:n}=E.current,{panelSize:r}=Pu(n,e,t);return nu(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),C=cc(((e,t)=>{const{panelDataArray:n}=E.current,r=Lu(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){const a=n[i];let s;return s=null==a?null!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:h,layout:g,panelData:n,panelIndex:r})}),[h,g]),k=cc((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Pu(n,e,t);return nu(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&iu(o,r)}),[]),L=cc((e=>{const{layout:t,panelDataArray:n}=E.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=Pu(n,e,t);return nu(null!=o,`Panel size not found for panel "${e.id}"`),!i||ru(o,r)>0}),[]),P=cc((e=>{const{panelDataArray:t}=E.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),E.current.panelDataArrayChanged=!0}),[]);wc((()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=x.current,{layout:r,panelDataArray:i}=E.current;let o=null;if(e){const t=function(e,t,n){var r,i;return null!==(i=(null!==(r=xu(e,n))&&void 0!==r?r:{})[wu(t)])&&void 0!==i?i:null}(e,i,n);t&&(b.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,i=100;for(let o=0;o<e.length;o++){const e=n[o];nu(e,`Panel constraints not found for index ${o}`);const{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){const a=n[o];nu(a,`Panel constraints not found for index ${o}`);const{defaultSize:s}=a;if(null!=s)continue;const l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:i}));const a=_u({layout:o,panelConstraints:i.map((e=>e.constraints))});hu(r,a)||(v(a),E.current.layout=a,t&&t(a),gu(i,a,y.current))}})),wc((()=>{const e=E.current;return()=>{e.layout=[]}}),[]);const T=cc((e=>function(t){t.preventDefault();const n=f.current;if(!n)return()=>null;const{direction:r,dragState:i,id:o,keyboardResizeBy:a,onLayout:s}=x.current,{layout:l,panelDataArray:c}=E.current,{initialLayout:u}=null!=i?i:{},d=du(o,e,n);let p=function(e,t,n,r,i,o){if(Pc(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,i){const o="horizontal"===n,a=fu(t,i);nu(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");nu(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=mu(n,e),u=pu(s,i);nu(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(o?d.width:d.height)*100}(e,t,n,r,o)}(t,e,r,i,a,n);if(0===p)return;const h="horizontal"===r;"rtl"===document.dir&&h&&(p=-p);const m=su({delta:p,initialLayout:null!=u?u:l,panelConstraints:c.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:Pc(t)?"keyboard":"mouse-or-touch"}),g=!vu(l,m);var b,_;(Tc(t)||Rc(t))&&w.current!=p&&(w.current=p,b=e,_=g?0:h?p<0?Fc:Bc:p<0?Gc:Uc,$c.set(b,_)),g&&(v(m),E.current.layout=m,s&&s(m),gu(c,m,y.current))}),[]),R=cc(((e,t)=>{const{onLayout:n}=x.current,{layout:r,panelDataArray:i}=E.current,o=i.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=Pu(i,e,r);nu(null!=a,`Panel size not found for panel "${e.id}"`);const l=su({delta:Lu(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});vu(r,l)||(v(l),E.current.layout=l,n&&n(l),gu(i,l,y.current))}),[]),A=cc(((e,t)=>{const{layout:n,panelDataArray:r}=E.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=Pu(r,e,n);null!=u&&(o&&s&&iu(u,i)?iu(i,a)||R(e,a):u<c?R(e,c):u>l&&R(e,l))}),[R]),M=cc(((e,t)=>{const{direction:n}=x.current,{layout:r}=E.current;if(!f.current)return;const i=fu(e,f.current);nu(i,`Drag handle element not found for id "${e}"`);const o=mu(n,t);m({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})}),[]),D=cc((()=>{m(null)}),[]),z=cc((e=>{const{panelDataArray:t}=E.current,n=Lu(t,e);n>=0&&(t.splice(n,1),delete y.current[e.id],E.current.panelDataArrayChanged=!0)}),[]),j=hc((()=>({collapsePanel:_,direction:r,dragState:h,expandPanel:O,getPanelSize:S,getPanelStyle:C,groupId:p,isPanelCollapsed:k,isPanelExpanded:L,reevaluatePanelConstraints:A,registerPanel:P,registerResizeHandle:T,resizePanel:R,startDragging:M,stopDragging:D,unregisterPanel:z,panelGroupElement:f.current})),[_,h,r,O,S,C,p,k,L,A,P,T,R,M,D,z]),N={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return oc(bc.Provider,{value:j},oc(u,{...d,children:t,className:n,id:o,ref:f,style:{...N,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const ku=lc(((e,t)=>oc(Cu,{...e,forwardedRef:t})));function Lu(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function Pu(e,t,n){const r=Lu(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function Tu({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:a,onFocus:s,style:l={},tabIndex:c=0,tagName:u="div",...d}){var p,f;const h=mc(null),m=mc({onDragging:a});dc((()=>{m.current.onDragging=a}));const g=uc(bc);if(null===g)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:y,registerResizeHandle:b,startDragging:w,stopDragging:x,panelGroupElement:E}=g,_=_c(i),[O,S]=gc("inactive"),[C,k]=gc(!1),[L,P]=gc(null),T=mc({state:O});wc((()=>{T.current.state=O})),dc((()=>{if(n)P(null);else{const e=b(_);P((()=>e))}}),[n,_,b]);const R=null!==(p=null==r?void 0:r.coarse)&&void 0!==p?p:15,A=null!==(f=null==r?void 0:r.fine)&&void 0!==f?f:5;return dc((()=>{if(n||null==L)return;const e=h.current;return nu(e,"Element ref not attached"),function(e,t,n,r,i){var o;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!==(o=Vc.get(a))&&void 0!==o?o:0;return Vc.set(a,l+1),Yc.add(s),eu(),function(){var t;$c.delete(e),Yc.delete(s);const n=null!==(t=Vc.get(a))&&void 0!==t?t:1;if(Vc.set(a,n-1),eu(),1===n&&Vc.delete(a),Wc.includes(s)){const e=Wc.indexOf(s);e>=0&&Wc.splice(e,1),Jc()}}}(_,e,v,{coarse:R,fine:A},((e,t,n)=>{if(t)switch(e){case"down":{S("drag"),w(_,n);const{onDragging:e}=m.current;e&&e(!0);break}case"move":{const{state:e}=T.current;"drag"!==e&&S("hover"),L(n);break}case"up":{S("hover"),x();const{onDragging:e}=m.current;e&&e(!1);break}}else S("inactive")}))}),[R,v,n,A,b,_,L,w,x]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){dc((()=>{if(e||null==n||null==r)return;const i=fu(t,r);if(null==i)return;const o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=i.getAttribute("data-panel-group-id");nu(n,`No group element found for id "${n}"`);const o=cu(n,r),a=uu(n,t,r);nu(null!==a,`No resize element found for id "${t}"`),o[e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}}),[r,e,t,n])}({disabled:n,handleId:_,resizeHandler:L,panelGroupElement:E}),oc(u,{...d,children:e,className:t,id:i,onBlur:()=>{k(!1),null==o||o()},onFocus:()=>{k(!0),null==s||s()},ref:h,role:"separator",style:{touchAction:"none",userSelect:"none",...l},tabIndex:c,"data-panel-group-direction":v,"data-panel-group-id":y,"data-resize-handle":"","data-resize-handle-active":"drag"===O?"pointer":C?"keyboard":void 0,"data-resize-handle-state":O,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}Cu.displayName="PanelGroup",ku.displayName="forwardRef(PanelGroup)",Tu.displayName="PanelResizeHandle";const Ru=qn((()=>({container:{position:"relative"},panel:{position:"relative"},horizontal:{},vertical:{},disabled:{},resizer:{zIndex:1,boxSizing:"border-box",backgroundClip:"padding-box","&$disabled":{cursor:"initial",height:0,margin:0},"&$horizontal":{height:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"100% 1px",backgroundPosition:"top",width:"100%",marginBottom:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ns-resize",backgroundImage:"linear-gradient(rgba(0, 114, 206, 0), rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1))",backgroundSize:"100% 3px"}},"&$vertical":{width:"11px",backgroundImage:"linear-gradient(rgba(0,0,0,0.33), rgba(0,0,0,0.33))",backgroundRepeat:"no-repeat",backgroundSize:"1px 100%",backgroundPosition:"left",height:"100%",marginRight:"-10px","&$disabled":{background:"transparent"},"&:not($disabled):hover":{cursor:"ew-resize",backgroundImage:"linear-gradient(to left, rgba(0, 114, 206, 0.35), rgba(0, 114, 206, 1), rgba(0, 114, 206, 0.35))",backgroundSize:"3px 100%"}}}})));function Au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Mu(e,t,n[t])}))}return e}function Mu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Du=e=>"horizontal"===e,zu=(e,t)=>e.toFixed(2)===t.toFixed(2),ju=({className:n,children:r,orientation:i="vertical",primary:o="first",size:a,minSize:s,maxSize:l,allowResize:c,debounceInterval:u=250,onChange:d})=>{const p=Ru(),f=(0,g.useTheme)(),h=(0,e.useRef)(),[m,v]=(0,e.useState)(null),[y,b]=(0,e.useState)(0),[w,x]=(0,e.useState)(0),[_,O]=(0,e.useState)(!0),S=(0,e.useCallback)((()=>O(!0)),[]),C=(0,e.useCallback)((()=>O(!1)),[]),k=(0,e.useCallback)((()=>Du(i)?null==m?void 0:m.clientHeight:null==m?void 0:m.clientWidth),[m,i]);"number"==typeof a&&a<0&&(a=(k()||0)+a);const L=(0,e.useCallback)((e=>"string"==typeof e&&e.endsWith("%")?+e.replace("%",""):("string"==typeof e&&e.endsWith("px")&&(e=e.replace("px","")),isNaN(+e)?null:+e/k()*100)),[k]),P=(0,e.useCallback)(((e,t)=>0===e||100===e?0:L(t)||0),[L]),T=(0,e.useCallback)((()=>{if(m&&h.current){const e=L(a);null==e||isNaN(e)||(x(P(e,l)),b(P(e,s)),h.current.resize(e))}}),[L,P,s,l,a,m]);(0,e.useEffect)((()=>{T()}),[T,w,y]);const R=(0,e.useCallback)((0,E.debounce)((e=>{if(void 0===e)return;const t=k();d({percentageSize:e+"%",isMaxSize:zu(e,+w>0?w:100+w),isMinSize:zu(e,y),size:Math.round(e*t/100)})}),u),[d,w,y,k]),A=(0,e.useCallback)((e=>{e?(R(),C()):(R(h.current.getSize()),S())}),[C,S,R]),M=(0,e.useMemo)((()=>({transition:f.transitions.create("flex",{easing:f.transitions.easing.sharp,duration:f.transitions.duration.leavingScreen})})),[f]),D=Au({className:p.panel,minSize:y},w>0?{maxSize:w}:{},{ref:h,style:_?M:void 0}),z=Au({className:p.panel,style:_?M:void 0},w<0?{minSize:-w}:{});return t().createElement("div",{ref:v,className:Qn()(p.container,n)},t().createElement(Sa,{handleHeight:Du(i),handleWidth:!Du(i),onResize:T,refreshMode:"debounce",refreshRate:50}),t().createElement(ku,{direction:Du(i)?"vertical":"horizontal"},t().createElement(Sc,"first"===o?D:z,r[0]),t().createElement(Tu,{className:Qn()(p.resizer,p[i],{[p.disabled]:!c}),disabled:!c,hitAreaMargins:{coarse:0,fine:0},onDragging:A}),t().createElement(Sc,"second"===o?D:z,r[1])))};ju.displayName="ResizablePanes";const Nu={XXS:"XXS",XS:"XS",S:"S",M:"M",MPlus:"MPlus",L:"L",XL:"XL"},Iu=qn({rootAll:{padding:"0"},rootXXS:{height:"16px",width:"16px"},iconXXS:{fontSize:"16px"},rootXS:{height:"20px",width:"20px"},iconXS:{fontSize:"20px"},rootS:{height:"24px",width:"24px"},iconS:{fontSize:"24px"},rootM:{height:"30px",width:"30px"},rootMPlus:{height:"36px",width:"36px"},rootL:{height:"40px",width:"40px"},rootXL:{height:"48px",width:"48px"},disabled:{fillOpacity:.5}});function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fu.apply(null,arguments)}function Bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Gu(e,t,n[t])}))}return e}function Gu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uu=(0,e.forwardRef)(((e,n)=>{const{className:r,onClick:i,icon:o,size:a=Nu.XS,iconClassName:s,classes:l={}}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["className","onClick","icon","size","iconClassName","classes"]),u=Iu();return t().createElement(Vo(),Fu({ref:n,classes:Bu({root:`${u[`root${a}`]} ${u.rootAll}`,disabled:u.disabled},l),onClick:i,className:r},c,{size:"large"}),o&&t().createElement(o,{classes:{root:u[`icon${a}`]},className:s}))}));Uu.displayName="SmallIconButton";const Hu=El(Uu),Wu=qn((e=>({container:{display:"flex",flexDirection:"column",flexShrink:0,width:"64px",paddingTop:"8px",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)"},active:{backgroundColor:(0,g.alpha)(e.palette.primary.main,.12),color:e.palette.primary.main,"&:after":{content:'""',position:"absolute",height:"42px",width:"3px",backgroundColor:e.palette.primary.main,left:"-8px",borderRadius:"0 6px 6px 0"}},buttonWrapper:{position:"relative",width:"48px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",margin:"2px 8px",color:e.palette.text.secondary}})));function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qu.apply(null,arguments)}const Vu=({disabled:e,buttonsProps:n,activeIndexId:r,className:i,onButtonClick:o})=>{const a=Wu();return t().createElement("div",{className:Qn()(a.container,i)},n.map((n=>{let{id:i}=n,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["id"]);return t().createElement(Hu,qu({},s,{disabled:e,size:"S",key:i,className:Qn()(a.buttonWrapper,{[a.active]:r===i}),onClick:()=>o(i),"data-reltio-id":`reltio-profile-right-side-button-${i}`}))})))},$u=qn((()=>({resizablePanesWrapper:{flexGrow:1,height:"100%",marginRight:"1px"},pane:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",overflow:"hidden"}}))),Yu=480,Zu=({perspectiveId:n,children:r,buttonsProps:i,disabled:o,defaultTab:a})=>{const s=$u(),{perspectiveSettings:l,updatePerspectiveSettings:c}=ic(n),{width:u=Yu}=l||{},d=a||(null==l?void 0:l.active),p=!(0,x.isNil)(d)&&!o,f=(0,e.useCallback)((e=>{c(e)}),[c]),h=(0,e.useCallback)((e=>{f({active:d===e?null:e})}),[d,f]),m=(0,e.useCallback)((()=>{f({active:null})}),[f]),g=(0,e.useCallback)((({size:e})=>{f({width:e})}),[f]);return t().createElement(t().Fragment,null,t().createElement(ju,{className:s.resizablePanesWrapper,primary:"second",orientation:"vertical",size:p?u:0,minSize:320,maxSize:640,allowResize:p,onChange:g,debounceInterval:2500},t().createElement("div",{className:s.pane},r[0]),t().createElement("div",{className:s.pane},(0,e.cloneElement)(r[1],{active:d,onClose:m}))),t().createElement(Vu,{disabled:o,buttonsProps:i,onButtonClick:h,activeIndexId:d}))};Zu.displayName="ProfileResizablePanes";var Xu=ae(8996),Ku=ae.n(Xu),Qu=ae(6635),Ju=ae(9358);const ed=(0,e.createContext)(null),td=ed.Provider;function nd(){const t=(0,e.useContext)(ed);if(null==t)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return t}function rd(){return nd().sigma}function id(){const{sigma:t,container:n}=nd(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e={};return Object.keys(r).forEach((n=>{e[n]=r[n],t.setSetting(n,r[n])})),()=>{t&&n&&n.offsetWidth>0&&n.offsetHeight>0&&Object.keys(e).forEach((n=>{t.setSetting(n,e[n])}))}}),[t,r,n]),i}const od=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","beforeRender","afterRender","kill"],ad=["click","rightClick","mouseup","mousedown","mousemove","mousemovebody","doubleClick","wheel"],sd=["touchup","touchdown","touchmove"],ld=["updated"];function cd(){const t=rd(),n=id(),[r,i]=(0,e.useState)({});return(0,e.useEffect)((()=>{if(!t||!r)return;const e=r,i=Object.keys(e),o={},a={},s=t.getSettings();return i.some((e=>["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)))&&!1===s.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,a.enableEdgeClickEvents=!1),i.some((e=>["enterEdge","leaveEdge"].includes(e)))&&!1===s.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,a.enableEdgeHoverEvents=!1),i.some((e=>["wheelEdge"].includes(e)))&&!1===s.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,a.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&n(o),i.forEach((n=>{const r=e[n];od.find((e=>e===n))&&t.on(n,r),ad.find((e=>e===n))&&t.getMouseCaptor().on(n,r),sd.find((e=>e===n))&&t.getTouchCaptor().on(n,r),ld.find((e=>e===n))&&t.getCamera().on(n,r)})),()=>{Object.keys(a).length>0&&n(a),t&&i.forEach((n=>{const r=e[n];od.find((e=>e===n))&&t.off(n,r),ad.find((e=>e===n))&&t.getMouseCaptor().off(n,r),sd.find((e=>e===n))&&t.getTouchCaptor().off(n,r),ld.find((e=>e===n))&&t.getCamera().off(n,r)}))}}),[t,r,n]),i}const ud=(0,e.forwardRef)((({graph:n,id:r,className:i,style:o,settings:a,children:s},l)=>{const c=(0,e.useRef)(null),u=(0,e.useRef)(null),d={className:`react-sigma ${i||""}`,id:r,style:o},[p,f]=(0,e.useState)(null),h=(0,e.useRef)({});(0,Qu.isEqual)(h.current,a)||(h.current=a||{}),(0,e.useEffect)((()=>{let e=null;if(null!==u.current){const t=n?"function"==typeof n?new n:n:new(Ku());e=new Ju.Sigma(t,u.current,Object.assign({allowInvalidContainer:!0},h.current)),p&&e.getCamera().setState(p.getCamera().getState())}return f(e),()=>{e&&e.kill(),f(null)}}),[u,n,h]),(0,e.useImperativeHandle)(l,(()=>p),[p]);const m=(0,e.useMemo)((()=>p&&c.current?{sigma:p,container:c.current}:null),[p,c.current]),g=null!==m?t().createElement(td,{value:m},s):null;return t().createElement("div",Object.assign({},d,{ref:c}),t().createElement("div",{className:"sigma-container",ref:u}),g)}));var dd=ae(1624),pd=ae(4488),fd=ae(5372),hd=ae.n(fd),md=ae(8586);const gd=e=>e.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),vd=e=>{const t=document.createElement("canvas");return t.style.position="absolute",t.setAttribute("class",`sigma-${e}`),t},yd=()=>{const{container:t,sigma:n}=nd(),[r,i]=(0,e.useState)({}),o=(0,e.useRef)({}),a=(0,e.useRef)(0),s=(0,e.useRef)(0),l=(0,e.useCallback)((e=>{i((0,x.mergeLeft)(e))}),[]),c=(0,e.useCallback)((()=>{a.current=t.offsetWidth,s.current=t.offsetHeight;const e=(0,md.getPixelRatio)();for(const t in o.current){const{canvasElement:n,context:r}=o.current[t];n.style.width=a.current+"px",n.style.height=s.current+"px",n.setAttribute("width",a.current*e+"px"),n.setAttribute("height",s.current*e+"px"),1!==e&&r.scale(e,e)}}),[t.offsetHeight,t.offsetWidth]),u=(0,e.useCallback)((()=>{for(const e in r){const{context:t}=o.current[e];t.clearRect(0,0,a.current,s.current);const{renderer:n}=r[e];n(t)}}),[r]),d=(0,e.useCallback)((()=>{for(const e in r){if(!(0,E.isEmptyValue)(o.current[e]))continue;const{insertBefore:n}=r[e],i=t.querySelector(".sigma-container"),a=vd(e),s=gd(a);i.insertBefore(a,i.querySelector(`.sigma-${n}`)),o.current[e]={canvasElement:a,context:s},c()}}),[r,t,c]);return(0,e.useEffect)((()=>(n.addListener("beforeRender",d),()=>{n.off("beforeRender",d)})),[n,d]),(0,e.useEffect)((()=>(n.addListener("afterRender",u),()=>{n.off("afterRender",u)})),[n,u]),(0,e.useEffect)((()=>(n.addListener("resize",c),()=>{n.off("resize",c)})),[n,c]),(0,e.useEffect)((()=>{const e=o.current;return()=>{for(const t in e)e[t].canvasElement.remove(),delete e[t]}}),[]),{addRenderers:l,canvases:o.current,canvasesRef:o}},bd=(0,e.createContext)({addRenderers:x.identity,canvases:{}});bd.displayName="SigmaCustomRenderersContext";const wd=({children:e})=>{const n=yd();return t().createElement(bd.Provider,{value:n},e)},xd=()=>{const n=rd(),r=(0,e.useCallback)((()=>{n.refresh()}),[n]);return t().createElement(Sa,{handleWidth:!0,onResize:r})},Ed=(e,t,n,{backgroundColor:r,borderColor:i}={})=>{var o;if(!t.label)return;const a=n.labelSize,s=n.labelFont,l=n.labelWeight,c=t.selected?6:2,u=1.2*a;e.font=`${l} ${a}px ${s}`;const d=((e,t,n,{backgroundColor:r="rgba(245, 245, 245, 0.9)",marginLeft:i=2,borderColor:o,lineHeight:a}={})=>{e.fillStyle=r,o&&(e.strokeStyle=o);const s=new Path2D;if("string"==typeof t.label){const r=t.secondaryLabel?a:0,l=n.labelSize+r+2,c=2,u=Math.max(e.measureText(t.label).width,e.measureText(t.secondaryLabel||"").width),d=Math.round(u+14),p=Math.round(l+4),f=t.size+2,h=t.y-p/2,m=t.y+p/2,g=t.x+f+i,v=g+d;s.moveTo(g,m-c),s.quadraticCurveTo(g,m,g+c,m),s.lineTo(v-c,m),s.quadraticCurveTo(v,m,v,m-c),s.lineTo(v,h+c),s.quadraticCurveTo(v,h,v-c,h),s.lineTo(g+c,h),s.quadraticCurveTo(g,h,g,h+c),s.closePath(),e.fill(s),o&&e.stroke(s)}return s})(e,t,n,{backgroundColor:t.selected?"#FFF":r,marginLeft:c,borderColor:i,lineHeight:u});e.fillStyle=null!==(o=n.labelColor)&&void 0!==o&&o.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;const p=t.secondaryLabel?t.y-a/3.75:t.y+a/3;var f,h,m;return e.fillText(t.label,t.x+t.size+9+c,p),t.secondaryLabel&&(e.fillStyle=null!==(f=n.secondaryLabelColor)&&void 0!==f&&f.attribute?t[n.secondaryLabelColor.attribute]||(null===(h=n.secondaryLabelColor)||void 0===h?void 0:h.color)||"#000":null===(m=n.secondaryLabelColor)||void 0===m?void 0:m.color,e.fillText(t.secondaryLabel,t.x+t.size+9+c,p+u)),d},_d=(e,t,{padding:n=1.5,color:r="#FFF",lineWidth:i=4}={})=>{e.lineWidth=i,e.strokeStyle=r,e.beginPath(),e.arc(t.x,t.y,t.size+n,0,2*Math.PI),e.closePath(),e.stroke()},Od=(e,t)=>{((e,t)=>{t.selected&&(e.shadowColor="rgba(0, 114, 206, 0.5)",e.shadowBlur=10,_d(e,t,{lineWidth:2,color:"#0072CE",padding:4.5}),e.shadowColor="none",e.shadowBlur=0)})(e,t),_d(e,t)},Sd=(e,t,n)=>{Od(e,t),Ed(e,t,n,{backgroundColor:"#FFF"})},Cd="\n// convert color to pale gray\nvec4 toPaleGrayscale(in vec4 color, float paleFactor)\n{\n vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n vec4 paleColor = mix(color, white, paleFactor);\n\n float average = (paleColor.r + paleColor.g + paleColor.b) / 3.0;\n return vec4(average, average, average, 1.0);\n}",kd=`\nprecision mediump float;\n\nvarying vec4 v_color; // base color of node\nvarying float v_border;\nvarying float v_borderRadius; // inner border radius\nvarying float v_inactive;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0); // transparent color\nconst float radius = 0.5;\nconst float dashGapRatio = 5.5; // adjust this to change the ratio of dash size to gap size\nconst float totalLength = 2.0 * 3.14159 * radius;\nconst float dashSize = totalLength / (dashGapRatio + 1.0);\nconst float gapSize = dashSize / dashGapRatio;\n\n${Cd}\n\nvoid main(void) {\n vec4 color;\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(v_color, 0.5);\n } else {\n color = v_color;\n }\n\n float distToCenter = length(gl_PointCoord - vec2(0.5, 0.5)); // distance from current point to center of node\n float distAlongBorder = atan(gl_PointCoord.y - 0.5, gl_PointCoord.x - 0.5); // distance along the border\n float dashGapRatio = mod(distAlongBorder, dashSize + gapSize) / dashSize; // ratio of dash to gap\n\n // our change - added if statement to check if within a dash\n if (dashGapRatio < 1.0) {// if within a dash\n if (distToCenter < v_borderRadius - v_border) // distance to inner border radius\n gl_FragColor = transparent;\n else if (distToCenter < v_borderRadius)\n gl_FragColor = mix(color, transparent, (v_borderRadius - distToCenter) / v_border);\n else if (distToCenter < radius - v_border) // distance to outer border radius\n gl_FragColor = color;\n else if (distToCenter < radius)\n gl_FragColor = mix(transparent, color, (radius - distToCenter) / v_border);\n else // points outside the button\n gl_FragColor = transparent;\n } else {\n gl_FragColor = transparent;\n }\n}\n`;class Ld extends dd.AbstractNodeProgram{constructor(e){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute float a_borderSize;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying float v_borderRadius;\nvarying float v_inactive;\n\nconst float bias = 255.0 / 254.0;\nconst float radius = 0.5;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n v_borderRadius = radius - (radius * a_borderSize / a_size); // border radius in node's size (full size is 1)\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",kd,1,6),this.borderSize=void 0,this.inactive=void 0,this.borderSize=e.getAttribLocation(this.program,"a_borderSize"),this.inactive=e.getAttribLocation(this.program,"a_inactive"),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.borderSize),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.borderSize,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*6;if(t||!e.hasBorder)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,md.floatColor)(e.color),r[i++]=e.highlighted?2:1,r[i]=e.inactive?1:0}render(e){const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/6)}}const Pd=`\nprecision mediump float;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float radius = 0.5;\n\n${Cd}\n\nvoid main(void) {\n vec4 color;\n\n // set texel as color of point\n if (v_texture.w > 0.0) {\n vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));\n } else {\n color = v_color;\n }\n\n // convert color to gray\n if (v_inactive > 0.0) {\n color = toPaleGrayscale(color, 0.5);\n }\n\n // distance from point to center of node\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n\n if (dist < radius - v_border) // points inside node\n gl_FragColor = color;\n else if (dist < radius) // border of node\n gl_FragColor = mix(transparent, color, (radius - dist) / v_border);\n else // points outside node\n gl_FragColor = transparent;\n}`;class Td{constructor(){this.rebindTextureFns=[],this.images={},this.textureImage=void 0,this.hasReceivedImages=!1,this.pendingImagesFrameID=void 0,this.loadImage=(e,t)=>{if(this.images[e])return;const n=new Image;var r;n.addEventListener("load",(()=>{this.images[e]={status:"pending",image:n},"number"!=typeof this.pendingImagesFrameID&&(this.pendingImagesFrameID=requestAnimationFrame((()=>this.finalizePendingImages())))})),n.addEventListener("error",(()=>{this.images[e]={status:"error"}})),this.images[e]={status:"loading"},r=n,new URL(t,window.location.href).origin!==window.location.origin&&(r.crossOrigin=""),n.src=t.startsWith("data:image")?t:t+"?not-from-cache"},this.finalizePendingImages=()=>{this.pendingImagesFrameID=void 0;const e=[];for(const t in this.images){const n=this.images[t];"pending"===n.status&&e.push({id:t,image:n.image,size:Math.min(n.image.width,n.image.height)||1})}const t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.reduce(((e,{size:t})=>e+t),this.hasReceivedImages?this.textureImage.width:0),t.height=Math.max(this.hasReceivedImages?this.textureImage.height:0,...e.map((({size:e})=>e)));let r=0;this.hasReceivedImages&&(n.putImageData(this.textureImage,0,0),r=this.textureImage.width),e.forEach((({id:e,image:t,size:i})=>{const o=Math.min(128,i);let a=0,s=0;(t.width||0)>(t.height||0)?a=(t.width-t.height)/2:s=(t.height-t.width)/2,n.drawImage(t,a,s,i,i,r,0,o,o),this.images[e]={status:"ready",x:r,y:0,width:o,height:o},r+=o})),this.textureImage=n.getImageData(0,0,t.width,t.height),this.hasReceivedImages=!0,this.rebindTextureFns.forEach((e=>e()))}}}const Rd={id:"defaultImage",path:(0,E.svg2Url)('\n<svg width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Group</title>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Group" fill-rule="nonzero">\n <rect id="Rectangle" fill="#DFE5E9" x="0" y="0" width="400" height="400"></rect>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n <path d="M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z" id="Path" fill="#B3BCC4"></path>\n </g>\n </g>\n</svg>\n')};class Ad extends dd.AbstractNodeProgram{constructor(e,t){super(e,"\nattribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute vec4 a_texture;\nattribute float a_inactive;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying float v_border;\nvarying float v_inactive;\nvarying vec4 v_color;\nvarying vec4 v_texture;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4((u_matrix * vec3(a_position, 1)).xy, 0, 1);\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n\n // Pass the texture coordinates:\n v_texture = a_texture;\n\n // Pass inactive property\n v_inactive = a_inactive;\n}",Pd,1,9),this.imageLoader=void 0,this.texture=void 0,this.textureLocation=void 0,this.atlasLocation=void 0,this.latestRenderParams=void 0,this.inactive=void 0,this.imageLoader=new Td,this.imageLoader.rebindTextureFns.push((()=>{this&&this.rebindTexture&&this.rebindTexture(),t&&t.refresh&&t.refresh()})),this.imageLoader.textureImage=new ImageData(1,1),this.textureLocation=e.getAttribLocation(this.program,"a_texture"),this.inactive=e.getAttribLocation(this.program,"a_inactive");const n=e.getUniformLocation(this.program,"u_atlas");if(null===n)throw new Error("NodeProgramImage: error while getting atlasLocation");this.atlasLocation=n,this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),this.imageLoader.loadImage(Rd.id,Rd.path),this.bind()}bind(){super.bind();const e=this.gl;e.enableVertexAttribArray(this.textureLocation),e.enableVertexAttribArray(this.inactive),e.vertexAttribPointer(this.inactive,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,20)}process(e,t,n){const r=this.array;let i=1*n*9;const o=e.image;let a=o&&this.imageLoader.images[o];if("string"!=typeof o||a||this.imageLoader.loadImage(o,o),t)return r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);if(r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i++]=(0,md.floatColor)(e.color),r[i++]=e.inactive?1:0,a&&"ready"===a.status||(a=this.imageLoader.images[Rd.id]),a&&"ready"===a.status){const{width:e,height:t}=this.imageLoader.textureImage;r[i++]=a.x/e,r[i++]=a.y/t,r[i++]=a.width/e,r[i++]=a.height/t}else r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0}render(e){if(this.hasNothingToRender())return;this.latestRenderParams=e;const t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1i(this.atlasLocation,0),t.drawArrays(t.POINTS,0,this.array.length/9)}rebindTexture(){const e=this.gl;e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this.imageLoader.textureImage),e.generateMipmap(e.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))}}var Md=ae(3193),Dd=ae.n(Md);class zd extends(Dd()){process(e,t,n,r,i){if(r){for(let e=27*i,t=e+27;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size*o||1,s=t.size||1,l=e.x,c=e.y,u=t.x,d=t.y,p=(0,md.floatColor)(n.color),f=u-l,h=d-c;let m=f*f+h*h,g=0,v=0;m&&(m=1/Math.sqrt(m),g=-h*m*a,v=f*m*a);let y=27*i;const b=this.array;b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=p,b[y++]=1,b[y++]=0,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=p,b[y++]=0,b[y++]=1,b[y++]=0,b[y++]=u,b[y++]=d,b[y++]=-g,b[y++]=-v,b[y++]=s,b[y++]=p,b[y++]=0,b[y++]=0,b[y]=1}}class jd extends zd{process(e,t,n,r,i){super.process(t,e,n,r,i)}}var Nd=ae(3343),Id=ae.n(Nd);class Fd extends pd.AbstractEdgeProgram{constructor(e){super(e,"\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\nattribute float a_arrowSizeRatio;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // our change - apply a_arrowSizeRatio depending on current zoom and minThickness\n float arrowSizeCoefficient = min(a_arrowSizeRatio, a_arrowSizeRatio / (u_sqrtZoomRatio * minThickness));\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio * arrowSizeCoefficient;\n\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}",Id(),4,7),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.radiusLocation=void 0,this.arrowSizeRatioLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0,this.canUse32BitsIndices=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.radiusLocation=e.getAttribLocation(this.program,"a_radius"),this.arrowSizeRatioLocation=e.getAttribLocation(this.program,"a_arrowSizeRatio");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeClampedProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===r)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");this.sqrtZoomRatioLocation=r;const i=e.getUniformLocation(this.program,"u_correctionRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");this.correctionRatioLocation=i,this.canUse32BitsIndices=(0,md.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.arrowSizeRatioLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,7*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.arrowSizeRatioLocation,1,e.FLOAT,!1,7*Float32Array.BYTES_PER_ELEMENT,24)}process(e,t,n,r,i){if(r){for(let e=28*i,t=e+28;e<t;e++)this.array[e]=0;return}const o=n.arrowSizeRatio||1,a=n.size||1,s=e.x,l=e.y,c=t.x,u=t.y,d="doubleArrow"===n.type?e.size||1:0,p=t.size||1,f=(0,md.floatColor)(n.color),h=c-s,m=u-l;let g=h*h+m*m,v=0,y=0;g&&(g=1/Math.sqrt(g),v=-m*g*a,y=h*g*a);let b=28*i;const w=this.array;w[b++]=s,w[b++]=l,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=-d,w[b++]=o,w[b++]=s,w[b++]=l,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=d,w[b++]=o,w[b++]=c,w[b++]=u,w[b++]=v,w[b++]=y,w[b++]=f,w[b++]=p,w[b++]=o,w[b++]=c,w[b++]=u,w[b++]=-v,w[b++]=-y,w[b++]=f,w[b++]=-p,w[b]=o}computeIndices(){const e=this.array.length/7,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}render(e){if(this.hasNothingToRender())return;const t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}}class Bd extends pd.AbstractEdgeProgram{constructor(e){super(e,"\nattribute float a_lineLength; // our addition\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_position; // our addition\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least 'minThickness' pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our \"magic\" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the \"SQRT rule\" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be 'adapted = value * zoom / sqrt(zoom)', but\n // it's simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the \"magic\"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasing effect does not depend on the zoom level. So here's yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n v_position = a_lineLength / u_sqrtZoomRatio; // our addition\n}\n","\nprecision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_position; // our addition - the position along the line\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\nconst float u_dashSize = 0.01; // our addition\nconst float u_gapSize = 0.005; // our addition\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n // our additions\n float totalSize = u_dashSize + u_gapSize;\n float positionInDashGap = mod(v_position, totalSize);\n float dashGapRatio = positionInDashGap / u_dashSize;\n // end additions (dashGapRatio is used below in if)\n\n if (dashGapRatio < 1.0) {\n gl_FragColor = mix(v_color, transparent, t);\n } else {\n discard;\n }\n}\n",4,6),this.IndicesArray=void 0,this.indicesArray=void 0,this.indicesBuffer=void 0,this.indicesType=void 0,this.canUse32BitsIndices=void 0,this.positionLocation=void 0,this.colorLocation=void 0,this.normalLocation=void 0,this.lineLengthLocation=void 0,this.matrixLocation=void 0,this.sqrtZoomRatioLocation=void 0,this.correctionRatioLocation=void 0;const t=e.createBuffer();if(null===t)throw new Error("EdgeProgram: error while creating indicesBuffer");this.indicesBuffer=t,this.positionLocation=e.getAttribLocation(this.program,"a_position"),this.colorLocation=e.getAttribLocation(this.program,"a_color"),this.normalLocation=e.getAttribLocation(this.program,"a_normal"),this.lineLengthLocation=e.getAttribLocation(this.program,"a_lineLength");const n=e.getUniformLocation(this.program,"u_matrix");if(null===n)throw new Error("EdgeProgram: error while getting matrixLocation");this.matrixLocation=n;const r=e.getUniformLocation(this.program,"u_correctionRatio");if(null===r)throw new Error("EdgeProgram: error while getting correctionRatioLocation");this.correctionRatioLocation=r;const i=e.getUniformLocation(this.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");this.sqrtZoomRatioLocation=i,this.canUse32BitsIndices=(0,md.canUse32BitsIndices)(e),this.IndicesArray=this.canUse32BitsIndices?Uint32Array:Uint16Array,this.indicesArray=new this.IndicesArray,this.indicesType=this.canUse32BitsIndices?e.UNSIGNED_INT:e.UNSIGNED_SHORT,this.bind()}bind(){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.lineLengthLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.lineLengthLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,20)}computeIndices(){const e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t);for(let t=0,r=0;t<e;t+=4)n[r++]=t,n[r++]=t+1,n[r++]=t+2,n[r++]=t+2,n[r++]=t+1,n[r++]=t+3;this.indicesArray=n}bufferData(){super.bufferData();const e=this.gl;e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indicesArray,e.STATIC_DRAW)}process(e,t,n,r,i){if(r){for(let e=24*i,t=e+24;e<t;e++)this.array[e]=0;return}const o=n.size||1,a=e.x,s=e.y,l=t.x,c=t.y,u=(0,md.floatColor)(n.color),d=l-a,p=c-s;let f=d*d+p*p,h=0,m=0;const g=Math.sqrt(f);f&&(f=1/Math.sqrt(f),h=-p*f*o,m=d*f*o);let v=24*i;const y=this.array;y[v++]=a,y[v++]=s,y[v++]=h,y[v++]=m,y[v++]=0,y[v++]=u,y[v++]=a,y[v++]=s,y[v++]=-h,y[v++]=-m,y[v++]=0,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=h,y[v++]=m,y[v++]=g,y[v++]=u,y[v++]=l,y[v++]=c,y[v++]=-h,y[v++]=-m,y[v++]=g,y[v]=u}render(e){if(this.hasNothingToRender())return;const t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}}const Gd=qn({"@global :root":{"--sigma-background-color":"#fff","--sigma-controls-background-color":"#fff","--sigma-controls-background-color-hover":"rgba(0,0,0,0.2)","--sigma-controls-border-color":"rgba(0,0,0,0.2)","--sigma-controls-color":"#000","--sigma-controls-zindex":"100","--sigma-controls-margin":"5px","--sigma-controls-size":"30px"},"@global div.react-sigma":{height:"100%",width:"100%",position:"relative",background:"var(--sigma-background-color)"},"@global div.sigma-container":{height:"100%",width:"100%"},"@global .react-sigma-controls":{position:"absolute",zIndex:"var(--sigma-controls-zindex)",border:"2px solid var(--sigma-controls-border-color)",borderRadius:"4px",color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-controls.bottom-right":{bottom:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.bottom-left":{bottom:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-right":{top:"var(--sigma-controls-margin)",right:"var(--sigma-controls-margin)"},"@global .react-sigma-controls.top-left":{top:"var(--sigma-controls-margin)",left:"var(--sigma-controls-margin)"},"@global .react-sigma-controls:first-child":{borderTopLeftRadius:"2px",borderTopRightRadius:"2px"},"@global .react-sigma-controls:last-child":{borderBottomLeftRadius:"2px",borderBottomRightRadius:"2px"},"@global .react-sigma-control":{width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundColor:"var(--sigma-controls-background-color)",borderBottom:"1px solid var(--sigma-controls-border-color)"},"@global .react-sigma-control:last-child":{borderBottom:"none"},"@global .react-sigma-control > *":{boxSizing:"border-box"},"@global .react-sigma-control > button":{display:"block",border:"none",margin:"0",padding:"0",width:"var(--sigma-controls-size)",height:"var(--sigma-controls-size)",lineHeight:"var(--sigma-controls-size)",backgroundPosition:"center",backgroundSize:"50%",backgroundRepeat:"no-repeat",backgroundColor:"var(--sigma-controls-background-color)",clip:"rect(0,0,0,0)"},"@global .react-sigma-control > button:hover":{backgroundColor:"var(--sigma-controls-background-color-hover)"},"@global .react-sigma-search":{backgroundColor:"var(--sigma-controls-background-color)"},"@global .react-sigma-search label":{visibility:"hidden"},"@global .react-sigma-search input":{color:"var(--sigma-controls-color)",backgroundColor:"var(--sigma-controls-background-color)",fontSize:"1em",width:"100%",margin:"0",border:"none",padding:"var(--sigma-controls-margin)",boxSizing:"border-box"}}),Ud=({children:n,initialSettings:r})=>{Gd();const i=(0,e.useMemo)((()=>(0,x.mergeDeepRight)({allowInvalidContainer:!0,defaultNodeType:"image",hoverRenderer:Sd,labelRenderer:Ed,nodeProgramClasses:{image:(0,dd.createNodeCompoundProgram)([Ad,Ld])},edgeProgramClasses:{line:hd(),arrow:(0,pd.createEdgeCompoundProgram)([Fd,zd]),doubleArrow:(0,pd.createEdgeCompoundProgram)([Fd,zd,jd]),dashed:Bd},labelFont:"Roboto",labelSize:13,labelColor:{color:"rgba(0, 0, 0, 0.87)",attribute:"labelColor"},secondaryLabelColor:{color:"rgba(0, 0, 0, 0.54)",attribute:"secondaryLabelColor"}},r||{})),[r]);return t().createElement(ud,{graph:Xu.MultiGraph,style:{background:"transparent"},settings:i},t().createElement(wd,null,t().createElement(xd,null),n))};var Hd=ae(8833),Wd=ae.n(Hd),qd=ae(3660),Vd=ae.n(qd),$d=ae(8301),Yd=ae.n($d),Zd=ae(1181);function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Kd(e,t,n[t])}))}return e}function Kd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qd=({graph:t,newNodesIds:n,animationDuration:r,relayoutTrigger:i})=>{const o=(0,e.useMemo)((()=>(Wd().assign(t),{settings:Xd({},Vd().inferSettings(t),{gravity:1})})),[t]);((r,i)=>{const o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{o.current?(()=>{if(null!=n&&n.length){const e=t.copy();Wd().assign(e),n.forEach((n=>{t.setNodeAttribute(n,"x",e.getNodeAttribute(n,"x")),t.setNodeAttribute(n,"y",e.getNodeAttribute(n,"y"))}))}})():o.current=!0}),i)})(0,[n]),(({graph:t,syncLayout:n,workerLayout:r,layoutSettings:i,initialCameraRatio:o=1.2,animationDuration:a,relayoutTrigger:s})=>{const l=rd(),c=function(){const t=rd();return(0,e.useCallback)(((e,n=!0)=>{t&&e&&(n&&t.getGraph().order>0&&t.getGraph().clear(),t.getGraph().import(e),t.refresh())}),[t])}();(0,e.useEffect)((()=>{l.getCamera().setState({ratio:o})}),[t,l,o]),(0,e.useEffect)((()=>{if(c(t),n){const e=n(l.getGraph(),i);(0,Zd.animateNodes)(l.getGraph(),e,{duration:a||1e3})}if(r){const e=new r(l.getGraph(),i);e.start();const t=setTimeout((()=>{e.stop()}),a||5e3);return()=>{clearTimeout(t),e.kill()}}}),[t,i,c,l,n,r,a,s])})({workerLayout:Yd(),layoutSettings:o,animationDuration:r,graph:t,relayoutTrigger:i})};let Jd=function(e){return e.entityType="entityType",e.interactionType="interactionType",e}({});const ep=.4,tp=(e,t,n,r=0)=>({x1:e-7*(n+r),y1:t,x2:e,y2:t+7*(n+r)}),np=(e,t,n,r,i,o,a)=>({aX:e+(r-e)*(n-a-o)/n,aY:t+(i-t)*(n-a-o)/n,vX:(r-e)*a/n,vY:(i-t)*a/n}),rp=(e,t,n,r,i)=>{e.beginPath(),e.moveTo(t+r,n+i),e.lineTo(t+i*ep,n-r*ep),e.lineTo(t-i*ep,n+r*ep),e.lineTo(t+r,n+i),e.closePath(),e.fill()};function ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){op(e,t,n[t])}))}return e}function op(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ap=t=>{const n=rd(),{addRenderers:r,canvases:i}=(0,e.useContext)(bd),o=(0,e.useRef)({}),{selfRelationLoops:a}=i;return(0,e.useEffect)((()=>{r({selfRelationLoops:{renderer:e=>{t.forEachEdge(((t,r,i)=>{if(r.loop){delete o.current[t];const r=n.getEdgeDisplayData(t),a=n.getNodeDisplayData(i);if(r.hidden||a.hidden)return;const s=((e,t,n)=>{const{size:r,color:i,arrowSizeRatio:o=1}=t,a=n.x,s=n.y,l=n.size,c=tp(a,s,.6*l);e.strokeStyle=i,e.lineWidth=r;const u=new Path2D;if("arrow"===t.type||"doubleArrow"===t.type){if(e.fillStyle=i,"doubleArrow"===t.type){const t=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return np(e.x2,e.y2,o,t,n,r,i)})(c,a,s,l,r*o*2.2);rp(e,t.aX,t.aY,t.vX,t.vY),u.moveTo(t.aX,t.aY)}else u.moveTo(a,s);const n=((e,t,n,r,i)=>{const o=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return np(e.x1,e.y1,o,t,n,r,i)})(c,a,s,l,r*o*2.2);u.bezierCurveTo(c.x2,c.y2,c.x1,c.y1,n.aX,n.aY),e.stroke(u),rp(e,n.aX,n.aY,n.vX,n.vY)}else u.moveTo(a,s),u.bezierCurveTo(c.x1,c.y1,c.x2,c.y2,a,s),e.stroke(u);return u})(e,ip({},r,{size:n.scaleSize(r.size)}),ip({},a,n.framedGraphToViewport(a),{size:n.scaleSize(a.size)}));o.current[t]=s}}))},insertBefore:"edges"}})}),[r,t,n]),{selfRelationsPathsMap:o.current,selfRelationLoopsCanvas:a}},sp=(e,t,n,r)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n),s=r.framedGraphToViewport({x:o.x,y:o.y}),l=r.framedGraphToViewport({x:a.x,y:a.y}),c=i.loop&&(()=>{const{x1:e,y1:t,x2:n,y2:i}=tp(s.x,s.y,.6*r.scaleSize(o.size));return((e,t,n,r,i,o,a,s)=>({x:.125*e+.375*i+.375*a+.125*n,y:.125*t+.375*o+.375*s+.125*r}))(s.x,s.y,s.x,s.y,e,t,n,i)})(),u=e=>s[e]+(l[e]-s[e])/2;return{x:i.loop?c.x:u("x"),y:i.loop?c.y:u("y")}};function lp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cp="customEdgeLabels";function up(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){pp(e,t,n[t])}))}return e}function pp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fp={type:"image",size:28,color:"rgba(55, 71, 79, 1)"},hp={size:1},mp="rgba(224, 224, 224, 1)",gp="rgba(0, 0, 0, 0.38)",vp=({graph:t,selectedNode:n,onNodeClick:r,selectedEdges:i,onEdgeLabelClick:o,hideInteractionTypes:a})=>(Qd({graph:t,animationDuration:3e3}),(({graph:t,selectedNode:n,selectedEdges:r,onNodeClick:i,onEdgeLabelClick:o,hideInteractionTypes:a,relationEdgesLabelsAmountThreshold:s=29})=>{const l=rd(),{container:c}=nd(),[u,d]=(0,e.useState)(null),p=cd(),f=id();ap(t);const h=(({graph:t,onEdgeLabelClick:n})=>{const r=rd(),i=r.getSettings(),o=cd(),{addRenderers:a,canvasesRef:s}=yd(),{[cp]:l}=s.current,c=(0,e.useRef)({}),[u,d]=(0,e.useState)(),[p,f]=(0,e.useState)(!1),h=(0,e.useCallback)(((e,t,n)=>{const i=r.getEdgeDisplayData(e),o=r.getNodeDisplayData(t),a=r.getNodeDisplayData(n);return[o.nodeType,a.nodeType].every((e=>e===Jd.entityType))&&!i.hidden&&i.label}),[r]),m=(0,e.useCallback)(((e,t,n,o)=>{delete c.current[t];const a=r.getEdgeDisplayData(t);if(h(t,n,o)){const s=u===t,l=a.selected,d=s?1.2:1,{x:p,y:f}=sp(t,n,o,r),h=Ed(e,{label:a.label,labelColor:a.labelColor,x:p,y:f,size:r.scaleSize(4)},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){lp(e,t,n[t])}))}return e}({},i,{labelSize:i.labelSize*d}),{backgroundColor:`rgba(250, 250, 250, ${l||s?"1":"0.9"})`,borderColor:l?"#0072CE":void 0});c.current[t]=h}}),[r,u,h]),g=(0,e.useCallback)(((e,t,n,i)=>{const o=r.getEdgeDisplayData(t);if(h(t,n,i)){const a=u===t,s=o.selected,l=a||s?1.4:1,c=r.scaleSize(2*l),{x:d,y:p}=sp(t,n,i,r);e.beginPath(),e.arc(d,p,c,0,2*Math.PI),e.fillStyle=(0,E.rgbaToRgb)(o.color),e.fill()}}),[r,u,h]);return(0,e.useEffect)((()=>{let e;const t=()=>{const{[cp]:n}=s.current;n?f(!0):e=setTimeout(t,100)};return t(),()=>{clearTimeout(e)}}),[s]),(0,e.useEffect)((()=>{o({click:e=>{u&&(n(u,e.original),d(null))},mousemove:e=>{if(!l)return;const{context:t,canvasElement:n}=l,{x:r,y:i}=((e,t)=>{const n=e.getBoundingClientRect();return{x:(t.clientX-n.left)/(n.right-n.left)*e.width,y:(t.clientY-n.top)/(n.bottom-n.top)*e.height}})(n,e.original);let o=null;for(const e in c.current){const n=c.current[e];if(t.isPointInPath(n,r,i)){o=e;break}o=null}d(o)}})}),[r,l,o,u,n,p]),(0,e.useEffect)((()=>{a({[cp]:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&m(e,t,r,i)}))},insertBefore:"labels"}})}),[a,t,m,u]),(0,e.useEffect)((()=>{a({edgeDots:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t!==u&&g(e,t,r,i)}))},insertBefore:"edgeLabels"}})}),[a,t,g,u]),(0,e.useEffect)((()=>{a({customEdgeLabelsHovers:{renderer:e=>{t.forEachEdge(((t,n,r,i)=>{t===u&&(m(e,t,r,i),g(e,t,r,i))}))},insertBefore:"hovers"}})}),[a,t,m,g,u]),u})({graph:t,onEdgeLabelClick:o});(t=>{const n=rd(),{addRenderers:r}=yd();(0,e.useEffect)((()=>{r({selectedNodeBorder:{renderer:e=>{t.forEachNode((t=>{const r=n.getNodeDisplayData(t);if(!r.selected)return;const i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){up(e,t,n[t])}))}return e}({},r,n.framedGraphToViewport(r),{size:n.scaleSize(r.size)});Od(e,i)}))},insertBefore:cp}})}),[r,t,n])})(t);const m=(0,e.useMemo)((()=>t.reduceEdges(((e,t,n)=>{var r;return(null===(r=n.relationTypes)||void 0===r?void 0:r.length)>0?e+1:e}),0)),[t]);(0,e.useEffect)((()=>{p({enterNode:({node:e})=>{d(e)},leaveNode:()=>{d(null)},clickNode:({node:e})=>{i(e)}})}),[l,p,i]),(0,e.useEffect)((()=>{c.style.cursor=u||h?"pointer":"default"}),[c,u,h]),(0,e.useEffect)((()=>{const e=l.getGraph();let t;try{t=e.neighbors(n)}catch(e){}f({nodeReducer:(i,o)=>{const s=i===n,l=n&&t&&[...t,n].every((e=>e!==i))||(null==r?void 0:r.length)>0&&r.every((t=>!e.hasExtremity(t,i)))||!1,c=dp({},fp,o);return o.nodeType===Jd.interactionType&&(c.hasBorder=!0,c.image=(0,E.svg2Url)('\n<svg id="123" width="500px" height="500px" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="25" cy="25" r="25" fill="#E7EAED" stroke="#E7EAED" stroke-width="0"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M26 26.1458C26.1784 26.3176 26.3127 26.5349 26.3841 26.7791L28.7321 28.1346C28.9712 28.2727 29.0531 28.5785 28.9151 28.8177L28.4151 29.6837C28.277 29.9228 27.9712 30.0048 27.7321 29.8667L25.4564 28.5529C25.313 28.6007 25.1595 28.6266 25 28.6266C24.8405 28.6266 24.687 28.6007 24.5436 28.5529L22.2679 29.8667C22.0288 30.0048 21.723 29.9228 21.5849 29.6837L21.0849 28.8177C20.9469 28.5785 21.0288 28.2727 21.2679 28.1346L23.6159 26.7791C23.6873 26.5349 23.8216 26.3176 24 26.1458V23.8846C24 23.6085 24.2239 23.3846 24.5 23.3846H25.5C25.7761 23.3846 26 23.6085 26 23.8846V26.1458ZM24.8 22.3846C23.1431 22.3846 21.8 21.0415 21.8 19.3846C21.8 17.7278 23.1431 16.3846 24.8 16.3846C26.4569 16.3846 27.8 17.7278 27.8 19.3846C27.8 21.0415 26.4569 22.3846 24.8 22.3846ZM18 34.3846C16.3431 34.3846 15 33.0415 15 31.3846C15 29.7278 16.3431 28.3846 18 28.3846C19.6569 28.3846 21 29.7278 21 31.3846C21 33.0415 19.6569 34.3846 18 34.3846ZM32 34.3846C30.3431 34.3846 29 33.0415 29 31.3846C29 29.7278 30.3431 28.3846 32 28.3846C33.6569 28.3846 35 29.7278 35 31.3846C35 33.0415 33.6569 34.3846 32 34.3846Z" fill="#37474F"/>\n</svg>\n')),l&&(c.inactive=!0,c.labelColor=gp,c.secondaryLabelColor=gp),s&&(c.selected=!0,c.zIndex=100),u===i||s||delete c.secondaryLabel,o.nodeType===Jd.interactionType&&a&&(c.hidden=!0),c},edgeReducer:(t,i)=>{const o="dashed"===i.type,a=dp({},hp,i),l=null==r?void 0:r.includes(t);a.selected=l;const c=m>s;return n?e.hasExtremity(t,n)?a.color=o?"rgba(79, 79, 79, 1)":"rgba(130, 130, 130, 1)":(a.color=mp,a.labelColor=gp,c&&delete a.label):null!=r&&r.length?(a.color=l?"rgba(79, 79, 79, 1)":mp,a.labelColor=l?void 0:gp,c&&!l&&delete a.label):(a.color="rgba(0, 0, 0, 0.2)",c&&delete a.label),a}})}),[l,f,n,r,h,u,m,s,a])})({graph:t,selectedNode:n,selectedEdges:i,onNodeClick:r,onEdgeLabelClick:o,hideInteractionTypes:a}),null);var yp=ae(6439),bp=ae.n(yp),wp=ae(5608),xp=ae.n(wp);function Ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){_p(e,t,n[t])}))}return e}function _p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Op="0 1px 1px rgba(0,0,0,0.14), 0 2px 1px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.2)",Sp={background:"#FFFFFF",boxShadow:Op,width:"28px",height:"28px"},Cp=qn({container:{display:"flex",alignItems:"center"},maxButton:Ep({},Sp,{borderRadius:"2px 4px 4px 2px"}),minButton:Ep({},Sp,{borderRadius:"4px 2px 2px 4px"}),thumb:{boxShadow:Op,borderRadius:"2px",width:"8px",height:"28px",marginLeft:"5px",color:"rgba(0,0,0,0.54)",backgroundColor:"#FFFFFF","&.MuiSlider-thumb.Mui-focusVisible, &:hover":{boxShadow:Op},"&:before":{boxShadow:"none"}},thumbIcon:{transform:"rotate(90deg)"},icon:{width:"18px",height:"18px"},rail:{opacity:1,height:"4px",paddingRight:"10px",marginTop:"1px"},sliderRoot:{color:"#EDEDED",marginRight:"10px",height:"2px"}}),kp=e=>Math.pow(100/e,2),Lp=e=>100/Math.sqrt(e),Pp=e=>{const{children:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]),i=Cp();return t().createElement(wp.SliderThumb,r,n,t().createElement(bp(),{className:Qn()(i.icon,i.thumbIcon)}))},Tp=({className:n,max:r,min:i})=>{const o=Cp(),a=id(),s=cd(),l=rd().getCamera(),{zoomIn:c,zoomOut:u}=function(t){const n=rd(),r=(0,e.useRef)();(0,Qu.isEqual)(r.current,t)||(r.current=t);const i=(0,e.useCallback)((e=>{n.getCamera().animatedZoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),o=(0,e.useCallback)((e=>{n.getCamera().animatedUnzoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),a=(0,e.useCallback)((e=>{n.getCamera().animatedReset(Object.assign(Object.assign({},r.current),e))}),[n,r]),s=(0,e.useCallback)(((e,t)=>{n.getCamera().animate(e,Object.assign(Object.assign({},r.current),t))}),[n,r]),l=(0,e.useCallback)(((e,t)=>{const i=n.getNodeDisplayData(e);i?n.getCamera().animate(i,Object.assign(Object.assign({},r.current),t)):console.log(`Node ${e} not found`)}),[n,r]);return{zoomIn:i,zoomOut:o,reset:a,goto:s,gotoNode:l}}({factor:1.2}),[d,p]=(0,e.useState)((0,x.clamp)(i,r,Lp(l.getState().ratio))),f=(0,e.useMemo)((()=>i>0?kp(i):null),[i]),h=(0,e.useMemo)((()=>r>0?kp(r):null),[r]);return(0,e.useEffect)((()=>(a({maxCameraRatio:f,minCameraRatio:h}),()=>{a({maxCameraRatio:null,minCameraRatio:null})})),[a,h,f]),(0,e.useEffect)((()=>{s({updated:e=>p(Lp(e.ratio))})}),[s]),t().createElement("div",{className:Qn()(o.container,n)},t().createElement(Vo(),{className:o.minButton,onClick:()=>u(),size:"large"},t().createElement(bp(),{className:o.icon})),t().createElement(xp(),{slots:{thumb:Pp},slotProps:{thumb:{className:o.thumb}},classes:{root:o.sliderRoot,rail:o.rail},track:!1,value:d,min:i,max:r,onChange:(e,t)=>l.setState({ratio:l.getBoundedRatio(kp(t))})}),t().createElement(Vo(),{className:o.maxButton,onClick:()=>c(),size:"large"},t().createElement(Ka(),{className:o.icon})))},Rp=qn({wrapper:{height:"100%",position:"relative",background:"rgb(245, 245, 245)"},graph:{height:"100%"},rightBottomControls:{position:"absolute",zIndex:100,right:"18px",bottom:"16px",display:"flex",width:"200px"},zoomSlider:{flexGrow:1,marginRight:"8px"}}),Ap={labelRenderedSizeThreshold:11,zIndex:!0},Mp=({graph:e,children:n,selectedNode:r,onNodeClick:i=x.identity,selectedEdges:o,onEdgeLabelClick:a=x.identity,hideInteractionTypes:s})=>{const l=Rp();return t().createElement("div",{className:l.wrapper},t().createElement("div",{className:l.graph},e&&t().createElement(Ud,{initialSettings:Ap},t().createElement(t().Fragment,null,t().createElement(vp,{graph:e,selectedNode:r,onNodeClick:i,selectedEdges:o,onEdgeLabelClick:a,hideInteractionTypes:s}),t().createElement("div",{className:l.rightBottomControls},t().createElement(Tp,{className:l.zoomSlider,min:30,max:300}))))),n)},Dp=qn((e=>({summaryContainer:{position:"absolute",top:12,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:32,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},summaryDivider:{height:4,width:4,margin:"0 24px",borderRadius:"50%",backgroundColor:"#D9D9D9"},summaryItem:{display:"flex",alignItems:"center"},summaryItemName:{marginRight:8,color:e.palette.text.secondary,fontSize:13},summaryItemValue:{color:e.palette.text.primary,fontSize:18}}))),zp=()=>{const e=Dp(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=C();return t().createElement("div",{className:e.summaryContainer},t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Entity types")),t().createElement("span",{className:e.summaryItemValue},n.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Interaction types")),t().createElement("span",{className:e.summaryItemValue},r.length)),t().createElement("div",{className:e.summaryDivider}),t().createElement("div",{className:e.summaryItem},t().createElement("span",{className:e.summaryItemName},L().text("Relationship types")),t().createElement("span",{className:e.summaryItemValue},i.length)))};function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(null,arguments)}const Np=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",jp({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{width:"8",height:"8",rx:"4",fill:"#006"}))};function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ip.apply(null,arguments)}const Fp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Ip({width:"8",height:"8",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("rect",{x:".5",y:".5",width:"8",height:"8",rx:"4",stroke:"#006",strokeDasharray:"4 2"}))};function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bp.apply(null,arguments)}const Gp=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Bp({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0l4 2-4 2V2.5H0v-1h12V0z",fill:"#006"}))},Up=qn((e=>({legendContainer:{position:"absolute",bottom:18,left:16,zIndex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:28,padding:"0 16px",borderRadius:32,backgroundColor:e.palette.background.paper},legendItem:{display:"flex",alignItems:"center","&:not(:first-child)":{marginLeft:16}},legendItemName:{marginLeft:8,color:e.palette.text.secondary,fontSize:12}}))),Hp=()=>{const e=Up();return t().createElement("div",{className:e.legendContainer},t().createElement("div",{className:e.legendItem},t().createElement(Np,null),t().createElement("span",{className:e.legendItemName},L().text("Entity type"))),t().createElement("div",{className:e.legendItem},t().createElement(Fp,null),t().createElement("span",{className:e.legendItemName},L().text("Interaction type"))),t().createElement("div",{className:e.legendItem},t().createElement(Gp,null),t().createElement("span",{className:e.legendItemName},L().text("Relationship type"))))};var Wp=ae(2811),qp=ae.n(Wp),Vp=ae(3463),$p=ae.n(Vp);const Yp=qn((e=>({checkbox:{position:"absolute",top:12,right:16,zIndex:1},checkboxLabel:{fontSize:13,color:e.palette.text.primary}}))),Zp=({isChecked:e,onChange:n})=>{const r=Yp();return t().createElement($p(),{classes:{label:r.checkboxLabel},className:r.checkbox,control:t().createElement(qp(),{checked:e,onChange:n,size:"medium"}),label:L().text("Hide Interaction types")})};var Xp=ae(3526),Kp=ae.n(Xp);const Qp=qn({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:"calc(100% - 68px)"},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"45 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"56 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:"68px",bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}}),Jp=(0,e.memo)((({relationType:e,onSelect:n})=>{const r=Qp(),{startObject:i,endObject:o,direction:a}=e,s=(0,E.getLabel)(e.label),l=(0,_.useSelector)(S().selectors.getMetadata),c=(0,E.getEntityType)(l,i.objectTypeURI),u=(0,E.getEntityType)(l,o.objectTypeURI),d=(0,E.getLabel)(c.label)+` ${(e=>{switch(e){case E.RelationTypeDirection.directed:return"→";case E.RelationTypeDirection.bidirectional:default:return"↔"}})(a)} `+(0,E.getLabel)(u.label);return t().createElement(ga(),{className:r.container,onClick:()=>n(e.uri)},t().createElement("div",{className:r.icons},t().createElement(Ns,{className:r.iconTop,entityType:c}),t().createElement(Ns,{className:r.iconBottom,entityType:u})),t().createElement("div",{className:r.text},t().createElement(Aa,{value:s},t().createElement(A(),{className:Qn()(r.textItem,r.primaryTextItem)},s)),t().createElement(Aa,{value:d},t().createElement(A(),{color:"textSecondary",className:Qn()(r.textItem,r.secondaryTextItem)},d))))}));Jp.displayName="RelationTypesMenuItem";const ef=qn({paper:{minWidth:"395px",maxWidth:"460px",maxHeight:"min(calc(100vh - 100px), 500px)"}});function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tf.apply(null,arguments)}const nf=(0,e.memo)((e=>{let{relationTypes:n,onSelect:r}=e,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["relationTypes","onSelect"]);const o=ef();return t().createElement(Kp(),tf({},i,{slotProps:{paper:{className:o.paper}}}),n.map((e=>t().createElement(Jp,{key:e.uri,relationType:e,onSelect:r}))))}));function rf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nf.displayName="RelationTypesMenu";const of="-###-",af=(e,t)=>[e,t].sort().join(of),sf=e=>({id:e,startNode:e.split(of)[0],endNode:e.split(of)[1]}),lf=(e,t)=>Object.entries(t).filter((([t,n])=>n.includes(e))).map((([e])=>e)),cf=()=>{const t=(0,_.useSelector)(S().selectors.getMetadata),{entityTypes:n,relationTypes:r,interactionTypes:i}=C(),o=(0,_.useSelector)(S().selectors.getAbsoluteImagePath)||"",a=(0,e.useMemo)((()=>{const e=new(Ku()),a={};(n||[]).forEach((n=>{var r;a[n.uri]=(0,E.getInheritancePath)(t,n.uri),e.addNode(n.uri,{nodeType:Jd.entityType,label:n.label,secondaryLabel:L().text("${count} attributes",{count:(null===(r=n.attributes)||void 0===r?void 0:r.length)||0}),image:(0,E.getAbsoluteImageUrl)(o,(0,E.getEntityTypeImage)(t,n))})})),(i||[]).forEach((t=>{var n;e.addNode(t.uri,{nodeType:Jd.interactionType,label:t.label,secondaryLabel:L().text("${count} attributes",{count:(null===(n=t.attributes)||void 0===n?void 0:n.length)||0})})}));const s=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>((n.memberTypes||[]).forEach((({objectTypeURI:r})=>{lf(r,t).forEach((t=>{const r=af(n.uri,t);e[r]=e[r]||sf(r)}))})),e)),{});return Object.values(n)})(i,a);s.forEach((({id:t,startNode:n,endNode:r})=>{e.addEdgeWithKey(t,n,r,{type:"dashed"})}));const l=((e=[],t)=>{const n=(e||[]).reduce(((e,n)=>{var r,i;const o=lf(null===(r=n.startObject)||void 0===r?void 0:r.objectTypeURI,t),a=lf(null===(i=n.endObject)||void 0===i?void 0:i.objectTypeURI,t);return o.forEach((t=>{a.forEach((r=>{const i=af(t,r);e[i]=e[i]||function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){rf(e,t,n[t])}))}return e}({},sf(i),{relationTypes:[]}),e[i].relationTypes.includes(n)||e[i].relationTypes.push(n)}))})),e}),{});return Object.values(n)})(r,a);return l.forEach((({id:t,startNode:n,endNode:r,relationTypes:i})=>{e.addEdgeWithKey(t,n,r,{relationTypes:i,label:String(i.length),loop:n===r})})),e}),[t,n,r,i,o]);return a},uf=qn({graphContainer:{flexGrow:1}}),df=({currentMetadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=uf(),o=cf(),a=(0,E.isRelationTypeUri)(n),s=(0,e.useMemo)((()=>a?o.reduceEdges(((e,t,r)=>{var i;return null!==(i=r.relationTypes)&&void 0!==i&&i.some((e=>e.uri===n))&&e.push(t),e}),[]):[]),[a,o,n]),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(),[p,f]=(0,e.useState)(),h=(0,e.useCallback)(((e,t)=>{d({left:t.clientX,top:t.clientY}),f(e)}),[]),m=(0,e.useMemo)((()=>{var e;return p&&(null===(e=o.getEdgeAttributes(p))||void 0===e?void 0:e.relationTypes)||[]}),[o,p]),g=(0,e.useCallback)((()=>{d(null),f(null)}),[]),v=(0,e.useCallback)((e=>{r(e),g()}),[r,g]);return t().createElement("div",{className:i.graphContainer},t().createElement(Mp,{graph:o,selectedNode:n&&!a?n:null,onNodeClick:r,selectedEdges:s,onEdgeLabelClick:h,hideInteractionTypes:l},t().createElement(Zp,{isChecked:l,onChange:()=>{!l&&(0,E.isInteractionTypeUri)(n)&&r(n),c((e=>!e))}}),t().createElement(zp,null),t().createElement(Hp,null)),t().createElement(nf,{relationTypes:m,open:Boolean(u),onClose:g,anchorReference:"anchorPosition",anchorPosition:u,onSelect:v}))};class pf extends t().Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){this.setState({error:e}),console.error(e)}render(){const{children:e,error:t}=this.props;return this.state.error?t:e}}var ff=ae(5206),hf=ae.n(ff);function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(null,arguments)}function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(null,arguments)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(null,arguments)}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(null,arguments)}const bf=qn((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"10px",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box","&$root_small":{minHeight:"160px"},"& $text":{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"24px",letterSpacing:"0.25px",textAlign:"center"},"& $secondaryText":{color:e.palette.text.secondary,fontSize:"15px",fontWeight:300,lineHeight:"18px",letterSpacing:"0.11px",textAlign:"center",paddingTop:"3px"}},root_small:{},small:{width:"88px",height:"88px"},embedded:{flexShrink:0,width:"190px",height:"190px",padding:"8px"},full:{width:"256px",height:"256px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:500,marginTop:"16px"},text:{},secondaryText:{},button:{minHeight:36,minWidth:64,maxWidth:500,padding:"10px 16px",borderRadius:"2px",boxShadow:"0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)",fontSize:"14px",fontWeight:500,lineHeight:"16px",marginTop:"24px"}})));function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wf.apply(null,arguments)}let xf=function(e){return e.full="full",e.embedded="embedded",e.small="small",e}({});const Ef={SEARCH_RESULTS:e=>t().createElement("svg",mf({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgEmptySearchResults"},e),t().createElement("defs",null,t().createElement("radialGradient",{cx:"50%",cy:"100%",fx:"50%",fy:"100%",r:"81.681%",gradientTransform:"matrix(.98998 0 0 .612 .005 .388)",id:"EmptySearchResults_svg__c"},t().createElement("stop",{stopColor:"#00BFFF",stopOpacity:.5,offset:"0%"}),t().createElement("stop",{stopColor:"#9EE8FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"111.651%",fx:"50%",fy:"111.651%",r:"87.693%",gradientTransform:"matrix(0 -.97693 .7263 0 -.31 1.605)",id:"EmptySearchResults_svg__f"},t().createElement("stop",{stopColor:"#91F8E5",stopOpacity:.6,offset:"0%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("radialGradient",{cx:"50%",cy:"103.659%",fx:"50%",fy:"103.659%",r:"90.207%",gradientTransform:"matrix(0 -1 2.23905 0 -1.821 1.537)",id:"EmptySearchResults_svg__g"},t().createElement("stop",{stopColor:"#FFF",offset:"0%"}),t().createElement("stop",{stopColor:"#73FAFF",stopOpacity:.21,offset:"59.38%"}),t().createElement("stop",{stopColor:"#14F7FF",stopOpacity:0,offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"170.771%",x2:"50%",y2:"10.303%",id:"EmptySearchResults_svg__e"},t().createElement("stop",{stopColor:"#91F8E5",offset:"0%"}),t().createElement("stop",{stopColor:"#99FCFF",stopOpacity:0,offset:"100%"})),t().createElement("filter",{x:"-25.9%",y:"-26.2%",width:"151.8%",height:"152.3%",filterUnits:"objectBoundingBox",id:"EmptySearchResults_svg__d"},t().createElement("feGaussianBlur",{stdDeviation:15,in:"SourceGraphic"})),t().createElement("circle",{id:"EmptySearchResults_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"EmptySearchResults_svg__b",fill:"#fff"},t().createElement("use",{xlinkHref:"#EmptySearchResults_svg__a"})),t().createElement("use",{fillOpacity:.2,fill:"#A792CD",xlinkHref:"#EmptySearchResults_svg__a"}),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("g",{transform:"translate(56 34)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{d:"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z"}),t().createElement("path",{d:"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z",opacity:.4})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 45.833)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:21.756,y:17.46,width:87.022,height:12.004,rx:6.002}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 87.302)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.091,width:20.668,height:20.734,rx:10.334}),t().createElement("path",{d:"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(21.756 128.77)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:213.204,cy:5.456,rx:4.351,ry:4.365}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:197.976,cy:5.456,rx:4.351,ry:4.365}),t().createElement("path",{d:"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z",fill:"#E3EBF4"}),t().createElement("path",{d:"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#EmptySearchResults_svg__b)"},t().createElement("path",{fill:"#446275",d:"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z"}),t().createElement("path",{d:"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z",fillOpacity:.2,fill:"#FFF"}),t().createElement("path",{d:"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z",fill:"#527585"}),t().createElement("path",{d:"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z",fill:"#76A2B5",opacity:.6}),t().createElement("path",{d:"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z",fillOpacity:.1,fill:"#000"}),t().createElement("g",null,t().createElement("path",{fill:"url(#EmptySearchResults_svg__c)",opacity:.993,filter:"url(#EmptySearchResults_svg__d)",d:"M.63 0h173.74L123 172H52z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__e)",opacity:.3,d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__f)",opacity:.3,d:"M4 2h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"url(#EmptySearchResults_svg__g)",d:"M4 9h166.37L120.73 172.299H53.64z",transform:"rotate(120 90.404 138.861)"}),t().createElement("path",{fill:"#FFF",opacity:.196,d:"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z"})),t().createElement("path",{fill:"#76A2B5",d:"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#F3F3F3",d:"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z"}),t().createElement("path",{fill:"#538196",d:"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z"})))),SELECT_ATTRIBUTES:e=>t().createElement("svg",gf({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgSelectAttributes"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),t().createElement("mask",{id:"SelectAttributes_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#SelectAttributes_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#SelectAttributes_svg__paint0_linear_0_19219)"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#SelectAttributes_svg__paint1_linear_0_19219)"}),t().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),t().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),t().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),t().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),t().createElement("defs",null,t().createElement("linearGradient",{id:"SelectAttributes_svg__paint0_linear_0_19219",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"SelectAttributes_svg__paint1_linear_0_19219",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})))),NO_DATA:e=>t().createElement("svg",vf({width:256,height:256,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-reltio-id":"SvgNoData"},e),t().createElement("defs",null,t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__b"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#F4F4F4",offset:"100%"})),t().createElement("linearGradient",{x1:"69.573%",y1:"86.747%",x2:"38.144%",y2:"33.403%",id:"NoData_svg__d"},t().createElement("stop",{stopColor:"#000",stopOpacity:0,offset:"0%"}),t().createElement("stop",{stopColor:"#000",offset:"100%"})),t().createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"NoData_svg__e"},t().createElement("stop",{stopColor:"#EEFBFF",offset:"0%"}),t().createElement("stop",{stopColor:"#0072CE",offset:"100%"})),t().createElement("filter",{x:"-7.7%",y:"-7.5%",width:"115.3%",height:"115%",filterUnits:"objectBoundingBox",id:"NoData_svg__f"},t().createElement("feOffset",{dx:0,dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),t().createElement("feGaussianBlur",{stdDeviation:2,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),t().createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),t().createElement("feMerge",null,t().createElement("feMergeNode",{in:"shadowMatrixOuter1"}),t().createElement("feMergeNode",{in:"SourceGraphic"}))),t().createElement("circle",{id:"NoData_svg__a",cx:128,cy:128,r:128})),t().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},t().createElement("mask",{id:"NoData_svg__c",fill:"#fff"},t().createElement("use",{xlinkHref:"#NoData_svg__a"})),t().createElement("use",{fillOpacity:.1,fill:"#0072CE",xlinkHref:"#NoData_svg__a"}),t().createElement("path",{fill:"url(#NoData_svg__b)",mask:"url(#NoData_svg__c)",d:"M0 9h256v247H0z"}),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("g",{transform:"translate(29 37)"},t().createElement("g",{opacity:.9,strokeWidth:1,fill:"#FFF"},t().createElement("path",{fillOpacity:.8,opacity:.5,d:"M14.565 8h228.144v176.476H14.565z"}),t().createElement("path",{d:"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z"})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 42.105)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("rect",{fill:"#645F6D",opacity:.5,x:19.986,y:16.04,width:79.944,height:11.028,rx:5.514}),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 80.2)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("rect",{fill:"#E3EBF4",x:0,y:1.003,width:18.987,height:19.048,rx:9.493}),t().createElement("path",{d:"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})),t().createElement("g",{strokeWidth:1,fill:"none",transform:"translate(19.986 118.296)"},t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:195.862,cy:5.013,rx:3.997,ry:4.01}),t().createElement("ellipse",{fill:"#6DBCFF",opacity:.5,cx:181.872,cy:5.013,rx:3.997,ry:4.01}),t().createElement("path",{d:"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z",fill:"#E3EBF4"}),t().createElement("path",{d:"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z",fill:"#B1AABD",opacity:.5}),t().createElement("path",{d:"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z",fill:"#B1AABD",opacity:.43}),t().createElement("path",{d:"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z",fill:"#B1AABD",opacity:.2})))),t().createElement("g",{mask:"url(#NoData_svg__c)"},t().createElement("path",{d:"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z",fill:"url(#NoData_svg__d)",opacity:.1,transform:"rotate(-30 291.014 34.548)"}),t().createElement("path",{d:"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"url(#NoData_svg__e)",opacity:.2,transform:"translate(70 86)"}),t().createElement("g",{filter:"url(#NoData_svg__f)",strokeWidth:1,fill:"none",transform:"translate(70 86)"},t().createElement("path",{d:"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z",fill:"#B5C8C9"}),t().createElement("path",{d:"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z",fillOpacity:.4,fill:"#FFF"})),t().createElement("path",{d:"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z",fill:"#D9F5FF",opacity:.4,style:{mixBlendMode:"soft-light"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.87,fill:"#000",style:{mixBlendMode:"overlay"}}),t().createElement("path",{d:"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z",fillOpacity:.38,fill:"#3C74B4"})))),ERROR:e=>t().createElement("svg",yf({width:88,height:88,viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgError"},e),t().createElement("mask",{id:"Error_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:88,height:88},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#fff"})),t().createElement("g",{mask:"url(#Error_svg__a)"},t().createElement("path",{d:"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z",fill:"#CAC4D5",fillOpacity:.3}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z",fill:"#fff"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z",fill:"#fff"}),t().createElement("path",{d:"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z",fill:"#F9F9F9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z",fill:"#FA82AA"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z",fill:"#4DBEE9"}),t().createElement("path",{d:"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z",fill:"#ACACAC"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z",fill:"#BDBDBD"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z",fill:"#4DBEE9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z",fill:"#4DBEE9"}),t().createElement("path",{d:"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#9C6CF0"}),t().createElement("path",{opacity:.5,d:"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.3,d:"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.8,d:"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#FB6597"}),t().createElement("path",{d:"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.2,d:"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z",fill:"#4DBEE9"}),t().createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z",fill:"#E9E9E9"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z",fill:"#ACACAC"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z",fill:"#E9E9E9"}),t().createElement("path",{d:"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z",fill:"#E9E9E9"}),t().createElement("g",{filter:"url(#Error_svg__filter0_d)"},t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#000"})),t().createElement("path",{d:"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z",fill:"#F25252"}),t().createElement("path",{opacity:.15,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z",fill:"#F25252"}),t().createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z",fill:"#F25252"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z",fill:"#F25252"}),t().createElement("path",{d:"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z",fill:"#FF6A6A"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z",fill:"url(#Error_svg__paint0_linear)"}),t().createElement("g",{filter:"url(#Error_svg__filter1_d)"},t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#000"})),t().createElement("path",{d:"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z",fill:"#fff"}),t().createElement("g",{filter:"url(#Error_svg__filter2_d)"},t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#000"})),t().createElement("path",{d:"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z",fill:"#fff"})),t().createElement("defs",null,t().createElement("filter",{id:"Error_svg__filter0_d",x:36.219,y:37.875,width:42.375,height:42.375,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter1_d",x:51.688,y:62.625,width:11.438,height:11.438,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("filter",{id:"Error_svg__filter2_d",x:51.688,y:44.063,width:11.438,height:23.813,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),t().createElement("linearGradient",{id:"Error_svg__paint0_linear",x1:68.438,y1:71.571,x2:60.119,y2:58.801,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:0}),t().createElement("stop",{offset:1})))),LOADING:e=>t().createElement("svg",wf({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-reltio-id":"SvgEmptyLoading"},e),t().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.03}),t().createElement("mask",{id:"EmptyLoading_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},t().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),t().createElement("g",{mask:"url(#EmptyLoading_svg__a)"},t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#EmptyLoading_svg__paint0_linear_2978_41880)"}),t().createElement("g",{fillRule:"evenodd",clipRule:"evenodd"},t().createElement("path",{d:"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z",fill:"#5E7282"}),t().createElement("path",{d:"M50.371 43.106h255.685V195.71H50.371V43.106z",fill:"url(#EmptyLoading_svg__paint1_linear_2978_41880)"}),t().createElement("path",{d:"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z",fill:"#BDCBD8"}),t().createElement("path",{d:"M339.015 204.883v4.966H15v-4.966h324.015z",fill:"#D4DCDF"}),t().createElement("path",{d:"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z",fill:"url(#EmptyLoading_svg__paint2_linear_2978_41880)"})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter0_d_2978_41880)"},t().createElement("rect",{x:81.703,y:99,width:170,height:26,rx:8,fill:"#D1E6FF"}),t().createElement("rect",{x:84.703,y:102,width:164,height:20,rx:5,stroke:"#fff",strokeWidth:6})),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter1_d_2978_41880)"},t().createElement("mask",{id:"EmptyLoading_svg__b",fill:"#fff"},t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2})),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,fill:"#61A3F1"}),t().createElement("rect",{x:81,y:105,width:108,height:14,rx:2,stroke:"#4A90E2",strokeWidth:8,mask:"url(#EmptyLoading_svg__b)"})),t().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z",fill:"#B6C7DB"}),t().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z",fill:"#979797"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter2_ddd_2978_41880)"},t().createElement("path",{fill:"#A0C1D7",d:"M70.703 64h11v8h-11z"}),t().createElement("rect",{x:62,y:59,width:28,height:8,rx:1,fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z",fill:"#BDD4E3"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z",fill:"#A0C1D7"}),t().createElement("path",{opacity:.144,fillRule:"evenodd",clipRule:"evenodd",d:"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z",fill:"url(#EmptyLoading_svg__paint3_linear_2978_41880)"}),t().createElement("circle",{cx:75.94,cy:123.237,r:44.723,fill:"#91B0C2"}),t().createElement("g",{filter:"url(#EmptyLoading_svg__filter3_d_2978_41880)"},t().createElement("circle",{r:42.793,transform:"matrix(-1 0 0 1 75.94 123.237)",fill:"#F7F4FF"})),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z",fill:"url(#EmptyLoading_svg__paint4_linear_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z",fill:"url(#EmptyLoading_svg__paint5_angular_2978_41880)"}),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z",fill:"#323232"}),t().createElement("circle",{cx:75.94,cy:123.237,r:2.896,fill:"#EEEBF6"}),t().createElement("circle",{cx:96.211,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:107.15,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("rect",{x:62.427,y:135.592,width:27.027,height:10.039,rx:3,fill:"#A0C3D7"}),t().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint6_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z",fill:"url(#EmptyLoading_svg__paint7_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z",fill:"url(#EmptyLoading_svg__paint8_linear_2978_41880)"}),t().createElement("path",{opacity:.02,fillRule:"evenodd",clipRule:"evenodd",d:"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z",fill:"url(#EmptyLoading_svg__paint9_linear_2978_41880)"}),t().createElement("circle",{cx:75.618,cy:155.734,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:55.026,cy:148.655,r:2.574,fill:"#A0C3D7"}),t().createElement("circle",{cx:44.73,cy:131.924,r:2.574,fill:"#A0C3D7"}),t().createElement("g",{fill:"#A0C3D7"},t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 96.21 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 107.149 114.094)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 75.618 90.284)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 55.026 97.363)"}),t().createElement("circle",{r:2.574,transform:"matrix(1 0 0 -1 44.73 114.094)"})))),t().createElement("defs",null,t().createElement("linearGradient",{id:"EmptyLoading_svg__paint0_linear_2978_41880",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),t().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint1_linear_2978_41880",x1:178.214,y1:43.106,x2:178.214,y2:195.709,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#F2F9FB"}),t().createElement("stop",{offset:1,stopColor:"#fff"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint2_linear_2978_41880",x1:178.497,y1:204.542,x2:178.497,y2:213.991,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopColor:"#90AABF"}),t().createElement("stop",{offset:1,stopColor:"#869DAE"})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint3_linear_2978_41880",x1:154.275,y1:146.574,x2:96.683,y2:91.352,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint4_linear_2978_41880",x1:60.762,y1:143.327,x2:114.747,y2:176.019,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.87}),t().createElement("stop",{offset:1,stopOpacity:.01})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint6_linear_2978_41880",x1:90.287,y1:154.267,x2:68.53,y2:131.301,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint7_linear_2978_41880",x1:100.735,y1:120.288,x2:78.978,y2:97.322,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint8_linear_2978_41880",x1:121.119,y1:112.739,x2:99.362,y2:89.773,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("linearGradient",{id:"EmptyLoading_svg__paint9_linear_2978_41880",x1:90.166,y1:136.143,x2:68.409,y2:113.177,gradientUnits:"userSpaceOnUse"},t().createElement("stop",{stopOpacity:.01}),t().createElement("stop",{offset:1})),t().createElement("filter",{id:"EmptyLoading_svg__filter0_d_2978_41880",x:77.703,y:96,width:178,height:34,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter1_d_2978_41880",x:77,y:102,width:116,height:22,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:1}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter2_ddd_2978_41880",x:-13.297,y:28,width:181.534,height:189.17,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:7}),t().createElement("feGaussianBlur",{stdDeviation:4}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:4,operator:"dilate",in:"SourceAlpha",result:"effect2_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:5}),t().createElement("feGaussianBlur",{stdDeviation:16}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_2978_41880",result:"effect2_dropShadow_2978_41880"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feMorphology",{radius:2,operator:"dilate",in:"SourceAlpha",result:"effect3_dropShadow_2978_41880"}),t().createElement("feOffset",{dy:12}),t().createElement("feGaussianBlur",{stdDeviation:8.5}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0"}),t().createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_2978_41880",result:"effect3_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_2978_41880",result:"shape"})),t().createElement("filter",{id:"EmptyLoading_svg__filter3_d_2978_41880",x:29.148,y:78.444,width:93.585,height:93.585,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},t().createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),t().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t().createElement("feOffset",{dy:2}),t().createElement("feGaussianBlur",{stdDeviation:2}),t().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),t().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2978_41880"}),t().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2978_41880",result:"shape"})),t().createElement("radialGradient",{id:"EmptyLoading_svg__paint5_angular_2978_41880",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)"},t().createElement("stop",{stopColor:"#CFE8FF"}),t().createElement("stop",{offset:.599,stopColor:"#D1F2F9",stopOpacity:0}))))},_f=({variant:e=xf.full,LogoRenderer:n=Ef.SEARCH_RESULTS,text:r,secondaryText:i,buttonTitle:o,onClick:a=x.identity,access:s})=>{const l=bf(),c=s&&o;return t().createElement("div",{className:Qn()(l.root,l[`root_${e}`])},t().createElement(n,{className:l[`${e}`]}),t().createElement("div",{className:l.textBox},t().createElement(A(),{variant:"h5",classes:{h5:l.text}},r),i&&t().createElement(A(),{variant:"subtitle1",classes:{subtitle1:l.secondaryText}},i)),c&&t().createElement(hf(),{className:l.button,variant:"contained",color:"primary",onClick:a},o))},Of=qn((e=>({contentWrapper:{display:"flex",boxSizing:"border-box",flex:1,flexDirection:"column",backgroundColor:e.palette.background.paper,boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.2)",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen}),height:"100%"}}))),Sf=({width:e,open:n,children:r})=>{const i=Of();return t().createElement("div",{className:i.contentWrapper,"data-reltio-id":"side-panel",style:{width:e?`${n?e:0}px`:"100%"}},t().createElement(pf,{error:t().createElement(_f,{LogoRenderer:Ef.ERROR,text:L().text("Something went wrong"),variant:xf.full})},n&&r))};var Cf=ae(4294),kf=ae.n(Cf);const Lf=qn({container:{display:"flex",flexShrink:0,height:"63px",alignItems:"center",borderBottom:"1px solid rgba(0,0,0,0.12)"},icon:{margin:"0 12px"},divider:{borderColor:"rgba(0,0,0,0.12)",margin:"19px 17px"},secondTitle:{fontSize:"14px"}}),Pf=({onClose:e,mainTitle:n,secondTitle:r,content:i,rightContent:o})=>{const a=Lf();return t().createElement("div",{className:a.container},t().createElement(Hu,{size:"L",icon:kf(),onClick:e,className:a.icon,tooltipTitle:L().text("Close")}),i||t().createElement(t().Fragment,null,t().createElement(A(),{variant:"h6"},n),r&&t().createElement(t().Fragment,null,t().createElement(Xn(),{orientation:"vertical",flexItem:!0,className:a.divider}),t().createElement(A(),{variant:"body1",color:"textSecondary",className:a.secondTitle},r)),o))};function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tf.apply(null,arguments)}const Rf=(0,e.memo)((({active:e,tabs:n,onClose:r})=>{const i=!(0,x.isNil)(e),{content:o,headerProps:a}=n[e]||{};return t().createElement(Sf,{open:i,key:e},t().createElement(Pf,Tf({onClose:r},a)),o)}));Rf.displayName="RightSidePanel";var Af=ae(8475),Mf=ae.n(Af),Df=ae(7499),zf=ae.n(Df),jf=ae(3734),Nf=ae.n(jf);const If=qn((()=>({root:{fontSize:"20px",fontWeight:500},input:{background:"transparent !important",paddingRight:"32px !important"},menuPaper:{maxWidth:"300px",maxHeight:"600px"},label:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),Ff=({className:n,metadataTypeUri:r,metadataTypes:i,onChange:o})=>{const a=If(),s=(0,e.useCallback)((e=>o(e.target.value)),[o]);return t().createElement(Nf(),{value:r,onChange:s,variant:"standard",disableUnderline:!0,className:Qn()(a.root,n),classes:{standard:a.input},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:a.menuPaper}},"data-reltio-id":"data-model-metadata-type-selector"},i.map((e=>{const n=(0,E.getLabel)(e.label);return t().createElement(ga(),{key:e.uri,value:e.uri},t().createElement(Aa,{value:n},t().createElement("div",{className:a.label},n)))})))},Bf=qn({selector:{maxWidth:"100%",minWidth:0,marginRight:"28px"}}),Gf=({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>{const i=Bf(),{entityTypes:o,relationTypes:a,interactionTypes:s}=C(),l=(0,e.useMemo)((()=>(0,E.isEntityTypeUri)(n)?o:(0,E.isRelationTypeUri)(n)?a:(0,E.isInteractionTypeUri)(n)?s:void 0),[n,o,a,s]);return n?t().createElement(Ff,{className:i.selector,metadataTypeUri:n,metadataTypes:l,onChange:r}):t().createElement(A(),{variant:"h6"},L().text("Tenant information"))};var Uf=ae(8668),Hf=ae.n(Uf),Wf=ae(3839),qf=ae.n(Wf),Vf=ae(6236),$f=ae.n(Vf);function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yf.apply(null,arguments)}const Zf=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Yf({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20a2 2 0 110 4 2 2 0 010-4zm1-15v1.352l3.229 2.051 1.334-.769 1 1.732-1.63.94v3.386l1.63.942-1 1.732-1.334-.77-3.23 2.052L13 19h-2v-1.318l-3.258-2.069-1.304.753-1-1.732 1.575-.91v-3.448l-1.575-.91 1-1.732 1.305.752L11 6.318V5h2zM5.072 16a2 2 0 11-3.464 2 2 2 0 013.464-2zm16.589-.732a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 9a3 3 0 100 6 3 3 0 000-6zm10.392-3a2 2 0 11-3.464 2 2 2 0 013.464-2zM4.34 5.268a2 2 0 11-2 3.464 2 2 0 012-3.464zM12 0a2 2 0 110 4 2 2 0 010-4z",fill:"#000",fillOpacity:".54"}))};function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Kf(e,t,n[t])}))}return e}function Kf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qf={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Jf=qn((e=>({root:{display:"flex",alignItems:"flex-start",padding:"12px",borderRadius:"6px",border:"1px solid rgb(224, 224, 224)",boxSizing:"border-box"},icon:{width:"24px",height:"24px",flexShrink:0,color:e.palette.text.secondary,fill:"currentColor"},content:{marginLeft:"16px",minWidth:0},title:Xf({marginBottom:"4px",color:e.palette.text.secondary,fontSize:"13px",lineHeight:"15.25px",fontWeight:400},Qf),count:Xf({color:e.palette.text.primary,fontSize:"18px",lineHeight:"21.1px",fontWeight:400},Qf)}))),eh=({icon:e,title:n,count:r,className:i,isLoading:o=!1})=>{const a=Jf(),s=E.intl.number(r);return t().createElement("div",{className:Qn()(a.root,i),"data-reltio-id":"data-model-metric-card"},t().createElement(e,{className:a.icon}),t().createElement("div",{className:a.content},t().createElement(Aa,{value:n},t().createElement(A(),{className:a.title},n)),t().createElement(Aa,{value:s},t().createElement(A(),{className:a.count},o?t().createElement(Tl(),{"data-reltio-id":"metric-card-skeleton"}):s))))},th=qn((e=>({root:{display:"flex",alignItems:"center"},iconWrapper:{display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"4px",border:"1px solid rgb(217, 217, 217)"},icon:{width:"16px",height:"16px"},label:{marginLeft:"11px",fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.primary}}))),nh=({name:n})=>{const r=th(),i=(0,_.useSelector)(S().selectors.getMetadata),o=`configuration/sources/${n}`,a=(0,e.useMemo)((()=>(0,E.getSourceSystemLabel)(i,o)),[i,o]);return t().createElement("div",{className:r.root,"data-reltio-id":"data-model-source-system"},t().createElement("div",{className:r.iconWrapper},t().createElement(Ll,{className:r.icon,sourceType:o})),t().createElement(A(),{className:r.label},a))},rh=qn((e=>({title:{marginBottom:"8px"},description:{fontSize:"13px",fontWeight:400,lineHeight:"15.25px",color:e.palette.text.secondary}}))),ih=({children:e,className:n})=>{const r=rh();return t().createElement("div",{className:n},t().createElement(A(),{className:r.title},L().text("Description")),t().createElement(A(),{className:r.description},e))},oh=qn((e=>({title:{fontSize:"16px",fontWeight:400,lineHeight:"24px",letterSpacing:"0.15px",color:e.palette.text.primary}}))),ah=({children:e,className:n})=>{const r=oh();return t().createElement(A(),{className:Qn()(r.title,n)},e)},sh=qn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCards:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"24px"},metricCard:{width:"calc(50% - 4px)"},sourceSystems:{display:"flex",flexWrap:"wrap",gap:"8px 16px"},sourceSystemRowSkeleton:{width:"100%",height:"30px",marginBottom:"8px",transform:"none"}}),lh=({entityTypeUri:n})=>{const r=sh(),i=(0,_.useSelector)(S().selectors.getMetadata),{count:o,isLoading:a}=(t=>{const n=Hl(),[r,i]=(0,e.useState)(0),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{const e=[{filter:"equals",fieldName:"type",values:[t]}],{total:r}=await n((0,E.getTotals)({filters:e}));i(r)}catch(e){i(0),Zl(e,{defaultMessage:L().text("Something went wrong while loading the total number of profiles")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{count:r,isLoading:o}})(n),{sourceSystems:s,isLoading:l}=(t=>{const n=Hl(),[r,i]=(0,e.useState)([]),[o,a]=(0,e.useState)(!1),s=(0,e.useCallback)((async()=>{a(!0);try{var e;const r=await n((0,E.getDQChartsData)({dataLevel:E.DQDataLevel.ENTITY_TYPE,metrics:[E.DQMetric.CONSOLIDATION_RATE],entityTypeUri:t}));i(Object.keys((null==r||null===(e=r.consolidationRate)||void 0===e?void 0:e.totalCrosswalksBySource)??{}))}catch(e){i([]),Zl(e,{defaultMessage:L().text("Something went wrong while loading the contributing sources")})}finally{a(!1)}}),[t,n]);return(0,e.useEffect)((()=>{s()}),[s]),{sourceSystems:r,isLoading:o}})(n),c=(0,e.useMemo)((()=>(0,E.getEntityType)(i,n)),[i,n]),u=(0,e.useMemo)((()=>(0,E.getInteractionTypesForEntityType)(i,n)),[i,n]),d=(0,e.useMemo)((()=>i.relationTypes.filter((e=>(0,E.isRelationWithEntityType)(i,n,e.uri)))),[i,n]),p=(0,e.useMemo)((()=>ml(c.attributes)),[c]);return t().createElement(t().Fragment,null,c.description&&t().createElement(ih,{className:r.description},c.description),t().createElement("div",{className:r.metricCards},t().createElement(eh,{className:r.metricCard,icon:Hf(),title:L().text("Profiles"),count:o,isLoading:a}),t().createElement(eh,{className:r.metricCard,icon:qf(),title:L().text("Attributes"),count:p}),t().createElement(eh,{className:r.metricCard,icon:$f(),title:L().text("Relationship types"),count:d.length}),t().createElement(eh,{className:r.metricCard,icon:Zf,title:L().text("Interaction types"),count:u.length})),(l||0!==s.length)&&t().createElement(ah,{className:r.title},L().text("Contributing sources")),l?t().createElement(t().Fragment,null,t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton}),t().createElement(Tl(),{"data-reltio-id":"source-systems-row-skeleton",className:r.sourceSystemRowSkeleton})):t().createElement("div",{className:r.sourceSystems},s.map((e=>t().createElement(nh,{key:e,name:e})))))},ch=qn((e=>({root:{display:"flex",alignItems:"center"},entityType:{padding:"4px 8px",display:"flex",alignItems:"center",minWidth:"56px",flexShrink:1},relationType:{padding:"0 6px",minWidth:"30px",textAlign:"center",flexShrink:9999},relationTypeLabel:{marginBottom:"6px",fontSize:"10px",fontWeight:400,lineHeight:"12px",color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},relationTypeLine:{position:"relative",width:"100%",height:"1px",background:"rgb(130, 130, 130)","&:before, &:after":{position:"absolute",top:0,transform:"translateY(-50%)",width:0,height:0,borderTop:"4px solid transparent",borderBottom:"4px solid transparent"}},relationTypeLineLeftArrow:{"&:before":{content:'""',left:"-2px",borderRight:"6px solid rgb(130, 130, 130)"}},relationTypeLineRightArrow:{"&:after":{content:'""',right:"-2px",borderLeft:"6px solid rgb(130, 130, 130)"}},entityTypeIcon:{width:"32px",height:"32px"},entityTypeLabel:{marginLeft:"8px",fontSize:"13px",fontWeight:400,color:e.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),uh=({relationType:n})=>{const{direction:r,uri:i,label:o}=n,a=ch(),s=(0,_.useSelector)(S().selectors.getMetadata),[l,c]=(0,e.useMemo)((()=>(0,E.getRelationEntityTypesUris)(s,i)),[s,i]),u=(0,e.useMemo)((()=>(0,E.getEntityType)(s,l)),[s,l]),d=(0,e.useMemo)((()=>(0,E.getEntityType)(s,c)),[s,c]);return t().createElement("div",{className:a.root,"data-reltio-id":"data-model-relation-type-direction"},t().createElement("div",{className:a.entityType},t().createElement(Ns,{className:a.entityTypeIcon,entityType:u}),t().createElement(Aa,{value:(0,E.getLabel)(u.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(u.label)))),t().createElement("div",{className:a.relationType},t().createElement(Aa,{value:(0,E.getLabel)(o)},t().createElement(A(),{className:a.relationTypeLabel},(0,E.getLabel)(o))),t().createElement("div",{className:Qn()(a.relationTypeLine,{[a.relationTypeLineLeftArrow]:r===E.RelationTypeDirection.bidirectional,[a.relationTypeLineRightArrow]:r===E.RelationTypeDirection.directed||r===E.RelationTypeDirection.bidirectional})})),t().createElement("div",{className:a.entityType},t().createElement(Ns,{className:a.entityTypeIcon,entityType:d}),t().createElement(Aa,{value:(0,E.getLabel)(d.label)},t().createElement(A(),{className:a.entityTypeLabel},(0,E.getLabel)(d.label)))))},dh=qn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),ph=({relationTypeUri:n})=>{const r=dh(),i=(0,_.useSelector)(S().selectors.getMetadata),o=(0,e.useMemo)((()=>(0,E.getRelationType)(i,n)),[i,n]);return t().createElement(t().Fragment,null,o.description&&t().createElement(ih,{className:r.description},o.description),t().createElement(eh,{className:r.metricCard,count:ml(o.attributes),title:L().text("Attributes"),icon:qf()}),t().createElement(ah,{className:r.title},L().text("Direction")),t().createElement(uh,{relationType:o}))};var fh=ae(918),hh=ae.n(fh),mh=ae(9850),gh=ae.n(mh),vh=ae(1159),yh=ae.n(vh),bh=ae(8012),wh=ae.n(bh),xh=ae(5681),Eh=ae.n(xh),_h=ae(8878),Oh=ae.n(_h);const Sh=qn({headCell:{fontSize:"14px"},bodyCell:{fontSize:"13px"}}),Ch=({memberTypes:e})=>{const n=Sh(),r=(0,_.useSelector)(S().selectors.getMetadata);return t().createElement(hh(),{component:oa()},t().createElement(gh(),null,t().createElement(yh(),null,t().createElement(Eh(),null,t().createElement(Oh(),{className:n.headCell},L().text("Member type name")),t().createElement(Oh(),{className:n.headCell},L().text("Entity type")))),t().createElement(wh(),null,e.map((e=>{const i=(0,E.getEntityType)(r,e.objectTypeURI);return t().createElement(Eh(),{key:e.uri},t().createElement(Oh(),{className:n.bodyCell},(0,E.getLabel)(e.label)),t().createElement(Oh(),{className:n.bodyCell},(0,E.getLabel)(null==i?void 0:i.label)))})))))},kh=qn({description:{marginBottom:"24px"},title:{marginBottom:"8px"},metricCard:{maxWidth:"220px",marginBottom:"24px"}}),Lh=({interactionTypeUri:n})=>{var r;const i=kh(),o=(0,_.useSelector)(S().selectors.getMetadata),a=(0,e.useMemo)((()=>(0,E.getInteractionType)(o,n)),[o,n]);return t().createElement(t().Fragment,null,a.description&&t().createElement(ih,{className:i.description},a.description),t().createElement(eh,{className:i.metricCard,count:ml(a.attributes),title:L().text("Attributes"),icon:qf()}),Boolean(null===(r=a.memberTypes)||void 0===r?void 0:r.length)&&t().createElement(t().Fragment,null,t().createElement(ah,{className:i.title},L().text("Member types")),t().createElement(Ch,{memberTypes:a.memberTypes})))};function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(null,arguments)}const Th=e=>{let{styles:n={}}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["styles"]);return t().createElement("svg",Ph({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r),t().createElement("path",{d:"M11.25 4h1.5v1.5h-1.5V4zm4.25 4.5h-7v7h7v-7zM7 7v10h10V7H7zm5.75 11.5h-1.5V20h1.5v-1.5zM20 11.25v1.5h-1.5v-1.5H20zm-14.5 1.5v-1.5H4v1.5h1.5z"}))},Rh=qn({metricCards:{display:"flex",flexWrap:"wrap",gap:"8px"},metricCard:{width:"calc(50% - 4px)"}}),Ah=()=>{const e=Rh(),{entityTypes:n=[],interactionTypes:r=[],relationTypes:i=[]}=C();return t().createElement("div",{className:e.metricCards},t().createElement(eh,{className:e.metricCard,icon:Th,title:L().text("Entity types"),count:n.length}),t().createElement(eh,{className:e.metricCard,icon:Zf,title:L().text("Interaction types"),count:r.length}),t().createElement(eh,{className:e.metricCard,icon:$f(),title:L().text("Relationship types"),count:i.length}))},Mh=qn({root:{padding:"16px",overflowY:"auto"}}),Dh=({metadataTypeUri:e})=>{const n=Mh();return t().createElement("div",{className:n.root},(0,E.isEntityTypeUri)(e)?t().createElement(lh,{entityTypeUri:e}):(0,E.isRelationTypeUri)(e)?t().createElement(ph,{relationTypeUri:e}):(0,E.isInteractionTypeUri)(e)?t().createElement(Lh,{interactionTypeUri:e}):t().createElement(Ah,null))},zh=e=>e.target.value;var jh=ae(3732),Nh=ae.n(jh),Ih=ae(8214),Fh=ae.n(Ih),Bh=ae(4501),Gh=ae.n(Bh);const Uh=qn({input:{maxWidth:"320px",width:"100%",height:"40px",fontSize:"14px",background:"rgba(0,0,0,0.03)",padding:"8px 8px 8px 15px",marginRight:"14px",borderRadius:"4px"},startAdornment:{color:"rgba(0,0,0,0.54)"},searchContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"4px 0"},title:{fontSize:"16px",marginRight:"50px",marginLeft:"16px"}}),Hh=({onApplySearch:n})=>{const r=Uh(),[i,o]=(0,e.useState)(""),a=()=>(0,x.pipe)(x.trim,x.toLower,n)(i);return t().createElement("div",{className:r.searchContainer},t().createElement("div",{className:r.title},L().text("Attributes")),t().createElement(Nh(),{className:r.input,value:i,placeholder:L().text("Search"),disableUnderline:!0,onChange:(0,x.pipe)(zh,o),onBlur:a,startAdornment:t().createElement(Fh(),{position:"start"},t().createElement(Gh(),{className:r.startAdornment})),endAdornment:t().createElement(Fh(),{position:"end"},t().createElement(Uu,{"data-reltio-id":"reset-search",size:"S",icon:kf(),onClick:()=>{n(""),o("")}})),onKeyPress:(0,x.when)((0,x.propEq)("key","Enter"),a)}))},Wh=({metadataTypeUri:n})=>{const[r,i]=(0,e.useState)(""),o=(0,_.useSelector)(S().selectors.getMetadata),a=(0,e.useMemo)((()=>(e=>(0,E.isEntityTypeUri)(e)?[{id:Ws.AttributeLabel,size:7,isWithPadding:!0},{id:Ws.Sources,size:5,isWithPadding:!0}]:[{id:Ws.AttributeLabel,size:12,isWithPadding:!0}])(n)),[n]),s=(0,e.useMemo)((()=>{const e=((e,t)=>{if((0,E.isEntityTypeUri)(t)){const n=(0,E.getEntityType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isRelationTypeUri)(t)){const n=(0,E.getRelationType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}if((0,E.isInteractionTypeUri)(t)){const n=(0,E.getInteractionType)(e,t);return(0,E.getAttributeTypesTree)(e,n)}return[]})(o,n);return r?((e,t)=>{const n=(e,t,r=[])=>{const i=t.map((t=>{var i;const o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){fl(e,t,n[t])}))}return e}({},t);return((e,t)=>{var n,r;return(null===(n=e.label)||void 0===n?void 0:n.toLocaleLowerCase().startsWith(t))||(null===(r=e.description)||void 0===r?void 0:r.toLocaleLowerCase().startsWith(t))})(o,e)&&(o.isSearchedElement=!0,r.forEach((e=>e.shouldExpand=!0))),null!==(i=t.children)&&void 0!==i&&i.length&&(o.children=n(e,o.children,[...r,o])),o}));return i},r=e=>{const t=e.filter((e=>e.isSearchedElement||e.shouldExpand));for(const e of t){var n;null!==(n=e.children)&&void 0!==n&&n.length&&(e.children=r(e.children))}return t};return(0,x.pipe)(n,r)(e,t)})(r,e):e}),[o,n,r]);return t().createElement(t().Fragment,null,t().createElement(Hh,{onApplySearch:e=>i(e)}),t().createElement(ec,{columnsData:a,attributeNodesList:s,metadataTypeUri:n,isRightSidePanel:!0}))};var qh=function(e){return e[e.Info=0]="Info",e[e.AttributesTable=1]="AttributesTable",e}(qh||{});const Vh=qn({container:{display:"flex",width:"100%",height:"100%"}}),$h="dataModel",Yh=()=>{const n=Vh(),[r,i]=(0,e.useState)(null),{perspectiveSettings:{active:o}={},updatePerspectiveSettings:a}=ic($h),s=(0,e.useCallback)((e=>{const t=r===e;i(t?null:e),t||null!=o||a({active:0})}),[o,r,a]),l=(({metadataTypeUri:n,onChangeMetadataTypeUri:r})=>(0,e.useMemo)((()=>[{buttonProps:{id:qh.Info,icon:Mf(),tooltipTitle:L().text("Info"),showForDisabled:!0},headerProps:{content:t().createElement(Gf,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(Dh,{metadataTypeUri:n})},{buttonProps:{id:qh.AttributesTable,icon:zf(),tooltipTitle:L().text("Attributes table"),showForDisabled:!0},headerProps:{content:t().createElement(Gf,{metadataTypeUri:n,onChangeMetadataTypeUri:r})},content:t().createElement(Wh,{key:n,metadataTypeUri:n})}]),[n,r]))({metadataTypeUri:r,onChangeMetadataTypeUri:s});return t().createElement("div",{className:n.container},t().createElement(Zu,{perspectiveId:$h,buttonsProps:(0,x.pluck)("buttonProps",l)},t().createElement(df,{currentMetadataTypeUri:r,onChangeMetadataTypeUri:s}),t().createElement(Rf,{tabs:l})))},Zh=qn({dataModelContainer:{display:"flex",width:"100%",height:"calc(100% - 65px)",position:"absolute"}}),Xh=({config:{defaultEntityType:n,mode:r}})=>{const i=Zh(),{entityTypes:o}=C(),a=n?o.find((0,x.propEq)("uri",n)):o[0],[s,l]=(0,e.useState)(a);return t().createElement(t().Fragment,null,t().createElement(Us,{showEntityTypeSelector:!n&&r!==E.DataModelMode.GRAPH,entityTypes:o,selectedEntityType:s,onChangeEntityType:l}),t().createElement("div",{className:i.dataModelContainer},r===E.DataModelMode.GRAPH?t().createElement(Yh,null):t().createElement(nc,{entityType:s})))},Kh=r()({productionPrefix:"dataModel",disableGlobal:!0,seed:"dtm"}),Qh=({config:e})=>t().createElement(o(),{generateClassName:Kh},t().createElement(w,{dateAdapter:p},t().createElement(Xh,{config:e})))})(),se})()}));