@reltio/remotes 1.4.1038 → 1.4.1042

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/1801.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1801.js.LICENSE.txt */
2
- (self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[1801],{6782:(e,t,o)=>{"use strict";t.Z=function(e){if("string"!=typeof e)throw new Error((0,i.formatMuiErrorMessage)(7));return e.charAt(0).toUpperCase()+e.slice(1)};var i=o(65144)},61932:(e,t,o)=>{"use strict";var i=o(14859);t.Z=void 0;var n=i(o(24328)),r=(0,i(o(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");t.Z=r},38016:(e,t,o)=>{"use strict";var i=o(14859);t.Z=void 0;var n=i(o(24328)),r=(0,i(o(50175)).default)(n.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=r},45767:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var i=o(24328),n=o.n(i),r=o(7560),s=o(72379);const a=(l=n().createElement("path",{d:"M7 10l5 5 5-5z"}),(p=n().memo(n().forwardRef((function(e,t){return n().createElement(s.Z,(0,r.Z)({ref:t},e),l)})))).muiName=s.Z.muiName,p);var l,p},17871:(e,t,o)=>{"use strict";o.d(t,{j_:()=>$,b6:()=>b,vD:()=>le,Jx:()=>q,XL:()=>ne,mg:()=>ot,Ji:()=>j});var i=o(24328),n=o.n(i),r=o(75047),s=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==o.g?o.g:"undefined"!=typeof self&&self,{exports:{}}),a={};Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var i=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==i.join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()&&Object.assign;var l=n(),p=60103;if(a.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var c=Symbol.for;p=c("react.element"),a.Fragment=c("react.fragment")}var d=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function g(e,t,o){var i,n={},r=null,s=null;for(i in void 0!==o&&(r=""+o),void 0!==t.key&&(r=""+t.key),void 0!==t.ref&&(s=t.ref),t)h.call(t,i)&&!u.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===n[i]&&(n[i]=t[i]);return{$$typeof:p,type:e,key:r,ref:s,props:n,_owner:d.current}}a.jsx=g,a.jsxs=g,s.exports=a;var m=function(e,t,o,i,n,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[o,i,n,r,s,a],c=0;(l=new Error(t.replace(/%s/g,(function(){return p[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}};const f=(0,i.createContext)(null);function M(e){google.maps.event.removeListener(e)}function v(e=[]){e.forEach(M)}function S({updaterMap:e,eventMap:t,prevProps:o,nextProps:i,instance:n}){const r=function(e,t,o){const i=(n=o,r=function(o,i,n){return"function"==typeof e[n]&&o.push(google.maps.event.addListener(t,i,e[n])),o},s=[],Object.keys(n).reduce((function(e,t){return r(e,n[t],t)}),s));var n,r,s;return i}(i,n,t);return function(e,t,o,i){const n={};var r,s;r=e,s=(e,r)=>{const s=o[r];s!==t[r]&&(n[r]=s,e(i,s))},Object.keys(r).forEach((e=>s(r[e],e)))}(e,o,i,n),r}const y={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"},k={extraMapTypes(e,t){t.forEach((function(t,o){e.mapTypes.set(String(o),t)}))},center(e,t){e.setCenter(t)},clickableIcons(e,t){e.setClickableIcons(t)},heading(e,t){e.setHeading(t)},mapTypeId(e,t){e.setMapTypeId(t)},options(e,t){e.setOptions(t)},streetView(e,t){e.setStreetView(t)},tilt(e,t){e.setTilt(t)},zoom(e,t){e.setZoom(t)}};class b extends i.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=e=>{const t=this.getInstance();t&&t.panTo(e)},this.setMapCallback=()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=e=>{this.mapRef=e}}componentDidMount(){const e=this.getInstance();this.registeredEvents=S({updaterMap:k,eventMap:y,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)}componentDidUpdate(e){null!==this.state.map&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:k,eventMap:y,prevProps:e,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),v(this.registeredEvents))}render(){return s.exports.jsx("div",Object.assign({id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},{children:s.exports.jsx(f.Provider,Object.assign({value:this.state.map},{children:null!==this.state.map?this.props.children:s.exports.jsx(s.exports.Fragment,{})}))}))}}function C(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(o[i[n]]=e[i[n]])}return o}const O="undefined"!=typeof document;function x({url:e,id:t,nonce:o}){return O?new Promise((function(i,n){const r=document.getElementById(t),s=window;if(r){const o=r.getAttribute("data-state");if(r.src===e&&"error"!==o){if("ready"===o)return i(t);{const e=s.initMap,o=r.onerror;return s.initMap=function(){e&&e(),i(t)},void(r.onerror=function(e){o&&o(e),n(e)})}}r.remove()}const a=document.createElement("script");a.type="text/javascript",a.src=e,a.id=t,a.async=!0,a.nonce=o,a.onerror=function(e){a.setAttribute("data-state","error"),n(e)},s.initMap=function(){a.setAttribute("data-state","ready"),i(t)},document.head.appendChild(a)})).catch((e=>{throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function B(e){return!((!e.href||0!==e.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",0):"style"!==e.tagName.toLowerCase()||e.styleSheet||e.innerHTML))}function z(){const e=document.getElementsByTagName("head")[0],t=e.insertBefore.bind(e);e.insertBefore=function(o,i){B(o)||Reflect.apply(t,e,[o,i])};const o=e.appendChild.bind(e);e.appendChild=function(t){B(t)||Reflect.apply(o,e,[t])}}function w({googleMapsApiKey:e,googleMapsClientId:t,version:o="weekly",language:i,region:n,libraries:r,channel:s,mapIds:a}){const l=[];return m(e&&t||!(e&&t),"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."),e?l.push(`key=${e}`):t&&l.push(`client=${t}`),o&&l.push(`v=${o}`),i&&l.push(`language=${i}`),n&&l.push(`region=${n}`),r&&r.length&&l.push(`libraries=${r.sort().join(",")}`),s&&l.push(`channel=${s}`),a&&a.length&&l.push(`map_ids=${a.join(",")}`),l.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${l.join("&")}`}let W=!1;function P(){return s.exports.jsx("div",{children:"Loading..."})}const L={id:"script-loader",version:"weekly"};class E extends i.PureComponent{constructor(){super(...arguments),this.check=(0,i.createRef)(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>{return e=this,t=void 0,i=function*(){return new Promise((function(e){if(W){if(O){const t=window.setInterval((function(){W||(window.clearInterval(t),e())}),1)}}else e()}))},new((o=void 0)||(o=Promise))((function(n,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}));var e,t,o,i},this.cleanup=()=>{W=!0;const e=document.getElementById(this.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"==typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&z(),m(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id),x({id:this.props.id,nonce:this.props.nonce,url:w(this.props)}).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((e=>{this.props.onError&&this.props.onError(e),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(O){if(window.google&&window.google.maps&&!W)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}}componentDidUpdate(e){this.props.libraries!==e.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"),O&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(O){this.cleanup();const e=()=>{this.check.current||(delete window.google,W=!1)};window.setTimeout(e,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return s.exports.jsxs(s.exports.Fragment,{children:[s.exports.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||s.exports.jsx(P,{})]})}}let I;E.defaultProps=L;const T=s.exports.jsx(P,{});(0,i.memo)((function(e){var{loadingElement:t,onLoad:o,onError:n,onUnmount:r,children:s}=e,a=C(e,["loadingElement","onLoad","onError","onUnmount","children"]);const{isLoaded:l,loadError:p}=function({id:e=L.id,version:t=L.version,nonce:o,googleMapsApiKey:n,googleMapsClientId:r,language:s,region:a,libraries:l,preventGoogleFontsLoading:p,channel:c,mapIds:d}){const h=(0,i.useRef)(!1),[u,g]=(0,i.useState)(!1),[f,M]=(0,i.useState)(void 0);(0,i.useEffect)((function(){return h.current=!0,()=>{h.current=!1}}),[]),(0,i.useEffect)((function(){O&&p&&z()}),[p]),(0,i.useEffect)((function(){u&&m(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[u]);const v=w({version:t,googleMapsApiKey:n,googleMapsClientId:r,language:s,region:a,libraries:l,channel:c,mapIds:d});(0,i.useEffect)((function(){function t(){h.current&&(g(!0),I=v)}O&&(window.google&&window.google.maps&&I===v?t():x({id:e,url:v,nonce:o}).then(t).catch((function(e){h.current&&M(e),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 (${r||"-"})\n Otherwise it is a Network issue.\n `),console.error(e)})))}),[e,v,o]);const S=(0,i.useRef)();return(0,i.useEffect)((function(){S.current&&l!==S.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"),S.current=l}),[l]),{isLoaded:u,loadError:f,url:v}}(a);return(0,i.useEffect)((function(){l&&"function"==typeof o&&o()}),[l,o]),(0,i.useEffect)((function(){p&&"function"==typeof n&&n(p)}),[p,n]),(0,i.useEffect)((function(){return()=>{r&&r()}}),[r]),l?s:t||T}));var R=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var i,n,r;if(Array.isArray(t)){if((i=t.length)!=o.length)return!1;for(n=i;0!=n--;)if(!e(t[n],o[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((i=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(o,r[n]))return!1;for(n=i;0!=n--;){var s=r[n];if(!e(t[s],o[s]))return!1}return!0}return t!=t&&o!=o};const D="__googleMapsScriptId";var A;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(A||(A={}));class F{constructor({apiKey:e,channel:t,client:o,id:i=D,libraries:n=[],language:r,region:s,version:a,mapIds:l,nonce:p,retries:c=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=e,this.channel=t,this.client=o,this.id=i||D,this.libraries=n,this.language=r,this.region=s,this.mapIds=l,this.nonce=p,this.retries=c,this.url=d,F.instance){if(!R(this.options,F.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(F.instance.options)}`);return F.instance}F.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 status(){return this.errors.length?A.FAILURE:this.done?A.SUCCESS:this.loading?A.LOADING:A.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((o=>{o?t(o.error):e(window.google)}))}))}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const e=this.createUrl(),t=document.createElement("script");t.id=this.id,t.type="text/javascript",t.src=e,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(t)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(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 j({id:e=L.id,version:t=L.version,nonce:o,googleMapsApiKey:n,language:r,region:s,libraries:a,preventGoogleFontsLoading:l,mapIds:p}){const c=(0,i.useRef)(!1),[d,h]=(0,i.useState)(!1),[u,g]=(0,i.useState)(void 0);(0,i.useEffect)((function(){return c.current=!0,()=>{c.current=!1}}),[]);const m=(0,i.useMemo)((function(){return new F({id:e,apiKey:n,version:t,libraries:a,language:r,region:s,mapIds:p,nonce:o})}),[e,n,t,a,r,s,p,o]);(0,i.useEffect)((function(){d||m.load().then((function(){c.current&&h(!0)})).catch((function(e){g(e)}))}),[]),(0,i.useEffect)((function(){O&&l&&z()}),[l]);const f=(0,i.useRef)();return(0,i.useEffect)((function(){f.current&&a!==f.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"),f.current=a}),[a]),{isLoaded:d,loadError:u}}const U={},_={options(e,t){e.setOptions(t)}};class G extends i.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 e=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:_,eventMap:U,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)}componentDidUpdate(e){null!==this.state.trafficLayer&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:_,eventMap:U,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),v(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}G.contextType=f;class V extends i.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 e=new google.maps.BicyclingLayer;this.setState((()=>({bicyclingLayer:e})),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}V.contextType=f;class N extends i.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 e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}N.contextType=f;const Z={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},H={drawingMode(e,t){e.setDrawingMode(t)},options(e,t){e.setOptions(t)}};class $ extends i.PureComponent{constructor(e){super(e),this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},m(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){const e=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:H,eventMap:Z,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)}componentDidUpdate(e){null!==this.state.drawingManager&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:H,eventMap:Z,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),v(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}}$.contextType=f;const K={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"},Y={animation(e,t){e.setAnimation(t)},clickable(e,t){e.setClickable(t)},cursor(e,t){e.setCursor(t)},draggable(e,t){e.setDraggable(t)},icon(e,t){e.setIcon(t)},label(e,t){e.setLabel(t)},map(e,t){e.setMap(t)},opacity(e,t){e.setOpacity(t)},options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},shape(e,t){e.setShape(t)},title(e,t){e.setTitle(t)},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}};class q extends i.PureComponent{constructor(){super(...arguments),this.registeredEvents=[]}componentDidMount(){const e=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(e),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=S({updaterMap:Y,eventMap:K,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(e){this.marker&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:Y,eventMap:K,prevProps:e,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),v(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let e=null;return this.props.children&&(e=i.Children.map(this.props.children,(e=>{if(!(0,i.isValidElement)(e))return e;let t=e;return(0,i.cloneElement)(t,{anchor:this.marker})}))),e||null}}q.contextType=f;var X=function(){function e(t,o){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=o,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(t.getMap())}return e.prototype.onAdd=function(){var e,t,o=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(){t=e})),google.maps.event.addDomListener(this.div,"mousedown",(function(){e=!0,t=!1})),google.maps.event.addDomListener(this.div,"click",(function(i){if(e=!1,!t){var n=o.cluster.getClusterer();if(google.maps.event.trigger(n,"click",o.cluster),google.maps.event.trigger(n,"clusterclick",o.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),s=o.cluster.getBounds();n.getMap().fitBounds(s),setTimeout((function(){n.getMap().fitBounds(s),null!==r&&n.getMap().getZoom()>r&&n.getMap().setZoom(r+1)}),100)}i.cancelBubble=!0,i.stopPropagation&&i.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(o.cluster.getClusterer(),"mouseover",o.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(o.cluster.getClusterer(),"mouseout",o.cluster)}))},e.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)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center),t=e.x,o=e.y;this.div.style.top=o+"px",this.div.style.left=t+"px"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e;if(this.div&&this.center){var t,o=this.backgroundPosition.split(" "),i=parseInt(o[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(o[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.cursor="pointer",this.div.style.position="absolute",this.div.style.top="".concat(r.y,"px"),this.div.style.left="".concat(r.x,"px"),this.div.style.width="".concat(this.width,"px"),this.div.style.height="".concat(this.height,"px");var s=document.createElement("img");s.alt=t,s.src=this.url,s.style.position="absolute",s.style.top="".concat(n,"px"),s.style.left="".concat(i,"px"),this.cluster.getClusterer().enableRetinaIcons||(s.style.clip="rect(-".concat(n,"px, -").concat(i+this.width,"px, -").concat(n+this.height,", -").concat(i,")"));var a=document.createElement("div");a.style.position="absolute",a.style.top="".concat(this.anchorText[0],"px"),a.style.left="".concat(this.anchorText[1],"px"),a.style.color=this.textColor,a.style.fontSize="".concat(this.textSize,"px"),a.style.fontFamily=this.fontFamily,a.style.fontWeight=this.fontWeight,a.style.fontStyle=this.fontStyle,a.style.textDecoration=this.textDecoration,a.style.textAlign="center",a.style.width="".concat(this.width,"px"),a.style.lineHeight="".concat(this.height,"px"),a.innerText="".concat(null===(e=this.sums)||void 0===e?void 0:e.text),this.div.innerHTML="",this.div.appendChild(s),this.div.appendChild(a),this.div.title=t,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),o=t[Math.min(t.length-1,Math.max(0,e.index-1))];this.url=o.url,this.height=o.height,this.width=o.width,o.className&&(this.className="".concat(this.clusterClassName," ").concat(o.className)),this.anchorText=o.anchorText||[0,0],this.anchorIcon=o.anchorIcon||[this.height/2,this.width/2],this.textColor=o.textColor||"black",this.textSize=o.textSize||11,this.textDecoration=o.textDecoration||"none",this.fontWeight=o.fontWeight||"bold",this.fontStyle=o.fontStyle||"normal",this.fontFamily=o.fontFamily||"Arial,sans-serif",this.backgroundPosition=o.backgroundPosition||"0 0"},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0],t},e}(),J=function(){function e(e){this.markerClusterer=e,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 X(this,this.markerClusterer.getStyles())}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=this.getMarkers(),o=0;o<t.length;o++){var i=t[o].getPosition();i&&e.extend(i)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){if(this.isMarkerAlreadyAdded(e))return!1;var t;if(this.center){if(this.averageCenter&&(t=e.getPosition())){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+t.lat())/o,(this.center.lng()*(o-1)+t.lng())/o),this.calculateBounds()}}else(t=e.getPosition())&&(this.center=t,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var i=this.markers.length,n=this.markerClusterer.getMaxZoom(),r=this.map.getZoom();if(null!==n&&void 0!==r&&r>n)e.getMap()!==this.map&&e.setMap(this.map);else if(i<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(i===this.minClusterSize)for(var s=0;s<i;s++)this.markers[s].setMap(null);else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e=this.markers.length,t=this.markerClusterer.getMaxZoom(),o=this.map.getZoom();null!==t&&void 0!==o&&o>t||e<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())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}(),Q=function(e,t){var o=e.length,i=o.toString().length,n=Math.min(i,t);return{text:o.toString(),index:n,title:""}},ee=[53,56,66,78,90],te=function(){function e(t,o,i){void 0===o&&(o=[]),void 0===i&&(i={}),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=i.gridSize||60,this.minClusterSize=i.minimumClusterSize||2,this.maxZoom=i.maxZoom||null,this.styles=i.styles||[],this.title=i.title||"",this.zoomOnClick=!0,void 0!==i.zoomOnClick&&(this.zoomOnClick=i.zoomOnClick),this.averageCenter=!1,void 0!==i.averageCenter&&(this.averageCenter=i.averageCenter),this.ignoreHidden=!1,void 0!==i.ignoreHidden&&(this.ignoreHidden=i.ignoreHidden),this.enableRetinaIcons=!1,void 0!==i.enableRetinaIcons&&(this.enableRetinaIcons=i.enableRetinaIcons),this.imagePath=i.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=i.imageExtension||"png",this.imageSizes=i.imageSizes||ee,this.calculator=i.calculator||Q,this.batchSize=i.batchSize||2e3,this.batchSizeIE=i.batchSizeIE||500,this.clusterClass=i.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(o,!0),this.setMap(t)}return e.prototype.onAdd=function(){var e=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){e.resetViewport(!1),e.getMap().getZoom()!==(e.get("minZoom")||0)&&e.getMap().getZoom()!==e.get("maxZoom")||google.maps.event.trigger(e,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){e.redraw()}))]},e.prototype.onRemove=function(){for(var e=0;e<this.markers.length;e++)this.markers[e].getMap()!==this.activeMap&&this.markers[e].setMap(this.activeMap);for(e=0;e<this.clusters.length;e++)this.clusters[e].remove();for(this.clusters=[],e=0;e<this.listeners.length;e++)google.maps.event.removeListener(this.listeners[e]);this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:this.imagePath+(e+1)+"."+this.imageExtension,height:this.imageSizes[e],width:this.imageSizes[e]})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,o=0;o<e.length;o++){var i=e[o].getPosition();i&&t.extend(i)}this.getMap().fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.pushMarkerTo(e[o]);t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var o=0;o<this.markers.length;o++)if(e===this.markers[o]){t=o;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var o=this.removeMarker_(e);return!t&&o&&this.repaint(),o},e.prototype.removeMarkers=function(e,t){for(var o=!1,i=0;i<e.length;i++)o=o||this.removeMarker_(e[i]);return!t&&o&&this.repaint(),o},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0;t<e.length;t++)e[t].remove()}),0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),o=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));o.x+=this.gridSize,o.y-=this.gridSize;var i=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));return i.x-=this.gridSize,i.y+=this.gridSize,e.extend(t.fromDivPixelToLatLng(o)),e.extend(t.fromDivPixelToLatLng(i)),e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0;t<this.clusters.length;t++)this.clusters[t].remove();for(this.clusters=[],t=0;t<this.markers.length;t++){var o=this.markers[t];o.isAdded=!1,e&&o.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var o=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,n=Math.sin(o/2)*Math.sin(o/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))*6371},e.prototype.isMarkerInBounds=function(e,t){var o=e.getPosition();return!!o&&t.contains(o)},e.prototype.addToClosestCluster=function(e){for(var t,o=4e4,i=null,n=0;n<this.clusters.length;n++){var r=(t=this.clusters[n]).getCenter(),s=e.getPosition();if(r&&s){var a=this.distanceBetweenPoints(r,s);a<o&&(o=a,i=t)}}i&&i.isMarkerInClusterBounds(e)?i.addMarker(e):((t=new J(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var o=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)),i=this.getExtendedBounds(o),n=Math.min(e+this.batchSize,this.markers.length),r=e;r<n;r++){var s=this.markers[r];!s.isAdded&&this.isMarkerInBounds(s,i)&&(!this.ignoreHidden||this.ignoreHidden&&s.getVisible())&&this.addToClosestCluster(s)}if(n<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.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()}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},e}();const oe={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},ie={averageCenter(e,t){e.setAverageCenter(t)},batchSizeIE(e,t){e.setBatchSizeIE(t)},calculator(e,t){e.setCalculator(t)},clusterClass(e,t){e.setClusterClass(t)},enableRetinaIcons(e,t){e.setEnableRetinaIcons(t)},gridSize(e,t){e.setGridSize(t)},ignoreHidden(e,t){e.setIgnoreHidden(t)},imageExtension(e,t){e.setImageExtension(t)},imagePath(e,t){e.setImagePath(t)},imageSizes(e,t){e.setImageSizes(t)},maxZoom(e,t){e.setMaxZoom(t)},minimumClusterSize(e,t){e.setMinimumClusterSize(t)},styles(e,t){e.setStyles(t)},title(e,t){e.setTitle(t)},zoomOnClick(e,t){e.setZoomOnClick(t)}};class ne extends i.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 e=new te(this.context,[],this.props.options);this.registeredEvents=S({updaterMap:ie,eventMap:oe,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}}componentDidUpdate(e){this.state.markerClusterer&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:ie,eventMap:oe,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),v(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}ne.contextType=f;var re=function(){function e(t){void 0===t&&(t={}),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;function t(e){e.cancelBubble=!0,e.stopPropagation&&e.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 o=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-o.left-o.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var i=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],n=0;n<i.length;n++)this.eventListeners.push(google.maps.event.addDomListener(this.div,i[n],t));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",(function(o){o.returnValue=!1,o.preventDefault&&o.preventDefault(),e.enableEventPropagation||t(o)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){if(this.div&&this.div.firstChild&&""!==this.closeBoxURL){var e=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(e,"click",this.getCloseClickHandler())}else this.closeListener=null},e.prototype.getCloseClickHandler=function(){var e=this;return function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(e,"closeclick"),e.close()}},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var o=0,i=0,n=t.getBounds();n&&!n.contains(this.position)&&t.setCenter(this.position);var r=t.getDiv(),s=r.offsetWidth,a=r.offsetHeight,l=this.pixelOffset.width,p=this.pixelOffset.height,c=this.div.offsetWidth,d=this.div.offsetHeight,h=this.infoBoxClearance.width,u=this.infoBoxClearance.height,g=this.getProjection().fromLatLngToContainerPixel(this.position);null!==g&&(g.x<-l+h?o=g.x+l-h:g.x+c+l+h>s&&(o=g.x+c+l+h-s),this.alignBottom?g.y<-p+u+d?i=g.y+p-u-d:g.y+p+u>a&&(i=g.y+p+u-a):g.y<-p+u?i=g.y+p-u:g.y+d+p+u>a&&(i=g.y+d+p+u-a)),0===o&&0===i||t.panBy(o,i)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)e.hasOwnProperty(t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var o=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*o+')"',this.div.style.filter="alpha(opacity="+100*o+")"}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")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,o=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var i=this.div.currentStyle;i&&(e.top=parseInt(i.borderTopWidth||"",10)||0,e.bottom=parseInt(i.borderBottomWidth||"",10)||0,e.left=parseInt(i.borderLeftWidth||"",10)||0,e.right=parseInt(i.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),void 0!==e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),void 0!==e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),void 0!==e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden=e.isHidden),void 0!==e.visible&&(this.isHidden=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var o=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();o.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){o.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0;e<this.eventListeners.length;e++)google.maps.event.removeListener(this.eventListeners[e]);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)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype.hasOwnProperty(t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}();const se={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},ae={options(e,t){e.setOptions(t)},position(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}};class le extends i.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(e,t)=>{t?e.open(this.context,t):e.getPosition()?e.open(this.context):m(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{const{anchor:e,onLoad:t}=this.props,{infoBox:o}=this.state;null!==o&&null!==this.containerElement&&(o.setContent(this.containerElement),this.open(o,e),t&&t(o))}}componentDidMount(){const{options:e}=this.props,t=e||{},{position:o}=t,i=C(t,["position"]);let n;!o||o instanceof google.maps.LatLng||(n=new google.maps.LatLng(o.lat,o.lng));const r=new re(Object.assign(Object.assign({},i),n?{position:n}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=S({updaterMap:ae,eventMap:se,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)}componentDidUpdate(e){const{infoBox:t}=this.state;null!==t&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:ae,eventMap:se,prevProps:e,nextProps:this.props,instance:t}))}componentWillUnmount(){const{onUnmount:e}=this.props,{infoBox:t}=this.state;null!==t&&(e&&e(t),v(this.registeredEvents),t.close())}render(){return this.containerElement?(0,r.createPortal)(i.Children.only(this.props.children),this.containerElement):null}}le.contextType=f;var pe={exports:{}};pe.exports=function(){function e(o,i,n,r,s,a){if(!(s-r<=n)){var l=r+s>>1;t(o,i,l,r,s,a%2),e(o,i,n,r,l-1,a+1),e(o,i,n,l+1,s,a+1)}}function t(e,i,n,r,s,a){for(;s>r;){if(s-r>600){var l=s-r+1,p=n-r+1,c=Math.log(l),d=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*d*(l-d)/l)*(p-l/2<0?-1:1);t(e,i,n,Math.max(r,Math.floor(n-p*d/l+h)),Math.min(s,Math.floor(n+(l-p)*d/l+h)),a)}var u=i[2*n+a],g=r,m=s;for(o(e,i,r,n),i[2*s+a]>u&&o(e,i,r,s);g<m;){for(o(e,i,g,m),g++,m--;i[2*g+a]<u;)g++;for(;i[2*m+a]>u;)m--}i[2*r+a]===u?o(e,i,r,m):o(e,i,++m,s),m<=n&&(r=m+1),n<=m&&(s=m-1)}}function o(e,t,o,n){i(e,o,n),i(t,2*o,2*n),i(t,2*o+1,2*n+1)}function i(e,t,o){var i=e[t];e[t]=e[o],e[o]=i}function n(e,t,o,i){var n=e-o,r=t-i;return n*n+r*r}var r=function(e){return e[0]},s=function(e){return e[1]},a=function(t,o,i,n,a){void 0===o&&(o=r),void 0===i&&(i=s),void 0===n&&(n=64),void 0===a&&(a=Float64Array),this.nodeSize=n,this.points=t;for(var l=t.length<65536?Uint16Array:Uint32Array,p=this.ids=new l(t.length),c=this.coords=new a(2*t.length),d=0;d<t.length;d++)p[d]=d,c[2*d]=o(t[d]),c[2*d+1]=i(t[d]);e(p,c,n,0,p.length-1,0)};return a.prototype.range=function(e,t,o,i){return function(e,t,o,i,n,r,s){for(var a,l,p=[0,e.length-1,0],c=[];p.length;){var d=p.pop(),h=p.pop(),u=p.pop();if(h-u<=s)for(var g=u;g<=h;g++)a=t[2*g],l=t[2*g+1],a>=o&&a<=n&&l>=i&&l<=r&&c.push(e[g]);else{var m=Math.floor((u+h)/2);a=t[2*m],l=t[2*m+1],a>=o&&a<=n&&l>=i&&l<=r&&c.push(e[m]);var f=(d+1)%2;(0===d?o<=a:i<=l)&&(p.push(u),p.push(m-1),p.push(f)),(0===d?n>=a:r>=l)&&(p.push(m+1),p.push(h),p.push(f))}}return c}(this.ids,this.coords,e,t,o,i,this.nodeSize)},a.prototype.within=function(e,t,o){return function(e,t,o,i,r,s){for(var a=[0,e.length-1,0],l=[],p=r*r;a.length;){var c=a.pop(),d=a.pop(),h=a.pop();if(d-h<=s)for(var u=h;u<=d;u++)n(t[2*u],t[2*u+1],o,i)<=p&&l.push(e[u]);else{var g=Math.floor((h+d)/2),m=t[2*g],f=t[2*g+1];n(m,f,o,i)<=p&&l.push(e[g]);var M=(c+1)%2;(0===c?o-r<=m:i-r<=f)&&(a.push(h),a.push(g-1),a.push(M)),(0===c?o+r>=m:i+r>=f)&&(a.push(g+1),a.push(d),a.push(M))}}return l}(this.ids,this.coords,e,t,o,this.nodeSize)},a}();var ce=pe.exports;const de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},he=Math.fround||(ue=new Float32Array(1),e=>(ue[0]=+e,ue[0]));var ue;class ge{constructor(e){this.options=be(Object.create(de),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:o,maxZoom:i,nodeSize:n}=this.options;t&&console.time("total time");const r=`prepare ${e.length} points`;t&&console.time(r),this.points=e;let s=[];for(let t=0;t<e.length;t++)e[t].geometry&&s.push(fe(e[t],t));this.trees[i+1]=new ce(s,Ce,Oe,n,Float32Array),t&&console.timeEnd(r);for(let e=i;e>=o;e--){const o=+Date.now();s=this._cluster(s,e),this.trees[e]=new ce(s,Ce,Oe,n,Float32Array),t&&console.log("z%d: %d clusters in %dms",e,s.length,+Date.now()-o)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let o=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let n=180===e[2]?180:((e[2]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)o=-180,n=180;else if(o>n){const e=this.getClusters([o,i,180,r],t),s=this.getClusters([-180,i,n,r],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(Se(o),ye(r),Se(n),ye(i)),l=[];for(const e of a){const t=s.points[e];l.push(t.numPoints?Me(t):this.points[t.index])}return l}getChildren(e){const t=this._getOriginId(e),o=this._getOriginZoom(e),i="No cluster with the specified id.",n=this.trees[o];if(!n)throw new Error(i);const r=n.points[t];if(!r)throw new Error(i);const s=this.options.radius/(this.options.extent*Math.pow(2,o-1)),a=n.within(r.x,r.y,s),l=[];for(const t of a){const o=n.points[t];o.parentId===e&&l.push(o.numPoints?Me(o):this.points[o.index])}if(0===l.length)throw new Error(i);return l}getLeaves(e,t,o){t=t||10,o=o||0;const i=[];return this._appendLeaves(i,e,t,o,0),i}getTile(e,t,o){const i=this.trees[this._limitZoom(e)],n=Math.pow(2,e),{extent:r,radius:s}=this.options,a=s/r,l=(o-a)/n,p=(o+1+a)/n,c={features:[]};return this._addTileFeatures(i.range((t-a)/n,l,(t+1+a)/n,p),i.points,t,o,n,c),0===t&&this._addTileFeatures(i.range(1-a/n,l,1,p),i.points,n,o,n,c),t===n-1&&this._addTileFeatures(i.range(0,l,a/n,p),i.points,-1,o,n,c),c.features.length?c:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const o=this.getChildren(e);if(t++,1!==o.length)break;e=o[0].properties.cluster_id}return t}_appendLeaves(e,t,o,i,n){const r=this.getChildren(t);for(const t of r){const r=t.properties;if(r&&r.cluster?n+r.point_count<=i?n+=r.point_count:n=this._appendLeaves(e,r.cluster_id,o,i,n):n<i?n++:e.push(t),e.length===o)break}return n}_addTileFeatures(e,t,o,i,n,r){for(const s of e){const e=t[s],a=e.numPoints;let l,p,c;if(a)l=ve(e),p=e.x,c=e.y;else{const t=this.points[e.index];l=t.properties,p=Se(t.geometry.coordinates[0]),c=ye(t.geometry.coordinates[1])}const d={type:1,geometry:[[Math.round(this.options.extent*(p*n-o)),Math.round(this.options.extent*(c*n-i))]],tags:l};let h;a?h=e.id:this.options.generateId?h=e.index:this.points[e.index].id&&(h=this.points[e.index].id),void 0!==h&&(d.id=h),r.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const o=[],{radius:i,extent:n,reduce:r,minPoints:s}=this.options,a=i/(n*Math.pow(2,t));for(let i=0;i<e.length;i++){const n=e[i];if(n.zoom<=t)continue;n.zoom=t;const l=this.trees[t+1],p=l.within(n.x,n.y,a),c=n.numPoints||1;let d=c;for(const e of p){const o=l.points[e];o.zoom>t&&(d+=o.numPoints||1)}if(d>c&&d>=s){let e=n.x*c,s=n.y*c,a=r&&c>1?this._map(n,!0):null;const h=(i<<5)+(t+1)+this.points.length;for(const o of p){const i=l.points[o];if(i.zoom<=t)continue;i.zoom=t;const p=i.numPoints||1;e+=i.x*p,s+=i.y*p,i.parentId=h,r&&(a||(a=this._map(n,!0)),r(a,this._map(i)))}n.parentId=h,o.push(me(e/d,s/d,h,d,a))}else if(o.push(n),d>1)for(const e of p){const i=l.points[e];i.zoom<=t||(i.zoom=t,o.push(i))}}return o}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?be({},e.properties):e.properties;const o=this.points[e.index].properties,i=this.options.map(o);return t&&i===o?be({},i):i}}function me(e,t,o,i,n){return{x:he(e),y:he(t),zoom:1/0,id:o,parentId:-1,numPoints:i,properties:n}}function fe(e,t){const[o,i]=e.geometry.coordinates;return{x:he(Se(o)),y:he(ye(i)),zoom:1/0,index:t,parentId:-1}}function Me(e){return{type:"Feature",id:e.id,properties:ve(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),ke(e.y)]}};var t}function ve(e){const t=e.numPoints,o=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t;return be(be({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:o})}function Se(e){return e/360+.5}function ye(e){const t=Math.sin(e*Math.PI/180),o=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return o<0?0:o>1?1:o}function ke(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function be(e,t){for(const o in t)e[o]=t[o];return e}function Ce(e){return e.x}function Oe(e){return e.y}var xe="function"==typeof WeakSet,Be=Object.keys;function ze(e,t){return e===t||e!=e&&t!=t}function we(e){return e.constructor===Object||null==e.constructor}function We(e){return!!e&&"function"==typeof e.then}function Pe(e){return!(!e||!e.$$typeof)}var Le=xe?function(){return new WeakSet}:function(){var e=[];return{add:function(t){e.push(t)},has:function(t){return-1!==e.indexOf(t)}}};function Ee(e){return function(t){var o=e||t;return function(e,t,i,n,r,s,a){void 0===a&&(a=Le());var l=!!e&&"object"==typeof e,p=!!t&&"object"==typeof t;if(l||p){var c=l&&a.has(e),d=p&&a.has(t);if(c||d)return c&&d;l&&a.add(e),p&&a.add(t)}return o(e,t,a)}}}var Ie=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function Te(e,t,o,i){var n=Be(e),r=n.length;if(Be(t).length!==r)return!1;if(r)for(var s=void 0;r-- >0;){if("_owner"===(s=n[r])){var a=Pe(e),l=Pe(t);if((a||l)&&a!==l)return!1}if(!Ie(t,s)||!o(e[s],t[s],s,s,e,t,i))return!1}return!0}var Re="function"==typeof Map,De="function"==typeof Set;function Ae(e){var t="function"==typeof e?e(o):function(e,t,i,n,r,s,a){return o(e,t,a)};function o(e,o,i){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(we(e)&&we(o))return Te(e,o,t,i);var n=Array.isArray(e),r=Array.isArray(o);return n||r?n===r&&function(e,t,o,i){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!o(e[n],t[n],n,n,e,t,i))return!1;return!0}(e,o,t,i):(n=e instanceof Date,r=o instanceof Date,n||r?n===r&&ze(e.getTime(),o.getTime()):(n=e instanceof RegExp,r=o instanceof RegExp,n||r?n===r&&function(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}(e,o):We(e)||We(o)?e===o:Re&&(n=e instanceof Map,r=o instanceof Map,n||r)?n===r&&function(e,t,o,i){var n=e.size===t.size;if(n&&e.size){var r={},s=0;e.forEach((function(a,l){if(n){var p=!1,c=0;t.forEach((function(n,d){p||r[c]||(p=o(l,d,s,c,e,t,i)&&o(a,n,l,d,e,t,i))&&(r[c]=!0),c++})),s++,n=p}}))}return n}(e,o,t,i):De&&(n=e instanceof Set,r=o instanceof Set,n||r)?n===r&&function(e,t,o,i){var n=e.size===t.size;if(n&&e.size){var r={};e.forEach((function(s,a){if(n){var l=!1,p=0;t.forEach((function(n,c){l||r[p]||(l=o(s,n,a,c,e,t,i))&&(r[p]=!0),p++})),n=l}}))}return n}(e,o,t,i):Te(e,o,t,i)))}return e!=e&&o!=o}return o}var Fe=Ae();Ae((function(){return ze})),Ae(Ee()),Ae(Ee(ze));class je{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0!==this.markers.length||this._position)return this.markers.reduce(((e,t)=>e.extend(t.getPosition())),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>e.getVisible())).length}push(e){this.markers.push(e)}delete(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}const Ue=e=>e.map((e=>new je({position:e.getPosition(),markers:[e]})));class _e extends class{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return Ue(e)}}{constructor(e){var{maxZoom:t,radius:o=60}=e,i=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(o[i[n]]=e[i[n]])}return o}(e,["maxZoom","radius"]);super({maxZoom:t}),this.superCluster=new ge(Object.assign({maxZoom:this.maxZoom,radius:o},i)),this.state={zoom:null}}calculate(e){let t=!1;if(!Fe(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const o=this.markers.map((e=>({type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}})));this.superCluster.load(o)}const o={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(t=t||!Fe(this.state,o)),this.state=o,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}transformCluster({geometry:{coordinates:[e,t]},properties:o}){if(o.cluster)return new je({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((e=>e.properties.marker)),position:new google.maps.LatLng({lat:t,lng:e})});{const e=o.marker;return new je({markers:[e],position:e.getPosition()})}}}class Ge{constructor(e,t){this.markers={sum:e.length};const o=t.map((e=>e.count)),i=o.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:i/t.length,sum:i,min:Math.min(...o),max:Math.max(...o)}}}}class Ve{render({count:e,position:t},o){const i=e>Math.max(10,o.clusters.markers.mean)?"#ff0000":"#0000ff",n=window.btoa(`\n <svg fill="${i}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>`);return new google.maps.Marker({position:t,icon:{url:`data:image/svg+xml;base64,${n}`,scaledSize:new google.maps.Size(45,45)},label:{text:String(e),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:`Cluster of ${e} markers`,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+e})}}class Ne{constructor(){!function(e,t){for(let o in t.prototype)e.prototype[o]=t.prototype[o]}(Ne,google.maps.OverlayView)}}var Ze;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(Ze||(Ze={}));const He=(e,t,o)=>{o.fitBounds(t.bounds)};class $e extends Ne{constructor({map:e,markers:t=[],algorithm:o=new _e({}),renderer:i=new Ve,onClusterClick:n=He}){super(),this.markers=[...t],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=n,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const o=this.markers.indexOf(e);return-1!==o&&(e.setMap(null),this.markers.splice(o,1),t||this.render(),!0)}removeMarkers(e,t){let o=!1;return e.forEach((e=>{o=this.removeMarker(e,!0)||o})),o&&!t&&this.render(),o}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,Ze.CLUSTERING_BEGIN,this);const{clusters:t,changed:o}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});(o||null==o)&&(this.reset(),this.clusters=t,this.renderClusters()),google.maps.event.trigger(this,Ze.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>e.setMap(null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new Ge(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((o=>{1===o.markers.length?o.marker=o.markers[0]:(o.marker=this.renderer.render(o,e),this.onClusterClick&&o.marker.addListener("click",(e=>{google.maps.event.trigger(this,Ze.CLUSTER_CLICK,o),this.onClusterClick(e,o,t)}))),o.marker.setMap(t)}))}}(0,i.memo)((function({children:e,options:t}){const o=(e=>{const t=function(){m(!!i.useContext,"useGoogleMap is React hook and requires React version 16.8+");const e=(0,i.useContext)(f);return m(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),[o,n]=(0,i.useState)(null);return(0,i.useEffect)((()=>{if(t&&null===o){const o=new $e(Object.assign(Object.assign({},e),{map:t}));n(o)}}),[t]),o})(t);return null!==o?e(o):null}));const Ke={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Ye={options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},zIndex(e,t){e.setZIndex(t)}};class qe extends i.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(e,t)=>{t?e.open(this.context,t):e.getPosition()?e.open(this.context):m(!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 e=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=S({updaterMap:Ye,eventMap:Ke,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({infoWindow:e})),this.setInfoWindowCallback)}componentDidUpdate(e){null!==this.state.infoWindow&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:Ye,eventMap:Ke,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(v(this.registeredEvents),this.state.infoWindow.close())}render(){return this.containerElement?r.createPortal(i.Children.only(this.props.children),this.containerElement):null}}qe.contextType=f;const Xe={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Je={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},visible(e,t){e.setVisible(t)}};class Qe extends i.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 e=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:Je,eventMap:Xe,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)}componentDidUpdate(e){null!==this.state.polyline&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:Je,eventMap:Xe,prevProps:e,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),v(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}}Qe.contextType=f;const et={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},tt={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},paths(e,t){e.setPaths(t)},visible(e,t){e.setVisible(t)}};class ot extends i.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 e=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:tt,eventMap:et,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)}componentDidUpdate(e){null!==this.state.polygon&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:tt,eventMap:et,prevProps:e,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),v(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}}ot.contextType=f;const it={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"},nt={bounds(e,t){e.setBounds(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},visible(e,t){e.setVisible(t)}};class rt extends i.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 e=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:nt,eventMap:it,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)}componentDidUpdate(e){null!==this.state.rectangle&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:nt,eventMap:it,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),v(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}}rt.contextType=f;const st={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"},at={center(e,t){e.setCenter(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},radius(e,t){e.setRadius(t)},visible(e,t){e.setVisible(t)}};class lt extends i.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 e=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:at,eventMap:st,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)}componentDidUpdate(e){null!==this.state.circle&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:at,eventMap:st,prevProps:e,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),v(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return null}}lt.contextType=f;const pt={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},ct={add(e,t){e.add(t)},addgeojson(e,t,o){e.addGeoJson(t,o)},contains(e,t){e.contains(t)},foreach(e,t){e.forEach(t)},loadgeojson(e,t,o,i){e.loadGeoJson(t,o,i)},overridestyle(e,t,o){e.overrideStyle(t,o)},remove(e,t){e.remove(t)},revertstyle(e,t){e.revertStyle(t)},controlposition(e,t){e.setControlPosition(t)},controls(e,t){e.setControls(t)},drawingmode(e,t){e.setDrawingMode(t)},map(e,t){e.setMap(t)},style(e,t){e.setStyle(t)},togeojson(e,t){e.toGeoJson(t)}};class dt extends i.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 e=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=S({updaterMap:ct,eventMap:pt,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({data:e})),this.setDataCallback)}componentDidUpdate(e){null!==this.state.data&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:ct,eventMap:pt,prevProps:e,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),v(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}dt.contextType=f;const ht={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},ut={options(e,t){e.setOptions(t)},url(e,t){e.setUrl(t)},zIndex(e,t){e.setZIndex(t)}};class gt extends i.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 e=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=S({updaterMap:ut,eventMap:ht,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)}componentDidUpdate(e){null!==this.state.kmlLayer&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:ut,eventMap:ht,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),v(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}function mt(e,t){return new t(e.lat,e.lng)}function ft(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function Mt(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function vt(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}gt.contextType=f;class St extends i.PureComponent{constructor(e){super(e),this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{const e=this.props.mapPaneName,t=this.overlayView.getPanes();m(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?this.setState({paneEl:t[e]}):this.setState({paneEl:null})},this.onAdd=()=>{var e,t;this.updatePane(),null===(t=(e=this.props).onLoad)||void 0===t||t.call(e,this.overlayView)},this.onPositionElement=()=>{var e,t;const o=(a=this.overlayView.getProjection(),l=Object.assign({x:0,y:0},this.containerRef.current?(e=this.containerRef.current,"function"==typeof(t=this.props.getPixelPositionOffset)?t(e.offsetWidth,e.offsetHeight):{}):{}),p=this.props.bounds,c=this.props.position,void 0!==p?function(e,t,o){const i=e&&e.fromLatLngToDivPixel(o.getNorthEast()),n=e&&e.fromLatLngToDivPixel(o.getSouthWest());return i&&n?{left:`${n.x+t.x}px`,top:`${i.y+t.y}px`,width:i.x-n.x-t.x+"px",height:n.y-i.y-t.y+"px"}:{left:"-9999px",top:"-9999px"}}(a,l,(d=p)instanceof(h=google.maps.LatLngBounds)?d:ft(d,h)):function(e,t,o){const i=e&&e.fromLatLngToDivPixel(o);if(i){const{x:e,y:o}=i;return{left:`${e+t.x}px`,top:`${o+t.y}px`}}return{left:"-9999px",top:"-9999px"}}(a,l,function(e,t,o){return e instanceof t?e:o(e,t)}(c,google.maps.LatLng,mt))),{left:i,top:n,width:r,height:s}=this.state.containerStyle;var a,l,p,c,d,h,u,g;g={left:i,top:n,width:r,height:s},((u=o).left!==g.left||u.top!==g.top||u.width!==g.height||u.height!==g.height)&&this.setState({containerStyle:Object.assign(Object.assign({},o),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var e,t;this.setState((()=>({paneEl:null}))),null===(t=(e=this.props).onUnmount)||void 0===t||t.call(e,this.overlayView)},this.containerRef=i.createRef();const t=new google.maps.OverlayView;t.onAdd=this.onAdd,t.draw=this.draw,t.onRemove=this.onRemove,this.overlayView=t}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(e){const t=Mt(e.position),o=Mt(this.props.position),i=vt(e.bounds),n=vt(this.props.bounds);t===o&&i===n||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){const e=this.state.paneEl;return e?r.createPortal(s.exports.jsx("div",Object.assign({ref:this.containerRef,style:this.state.containerStyle},{children:i.Children.only(this.props.children)})),e):null}}St.FLOAT_PANE="floatPane",St.MAP_PANE="mapPane",St.MARKER_LAYER="markerLayer",St.OVERLAY_LAYER="overlayLayer",St.OVERLAY_MOUSE_TARGET="overlayMouseTarget",St.contextType=f;const yt={onDblClick:"dblclick",onClick:"click"},kt={opacity(e,t){e.setOpacity(t)}};class bt extends i.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(){m(!!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 e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=S({updaterMap:kt,eventMap:yt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)}componentDidUpdate(e){null!==this.state.groundOverlay&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:kt,eventMap:yt,prevProps:e,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}}bt.defaultProps={onLoad:function(){}},bt.contextType=f;const Ct={},Ot={data(e,t){e.setData(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)}};class xt extends i.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(){m(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),m(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);const e=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=S({updaterMap:Ot,eventMap:Ct,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)}componentDidUpdate(e){v(this.registeredEvents),this.registeredEvents=S({updaterMap:Ot,eventMap:Ct,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),v(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}xt.contextType=f;const Bt={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},zt={register(e,t,o){e.registerPanoProvider(t,o)},links(e,t){e.setLinks(t)},motionTracking(e,t){e.setMotionTracking(t)},options(e,t){e.setOptions(t)},pano(e,t){e.setPano(t)},position(e,t){e.setPosition(t)},pov(e,t){e.setPov(t)},visible(e,t){e.setVisible(t)},zoom(e,t){e.setZoom(t)}};class wt extends i.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 e=this.context.getStreetView();this.registeredEvents=S({updaterMap:zt,eventMap:Bt,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({streetViewPanorama:e})),this.setStreetViewPanoramaCallback)}componentDidUpdate(e){null!==this.state.streetViewPanorama&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:zt,eventMap:Bt,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),v(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}wt.contextType=f;class Wt extends i.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 e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}Wt.contextType=f,i.PureComponent;const Pt={onDirectionsChanged:"directions_changed"},Lt={directions(e,t){e.setDirections(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},panel(e,t){e.setPanel(t)},routeIndex(e,t){e.setRouteIndex(t)}};class Et extends i.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 e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=S({updaterMap:Lt,eventMap:Pt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)}componentDidUpdate(e){null!==this.state.directionsRenderer&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:Lt,eventMap:Pt,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),v(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return s.exports.jsx(s.exports.Fragment,{})}}Et.contextType=f,i.PureComponent;const It={onPlacesChanged:"places_changed"},Tt={bounds(e,t){e.setBounds(t)}};class Rt extends i.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=(0,i.createRef)(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(m(!!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 e=this.containerElement.current.querySelector("input");if(null!==e){const t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=S({updaterMap:Tt,eventMap:It,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}}componentDidUpdate(e){null!==this.state.searchBox&&(v(this.registeredEvents),this.registeredEvents=S({updaterMap:Tt,eventMap:It,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),v(this.registeredEvents))}render(){return s.exports.jsx("div",Object.assign({ref:this.containerElement},{children:i.Children.only(this.props.children)}))}}Rt.contextType=f;const Dt={onPlaceChanged:"place_changed"},At={bounds(e,t){e.setBounds(t)},restrictions(e,t){e.setComponentRestrictions(t)},fields(e,t){e.setFields(t)},options(e,t){e.setOptions(t)},types(e,t){e.setTypes(t)}};class Ft extends i.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=(0,i.createRef)(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){m(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);const e=this.containerElement.current.querySelector("input");if(e){const t=new google.maps.places.Autocomplete(e,this.props.options);this.registeredEvents=S({updaterMap:At,eventMap:Dt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{autocomplete:t}}),this.setAutocompleteCallback)}}componentDidUpdate(e){v(this.registeredEvents),this.registeredEvents=S({updaterMap:At,eventMap:Dt,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&v(this.registeredEvents)}render(){return s.exports.jsx("div",Object.assign({ref:this.containerElement,className:this.props.className||""},{children:i.Children.only(this.props.children)}))}}Ft.contextType=f},70347:(e,t,o)=>{"use strict";o.d(t,{ZP:()=>C}),o(22220);var i=o(7560),n=(o(51068),o(11720)),r=o(51119),s=o(64659),a=o(4730),l=(o(38111),o(96474)),p=o(50591),c=o(75630),d=o(24328),h=o.n(d),u=(o(27377),o(75047),o(58921),o(92391)),g=o(54573),m=(o(78951),o(19976),o(61950),o(64486));function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var M,v,S,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,o=String(e).toLowerCase(),i=String(t.value).toLowerCase(),n=String(t.label).toLowerCase();return i===o||n===o},k=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){(0,r.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,o){return!(!e||t.some((function(t){return y(e,t)}))||o.some((function(t){return y(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),b=(M=g.S,S=v=function(e){(0,l.Z)(d,e);var t,o,r=(t=d,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,i=(0,c.Z)(t);if(o){var n=(0,c.Z)(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return(0,p.Z)(this,e)});function d(e){var t;(0,s.Z)(this,d),(t=r.call(this,e)).select=void 0,t.onChange=function(e,o){var i=t.props,r=i.getNewOptionData,s=i.inputValue,a=i.isMulti,l=i.onChange,p=i.onCreateOption,c=i.value,d=i.name;if("select-option"!==o.action)return l(e,o);var h=t.state.newOption,g=Array.isArray(e)?e:[e];if(g[g.length-1]!==h)l(e,o);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)(c)),[m]):m,f)}};var o=e.options||[];return t.state={newOption:void 0,options:o},t}return(0,a.Z)(d,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,o=e.createOptionPosition,i=e.formatCreateLabel,r=e.getNewOptionData,s=e.inputValue,a=e.isLoading,l=e.isValidNewOption,p=e.value,c=e.options||[],d=this.state.newOption;d=l(s,(0,u.C)(p),c)?r(s,i(s)):void 0,this.setState({newOption:d,options:!t&&a||!d?c:"first"===o?[d].concat((0,n.Z)(c)):[].concat((0,n.Z)(c),[d])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var e=this,t=this.state.options;return h().createElement(M,(0,i.Z)({},this.props,{ref:function(t){e.select=t},options:t,onChange:this.onChange}))}}]),d}(d.Component),v.defaultProps=k,S);const C=(0,m.m)(b)},31396:(e,t,o)=>{"use strict";o.d(t,{Z:()=>W});var i=o(24328),n=o.n(i),r=o(13980),s=o.n(r),a=o(25473),l=o.n(a),p=o(46847);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t,o){return t&&d(e.prototype,t),o&&d(e,o),e}function u(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){u(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}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(e){return!1}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?y(e):t}function b(e){return function(){var t,o=M(e);if(S()){var i=M(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return k(this,t)}}var C=function(e){f(o,e);var t=b(o);function o(){return c(this,o),t.apply(this,arguments)}return h(o,[{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,i=e.split,r=e.style,s=e.size,a=e.eleRef,l=["Pane",i,o],p={flex:1,position:"relative",outline:"none"};return void 0!==s&&("vertical"===i?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},t)}}]),o}(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(e){f(o,e);var t=b(o);function o(){return c(this,o),t.apply(this,arguments)}return h(o,[{key:"render",value:function(){var e=this.props,t=e.className,o=e.onClick,i=e.onDoubleClick,r=e.onMouseDown,s=e.onTouchEnd,a=e.onTouchStart,l=e.resizerClassName,p=e.split,c=e.style,d=[l,p,t];return n().createElement("span",{role:"presentation",className:d.join(" "),style:c,onMouseDown:function(e){return r(e)},onTouchStart:function(e){e.preventDefault(),a(e)},onTouchEnd:function(e){e.preventDefault(),s(e)},onClick:function(e){o&&(e.preventDefault(),o(e))},onDoubleClick:function(e){i&&(e.preventDefault(),i(e))}})}}]),o}(n().Component);function B(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function z(e,t,o,i){if("number"==typeof i){var n="number"==typeof t?t:0,r="number"==typeof o&&o>=0?o:1/0;return Math.max(n,Math.min(r,i))}return void 0!==e?e:t}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(e){f(o,e);var t=b(o);function o(e){var i;c(this,o),(i=t.call(this,e)).onMouseDown=i.onMouseDown.bind(y(i)),i.onTouchStart=i.onTouchStart.bind(y(i)),i.onMouseMove=i.onMouseMove.bind(y(i)),i.onTouchMove=i.onTouchMove.bind(y(i)),i.onMouseUp=i.onMouseUp.bind(y(i));var n=e.size,r=e.defaultSize,s=e.minSize,a=e.maxSize,l=e.primary,p=void 0!==n?n:z(r,s,a,null);return i.state={active:!1,resized:!1,pane1Size:"first"===l?p:void 0,pane2Size:"second"===l?p:void 0,instanceProps:{size:n}},i}return h(o,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(o.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(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,o=t.allowResize,i=t.onDragStarted,n=t.split;if(o){B(document,window);var r="vertical"===n?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof i&&i(),this.setState({active:!0,position:r})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,o=t.allowResize,i=t.maxSize,n=t.minSize,r=t.onChange,s=t.split,a=t.step,l=this.state,p=l.active,c=l.position;if(o&&p){B(document,window);var d="first"===this.props.primary,h=d?this.pane1:this.pane2,g=d?this.pane2:this.pane1;if(h){var m=h,f=g;if(m.getBoundingClientRect){var M=m.getBoundingClientRect().width,v=m.getBoundingClientRect().height,S="vertical"===s?M:v,y=c-("vertical"===s?e.touches[0].clientX:e.touches[0].clientY);if(a){if(Math.abs(y)<a)return;y=~~(y/a)*a}var k=d?y:-y;parseInt(window.getComputedStyle(m).order)>parseInt(window.getComputedStyle(f).order)&&(k=-k);var b=i;if(void 0!==i&&i<=0){var C=this.splitPane;b="vertical"===s?C.getBoundingClientRect().width+i:C.getBoundingClientRect().height+i}var O=S-k,x=c-y;O<n?O=n:void 0!==i&&O>b?O=b:this.setState({position:x,resized:!0}),r&&r(O),this.setState(u({draggedSize:O},d?"pane1Size":"pane2Size",O))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,o=e.onDragFinished,i=this.state,n=i.active,r=i.draggedSize;t&&n&&("function"==typeof o&&o(r),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,o=t.allowResize,i=t.children,r=t.className,s=t.onResizerClick,a=t.onResizerDoubleClick,l=t.paneClassName,p=t.pane1ClassName,c=t.pane2ClassName,d=t.paneStyle,h=t.pane1Style,u=t.pane2Style,g=t.resizerClassName,f=t.resizerStyle,M=t.split,v=t.style,S=this.state,y=S.pane1Size,k=S.pane2Size,b=o?"":"disabled",B=g?"".concat(g," ").concat(O):g,z=function(e){return n().Children.toArray(e).filter((function(e){return e}))}(i),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,b],P=m({},d,{},h),L=m({},d,{},u),E=["Pane1",l,p].join(" "),I=["Pane2",l,c].join(" ");return n().createElement("div",{className:W.join(" "),ref:function(t){e.splitPane=t},style:w},n().createElement(C,{className:E,key:"pane1",eleRef:function(t){e.pane1=t},size:y,split:M,style:P},z[0]),n().createElement(x,{className:b,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:I,key:"pane2",eleRef:function(t){e.pane2=t},size:k,split:M,style:L},z[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return o.getSizeUpdate(e,t)}},{key:"getSizeUpdate",value:function(e,t){var o={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var i=void 0!==e.size?e.size:z(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(o.draggedSize=i);var n="first"===e.primary;return o[n?"pane1Size":"pane2Size"]=i,o[n?"pane2Size":"pane1Size"]=void 0,o.instanceProps={size:e.size},o}}]),o}(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:e=>{e.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:(e,t,o)=>{var i=o(2787),n=o(13980);e.exports=function(e,t,o){var n=e[t];if(n){var r=[];if(Object.keys(n).forEach((function(e){-1===i.indexOf(e)&&r.push(e)})),r.length)throw new Error("Prop "+t+" passed to "+o+". Has invalid keys "+r.join(", "))}},e.exports.isRequired=function(t,o,i){if(!t[o])throw new Error("Prop "+o+" passed to "+i+" is required");return e.exports(t,o,i)},e.exports.supportingArrays=n.oneOfType([n.arrayOf(e.exports),e.exports])}}]);
package/2474.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[2474],{89998:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"}},54053:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a.Z});var a=r(43434)},41262:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(7560),n=r(54530),o=r(24328),i=(r(13980),r(6277)),l=r(15459),s=r(14498),c=o.forwardRef((function(e,t){var r=e.children,l=e.classes,c=e.className,p=e.invisible,u=void 0!==p&&p,d=e.open,m=e.transitionDuration,f=e.TransitionComponent,y=void 0===f?s.Z:f,b=(0,n.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(y,(0,a.Z)({in:d,timeout:m},b),o.createElement("div",{className:(0,i.Z)(l.root,c,u&&l.invisible),"aria-hidden":!0,ref:t},r))}));const p=(0,l.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(c)},1585:(e,t,r)=>{r.d(t,{Z:()=>u});var a=r(54530),n=r(7560),o=r(24328),i=(r(13980),r(6277)),l=r(15459),s=r(57074),c=r(97580),p=o.forwardRef((function(e,t){var r=e.children,l=e.classes,p=e.className,u=e.color,d=void 0===u?"default":u,m=e.component,f=void 0===m?"button":m,y=e.disabled,b=void 0!==y&&y,E=e.disableFocusRipple,g=void 0!==E&&E,h=e.focusVisibleClassName,T=e.size,v=void 0===T?"large":T,x=e.variant,S=void 0===x?"round":x,O=(0,a.Z)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return o.createElement(s.Z,(0,n.Z)({className:(0,i.Z)(l.root,p,"round"!==S&&l.extended,"large"!==v&&l["size".concat((0,c.Z)(v))],b&&l.disabled,{primary:l.primary,secondary:l.secondary,inherit:l.colorInherit}[d]),component:f,disabled:b,focusRipple:!g,focusVisibleClassName:(0,i.Z)(l.focusVisible,h),ref:t},O),o.createElement("span",{className:l.label},r))}));const u=(0,l.Z)((function(e){return{root:(0,n.Z)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(p)},14498:(e,t,r)=>{r.d(t,{Z:()=>f});var a=r(7560),n=r(85354),o=r(54530),i=r(24328),l=(r(13980),r(75614)),s=r(39265),c=r(60364),p=r(41070),u=r(85974),d={entering:{opacity:1},entered:{opacity:1}},m={enter:s.x9.enteringScreen,exit:s.x9.leavingScreen};const f=i.forwardRef((function(e,t){var r=e.children,s=e.disableStrictModeCompat,f=void 0!==s&&s,y=e.in,b=e.onEnter,E=e.onEntered,g=e.onEntering,h=e.onExit,T=e.onExited,v=e.onExiting,x=e.style,S=e.TransitionComponent,O=void 0===S?l.ZP:S,R=e.timeout,_=void 0===R?m:R,C=(0,o.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),A=(0,c.Z)(),I=A.unstable_strictMode&&!f,P=i.useRef(null),w=(0,u.Z)(r.ref,t),N=(0,u.Z)(I?P:void 0,w),L=function(e){return function(t,r){if(e){var a=I?[P.current,t]:[t,r],o=(0,n.Z)(a,2),i=o[0],l=o[1];void 0===l?e(i):e(i,l)}}},k=L(g),U=L((function(e,t){(0,p.n)(e);var r=(0,p.C)({style:x,timeout:_},{mode:"enter"});e.style.webkitTransition=A.transitions.create("opacity",r),e.style.transition=A.transitions.create("opacity",r),b&&b(e,t)})),j=L(E),Z=L(v),D=L((function(e){var t=(0,p.C)({style:x,timeout:_},{mode:"exit"});e.style.webkitTransition=A.transitions.create("opacity",t),e.style.transition=A.transitions.create("opacity",t),h&&h(e)})),H=L(T);return i.createElement(O,(0,a.Z)({appear:!0,in:y,nodeRef:I?P:void 0,onEnter:U,onEntered:j,onEntering:k,onExit:D,onExited:H,onExiting:Z,timeout:_},C),(function(e,t){return i.cloneElement(r,(0,a.Z)({style:(0,a.Z)({opacity:0,visibility:"exited"!==e||y?void 0:"hidden"},d[e],x,r.props.style),ref:N},t))}))}))},50581:(e,t,r)=>{r.d(t,{Z:()=>u});var a=r(7560),n=r(54530),o=r(24328),i=(r(13980),r(6277)),l=r(90436),s=r(15459),c=r(46163),p=o.forwardRef((function(e,t){var r=e.children,s=e.classes,p=e.className,u=e.component,d=void 0===u?"div":u,m=e.disablePointerEvents,f=void 0!==m&&m,y=e.disableTypography,b=void 0!==y&&y,E=e.position,g=e.variant,h=(0,n.Z)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),T=(0,c.Y)()||{},v=g;return g&&T.variant,T&&!v&&(v=T.variant),o.createElement(c.Z.Provider,{value:null},o.createElement(d,(0,a.Z)({className:(0,i.Z)(s.root,p,f&&s.disablePointerEvents,T.hiddenLabel&&s.hiddenLabel,"filled"===v&&s.filled,{start:s.positionStart,end:s.positionEnd}[E],"dense"===T.margin&&s.marginDense),ref:t},h),"string"!=typeof r||b?r:o.createElement(l.Z,{color:"textSecondary"},r)))}));const u=(0,s.Z)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(p)},6782:(e,t,r)=>{t.Z=function(e){if("string"!=typeof e)throw new Error((0,a.formatMuiErrorMessage)(7));return e.charAt(0).toUpperCase()+e.slice(1)};var a=r(65144)},65549:(e,t,r)=>{var a=r(14859);t.Z=void 0;var n=a(r(24328)),o=(0,a(r(50175)).default)(n.default.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=o},77224:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(24328)),o=(0,a(r(50175)).default)(n.default.createElement("path",{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"}),"Business");t.default=o},61932:(e,t,r)=>{var a=r(14859);t.Z=void 0;var n=a(r(24328)),o=(0,a(r(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");t.Z=o},27291:(e,t,r)=>{var a=r(14859);t.Z=void 0;var n=a(r(24328)),o=(0,a(r(50175)).default)(n.default.createElement("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=o},38016:(e,t,r)=>{var a=r(14859);t.Z=void 0;var n=a(r(24328)),o=(0,a(r(50175)).default)(n.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=o},43054:(e,t,r)=>{var a=r(14859);t.Z=void 0;var n=a(r(24328)),o=(0,a(r(50175)).default)(n.default.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=o},21853:(e,t,r)=>{var a=r(14859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(24328)),o=(0,a(r(50175)).default)(n.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=o},45767:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(24328),n=r.n(a),o=r(7560),i=r(72379);const l=(s=n().createElement("path",{d:"M7 10l5 5 5-5z"}),(c=n().memo(n().forwardRef((function(e,t){return n().createElement(i.Z,(0,o.Z)({ref:t},e),s)})))).muiName=i.Z.muiName,c);var s,c},85596:(e,t,r)=>{r.d(t,{Z:()=>m});var a=r(24328),n=r.n(a),o=r(13980),i=r.n(o),l=r(8513),s=r(17440),c=r(64651),p=r(65629);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},u.apply(this,arguments)}const d=e=>{let{relation:t={},inRelationTypes:r=[],outRelationTypes:o=[],onChange:i=s.identity,applyFirstByDefault:l=!1,reversedContextLabels:d=!1}=e,m=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["relation","inRelationTypes","outRelationTypes","onChange","applyFirstByDefault","reversedContextLabels"]);const{getRelationTypesOptions:f,fromEditorValue:y,toEditorValue:b}=(0,c.n)({reversedContextLabels:d}),E=(0,a.useMemo)((()=>f(r,o)),[f,r,o]),g=(0,a.useCallback)((0,s.pipe)(y(r,o),i),[y,r,o,i]);return(0,a.useEffect)((()=>{l&&E.length&&g(E[0])}),[E,l,g]),n().createElement(p.Z,u({value:b(t,E),options:E,onChange:g},m))};d.propTypes={className:i().string,relation:l.bNA,inRelationTypes:i().arrayOf(l.IYE),outRelationTypes:i().arrayOf(l.IYE),applyFirstByDefault:i().bool,reversedContextLabels:i().bool,onChange:i().func};const m=d},65629:(e,t,r)=>{r.d(t,{Z:()=>R});var a=r(24328),n=r.n(a),o=r(13980),i=r.n(o),l=r(87918),s=r.n(l),c=r(17440),p=r(71153),u=r.n(p),d=r(12231),m=r(90436);const f=(0,r(79692).Z)({container:{display:"flex",alignItems:"center",height:"32px",minHeight:"32px",padding:0},text:{display:"flex",width:"calc(100% - 68px)"},textItem:{fontSize:"13px",lineHeight:"15px",marginRight:10},primaryTextItem:{flex:"1 0",flexBasis:0,maxWidth:"50%",overflow:"hidden",textOverflow:"ellipsis"},secondaryTextItem:{flex:"1 0",flexBasis:0,overflow:"hidden",textOverflow:"ellipsis"},icons:{transform:"scale(0.5)",position:"relative",flexShrink:0,width:"68px",bottom:"10px"},iconTop:{position:"absolute",top:0,left:0,zIndex:1},iconBottom:{position:"absolute",top:0,left:26,zIndex:0}});var y=r(42662),b=r(83088);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},E.apply(this,arguments)}const g=e=>{let{innerRef:t,innerProps:r,selectOption:a,data:o}=e;const i=f(),{value:l,label:s,startObject:c,endObject:p}=o,g=c.objectType.label+" ↔ "+p.objectType.label;return n().createElement(d.Z,E({className:i.container,ref:t,key:l,onClick:()=>a({label:s,value:l,startObject:c,endObject:p})},r),n().createElement("div",{className:i.icons},n().createElement(y.Z,{className:i.iconTop,entityType:c.objectType}),n().createElement(y.Z,{className:i.iconBottom,entityType:p.objectType})),n().createElement("div",{className:i.text},n().createElement(b.C,{value:s},n().createElement(m.Z,{className:u()(i.textItem,i.primaryTextItem)},s)),n().createElement(b.C,{value:g},n().createElement(m.Z,{color:"textSecondary",className:u()(i.textItem,i.secondaryTextItem)},g))))};g.propTypes={innerRef:i().oneOfType([i().oneOf([null]),i().func,i().shape({current:i().any.isRequired})]),innerProps:i().object.isRequired,selectOption:i().func.isRequired,data:i().shape({value:i().string.isRequired,label:i().string.isRequired,startObject:i().object,endObject:i().object})};const h=g;var T=r(84425);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},v.apply(this,arguments)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=e=>{let{value:t={},options:r=[],onChange:o=c.identity,TextFieldProps:i}=e,l=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["value","options","onChange","TextFieldProps"]);const p=(0,a.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){x(e,t,r[t])}))}return e}({},(0,c.defaultTo)({},i),{"data-reltio-id":"relation-type-selector"})),[i]);return n().createElement(T.Z,v({value:t,options:r,onChange:o,label:s().text("Select relationship type "),components:{Option:h},TextFieldProps:p},l))},O=i().shape({label:i().string.isRequired,value:i().string.isRequired,startObject:i().object,endObject:i().object});S.propTypes={value:O,options:i().arrayOf(O),onChange:i().func};const R=S},64651:(e,t,r)=>{r.d(t,{n:()=>i});var a=r(24328),n=r(8513),o=r(17440);const i=e=>{let{reversedContextLabels:t}=e;return{getRelationTypesOptions:(0,a.useCallback)(((e,r)=>{const a={},i=(0,o.pipe)(n.PjQ,(0,o.tap)((e=>a[e]=(0,o.propOr)(0,e,a)+1))),l=(0,o.ascend)((0,o.prop)("label")),s=(0,o.curry)(((e,r)=>{let{uri:a,label:o,startObject:l,endObject:s}=r;const c=e===(t?n.Nsj.OUT:n.Nsj.IN)?l:s;return{label:{directionalLabel:i(c),typeLabel:o},value:`${a},${e}`,startObject:l,endObject:s}}));return e.map(s(n.Nsj.IN)).concat(r.map(s(n.Nsj.OUT))).map((0,o.evolve)({label:e=>{let{directionalLabel:t,typeLabel:r}=e;return t?a[t]>1?`${t} (${r})`:t:r}})).sort(l)}),[t]),fromEditorValue:(0,a.useCallback)(((e,t)=>r=>{const[a,i]=r.value.split(",");return{type:(i===n.Nsj.IN?e:t).find((0,o.propEq)("uri",a)),direction:i}}),[]),toEditorValue:(0,a.useCallback)(((e,t)=>t.find((0,o.propEq)("value",`${e.relationType},${e.direction}`))),[])}}},50163:(e,t,r)=>{r.r(t),r.d(t,{RelationshipSearchView:()=>Dn,actions:()=>Hn,constants:()=>zn});var a={};r.r(a),r.d(a,{actions:()=>jn,constants:()=>v,default:()=>Zn,parseSearchState:()=>Nn.Z,selectors:()=>Un});var n=r(24328),o=r.n(n),i=r(52730),l=r(13980),s=r.n(l),c=r(36138),p=r(22664),u=r(8598),d=r(44443),m=r(79573),f=r(12212),y=r(97333),b=r(71153),E=r.n(b),g=r(58697),h=r.n(g),T=r(17640);const v={ADD_GROUPS_BLOCK:"RELATION_SEARCH_ADD_GROUPS_BLOCK",DELETE_GROUPS_BLOCK:"RELATION_SEARCH_DELETE_GROUPS_BLOCK",SET_GROUP_ENTITY_TYPE:"RELATION_SEARCH_SET_GROUP_ENTITY_TYPE",SET_GROUP_RELATION_TYPE_INFO:"RELATION_SEARCH_SET_GROUP_RELATION_TYPE_INFO",SET_GROUP_RELATION_FILTER:"RELATION_SEARCH_SET_GROUP_RELATION_FILTER",ADD_ATTRIBUTE_AFTER:"RELATION_SEARCH_ADD_ATTRIBUTE_AFTER",CHANGE_ATTRIBUTE_DATA:"RELATION_SEARCH_CHANGE_ATTRIBUTE_DATA",TOGGLE_ATTRIBUTE_SELECT:"RELATION_SEARCH_TOGGLE_ATTRIBUTE_SELECT",SET_ATTRIBUTE_OPERATOR:"RELATION_SEARCH_SET_ATTRIBUTE_OPERATOR",DELETE_ATTRIBUTE:"RELATION_SEARCH_DELETE_ATTRIBUTE",DUPLICATE_ATTRIBUTE:"RELATION_SEARCH_DUPLICATE_ATTRIBUTE",SET_FILTER:"RELATION_SEARCH_SET_FILTER",SET_VALUES:"RELATION_SEARCH_SET_VALUES",CLEAR:"RELATION_SEARCH_CLEAR",RUN_SEARCH:"RELATION_SEARCH_RUN_SEARCH",CHANGE_PAGE:"RELATION_SEARCH_CHANGE_PAGE",CHANGE_ROWS_PER_PAGE:"RELATION_SEARCH_CHANGE_ROWS_PER_PAGE",SET_ENTITIES:"RELATION_SEARCH_SET_ENTITIES",SET_TOTAL:"RELATION_SEARCH_SET_TOTAL",UPDATE_CURRENT_ENTITIES:"RELATION_SEARCH_UPDATE_CURRENT_ENTITIES",SAVE_STATE:"RELATION_SEARCH_SAVE_STATE",UPDATE_STATE:"RELATION_SEARCH_UPDATE_STATE",EXPORT_RESULTS:"RELATION_SEARCH_EXPORT_RESULTS"},x="RELATION_SEARCH_UI_SET_LOADING_ENTITY",S="RELATION_SEARCH_UI_SET_LOADING_TOTAL",O="RELATION_SEARCH_UI_SET_CONFIG",R="RELATION_SEARCH_UI_SET_SEARCH_RESULTS_VIEW_MODE",_="RELATION_SEARCH_UI_SET_SEARCH_RESULTS_COLUMNS",C="RELATION_SEARCH_UI_SET_SHOW_SEARCH_RESULTS";var A=r(17440),I=r(87918),P=r.n(I);const w={EXISTS:"exists",NOT_EXISTS:"not"},N={[w.EXISTS]:P().text("Exists"),[w.NOT_EXISTS]:P().text("Missing")},L="table",k="list",U=[25,50,100],j="entityTypeUri",Z="relationTypeUri",D="direction",H="attributes",z="filter",G=e=>{let{relationTypeUri:t,direction:r,id:a}=e;return{[H]:[],[Z]:t,[D]:r,[z]:w.EXISTS,id:(0,A.when)((0,A.pipe)((0,A.startsWith)("relation-"),A.not),(0,A.concat)("relation-"))(a)}},B=e=>{let{entityTypeUri:t,id:r}=e;return{[H]:[],[j]:t,id:(0,A.when)((0,A.pipe)((0,A.startsWith)("entity-"),A.not),(0,A.concat)("entity-"))(r)}},M=function(){let{entityTypeUri:e,relationTypeUri:t,direction:r,id:a=h()()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:h()()};return{id:a,entity:B({entityTypeUri:e,id:a}),relation:G({relationTypeUri:t,direction:r,id:a}),children:[]}},F=(0,A.omit)(["id"],G({id:""})),V=(0,A.pipe)((0,A.omit)(["id"]),(0,A.equals)(F)),Y=(0,A.omit)(["id"],B({id:""})),W=(0,A.pipe)((0,A.omit)(["id"]),(0,A.equals)(Y)),{getAttributeData:X,getAttributeObject:q,getEmptyAttributeObject:$}=T,K=(e,t,r,a)=>({type:v.ADD_GROUPS_BLOCK,payload:{block:M({entityTypeUri:t,relationTypeUri:r,direction:a}),parentBlockId:e}}),Q=(e,t)=>({type:v.ADD_ATTRIBUTE_AFTER,payload:{groupId:e,attributeId:t,attribute:$()}}),J=(e,t,r)=>({type:v.ADD_ATTRIBUTE_AFTER,payload:{groupId:e,attributeId:t,attribute:q(r)}}),ee=(e,t,r)=>({type:v.CHANGE_ATTRIBUTE_DATA,payload:{groupId:e,attributeId:t,attributeData:X(r)}}),te=(e,t)=>({type:v.CHANGE_ATTRIBUTE_DATA,payload:{groupId:e,attributeId:t,attributeData:null}}),re=(e,t,r)=>({type:v.TOGGLE_ATTRIBUTE_SELECT,payload:{groupId:e,attributeId:t,selectInfo:r}}),ae=(e,t,r)=>({type:v.SET_ATTRIBUTE_OPERATOR,payload:{groupId:e,attributeId:t,operator:r}}),ne=(e,t)=>({type:v.DELETE_ATTRIBUTE,payload:{groupId:e,attributeId:t}}),oe=(e,t)=>({type:v.DUPLICATE_ATTRIBUTE,payload:{groupId:e,attributeId:t,id:h()()}}),ie=(e,t,r)=>({type:v.SET_FILTER,payload:{groupId:e,attributeId:t,filter:r}}),le=(e,t,r)=>({type:v.SET_VALUES,payload:{groupId:e,attributeId:t,values:r}}),se=()=>({type:v.CLEAR}),ce=()=>({type:v.RUN_SEARCH}),pe=e=>({type:v.CHANGE_PAGE,payload:{pageNumber:e}}),ue=e=>({type:v.SET_ENTITIES,payload:e}),de=()=>({type:v.UPDATE_CURRENT_ENTITIES}),me=e=>({type:_,payload:e}),fe=e=>({type:x,payload:e}),ye=e=>({type:S,payload:e}),be=e=>({type:C,payload:e});var Ee=r(28523);const ge=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];for(let n of e)if((0,A.path)(n,r)===t)return[...a,...n.slice(0,-1)];if(r.children)for(let n=0;n<r.children.length;n++){const o=ge(e,t,r.children[n],[...a,"children",n]);if(o)return o}},he=(0,A.curry)(((e,t)=>ge([["id"],["entity","id"],["relation","id"]],e,t))),{addAttributeAfter:Te,changeAttributeData:ve,setAttributeOperator:xe,deleteAttribute:Se,duplicateAttribute:Oe,setFilter:Re,setValues:_e,createGetGroupLens:Ce,createGetAttributesLens:Ae,createGetAttributeIndex:Ie,createGetAttributeLens:Pe,createSetAttributeProp:we,createGetAttributeProp:Ne}=T,Le={searchState:{},groupsRoot:null,page:0,rowsPerPage:U[0],entities:[],total:0},ke=["groupsRoot"],Ue=(0,A.lensPath)(ke),je=(0,A.lensProp)("page"),Ze=(0,A.lensProp)("rowsPerPage"),De=(0,A.lensProp)("entities"),He=(0,A.lensProp)("total"),ze=Ae(Ce(ke,he),H),Ge=Ie(ze),Be=Pe(ze),Me=we(Be),Fe=Ne(Be),Ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Le,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case v.ADD_GROUPS_BLOCK:{const{block:r,parentBlockId:a}=t.payload;if(!a)return null===r?(0,A.set)(Ue,r,e):(0,A.set)(Ue,(0,A.omit)(["relation"],r),e);{const t=(0,A.view)(Ue,e),n=he(a,t);if(n){const t=(0,A.lensPath)([...ke,...n,"children"]);return(0,A.over)(t,(0,A.pipe)((0,A.defaultTo)([]),(0,A.concat)(A.__,[r])),e)}}break}case v.DELETE_GROUPS_BLOCK:{const{blockId:r}=t.payload,a=(0,A.view)(Ue,e),n=he(r,a);if(n){if(n.length){const t=he(r,a).slice(0,-1),n=(0,A.lensPath)([...ke,...t]);return(0,A.over)(n,(0,A.pipe)((0,A.reject)((0,A.propEq)("id",r))),e)}return(0,A.set)(Ue,Le.groupsRoot,e)}break}case v.SET_GROUP_ENTITY_TYPE:{const{groupId:r,entityTypeUri:a}=t.payload,n=(0,A.view)(Ue,e),o=he(r,n);if(o){const t=(0,A.lensPath)([...ke,...o]),r=(0,A.over)(t,(0,A.pipe)((0,A.assoc)(j,a),(0,A.assoc)(H,[])),e);if(!a){const e=o.slice(0,-1),t=(0,A.lensPath)([...ke,...e,"children"]);return(0,A.set)(t,[],r)}return r}return e}case v.SET_GROUP_RELATION_TYPE_INFO:{const{groupId:r,relationTypeUri:a,direction:n}=t.payload,o=(0,A.view)(Ue,e),i=he(r,o);if(i){const t=(0,A.lensPath)([...ke,...i]);return(0,A.over)(t,(0,A.pipe)((0,A.assoc)(Z,a),(0,A.assoc)(D,n),(0,A.assoc)(H,[])),e)}return e}case v.SET_GROUP_RELATION_FILTER:{const{groupId:r,filter:a}=t.payload,n=(0,A.view)(Ue,e),o=he(r,n);if(o){const t=(0,A.lensPath)([...ke,...o]);return(0,A.over)(t,(0,A.assoc)(z,a),e)}return e}case v.ADD_ATTRIBUTE_AFTER:{const{groupId:r,attributeId:a,attribute:n}=t.payload;return Te({state:e,groupId:r,attributeId:a,attribute:n,getAttributesLens:ze,getAttributeIndex:Ge})}case v.CHANGE_ATTRIBUTE_DATA:{const{groupId:r,attributeId:a,attributeData:n}=t.payload;return ve({state:e,groupId:r,attributeId:a,attributeData:n,setAttributeProp:Me,getAttributeLens:Be})}case v.SET_ATTRIBUTE_OPERATOR:{const{groupId:r,attributeId:a,operator:n}=t.payload;return xe({state:e,groupId:r,attributeId:a,operator:n,setAttributeProp:Me})}case v.DELETE_ATTRIBUTE:{const{groupId:r,attributeId:a}=t.payload;return Se({state:e,groupId:r,attributeId:a,getAttributesLens:ze})}case v.DUPLICATE_ATTRIBUTE:{const{groupId:r,attributeId:a,id:n}=t.payload;return Oe({state:e,groupId:r,attributeId:a,id:n,getAttributesLens:ze})}case v.SET_FILTER:{const{groupId:r,attributeId:a,filter:n}=t.payload;return Re({state:e,groupId:r,attributeId:a,filter:n,getAttributeProp:Fe,setAttributeProp:Me})}case v.SET_VALUES:{const{groupId:r,attributeId:a,values:n}=t.payload;return _e({state:e,groupId:r,attributeId:a,values:n,setAttributeProp:Me})}case v.CLEAR:return Le;case v.CHANGE_PAGE:{const{pageNumber:r}=t.payload;return(0,A.set)(je,r,e)}case v.CHANGE_ROWS_PER_PAGE:{const{number:r}=t.payload;return(0,A.set)(Ze,r,e)}case v.SET_ENTITIES:{const r=t.payload;return(0,A.set)(De,r,e)}case v.SET_TOTAL:{const r=t.payload;return(0,A.set)(He,r,e)}case v.UPDATE_STATE:default:return e}return e};var Ye=r(90503);function We(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Xe(e,t,r[t])}))}return e}function Xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qe={entitiesLoading:!1,totalLoading:!1,config:{},searchResultsViewMode:k,searchResultsColumns:[],showSearchResults:!1,isLoadedSavedState:!1},$e=(0,A.lensProp)("entitiesLoading"),Ke=(0,A.lensProp)("totalLoading"),Qe=(0,A.lensProp)("config"),Je=(0,A.lensProp)("searchResultsViewMode"),et=(0,A.lensProp)("searchResultsColumns"),tt=(0,A.lensProp)("showSearchResults"),rt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x:return(0,A.set)($e,t.payload,e);case S:return(0,A.set)(Ke,t.payload,e);case O:return(0,A.set)(Qe,t.payload,e);case R:return(0,A.set)(Je,t.payload,e);case _:return(0,A.set)(et,t.payload,e);case C:return(0,A.set)(tt,t.payload,e);case v.RUN_SEARCH:return(0,A.set)(tt,!0,e);case v.ADD_GROUPS_BLOCK:if(!t.payload.parentBlockId)return(0,A.set)(et,(0,Ye.oX)(),e);break;case v.CLEAR:return We({},qe,{config:e.config,searchResultsViewMode:e.searchResultsViewMode,showSearchResults:!1,isLoadedSavedState:!0});case v.UPDATE_STATE:{const{showSearchResults:r,searchResultsViewMode:a}=t.payload;return We({},qe,{config:e.config,showSearchResults:r,searchResultsViewMode:a,isLoadedSavedState:!0})}}return e};var at=r(89810),nt=r(8513),ot=r(1794),it=r(71403),lt=r(90371),st=r(78156);function ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pt=(e,t)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){ct(e,t,r[t])}))}return e}({},t,mt(e)),ut=(0,A.allPass)([(0,A.complement)(nt.O27),(0,A.has)("type"),(0,A.cond)([[(0,A.pipe)((0,A.prop)("type"),nt.$NE),(0,A.has)("direction")],[A.T,A.T]])]),dt=(0,A.anyPass)([ut,(0,A.allPass)([(0,A.complement)(nt.O27),(0,A.has)("logicalOperator"),(0,A.has)("operands"),(0,A.pipe)((0,A.prop)("operands"),(0,A.all)(ut))])]),mt=e=>{let{entity:t,relation:r,children:a=[]}=e;const n=(0,A.reject)(nt.O27,{type:t.entityTypeUri,filter:(0,st.Jk)([{attributes:t.attributes||[]}],[],!0),operands:a.map(mt).filter(dt)});let o=r?(0,A.reject)(nt.O27,{type:r.relationTypeUri,direction:(r.direction||"").toUpperCase(),filter:(0,st.Jk)([{attributes:r.attributes||[]}],[],!0),operands:r.relationTypeUri?[n].filter(dt):[]}):null;return null!=r&&r.filter&&(null==r?void 0:r.filter)!==w.EXISTS&&(o={logicalOperator:r.filter.toUpperCase(),operands:[o]}),o||n},ft=(e,t,r,a)=>{const n=pt(r);return(0,nt.P2h)({apiPath:e,tenant:t,searchBody:n,options:a})},yt=(e,t,r,a)=>{const n=pt(r);return(0,nt.dED)({apiPath:e,tenant:t,searchBody:n,options:a})},bt=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const n=Et(e,t,r,a),o=(t.children||[]).map((r=>bt(e,r,"",a.concat({name:t.name,label:t.label}))));return o.length&&(n.children=o,n.notSelectable=!0),n},Et=(e,t,r,a)=>{const n=(0,A.omit)(["children"],t),o=n.label||n.name;return{title:o,pathToTitle:Array.isArray(a)?["",...(0,A.chain)((0,A.prop)("label"),a),o]:["",o],fieldName:r||(0,nt.Tde)(n.uri,a),attrType:n}},gt=(e,t)=>t?(0,nt.k66)(e,t,(0,A.complement)(nt.YkG)).map((t=>bt(e,t))):[],ht=(e,t)=>[{title:"",attributes:(0,A.pipe)((0,A.pick)(["id"]),A.values,(0,A.map)((e=>({title:e.label,fieldName:e.name,attrType:e}))))(nt.xPW)},{title:"",attributes:gt(e,(0,nt.nt9)(e,t))}],Tt=(e,t)=>[{title:"",attributes:(0,A.pipe)(A.values,(0,A.map)((e=>({title:e.label,fieldName:e.name,attrType:e}))))(nt.PY2)},{title:"",attributes:gt(e,(0,nt.V3K)(e,t))}],vt=e=>e.reduce(((e,t)=>(0,A.concat)(e,(0,A.concat)([t],vt((0,A.propOr)([],"children",t))))),[]),xt=(0,A.curry)(((e,t)=>e.find((e=>e.fieldName===t.fieldName)))),St=(0,A.curry)(((e,t)=>{const r=t.entityTypeUri?ht(e,t.entityTypeUri):Tt(e,t.relationTypeUri),a=(0,A.pipe)((0,A.chain)((0,A.prop)("attributes")),vt)(r);return(0,A.evolve)({attributes:(0,A.pipe)((0,A.map)((0,A.evolve)({data:xt(a)})),(0,A.reject)((0,A.propSatisfies)(A.isNil,"data")))},t)})),Ot=(0,A.pipe)((0,A.pick)(["id"]),B),Rt=(0,A.pipe)((0,A.pick)(["id"]),G),_t=(0,A.both)((0,A.propSatisfies)(W,"entity"),(0,A.propSatisfies)(V,"relation")),Ct=(0,A.curry)(((e,t)=>{if(!t)return null;const r=!t.relation,a=function(e){let{entityTypeUri:t=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!(0,nt.nt9)(e,t)}(e,t.entity),n=t.relation&&function(e){let{relationTypeUri:t=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!(0,nt.V3K)(e,t)}(e,t.relation)||r;return r&&!a?null:(0,A.evolve)({entity:(0,A.ifElse)((0,A.always)((0,A.and)(a,n)),St(e),Ot),relation:(0,A.ifElse)((0,A.always)(n),St(e),Rt),children:(0,A.ifElse)((0,A.always)((0,A.and)(a,n)),(0,A.pipe)((0,A.map)(Ct(e)),(0,A.reject)(_t)),(0,A.always)([]))},t)})),At=e=>e[or].ui.entitiesLoading,It=e=>e[or].ui.totalLoading,Pt=e=>e[or].ui.config,wt=e=>e[or].ui.searchResultsViewMode,Nt=e=>e[or].ui.searchResultsColumns,Lt=e=>e[or].ui.showSearchResults,kt=e=>e[or].ui.isLoadedSavedState,{toggleQueryBuilderAttributeSelect:Ut}=ot;function jt(e){console.error(e)}function*Zt(){yield(0,lt.gz)(pe(0)),yield(0,lt.rM)(zt)}function*Dt(){const e=yield(0,lt.Ys)(sr),t=yield(0,lt.Ys)(cr),r=yield(0,lt.Ys)(ir),a=yield(0,lt.Ys)(at.ZP.selectors.getApiPath),n=yield(0,lt.Ys)(at.ZP.selectors.getTenant),o={max:t,from:t*e,select:yield(0,lt.RE)(Mt)};yield(0,lt.RE)(Ht,pt(r)),yield(0,lt.gz)(fe(!0));try{const e=yield(0,lt.RE)(ft,a,n,r,o);yield(0,lt.gz)(ue(e))}catch(e){jt(e),yield(0,lt.gz)(ue([]))}yield(0,lt.gz)(fe(!1))}function*Ht(e){const t=yield(0,lt.Ys)(at.ZP.selectors.getSearchProviderData);(0,A.equals)(null==t?void 0:t.data,e)||(yield(0,lt.gz)(at.yC.actions.setSearchNavigationData(null))),yield(0,lt.gz)(at.yC.actions.setSearchProviderData({type:"graphsearch",data:e}))}function*zt(){const e=yield(0,lt.Ys)(ir),t=yield(0,lt.Ys)(at.ZP.selectors.getApiPath),r=yield(0,lt.Ys)(at.ZP.selectors.getTenant);yield(0,lt.gz)(ye(!0));try{const{count:n}=yield(0,lt.RE)(yt,t,r,e);yield(0,lt.gz)((a=n,{type:v.SET_TOTAL,payload:a}))}catch(e){jt(e)}var a;yield(0,lt.gz)(ye(!1))}function*Gt(){const e=(yield(0,lt.Ys)(ur)).map((e=>e.uri)),t={select:yield(0,lt.RE)(Mt),searchOptions:"ovOnly"};yield(0,lt.gz)(fe(!0));try{const r=yield(0,lt.RE)(nt.DnY,e,t);yield(0,lt.gz)(ue(r))}catch(e){jt(e)}yield(0,lt.gz)(fe(!1))}function*Bt(){const e=yield(0,lt.Ys)(Nt);return(0,Ye.vw)(e)}function*Mt(){const e=yield(0,lt.RE)(Bt);return(0,A.pipe)(A.uniq,(0,A.join)(","))([...it.Tv,...e])}function*Ft(e){const{groupId:t,attributeId:r,selectInfo:a}=e.payload,n=yield(0,lt.Ys)(ir),o={addAttributeAfter:J,changeAttribute:ee,clearAttribute:te,deleteAttribute:ne};yield(0,lt.RE)(Ut,{groups:n,findGroupPath:he,attributesPropName:"attributes",groupId:t,attributeId:r,selectInfo:a,actions:o})}function*Vt(){const e=yield(0,lt.Ys)(ur);e&&(yield(0,lt.gz)(at.yC.actions.searchResultsSet(e)))}function*Yt(e){const{consoleExportApp:t}=e.payload||{},r=t.query?`&${t.query}`:null,a=yield(0,lt.Ys)(ir),n=pt(a),o=h()(),i=yield(0,lt.Ys)(at.ZP.selectors.getServicesPath),l=yield(0,lt.Ys)(at.ZP.selectors.getTenant),s=yield(0,lt.Ys)(at.ZP.selectors.getEnvironment);try{yield(0,lt.RE)(nt.KAm,i,l,s,o,n),yield(0,lt.gz)(at.ui.actions.openConsoleApp(t.name,t.path||"graph",`exportId=${o}${r||""}`))}catch(e){console.error(e),y.Z.addError({title:P().text("Export graph search result error"),message:e.errorMessage})}}function*Wt(e){const t=yield(0,lt.Ys)(at.ZP.selectors.getMetadata),r=Ct(t,e.payload.groupsRoot),a=function(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).reduce(((t,r)=>{if(r.uri){const a=(0,nt.zeJ)(e,r.uri);a&&t.push({id:r.id,label:a.label,attrType:a,size:r.size})}else{const e=(0,Ye.oX)().find((e=>e.id===r.id));e&&t.push({id:r.id,label:e.label,size:r.size})}return t}),[]);return t.length?t:(0,Ye.oX)()}(t,e.payload.searchResultsColumns);var n;yield(0,lt.gz)((n=r,{type:v.ADD_GROUPS_BLOCK,payload:{block:n}})),yield(0,lt.gz)(me(a)),e.payload.showSearchResults&&!r&&(yield(0,lt.gz)(be(!1))),e.payload.showSearchResults&&r&&(yield(0,lt.gz)(ce()))}const Xt=[function*(){yield(0,lt.ib)(v.TOGGLE_ATTRIBUTE_SELECT,Ft)},function*(){yield(0,lt.Fm)(v.RUN_SEARCH,Zt)},function*(){yield(0,lt.Fm)([v.CHANGE_PAGE,v.CHANGE_ROWS_PER_PAGE],Dt)},function*(){yield(0,lt.Fm)(v.UPDATE_CURRENT_ENTITIES,Gt)},function*(){yield(0,lt.Fm)([v.SET_ENTITIES,R],Vt)},function*(){yield(0,lt.Fm)(v.UPDATE_STATE,Wt)},function*(){yield(0,lt.Fm)(v.EXPORT_RESULTS,Yt)}];var qt=r(97698);const $t=(0,A.pipe)((0,A.evolve)({attributes:(0,A.map)((0,A.evolve)({data:(0,A.pick)(["fieldName"])}))})),Kt=e=>{if(!e)return null;const t={id:e.id};return e.entity&&(t.entity=$t(e.entity)),e.relation&&(t.relation=$t(e.relation)),e.children&&(t.children=e.children.map((e=>Kt(e)))),t},Qt=(0,qt.createSelector)((e=>Kt(ir(e))),(e=>wt(e)),(e=>Lt(e)),(e=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>({id:e.id,uri:e.attrType&&e.attrType.uri,size:e.size})))}(Nt(e))),((e,t,r,a)=>({groupsRoot:e,searchResultsViewMode:t,showSearchResults:r,searchResultsColumns:a}))),Jt=[v.ADD_GROUPS_BLOCK,v.DELETE_GROUPS_BLOCK,v.SET_GROUP_ENTITY_TYPE,v.SET_GROUP_RELATION_TYPE_INFO,v.SET_GROUP_RELATION_FILTER,v.ADD_ATTRIBUTE_AFTER,v.CHANGE_ATTRIBUTE_DATA,v.SET_ATTRIBUTE_OPERATOR,v.DELETE_ATTRIBUTE,v.DUPLICATE_ATTRIBUTE,v.SET_FILTER,v.SET_VALUES,v.CLEAR,v.RUN_SEARCH,R,_,C];function*er(){return yield(0,lt.Ys)(Qt)}function*tr(){yield(0,lt.gw)(500);const e=yield(0,lt.RE)(er);yield(0,lt.gz)((e=>({type:v.SAVE_STATE,payload:e}))(e))}function*rr(){yield(0,lt.Fm)(Jt,tr)}function*ar(e){const{uri:t}=e.payload,r=(yield(0,lt.Ys)(ur)).map((0,A.prop)("uri")),a=(yield(0,lt.Ys)(sr))||0,n=(yield(0,lt.Ys)(cr))||U[0],o=r.indexOf(t)+a*n,i=yield(0,lt.Ys)(pr),l=yield(0,lt.Ys)(at.ZP.selectors.getTenant);yield(0,lt.gz)(at.yC.actions.setSearchNavigationData({uri:t,index:o,total:i,tenant:l,cache:r}))}const nr=[function*(){yield(0,lt.Fm)(at.ui.constants.OPEN_ENTITY,ar)}],or="relationshipSearch",ir=e=>e[or].search.groupsRoot,lr=(0,A.pipe)(ir,mt,A.isEmpty),sr=e=>e[or].search.page,cr=e=>e[or].search.rowsPerPage,pr=e=>e[or].search.total,ur=e=>e[or].search.entities,dr=(0,A.pipe)(ir,(0,A.path)(["entity","entityTypeUri"]));var mr=r(42662),fr=r(89902),yr=r(79692);const br=(0,yr.Z)((e=>({container:{display:"flex",flexDirection:"column",maxWidth:"645px","& $disabled":{pointerEvents:"none",opacity:.4}},disabled:{},avatar:{transform:"scale(0.5)",marginLeft:"5px",marginRight:"5px"},item:{display:"flex",flexGrow:1,flexShrink:0,flexDirection:"row",alignItems:"center",height:"32px"},info:{display:"flex",flexGrow:1,position:"relative",minWidth:0,"&:hover":{cursor:"pointer"}},textInfo:{display:"flex",flexGrow:1,lineHeight:"16px",backgroundColor:"transparent",minWidth:0,minHeight:"24px",alignItems:"center",zIndex:2},text:{flexGrow:1,marginLeft:"9px",marginRight:"4px",color:e.palette.text.primary,width:"100%",maxHeight:"32px",wordBreak:"break-word",wordWrap:"break-word",overflow:"hidden"},count:{flexShrink:0,fontSize:"12px",color:e.palette.text.secondary,textAlign:"right",marginRight:"4px"},colorBar:{minHeight:"24px"}}))),Er=e=>{let{entityTypes:t=[],onChange:r=m.ZT,className:a}=e;const n=br(),i=Math.max(...t.map((e=>e.number)));return o().createElement("div",{className:E()(n.container,a),"data-reltio-id":"list-of-entity-types"},t.map((e=>o().createElement("div",{key:e.value,className:E()(n.item,{[n.disabled]:!e.number}),"data-reltio-id":"entity-type"},o().createElement(mr.Z,{className:n.avatar,entityType:e}),o().createElement("div",{className:n.info,onClick:()=>r(e.value)},o().createElement("div",{className:n.textInfo},o().createElement("div",{className:n.text},e.label),o().createElement("div",{className:n.count},(0,nt.k7L)(e.number,5e3))),o().createElement(fr.Z,{className:n.colorBar,width:e.number,maxWidth:i}))))))};Er.propTypes={className:s().string,entityTypes:s().array,onChange:s().func};const gr=Er;var hr=r(29627);function Tr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vr=(0,yr.Z)({container:{backgroundColor:"white"},list:{paddingTop:"12px",paddingBottom:"8px"}}),xr=e=>{let{onChange:t=m.ZT}=e;const r=vr(),a=(()=>{const e=(0,hr._)(),[t,r]=(0,n.useState)([]),a=(0,i.useSelector)(at.ZP.selectors.getMetadata),o=(0,i.useSelector)(at.ZP.selectors.getGlobalSearchRequestOptions);return(0,n.useEffect)((()=>{const t=(0,A.pipe)((0,A.propOr)([],"entityTypes"),(0,A.filter)(nt.oDv))(a),n=[{fieldName:"type",values:t.map((0,A.prop)("uri")),filter:"equals"}],i=e=>t.map((t=>{const r=(0,nt.nIW)(t.uri);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Tr(e,t,r[t])}))}return e}({},t,{value:t.uri,number:(0,A.propOr)(0,r,e),label:(0,nt.jFi)(a,{type:t.uri})||r})})),l={activityFilter:o.activityFilter,max:101};e((0,nt.Yiz)({fieldName:"type",searchParams:n,options:l})).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,A.pipe)((0,A.prop)("type"),i,r)(e)})).catch((e=>{console.error(e),r([])}))}),[o,a]),t})();return o().createElement("div",{className:r.container},a.length>0&&o().createElement(gr,{className:r.list,entityTypes:a,onChange:t}))};xr.propTypes={onChange:s().func};var Sr=r(87685),Or=r(85256),Rr=r(77277),_r=r(65549),Cr=r(39475);const Ar=(0,yr.Z)((e=>({container:{position:"relative","&:hover > $actions":{opacity:1}},groups:{backgroundColor:e.palette.background.paper,padding:"16px"},divider:{margin:"16px 0"},actions:{opacity:"0",transition:"opacity 0.3s",position:"absolute",top:16,right:16,paddingTop:0},addRelationButton:{marginTop:"-10px"}})));var Ir=r(76773),Pr=r(51586);const wr={flex:1,marginLeft:"10px"},Nr=(0,yr.Z)((()=>({container:{},groupControls:{display:"flex",alignItems:"center",marginBottom:"20px",paddingRight:"117px"},entityTypeSelector:{flex:1.69,height:"46px","& $entityTypeSelectorLabel":{fontSize:"14px"}},entityTypeSelectorLabel:{},relationTypeSelector:{flex:1.69},relationFilterSelector:wr,spacer:wr}))),Lr="46px",kr=(0,yr.Z)((()=>({row:{marginBottom:"20px","&:hover $actions":{opacity:1}},attributeSelectContainer:{flex:.9},attributeSelect:{width:"100%",height:Lr},valuesWrapper:{width:"100%",display:"flex",minHeight:Lr,alignItems:"flex-start",boxSizing:"border-box","& $input":{margin:0,borderRadius:"4px",paddingBottom:"4px !important",paddingTop:"2px !important"},"& $root":{borderRadius:"4px 4px 0 0",padding:0,display:"flex",alignItems:"center",margin:0}},input:{},root:{},actions:{opacity:"0",transition:"opacity 0.3s",paddingTop:"13px",width:"88px",height:"24px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:"0",marginLeft:"8px"},filterSelector:{width:"190px"}})));var Ur=r(53862),jr=r(85703);const Zr=e=>!(e&&e.data),Dr=function(e){let{title:t,pathToTitle:r}=e,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r&&a?r.slice(1).join(" / "):t},Hr=e=>{let{rowData:t,rowContext:{entityTypeUri:r,metadata:a,dispatchGroupAction:i},attributeSelectorProps:l={}}=e;const s=kr(),c=t&&t.id,p=(0,n.useCallback)((e=>{i(re,c,e)}),[c,i]),u=(0,n.useMemo)((()=>ht(a,r)),[a,r]);return o().createElement(jr.Z,{className:s.attributeSelect,value:t&&t.data,getLabel:Dr,itemsGroups:u,onSelect:p,ungroup:!0,onRestoreFocus:l.onRestoreFocus,onOpenPopup:l.onOpen,disableRestoreFocus:l.disablePopoverRestoreFocus,disableEnforceFocus:l.disablePopoverRestoreFocus,disabled:!r})};Hr.propTypes={rowData:Ur.Xw,rowContext:s().shape({entityTypeUri:s().string,metadata:nt.pGS,dispatchGroupAction:s().func}),attributeSelectorProps:s().shape({onRestoreFocus:s().func,onOpen:s().func,disablePopoverRestoreFocus:s().bool})};const zr=(0,n.memo)(Hr);var Gr=r(74443);function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Br.apply(this,arguments)}const Mr=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["styles"]);return o().createElement("svg",Br({width:"20",height:"20",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false"},r),o().createElement("defs",null,o().createElement("path",{d:"M20.222 6C21.21 6 22 6.8 22 7.778v12.444C22 21.2 21.209 22 20.222 22H7.778C6.79 22 6 21.2 6 20.222V7.778C6 6.8 6.791 6 7.778 6h12.444zM8 8v12h12V8H8zM4 18H2V4c0-1.1.9-2 2-2h14v2H4v14z",id:"svg3787243505a"})),o().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o().createElement("g",null,o().createElement("g",{transform:"translate(-2 -2)"},o().createElement("mask",{id:"svg3787243505b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg3787243505a"})),o().createElement("g",{mask:"url(#svg3787243505b)",fill:"#000",fillOpacity:".54"},o().createElement("path",{d:"M0 0h24v24H0z"}))))))},Fr=e=>{let{rowData:t,rowContext:{dispatchGroupAction:r}}=e;const a=kr(),i=t&&t.id,l=(0,n.useCallback)((()=>r(Q,i)),[i,r]),s=(0,n.useCallback)((()=>r(oe,i)),[i,r]),c=(0,n.useCallback)((()=>r(ne,i)),[i,r]);return o().createElement("div",{className:E()(a.actions)},o().createElement(Cr.k,{tooltipTitle:P().text("Add"),icon:Gr.Z,size:"M",onClick:l}),!Zr(t)&&o().createElement(Cr.k,{tooltipTitle:P().text("Duplicate"),icon:Mr,size:"M",onClick:s}),o().createElement(Cr.k,{tooltipTitle:P().text("Delete"),icon:Sr.default,size:"M",onClick:c}))};Fr.propTypes={rowData:Ur.Xw,rowContext:s().shape({dispatchGroupAction:s().func})};const Vr=(0,n.memo)(Fr);var Yr=r(15299);const Wr=e=>{let{rowData:t,rowContext:{dispatchGroupAction:r}}=e;const a=kr(),i=t&&(0,nt.wNf)(t.filter),{values:l=[],data:{attrType:s,fieldName:c}={},filter:p,id:u}=t||{},d=s&&(0,nt.PFL)(s),m=d&&(0,nt.l1V)(d,p),f=(0,n.useCallback)((e=>r(le,u,e)),[r,u]),y=(0,n.useMemo)((()=>({filter:p,fieldName:c,values:l||[]})),[p,c,l]),b=(0,n.useMemo)((()=>({InputProps:{classes:{root:a.input}}})),[a]),E=(0,n.useMemo)((()=>({root:a.root})),[a]);return o().createElement("div",{className:a.valuesWrapper,"data-reltio-id":"attribute-value"},!Zr(t)&&i&&o().createElement(Yr.Z,{filter:y,onChange:f,dataTypeDefinition:m,fullWidth:!0,TextFieldProps:b,color:"primary",classes:E,orientation:"horizontal"}))};Wr.propTypes={rowData:Ur.Xw,rowContext:s().shape({dispatchGroupAction:s().func})};const Xr=(0,n.memo)(Wr),qr=s().shape({id:s().string,attributes:s().arrayOf(Ur.Xw),entityTypeUri:s().string}),$r=s().shape({id:s().string,attributes:s().arrayOf(Ur.Xw),relationTypeUri:s().string,direction:s().oneOf(Object.values(nt.Nsj)),filter:s().oneOf(Object.values(w))}),Kr=s().shape({id:s().string,entity:qr,relation:$r,children:s().array});var Qr=r(6782),Jr=r(90590),ea=r(2633);const ta=(0,n.memo)((e=>{var t,r;let{className:a,attribute:n,textFieldInputRef:i,isDisabled:l,height:s,onChange:c}=e;const p=(0,A.pipe)(nt.XS2,Qr.Z);return o().createElement(Jr.Z,{label:"",placeholder:P().text("Equals"),className:a,value:l?void 0:{value:n.filter,label:p(n.filter)},options:(null==n||null===(t=n.data)||void 0===t||null===(r=t.filterOptions)||void 0===r?void 0:r.map((e=>({value:e,label:p(e)}))))||[],height:s,onChange:c,isDisabled:l,filterOption:ea.Z.BY_LABEL,textFieldInputRef:i})})),ra=e=>{var t;let{rowData:r,rowContext:{dispatchGroupAction:a},textFieldInputRef:i}=e;const l=kr(),s=null==r?void 0:r.id,c=(0,n.useCallback)((e=>a(ie,s,e.value)),[a,s]),p=null==r||null===(t=r.data)||void 0===t?void 0:t.attrType,u=p&&(0,A.assocPath)(["data","filterOptions"],(0,nt.Klp)(p,r.data.fieldName),r);return o().createElement(ta,{className:l.filterSelector,attribute:u,textFieldInputRef:i,isDisabled:!p,onChange:c})},aa=(0,yr.Z)((e=>({logicOperatorContainer:{width:"100px",marginRight:"40px",marginLeft:"12px",marginTop:"7px"},logicOperator:{fontSize:"14px",color:e.palette.text.secondary},logicOperatorPlaceholder:{paddingLeft:"16px",paddingTop:"10px"}})));var na=r(1128);const oa=(0,yr.Z)((()=>({select:{padding:"6px 16px 7px",width:"100px",boxSizing:"border-box"}}))),ia=e=>{let{className:t,value:r,onChange:a}=e;const n=oa();return o().createElement(na.Z,{className:t,classes:n,value:r,entries:nt.G8q,onChange:a,disableUnderline:!0})};ia.propTypes={className:s().string,value:s().string,onChange:s().func};const la=ia,sa=(0,n.memo)((e=>{let{rowData:t,rowContext:{dispatchGroupAction:r}}=e;const a=aa(),i=null==t?void 0:t.id,l=null==t?void 0:t.operator,s=(0,n.useCallback)((e=>r(ae,i,e)),[r,i]);return o().createElement("div",{className:a.logicOperatorContainer},l?o().createElement(la,{className:a.logicOperator,value:l,onChange:s}):o().createElement("div",{className:E()(a.logicOperator,a.logicOperatorPlaceholder)},P().text("Where")))})),ca=e=>{let{group:{id:t,attributes:r,entityTypeUri:a},entityTypes:l,dispatch:s,disabled:c}=e;const p=Nr(),u=kr(),d=(0,i.useSelector)(at.ZP.selectors.getMetadata),m=(0,n.useCallback)((e=>s(((e,t)=>({type:v.SET_GROUP_ENTITY_TYPE,payload:{groupId:e,entityTypeUri:t}}))(t,e[0]))),[t,s]),f=(0,n.useCallback)((function(e){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return s(e(t,...a))}),[t,s]),y=(0,n.useMemo)((()=>a?[a]:[]),[a]),b=(0,n.useMemo)((()=>({root:u.row,logicOperatorContainer:u.logicOperatorContainer,attributeSelectorContainer:u.attributeSelectContainer})),[u]);return(0,n.useEffect)((()=>{a&&!l.find((e=>{let{uri:t}=e;return t===a}))?m([]):a||1!==l.length||m([l[0].uri])}),[m,a,l]),o().createElement("div",{className:p.container},o().createElement("div",{className:p.groupControls},o().createElement(Ir.Z,{classes:{root:p.entityTypeSelector,label:p.entityTypeSelectorLabel},entityTypes:l,selectedEntityTypes:y,single:!0,onChange:m,disabled:c}),o().createElement("div",{className:p.spacer})),o().createElement(Pr.Z,{rowClasses:b,rowsData:r,LogicOperatorComponent:sa,AttributeSelectorComponent:zr,ValuesEditorComponent:Xr,ActionsComponent:Vr,FilterSelectorComponent:ra,entityTypeUri:a,dispatchGroupAction:f,metadata:d}))};ca.propTypes={group:qr,entityTypes:s().arrayOf(nt.p8l),dispatch:s().func,disabled:s().bool};const pa=(0,n.memo)(ca);var ua=r(85596);const da=e=>{let{rowData:t,rowContext:{relationTypeUri:r,metadata:a,dispatchGroupAction:i},attributeSelectorProps:l={}}=e;const s=kr(),c=t&&t.id,p=(0,n.useCallback)((e=>{i(re,c,e)}),[c,i]),u=(0,n.useMemo)((()=>Tt(a,r)),[a,r]);return o().createElement(jr.Z,{className:s.attributeSelect,value:t&&t.data,getLabel:Dr,itemsGroups:u,onSelect:p,ungroup:!0,onRestoreFocus:l.onRestoreFocus,onOpenPopup:l.onOpen,disableRestoreFocus:l.disablePopoverRestoreFocus,disableEnforceFocus:l.disablePopoverRestoreFocus,disabled:!r})};da.propTypes={rowData:Ur.Xw,rowContext:s().shape({relationTypeUri:s().string,metadata:nt.pGS,dispatchGroupAction:s().func}),attributeSelectorProps:s().shape({onRestoreFocus:s().func,onOpen:s().func,disablePopoverRestoreFocus:s().bool})};const ma=(0,n.memo)(da);function fa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ya=e=>{let{group:t,parentEntityTypeUri:r,dispatch:a}=e;const l=Nr(),s=kr(),{id:c,attributes:p,relationTypeUri:u,direction:d,filter:m}=t,f=(0,i.useSelector)(at.ZP.selectors.getMetadata),y=(0,n.useCallback)((e=>{let{type:t,direction:r}=e;return a(((e,t,r)=>({type:v.SET_GROUP_RELATION_TYPE_INFO,payload:{groupId:e,relationTypeUri:t,direction:r}}))(c,t.uri,r))}),[c,a]),b=(0,n.useCallback)((e=>{let{value:t}=e;return a(((e,t)=>({type:v.SET_GROUP_RELATION_FILTER,payload:{groupId:e,filter:t}}))(c,t))}),[c,a]),E=(0,n.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return a(e(c,...r))}),[c,a]),{inRelations:g=[],outRelations:h=[]}=(0,n.useMemo)((()=>((e,t)=>{const{isNotDuplicatedInRelation:r,isNotDuplicatedOutRelation:a}=(0,nt.xE1)({reversedContextLabels:!0}),n=(0,A.curry)(((e,t,r,a)=>{const[n,o]=(0,nt.j1S)(e,a.uri);return a&&(!t||(0,nt.lhE)(e,n,t))&&(!r||(0,nt.lhE)(e,o,r))})),o=t=>(0,A.pipe)((0,A.assocPath)(["startObject","objectType"],(0,nt.nt9)(e,t.startObject.objectTypeURI)),(0,A.assocPath)(["endObject","objectType"],(0,nt.nt9)(e,t.endObject.objectTypeURI)))(t),i=(e.relationTypes||[]).filter(nt.Tt2);return{inRelations:(0,A.pipe)((0,A.filter)(n(e,null,t)),(0,A.filter)(r),(0,A.map)(o))(i),outRelations:(0,A.pipe)((0,A.filter)(n(e,t,null)),(0,A.filter)(a),(0,A.map)(o))(i)}})(f,r)),[r,f]);(0,n.useEffect)((()=>{const e=d===nt.Nsj.IN?g:h;if(u&&!e.find((e=>{let{uri:t}=e;return t===u})))y({type:{}});else if(!u&&1===g.concat(h).length){const e=1===g.length;y({type:e?g[0]:h[0],direction:e?nt.Nsj.IN:nt.Nsj.OUT})}}),[y,u,g,h,d]);const T=(0,n.useMemo)((()=>({root:s.row,logicOperatorContainer:s.logicOperatorContainer,attributeSelectorContainer:s.attributeSelectContainer})),[s]),x=(0,n.useMemo)((()=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){fa(e,t,r[t])}))}return e}({},t,{relationType:t.relationTypeUri})),[t]),S=(0,n.useMemo)((()=>[{label:N[w.EXISTS],value:w.EXISTS},{label:N[w.NOT_EXISTS],value:w.NOT_EXISTS}]),[]);return o().createElement("div",{className:l.container},o().createElement("div",{className:l.groupControls},o().createElement(ua.Z,{className:l.relationTypeSelector,label:P().text("Relationship type"),reversedContextLabels:!0,relation:x,inRelationTypes:g,outRelationTypes:h,onChange:y}),o().createElement(Jr.Z,{className:l.relationFilterSelector,label:"",options:S,value:S.find((0,A.propEq)("value",m)),onChange:b,TextFieldProps:{"data-reltio-id":"relation-filter"}})),o().createElement(Pr.Z,{rowClasses:T,rowsData:p,LogicOperatorComponent:sa,AttributeSelectorComponent:ma,ValuesEditorComponent:Xr,ActionsComponent:Vr,FilterSelectorComponent:ra,relationTypeUri:u,dispatchGroupAction:E,metadata:f}))};ya.propTypes={group:$r,parentEntityTypeUri:s().string,dispatch:s().func};const ba=(0,n.memo)(ya),Ea="1px solid #6CACE4",ga=24,ha=(0,yr.Z)({decorator:e=>{let{verticalGap:t=ga}=e;return{marginLeft:"17px",borderLeft:Ea,position:"relative","&:last-child":{borderLeft:"none","&:before":{borderLeft:Ea}},"&:before":{top:0,height:t,width:9,borderBottom:Ea,content:'""',display:"block",left:"0"},"&:after":{content:'""',position:"absolute",left:9,top:t-2+"px",borderColor:"transparent",borderLeftColor:"#6CACE4",borderStyle:"solid",borderWidth:"2.5px",borderLeftWidth:"5px"}}},plain:{"&$decorator":{"&:before":{width:0},"&:after":{borderStyle:"none"}}},wrapper:{marginLeft:18,marginTop:-8}}),Ta=e=>{let{className:t,children:r,plain:a,enabled:n,verticalGap:i}=e;const l=ha({verticalGap:i});return n?o().createElement("div",{className:E()(l.decorator,{[l.plain]:a},t)},o().createElement("div",{className:l.wrapper},r)):r};Ta.propTypes={className:s().string,enabled:s().bool,plain:s().bool,children:s().node,verticalGap:s().number};const va=Ta,xa=e=>{let{block:{id:t,entity:r,relation:a,children:l},parentEntityTypeUri:s}=e;const c=Ar(),p=(0,i.useDispatch)(),u=(0,i.useSelector)(at.ZP.selectors.getMetadata),d=(0,n.useCallback)((()=>{return p((e=t,{type:v.DELETE_GROUPS_BLOCK,payload:{blockId:e}}));var e}),[t,p]),m=(0,n.useCallback)((()=>p(K(t))),[t,p]),f=r&&r.entityTypeUri,y=((e,t)=>{const r=(e.entityTypes||[]).filter(nt.oDv);if(!t)return r;const{relationTypeUri:a,direction:n}=t,[o,i]=(0,nt.j1S)(e,a),l=n===nt.Nsj.IN?o:i;return r.filter((t=>{let{uri:r}=t;return(0,nt.lhE)(e,l,r)}))})(u,a),b=!(!s||null!=a&&a.relationTypeUri);return o().createElement("div",{className:c.container},o().createElement("div",{className:c.groups},a&&o().createElement(o().Fragment,null,o().createElement(ba,{group:a,parentEntityTypeUri:s,dispatch:p}),o().createElement(Or.Z,{className:c.divider})),o().createElement(pa,{group:r,entityTypes:y,dispatch:p,disabled:b})),o().createElement("div",{className:c.actions},o().createElement(Cr.k,{tooltipTitle:P().text("Delete"),tooltipPlacement:"bottom",icon:Sr.default,size:"M",onClick:d})),(l||[]).map((e=>o().createElement(va,{key:e.id,enabled:!0},o().createElement(xa,{parentEntityTypeUri:f,block:e})))),f&&o().createElement(va,{enabled:!0},o().createElement(Rr.Z,{color:"primary",onClick:m,className:c.addRelationButton,"data-reltio-id":"add-relation-button"},o().createElement(_r.Z,null),o().createElement("div",null,P().text("Add relation")))))};xa.propTypes={block:Kr,parentEntityTypeUri:s().string};const Sa=(0,n.memo)(xa),Oa=(0,yr.Z)((()=>({root:{display:"flex",overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0},mainContent:{width:"100%",background:"white",display:"flex",flexDirection:"column"}})));var Ra=r(90436);function _a(){return _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_a.apply(this,arguments)}const Ca=e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["styles"]);return o().createElement("svg",_a({xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},r),o().createElement("g",null,o().createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),o().createElement("g",null,o().createElement("path",{fillOpacity:".54",d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})))},Aa=(0,yr.Z)({container:{marginLeft:"auto"}}),Ia=()=>{const e=(0,i.useDispatch)(),t=Aa(),r=(0,i.useSelector)(at.ZP.selectors.getCanUserMakeExport),{consoleExportApp:a}=(0,i.useSelector)(Pt),l=(0,n.useCallback)((()=>{var t;e((t=a,{type:v.EXPORT_RESULTS,payload:{consoleExportApp:t}}))}),[a,e]);return o().createElement("div",{className:t.container},r&&a&&o().createElement(Cr.k,{icon:Ca,size:"L",onClick:l,tooltipTitle:P().text("Export"),"data-reltio-id":"reltio-relationship-search-actions-menu-export"}))},Pa=(0,yr.Z)((e=>({container:{height:"63px",display:"flex",alignItems:"center",padding:"0 20px",flexShrink:0},captionWrapper:{marginTop:"-2px",flexShrink:"0"},profileText:{paddingLeft:"8px",color:e.palette.text.secondary},profileNumber:{fontWeight:"600"}}))),wa=()=>{const e=Pa(),t=(0,i.useSelector)(pr);return o().createElement("div",{className:e.container},o().createElement("div",{className:e.captionWrapper},o().createElement(Ra.Z,{component:"span",className:e.profileNumber,"data-reltio-id":"total-search-result"},P().number(t,"0,0")),o().createElement(Ra.Z,{variant:"body2",component:"span",className:e.profileText},P().text("total profiles"))),o().createElement(Ia,null))};var Na=r(79002),La=r(87378),ka=r(66072),Ua=r(42011);const ja=e=>e===L;var Za=r(99390);const Da=(0,yr.Z)((()=>({container:{display:"flex",margin:"0 20px",height:"59px",flexShrink:"0",alignItems:"center"},title:{flexGrow:"1",width:"0"},actionsBar:{display:"flex",flexDirection:"row",alignItems:"center",marginLeft:"13px"},splitter:{height:"32px",marginRight:"16px",marginLeft:"14px"}})));var Ha=r(4270);const za=(0,yr.Z)((()=>({button:{minWidth:"90px",padding:"8px 12px"}})));function Ga(){return Ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ga.apply(this,arguments)}function Ba(){return Ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ba.apply(this,arguments)}const Ma=[{id:L,tooltipTitle:P().text("Table view"),title:P().text("Table"),Icon:e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["styles"]);return o().createElement("svg",Ga({width:"25",height:"24",viewBox:"0 0 25 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r),o().createElement("defs",null,o().createElement("path",{d:"M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 18H5v-8h2v8zM7 8H5V6h2v2zm6 10H9v-8h4v8zm0-10H9V6h4v2zm6 10h-4v-8h4v8zm0-10h-4V6h4v2z",id:"svg848939849a"})),o().createElement("g",{stroke:"none",strokeWidth:"1"},o().createElement("g",{transform:"translate(.2)"},o().createElement("mask",{id:"svg848939849b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg848939849a"})),o().createElement("g",{mask:"url(#svg848939849b)"},o().createElement("g",null,o().createElement("g",null,o().createElement("path",{d:"M0 0h24v24H0z"})))))))}},{id:k,tooltipTitle:P().text("List view"),title:P().text("List"),Icon:e=>{let{styles:t={}}=e,r=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["styles"]);return o().createElement("svg",Ba({width:"25",height:"24",viewBox:"0 0 25 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r),o().createElement("defs",null,o().createElement("path",{d:"M20 15.5v3H9v-3h11zm-14 0a1 1 0 011 1v1a1 1 0 01-1 1H5a1 1 0 01-1-1v-1a1 1 0 011-1h1zm14-5v3H9v-3h11zm-14 0a1 1 0 011 1v1a1 1 0 01-1 1H5a1 1 0 01-1-1v-1a1 1 0 011-1h1zm14-5v3H9v-3h11zm-14 0a1 1 0 011 1v1a1 1 0 01-1 1H5a1 1 0 01-1-1v-1a1 1 0 011-1h1z",id:"svg3472870421a"})),o().createElement("g",{stroke:"none",strokeWidth:"1"},o().createElement("g",{transform:"translate(.2)"},o().createElement("mask",{id:"svg3472870421b",fill:"#fff"},o().createElement("use",{xlinkHref:"#svg3472870421a"})),o().createElement("g",{mask:"url(#svg3472870421b)"},o().createElement("path",{d:"M0 0h24v24H0z"})))))}}],Fa=e=>{let{className:t}=e;const r=za(),a=(0,i.useDispatch)(),n=(0,i.useSelector)(wt);return o().createElement(Ha.Z,{className:t,classes:{button:r.button},modes:Ma,modeId:n,onChange:e=>{n!==e&&a((e=>({type:R,payload:e}))(e))}})};Fa.propTypes={className:s().string};const Va=Fa,Ya=()=>{const e=Da(),t=(0,i.useSelector)(at.ZP.selectors.getMetadata),r=(0,i.useSelector)(Nt),a=(0,i.useSelector)(dr),l=(0,i.useDispatch)(),s=(0,i.useSelector)(wt),c=(0,n.useCallback)((e=>{const t=(0,Ye.tU)(e,r);l(me(e)),t&&l(de())}),[l,r]);return o().createElement("div",{className:e.container},o().createElement(Ra.Z,{className:e.title},(0,nt.jFi)(t,{type:a})," ",P().text("profiles")),o().createElement("div",{className:e.actionsBar},ja(s)&&o().createElement(o().Fragment,null,o().createElement(Za.Z,{entityTypeUri:a,headColumns:r,onSelectColumns:c}),o().createElement(Or.Z,{orientation:"vertical",className:e.splitter})),o().createElement(Va,null)))};var Wa=r(5592);function Xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qa=e=>{let{entities:t,basicTableRef:r}=e;const a=(0,i.useDispatch)(),l=(0,i.useSelector)(at.ZP.selectors.getMetadata),s=(0,i.useSelector)(dr),c=(0,i.useSelector)(Nt),p=(0,n.useMemo)((()=>(0,Ye.oq)(l,s,c)),[l,s,c]),u=(0,n.useCallback)((e=>{let{what:t,where:r}=e;const n=c.slice();[n[t.columnIndex],n[r.columnIndex]]=[n[r.columnIndex],n[t.columnIndex]],a(me(n))}),[c,a]),d=(0,n.useCallback)((e=>{let{columns:t}=e;const r=(0,Ye.tU)(t,c);a(me(t)),r&&a(de())}),[c,a]),m=(0,n.useCallback)((e=>{const t=c.map(((t,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){Xa(e,t,r[t])}))}return e}({},t,{size:e[r].size})));a(me(t))}),[c,a]);return o().createElement(Wa.Z,{entities:t,entityTypeUri:s,headColumns:c,additionalColumns:p,dndColumnReorderingEnabled:!0,onReorderingColumn:u,onChangeColumnsList:d,onChangeColumnsSize:m,entitiesTableRef:r})};qa.propTypes={entities:s().arrayOf(nt.pyR),basicTableRef:s().shape({current:s().object})};const $a=qa,Ka=(0,yr.Z)((()=>({container:{flexGrow:1,display:"flex",flexDirection:"column",position:"relative",overflow:"hidden"},pagination:{flexGrow:0,height:"52px"},listContainer:{overflowY:"auto",flex:1},tableContainer:{display:"flex",flexDirection:"column",height:"100%"}}))),Qa=()=>{const e=Ka(),t=(0,i.useDispatch)(),r=(0,n.useRef)(),a=(0,i.useSelector)(pr),l=(0,i.useSelector)(wt),s=ja(l),c=(0,i.useSelector)(ur),p=(0,i.useSelector)(sr),u=(0,i.useSelector)(cr),d=(0,i.useSelector)(At),m=(0,i.useSelector)(It),f=d||m,y=(0,n.useCallback)((e=>t(pe(e))),[t]),b=(0,n.useCallback)((e=>t((e=>({type:v.CHANGE_ROWS_PER_PAGE,payload:{number:e}}))(e))),[t]);(0,n.useEffect)((()=>{r.current&&(r.current.scrollTop=0)}),[c]);const E=(0,n.useRef)(null);return o().createElement("div",{className:e.container},f&&o().createElement(La.Z,null),o().createElement(Ya,null),a?o().createElement("div",{className:s?e.tableContainer:e.listContainer,ref:r,"data-reltio-id":"result-container"},s?o().createElement($a,{entities:c,basicTableRef:E}):o().createElement(ka.Z,{entities:c}),a>U[0]&&o().createElement("div",{className:e.pagination},o().createElement(Ua.Z,{rowsPerPageOptions:U,count:a,page:p,onChangePage:y,rowsPerPage:u,onChangeRowsPerPage:b,basicTableRef:E}))):(e=>e?null:o().createElement(Na.ZP,{LogoRenderer:Na.B9.SEARCH_RESULTS,text:P().text("No results found."),secondaryText:P().text("Try adjusting your search or filter to find what you're looking for."),variant:Na.tC.embedded}))(f))};var Ja=r(1585),en=r(57676),tn=r(78223),rn=r(87086);const an="1px solid rgba(0, 0, 0, 0.33)",nn=(0,yr.Z)((e=>({drawer:{flex:"0 0 288px"},docked:{flex:"0 0 288px"},drawerPaper:{width:288,display:"flex",flexDirection:"column",position:"relative",borderRight:an},drawerScrollableArea:{display:"flex",flexDirection:"column",overflow:"auto",height:"100%"},menuIcon:{width:"24px",height:"24px",flexShrink:0,marginRight:"12px"},buttonRoot:{flexShrink:0},buttonExtended:{width:"256px",margin:"8px 16px",padding:"12px",backgroundColor:"rgba(0,0,0,0)",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)","&:hover":{backgroundColor:"rgba(0,0,0,0.1)"}},buttonLabel:{flexGrow:1,textAlign:"left",color:e.palette.text.secondary,fontSize:"14px",fontWeight:500,letterSpacing:0,lineHeight:"16px"},caption:{lineHeight:"16px",fontSize:"14px",fontWeight:100,color:"rgba(0,0,0, 0.54)",letterSpacing:"normal",display:"flex",padding:"23px 0 11px 16px",flexShrink:0},withBottomBorder:{borderBottom:an,boxShadow:"0 1px 3px 0 rgba(0,0,0,0.12)"}}))),on=(0,yr.Z)((()=>({container:{position:"relative",padding:"0 16px"},actions:{position:"absolute",top:0,right:"4px",paddingTop:0}})));var ln=r(29522);const sn=(0,yr.Z)((e=>({container:{paddingBottom:"8px"},label:{fontSize:"13px",fontWeight:600,letterSpacing:0,lineHeight:"15px",marginBottom:"2px"},readableQuery:{"& > span":{color:e.palette.text.secondary,fontSize:"13px",letterSpacing:0,lineHeight:"15px"}}}))),cn=e=>{let{label:t,filter:r,attributes:a}=e;const l=sn(),s=(0,i.useSelector)(at.ZP.selectors.getAttributePresentations),c=(0,i.useSelector)(at.ZP.selectors.getMetadata),p=(0,n.useMemo)((()=>(0,nt.skb)(c,s,{},a)),[c,s,a]);return o().createElement("div",{className:l.container},o().createElement("div",{className:l.label},t,r!==w.EXISTS&&N[r]?` [${N[r]}]`:""),o().createElement("div",null,o().createElement(ln.Z,{className:l.readableQuery,readableQuery:p})))};cn.propTypes={label:s().string,filter:s().string,attributes:s().arrayOf(Ur.Xw)};const pn=cn,un=e=>{let{group:t}=e;const{attributes:r,relationTypeUri:a,direction:n,filter:l}=t,s=(0,i.useSelector)(at.ZP.selectors.getMetadata),c=(0,nt.V3K)(s,a),p=n===nt.Nsj.OUT?null==c?void 0:c.startObject:null==c?void 0:c.endObject,u=(0,nt.PjQ)(p)||(null==c?void 0:c.label);return o().createElement(pn,{label:u,filter:l,attributes:r})};un.propTypes={group:$r};const dn=un,mn=e=>{let{group:t}=e;const{attributes:r,entityTypeUri:a}=t,n=(0,i.useSelector)(at.ZP.selectors.getMetadata),l=(0,nt.jFi)(n,{type:a});return o().createElement(pn,{label:l,attributes:r})};mn.propTypes={group:qr};const fn=mn,yn=e=>{let{block:{entity:t,relation:r,children:a}}=e;const n=!!r;return o().createElement(o().Fragment,null,r&&r.relationTypeUri&&o().createElement(va,{enabled:!0,verticalGap:15},o().createElement(dn,{group:r})),t&&t.entityTypeUri&&o().createElement(va,{enabled:n,verticalGap:15},o().createElement(fn,{group:t}),(a||[]).map((e=>o().createElement(yn,{key:e.id,block:e})))))};yn.propTypes={block:Kr};const bn=(0,n.memo)(yn),En=()=>{const e=on(),t=(0,i.useDispatch)(),r=(0,i.useSelector)(ir),a=(0,n.useCallback)((()=>t(se())),[t]);return r&&o().createElement("div",{className:e.container},o().createElement("div",null,o().createElement(bn,{block:r})),o().createElement(Cr.k,{className:e.actions,tooltipTitle:P().text("Delete"),tooltipPlacement:"bottom",icon:Sr.default,size:"M",onClick:a}))},gn=(0,tn.Z)(Ja.Z),hn=()=>{const e=(0,i.useDispatch)(),[t,r]=(0,n.useState)(!0),a=(0,n.useRef)(null),l=(0,n.useCallback)((()=>{r(a.current.scrollTop<=0)}),[]),s=(0,n.useCallback)((()=>{e(be(!1))}),[e]),c=nn();return o().createElement(rn.Z,{variant:"persistent",anchor:"left",open:!0,classes:{root:c.drawer,paper:c.drawerPaper,docked:c.docked}},o().createElement(gn,{tooltipTitle:P().text("Graph Search"),tooltipPlacement:"bottom-end",variant:"extended",classes:{root:c.buttonRoot,extended:c.buttonExtended},onClick:s},o().createElement(en.Z,{color:"primary",className:c.menuIcon}),o().createElement("span",{className:c.buttonLabel},P().text("Graph Search"))),o().createElement(Ra.Z,{variant:"caption",className:E()(c.caption,{[c.withBottomBorder]:!t})},P().text("Search query")),o().createElement("div",{ref:a,className:c.drawerScrollableArea,onScroll:l,"data-reltio-id":"readable-search-query"},o().createElement(En,null)))},Tn=e=>{let{className:t}=e;const r=Oa();return o().createElement("div",{className:E()(r.root,t)},o().createElement(hn,null),o().createElement("div",{className:r.mainContent},o().createElement(wa,null),o().createElement(Or.Z,null),o().createElement(Qa,null)))};Tn.propTypes={className:s().oneOfType([s().string,s().object])};const vn=Tn;var xn=r(15223),Sn=r(70331);const On=(0,yr.Z)({footer:{boxShadow:"0 -1px 0 0 rgba(0,0,0,0.12)"},actionButtons:{justifyContent:"flex-end",minHeight:"56px",padding:"0 8px"},button:{marginRight:"8px"}}),Rn=e=>{let{className:t}=e;const r=On(),a=(0,i.useDispatch)(),n=(0,i.useSelector)(lr);return o().createElement(Sn.Z,{position:"static",color:"transparent",className:E()(r.footer,t)},o().createElement(xn.Z,{className:r.actionButtons},o().createElement(Rr.Z,{onClick:()=>{a(se())},className:r.button},P().text("Cancel")),o().createElement(Rr.Z,{disabled:n,onClick:()=>{a(ce())},color:"primary",variant:"contained","data-reltio-id":"relation-search-button"},P().text("Search"))))};Rn.propTypes={className:s().string};const _n=(0,yr.Z)((e=>({toolbar:{display:"flex",flexShrink:0,flexDirection:"column",alignItems:"flex-start",minHeight:"72px",paddingLeft:"16px",paddingRight:"16px"},mainArea:{display:"flex",flexDirection:"row",alignItems:"center",paddingTop:"8px"},title:{color:e.palette.text.secondary,fontSize:"14px",letterSpacing:0,lineHeight:"16px",marginRight:"8px"},clearButton:{}}))),Cn=e=>{let{children:t,className:r}=e;const a=_n(),l=(0,i.useDispatch)(),s=(0,i.useSelector)(ir),c=(0,nt.O27)(s),p=(0,n.useCallback)((()=>l(se())),[l]);return o().createElement(xn.Z,{className:E()(a.toolbar,r)},o().createElement("div",{className:a.mainArea},o().createElement(Ra.Z,{className:a.title},P().text("Search for")),o().createElement(Rr.Z,{color:"primary",className:a.clearButton,onClick:p,disabled:c},P().text("clear"))),t)};Cn.propTypes={className:s().string,children:s().node};const An=(0,yr.Z)({container:{display:"flex",flexDirection:"column",height:"100%",backgroundColor:"#FAFAFA",position:"absolute",top:0,left:0,right:0,bottom:0},header:{marginLeft:"104px",marginRight:"132px"},headerWithBottomBorder:{boxShadow:"0 1px 1px -1px rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px -3px rgba(0,0,0,0.2)",zIndex:1},content:{flex:"1 0 0px",paddingRight:"132px",paddingLeft:"104px",overflow:"auto"},"@global div[role=tooltip]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"},"@global div[role=presentation]":{fontFamily:"Roboto, Helvetica, Arial, sans-serif"}}),In=e=>{let{config:t}=e;const r=An(),a=(0,i.useDispatch)();(0,n.useEffect)((()=>{a((e=>({type:O,payload:e}))(t))}),[t,a]);const l=(0,n.useRef)(),s=(0,i.useSelector)(ir),c=(0,i.useSelector)(Lt),p=(0,i.useSelector)(kt),[u,d]=(0,n.useState)(!0),m=(0,n.useCallback)((()=>{d(l.current&&l.current.scrollTop<=0)}),[]),f=(0,n.useCallback)((e=>a(K(null,e))),[a]);return p?o().createElement("div",{className:r.container},!c&&o().createElement(Cn,{className:E()(r.header,{[r.headerWithBottomBorder]:!u})}),o().createElement("div",{className:r.content,ref:l,onScroll:m},c?o().createElement(vn,null):s?o().createElement(Sa,{block:s}):o().createElement(xr,{onChange:f})),!c&&s&&o().createElement(Rn,null)):null};In.propTypes={config:s().object.isRequired,state:s().object};const Pn=In;var wn=r(66780),Nn=r(97010);const Ln=(0,c.createGenerateClassName)({productionPrefix:"relationshipSearch",disableGlobal:!0}),kn=e=>{let{config:t,store:r,onResize:a=m.ZT}=e;return o().createElement(i.Provider,{store:r},o().createElement(f.m.Provider,{value:t.id},o().createElement(wn.DynamicModuleLoader,{modules:[{id:or,reducerMap:{[or]:(0,Ee.combineReducers)({search:Ve,ui:rt})},sagas:[...Xt,rr,...nr],initialActions:[]}]},o().createElement(c.StylesProvider,{generateClassName:Ln},o().createElement(p.MuiPickersUtilsProvider,{utils:u.Z},o().createElement(d.Z,{handleHeight:!0,onResize:a}),t&&o().createElement(Pn,{config:t}),o().createElement(y.Z,null))))))};kn.propTypes={config:s().object,store:s().object,onResize:s().func};const Un={getSearchPage:sr,getSearchRowsPerPage:cr,getTotal:pr},jn={updateState:e=>({type:v.UPDATE_STATE,payload:e})},Zn=kn,{default:Dn,actions:Hn,constants:zn}=a},98018:(e,t,r)=>{t.ZP=void 0;var a=d(r(54053)),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(r(24328)),o=d(r(99340)),i=d(r(77224)),l=d(r(13980)),s=d(r(80835)),c=d(r(97339)),p=d(r(71153));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function E(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=d(r(89998)).default[500],x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(l,e);var t,r,o=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var r,a=h(e);if(t()){var n=h(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return E(this,r)}}(l);function l(){var e;f(this,l);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return T(g(e=o.call.apply(o,[this].concat(r))),"state",{error:!1}),T(g(e),"handleError",(function(){e.setState({error:!0})})),e}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.entityType,r=e.storagePath,o=e.classes,l=e.backgroundColor,c=e.color,u=e.className,d=t.typeIcon||t.typeImage;if(d&&!this.state.error)return n.default.createElement(a.default,{className:(0,p.default)(u,o.avatar),style:{border:"2px solid ".concat(t.typeColor||v),backgroundColor:"#FFFFFF"},src:r+d,imgProps:{onError:this.handleError}});var m=(0,s.default)(t);return n.default.createElement(a.default,{className:(0,p.default)(u,o.avatar),style:{border:"2px solid ".concat(t.typeColor||v),backgroundColor:l||t.typeColor||v,color:c}},m&&m.charAt(0)||n.default.createElement(i.default,null))}}])&&y(t.prototype,r),l}(n.PureComponent);T(x,"propTypes",{entityType:l.default.shape({typeColor:l.default.string,typeIcon:l.default.string,typeImage:l.default.string,label:l.default.string,uri:l.default.string}),className:l.default.string,classes:l.default.shape({avatar:l.default.string}),storagePath:l.default.string,backgroundColor:l.default.string,color:l.default.string}),T(x,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var S=(0,o.default)(c.default)(x);t.ZP=S},97339:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},80835:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?(0,n.default)(e,"label")||(0,n.default)(e,"uri","").slice((0,n.default)(e,"uri","").lastIndexOf("/")+1):null};var a,n=(a=r(72579))&&a.__esModule?a:{default:a}},44711:(e,t,r)=>{r.d(t,{ZP:()=>i}),r(22220),r(58527),r(51068),r(75182),r(81260);r(64659),r(4730),r(38111),r(96474),r(50591),r(75630);var a=r(24328),n=(r(36631),r(27377),r(75047),r(58921),r(54573)),o=(r(78951),r(19976),r(61950),r(64486));r(5049);a.Component;const i=(0,o.m)(n.S)}}]);