@reltio/remotes 1.4.1041 → 1.4.1044

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.
package/8828.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 8828.js.LICENSE.txt */
2
+ (self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8828],{6782:(t,e,i)=>{"use strict";e.Z=function(t){if("string"!=typeof t)throw new Error((0,o.formatMuiErrorMessage)(7));return t.charAt(0).toUpperCase()+t.slice(1)};var o=i(65144)},61932:(t,e,i)=>{"use strict";var o=i(14859);e.Z=void 0;var n=o(i(24328)),r=(0,o(i(50175)).default)(n.default.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload");e.Z=r},27604:(t,e,i)=>{"use strict";var o=i(14859);e.Z=void 0;var n=o(i(24328)),r=(0,o(i(50175)).default)(n.default.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");e.Z=r},38016:(t,e,i)=>{"use strict";var o=i(14859);e.Z=void 0;var n=o(i(24328)),r=(0,o(i(50175)).default)(n.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.Z=r},17871:(t,e,i)=>{"use strict";i.d(e,{j_:()=>D,b6:()=>c,vD:()=>Q,Jx:()=>F,XL:()=>q,mg:()=>ct,Ji:()=>W});var o=i(24328),n=i(75047),r=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self,function(t,e,i,o,n,r,s,a){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[i,o,n,r,s,a],h=0;(l=new Error(e.replace(/%s/g,(function(){return p[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}});const s=(0,o.createContext)(null);function a(t){google.maps.event.removeListener(t)}function l(t=[]){t.forEach(a)}function p({updaterMap:t,eventMap:e,prevProps:i,nextProps:o,instance:n}){const r=function(t,e,i){const o=(n=i,r=function(i,o,n){return"function"==typeof t[n]&&i.push(google.maps.event.addListener(e,o,t[n])),i},s=[],Object.keys(n).reduce((function(t,e){return r(t,n[e],e)}),s));var n,r,s;return o}(o,n,e);return((t,e,i,o)=>{const n={};var r,s;r=t,s=(t,r)=>{const s=i[r];s!==e[r]&&(n[r]=s,t(o,s))},Object.keys(r).forEach((function(t){return s(r[t],t)}))})(t,i,o,n),r}const h={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},d={extraMapTypes(t,e){e.forEach((function(e,i){t.mapTypes.set(String(i),e)}))},center(t,e){t.setCenter(e)},clickableIcons(t,e){t.setClickableIcons(e)},heading(t,e){t.setHeading(e)},mapTypeId(t,e){t.setMapTypeId(e)},options(t,e){t.setOptions(e)},streetView(t,e){t.setStreetView(e)},tilt(t,e){t.setTilt(e)},zoom(t,e){t.setZoom(e)}};class c extends o.PureComponent{constructor(){super(...arguments),this.state={map:null},this.registeredEvents=[],this.mapRef=null,this.getInstance=()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options),this.panTo=t=>{const e=this.getInstance();e&&e.panTo(t)},this.setMapCallback=()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=t=>{this.mapRef=t}}componentDidMount(){const t=this.getInstance();this.registeredEvents=p({updaterMap:d,eventMap:h,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)}componentDidUpdate(t){null!==this.state.map&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:d,eventMap:h,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),l(this.registeredEvents))}render(){return o.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},o.createElement(s.Provider,{value:this.state.map},null!==this.state.map?this.props.children:o.createElement(o.Fragment,null)))}}function u(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]])}return i}const g="undefined"!=typeof document,m=({url:t,id:e,nonce:i})=>g?new Promise((function(o,n){const r=document.getElementById(e),s=window;if(r){const i=r.getAttribute("data-state");if(r.src===t&&"error"!==i){if("ready"===i)return o(e);{const t=s.initMap,i=r.onerror;return s.initMap=function(){t&&t(),o(e)},void(r.onerror=function(t){i&&i(t),n(t)})}}r.remove()}const a=document.createElement("script");a.type="text/javascript",a.src=t,a.id=e,a.async=!0,a.nonce=i,a.onerror=function(t){a.setAttribute("data-state","error"),n(t)},s.initMap=function(){a.setAttribute("data-state","ready"),o(e)},document.head.appendChild(a)})).catch((t=>{throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined")),f=t=>!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML)),M=()=>{const t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(i,o){f(i)||Reflect.apply(e,t,[i,o])};const i=t.appendChild.bind(t);t.appendChild=function(e){f(e)||Reflect.apply(i,t,[e])}};function v({googleMapsApiKey:t,googleMapsClientId:e,version:i="weekly",language:o,region:n,libraries:s,channel:a,mapIds:l}){const p=[];return r(t&&e||!(t&&e),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?p.push(`key=${t}`):e&&p.push(`client=${e}`),i&&p.push(`v=${i}`),o&&p.push(`language=${o}`),n&&p.push(`region=${n}`),s&&s.length&&p.push(`libraries=${s.sort().join(",")}`),a&&p.push(`channel=${a}`),l&&l.length&&p.push(`map_ids=${l.join(",")}`),p.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${p.join("&")}`}let S=!1;function y(){return o.createElement("div",null,"Loading...")}const b={id:"script-loader",version:"weekly"};class k extends o.PureComponent{constructor(){super(...arguments),this.check=o.createRef(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>{return t=this,e=void 0,o=function*(){return new Promise((function(t){if(S){if(g){const e=window.setInterval((function(){S||(window.clearInterval(e),t())}),1)}}else t()}))},new((i=void 0)||(i=Promise))((function(n,r){function s(t){try{l(o.next(t))}catch(t){r(t)}}function a(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}));var t,e,i,o},this.cleanup=()=>{S=!0;const t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&M(),r(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);const t={id:this.props.id,nonce:this.props.nonce,url:v(this.props)};m(t).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((t=>{this.props.onError&&this.props.onError(t),console.error(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey||"-"}) or Client ID (${this.props.googleMapsClientId||"-"}) to <LoadScript />\n Otherwise it is a Network issue.\n `)}))}}componentDidMount(){if(g){if(window.google&&window.google.maps&&!S)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),g&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(g){this.cleanup();const t=()=>{this.check.current||(delete window.google,S=!1)};window.setTimeout(t,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||o.createElement(y,null))}}let C;k.defaultProps=b;const O=o.createElement(y,null);o.memo((function(t){var{loadingElement:e,onLoad:i,onError:n,onUnmount:s,children:a}=t,l=u(t,["loadingElement","onLoad","onError","onUnmount","children"]);const{isLoaded:p,loadError:h}=function({id:t=b.id,version:e=b.version,nonce:i,googleMapsApiKey:n,googleMapsClientId:s,language:a,region:l,libraries:p,preventGoogleFontsLoading:h,channel:d,mapIds:c}){const u=o.useRef(!1),[f,S]=o.useState(!1),[y,k]=o.useState(void 0);o.useEffect((function(){return u.current=!0,()=>{u.current=!1}}),[]),o.useEffect((function(){g&&h&&M()}),[h]),o.useEffect((function(){f&&r(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[f]);const O=v({version:e,googleMapsApiKey:n,googleMapsClientId:s,language:a,region:l,libraries:p,channel:d,mapIds:c});o.useEffect((function(){function e(){u.current&&(S(!0),C=O)}g&&(window.google&&window.google.maps&&C===O?e():m({id:t,url:O,nonce:i}).then(e).catch((function(t){u.current&&k(t),console.warn(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${n||"-"}) or Client ID (${s||"-"})\n Otherwise it is a Network issue.\n `),console.error(t)})))}),[t,O,i]);const x=o.useRef();return o.useEffect((function(){x.current&&p!==x.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),x.current=p}),[p]),{isLoaded:f,loadError:y,url:O}}(l);return o.useEffect((function(){p&&"function"==typeof i&&i()}),[p,i]),o.useEffect((function(){h&&"function"==typeof n&&n(h)}),[h,n]),o.useEffect((function(){return()=>{s&&s()}}),[s]),p?a:e||O}));var x=function t(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var o,n,r;if(Array.isArray(e)){if((o=e.length)!=i.length)return!1;for(n=o;0!=n--;)if(!t(e[n],i[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((o=(r=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(i,r[n]))return!1;for(n=o;0!=n--;){var s=r[n];if(!t(e[s],i[s]))return!1}return!0}return e!=e&&i!=i};const B="__googleMapsScriptId";class z{constructor({apiKey:t,channel:e,client:i,id:o=B,libraries:n=[],language:r,region:s,version:a,mapIds:l,nonce:p,retries:h=3,url:d="https://maps.googleapis.com/maps/api/js"}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=a,this.apiKey=t,this.channel=e,this.client=i,this.id=o||B,this.libraries=n,this.language=r,this.region=s,this.mapIds=l,this.nonce=p,this.retries=h,this.url=d,z.instance){if(!x(this.options,z.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(z.instance.options)}`);return z.instance}z.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((i=>{i?e(i.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function W({id:t=b.id,version:e=b.version,nonce:i,googleMapsApiKey:n,language:r,region:s,libraries:a,preventGoogleFontsLoading:l,mapIds:p}){const h=o.useRef(!1),[d,c]=o.useState(!1),[u,m]=o.useState(void 0);o.useEffect((function(){return h.current=!0,()=>{h.current=!1}}),[]);const f=o.useMemo((function(){return new z({id:t,apiKey:n,version:e,libraries:a,language:r,region:s,mapIds:p,nonce:i})}),[t,n,e,a,r,s,p,i]);o.useEffect((function(){d||f.load().then((function(){h.current&&c(!0)})).catch((function(t){m(t)}))}),[]),o.useEffect((function(){g&&l&&M()}),[l]);const v=o.useRef();return o.useEffect((function(){v.current&&a!==v.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),v.current=a}),[a]),{isLoaded:d,loadError:u}}const w={},P={options(t,e){t.setOptions(e)}};class L extends o.PureComponent{constructor(){super(...arguments),this.state={trafficLayer:null},this.setTrafficLayerCallback=()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)},this.registeredEvents=[]}componentDidMount(){const t=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:P,eventMap:w,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)}componentDidUpdate(t){null!==this.state.trafficLayer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:P,eventMap:w,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),l(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}L.contextType=s;class E extends o.PureComponent{constructor(){super(...arguments),this.state={bicyclingLayer:null},this.setBicyclingLayerCallback=()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}}componentDidMount(){const t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}E.contextType=s;class T extends o.PureComponent{constructor(){super(...arguments),this.state={transitLayer:null},this.setTransitLayerCallback=()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}}componentDidMount(){const t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}T.contextType=s;const I={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},R={drawingMode(t,e){t.setDrawingMode(e)},options(t,e){t.setOptions(e)}};class D extends o.PureComponent{constructor(t){super(t),this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},r(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){const t=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:R,eventMap:I,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)}componentDidUpdate(t){null!==this.state.drawingManager&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:R,eventMap:I,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),l(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return o.createElement(o.Fragment,null)}}D.contextType=s;const A={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},_={animation(t,e){t.setAnimation(e)},clickable(t,e){t.setClickable(e)},cursor(t,e){t.setCursor(e)},draggable(t,e){t.setDraggable(e)},icon(t,e){t.setIcon(e)},label(t,e){t.setLabel(e)},map(t,e){t.setMap(e)},opacity(t,e){t.setOpacity(e)},options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},shape(t,e){t.setShape(e)},title(t,e){t.setTitle(e)},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class F extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[]}componentDidMount(){const t=Object.assign(Object.assign(Object.assign({},this.props.options||{}),this.props.clusterer?{}:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=p({updaterMap:_,eventMap:A,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(t){this.marker&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:_,eventMap:A,prevProps:t,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),l(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let t=null;return this.props.children&&(t=o.Children.map(this.props.children,(t=>{if(!o.isValidElement(t))return t;let e=t;return o.cloneElement(e,{anchor:this.marker})}))),t||null}}F.contextType=s;var U=function(){function t(e,i){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=i,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}return t.prototype.onAdd=function(){var t,e,i=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){e=t})),google.maps.event.addDomListener(this.div,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div,"click",(function(o){if(t=!1,!e){var n=i.cluster.getClusterer();if(google.maps.event.trigger(n,"click",i.cluster),google.maps.event.trigger(n,"clusterclick",i.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),s=i.cluster.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==r&&n.getMap().getZoom()>r&&n.getMap().setZoom(r+1)}),100)}o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseover",i.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(i.cluster.getClusterer(),"mouseout",i.cluster)}))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x,i=t.y;this.div.style.top=i+"px",this.div.style.left=e+"px"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){if(this.div&&this.center){var t,e="",i=this.backgroundPosition.split(" "),o=parseInt(i[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(i[1].replace(/^\s+|\s+$/g,""),10),r=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(r),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+n+"px; left: "+o+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*n+"px, "+(-1*o+this.width)+"px, "+(-1*n+this.height)+"px, "+-1*o+"px);"),e+="'>",this.div.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(t){this.sums=t;var e=this.cluster.getClusterer().getStyles(),i=e[Math.min(e.length-1,Math.max(0,t.index-1))];this.url=i.url,this.height=i.height,this.width=i.width,i.className&&(this.className=this.clusterClassName+" "+i.className),this.anchorText=i.anchorText||[0,0],this.anchorIcon=i.anchorIcon||[this.height/2,this.width/2],this.textColor=i.textColor||"black",this.textSize=i.textSize||11,this.textDecoration=i.textDecoration||"none",this.fontWeight=i.fontWeight||"bold",this.fontStyle=i.fontStyle||"normal",this.fontFamily=i.fontFamily||"Arial,sans-serif",this.backgroundPosition=i.backgroundPosition||"0 0"},t.prototype.setCenter=function(t){this.center=t},t.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},t.prototype.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e},t}(),V=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new U(this,this.markerClusterer.getStyles())}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),i=0;i<e.length;i++){var o=e[i].getPosition();o&&t.extend(o)}return t},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;var e;if(this.center){if(this.averageCenter&&(e=t.getPosition())){var i=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(i-1)+e.lat())/i,(this.center.lng()*(i-1)+e.lng())/i),this.calculateBounds()}}else(e=t.getPosition())&&(this.center=e,this.calculateBounds());t.isAdded=!0,this.markers.push(t);var o=this.markers.length,n=this.markerClusterer.getMaxZoom(),r=this.map.getZoom();if(null!==n&&void 0!==r&&r>n)t.getMap()!==this.map&&t.setMap(this.map);else if(o<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(o===this.minClusterSize)for(var s=0;s<o;s++)this.markers[s].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom(),i=this.map.getZoom();null!==e&&void 0!==i&&i>e||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},t.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}(),j=function(t,e){var i=t.length,o=i.toString().length,n=Math.min(o,e);return{text:i.toString(),index:n,title:""}},G=[53,56,66,78,90],N=function(){function t(e,i,o){void 0===i&&(i=[]),void 0===o&&(o={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,void 0!==o.averageCenter&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=o.imageExtension||"png",this.imageSizes=o.imageSizes||G,this.calculator=o.calculator||j,this.batchSize=o.batchSize||2e3,this.batchSizeIE=o.batchSizeIE||500,this.clusterClass=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(i,!0),this.setMap(e)}return t.prototype.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw()}))]},t.prototype.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(t=0;t<this.clusters.length;t++)this.clusters[t].remove();for(this.clusters=[],t=0;t<this.listeners.length;t++)google.maps.event.removeListener(this.listeners[t]);this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},t.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,i=0;i<t.length;i++){var o=t[i].getPosition();o&&e.extend(o)}this.getMap().fitBounds(e)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(t){this.gridSize=t},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(t){this.maxZoom=t},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(t){this.styles=t},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(t){this.title=t},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(t){this.averageCenter=t},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(t){this.imageExtension=t},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(t){this.imagePath=t},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(t){this.imageSizes=t},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(t){this.calculator=t},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(t){this.clusterClass=t},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},t.prototype.addMarkers=function(t,e){for(var i in t)t.hasOwnProperty(i)&&this.pushMarkerTo(t[i]);e||this.redraw()},t.prototype.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers.push(t)},t.prototype.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var i=0;i<this.markers.length;i++)if(t===this.markers[i]){e=i;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},t.prototype.removeMarker=function(t,e){var i=this.removeMarker_(t);return!e&&i&&this.repaint(),i},t.prototype.removeMarkers=function(t,e){for(var i=!1,o=0;o<t.length;o++)i=i||this.removeMarker_(t[o]);return!e&&i&&this.repaint(),i},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},t.prototype.getExtendedBounds=function(t){var e=this.getProjection(),i=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));i.x+=this.gridSize,i.y-=this.gridSize;var o=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return o.x-=this.gridSize,o.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(i)),t.extend(e.fromDivPixelToLatLng(o)),t},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();for(this.clusters=[],e=0;e<this.markers.length;e++){var i=this.markers[e];i.isAdded=!1,t&&i.setMap(null)}},t.prototype.distanceBetweenPoints=function(t,e){var i=(e.lat()-t.lat())*Math.PI/180,o=(e.lng()-t.lng())*Math.PI/180,n=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))*6371},t.prototype.isMarkerInBounds=function(t,e){var i=t.getPosition();return!!i&&e.contains(i)},t.prototype.addToClosestCluster=function(t){for(var e,i=4e4,o=null,n=0;n<this.clusters.length;n++){var r=(e=this.clusters[n]).getCenter(),s=t.getPosition();if(r&&s){var a=this.distanceBetweenPoints(r,s);a<i&&(i=a,o=e)}}o&&o.isMarkerInClusterBounds(t)?o.addMarker(t):((e=new V(this)).addMarker(t),this.clusters.push(e))},t.prototype.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),o=this.getExtendedBounds(i),n=Math.min(t+this.batchSize,this.markers.length),r=t;r<n;r++){var s=this.markers[r];!s.isAdded&&this.isMarkerInBounds(s,o)&&(!this.ignoreHidden||this.ignoreHidden&&s.getVisible())&&this.addToClosestCluster(s)}if(n<this.markers.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters(n)}),0);else for(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this),r=0;r<this.clusters.length;r++)this.clusters[r].updateIcon()}},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();const H={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},Z={averageCenter(t,e){t.setAverageCenter(e)},batchSizeIE(t,e){t.setBatchSizeIE(e)},calculator(t,e){t.setCalculator(e)},clusterClass(t,e){t.setClusterClass(e)},enableRetinaIcons(t,e){t.setEnableRetinaIcons(e)},gridSize(t,e){t.setGridSize(e)},ignoreHidden(t,e){t.setIgnoreHidden(e)},imageExtension(t,e){t.setImageExtension(e)},imagePath(t,e){t.setImagePath(e)},imageSizes(t,e){t.setImageSizes(e)},maxZoom(t,e){t.setMaxZoom(e)},minimumClusterSize(t,e){t.setMinimumClusterSize(e)},styles(t,e){t.setStyles(e)},title(t,e){t.setTitle(e)},zoomOnClick(t,e){t.setZoomOnClick(e)}};class q extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={markerClusterer:null},this.setClustererCallback=()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}}componentDidMount(){if(this.context){const t=new N(this.context,[],this.props.options);this.registeredEvents=p({updaterMap:Z,eventMap:H,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Z,eventMap:H,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),l(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}q.contextType=s;var $=function(){function t(e){void 0===e&&(e={}),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),void 0===e.visible&&(void 0===e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var t=this;function e(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}if(!this.div){if(this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content)),this.getPanes()[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var i=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-i.left-i.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var o=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],n=0;n<o.length;n++)this.eventListeners.push(google.maps.event.addDomListener(this.div,o[n],e));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",(function(){t.div&&(t.div.style.cursor="default")})))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",(function(i){i.returnValue=!1,i.preventDefault&&i.preventDefault(),t.enableEventPropagation||e(i)})),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var t="";return""!==this.closeBoxURL&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},t.prototype.addClickHandler=function(){if(this.div&&this.div.firstChild&&""!==this.closeBoxURL){var t=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(t,"click",this.getCloseClickHandler())}else this.closeListener=null},t.prototype.getCloseClickHandler=function(){var t=this;return function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(t,"closeclick"),t.close()}},t.prototype.panBox=function(t){if(this.div&&!t){var e=this.getMap();if(e instanceof google.maps.Map){var i=0,o=0,n=e.getBounds();n&&!n.contains(this.position)&&e.setCenter(this.position);var r=e.getDiv(),s=r.offsetWidth,a=r.offsetHeight,l=this.pixelOffset.width,p=this.pixelOffset.height,h=this.div.offsetWidth,d=this.div.offsetHeight,c=this.infoBoxClearance.width,u=this.infoBoxClearance.height,g=this.getProjection().fromLatLngToContainerPixel(this.position);null!==g&&(g.x<-l+c?i=g.x+l-c:g.x+h+l+c>s&&(i=g.x+h+l+c-s),this.alignBottom?g.y<-p+u+d?o=g.y+p-u-d:g.y+p+u>a&&(o=g.y+p+u-a):g.y<-p+u?o=g.y+p-u:g.y+d+p+u>a&&(o=g.y+d+p+u-a)),0===i&&0===o||e.panBy(i,o)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var e in t)t.hasOwnProperty(e)&&(this.div.style[e]=t[e]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var i=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*i+')"',this.div.style.filter="alpha(opacity="+100*i+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView&&document.defaultView.getComputedStyle){var e=this.div.ownerDocument,i=e&&e.defaultView?e.defaultView.getComputedStyle(this.div,""):null;i&&(t.top=parseInt(i.borderTopWidth||"",10)||0,t.bottom=parseInt(i.borderBottomWidth||"",10)||0,t.left=parseInt(i.borderLeftWidth||"",10)||0,t.right=parseInt(i.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(t.top=parseInt(o.borderTopWidth||"",10)||0,t.bottom=parseInt(o.borderBottomWidth||"",10)||0,t.left=parseInt(o.borderLeftWidth||"",10)||0,t.right=parseInt(o.borderRightWidth||"",10)||0)}return t},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection().fromLatLngToDivPixel(this.position);null!==t&&(this.div.style.left=t.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(t.y+this.pixelOffset.height)+"px":this.div.style.top=t.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(t){void 0===t&&(t={}),void 0!==t.boxClass&&(this.boxClass=t.boxClass,this.setBoxStyle()),void 0!==t.boxStyle&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL=t.closeBoxURL),void 0!==t.infoBoxClearance&&(this.infoBoxClearance=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden=t.isHidden),void 0!==t.visible&&(this.isHidden=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(t,e){var i=this;e&&(this.position=e.getPosition(),this.moveListener=google.maps.event.addListener(e,"position_changed",(function(){var t=e.getPosition();i.setPosition(t)})),this.mapListener=google.maps.event.addListener(e,"map_changed",(function(){i.setMap(e.map)}))),this.setMap(t),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0;t<this.eventListeners.length;t++)google.maps.event.removeListener(this.eventListeners[t]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype.hasOwnProperty(e)||(this.prototype[e]=t.prototype[e]);return this}.apply(t,[e])},t}();const K={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Y={options(t,e){t.setOptions(e)},position(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class Q extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):r(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{const{anchor:t,onLoad:e}=this.props,{infoBox:i}=this.state;null!==i&&null!==this.containerElement&&(i.setContent(this.containerElement),this.open(i,t),e&&e(i))}}componentDidMount(){const{options:t}=this.props,e=t||{},{position:i}=e,o=u(e,["position"]);let n;!i||i instanceof google.maps.LatLng||(n=new google.maps.LatLng(i.lat,i.lng));const r=new $(Object.assign(Object.assign({},o),n?{position:n}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=p({updaterMap:Y,eventMap:K,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)}componentDidUpdate(t){const{infoBox:e}=this.state;null!==e&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Y,eventMap:K,prevProps:t,nextProps:this.props,instance:e}))}componentWillUnmount(){const{onUnmount:t}=this.props,{infoBox:e}=this.state;null!==e&&(t&&t(e),l(this.registeredEvents),e.close())}render(){return this.containerElement?n.createPortal(o.Children.only(this.props.children),this.containerElement):null}}Q.contextType=s;var X={exports:{}};!function(t){function e(t,e,i,o){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,i,o)}e.prototype.run=function(t,e,i,o){this._init(t,e,i,o);for(var n=0;n<this._datasetLength;n++)if(1!==this._visited[n]){this._visited[n]=1;var r=this._regionQuery(n);if(r.length<this.minPts)this.noise.push(n);else{var s=this.clusters.length;this.clusters.push([]),this._addToCluster(n,s),this._expandCluster(s,r)}}return this.clusters},e.prototype._init=function(t,e,i,o){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),i&&(this.minPts=i),o&&(this.distance=o)},e.prototype._expandCluster=function(t,e){for(var i=0;i<e.length;i++){var o=e[i];if(1!==this._visited[o]){this._visited[o]=1;var n=this._regionQuery(o);n.length>=this.minPts&&(e=this._mergeArrays(e,n))}1!==this._assigned[o]&&this._addToCluster(o,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],i=0;i<this._datasetLength;i++)this.distance(this.dataset[t],this.dataset[i])<this.epsilon&&e.push(i);return e},e.prototype._mergeArrays=function(t,e){for(var i=e.length,o=0;o<i;o++){var n=e[o];t.indexOf(n)<0&&t.push(n)}return t},e.prototype._euclideanDistance=function(t,e){for(var i=0,o=Math.min(t.length,e.length);o--;)i+=(t[o]-e[o])*(t[o]-e[o]);return Math.sqrt(i)},t.exports&&(t.exports=e)}(X);var J={exports:{}};!function(t){function e(t,e,i){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,i)}e.prototype.init=function(t,e,i){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==i&&(this.distance=i)},e.prototype.run=function(t,e){this.init(t,e);for(var i=this.dataset.length,o=0;o<this.k;o++)this.centroids[o]=this.randomCentroid();for(var n=!0;n;){n=this.assign();for(var r=0;r<this.k;r++){for(var s=new Array(h),a=0,l=0;l<h;l++)s[l]=0;for(var p=0;p<i;p++){var h=this.dataset[p].length;if(r===this.assignments[p]){for(l=0;l<h;l++)s[l]+=this.dataset[p][l];a++}}if(a>0){for(l=0;l<h;l++)s[l]/=a;this.centroids[r]=s}else this.centroids[r]=this.randomCentroid(),n=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,i=this.dataset.length-1;do{e=Math.round(Math.random()*i),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,i=this.dataset.length,o=0;o<i;o++)(t=this.argmin(this.dataset[o],this.centroids,this.distance))!=this.assignments[o]&&(this.assignments[o]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),i=0;i<this.assignments.length;i++)void 0===e[t=this.assignments[i]]&&(e[t]=[]),e[t].push(i);return e},e.prototype.argmin=function(t,e,i){for(var o,n=Number.MAX_VALUE,r=0,s=e.length,a=0;a<s;a++)(o=i(t,e[a]))<n&&(n=o,r=a);return r},e.prototype.distance=function(t,e){for(var i=0,o=Math.min(t.length,e.length);o--;){var n=t[o]-e[o];i+=n*n}return Math.sqrt(i)},t.exports&&(t.exports=e)}(J);var tt,et={exports:{}},it={exports:{}};!function(t){function e(t,e,i){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,i)}e.prototype.insert=function(t,e){for(var i=this._queue.length,o=i;o--;){var n=this._priorities[o];"desc"===this._sorting?e>n&&(i=o):e<n&&(i=o)}this._insertAt(t,e,i)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,i=this._queue.length;e<i;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,i){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var o=0;o<t.length;o++)this.insert(t[o],e[o])}i&&(this._sorting=i)},e.prototype._insertAt=function(t,e,i){this._queue.length===i?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(i,0,t),this._priorities.splice(i,0,e))},t.exports&&(t.exports=e)}(it),function(t){if(t.exports)var e=it.exports;function i(t,e,i,o){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,i,o)}i.prototype.run=function(t,i,o,n){this._init(t,i,o,n);for(var r=0,s=this.dataset.length;r<s;r++)if(1!==this._processed[r]){this._processed[r]=1,this.clusters.push([r]);var a=this.clusters.length-1;this._orderedList.push(r);var l=new e(null,null,"asc"),p=this._regionQuery(r);void 0!==this._distanceToCore(r)&&(this._updateQueue(r,p,l),this._expandCluster(a,l))}return this.clusters},i.prototype.getReachabilityPlot=function(){for(var t=[],e=0,i=this._orderedList.length;e<i;e++){var o=this._orderedList[e],n=this._reachability[o];t.push([o,n])}return t},i.prototype._init=function(t,e,i,o){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),i&&(this.minPts=i),o&&(this.distance=o)},i.prototype._updateQueue=function(t,e,i){var o=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===o._processed[e]){var n=o.distance(o.dataset[t],o.dataset[e]),r=Math.max(o._coreDistance,n);void 0===o._reachability[e]?(o._reachability[e]=r,i.insert(e,r)):r<o._reachability[e]&&(o._reachability[e]=r,i.remove(e),i.insert(e,r))}}))},i.prototype._expandCluster=function(t,e){for(var i=e.getElements(),o=0,n=i.length;o<n;o++){var r=i[o];if(void 0===this._processed[r]){var s=this._regionQuery(r);this._processed[r]=1,this.clusters[t].push(r),this._orderedList.push(r),void 0!==this._distanceToCore(r)&&(this._updateQueue(r,s,e),this._expandCluster(t,e))}}},i.prototype._distanceToCore=function(t){for(var e=this.epsilon,i=0;i<e;i++)if(this._regionQuery(t,i).length>=this.minPts)return i},i.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var i=[],o=0,n=this.dataset.length;o<n;o++)this.distance(this.dataset[t],this.dataset[o])<e&&i.push(o);return i},i.prototype._euclideanDistance=function(t,e){for(var i=0,o=Math.min(t.length,e.length);o--;)i+=(t[o]-e[o])*(t[o]-e[o]);return Math.sqrt(i)},t.exports&&(t.exports=i)}(et),(tt={exports:{}}).exports&&(tt.exports={DBSCAN:X.exports,KMEANS:J.exports,OPTICS:et.exports,PriorityQueue:it.exports});var ot;!function(t,e){t.exports=function(){function t(i,o,n,r,s,a){if(!(s-r<=n)){var l=r+s>>1;e(i,o,l,r,s,a%2),t(i,o,n,r,l-1,a+1),t(i,o,n,l+1,s,a+1)}}function e(t,o,n,r,s,a){for(;s>r;){if(s-r>600){var l=s-r+1,p=n-r+1,h=Math.log(l),d=.5*Math.exp(2*h/3),c=.5*Math.sqrt(h*d*(l-d)/l)*(p-l/2<0?-1:1);e(t,o,n,Math.max(r,Math.floor(n-p*d/l+c)),Math.min(s,Math.floor(n+(l-p)*d/l+c)),a)}var u=o[2*n+a],g=r,m=s;for(i(t,o,r,n),o[2*s+a]>u&&i(t,o,r,s);g<m;){for(i(t,o,g,m),g++,m--;o[2*g+a]<u;)g++;for(;o[2*m+a]>u;)m--}o[2*r+a]===u?i(t,o,r,m):i(t,o,++m,s),m<=n&&(r=m+1),n<=m&&(s=m-1)}}function i(t,e,i,n){o(t,i,n),o(e,2*i,2*n),o(e,2*i+1,2*n+1)}function o(t,e,i){var o=t[e];t[e]=t[i],t[i]=o}function n(t,e,i,o){var n=t-i,r=e-o;return n*n+r*r}var r=function(t){return t[0]},s=function(t){return t[1]},a=function(e,i,o,n,a){void 0===i&&(i=r),void 0===o&&(o=s),void 0===n&&(n=64),void 0===a&&(a=Float64Array),this.nodeSize=n,this.points=e;for(var l=e.length<65536?Uint16Array:Uint32Array,p=this.ids=new l(e.length),h=this.coords=new a(2*e.length),d=0;d<e.length;d++)p[d]=d,h[2*d]=i(e[d]),h[2*d+1]=o(e[d]);t(p,h,n,0,p.length-1,0)};a.prototype.range=function(t,e,i,o){return function(t,e,i,o,n,r,s){for(var a,l,p=[0,t.length-1,0],h=[];p.length;){var d=p.pop(),c=p.pop(),u=p.pop();if(c-u<=s)for(var g=u;g<=c;g++)a=e[2*g],l=e[2*g+1],a>=i&&a<=n&&l>=o&&l<=r&&h.push(t[g]);else{var m=Math.floor((u+c)/2);a=e[2*m],l=e[2*m+1],a>=i&&a<=n&&l>=o&&l<=r&&h.push(t[m]);var f=(d+1)%2;(0===d?i<=a:o<=l)&&(p.push(u),p.push(m-1),p.push(f)),(0===d?n>=a:r>=l)&&(p.push(m+1),p.push(c),p.push(f))}}return h}(this.ids,this.coords,t,e,i,o,this.nodeSize)},a.prototype.within=function(t,e,i){return function(t,e,i,o,r,s){for(var a=[0,t.length-1,0],l=[],p=r*r;a.length;){var h=a.pop(),d=a.pop(),c=a.pop();if(d-c<=s)for(var u=c;u<=d;u++)n(e[2*u],e[2*u+1],i,o)<=p&&l.push(t[u]);else{var g=Math.floor((c+d)/2),m=e[2*g],f=e[2*g+1];n(m,f,i,o)<=p&&l.push(t[g]);var M=(h+1)%2;(0===h?i-r<=m:o-r<=f)&&(a.push(c),a.push(g-1),a.push(M)),(0===h?i+r>=m:o+r>=f)&&(a.push(g+1),a.push(d),a.push(M))}}return l}(this.ids,this.coords,t,e,i,this.nodeSize)};var l,p={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},h=Math.fround||(l=new Float32Array(1),function(t){return l[0]=+t,l[0]}),d=function(t){this.options=v(Object.create(p),t),this.trees=new Array(this.options.maxZoom+1)};function c(t,e,i,o,n){return{x:h(t),y:h(e),zoom:1/0,id:i,parentId:-1,numPoints:o,properties:n}}function u(t,e){var i=t.geometry.coordinates,o=i[0],n=i[1];return{x:h(f(o)),y:h(M(n)),zoom:1/0,index:e,parentId:-1}}function g(t){return{type:"Feature",id:t.id,properties:m(t),geometry:{type:"Point",coordinates:[(o=t.x,360*(o-.5)),(e=t.y,i=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(i))/Math.PI-90)]}};var e,i,o}function m(t){var e=t.numPoints,i=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return v(v({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:i})}function f(t){return t/360+.5}function M(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:i>1?1:i}function v(t,e){for(var i in e)t[i]=e[i];return t}function S(t){return t.x}function y(t){return t.y}return d.prototype.load=function(t){var e=this.options,i=e.log,o=e.minZoom,n=e.maxZoom,r=e.nodeSize;i&&console.time("total time");var s="prepare "+t.length+" points";i&&console.time(s),this.points=t;for(var l=[],p=0;p<t.length;p++)t[p].geometry&&l.push(u(t[p],p));this.trees[n+1]=new a(l,S,y,r,Float32Array),i&&console.timeEnd(s);for(var h=n;h>=o;h--){var d=+Date.now();l=this._cluster(l,h),this.trees[h]=new a(l,S,y,r,Float32Array),i&&console.log("z%d: %d clusters in %dms",h,l.length,+Date.now()-d)}return i&&console.timeEnd("total time"),this},d.prototype.getClusters=function(t,e){var i=((t[0]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[1])),n=180===t[2]?180:((t[2]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)i=-180,n=180;else if(i>n){var s=this.getClusters([i,o,180,r],e),a=this.getClusters([-180,o,n,r],e);return s.concat(a)}for(var l=this.trees[this._limitZoom(e)],p=[],h=0,d=l.range(f(i),M(r),f(n),M(o));h<d.length;h+=1){var c=d[h],u=l.points[c];p.push(u.numPoints?g(u):this.points[u.index])}return p},d.prototype.getChildren=function(t){var e=this._getOriginId(t),i=this._getOriginZoom(t),o="No cluster with the specified id.",n=this.trees[i];if(!n)throw new Error(o);var r=n.points[e];if(!r)throw new Error(o);for(var s=this.options.radius/(this.options.extent*Math.pow(2,i-1)),a=[],l=0,p=n.within(r.x,r.y,s);l<p.length;l+=1){var h=p[l],d=n.points[h];d.parentId===t&&a.push(d.numPoints?g(d):this.points[d.index])}if(0===a.length)throw new Error(o);return a},d.prototype.getLeaves=function(t,e,i){e=e||10,i=i||0;var o=[];return this._appendLeaves(o,t,e,i,0),o},d.prototype.getTile=function(t,e,i){var o=this.trees[this._limitZoom(t)],n=Math.pow(2,t),r=this.options,s=r.extent,a=r.radius/s,l=(i-a)/n,p=(i+1+a)/n,h={features:[]};return this._addTileFeatures(o.range((e-a)/n,l,(e+1+a)/n,p),o.points,e,i,n,h),0===e&&this._addTileFeatures(o.range(1-a/n,l,1,p),o.points,n,i,n,h),e===n-1&&this._addTileFeatures(o.range(0,l,a/n,p),o.points,-1,i,n,h),h.features.length?h:null},d.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var i=this.getChildren(t);if(e++,1!==i.length)break;t=i[0].properties.cluster_id}return e},d.prototype._appendLeaves=function(t,e,i,o,n){for(var r=0,s=this.getChildren(e);r<s.length;r+=1){var a=s[r],l=a.properties;if(l&&l.cluster?n+l.point_count<=o?n+=l.point_count:n=this._appendLeaves(t,l.cluster_id,i,o,n):n<o?n++:t.push(a),t.length===i)break}return n},d.prototype._addTileFeatures=function(t,e,i,o,n,r){for(var s=0,a=t;s<a.length;s+=1){var l=e[a[s]],p=l.numPoints,h=void 0,d=void 0,c=void 0;if(p)h=m(l),d=l.x,c=l.y;else{var u=this.points[l.index];h=u.properties,d=f(u.geometry.coordinates[0]),c=M(u.geometry.coordinates[1])}var g={type:1,geometry:[[Math.round(this.options.extent*(d*n-i)),Math.round(this.options.extent*(c*n-o))]],tags:h},v=void 0;p?v=l.id:this.options.generateId?v=l.index:this.points[l.index].id&&(v=this.points[l.index].id),void 0!==v&&(g.id=v),r.features.push(g)}},d.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},d.prototype._cluster=function(t,e){for(var i=[],o=this.options,n=o.radius,r=o.extent,s=o.reduce,a=o.minPoints,l=n/(r*Math.pow(2,e)),p=0;p<t.length;p++){var h=t[p];if(!(h.zoom<=e)){h.zoom=e;for(var d=this.trees[e+1],u=d.within(h.x,h.y,l),g=h.numPoints||1,m=g,f=0,M=u;f<M.length;f+=1){var v=M[f],S=d.points[v];S.zoom>e&&(m+=S.numPoints||1)}if(m>g&&m>=a){for(var y=h.x*g,b=h.y*g,k=s&&g>1?this._map(h,!0):null,C=(p<<5)+(e+1)+this.points.length,O=0,x=u;O<x.length;O+=1){var B=x[O],z=d.points[B];if(!(z.zoom<=e)){z.zoom=e;var W=z.numPoints||1;y+=z.x*W,b+=z.y*W,z.parentId=C,s&&(k||(k=this._map(h,!0)),s(k,this._map(z)))}}h.parentId=C,i.push(c(y/m,b/m,C,m,k))}else if(i.push(h),m>1)for(var w=0,P=u;w<P.length;w+=1){var L=P[w],E=d.points[L];E.zoom<=e||(E.zoom=e,i.push(E))}}}return i},d.prototype._getOriginId=function(t){return t-this.points.length>>5},d.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},d.prototype._map=function(t,e){if(t.numPoints)return e?v({},t.properties):t.properties;var i=this.points[t.index].properties,o=this.options.map(i);return e&&o===i?v({},o):o},d}()}({exports:{}}),function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"}(ot||(ot={}));const nt={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},rt={options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},zIndex(t,e){t.setZIndex(e)}};class st extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):r(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},this.setInfoWindowCallback=()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}}componentDidMount(){const t=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=p({updaterMap:rt,eventMap:nt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)}componentDidUpdate(t){null!==this.state.infoWindow&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:rt,eventMap:nt,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(l(this.registeredEvents),this.state.infoWindow.close())}render(){return this.containerElement?n.createPortal(o.Children.only(this.props.children),this.containerElement):o.createElement(o.Fragment,null)}}st.contextType=s;const at={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},lt={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},visible(t,e){t.setVisible(e)}};class pt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polyline:null},this.setPolylineCallback=()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}}componentDidMount(){const t=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:lt,eventMap:at,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)}componentDidUpdate(t){null!==this.state.polyline&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:lt,eventMap:at,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),l(this.registeredEvents),this.state.polyline.setMap(null))}render(){return o.createElement(o.Fragment,null)}}pt.contextType=s;const ht={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},dt={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},paths(t,e){t.setPaths(e)},visible(t,e){t.setVisible(e)}};class ct extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polygon:null},this.setPolygonCallback=()=>{null!==this.state.polygon&&this.props.onLoad&&this.props.onLoad(this.state.polygon)}}componentDidMount(){const t=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:dt,eventMap:ht,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)}componentDidUpdate(t){null!==this.state.polygon&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:dt,eventMap:ht,prevProps:t,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),l(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}}ct.contextType=s;const ut={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},gt={bounds(t,e){t.setBounds(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},visible(t,e){t.setVisible(e)}};class mt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={rectangle:null},this.setRectangleCallback=()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}}componentDidMount(){const t=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:gt,eventMap:ut,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)}componentDidUpdate(t){null!==this.state.rectangle&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:gt,eventMap:ut,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),l(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return o.createElement(o.Fragment,null)}}mt.contextType=s;const ft={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},Mt={center(t,e){t.setCenter(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},radius(t,e){t.setRadius(e)},visible(t,e){t.setVisible(e)}};class vt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={circle:null},this.setCircleCallback=()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}}componentDidMount(){const t=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:Mt,eventMap:ft,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)}componentDidUpdate(t){null!==this.state.circle&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Mt,eventMap:ft,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),l(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return o.createElement(o.Fragment,null)}}vt.contextType=s;const St={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},yt={add(t,e){t.add(e)},addgeojson(t,e,i){t.addGeoJson(e,i)},contains(t,e){t.contains(e)},foreach(t,e){t.forEach(e)},loadgeojson(t,e,i,o){t.loadGeoJson(e,i,o)},overridestyle(t,e,i){t.overrideStyle(e,i)},remove(t,e){t.remove(e)},revertstyle(t,e){t.revertStyle(e)},controlposition(t,e){t.setControlPosition(e)},controls(t,e){t.setControls(e)},drawingmode(t,e){t.setDrawingMode(e)},map(t,e){t.setMap(e)},style(t,e){t.setStyle(e)},togeojson(t,e){t.toGeoJson(e)}};class bt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={data:null},this.setDataCallback=()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}}componentDidMount(){const t=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=p({updaterMap:yt,eventMap:St,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)}componentDidUpdate(t){null!==this.state.data&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:yt,eventMap:St,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),l(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}bt.contextType=s;const kt={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},Ct={options(t,e){t.setOptions(e)},url(t,e){t.setUrl(e)},zIndex(t,e){t.setZIndex(e)}};class Ot extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={kmlLayer:null},this.setKmlLayerCallback=()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}}componentDidMount(){const t=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=p({updaterMap:Ct,eventMap:kt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)}componentDidUpdate(t){null!==this.state.kmlLayer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Ct,eventMap:kt,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),l(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}Ot.contextType=s;const xt=(t,e)=>new e(t.lat,t.lng),Bt=(t,e)=>new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng)),zt=(t,e,i)=>t instanceof e?t:i(t,e);function Wt(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function wt(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}class Pt extends o.PureComponent{constructor(t){super(t),this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{const t=this.props.mapPaneName,e=this.overlayView.getPanes();r(!!t,"OverlayView requires props.mapPaneName but got %s",t),e?this.setState({paneEl:e[t]}):this.setState({paneEl:null})},this.onAdd=()=>{var t,e;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)},this.onPositionElement=()=>{var t,e;const i=(a=this.overlayView.getProjection(),l=Object.assign({x:0,y:0},this.containerRef.current?(t=this.containerRef.current,"function"==typeof(e=this.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),p=this.props.bounds,h=this.props.position,void 0!==p?((t,e,i)=>{const o=t&&t.fromLatLngToDivPixel(i.getNorthEast()),n=t&&t.fromLatLngToDivPixel(i.getSouthWest());return o&&n?{left:`${n.x+e.x}px`,top:`${o.y+e.y}px`,width:o.x-n.x-e.x+"px",height:n.y-o.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}})(a,l,zt(p,google.maps.LatLngBounds,Bt)):((t,e,i)=>{const o=t&&t.fromLatLngToDivPixel(i);if(o){const{x:t,y:i}=o;return{left:`${t+e.x}px`,top:`${i+e.y}px`}}return{left:"-9999px",top:"-9999px"}})(a,l,zt(h,google.maps.LatLng,xt))),{left:o,top:n,width:r,height:s}=this.state.containerStyle;var a,l,p,h,d,c;c={left:o,top:n,width:r,height:s},((d=i).left!==c.left||d.top!==c.top||d.width!==c.height||d.height!==c.height)&&this.setState({containerStyle:Object.assign(Object.assign({},i),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var t,e;this.setState((()=>({paneEl:null}))),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)},this.containerRef=o.createRef();const e=new google.maps.OverlayView;e.onAdd=this.onAdd,e.draw=this.draw,e.onRemove=this.onRemove,this.overlayView=e}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){const e=Wt(t.position),i=Wt(this.props.position),o=wt(t.bounds),n=wt(this.props.bounds);e===i&&o===n||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){const t=this.state.paneEl;return t?n.createPortal(o.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},o.Children.only(this.props.children)),t):null}}Pt.FLOAT_PANE="floatPane",Pt.MAP_PANE="mapPane",Pt.MARKER_LAYER="markerLayer",Pt.OVERLAY_LAYER="overlayLayer",Pt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",Pt.contextType=s;const Lt={onDblClick:"dblclick",onClick:"click"},Et={opacity(t,e){t.setOpacity(e)}};class Tt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={groundOverlay:null},this.setGroundOverlayCallback=()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}}componentDidMount(){r(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");const t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=p({updaterMap:Et,eventMap:Lt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)}componentDidUpdate(t){null!==this.state.groundOverlay&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Et,eventMap:Lt,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}Tt.defaultProps={onLoad:function(){}},Tt.contextType=s;const It={},Rt={data(t,e){t.setData(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)}};class Dt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={heatmapLayer:null},this.setHeatmapLayerCallback=()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}}componentDidMount(){r(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),r(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);const t=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=p({updaterMap:Rt,eventMap:It,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)}componentDidUpdate(t){l(this.registeredEvents),this.registeredEvents=p({updaterMap:Rt,eventMap:It,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),l(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}Dt.contextType=s;const At={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},_t={register(t,e,i){t.registerPanoProvider(e,i)},links(t,e){t.setLinks(e)},motionTracking(t,e){t.setMotionTracking(e)},options(t,e){t.setOptions(e)},pano(t,e){t.setPano(e)},position(t,e){t.setPosition(e)},pov(t,e){t.setPov(e)},visible(t,e){t.setVisible(e)},zoom(t,e){t.setZoom(e)}};class Ft extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={streetViewPanorama:null},this.setStreetViewPanoramaCallback=()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}}componentDidMount(){const t=this.context.getStreetView();this.registeredEvents=p({updaterMap:_t,eventMap:At,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)}componentDidUpdate(t){null!==this.state.streetViewPanorama&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:_t,eventMap:At,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),l(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}Ft.contextType=s;class Ut extends o.PureComponent{constructor(){super(...arguments),this.state={streetViewService:null},this.setStreetViewServiceCallback=()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}}componentDidMount(){const t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}Ut.contextType=s,o.PureComponent;const Vt={onDirectionsChanged:"directions_changed"},jt={directions(t,e){t.setDirections(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},panel(t,e){t.setPanel(e)},routeIndex(t,e){t.setRouteIndex(e)}};class Gt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={directionsRenderer:null},this.setDirectionsRendererCallback=()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}}componentDidMount(){const t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=p({updaterMap:jt,eventMap:Vt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)}componentDidUpdate(t){null!==this.state.directionsRenderer&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:jt,eventMap:Vt,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),l(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return o.createElement(o.Fragment,null)}}Gt.contextType=s,o.PureComponent;const Nt={onPlacesChanged:"places_changed"},Ht={bounds(t,e){t.setBounds(e)}};class Zt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=o.createRef(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(r(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){const t=this.containerElement.current.querySelector("input");if(null!==t){const e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=p({updaterMap:Ht,eventMap:Nt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}}componentDidUpdate(t){null!==this.state.searchBox&&(l(this.registeredEvents),this.registeredEvents=p({updaterMap:Ht,eventMap:Nt,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),l(this.registeredEvents))}render(){return o.createElement("div",{ref:this.containerElement},o.Children.only(this.props.children))}}Zt.contextType=s;const qt={onPlaceChanged:"place_changed"},$t={bounds(t,e){t.setBounds(e)},restrictions(t,e){t.setComponentRestrictions(e)},fields(t,e){t.setFields(e)},options(t,e){t.setOptions(e)},types(t,e){t.setTypes(e)}};class Kt extends o.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=o.createRef(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){r(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);const t=this.containerElement.current.querySelector("input");if(t){const e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=p({updaterMap:$t,eventMap:qt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}}componentDidUpdate(t){l(this.registeredEvents),this.registeredEvents=p({updaterMap:$t,eventMap:qt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&l(this.registeredEvents)}render(){return o.createElement("div",{ref:this.containerElement,className:this.props.className||""},o.Children.only(this.props.children))}}Kt.contextType=s},70347:(t,e,i)=>{"use strict";i.d(e,{ZP:()=>C}),i(22220);var o=i(7560),n=(i(51068),i(11720)),r=i(51119),s=i(64659),a=i(4730),l=(i(38111),i(96474)),p=i(50591),h=i(75630),d=i(24328),c=i.n(d),u=(i(27377),i(75047),i(58921),i(92391)),g=i(54573),m=(i(78951),i(19976),i(61950),i(64486));function f(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}var M,v,S,y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,i=String(t).toLowerCase(),o=String(e.value).toLowerCase(),n=String(e.label).toLowerCase();return o===i||n===i},b=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?f(Object(i),!0).forEach((function(e){(0,r.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,i){return!(!t||e.some((function(e){return y(t,e)}))||i.some((function(e){return y(t,e)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}}),k=(M=g.S,S=v=function(t){(0,l.Z)(d,t);var e,i,r=(e=d,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(t){return!1}}(),function(){var t,o=(0,h.Z)(e);if(i){var n=(0,h.Z)(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return(0,p.Z)(this,t)});function d(t){var e;(0,s.Z)(this,d),(e=r.call(this,t)).select=void 0,e.onChange=function(t,i){var o=e.props,r=o.getNewOptionData,s=o.inputValue,a=o.isMulti,l=o.onChange,p=o.onCreateOption,h=o.value,d=o.name;if("select-option"!==i.action)return l(t,i);var c=e.state.newOption,g=Array.isArray(t)?t:[t];if(g[g.length-1]!==c)l(t,i);else if(p)p(s);else{var m=r(s,s),f={action:"create-option",name:d};l(a?[].concat((0,n.Z)((0,u.C)(h)),[m]):m,f)}};var i=t.options||[];return e.state={newOption:void 0,options:i},e}return(0,a.Z)(d,[{key:"UNSAFE_componentWillReceiveProps",value:function(t){var e=t.allowCreateWhileLoading,i=t.createOptionPosition,o=t.formatCreateLabel,r=t.getNewOptionData,s=t.inputValue,a=t.isLoading,l=t.isValidNewOption,p=t.value,h=t.options||[],d=this.state.newOption;d=l(s,(0,u.C)(p),h)?r(s,o(s)):void 0,this.setState({newOption:d,options:!e&&a||!d?h:"first"===i?[d].concat((0,n.Z)(h)):[].concat((0,n.Z)(h),[d])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,e=this.state.options;return c().createElement(M,(0,o.Z)({},this.props,{ref:function(e){t.select=e},options:e,onChange:this.onChange}))}}]),d}(d.Component),v.defaultProps=b,S);const C=(0,m.m)(k)},31396:(t,e,i)=>{"use strict";i.d(e,{Z:()=>w});var o=i(24328),n=i.n(o),r=i(13980),s=i.n(r),a=i(25473),l=i.n(a),p=i(46847);function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e,i){return e&&d(t.prototype,e),i&&d(t,i),t}function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function g(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function m(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?g(Object(i),!0).forEach((function(e){u(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function M(t){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},M(t)}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function S(){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(t){return!1}}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?y(t):e}function k(t){return function(){var e,i=M(t);if(S()){var o=M(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return b(this,e)}}var C=function(t){f(i,t);var e=k(i);function i(){return h(this,i),e.apply(this,arguments)}return c(i,[{key:"render",value:function(){var t=this.props,e=t.children,i=t.className,o=t.split,r=t.style,s=t.size,a=t.eleRef,l=["Pane",o,i],p={flex:1,position:"relative",outline:"none"};return void 0!==s&&("vertical"===o?p.width=s:(p.height=s,p.display="flex"),p.flex="none"),p=Object.assign({},p,r||{}),n().createElement("div",{ref:a,className:l.join(" "),style:p},e)}}]),i}(n().PureComponent);C.propTypes={className:s().string.isRequired,children:s().node.isRequired,size:s().oneOfType([s().string,s().number]),split:s().oneOf(["vertical","horizontal"]),style:l(),eleRef:s().func},C.defaultProps={};var O="Resizer",x=function(t){f(i,t);var e=k(i);function i(){return h(this,i),e.apply(this,arguments)}return c(i,[{key:"render",value:function(){var t=this.props,e=t.className,i=t.onClick,o=t.onDoubleClick,r=t.onMouseDown,s=t.onTouchEnd,a=t.onTouchStart,l=t.resizerClassName,p=t.split,h=t.style,d=[l,p,e];return n().createElement("span",{role:"presentation",className:d.join(" "),style:h,onMouseDown:function(t){return r(t)},onTouchStart:function(t){t.preventDefault(),a(t)},onTouchEnd:function(t){t.preventDefault(),s(t)},onClick:function(t){i&&(t.preventDefault(),i(t))},onDoubleClick:function(t){o&&(t.preventDefault(),o(t))}})}}]),i}(n().Component);function B(t,e){if(t.selection)t.selection.empty();else try{e.getSelection().removeAllRanges()}catch(t){}}function z(t,e,i,o){if("number"==typeof o){var n="number"==typeof e?e:0,r="number"==typeof i&&i>=0?i:1/0;return Math.max(n,Math.min(r,o))}return void 0!==t?t:e}x.propTypes={className:s().string.isRequired,onClick:s().func,onDoubleClick:s().func,onMouseDown:s().func.isRequired,onTouchStart:s().func.isRequired,onTouchEnd:s().func.isRequired,split:s().oneOf(["vertical","horizontal"]),style:l(),resizerClassName:s().string.isRequired},x.defaultProps={resizerClassName:O};var W=function(t){f(i,t);var e=k(i);function i(t){var o;h(this,i),(o=e.call(this,t)).onMouseDown=o.onMouseDown.bind(y(o)),o.onTouchStart=o.onTouchStart.bind(y(o)),o.onMouseMove=o.onMouseMove.bind(y(o)),o.onTouchMove=o.onTouchMove.bind(y(o)),o.onMouseUp=o.onMouseUp.bind(y(o));var n=t.size,r=t.defaultSize,s=t.minSize,a=t.maxSize,l=t.primary,p=void 0!==n?n:z(r,s,a,null);return o.state={active:!1,resized:!1,pane1Size:"first"===l?p:void 0,pane2Size:"second"===l?p:void 0,instanceProps:{size:n}},o}return c(i,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(i.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(t){var e=Object.assign({},t,{touches:[{clientX:t.clientX,clientY:t.clientY}]});this.onTouchStart(e)}},{key:"onTouchStart",value:function(t){var e=this.props,i=e.allowResize,o=e.onDragStarted,n=e.split;if(i){B(document,window);var r="vertical"===n?t.touches[0].clientX:t.touches[0].clientY;"function"==typeof o&&o(),this.setState({active:!0,position:r})}}},{key:"onMouseMove",value:function(t){var e=Object.assign({},t,{touches:[{clientX:t.clientX,clientY:t.clientY}]});this.onTouchMove(e)}},{key:"onTouchMove",value:function(t){var e=this.props,i=e.allowResize,o=e.maxSize,n=e.minSize,r=e.onChange,s=e.split,a=e.step,l=this.state,p=l.active,h=l.position;if(i&&p){B(document,window);var d="first"===this.props.primary,c=d?this.pane1:this.pane2,g=d?this.pane2:this.pane1;if(c){var m=c,f=g;if(m.getBoundingClientRect){var M=m.getBoundingClientRect().width,v=m.getBoundingClientRect().height,S="vertical"===s?M:v,y=h-("vertical"===s?t.touches[0].clientX:t.touches[0].clientY);if(a){if(Math.abs(y)<a)return;y=~~(y/a)*a}var b=d?y:-y;parseInt(window.getComputedStyle(m).order)>parseInt(window.getComputedStyle(f).order)&&(b=-b);var k=o;if(void 0!==o&&o<=0){var C=this.splitPane;k="vertical"===s?C.getBoundingClientRect().width+o:C.getBoundingClientRect().height+o}var O=S-b,x=h-y;O<n?O=n:void 0!==o&&O>k?O=k:this.setState({position:x,resized:!0}),r&&r(O),this.setState(u({draggedSize:O},d?"pane1Size":"pane2Size",O))}}}}},{key:"onMouseUp",value:function(){var t=this.props,e=t.allowResize,i=t.onDragFinished,o=this.state,n=o.active,r=o.draggedSize;e&&n&&("function"==typeof i&&i(r),this.setState({active:!1}))}},{key:"render",value:function(){var t=this,e=this.props,i=e.allowResize,o=e.children,r=e.className,s=e.onResizerClick,a=e.onResizerDoubleClick,l=e.paneClassName,p=e.pane1ClassName,h=e.pane2ClassName,d=e.paneStyle,c=e.pane1Style,u=e.pane2Style,g=e.resizerClassName,f=e.resizerStyle,M=e.split,v=e.style,S=this.state,y=S.pane1Size,b=S.pane2Size,k=i?"":"disabled",B=g?"".concat(g," ").concat(O):g,z=function(t){return n().Children.toArray(t).filter((function(t){return t}))}(o),W=m({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},v);"vertical"===M?Object.assign(W,{flexDirection:"row",left:0,right:0}):Object.assign(W,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var w=["SplitPane",r,M,k],P=m({},d,{},c),L=m({},d,{},u),E=["Pane1",l,p].join(" "),T=["Pane2",l,h].join(" ");return n().createElement("div",{className:w.join(" "),ref:function(e){t.splitPane=e},style:W},n().createElement(C,{className:E,key:"pane1",eleRef:function(e){t.pane1=e},size:y,split:M,style:P},z[0]),n().createElement(x,{className:k,onClick:s,onDoubleClick:a,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:B,split:M,style:f||{}}),n().createElement(C,{className:T,key:"pane2",eleRef:function(e){t.pane2=e},size:b,split:M,style:L},z[1]))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return i.getSizeUpdate(t,e)}},{key:"getSizeUpdate",value:function(t,e){var i={};if(e.instanceProps.size===t.size&&void 0!==t.size)return{};var o=void 0!==t.size?t.size:z(t.defaultSize,t.minSize,t.maxSize,e.draggedSize);void 0!==t.size&&(i.draggedSize=o);var n="first"===t.primary;return i[n?"pane1Size":"pane2Size"]=o,i[n?"pane2Size":"pane1Size"]=void 0,i.instanceProps={size:t.size},i}}]),i}(n().Component);W.propTypes={allowResize:s().bool,children:s().arrayOf(s().node).isRequired,className:s().string,primary:s().oneOf(["first","second"]),minSize:s().oneOfType([s().string,s().number]),maxSize:s().oneOfType([s().string,s().number]),defaultSize:s().oneOfType([s().string,s().number]),size:s().oneOfType([s().string,s().number]),split:s().oneOf(["vertical","horizontal"]),onDragStarted:s().func,onDragFinished:s().func,onChange:s().func,onResizerClick:s().func,onResizerDoubleClick:s().func,style:l(),resizerStyle:l(),paneClassName:s().string,pane1ClassName:s().string,pane2ClassName:s().string,paneStyle:l(),pane1Style:l(),pane2Style:l(),resizerClassName:s().string,step:s().number},W.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},(0,p.polyfill)(W);const w=W},2787:t=>{t.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},25473:(t,e,i)=>{var o=i(2787),n=i(13980);t.exports=function(t,e,i){var n=t[e];if(n){var r=[];if(Object.keys(n).forEach((function(t){-1===o.indexOf(t)&&r.push(t)})),r.length)throw new Error("Prop "+e+" passed to "+i+". Has invalid keys "+r.join(", "))}},t.exports.isRequired=function(e,i,o){if(!e[i])throw new Error("Prop "+i+" passed to "+o+" is required");return t.exports(e,i,o)},t.exports.supportingArrays=n.oneOfType([n.arrayOf(t.exports),t.exports])}}]);
File without changes
package/8911.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8911],{44938:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(24328),l=r.n(n),a=r(50166),o=r(44443),i=r(76444);const s=(0,r(79692).Z)({item:{overflow:"hidden"}});function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=(0,n.memo)((e=>{let{width:t=0,height:r=0,defaultItemSize:p,data:u,children:d,itemKey:h,showNotMeasuredItems:m,listRef:y}=e;const f=s(),g=(0,n.useRef)({}),[b,v]=(0,n.useState)({}),x=(0,n.useCallback)((0,i.DsO)((()=>{v(c({},g.current))})),[]),E=(0,n.useCallback)(((e,t)=>h?h(t,e):t),[h]),w=(0,n.useRef)(),S=y||w;S.current&&S.current.resetAfterIndex(0,!1);const T=(0,n.useMemo)((()=>e=>{let{data:t,index:r,style:n}=e;const a=E(t,r);return l().createElement("div",{style:n,className:f.item},l().createElement("div",{style:m?void 0:{visibility:a in b?void 0:"hidden"}},l().createElement(o.Z,{handleHeight:!0,onResize:(e,t)=>{g.current[a]!==t&&(((e,t)=>{g.current=c({},g.current,{[e]:t})})(a,t),x())}}),d({data:t,index:r})))}),[d,m,E,x,!m&&b]);return l().createElement(a.VariableSizeList,{ref:S,width:t,height:r,itemCount:u.length,itemData:u,itemSize:e=>b[(e=>E(u,e))(e)]||p,itemKey:h},T)}))},68977:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(24328),l=r.n(n),a=r(87918),o=r.n(a),i=r(76444),s=r(72108);const c=(0,n.memo)((e=>{let{relationTypes:t,selectedRelationTypes:r,single:a,placeholder:c,enableEmptyValueUnderline:p,onChange:u,classes:d={},ListLabelProps:h={},disabled:m=!1}=e;const y=(0,n.useMemo)((()=>t.filter(i.Tt2)),[t]);return l().createElement(s.S,{items:y,selectedItemsUris:r,single:a,placeholder:c,enableEmptyValueUnderline:p,onChange:u,classes:d,ListLabelProps:h,disabled:m,label:o().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:o().text("Select relation types")})}));c.displayName="RelationTypesSelector"},28101:(e,t,r)=>{r.d(t,{G:()=>h});var n=r(24328),l=r.n(n),a=r(71153),o=r.n(a),i=r(39475),s=r(79692),c=r(41128);const p=(0,s.Z)((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,c.U1)(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 u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}const h=e=>{let{buttonsProps:t,activeIndexId:r,className:n,onButtonClick:a,classes:s={}}=e;const c=p(),{active:h,buttonWrapper:m}=s,y=d(s,["active","buttonWrapper"]);return l().createElement("div",{className:o()(c.container,n)},t.map((e=>{let{id:t}=e,n=d(e,["id"]);return l().createElement(i.k,u({},n,{classes:y,size:"S",key:t,className:o()({[o()(c.active,h)]:r===t},c.buttonWrapper,m),onClick:()=>a(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,r)=>{r.d(t,{h:()=>o});var n=r(24328),l=r.n(n);const a=(0,r(79692).Z)((e=>({contentWrapper:{display:"flex",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)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),o=e=>{let{width:t,open:r,children:n}=e;const o=a();return l().createElement("div",{className:o.contentWrapper,style:{width:`${r?t:0}px`}},r&&l().createElement(l().Fragment,null,n))}},38911:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Tt});var n=r(24328),l=r.n(n),a=r(52730),o=r(36138),i=r(97333),s=r(22664),c=r(52844),p=r(89810),u=r(87378),d=r(76444),h=r(87918),m=r.n(h),y=r(17440),f=r(29627);function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=(e,t)=>{const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){g(e,t,r[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),n=Object.keys(r);return n.length>50&&delete r[n[0]],r},v=[25,50,100],x=(e,t,r)=>{const{startObject:n,endObject:l,type:a}=t,{directionalLabel:o}=(0,d.nqN)(t)===r?n:l;return o||(0,d.Lmx)(e,a)},E=(e,t,r)=>{const[l,o]=(0,n.useState)({field:"",order:"asc"}),[i,s]=(0,n.useState)(0),[c,u]=(0,n.useState)(v[0]),[h,m]=(0,n.useState)([]),f=(0,a.useSelector)(p.ZP.selectors.getMetadata),g=(0,n.useMemo)((()=>{const t=(null==e?void 0:e.entities)||[];return(0,y.zipObj)(t.map((0,y.prop)("uri")),t)}),[null==e?void 0:e.entities]),b=(0,n.useMemo)((()=>(0,y.pipe)((0,y.filter)((0,y.either)((0,y.pipe)(d.nqN,(0,y.equals)(t)),(0,y.pipe)(d.j5q,(0,y.equals)(t)))),(0,y.uniqBy)((0,y.prop)("uri")),(0,y.map)((e=>{const r=g[((e,t)=>{const r=(0,d.nqN)(t),n=(0,d.j5q)(t);return r===e?n:r})(t,e)];return{relation:e,entity:r,entityLabel:(0,d.idV)(r.label),entityTypeLabel:(0,d.jFi)(f,r),relationTypeLabel:x(f,e,r.uri)}})))((null==e?void 0:e.relations)||[])),[e,t,g,f]),{searchText:E,onChangeSearchText:w,filters:S,onFilter:T,relationTypesOptions:O,entityTypesOptions:C}=(e=>{const[t,r]=(0,n.useState)(""),[l,o]=(0,n.useState)({entityTypesUris:[],relationTypesUris:[]}),i=(0,a.useSelector)(p.ZP.selectors.getMetadata);return{searchText:t,onChangeSearchText:r,filters:l,onFilter:o,entityTypesOptions:(0,n.useMemo)((()=>(0,y.pipe)((0,y.map)((e=>{let{entity:t}=e;return t.type})),y.uniq,(0,y.map)((0,d.nt9)(i)))(e)),[e,i]),relationTypesOptions:(0,n.useMemo)((()=>(0,y.pipe)((0,y.map)((e=>{let{relation:t}=e;return t.type})),y.uniq,(0,y.map)((0,d.V3K)(i)))(e)),[e,i])}})(b),R=(0,n.useMemo)((()=>(0,y.pipe)((0,y.filter)((e=>{let{entityLabel:t,entity:r,relation:n}=e;const{entityTypesUris:l,relationTypesUris:a}=S;return t.toLowerCase().includes(E)&&(0,y.ifElse)((0,y.prop)("length"),(0,y.includes)(n.type),y.T)(a)&&(0,y.ifElse)((0,y.prop)("length"),(0,y.includes)(r.type),y.T)(l)})),l.field?(0,y.sort)(((e,t)=>d.P6Y.strings.sort(l.order,e[l.field],t[l.field]))):y.identity)(b)),[b,l,E,S]),N=(0,n.useMemo)((()=>R.slice(i*c,i*c+c)),[R,i,c]),P=(0,n.useCallback)((e=>{m((t=>[...t,e]))}),[]),k=(0,n.useCallback)((e=>{m((t=>(0,y.without)([e],t)))}),[]);return(0,n.useEffect)((()=>{s(0),w(""),T({entityTypesUris:[],relationTypesUris:[]})}),[t,r,w,T]),(0,n.useEffect)((()=>{s(0)}),[l,E,S]),{rowsData:N,onSort:o,sorting:l,searchText:E,onChangeSearchText:w,filters:S,onFilter:T,entityTypesOptions:C,relationTypesOptions:O,editingRelations:h,onStartRelationEditing:P,onFinishRelationEditing:k,total:R.length,page:i,rowsPerPage:c,onPageChange:s,onRowsPerPageChange:u}},w=l().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{},relationshipTable:{}});w.displayName="GraphStateContext";var S=r(71153),T=r.n(S),O=r(33109),C=r(62901),R=r(72316),N=r(95544),P=r(79692);const k=(0,P.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),j=(0,n.memo)((e=>{let{className:t}=e;const r=k(),n=(0,a.useSelector)(p.ZP.selectors.getEntity);return l().createElement(O.Z,{className:T()(t,C.U),entity:n},l().createElement(N.Z,{className:r.comments},l().createElement(R.Z,{uri:n.uri,relatedObjectUris:(0,d.wp9)(d.q7e.ENTITY,{entityUri:n.uri}),objectType:d.q7e.ENTITY})))}));j.displayName="GraphProfileBand";const L=j;var Z=r(11821),I=r(28101),U=r(82726);const z=(0,P.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["styles"]);return l().createElement("svg",D({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};var A=r(50548);const H=(0,A.l)(w,(0,y.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return l().createElement(O.Z,{entity:t})}));var V=r(15177);const M=(0,P.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),W=(0,A.l)(w,(0,y.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:r}=e;const n=M();return l().createElement("div",{className:n.wrapper},r&&l().createElement(u.Z,null),l().createElement(V.Z,{entity:t,caption:m().text("Entity details"),className:n.noShadowBlock}))}));var F=r(90436),G=r(42011),_=r(44443),q=r(44938),K=r(79573);const X="1px solid rgba(0, 0, 0, 0.05)",Y=(0,P.Z)({table:{flex:1,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},tableBody:{height:"100%",overflow:"auto"},tableBodyWrapper:{height:"100%",overflow:"hidden"},tableRowWrapper:{borderBottom:X},tableRow:{display:"flex",alignItems:"center","& > div":{flexShrink:0}},headRow:{borderBottom:X}});function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}const Q=(0,n.memo)((e=>{let{columnsData:t,sorting:r,onSort:n}=e;const a=Y();return l().createElement("div",{className:T()(a.tableRow,a.headRow)},t.map((e=>{const{id:t,sortable:a,headCellRenderer:o,columnClassName:i}=e,s=o,c=a?{sortField:r.field,sortOrder:r.order,sortHandler:()=>{n({field:t,order:r.field===t?(0,K.Dh)(r.order):"asc"})}}:{};return l().createElement("div",{key:t,className:i},l().createElement(s,$({headCellData:e},c)))})))})),J=(0,n.forwardRef)(((e,t)=>{let{classes:r,columnsData:a,rowsData:o,sorting:i,onSort:s,getRowKey:c,ExpandedRowRenderer:p,defaultRowHeight:u}=e;const d=Y(),[h,m]=(0,n.useState)({width:0,height:0}),y=(0,n.useCallback)((e=>{let{data:t,index:n}=e;const o=t[n];return l().createElement("div",{className:T()(d.tableRowWrapper,null==r?void 0:r.tableRowWrapper)},l().createElement("div",{className:T()(d.tableRow,null==r?void 0:r.tableRow)},a.map((e=>{let{id:t,rowCellValueRenderer:r,columnClassName:n}=e;const a=r;return l().createElement("div",{key:t,className:n},l().createElement(a,{value:o[t],rowValue:o}))}))),o.expanded&&p&&l().createElement(p,{open:o.expanded,rowValue:o}))}),[a,p]),f=(0,n.useCallback)(((e,t)=>{m({width:e,height:t})}),[]),g=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,(()=>({resetScrollbarPosition:()=>{var e;null===(e=g.current)||void 0===e||e.scrollTo(0)}}))),l().createElement("div",{className:d.table},l().createElement(Q,{columnsData:a,sorting:i,onSort:s}),l().createElement("div",{className:d.tableBodyWrapper},l().createElement(_.Z,{handleHeight:!0,handleWidth:!0,onResize:f}),l().createElement("div",{className:d.tableBody},l().createElement(q.Z,{listRef:g,width:h.width,height:h.height,data:o,defaultItemSize:u,itemKey:c,showNotMeasuredItems:!0},y))))})),ee=(0,n.memo)(J);var te=r(92332),re=r(83088);const ne="rgba(238, 238, 238, 1)",le=(0,P.Z)({tableWithPagination:{flex:1,overflow:"hidden",paddingRight:"1px",display:"flex",flexDirection:"column"},tableContainer:{flex:1,overflow:"hidden"},profileColumn:{width:"200px"},relationshipTypeColumn:{width:"130px"},entityTypeColumn:{width:"140px"},row:{position:"relative","&:hover":{background:ne}}});function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oe={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},ie=".collapsibleTableRow:hover &",se=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ae(e,t,r[t])}))}return e}({},oe,{[ie]:{background:`linear-gradient(to right, rgba(238, 238, 238, 0), ${ne} 100%)`}}),ce=(0,P.Z)((e=>({headCell:{position:"relative",display:"flex",alignItems:"center",height:"33px",padding:"6px 0 6px 16px","&>div":{flexDirection:"row"},"&>div>span[role=button]":{width:"calc(100% + 49px)"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":oe},defaultCell:{position:"relative",color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"6px 16px","&:after":se},clickable:{cursor:"pointer"},profileCell:{paddingTop:"3px",paddingBottom:"4px"},controlsCell:{position:"absolute",display:"flex",alignItems:"center",height:"100%",flexShrink:0,top:0,right:"9px",visibility:"hidden",[ie]:{visibility:"visible",background:ne}},editButton:{marginRight:"7px"},entityAvatar:{width:"20px",height:"20px",marginRight:"8px"}})));function pe(){return pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(this,arguments)}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){de(e,t,r[t])}))}return e}function de(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const he=e=>{let{className:t,headCellData:r}=e,n=function(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,["className","headCellData"]);const a=ce();return l().createElement("div",{className:T()(a.headCell,t)},l().createElement(te.default,pe({},n,{headCellData:ue({},r,{label:l().createElement(re.C,{value:r.label},l().createElement("div",{className:a.headLabel},r.label))})})))},me=(0,n.memo)((e=>{let{value:t="",tooltip:r,onClick:n,className:a}=e;const o=ce();return r=r||t,l().createElement(re.C,{value:r},l().createElement("div",{className:T()(o.defaultCell,a,{[o.clickable]:!!n}),onClick:n},t))}));var ye=r(37573);const fe=(0,A.l)(w,(e=>{let{onEntitySelect:t}=e;return{onClick:t}}),(e=>{let{value:t,rowValue:{entity:r},className:n,onClick:a}=e;const o=ce(),i=l().createElement(l().Fragment,null,l().createElement(ye.Z,{entity:r,avatarClassName:o.entityAvatar}),t);return l().createElement(me,{value:i,tooltip:t,className:T()(o.profileCell,n),onClick:()=>a(r.uri)})})),ge=(0,n.memo)((e=>{let{open:t,rowValue:r}=e;return t?l().createElement("div",{style:{padding:"6px 16px",fontSize:"13px"}},r.relation.uri):null}));var be=r(39475),ve=r(27604),xe=r(22983);const Ee=(0,A.l)(w,(e=>{let{relationshipTable:{onStartRelationEditing:t,onFinishRelationEditing:r}}=e;return{onEdit:t,onDelete:r}}),(e=>{let{rowValue:{relation:{uri:t}},className:r,onEdit:n,onDelete:a}=e;const o=ce();return l().createElement("div",{className:T()(o.controlsCell,r)},l().createElement(be.k,{className:o.editButton,icon:ve.Z,size:"XXS",tooltipTitle:m().text("Edit"),onClick:()=>n(t)}),l().createElement(be.k,{icon:xe.Z,size:"XXS",tooltipTitle:m().text("Delete"),onClick:()=>a(t)}))}));function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Se(e,t,r[t])}))}return e}function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Te=(e,t)=>t[e].relation.uri||`${e}`,Oe=(0,A.l)(w,(e=>{let{relationshipTable:t}=e;return we({},t)}),(e=>{let{rowsData:t,sorting:r,onSort:a,total:o,page:i,rowsPerPage:s,onPageChange:c,onRowsPerPageChange:p,editingRelations:u}=e;const d=le(),h=(0,n.useMemo)((()=>[{id:"entityLabel",label:m().text("Profile"),headCellRenderer:he,rowCellValueRenderer:fe,sortable:!0,columnClassName:d.profileColumn},{id:"relationTypeLabel",label:m().text("Relationship type"),headCellRenderer:he,rowCellValueRenderer:me,sortable:!0,columnClassName:d.relationshipTypeColumn},{id:"entityTypeLabel",label:m().text("Entity Type"),headCellRenderer:he,rowCellValueRenderer:me,sortable:!0,columnClassName:d.entityTypeColumn},{id:"controls",label:"",headCellRenderer:he,rowCellValueRenderer:Ee}]),[d]),y=(0,n.useRef)(null);(0,n.useEffect)((()=>{var e;null===(e=y.current)||void 0===e||e.resetScrollbarPosition()}),[t]);const f=(0,n.useMemo)((()=>t.map((e=>{var t;return null!=u&&u.includes(null==e||null===(t=e.relation)||void 0===t?void 0:t.uri)?we({},e,{expanded:!0}):e}))),[t,u]),g=(0,n.useMemo)((()=>({tableRow:T()(d.row,"collapsibleTableRow")})),[d]);return l().createElement("div",{className:d.tableWithPagination},l().createElement("div",{className:d.tableContainer},l().createElement(ee,{ref:y,columnsData:h,rowsData:f,sorting:r,onSort:a,getRowKey:Te,ExpandedRowRenderer:ge,defaultRowHeight:28,classes:g})),o>v[0]&&l().createElement(G.Z,{count:o,rowsPerPageOptions:v,rowsPerPage:s,onChangeRowsPerPage:p,page:i,onChangePage:c,basicTableRef:y}))}));var Ce=r(36444),Re=r(61837),Ne=r(33662);const Pe=(0,P.Z)((e=>({inactiveSearchIcon:{color:e.palette.text.secondary},activeSearchIcon:{color:e.palette.text.primary},input:{fontSize:"14px","&::placeholder":{color:`${e.palette.text.secondary} !important`,opacity:1}}}))),ke=(0,A.l)(w,(0,y.pipe)((0,y.prop)("relationshipTable"),(0,y.pick)(["searchText","onChangeSearchText"])),(e=>{let{searchText:t,onChangeSearchText:r}=e;const n=Pe();return l().createElement(Ne.Z,{fullWidth:!0,height:40,autofocus:!1,value:t,onSearch:r,placeholder:m().text("Search profiles"),classes:{input:n.input}})}));var je=r(92934),Le=r(68977),Ze=r(77277),Ie=r(8629);const Ue=(0,P.Z)((e=>({dialogPaper:{display:"flex",flexDirection:"column",padding:"12px 16px 8px"},title:{marginBottom:"21px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary},entityTypesSelector:{width:"468px",marginBottom:"20px"},relationTypesSelector:{width:"468px",marginBottom:"32px"},footer:{display:"flex"},clearAllButton:{marginRight:"auto"},cancelButton:{marginRight:"8px"}}))),ze=(0,A.l)(w,(0,y.pipe)((0,y.prop)("relationshipTable"),(0,y.pick)(["onFilter","filters","entityTypesOptions","relationTypesOptions"])),(e=>{let{open:t,onClose:r,filters:a,onFilter:o,entityTypesOptions:i,relationTypesOptions:s}=e;const c=Ue(),[p,u]=(0,n.useState)([]),[d,h]=(0,n.useState)([]),y=()=>{u(a.entityTypesUris),h(a.relationTypesUris),r()};return(0,n.useEffect)((()=>{u(a.entityTypesUris),h(a.relationTypesUris)}),[a.entityTypesUris,a.relationTypesUris]),l().createElement(Ie.Z,{classes:{paper:c.dialogPaper},onClose:y,open:t},l().createElement(F.Z,{className:c.title},m().text("Filter")),l().createElement(je.Q,{classes:{root:c.entityTypesSelector},entityTypes:i,selectedEntityTypes:p,enableEmptyValueUnderline:!0,onChange:u}),l().createElement(Le.U,{classes:{root:c.relationTypesSelector},relationTypes:s,selectedRelationTypes:d,enableEmptyValueUnderline:!0,onChange:h}),l().createElement("div",{className:c.footer},l().createElement(Ze.Z,{className:c.clearAllButton,onClick:()=>{u([]),h([])}},m().text("Clear All")),l().createElement(Ze.Z,{className:c.cancelButton,onClick:y},m().text("Cancel")),l().createElement(Ze.Z,{onClick:()=>{o({entityTypesUris:p,relationTypesUris:d}),r()},color:"primary"},m().text("Apply"))))})),De=(0,P.Z)((e=>({wrapper:{display:"flex",alignItems:"center",paddingLeft:"16px",paddingRight:"2px"},iconButton:{marginLeft:"4px"},activeFiltersIcon:{color:e.palette.primary.main},inactiveFiltersIcon:{color:e.palette.text.secondary}}))),Be=(0,A.l)(w,(0,y.pipe)((0,y.prop)("relationshipTable"),(0,y.pick)(["filters"])),(e=>{let{filters:t}=e;const r=De(),[a,o]=(0,n.useState)(!1),{entityTypesUris:i,relationTypesUris:s}=t,c=i.length||s.length;return l().createElement("div",{className:r.wrapper},l().createElement(ke,null),l().createElement(Re.Z,{className:r.iconButton,onClick:()=>o(!0)},l().createElement(Ce.Z,{className:c?r.activeFiltersIcon:r.inactiveFiltersIcon})),l().createElement(ze,{open:a,onClose:()=>o(!1)}))})),Ae=(0,P.Z)({caption:{marginLeft:"16px",marginTop:"12px",marginBottom:"14px",fontSize:"16px",lineHeight:"24px"},wrapper:{flex:1,display:"flex",flexDirection:"column",height:0}}),He=()=>{const e=Ae();return l().createElement("div",{className:e.wrapper},l().createElement(F.Z,{className:e.caption,variant:"subtitle1"},m().text("Relationships")),l().createElement(Be,null),l().createElement(Oe,null))};let Ve;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(Ve||(Ve={}));const Me=(0,n.memo)((()=>{var e;const t=z(),[r,a]=(0,n.useState)(null),o=(0,n.useCallback)((e=>{a((t=>t===e?null:e))}),[]),i=null!==r,s=(0,n.useMemo)((()=>[{buttonProps:{id:Ve.Relationship,icon:B,tooltipTitle:m().text("Relationship")},content:l().createElement(He,null)},{buttonProps:{id:Ve.EntityDetails,icon:U.Z,tooltipTitle:m().text("Entity Details")},content:l().createElement(W,null)}]),[]);return l().createElement("div",{className:t.wrapper},l().createElement(Z.h,{open:i,width:480},l().createElement(H,null),null===(e=s[r])||void 0===e?void 0:e.content),l().createElement(I.G,{buttonsProps:(0,y.pluck)("buttonProps",s),onButtonClick:o,activeIndexId:r}))}));Me.displayName="GraphRightSidePanel";const We=Me;var Fe=r(4986);const Ge=e=>{let{children:t}=e;return l().createElement(Fe.SigmaContainer,{style:{background:"transparent"}},t)};var _e=r(28833),qe=r.n(_e),Ke=r(3660),Xe=r.n(Ke),Ye=r(98996),$e=r.n(Ye),Qe=r(60715),Je=r(35174),et=r(30284);const tt=.6,rt=(e,t,r,n,l)=>{if(t.loop){const{size:n,color:l}=t,a=r.x,o=r.y,i=r.size,s=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{x1:e-7*(r+n),y1:t,x2:e,y2:t+7*(r+n)}}(a,o,.6*i);if(e.strokeStyle=l,e.lineWidth=n,"arrow"===t.type){const{aX:t,aY:r,vX:n,vY:c}=((e,t,r,n)=>{const l=Math.max(.5*n,5),a=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(r-e.y1,2));return{aX:e.x1+(t-e.x1)*(a-l-n)/a,aY:e.y1+(r-e.y1)*(a-l-n)/a,vX:(t-e.x1)*l/a,vY:(r-e.y1)*l/a}})(s,a,o,i);e.beginPath(),e.moveTo(a,o),e.bezierCurveTo(s.x2,s.y2,s.x1,s.y1,t,r),e.stroke(),e.fillStyle=l,e.beginPath(),e.moveTo(t+n,r+c),e.lineTo(t+c*tt,r-n*tt),e.lineTo(t-c*tt,r+n*tt),e.lineTo(t+n,r+c),e.closePath(),e.fill()}else e.beginPath(),e.moveTo(a,o),e.bezierCurveTo(s.x1,s.y1,s.x2,s.y2,a,o),e.stroke()}(0,et.default)(e,t,r,n,l)};function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lt(e,t,r[t])}))}return e}function lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const at=e=>{let{data:t,arrangeNodes:r,selectedNode:l,onNodeClick:o}=e;const i=(0,Fe.useSigma)(),s=(0,Fe.useLoadGraph)(),c=(0,Fe.useRegisterEvents)(),u=(0,Fe.useSetSettings)(),d=(0,a.useSelector)(p.ZP.selectors.getEntity),[h,m]=(0,n.useState)({hoverNode:void 0,hoverNeighbours:void 0}),[y,f]=(0,n.useState)(null),[g,b]=(0,n.useState)({});(0,n.useEffect)((()=>{const e=new($e());t.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),t.edges.forEach((t=>{if(!e.hasEdge(t.from,t.to)){const r=t.from===t.to;e.addEdge(t.from,t.to,{size:1,color:"rgba(0, 0, 0, 0.2)",forceLabel:r,loop:r})}})),r(e),s(e),f((0,Je.toUndirected)(e)),i.getCamera().setState({ratio:1.2})}),[s,t,i,r]);const v=(0,n.useCallback)((e=>{const t=i.getGraph(),r=null==d?void 0:d.uri;if(t&&y&&r&&e&&r!==e){const n=(0,Qe.Ar)(y,r,e),l=((e,t)=>{const r=[];return t.reduce(((t,n)=>(r.push(e.edge(t,n)||e.edge(n,t)),n))),r})(t,n);return{edges:l,nodes:n}}return{}}),[i,null==d?void 0:d.uri,y]);(0,n.useEffect)((()=>{b(v(l))}),[l,v]),(0,n.useEffect)((()=>{c({enterNode:e=>{let{node:t}=e;const r=i.getGraph();m({hoverNode:t,hoverNeighbours:r.neighbors(t)})},leaveNode:()=>{m({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[i,c,o]),(0,n.useEffect)((()=>{u({nodeReducer:(e,t)=>{const r=nt({},t),n=(g.nodes||[]).includes(e);return!h.hoverNeighbours||h.hoverNeighbours.includes(e)||h.hoverNode===e||n||(r.label="",r.color="#f6f6f6"),e===l&&(r.color="red"),e===(null==d?void 0:d.uri)&&(r.color="green"),r},edgeReducer:(e,t)=>{const r=i.getGraph(),n=nt({},t,{hidden:!1}),l=(g.edges||[]).includes(e);return!h.hoverNode||r.hasExtremity(e,h.hoverNode)||l||(n.hidden=!0),l&&(n.color="#0072CE",n.size=4),n},renderEdgeLabels:!0,edgeLabelRenderer:rt})}),[i,u,h,l,g,null==d?void 0:d.uri])},ot=e=>{let{data:t,selectedNode:r,onNodeClick:l}=e;const a=(0,n.useCallback)((e=>{qe().assign(e);const t=Xe().inferSettings(e);Xe().assign(e,{settings:t,iterations:600})}),[]);return at({arrangeNodes:a,data:t,selectedNode:r,onNodeClick:l}),null};var it=r(36039);let st;!function(e){e.SIMPLE_NETWORK="Simple network",e.VERTICAL_TB="Vertical hierarchy TB",e.VERTICAL_BT="Vertical hierarchy BT",e.HORIZONTAL_LR="Horizontal hierarchy LR",e.HORIZONTAL_RL="Horizontal hierarchy RL"}(st||(st={}));const ct=(e,t,r,n)=>{const l=new Set;return t.length||t.push(Array.from(e)),e.forEach((t=>{r.add(t),n.forEach((n=>{n.from!==t||e.has(n.to)||r.has(n.to)||l.add(n.to)}))})),l.size&&t.push(Array.from(l)),((e,t,r)=>{const n=new Set;return e.forEach((e=>{t.forEach((t=>{t.from!==e||r.has(t.to)||n.add(t.to)}))})),!!n.size})(l,n,r)?ct(l,t,r,n):t},pt=(e,t,r,n)=>{if(e.length<10&&(t[n]=[...e]),e.length>10){const l=e.slice(10),a=e.slice(0,10);t[n]=a,t[n+1]=r[n+1]?[...r[n+1],...l]:l}if(t[n+1]||r[n+1]){const e=t[++n]||r[n];return pt(e,t,r,n)}return t},ut=e=>{let{data:t,selectedNode:r,layout:l,onNodeClick:a}=e;const o=(0,n.useCallback)((e=>{const n=(e=>{switch(e){case st.VERTICAL_TB:return 180;case st.VERTICAL_BT:return 0;case st.HORIZONTAL_LR:return 270;case st.HORIZONTAL_RL:return 90}})(l),a=((e,t)=>{const r=e.nodes,n=e.edges.filter((e=>e.from!==e.to)),l=((e,t,r)=>{const n=new Set;return t.forEach((t=>{e.some((e=>e.to===t.id))||n.add(t.id)})),n.size||n.add(r),n})(n,r,t),a=ct(l,[],new Set,n);return pt(a[0],[],a,0)})(t,r),o=(e=>{const t=e.map((e=>e.length));return Math.max(...t)})(a);for(let t=0;t<a.length;++t)for(let r=0;r<a[t].length;++r)e.setNodeAttribute(a[t][r],"x",(s=r,(i=a[t].length)===(c=o)?5*s:1===i?5*(c-1)/2:5*(c-1)/(i+1)*(s+1))),e.setNodeAttribute(a[t][r],"y",0+10*t);var i,s,c;it.rotation.assign(e,n,{degrees:!0})}),[t,l,r]);return at({arrangeNodes:o,data:t,selectedNode:r,onNodeClick:a}),null};var dt=r(84425);const ht=(0,P.Z)({graphTypeSelector:{minWidth:"200px",backgroundColor:"#FAFAFA",opacity:1,height:"40px"},filledInputRoot:{borderRadius:"4px"},valueContainer:{width:"auto",marginLeft:"16px"}}),mt=(0,A.l)(w,(e=>{let{graphTypeUri:t,setGraphTypeUri:r}=e;return{setGraphTypeUri:r,graphTypeUri:t}}),(e=>{let{graphTypeUri:t,setGraphTypeUri:r}=e;const o=ht(),i=(0,a.useSelector)(p.ZP.selectors.getMetadata),s=(0,a.useSelector)(p.ZP.selectors.getEntity),c=(0,n.useMemo)((()=>[{label:m().text("All"),value:null},...(0,d.mmY)(i,s.type).map((e=>{let{uri:t,label:r}=e;return{value:t,label:r}}))]),[s,i]),u=(0,n.useMemo)((()=>c.find((e=>e.value===t))),[c,t]);return l().createElement(dt.Z,{classes:{valueContainer:o.valueContainer},className:o.graphTypeSelector,height:42,label:m().text("Graph type"),value:u,options:c,onChange:e=>r(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:o.filledInputRoot}}}})})),yt=(0,P.Z)({graphLayoutSelector:{minWidth:"202px",backgroundColor:"#FAFAFA",opacity:1,marginLeft:"10px"},filledInputRoot:{borderRadius:"4px",height:"42px"}}),ft=(0,n.memo)((e=>{let{value:t,onChangeHandler:r}=e;const n=yt(),a=[{label:m().text("Simple network"),value:st.SIMPLE_NETWORK},{label:m().text("Vertical hierarchy TB"),value:st.VERTICAL_TB},{label:m().text("Vertical hierarchy BT"),value:st.VERTICAL_BT},{label:m().text("Horizontal hierarchy LR"),value:st.HORIZONTAL_LR},{label:m().text("Horizontal hierarchy RL"),value:st.HORIZONTAL_RL}];return l().createElement(dt.Z,{className:n.graphLayoutSelector,label:m().text("Graph layout"),value:a.find((0,y.propEq)("value",t)),options:a,onChange:e=>r(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:n.filledInputRoot}}}})})),gt=(0,P.Z)({wrapper:{height:"100%",position:"relative"},selectors:{display:"flex",position:"absolute",top:"12px",right:"16px",zIndex:2},graph:{height:"calc(100% - 5px)"}});function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bt.apply(this,arguments)}const vt=(0,A.l)(w,(e=>{let{data:t,selectedEntity:r,onEntitySelect:n}=e;return{data:t,selectedNode:null==r?void 0:r.uri,onNodeSelect:n}}),(e=>{let{data:t,selectedNode:r,onNodeSelect:a}=e;const[o,i]=(0,n.useState)(st.SIMPLE_NETWORK),s=(0,n.useMemo)((()=>t&&(e=>{var t;const r=new Set,n=new Set;e.entities.forEach((e=>r.add(e.uri))),((null===(t=e.relations)||void 0===t?void 0:t.filter((e=>r.has(e.startObject.objectURI)&&r.has(e.endObject.objectURI))))||[]).forEach((e=>{n.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||n.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const l=e.entities.map((e=>({id:e.uri,name:e.label}))),a=[];return n.forEach((e=>{const t=e.split("--");a.push({from:t[0],to:t[1]})})),{nodes:l,edges:a}})(t)),[t]),c=gt(),p={data:s,selectedNode:r,onNodeClick:a};return l().createElement("div",{className:c.wrapper},l().createElement("div",{className:c.selectors},l().createElement(mt,null),l().createElement(ft,{value:o,onChangeHandler:i})),l().createElement("div",{className:c.graph},s&&l().createElement(Ge,null,o===st.SIMPLE_NETWORK?l().createElement(ot,p):l().createElement(ut,bt({},p,{layout:o})))))})),xt=(0,P.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}))),Et=(0,n.memo)((()=>{const e=xt(),t=(0,a.useSelector)(p.ZP.selectors.getEntity),r=(e=>{const{graphLoading:t,data:r,graphTypeUri:l,setGraphTypeUri:o}=(e=>{const[t,r]=(0,n.useState)(null),l=(0,a.useDispatch)(),[o,i]=(0,n.useState)(null),[s,c]=(0,n.useState)(!1),u=null==e?void 0:e.uri,h=(0,d.biM)(e);return(0,n.useEffect)((()=>(!u||(0,d.ZiX)(u)||h||(c(!0),(0,d.ZYI)({uri:u,deep:t?2:1,limitCreditsConsumption:!0,graphTypes:t?[(0,d.nIW)(t)]:null,activenessDate:null,max:t?200:3e3}).then(i).catch((e=>{i(null),l(p.ui.actions.errorSet((0,d.xU7)(e,m().text("Something went wrong"))))})).finally((()=>{c(!1)}))),()=>{i(null),c(!1)})),[u,h,l,t]),{graphLoading:s,data:o,graphTypeUri:t,setGraphTypeUri:r}})(e),{selectedEntity:i,onEntitySelect:s,selectedEntityLoading:c}=((e,t)=>{const r=(0,f._)(),l=(0,a.useDispatch)(),[o,i]=(0,n.useState)(null),s=(0,n.useRef)({}),[c,u]=(0,n.useState)(!1),h=(0,n.useCallback)((e=>{const t=s.current[e];return t?Promise.resolve(t):(0,d.HvW)(e).then((e=>(s.current=b(s.current,e),e)))}),[]),g=(0,n.useCallback)((e=>{var n;const a=null==t||null===(n=t.entities)||void 0===n?void 0:n.find((0,y.propEq)("uri",e));a&&i(a),u(!0),r(h(e)).then(i).catch((e=>{l(p.ui.actions.errorSet((0,d.xU7)(e,m().text("Something went wrong"))))})).finally((()=>{u(!1)}))}),[l,t,r,h]);return(0,n.useEffect)((()=>{null!=e&&e.uri&&(s.current=b({},e),g(e.uri))}),[null==e?void 0:e.uri]),(0,n.useEffect)((()=>{const r=null==t?void 0:t.entities.find((e=>(null==o?void 0:o.uri)===e.uri));r||(null!=e&&e.uri?(s.current=b({},e),g(e.uri)):(s.current={},i(null)))}),[t]),{selectedEntityLoading:c,selectedEntity:o,onEntitySelect:g}})(e,r);return{graphLoading:t,data:r,selectedEntity:i,onEntitySelect:s,selectedEntityLoading:c,graphTypeUri:l,setGraphTypeUri:o,relationshipTable:E(r,null==i?void 0:i.uri,l)}})(t),{graphLoading:o}=r;return l().createElement(w.Provider,{value:r},l().createElement("div",{className:e.perspectiveView},o&&l().createElement(u.Z,null),(null==t?void 0:t.uri)&&l().createElement("div",{className:e.graphContainer},l().createElement("div",{className:e.graphWrapper},l().createElement(L,null),l().createElement(vt,null)),l().createElement(We,null))))}));Et.displayName="GraphPerspectiveView";const wt=Et,St=(0,o.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Tt=e=>{let{store:t}=e;return l().createElement(a.Provider,{store:t},l().createElement(o.StylesProvider,{generateClassName:St},l().createElement(s.MuiPickersUtilsProvider,{utils:c.Z},l().createElement(wt,null),l().createElement(i.Z,{showErrorFromStore:!0}))))}}}]);
1
+ "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[8911],{50548:(e,t,n)=>{n.d(t,{l:()=>o});var r=n(24328),l=n.n(r);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const o=(e,t,n)=>{if(e&&t){const o=(0,r.memo)(n);return n=>l().createElement(e.Consumer,null,(e=>l().createElement(o,a({},n,t(e,n)))))}return n}},44938:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(24328),l=n.n(r),a=n(50166),o=n(44443),i=n(18435);const s=(0,n(79692).Z)({item:{overflow:"hidden"}});function c(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=r.concat(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,r.memo)((e=>{let{width:t=0,height:n=0,defaultItemSize:p,data:d,children:u,itemKey:m,showNotMeasuredItems:h,listRef:f}=e;const y=s(),g=(0,r.useRef)({}),[b,x]=(0,r.useState)({}),v=(0,r.useCallback)((0,i.DsO)((()=>{x(c({},g.current))})),[]),E=(0,r.useCallback)(((e,t)=>m?m(t,e):t),[m]),w=(0,r.useRef)(),C=f||w;C.current&&C.current.resetAfterIndex(0,!1);const O=(0,r.useMemo)((()=>e=>{let{data:t,index:n,style:r}=e;const a=E(t,n);return l().createElement("div",{style:r,className:y.item},l().createElement("div",{style:h?void 0:{visibility:a in b?void 0:"hidden"}},l().createElement(o.Z,{handleHeight:!0,onResize:(e,t)=>{g.current[a]!==t&&(((e,t)=>{g.current=c({},g.current,{[e]:t})})(a,t),v())}}),u({data:t,index:n})))}),[u,h,E,v,!h&&b]);return l().createElement(a.VariableSizeList,{ref:C,width:t,height:n,itemCount:d.length,itemData:d,itemSize:e=>b[(e=>E(d,e))(e)]||p,itemKey:m},O)}))},20146:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(24328),l=n.n(r),a=n(52730),o=n(71153),i=n.n(o),s=n(90436),c=n(18435),p=n(89810);const d=(0,n(79692).Z)({"entityType-small":{padding:"1px 4px",fontSize:"10px",lineHeight:"normal",display:"inline-flex",marginRight:"12px",borderRadius:"2px"},"entityType-medium":{padding:"2px 8px 3px",borderRadius:"2px",fontSize:"13px",fontWeight:500,lineHeight:"15px",display:"inline-flex",marginRight:"16px"}}),u=e=>{let{entity:t,className:n,size:r="small"}=e;const o=d(),u=(0,a.useSelector)(p.ZP.selectors.getMetadata),m=t.type,h=(0,c.nt9)(u,m)||{},f=(0,c.VD3)(u,h,"typeColor")||c.rSc.palette.primary.main;return l().createElement(s.Z,{style:{backgroundColor:f,color:c.P6Y.Colors.getColor(f)?"#FFFFFF":"#212121"},className:i()(o[`entityType-${r}`],n),component:"div"},(0,c.jFi)(u,t))}},92934:(e,t,n)=>{n.d(t,{Q:()=>c});var r=n(24328),l=n.n(r),a=n(87918),o=n.n(a),i=n(18435),s=n(72108);const c=(0,r.memo)((e=>{let{entityTypes:t,selectedEntityTypes:n,single:a,placeholder:c,enableEmptyValueUnderline:p,onChange:d,classes:u={},ListLabelProps:m={},disabled:h=!1}=e;const f=(0,r.useMemo)((()=>t.filter(i.oDv)),[t]);return l().createElement(s.S,{items:f,selectedItemsUris:n,single:a,placeholder:c,enableEmptyValueUnderline:p,onChange:d,classes:u,ListLabelProps:m,disabled:h,label:o().text("Entity type"),dataReltioId:"entity-type-selector",selectionPopupTitle:o().text("Select entity types")})}));c.displayName="EntityTypesSelector"},52194:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),l=n.n(r),a=n(71153),o=n.n(a),i=n(17998);const s=(0,n(79692).Z)({container:{padding:"0 16px",minHeight:"48px"},title:{fontSize:"16px",lineHeight:"19px",paddingTop:"16px",paddingBottom:"13px",justifyContent:"flex-start"}}),c=e=>{let{className:t,title:n,children:r}=e;const a=s();return l().createElement(i.Z,{title:n,classes:{root:o()(a.container,t),title:a.title}},r)}},72108:(e,t,n)=>{n.d(t,{S:()=>I});var r=n(24328),l=n.n(r),a=n(71153),o=n.n(a),i=n(17440),s=n(18435),c=n(86619),p=n(83543),d=n(80030),u=n(79692);const m=(0,u.Z)({listLabelContainer:{display:"flex",alignItems:"center",position:"relative",overflow:"hidden",whiteSpace:"nowrap",justifyContent:"space-between",height:"100%",width:"100%"},listLabel:{visibility:"hidden",position:"absolute",overflow:"hidden"},visibleItemsLabel:{textOverflow:"ellipsis",marginRight:"5px",overflow:"hidden",flex:1,flexBasis:"auto"},hiddenCount:{color:"rgba(0,0,0,0.87)",fontSize:"13px",lineHeight:"15px",padding:"5px 8px",borderRadius:"16px",backgroundColor:"rgba(0,0,0,.12)"}}),h=(e,t)=>{const{childNodes:n,clientLeft:r,clientWidth:l}=t;if(n.length>0){const[t]=Array.from(n),a=document.createRange();a.setStart(t,0);for(let n=0;n<e.length;n++){a.setEnd(t,a.endOffset+e[n].length);const{width:o}=a.getBoundingClientRect();if(r+o>l)return n;n!==e.length-1&&a.setEnd(t,a.endOffset+", ".length)}}return-1},f=e=>e.join(", "),y=e=>`calc(${(0,i.isNil)(e)?"100%":`${e}px`} - 35px)`,g=e=>{let{list:t,maxWidth:n}=e;const a=m(),o=(0,r.useRef)(),[i,s]=(0,r.useState)(0);(0,r.useEffect)((()=>{s(((e,t)=>{const n=e.length,r=((e,t)=>{if(t){const n=h(e,t);return-1===n?0:e.length-n}return 0})(e,t);return n-Math.max(1,n-r)})(t,o.current))}),[t]);const c=f(t),p=i>0,u=p?f(t.slice(0,-i)):c;return l().createElement(d.ZP,{title:p?c:""},l().createElement("div",{className:a.listLabelContainer},l().createElement("div",{style:{width:y(n)},className:a.listLabel,ref:o},c),l().createElement("div",{className:a.visibleItemsLabel},u),p&&l().createElement("div",{className:a.hiddenCount},`+${i}`)))};var b=n(40435),x=n(22311),v=n(26638),E=n(33117),w=n(94792),C=n(63485);function O(){return O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const S=(0,i.always)(32),T=(0,r.memo)((e=>{let{selectedItems:t,onItemClick:n,focusIndex:r,width:a,height:o}=e,i=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["selectedItems","onItemClick","focusIndex","width","height"]);return l().createElement(C.Z,O({getItemSize:S,renderItem:(e,a,o)=>{let{item:i}=a;const s=!!t.find((e=>i.uri===e)),c=o===r;return l().createElement(E.Z,{key:i.uri,onClick:n,checked:s,data:i,label:l().createElement(w.Z,{text:i.label,highlight:i.filterText}),labelInText:i.label,style:e,isFocused:c,hideIcon:!0,LogoIcon:i.LogoIcon})},focusIndex:r,fixedTitle:!1,disableHorizontalScrollbar:!0,width:a,height:o},i))}));T.displayName="SelectMetadataTypesList";const N=(0,u.Z)({root:{borderRadius:"4px 4px 0 0",margin:0,fontSize:"14px",letterSpacing:0,lineHeight:"16px"},inputLabel:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%",top:"calc(50% - 23px)"},inputText:{display:"flex",flexGrow:1,alignItems:"center",height:"25px",width:"calc(100% - 53px)",paddingTop:"18px",paddingBottom:"4px",color:"rgba(0,0,0,0.87)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},input:{width:0,cursor:"pointer","&[disabled]":{backgroundColor:"transparent",cursor:"default"},"&$emptyInput":{width:"100%"}},emptyInput:{},disabledInput:{},disabledPointer:{},disabledUnderline:{},inputRoot:{flex:1,paddingRight:"4px",fontSize:"14px",letterSpacing:0,lineHeight:"16px","&$disabledInput":{backgroundColor:"rgba(0, 0, 0, 0.03)",cursor:"pointer","&$disabledPointer":{cursor:"default"},"&$disabledUnderline::before":{borderBottomStyle:"solid"}}},icon:{transform:"rotate(0deg)",transition:"transform 0.35s ease"},"popup-opened-icon":{transform:"rotate(-180deg)"}});function P(){return P=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},P.apply(this,arguments)}function R(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I=(0,r.memo)((e=>{let{placeholder:t,classes:n={},items:a,selectedItemsUris:d,onChange:u,ListLabelProps:m={},disabled:h,enableEmptyValueUnderline:f,single:y,label:E,dataReltioId:w,selectionPopupTitle:C}=e;const O=N(),[S,k]=(0,r.useState)(!1),I=(0,r.useCallback)((()=>k(!0)),[]),j=(0,r.useCallback)((()=>k(!1)),[]),[Z,L]=(0,r.useState)(""),U=(0,r.useCallback)((()=>L("")),[]),z=(0,r.useCallback)((0,i.pipe)(U,j),[j,U]),D=a.filter((e=>{let{label:t}=e;return s.P6Y.strings.search(t,Z)})).map(((e,t)=>({item:{item:R({},e,{filterText:Z})},index:t}))),B=(0,r.useMemo)((()=>d.map((e=>a.find((0,i.propEq)("uri",e)))).map((0,i.prop)("label"))),[d,a]),A=(0,r.useCallback)(((e,t)=>{y?(u(t?[e.uri]:[]),z()):u(t?d.concat(e.uri):d.filter((t=>t!==e.uri)))}),[d,u,y,z]),M=(0,r.useCallback)((e=>{let{item:t}=e;const n=!d.includes(t.uri);A(t,n)}),[d,A]),{focusIndex:H,handleKeyDown:F}=(0,v.t)({items:D,open:S,onSelectFocusedItem:M,selectedItems:d,onClose:z}),V=(0,r.useRef)(),W=V.current?V.current.getBoundingClientRect().width:0,G=Math.max(W,255),$=0===d.length;return l().createElement(l().Fragment,null,l().createElement(c.Z,{label:E,ref:V,InputProps:{startAdornment:$&&!t?null:l().createElement("div",{className:o()(O.inputText,n.inputText)},$?l().createElement("div",null,t):l().createElement(g,P({},m,{list:B}))),classes:{root:O.inputRoot,input:o()(O.input,n.input,{[O.emptyInput]:$&&!t}),disabled:o()(O.disabledInput,{[O.disabledPointer]:h}),underline:O.disabledUnderline},endAdornment:l().createElement(b.Z,{size:"L",icon:p.Z,iconClassName:o()(O.icon,{[O["popup-opened-icon"]]:S}),disabled:h}),readOnly:!0,disabled:!0,disableUnderline:$&&!f},inputProps:{tabIndex:-1},InputLabelProps:{classes:{root:o()(O.inputLabel,n.label)}},value:"",onClick:h?void 0:I,classes:{root:o()(O.root,n.root)},margin:"dense",variant:"filled",disabled:h,"data-reltio-id":w}),l().createElement(x.Z,{open:S,anchorEl:V.current,onClose:z,onSearch:L,title:C,containerWidth:G,containerHeight:355,searchInputOnKeyDown:F,transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},PaperProps:{"data-reltio-id":`${w}-popup`}},l().createElement(T,{items:D,onItemClick:A,selectedItems:d,width:G,height:245,focusIndex:H})))}));I.displayName="MetadataTypesSelector"},33109:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(24328),l=n.n(r),a=n(13980),o=n.n(a),i=n(71153),s=n.n(i),c=n(52730),p=n(17440),d=n(90436),u=n(80030),m=n(87918),h=n.n(m),f=n(18435),y=n(89810),g=n(37573),b=n(20146);const x=(0,n(79692).Z)((e=>({profileBandWrapper:{flexShrink:0},profileBand:{display:"flex",padding:"16px 12px 16px 16px",alignItems:"flex-start",backgroundColor:"#fff",boxShadow:"inset 0 -1px 0 0 rgba(0,114,206,0.06), inset 0 1px 0 0 rgba(0,114,206,0.06);","&:after":{content:'""',minHeight:"inherit",fontSize:0}},inactive:{background:e.inactiveBackground},profileIcon:{marginRight:"12px"},imageProfileIcon:{width:"48px",height:"48px"},profileInfo:{display:"flex",flexDirection:"column",flex:"1 1 50%"},badge:{},label:{lineHeight:"1.2",letterSpacing:"0.25px",color:e.palette.text.primary,wordBreak:"break-word","&+ $specialInfo":{marginTop:"4px"}},secondaryLabel:{display:"inline-flex",color:e.palette.text.primary,marginTop:"2px",lineHeight:"16px",fontSize:"14px",fontWeight:400,"&+ $businessCard":{marginLeft:"12px"}},businessCard:{color:e.palette.text.secondary,display:"inline-flex",fontSize:"14px",marginTop:"4px",lineHeight:"1.2"},specialInfo:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",width:"100%",marginTop:"8px"},entityType:{display:"flex",flexWrap:"wrap"},entityId:{fontSize:"13px",color:e.palette.text.secondary,whiteSpace:"nowrap",cursor:"pointer","&:hover":{textDecoration:"underline"}}}))),v=e=>{let{className:t,entity:n,children:a,classes:o}=e;const i=x({classes:o}),m=(0,c.useSelector)(y.ZP.selectors.getMetadata),v=(0,r.useCallback)((()=>{navigator.clipboard.writeText((0,f.BTI)(n))}),[n]);if((0,p.isNil)(n))return null;const E=(0,f.idV)(n.label),w=n.secondaryLabel,C=(0,f.ptG)(m,n),O=(0,f.Fn9)(n),S=n.uri,T=(0,f.BTI)(n);return l().createElement("div",{className:s()(i.profileBandWrapper,t)},l().createElement("div",{className:s()(i.profileBand,{[i.inactive]:!O}),"data-entity-uri":S},l().createElement(g.Z,{key:n.uri,entity:n,avatarClassName:i.profileIcon,imageClassName:i.imageProfileIcon}),l().createElement("div",{className:i.profileInfo},l().createElement("div",null,l().createElement(d.Z,{variant:"h6",className:i.label},E),w&&l().createElement(d.Z,{variant:"subtitle2",className:i.secondaryLabel},w),C&&l().createElement(d.Z,{variant:"subtitle1",className:i.businessCard},C)),l().createElement("div",{className:i.specialInfo},l().createElement("div",{className:i.entityType},l().createElement(b.Z,{entity:n,size:"medium",className:i.badge}),!(0,f.ZiX)(S)&&l().createElement(u.ZP,{title:h().text("Copy to clipboard")},l().createElement(d.Z,{display:"inline",variant:"body2",className:i.entityId,onClick:v},h().text("Entity ID"),": ",T))))),a&&l().createElement("div",null,a)))};v.propTypes={className:o().string,entity:o().object,children:o().node,classes:o().object};const E=v},68977:(e,t,n)=>{n.d(t,{U:()=>c});var r=n(24328),l=n.n(r),a=n(87918),o=n.n(a),i=n(18435),s=n(72108);const c=(0,r.memo)((e=>{let{relationTypes:t,selectedRelationTypes:n,single:a,placeholder:c,enableEmptyValueUnderline:p,onChange:d,classes:u={},ListLabelProps:m={},disabled:h=!1}=e;const f=(0,r.useMemo)((()=>t.filter(i.Tt2)),[t]);return l().createElement(s.S,{items:f,selectedItemsUris:n,single:a,placeholder:c,enableEmptyValueUnderline:p,onChange:d,classes:u,ListLabelProps:m,disabled:h,label:o().text("Relation type"),dataReltioId:"relation-type-selector",selectionPopupTitle:o().text("Select relation types")})}));c.displayName="RelationTypesSelector"},28101:(e,t,n)=>{n.d(t,{G:()=>m});var r=n(24328),l=n.n(r),a=n(71153),o=n.n(a),i=n(39475),s=n(79692),c=n(41128);const p=(0,s.Z)((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,c.U1)(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 d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}const m=e=>{let{buttonsProps:t,activeIndexId:n,className:r,onButtonClick:a,classes:s={}}=e;const c=p(),{active:m,buttonWrapper:h}=s,f=u(s,["active","buttonWrapper"]);return l().createElement("div",{className:o()(c.container,r)},t.map((e=>{let{id:t}=e,r=u(e,["id"]);return l().createElement(i.k,d({},r,{classes:f,size:"S",key:t,className:o()({[o()(c.active,m)]:n===t},c.buttonWrapper,h),onClick:()=>a(t),"data-reltio-id":`reltio-profile-right-side-button-${t}`}))})))}},11821:(e,t,n)=>{n.d(t,{h:()=>o});var r=n(24328),l=n.n(r);const a=(0,n(79692).Z)((e=>({contentWrapper:{display:"flex",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)",marginLeft:"3px",transition:e.transitions.create(["width"],{duration:e.transitions.duration.enteringScreen})}}))),o=e=>{let{width:t,open:n,children:r}=e;const o=a();return l().createElement("div",{className:o.contentWrapper,style:{width:`${n?t:0}px`}},n&&l().createElement(l().Fragment,null,r))}},15177:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(52730),l=n(89810),a=n(24328),o=n.n(a),i=n(18435),s=n(71153),c=n.n(s),p=n(87918),d=n.n(p),u=n(95544),m=n(90436),h=n(80687),f=n(1730),y=n(52194),g=n(89978),b=n(26978),x=n(79692);const v=(0,x.Z)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"},noData:{fontSize:"13px",color:"rgba(0,0,0,0.54)"}}),E=(0,r.connect)((e=>({metadata:l.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},metadata:s,caption:p="",excludeUris:x=[],includeUris:E=[],attributesCount:w=16}=e;const C=v(),O=(0,r.useSelector)(l.ZP.selectors.getPivotingAttributes),S=(0,a.useMemo)((()=>(0,b.U)(s,n.type,E,x)),[x,E,s,n.type]),T=(0,i.fyF)(S,n).filter((e=>{let{values:t}=e;return!(0,i.O27)(t)})).length>0;return T||!(0,i.O27)(p)?o().createElement(h.J.Provider,{value:O},o().createElement(f.Z,{className:t},p&&o().createElement(y.Z,{className:C.header,title:p}),o().createElement(u.Z,{className:c()(C.attributesContainer,{[C.noCaption]:!p})},T?o().createElement(g.Z,{entity:n,attrTypes:S,parentUri:n.uri,drawLines:!1,max:w}):o().createElement(m.Z,{className:C.noData},d().text("No data found"))))):null}));var w=n(17440),C=n(76141),O=n(12212);const S=(0,x.Z)({attributesContainer:{padding:"0 16px 16px 16px"},header:{marginBottom:"4px"},noCaption:{paddingTop:"16px"}});var T=n(1108);function N(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=r.concat(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const R=(0,r.connect)((e=>({metadata:l.ZP.selectors.getMetadata(e)})))((e=>{let{className:t,entity:n={},mode:s,metadata:p,caption:d="",excludeUris:m=[],includeUris:h=[],pinnedAttributes:g}=e;const x=S(),v=(0,r.useDispatch)(),E=(0,a.useContext)(O.m),P=(0,r.useSelector)(l.ZP.selectors.getUserRoles),R=(0,a.useMemo)((()=>(0,i.mC3)(g,P)),[g,P]),k=(0,r.useSelector)((e=>l.ZP.selectors.getModifiedEntity(e,n.uri)||{})),I=(0,a.useMemo)((()=>(0,b.U)(p,k.type,h,m)),[m,h,p,k.type]),j=(0,a.useCallback)((e=>(0,w.pipe)(l.N5.actions.addAttributes,v)(e.map((e=>N({},e,{viewId:E}))))),[E,v]),Z=(0,a.useCallback)((e=>(0,w.pipe)(l.N5.actions.modifyAttribute,v)(N({},e,{viewId:E}))),[E,v]),L=(0,a.useCallback)((e=>(0,w.pipe)(l.N5.actions.removeAttribute,v)(N({},e,{viewId:E}))),[E,v]);return o().createElement(f.Z,{className:t},d&&o().createElement(y.Z,{className:x.header,title:d}),o().createElement(u.Z,{className:c()(x.attributesContainer,{[x.noCaption]:!d})},o().createElement(T.c.Provider,{value:R},o().createElement(C.Z,{entity:k,attrTypes:I,parentUri:k.uri,drawLines:!1,mode:s,showEmptyEditors:(0,i.ZiX)(k.uri),crosswalks:k.crosswalks,onAddAttributes:j,onChangeAttribute:Z,onDeleteAttribute:L}))))}));var k=n(10609);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}const j=(0,r.connect)(((e,t)=>({entity:t.entity||l.ZP.selectors.getEntityWithDiff(e),mode:t.mode||l.ZP.selectors.getMode(e)})))((e=>{let{mode:t=i.ARY.Viewing,attributesCount:n,pinnedAttributes:r,entity:l}=e,a=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["mode","attributesCount","pinnedAttributes","entity"]);return o().createElement(k.u.Provider,{value:l},(0,i.uzs)(t)?o().createElement(E,I({attributesCount:n,entity:l},a)):o().createElement(R,I({mode:t,pinnedAttributes:r,entity:l},a)))}))},38911:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ot});var r=n(24328),l=n.n(r),a=n(52730),o=n(36138),i=n(97333),s=n(22664),c=n(52844),p=n(89810),d=n(87378),u=n(18435),m=n(87918),h=n.n(m),f=n(17440),y=n(29627);function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=(e,t)=>{const n=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}({},e,{[null==t?void 0:t.uri]:t}),r=Object.keys(n);return r.length>50&&delete n[r[0]],n},x=[25,50,100],v=(e,t,n)=>{const{startObject:r,endObject:l,type:a}=t,{directionalLabel:o}=(0,u.nqN)(t)===n?r:l;return o||(0,u.Lmx)(e,a)},E=(e,t,n)=>{const[l,o]=(0,r.useState)({field:"",order:"asc"}),[i,s]=(0,r.useState)(0),[c,d]=(0,r.useState)(x[0]),[m,h]=(0,r.useState)([]),y=(0,a.useSelector)(p.ZP.selectors.getMetadata),g=(0,r.useMemo)((()=>{const t=(null==e?void 0:e.entities)||[];return(0,f.zipObj)(t.map((0,f.prop)("uri")),t)}),[null==e?void 0:e.entities]),b=(0,r.useMemo)((()=>(0,f.pipe)((0,f.filter)((0,f.either)((0,f.pipe)(u.nqN,(0,f.equals)(t)),(0,f.pipe)(u.j5q,(0,f.equals)(t)))),(0,f.uniqBy)((0,f.prop)("uri")),(0,f.map)((e=>{const n=g[((e,t)=>{const n=(0,u.nqN)(t),r=(0,u.j5q)(t);return n===e?r:n})(t,e)];return{relation:e,entity:n,entityLabel:(0,u.idV)(n.label),entityTypeLabel:(0,u.jFi)(y,n),relationTypeLabel:v(y,e,n.uri)}})))((null==e?void 0:e.relations)||[])),[e,t,g,y]),{searchText:E,onChangeSearchText:w,filters:C,onFilter:O,relationTypesOptions:S,entityTypesOptions:T}=(e=>{const[t,n]=(0,r.useState)(""),[l,o]=(0,r.useState)({entityTypesUris:[],relationTypesUris:[]}),i=(0,a.useSelector)(p.ZP.selectors.getMetadata);return{searchText:t,onChangeSearchText:n,filters:l,onFilter:o,entityTypesOptions:(0,r.useMemo)((()=>(0,f.pipe)((0,f.map)((e=>{let{entity:t}=e;return t.type})),f.uniq,(0,f.map)((0,u.nt9)(i)))(e)),[e,i]),relationTypesOptions:(0,r.useMemo)((()=>(0,f.pipe)((0,f.map)((e=>{let{relation:t}=e;return t.type})),f.uniq,(0,f.map)((0,u.V3K)(i)))(e)),[e,i])}})(b),N=(0,r.useMemo)((()=>(0,f.pipe)((0,f.filter)((e=>{let{entityLabel:t,entity:n,relation:r}=e;const{entityTypesUris:l,relationTypesUris:a}=C;return t.toLowerCase().includes(E)&&(0,f.ifElse)((0,f.prop)("length"),(0,f.includes)(r.type),f.T)(a)&&(0,f.ifElse)((0,f.prop)("length"),(0,f.includes)(n.type),f.T)(l)})),l.field?(0,f.sort)(((e,t)=>u.P6Y.strings.sort(l.order,e[l.field],t[l.field]))):f.identity)(b)),[b,l,E,C]),P=(0,r.useMemo)((()=>N.slice(i*c,i*c+c)),[N,i,c]),R=(0,r.useCallback)((e=>{h((t=>[...t,e]))}),[]),k=(0,r.useCallback)((e=>{h((t=>(0,f.without)([e],t)))}),[]);return(0,r.useEffect)((()=>{s(0),w(""),O({entityTypesUris:[],relationTypesUris:[]})}),[t,n,w,O]),(0,r.useEffect)((()=>{s(0)}),[l,E,C]),{rowsData:P,onSort:o,sorting:l,searchText:E,onChangeSearchText:w,filters:C,onFilter:O,entityTypesOptions:T,relationTypesOptions:S,editingRelations:m,onStartRelationEditing:R,onFinishRelationEditing:k,total:N.length,page:i,rowsPerPage:c,onPageChange:s,onRowsPerPageChange:d}},w=l().createContext({graphLoading:!1,data:null,selectedEntityLoading:!1,selectedEntity:null,onEntitySelect:()=>{},relationshipTable:{}});w.displayName="GraphStateContext";var C=n(71153),O=n.n(C),S=n(33109),T=n(62901),N=n(72316),P=n(95544),R=n(79692);const k=(0,R.Z)({comments:{display:"flex",justifyContent:"flex-end",marginTop:"10px"}}),I=(0,r.memo)((e=>{let{className:t}=e;const n=k(),r=(0,a.useSelector)(p.ZP.selectors.getEntity);return l().createElement(S.Z,{className:O()(t,T.U),entity:r},l().createElement(P.Z,{className:n.comments},l().createElement(N.Z,{uri:r.uri,relatedObjectUris:(0,u.wp9)(u.q7e.ENTITY,{entityUri:r.uri}),objectType:u.q7e.ENTITY})))}));I.displayName="GraphProfileBand";const j=I;var Z=n(11821),L=n(28101),U=n(82726);const z=(0,R.Z)({wrapper:{display:"flex",overflow:"hidden",marginLeft:"auto",flexShrink:0}});function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}const B=e=>{let{styles:t={}}=e,n=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["styles"]);return l().createElement("svg",D({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),l().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7v2h2V7H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm4-8v2h8V7h-8zm10-2v5.02a6.52 6.52 0 012 2.01V3H2v18h11.028a6.52 6.52 0 01-2.009-2H4V5h16zm-9.503 8a6.497 6.497 0 011.31-2H10v2h.497zM10 15.5c0-.168.006-.335.019-.5H10v.5zm0 0c0 .516.06 1.018.173 1.5H10v-1.5zm10.3 2.39L23.42 21 22 22.42l-3.12-3.12c-.69.44-1.51.7-2.39.7-2.48 0-4.49-2.01-4.49-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5c0 .88-.26 1.69-.7 2.39zm-3.8.11a2.5 2.5 0 000-5 2.5 2.5 0 000 5z",fill:"currentColor"}))};var A=n(50548);const M=(0,A.l)(w,(0,f.pick)(["selectedEntity"]),(e=>{let{selectedEntity:t}=e;return l().createElement(S.Z,{entity:t})}));var H=n(15177);const F=(0,R.Z)({noShadowBlock:{boxShadow:"none"},wrapper:{position:"relative",paddingRight:"1px",overflow:"auto"}}),V=(0,A.l)(w,(0,f.pick)(["selectedEntity","selectedEntityLoading"]),(e=>{let{selectedEntity:t,selectedEntityLoading:n}=e;const r=F();return l().createElement("div",{className:r.wrapper},n&&l().createElement(d.Z,null),l().createElement(H.Z,{entity:t,caption:h().text("Entity details"),className:r.noShadowBlock}))}));var W=n(90436),G=n(42011),$=n(44443),_=n(44938),q=n(79573);const Y="1px solid rgba(0, 0, 0, 0.05)",K=(0,R.Z)({table:{flex:1,height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},tableBody:{height:"100%",overflow:"auto"},tableBodyWrapper:{height:"100%",overflow:"hidden"},tableRowWrapper:{borderBottom:Y},tableRow:{display:"flex",alignItems:"center","& > div":{flexShrink:0}},headRow:{borderBottom:Y}});function X(){return X=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},X.apply(this,arguments)}const Q=(0,r.memo)((e=>{let{columnsData:t,sorting:n,onSort:r}=e;const a=K();return l().createElement("div",{className:O()(a.tableRow,a.headRow)},t.map((e=>{const{id:t,sortable:a,headCellRenderer:o,columnClassName:i}=e,s=o,c=a?{sortField:n.field,sortOrder:n.order,sortHandler:()=>{r({field:t,order:n.field===t?(0,q.Dh)(n.order):"asc"})}}:{};return l().createElement("div",{key:t,className:i},l().createElement(s,X({headCellData:e},c)))})))})),J=(0,r.forwardRef)(((e,t)=>{let{classes:n,columnsData:a,rowsData:o,sorting:i,onSort:s,getRowKey:c,ExpandedRowRenderer:p,defaultRowHeight:d}=e;const u=K(),[m,h]=(0,r.useState)({width:0,height:0}),f=(0,r.useCallback)((e=>{let{data:t,index:r}=e;const o=t[r];return l().createElement("div",{className:O()(u.tableRowWrapper,null==n?void 0:n.tableRowWrapper)},l().createElement("div",{className:O()(u.tableRow,null==n?void 0:n.tableRow)},a.map((e=>{let{id:t,rowCellValueRenderer:n,columnClassName:r}=e;const a=n;return l().createElement("div",{key:t,className:r},l().createElement(a,{value:o[t],rowValue:o}))}))),o.expanded&&p&&l().createElement(p,{open:o.expanded,rowValue:o}))}),[a,p]),y=(0,r.useCallback)(((e,t)=>{h({width:e,height:t})}),[]),g=(0,r.useRef)(null);return(0,r.useImperativeHandle)(t,(()=>({resetScrollbarPosition:()=>{var e;null===(e=g.current)||void 0===e||e.scrollTo(0)}}))),l().createElement("div",{className:u.table},l().createElement(Q,{columnsData:a,sorting:i,onSort:s}),l().createElement("div",{className:u.tableBodyWrapper},l().createElement($.Z,{handleHeight:!0,handleWidth:!0,onResize:y}),l().createElement("div",{className:u.tableBody},l().createElement(_.Z,{listRef:g,width:m.width,height:m.height,data:o,defaultItemSize:d,itemKey:c,showNotMeasuredItems:!0},f))))})),ee=(0,r.memo)(J);var te=n(92332),ne=n(83088);const re="rgba(238, 238, 238, 1)",le=(0,R.Z)({tableWithPagination:{flex:1,overflow:"hidden",paddingRight:"1px",display:"flex",flexDirection:"column"},tableContainer:{flex:1,overflow:"hidden"},profileColumn:{width:"200px"},relationshipTypeColumn:{width:"130px"},entityTypeColumn:{width:"140px"},row:{position:"relative","&:hover":{background:re}}});function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oe={content:'""',position:"absolute",right:0,top:0,width:"40px",height:"100%",background:"linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)",pointerEvents:"none"},ie=".collapsibleTableRow:hover &",se=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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ae(e,t,n[t])}))}return e}({},oe,{[ie]:{background:`linear-gradient(to right, rgba(238, 238, 238, 0), ${re} 100%)`}}),ce=(0,R.Z)((e=>({headCell:{position:"relative",display:"flex",alignItems:"center",height:"33px",padding:"6px 0 6px 16px","&>div":{flexDirection:"row"},"&>div>span[role=button]":{width:"calc(100% + 49px)"}},headLabel:{color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden","&:after":oe},defaultCell:{position:"relative",color:e.palette.text.primary,fontSize:"13px",fontWeight:"normal",lineHeight:"15px",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",height:"100%",padding:"6px 16px","&:after":se},clickable:{cursor:"pointer"},profileCell:{paddingTop:"3px",paddingBottom:"4px"},controlsCell:{position:"absolute",display:"flex",alignItems:"center",height:"100%",flexShrink:0,top:0,right:"9px",visibility:"hidden",[ie]:{visibility:"visible",background:re}},editButton:{marginRight:"7px"},entityAvatar:{width:"20px",height:"20px",marginRight:"8px"}})));function pe(){return pe=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},pe.apply(this,arguments)}function de(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ue(e,t,n[t])}))}return e}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const me=e=>{let{className:t,headCellData:n}=e,r=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,["className","headCellData"]);const a=ce();return l().createElement("div",{className:O()(a.headCell,t)},l().createElement(te.default,pe({},r,{headCellData:de({},n,{label:l().createElement(ne.C,{value:n.label},l().createElement("div",{className:a.headLabel},n.label))})})))},he=(0,r.memo)((e=>{let{value:t="",tooltip:n,onClick:r,className:a}=e;const o=ce();return n=n||t,l().createElement(ne.C,{value:n},l().createElement("div",{className:O()(o.defaultCell,a,{[o.clickable]:!!r}),onClick:r},t))}));var fe=n(37573);const ye=(0,A.l)(w,(e=>{let{onEntitySelect:t}=e;return{onClick:t}}),(e=>{let{value:t,rowValue:{entity:n},className:r,onClick:a}=e;const o=ce(),i=l().createElement(l().Fragment,null,l().createElement(fe.Z,{entity:n,avatarClassName:o.entityAvatar}),t);return l().createElement(he,{value:i,tooltip:t,className:O()(o.profileCell,r),onClick:()=>a(n.uri)})})),ge=(0,r.memo)((e=>{let{open:t,rowValue:n}=e;return t?l().createElement("div",{style:{padding:"6px 16px",fontSize:"13px"}},n.relation.uri):null}));var be=n(39475),xe=n(27604),ve=n(22983);const Ee=(0,A.l)(w,(e=>{let{relationshipTable:{onStartRelationEditing:t,onFinishRelationEditing:n}}=e;return{onEdit:t,onDelete:n}}),(e=>{let{rowValue:{relation:{uri:t}},className:n,onEdit:r,onDelete:a}=e;const o=ce();return l().createElement("div",{className:O()(o.controlsCell,n)},l().createElement(be.k,{className:o.editButton,icon:xe.Z,size:"XXS",tooltipTitle:h().text("Edit"),onClick:()=>r(t)}),l().createElement(be.k,{icon:ve.Z,size:"XXS",tooltipTitle:h().text("Delete"),onClick:()=>a(t)}))}));function we(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ce(e,t,n[t])}))}return e}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oe=(e,t)=>t[e].relation.uri||`${e}`,Se=(0,A.l)(w,(e=>{let{relationshipTable:t}=e;return we({},t)}),(e=>{let{rowsData:t,sorting:n,onSort:a,total:o,page:i,rowsPerPage:s,onPageChange:c,onRowsPerPageChange:p,editingRelations:d}=e;const u=le(),m=(0,r.useMemo)((()=>[{id:"entityLabel",label:h().text("Profile"),headCellRenderer:me,rowCellValueRenderer:ye,sortable:!0,columnClassName:u.profileColumn},{id:"relationTypeLabel",label:h().text("Relationship type"),headCellRenderer:me,rowCellValueRenderer:he,sortable:!0,columnClassName:u.relationshipTypeColumn},{id:"entityTypeLabel",label:h().text("Entity Type"),headCellRenderer:me,rowCellValueRenderer:he,sortable:!0,columnClassName:u.entityTypeColumn},{id:"controls",label:"",headCellRenderer:me,rowCellValueRenderer:Ee}]),[u]),f=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;null===(e=f.current)||void 0===e||e.resetScrollbarPosition()}),[t]);const y=(0,r.useMemo)((()=>t.map((e=>{var t;return null!=d&&d.includes(null==e||null===(t=e.relation)||void 0===t?void 0:t.uri)?we({},e,{expanded:!0}):e}))),[t,d]),g=(0,r.useMemo)((()=>({tableRow:O()(u.row,"collapsibleTableRow")})),[u]);return l().createElement("div",{className:u.tableWithPagination},l().createElement("div",{className:u.tableContainer},l().createElement(ee,{ref:f,columnsData:m,rowsData:y,sorting:n,onSort:a,getRowKey:Oe,ExpandedRowRenderer:ge,defaultRowHeight:28,classes:g})),o>x[0]&&l().createElement(G.Z,{count:o,rowsPerPageOptions:x,rowsPerPage:s,onChangeRowsPerPage:p,page:i,onChangePage:c,basicTableRef:f}))}));var Te=n(36444),Ne=n(61837),Pe=n(33662);const Re=(0,R.Z)((e=>({inactiveSearchIcon:{color:e.palette.text.secondary},activeSearchIcon:{color:e.palette.text.primary},input:{fontSize:"14px","&::placeholder":{color:`${e.palette.text.secondary} !important`,opacity:1}}}))),ke=(0,A.l)(w,(0,f.pipe)((0,f.prop)("relationshipTable"),(0,f.pick)(["searchText","onChangeSearchText"])),(e=>{let{searchText:t,onChangeSearchText:n}=e;const r=Re();return l().createElement(Pe.Z,{fullWidth:!0,height:40,autofocus:!1,value:t,onSearch:n,placeholder:h().text("Search profiles"),classes:{input:r.input}})}));var Ie=n(92934),je=n(68977),Ze=n(77277),Le=n(8629);const Ue=(0,R.Z)((e=>({dialogPaper:{display:"flex",flexDirection:"column",padding:"12px 16px 8px"},title:{marginBottom:"21px",fontWeight:500,fontSize:"20px",lineHeight:"23px",letterSpacing:"0.25px",color:e.palette.text.primary},entityTypesSelector:{width:"468px",marginBottom:"20px"},relationTypesSelector:{width:"468px",marginBottom:"32px"},footer:{display:"flex"},clearAllButton:{marginRight:"auto"},cancelButton:{marginRight:"8px"}}))),ze=(0,A.l)(w,(0,f.pipe)((0,f.prop)("relationshipTable"),(0,f.pick)(["onFilter","filters","entityTypesOptions","relationTypesOptions"])),(e=>{let{open:t,onClose:n,filters:a,onFilter:o,entityTypesOptions:i,relationTypesOptions:s}=e;const c=Ue(),[p,d]=(0,r.useState)([]),[u,m]=(0,r.useState)([]),f=()=>{d(a.entityTypesUris),m(a.relationTypesUris),n()};return(0,r.useEffect)((()=>{d(a.entityTypesUris),m(a.relationTypesUris)}),[a.entityTypesUris,a.relationTypesUris]),l().createElement(Le.Z,{classes:{paper:c.dialogPaper},onClose:f,open:t},l().createElement(W.Z,{className:c.title},h().text("Filter")),l().createElement(Ie.Q,{classes:{root:c.entityTypesSelector},entityTypes:i,selectedEntityTypes:p,enableEmptyValueUnderline:!0,onChange:d}),l().createElement(je.U,{classes:{root:c.relationTypesSelector},relationTypes:s,selectedRelationTypes:u,enableEmptyValueUnderline:!0,onChange:m}),l().createElement("div",{className:c.footer},l().createElement(Ze.Z,{className:c.clearAllButton,onClick:()=>{d([]),m([])}},h().text("Clear All")),l().createElement(Ze.Z,{className:c.cancelButton,onClick:f},h().text("Cancel")),l().createElement(Ze.Z,{onClick:()=>{o({entityTypesUris:p,relationTypesUris:u}),n()},color:"primary"},h().text("Apply"))))})),De=(0,R.Z)((e=>({wrapper:{display:"flex",alignItems:"center",paddingLeft:"16px",paddingRight:"2px"},iconButton:{marginLeft:"4px"},activeFiltersIcon:{color:e.palette.primary.main},inactiveFiltersIcon:{color:e.palette.text.secondary}}))),Be=(0,A.l)(w,(0,f.pipe)((0,f.prop)("relationshipTable"),(0,f.pick)(["filters"])),(e=>{let{filters:t}=e;const n=De(),[a,o]=(0,r.useState)(!1),{entityTypesUris:i,relationTypesUris:s}=t,c=i.length||s.length;return l().createElement("div",{className:n.wrapper},l().createElement(ke,null),l().createElement(Ne.Z,{className:n.iconButton,onClick:()=>o(!0)},l().createElement(Te.Z,{className:c?n.activeFiltersIcon:n.inactiveFiltersIcon})),l().createElement(ze,{open:a,onClose:()=>o(!1)}))})),Ae=(0,R.Z)({caption:{marginLeft:"16px",marginTop:"12px",marginBottom:"14px",fontSize:"16px",lineHeight:"24px"},wrapper:{flex:1,display:"flex",flexDirection:"column",height:0}}),Me=()=>{const e=Ae();return l().createElement("div",{className:e.wrapper},l().createElement(W.Z,{className:e.caption,variant:"subtitle1"},h().text("Relationships")),l().createElement(Be,null),l().createElement(Se,null))};let He;!function(e){e[e.Relationship=0]="Relationship",e[e.EntityDetails=1]="EntityDetails"}(He||(He={}));const Fe=(0,r.memo)((()=>{var e;const t=z(),[n,a]=(0,r.useState)(null),o=(0,r.useCallback)((e=>{a((t=>t===e?null:e))}),[]),i=null!==n,s=(0,r.useMemo)((()=>[{buttonProps:{id:He.Relationship,icon:B,tooltipTitle:h().text("Relationship")},content:l().createElement(Me,null)},{buttonProps:{id:He.EntityDetails,icon:U.Z,tooltipTitle:h().text("Entity Details")},content:l().createElement(V,null)}]),[]);return l().createElement("div",{className:t.wrapper},l().createElement(Z.h,{open:i,width:480},l().createElement(M,null),null===(e=s[n])||void 0===e?void 0:e.content),l().createElement(L.G,{buttonsProps:(0,f.pluck)("buttonProps",s),onButtonClick:o,activeIndexId:n}))}));Fe.displayName="GraphRightSidePanel";const Ve=Fe;var We=n(4986);const Ge=e=>{let{children:t}=e;return l().createElement(We.SigmaContainer,{style:{background:"transparent"}},t)};var $e=n(28833),_e=n.n($e),qe=n(3660),Ye=n.n(qe),Ke=n(98996),Xe=n.n(Ke),Qe=n(60715),Je=n(35174),et=n(30284);const tt=.6,nt=(e,t,n,r,l)=>{if(t.loop){const{size:r,color:l}=t,a=n.x,o=n.y,i=n.size,s=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{x1:e-7*(n+r),y1:t,x2:e,y2:t+7*(n+r)}}(a,o,.6*i);if(e.strokeStyle=l,e.lineWidth=r,"arrow"===t.type){const{aX:t,aY:n,vX:r,vY:c}=((e,t,n,r)=>{const l=Math.max(.5*r,5),a=Math.sqrt(Math.pow(t-e.x1,2)+Math.pow(n-e.y1,2));return{aX:e.x1+(t-e.x1)*(a-l-r)/a,aY:e.y1+(n-e.y1)*(a-l-r)/a,vX:(t-e.x1)*l/a,vY:(n-e.y1)*l/a}})(s,a,o,i);e.beginPath(),e.moveTo(a,o),e.bezierCurveTo(s.x2,s.y2,s.x1,s.y1,t,n),e.stroke(),e.fillStyle=l,e.beginPath(),e.moveTo(t+r,n+c),e.lineTo(t+c*tt,n-r*tt),e.lineTo(t-c*tt,n+r*tt),e.lineTo(t+r,n+c),e.closePath(),e.fill()}else e.beginPath(),e.moveTo(a,o),e.bezierCurveTo(s.x1,s.y1,s.x2,s.y2,a,o),e.stroke()}(0,et.default)(e,t,n,r,l)};function rt(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=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lt(e,t,n[t])}))}return e}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const at=e=>{let{data:t,arrangeNodes:n,selectedNode:l,onNodeClick:o}=e;const i=(0,We.useSigma)(),s=(0,We.useLoadGraph)(),c=(0,We.useRegisterEvents)(),d=(0,We.useSetSettings)(),u=(0,a.useSelector)(p.ZP.selectors.getEntity),[m,h]=(0,r.useState)({hoverNode:void 0,hoverNeighbours:void 0}),[f,y]=(0,r.useState)(null),[g,b]=(0,r.useState)({});(0,r.useEffect)((()=>{const e=new(Xe());t.nodes.forEach((t=>{e.addNode(t.id,{label:t.name,size:21,color:"#0072CE"})})),t.edges.forEach((t=>{if(!e.hasEdge(t.from,t.to)){const n=t.from===t.to;e.addEdge(t.from,t.to,{size:1,color:"rgba(0, 0, 0, 0.2)",forceLabel:n,loop:n})}})),n(e),s(e),y((0,Je.toUndirected)(e)),i.getCamera().setState({ratio:1.2})}),[s,t,i,n]);const x=(0,r.useCallback)((e=>{const t=i.getGraph(),n=null==u?void 0:u.uri;if(t&&f&&n&&e&&n!==e){const r=(0,Qe.Ar)(f,n,e),l=((e,t)=>{const n=[];return t.reduce(((t,r)=>(n.push(e.edge(t,r)||e.edge(r,t)),r))),n})(t,r);return{edges:l,nodes:r}}return{}}),[i,null==u?void 0:u.uri,f]);(0,r.useEffect)((()=>{b(x(l))}),[l,x]),(0,r.useEffect)((()=>{c({enterNode:e=>{let{node:t}=e;const n=i.getGraph();h({hoverNode:t,hoverNeighbours:n.neighbors(t)})},leaveNode:()=>{h({hoverNode:void 0,hoverNeighbours:void 0})},clickNode:e=>{let{node:t}=e;o(t)}})}),[i,c,o]),(0,r.useEffect)((()=>{d({nodeReducer:(e,t)=>{const n=rt({},t),r=(g.nodes||[]).includes(e);return!m.hoverNeighbours||m.hoverNeighbours.includes(e)||m.hoverNode===e||r||(n.label="",n.color="#f6f6f6"),e===l&&(n.color="red"),e===(null==u?void 0:u.uri)&&(n.color="green"),n},edgeReducer:(e,t)=>{const n=i.getGraph(),r=rt({},t,{hidden:!1}),l=(g.edges||[]).includes(e);return!m.hoverNode||n.hasExtremity(e,m.hoverNode)||l||(r.hidden=!0),l&&(r.color="#0072CE",r.size=4),r},renderEdgeLabels:!0,edgeLabelRenderer:nt})}),[i,d,m,l,g,null==u?void 0:u.uri])},ot=e=>{let{data:t,selectedNode:n,onNodeClick:l}=e;const a=(0,r.useCallback)((e=>{_e().assign(e);const t=Ye().inferSettings(e);Ye().assign(e,{settings:t,iterations:600})}),[]);return at({arrangeNodes:a,data:t,selectedNode:n,onNodeClick:l}),null};var it=n(36039);let st;!function(e){e.SIMPLE_NETWORK="Simple network",e.VERTICAL_TB="Vertical hierarchy TB",e.VERTICAL_BT="Vertical hierarchy BT",e.HORIZONTAL_LR="Horizontal hierarchy LR",e.HORIZONTAL_RL="Horizontal hierarchy RL"}(st||(st={}));const ct=(e,t,n,r)=>{const l=new Set;return t.length||t.push(Array.from(e)),e.forEach((t=>{n.add(t),r.forEach((r=>{r.from!==t||e.has(r.to)||n.has(r.to)||l.add(r.to)}))})),l.size&&t.push(Array.from(l)),((e,t,n)=>{const r=new Set;return e.forEach((e=>{t.forEach((t=>{t.from!==e||n.has(t.to)||r.add(t.to)}))})),!!r.size})(l,r,n)?ct(l,t,n,r):t},pt=(e,t,n,r)=>{if(e.length<10&&(t[r]=[...e]),e.length>10){const l=e.slice(10),a=e.slice(0,10);t[r]=a,t[r+1]=n[r+1]?[...n[r+1],...l]:l}if(t[r+1]||n[r+1]){const e=t[++r]||n[r];return pt(e,t,n,r)}return t},dt=e=>{let{data:t,selectedNode:n,layout:l,onNodeClick:a}=e;const o=(0,r.useCallback)((e=>{const r=(e=>{switch(e){case st.VERTICAL_TB:return 180;case st.VERTICAL_BT:return 0;case st.HORIZONTAL_LR:return 270;case st.HORIZONTAL_RL:return 90}})(l),a=((e,t)=>{const n=e.nodes,r=e.edges.filter((e=>e.from!==e.to)),l=((e,t,n)=>{const r=new Set;return t.forEach((t=>{e.some((e=>e.to===t.id))||r.add(t.id)})),r.size||r.add(n),r})(r,n,t),a=ct(l,[],new Set,r);return pt(a[0],[],a,0)})(t,n),o=(e=>{const t=e.map((e=>e.length));return Math.max(...t)})(a);for(let t=0;t<a.length;++t)for(let n=0;n<a[t].length;++n)e.setNodeAttribute(a[t][n],"x",(s=n,(i=a[t].length)===(c=o)?5*s:1===i?5*(c-1)/2:5*(c-1)/(i+1)*(s+1))),e.setNodeAttribute(a[t][n],"y",0+10*t);var i,s,c;it.rotation.assign(e,r,{degrees:!0})}),[t,l,n]);return at({arrangeNodes:o,data:t,selectedNode:n,onNodeClick:a}),null};var ut=n(84425);const mt=(0,R.Z)({graphTypeSelector:{minWidth:"200px",backgroundColor:"#FAFAFA",opacity:1,height:"40px"},filledInputRoot:{borderRadius:"4px"},valueContainer:{width:"auto",marginLeft:"16px"}}),ht=(0,A.l)(w,(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;return{setGraphTypeUri:n,graphTypeUri:t}}),(e=>{let{graphTypeUri:t,setGraphTypeUri:n}=e;const o=mt(),i=(0,a.useSelector)(p.ZP.selectors.getMetadata),s=(0,a.useSelector)(p.ZP.selectors.getEntity),c=(0,r.useMemo)((()=>[{label:h().text("All"),value:null},...(0,u.mmY)(i,s.type).map((e=>{let{uri:t,label:n}=e;return{value:t,label:n}}))]),[s,i]),d=(0,r.useMemo)((()=>c.find((e=>e.value===t))),[c,t]);return l().createElement(ut.Z,{classes:{valueContainer:o.valueContainer},className:o.graphTypeSelector,height:42,label:h().text("Graph type"),value:d,options:c,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:o.filledInputRoot}}}})})),ft=(0,R.Z)({graphLayoutSelector:{minWidth:"202px",backgroundColor:"#FAFAFA",opacity:1,marginLeft:"10px"},filledInputRoot:{borderRadius:"4px",height:"42px"}}),yt=(0,r.memo)((e=>{let{value:t,onChangeHandler:n}=e;const r=ft(),a=[{label:h().text("Simple network"),value:st.SIMPLE_NETWORK},{label:h().text("Vertical hierarchy TB"),value:st.VERTICAL_TB},{label:h().text("Vertical hierarchy BT"),value:st.VERTICAL_BT},{label:h().text("Horizontal hierarchy LR"),value:st.HORIZONTAL_LR},{label:h().text("Horizontal hierarchy RL"),value:st.HORIZONTAL_RL}];return l().createElement(ut.Z,{className:r.graphLayoutSelector,label:h().text("Graph layout"),value:a.find((0,f.propEq)("value",t)),options:a,onChange:e=>n(e.value),TextFieldProps:{InputProps:{disableUnderline:!0,classes:{root:r.filledInputRoot}}}})})),gt=(0,R.Z)({wrapper:{height:"100%",position:"relative"},selectors:{display:"flex",position:"absolute",top:"12px",right:"16px",zIndex:2},graph:{height:"calc(100% - 5px)"}});function bt(){return bt=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},bt.apply(this,arguments)}const xt=(0,A.l)(w,(e=>{let{data:t,selectedEntity:n,onEntitySelect:r}=e;return{data:t,selectedNode:null==n?void 0:n.uri,onNodeSelect:r}}),(e=>{let{data:t,selectedNode:n,onNodeSelect:a}=e;const[o,i]=(0,r.useState)(st.SIMPLE_NETWORK),s=(0,r.useMemo)((()=>t&&(e=>{var t;const n=new Set,r=new Set;e.entities.forEach((e=>n.add(e.uri))),((null===(t=e.relations)||void 0===t?void 0:t.filter((e=>n.has(e.startObject.objectURI)&&n.has(e.endObject.objectURI))))||[]).forEach((e=>{r.has(`${e.endObject.objectURI}--${e.startObject.objectURI}`)||r.add(`${e.startObject.objectURI}--${e.endObject.objectURI}--${e.direction}`)}));const l=e.entities.map((e=>({id:e.uri,name:e.label}))),a=[];return r.forEach((e=>{const t=e.split("--");a.push({from:t[0],to:t[1]})})),{nodes:l,edges:a}})(t)),[t]),c=gt(),p={data:s,selectedNode:n,onNodeClick:a};return l().createElement("div",{className:c.wrapper},l().createElement("div",{className:c.selectors},l().createElement(ht,null),l().createElement(yt,{value:o,onChangeHandler:i})),l().createElement("div",{className:c.graph},s&&l().createElement(Ge,null,o===st.SIMPLE_NETWORK?l().createElement(ot,p):l().createElement(dt,bt({},p,{layout:o})))))})),vt=(0,R.Z)((e=>({perspectiveView:{position:"absolute",top:0,left:0,right:0,bottom:0,fontFamily:"Roboto, Helvetica, Arial, sans-serif",overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.default},graphWrapper:{display:"flex",flexDirection:"column",overflow:"hidden",flexGrow:1},graphContainer:{display:"flex",overflow:"hidden",flexGrow:1},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}))),Et=(0,r.memo)((()=>{const e=vt(),t=(0,a.useSelector)(p.ZP.selectors.getEntity),n=(e=>{const{graphLoading:t,data:n,graphTypeUri:l,setGraphTypeUri:o}=(e=>{const[t,n]=(0,r.useState)(null),l=(0,a.useDispatch)(),[o,i]=(0,r.useState)(null),[s,c]=(0,r.useState)(!1),d=null==e?void 0:e.uri,m=(0,u.biM)(e);return(0,r.useEffect)((()=>(!d||(0,u.ZiX)(d)||m||(c(!0),(0,u.ZYI)({uri:d,deep:t?2:1,limitCreditsConsumption:!0,graphTypes:t?[(0,u.nIW)(t)]:null,activenessDate:null,max:t?200:3e3}).then(i).catch((e=>{i(null),l(p.ui.actions.errorSet((0,u.xU7)(e,h().text("Something went wrong"))))})).finally((()=>{c(!1)}))),()=>{i(null),c(!1)})),[d,m,l,t]),{graphLoading:s,data:o,graphTypeUri:t,setGraphTypeUri:n}})(e),{selectedEntity:i,onEntitySelect:s,selectedEntityLoading:c}=((e,t)=>{const n=(0,y._)(),l=(0,a.useDispatch)(),[o,i]=(0,r.useState)(null),s=(0,r.useRef)({}),[c,d]=(0,r.useState)(!1),m=(0,r.useCallback)((e=>{const t=s.current[e];return t?Promise.resolve(t):(0,u.HvW)(e).then((e=>(s.current=b(s.current,e),e)))}),[]),g=(0,r.useCallback)((e=>{var r;const a=null==t||null===(r=t.entities)||void 0===r?void 0:r.find((0,f.propEq)("uri",e));a&&i(a),d(!0),n(m(e)).then(i).catch((e=>{l(p.ui.actions.errorSet((0,u.xU7)(e,h().text("Something went wrong"))))})).finally((()=>{d(!1)}))}),[l,t,n,m]);return(0,r.useEffect)((()=>{null!=e&&e.uri&&(s.current=b({},e),g(e.uri))}),[null==e?void 0:e.uri]),(0,r.useEffect)((()=>{const n=null==t?void 0:t.entities.find((e=>(null==o?void 0:o.uri)===e.uri));n||(null!=e&&e.uri?(s.current=b({},e),g(e.uri)):(s.current={},i(null)))}),[t]),{selectedEntityLoading:c,selectedEntity:o,onEntitySelect:g}})(e,n);return{graphLoading:t,data:n,selectedEntity:i,onEntitySelect:s,selectedEntityLoading:c,graphTypeUri:l,setGraphTypeUri:o,relationshipTable:E(n,null==i?void 0:i.uri,l)}})(t),{graphLoading:o}=n;return l().createElement(w.Provider,{value:n},l().createElement("div",{className:e.perspectiveView},o&&l().createElement(d.Z,null),(null==t?void 0:t.uri)&&l().createElement("div",{className:e.graphContainer},l().createElement("div",{className:e.graphWrapper},l().createElement(j,null),l().createElement(xt,null)),l().createElement(Ve,null))))}));Et.displayName="GraphPerspectiveView";const wt=Et,Ct=(0,o.createGenerateClassName)({productionPrefix:"graph",disableGlobal:!0}),Ot=e=>{let{store:t}=e;return l().createElement(a.Provider,{store:t},l().createElement(o.StylesProvider,{generateClassName:Ct},l().createElement(s.MuiPickersUtilsProvider,{utils:c.Z},l().createElement(wt,null),l().createElement(i.Z,{showErrorFromStore:!0}))))}}}]);