PageSourceSearch

https://otium.pl/_next/static/chunks/535-d56811d2fa41a107.js

js otium.pl collected 2026-10-10 01:45:06 UTC 73,169 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[535],{4280:function(e){"use strict";function t(e,t){this.x=e,this.y=t}e.exports=t,t.prototype={clone:function(){return new t(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),o=t*this.x-n*this.y,r=n*this.x+t*this.y;return this.x=o,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),o=Math.sin(e),r=t.x+n*(this.x-t.x)-o*(this.y-t.y),i=t.y+o*(this.x-t.x)+n*(this.y-t.y);return this.x=r,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},t.convert=function(e){return e instanceof t?e:Array.isArray(e)?new t(e[0],e[1]):e}},161:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,o,i,s){if("function"!=typeof o)throw TypeError("The listener must be a function");var a=new r(o,i||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(n=!1)),a.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)t.call(e,o)&&r.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,s=Array(i);r<i;r++)s[r]=o[r].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},a.prototype.emit=function(e,t,o,r,i,s){var a=n?n+e:e;if(!this._events[a])return!1;var l,u,c=this._events[a],p=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),p){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,o),!0;case 4:return c.fn.call(c.context,t,o,r),!0;case 5:return c.fn.call(c.context,t,o,r,i),!0;case 6:return c.fn.call(c.context,t,o,r,i,s),!0}for(u=1,l=Array(p-1);u<p;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),p){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,o);break;case 4:c[u].fn.call(c[u].context,t,o,r);break;default:if(!l)for(d=1,l=Array(p-1);d<p;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,o,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||o&&a.context!==o||s(this,i);else{for(var l=0,u=[],c=a.length;l<c;l++)(a[l].fn!==t||r&&!a[l].once||o&&a[l].context!==o)&&u.push(a[l]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},3663:function(e,t,n){"use strict";n.d(t,{ZP:function(){return eM}});var o=n(2784),r=n(3980),i=n.n(r),s=n(8316),a=n(161),l=n.n(a),u=function e(t,n){if(t===n)return!0;
1if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var o,r,i,s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n};let c="__googleMapsScriptId";(k=P||(P={}))[k.INITIALIZED=0]="INITIALIZED",k[k.LOADING=1]="LOADING",k[k.SUCCESS=2]="SUCCESS",k[k.FAILURE=3]="FAILURE";class p{constructor({apiKey:e,authReferrerPolicy:t,channel:n,client:o,id:r=c,language:i,libraries:s=[],mapIds:a,nonce:l,region:d,retries:h=3,url:f="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=n,this.client=o,this.id=r||c,this.language=i,this.libraries=s,this.mapIds=a,this.nonce=l,this.region=d,this.retries=h,this.url=f,this.version=m,p.instance){if(!u(this.options,p.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(p.instance.options)}`);return p.instance}p.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,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?P.FAILURE:this.done?P.SUCCESS:this.loading?P.LOADING:P.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",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(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}let n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach(e=>!n[e]&&delete n[e]),(null===(t=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,n,o,r="The Google Maps JavaScript API",i="google",s="importLibrary",a="__ib__",l=document,u=window;u=u[i]||(u[i]={});let c=u.maps||(u.maps={}),p=new Set,d=new URLSearchParams,h=()=>t||(t=new Promise((s,u)=>{var h,f,m,g;return h=this,f=void 0,m=void 0,g=function*(){var h;for(o in yield n=l.createElement("script"),n.id=this.id,d.set("libraries",[...p]+""),e)d.set(o.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[o]);d.set("callback",i+".maps."+a),n.src=this.url+"?"+d,c[a]=s,n.onerror=()=>t=u(Error(r+" could not load.")),n.nonce=this.nonce||(null===(h=l.querySelector("script[nonce]"))||void 0===h?void 0:h.nonce)||"",l.head.append(n)},new(m||(m=Promise))(function(e,t){function n(e){try{r(g.next(e))}catch(e){t(e)}}function o(e){try{r(g.throw(e))}catch(e){t(e)}}function r(t){var r;t.done?e(t.value):((r=t.value)instanceof m?r:new m(function(e){e(r)})).then(n,o)}r((g=g.apply(h,f||[])).next())})}));c[s]?console.warn(r+" only loads once. Ignoring:",e):c[s]=(e,...t)=>p.add(e)&&h().then(()=>c[s](e,...t))})(n);let o=this.libraries.map(e=>this.importLibrary(e));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),e=>{let t=new ErrorEvent("error",{error:e});this.loadErrorCallback(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){let e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e
1=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}var d=n(4280),h=n.n(d);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var v={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},_=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(){return!1},n.render=function(){return o.createElement("div",{ref:this.props.registerChild,style:v})},t}(o.Component),y=function(e){function t(t){var n;return(n=e.call(this)||this).gmapInstance=t,n}m(t,e);var n=t.prototype;return n.getChildren=function(){return this.gmapInstance.props.children},n.getMousePosition=function(){return this.gmapInstance.mouse_},n.getUpdateCounter=function(){return this.gmapInstance.updateCounter_},n.dispose=function(){this.gmapInstance=null,this.removeAllListeners()},t}(l()),C=function(e,t){for(var n=f({},(function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e),e)),o=0;o<t.length;o++){var r=t[o];r in n&&delete n[r]}return n},b=Object.prototype.hasOwnProperty;function w(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(w(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++)if(!b.call(t,n[r])||!w(e[n[r]],t[n[r]]))return!1;return!0}var S={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},x={width:0,height:0,left:0,top:0,backgroundColor:"transparent",position:"absolute"},E=function(e){function t(t){var n;return(n=e.call(this,t)||this)._getState=function(){return{children:n.props.dispatcher.getChildren(),updateCounter:n.props.dispatcher.getUpdateCounter()}},n._onChangeHandler=function(){if(n.dimensionsCache_){var e=(n.state.children||[]).length,t=n._getState();n.setState(t,function(){return(t.children||[]).length!==e&&n._onMouseChangeHandler()})}},n._onChildClick=function(){n.props.onChildClick&&n.hoverChildProps_&&n.props.onChildClick(n.hoverKey_,n.hoverChildProps_)},n._onChildMouseDown=function(){n.props.onChildMouseDown&&n.hoverChildProps_&&n.props.onChildMouseDown(n.hoverKey_,n.hoverChildProps_)},n._onChildMouseEnter=function(e,t){n.dimensionsCache_&&(n.props.onChildMouseEnter&&n.props.onChildMouseEnter(e,t),n.hoverChildProps_=t,n.hoverKey_=e,n.setState({hoverKey:e}))},n._onChildMouseLeave=function(){if(n.dimensionsCache_){var e=n.hoverKey_;null!=e&&(n.props.onChildMouseLeave&&n.props.onChildMouseLeave(e,n.hoverChildProps_),n.hoverKey_=null,n.hoverChildProps_=null,n.setState({hoverKey:null}))}},n._onMouseAllow=function(e){e||n._onChildMouseLeave(),n.allowMouse_=e},n._onMouseChangeHandler=function(){n.allowMouse_&&n._onMouseChangeHandlerRaf()},n._onMouseChangeHandlerRaf=function(){if(n.dimensionsCache_){var e=n.props.dispatcher.getMousePosition();if(e){var t=[],r=n.props.getHoverDistance();if(o.Children.forEach(n.state.children,function(o,i){if(o&&(void 0!==o.props.latLng||void 0!==o.props.lat||void 0!==o.props.lng)){var s=null!=o.key?o.key:i,a=n.props.distanceToMouse(n.dimensionsCache_[s],e,o.props);a<r&&t.push({key:s,dist:a,props:o.props})}}),t.length){t.sort(function(e,t){return e.dist-t.dist});var i=t[0].key,s=t[0].props;n.hoverKey_!==i&&(n._onChildMouseLeave(),n._onChildMouseEnter(i,s))}else n._onChildMouseLeave()}else n._onChildMouseLeave()}},n._getDimensions=function(e){return n.dimensionsCache_[e]},n.dimensionsCache_={},n.hoverKey_=null,n.hoverChildProps_=null,n.allowMouse_=!0,n.state=f({},n._getState(),{hoverKey:null}),n}m(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.dispatcher.on("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.on("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.on("kON_CLICK",this._onChildClick),this.props.dispatcher.on("kON_MDOWN",this._onChildMouseDown)},n.shouldComponentUpdate=function(e,t){return!0===this.props.experimental?!M(this.props,e)||!M(C(this.state,["hoverKey"]),C(t,["hoverKey"])):!M(this.props,e)||!M(this.state,t)},n.componentWillUnmount=function(){this.props.dispatcher.removeListener("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.removeListener("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.removeListener("kON_CLICK",this._onChildClick),this.props.dispatcher.removeListener("kON_MDOWN",this._onChildMouseDown),this.dimensionsCache_=null},n.render=function(){var e=this,t=this.props.style||S;this.dimensionsCache_={};var n=o.Children.map(this.state.children,function(t,n){if(t){if(void 0===t.props.latLng&&void 0===t.props.lat&&void 0===t.props.lng)return o.cloneElement(t,{$geoService:e.props.geoService,$onMouseAllow:e._onMouseAllow,$prerender:e.props.prerender});var r=void 0!==t.props.latLng?t.props.latLng:{lat:t.props.lat,lng:t.props.lng},i=e.props.insideMapPanes?e.props.geoService.fromLatLngToDivPixel(r):e.props.geoService.fromLatLngToCenterPixel(r),s={left:i.x,top:i.y};if(void 0!==t.props.seLatLng||void 0!==t.props.seLat&&void 0!==t.props.seLng){var a=void 0!==t.props.seLatLng?t.props.seLatLng:{lat:t.props.seLat,lng:t.props.seLng},l=e.props.insideMapPanes?e.props.geoService.fromLatLngToDivPixel(a):e.props.geoService.fromLatLngToCenterPixel(a);s.width=l.x-i.x,s.height=l.y-i.y}var u=e.props.geoService.fromLatLngToContainerPixel(r),c=null!=t.key?t.key:n;return e.dimensionsCache_[c]=f({x:u.x,y:u.y},r),o.createElement("div",{key:c,style:f({},x,s),className:t.props.$markerHolderClassName},o.cloneElement(t,{$hover:c===e.state.hoverKey,$getDimensions:e._getDimensions,$dimensionKey:c,$geoService:e.props.geoService,$onMouseAllow:e._onMouseAllow,$prerender:e.props.prerender}))}});return o.createElement("div",{style:t},n)},t}(o.Component);E.propTypes={geoService:i().any,style:i().any,distanceToMouse:i().func,dispatcher:i().any,onChildClick:i().func,onChildMouseDown:i().func,onChildMouseLeave:i().func,onChildMouseEnter:i().func,getHoverDistance:i().func,insideMapPanes:i().bool,prerender:i().bool},E.defaultProps={insideMapPanes:!1,prerender:!1};var L={width:"50%",height:"50%",left:"50%",top:"50%",margin:0,padding:0,position:"absolute"};function O(e){return o.createElement("div",{style:L},o.createElement(E,f({},e,{prerender:!0})))}var k,P,T,D,I,A=["key"],z=new Promise(function(e){I=e}),R=function(e,t){if(!e)return z;if(D)return D;e.libraries||(e.libraries=[]);var n=[].concat(e.libraries);if(t&&(0!==n.length&&n.includes("visualization")||n.push("visualization"),console.warn("heatmapLibrary will be deprecated 
1in the future. Please use { libraries: ['visualization'] } in bootstrapURLKeys property instead")),"undefined"==typeof window)throw Error("google map cannot be loaded outside browser env");var o=e.key,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}(e,A);return T||(T=new p(f({apiKey:o||""},r,{libraries:n}))),D=T.load().then(function(){return I(window.google.maps),window.google.maps}),I(D),D};function j(e,t,n){var o=n-t;return e===n?e:((e-t)%o+o)%o+t}var N=function(){function e(e,t){if(isNaN(e)||isNaN(t))throw Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t}return e.prototype.wrap=function(){return new e(this.lat,j(this.lng,-180,180))},e}();N.convert=function(e){return e instanceof N?e:Array.isArray(e)?new N(e[0],e[1]):"lng"in e&&"lat"in e?new N(e.lat,e.lng):e};var Z=function(){function e(e,t,n){this.tileSize=e||512,this._minZoom=t||0,this._maxZoom=n||52,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this.zoom=0,this.center=new N(0,0),this.angle=0}var t=e.prototype;return t.zoomScale=function(e){return Math.pow(2,e)},t.scaleZoom=function(e){return Math.log(e)/Math.LN2},t.project=function(e,t){return new(h())(this.lngX(e.lng,t),this.latY(e.lat,t))},t.unproject=function(e,t){return new N(this.yLat(e.y,t),this.xLng(e.x,t))},t.lngX=function(e,t){return(180+e)*(t||this.worldSize)/360},t.latY=function(e,t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))*(t||this.worldSize)/360},t.xLng=function(e,t){return 360*e/(t||this.worldSize)-180},t.yLat=function(e,t){return 360/Math.PI*Math.atan(Math.exp((180-360*e/(t||this.worldSize))*Math.PI/180))-90},t.locationPoint=function(e){var t=this.project(e);return this.centerPoint._sub(this.point._sub(t)._rotate(this.angle))},t.pointLocation=function(e){var t=this.centerPoint._sub(e)._rotate(-this.angle);return this.unproject(this.point.sub(t))},function(e,t){for(var n,o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?n:String(n),r)}}(e.prototype,[{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom=e,this.zoom=Math.max(this.zoom,e)}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom=e,this.zoom=Math.min(this.zoom,e)}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerPoint",get:function(){return new(h())(0,0)}},{key:"size",get:function(){return new(h())(this.width,this.height)}},{key:"bearing",get:function(){return-this.angle/Math.PI*180},set:function(e){this.angle=-j(e,-180,180)*Math.PI/180}},{key:"zoom",get:function(){return this._zoom},set:function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom}},{key:"x",get:function(){return this.lngX(this.center.lng)}},{key:"y",get:function(){return this.latY(this.center.lat)}},{key:"point",get:function(){return new(h())(this.x,this.y)}}]),Object.defineProperty(e,"prototype",{writable:!1}),e}(),H=function(){function e(e){this.hasSize_=!1,this.hasView_=!1,this.transform_=new Z(e||512)}var t=e.prototype;return t.setView=function(e,t,n){this.transform_.center=N.convert(e),this.transform_.zoom=+t,this.transform_.bearing=+n,this.hasView_=!0},t.setViewSize=function(e,t){this.transform_.width=e,this.transform_.height=t,this.hasSize_=!0},t.setMapCanvasProjection=function(e,t){this.maps_=e,this.mapCanvasProjection_=t},t.canProject=function(){return this.hasSize_&&this.hasView_},t.hasSize=function(){return this.hasSize_},t.fromLatLngToCenterPixel=function(e){return this.transform_.locationPoint(N.convert(e))},t.fromLatLngToDivPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToDivPixel(t)}return this.fromLatLngToCenterPixel(e)},t.fromLatLngToContainerPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToContainerPixel(t)}var n=this.fromLatLngToCenterPixel(e);return n.x-=this.transform_.worldSize*Math.round(n.x/this.transform_.worldSize),n.x+=this.transform_.width/2,n.y+=this.transform_.height/2,n},t.fromContainerPixelToLatLng=function(e){if(this.mapCanvasProjection_){var t=this.mapCanvasProjection_.fromContainerPixelToLatLng(e);return{lat:t.lat(),lng:t.lng()}}var n=f({},e);n.x-=this.transform_.width/2,n.y-=this.transform_.height/2;var o=this.transform_.pointLocation(h().convert(n));return o.lng-=360*Math.round(o.lng/360),o},t.getWidth=function(){return this.transform_.width},t.getHeight=function(){return this.transform_.height},t.getZoom=function(){return this.transform_.zoom},t.getCenter=function(){return this.transform_.pointLocation({x:0,y:0})},t.getBounds=function(e,t){var n=e&&e[0]||0,o=e&&e[1]||0,r=e&&e[2]||0,i=e&&e[3]||0;if(this.getWidth()-o-i>0&&this.getHeight()-n-r>0){var s=this.transform_.pointLocation(h().convert({x:i-this.getWidth()/2,y:n-this.getHeight()/2})),a=this.transform_.pointLocation(h().convert({x:this.getWidth()/2-o,y:this.getHeight()/2-r})),l=[s.lat,s.lng,a.lat,a.lng,a.lat,s.lng,s.lat,a.lng];return t&&(l=l.map(function(e){return Math.round(e*t)/t})),l}return[0,0,0,0]},e}();function U(e){if(window.requestAnimationFrame)return window.requestAnimationFrame(e);var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?t(e):window.setTimeout(e,1e3/60)}var W=Math.log2?Math.log2:function(e){return Math.log(e)/Math.LN2};function V(e,t){return Object.keys(e).reduce(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{})}var B=function(e){if(null!==e&&"object"==typeof e){if(0===Object.keys(e).length)return!0}else if(null==e||""===e)return!0;return!1},K=Object.prototype.toString;function F(e){return"number"==typeof e||!!e&&"object"==typeof e&&"[object Number]"===K.call(e)}var G=null;function $(){if(G)return G;if("undefined"!=typeof navigator){var e=navigator.userAgent.indexOf("MSIE")>-1,t=navigator.userAgent.indexOf("Firefox")>-1,n=navigator.userAgent.toLowerCase().indexOf("op")>-1,o=navigator.userAgent.indexOf("Chrome")>-1,r=navigator.userAgent.indexOf("Safari")>-1;return o&&r&&(r=!1),o&&n&&(o=!1),G={isExplorer:e,isFirefox:t,isOpera:n,isChrome:o,isSafari:r}}return G={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}}var q=function(e){return Function.prototype.toString.call(e)};function X(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&q(n)===q(Object)}function Y(e,t,n,o){e.addEventListener(t,n,!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()?o:{capture:o,passive:!0})}var J,Q=!("undefined"==typeof window||!window.document||!window.document.createElement);J=Q?window:"undefined"!=typeof self?self:void 0;var ee,et="undefined"!=typeof document&&document.attachEvent,en=!1;if(Q&&!et){var eo,er=(eo=J.requestAnimationFrame||J.mozRequestAnimationFrame||J.webkitRequestAnimationFrame||function(e){return J.setTimeout(e,20)},function(e){return eo(e)}),ei=(ee=J.cancelAnimationFrame||J.mozCancelAnimationFrame||J.webkitCancelAnimationFrame||J.clearTimeout,function(e){return ee(e)}),es=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},ea=function(e){var t=this;es(this),this.__resizeRAF__&&ei(this.__resizeRAF__),this.__resizeRAF__=er(function(){(t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})},el=!1,eu="",ec="animationstart",ep="Webkit Moz O ms".split(" "),ed="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");if(Q){var eh=document.createElement("fakeelement");
1if(void 0!==eh.style.animationName&&(el=!0),!1===el){for(var ef=0;ef<ep.length;ef++)if(void 0!==eh.style[ep[ef]+"AnimationName"]){eu="-"+ep[ef].toLowerCase()+"-",ec=ed[ef],el=!0;break}}}var em="resizeanim",eg="@"+eu+"keyframes "+em+" { from { opacity: 0; } to { opacity: 0; } } ",ev=eu+"animation: 1ms "+em+"; "}var e_=void 0!==s.createPortal,ey=e_?s.createPortal:s.unstable_renderSubtreeIntoContainer,eC=function(e){return X(e)?e:{lat:e[0],lng:e[1]}},eb=function(e,t){return t<e?e:t},ew=function(e){function t(t){var n;if((n=e.call(this,t)||this)._getMinZoom=function(){return n.geoService_.getWidth()>0||n.geoService_.getHeight()>0?Math.ceil(W(Math.max(Math.ceil(n.geoService_.getWidth()/256)+2,Math.ceil(n.geoService_.getHeight()/256)+2))):3},n._computeMinZoom=function(e){return B(e)?n._getMinZoom():e},n._mapDomResizeCallback=function(){if(n.resetSizeOnIdle_=!0,n.maps_){var e=n.props.center||n.props.defaultCenter,t=n.map_.getCenter();n.maps_.event.trigger(n.map_,"resize"),n.map_.setCenter(n.props.resetBoundsOnResize?e:t)}},n._setLayers=function(e){e.forEach(function(e){n.layers_[e]=new n.maps_[e],n.layers_[e].setMap(n.map_)})},n._renderPortal=function(){return o.createElement(E,{experimental:n.props.experimental,onChildClick:n._onChildClick,onChildMouseDown:n._onChildMouseDown,onChildMouseEnter:n._onChildMouseEnter,onChildMouseLeave:n._onChildMouseLeave,geoService:n.geoService_,insideMapPanes:!0,distanceToMouse:n.props.distanceToMouse,getHoverDistance:n._getHoverDistance,dispatcher:n.markersDispatcher_})},n._initMap=function(){if(!n.initialized_){n.initialized_=!0;var e=eC(n.props.center||n.props.defaultCenter);n.geoService_.setView(e,n.props.zoom||n.props.defaultZoom,0),n._onBoundsChanged();var t=f({},n.props.apiKey&&{key:n.props.apiKey},n.props.bootstrapURLKeys);n.props.googleMapLoader(t,n.props.heatmapLibrary).then(function(e){if(n.mounted_){var t,o,r,i,a=n.geoService_.getCenter(),l={zoom:n.props.zoom||n.props.defaultZoom,center:new e.LatLng(a.lat,a.lng)};n.props.heatmap.positions&&(Object.assign(g(n),{heatmap:(i=n.props.heatmap,new e.visualization.HeatmapLayer({data:i.positions.reduce(function(t,n){var o=n.weight;return t.push({location:new e.LatLng(n.lat,n.lng),weight:void 0===o?1:o}),t},[])}))}),t=n.heatmap,Object.keys(r=void 0===(o=n.props.heatmap.options)?{}:o).map(function(e){return t.set(e,r[e])}));var u=V(e,X),c="function"==typeof n.props.options?n.props.options(u):n.props.options,p=!B(n.props.draggable)&&{draggable:n.props.draggable},d=n._computeMinZoom(c.minZoom);n.minZoom_=d;var h=f({},{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3},{minZoom:d},c,l);n.defaultDraggableOption_=B(h.draggable)?n.defaultDraggableOption_:h.draggable;var m=f({},h,p);m.minZoom=eb(m.minZoom,d);var v=new e.Map(s.findDOMNode(n.googleMapDom_),m);n.map_=v,n.maps_=e,n._setLayers(n.props.layerTypes);var _=e.version.match(/^3\.(\d+)\./),y=_&&Number(_[1]),C=g(n),b=Object.assign(new e.OverlayView,{onAdd:function(){var t="undefined"!=typeof screen?screen.width+"px":"2000px",n="undefined"!=typeof screen?screen.height+"px":"2000px",o=document.createElement("div");if(o.style.backgroundColor="transparent",o.style.position="absolute",o.style.left="0px",o.style.top="0px",o.style.width=t,o.style.height=n,C.props.overlayViewDivStyle){var r=C.props.overlayViewDivStyle;"object"==typeof r&&Object.keys(r).forEach(function(e){o.style[e]=r[e]})}this.getPanes().overlayMouseTarget.appendChild(o),C.geoService_.setMapCanvasProjection(e,b.getProjection()),e_?C.setState({overlay:o}):ey(C,C._renderPortal(),o,function(){return C.setState({overlay:o})})},onRemove:function(){var e=C.state.overlay;e&&!e_&&s.unmountComponentAtNode(e),C.setState({overlay:null})},draw:function(){if(C.updateCounter_++,C._onBoundsChanged(v,e,!C.props.debounced),C.googleApiLoadedCalled_||(C._onGoogleApiLoaded({map:v,maps:e,ref:C.googleMapDom_}),C.googleApiLoadedCalled_=!0),C.mouse_){var t=C.geoService_.fromContainerPixelToLatLng(C.mouse_);C.mouse_.lat=t.lat,C.mouse_.lng=t.lng}
1C._onChildMouseMove(),C.markersDispatcher_&&(C.markersDispatcher_.emit("kON_CHANGE"),C.fireMouseEventOnIdle_&&C.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"))}});n.overlay_=b,b.setMap(v),n.props.heatmap.positions&&n.heatmap.setMap(v),n.props.onTilesLoaded&&e.event.addListener(v,"tilesloaded",function(){C._onTilesLoaded()}),e.event.addListener(v,"zoom_changed",function(){C.geoService_.getZoom()!==v.getZoom()&&(C.zoomAnimationInProgress_||(C.zoomAnimationInProgress_=!0,C._onZoomAnimationStart(v.zoom)),y<32)&&((new Date).getTime()-n.zoomControlClickTime_<300?U(function(){return U(function(){C.updateCounter_++,C._onBoundsChanged(v,e)})}):(C.updateCounter_++,C._onBoundsChanged(v,e)))}),e.event.addListener(v,"idle",function(){if(n.resetSizeOnIdle_){n._setViewSize();var t=n._computeMinZoom(c.minZoom);t!==n.minZoom_&&(n.minZoom_=t,v.setOptions({minZoom:t})),n.resetSizeOnIdle_=!1}C.zoomAnimationInProgress_&&(C.zoomAnimationInProgress_=!1,C._onZoomAnimationEnd(v.zoom)),C.updateCounter_++,C._onBoundsChanged(v,e),C.dragTime_=0,C.markersDispatcher_&&C.markersDispatcher_.emit("kON_CHANGE")}),e.event.addListener(v,"mouseover",function(){C.mouseInMap_=!0}),e.event.addListener(v,"click",function(){C.mouseInMap_=!0}),e.event.addListener(v,"mouseout",function(){C.mouseInMap_=!1,C.mouse_=null,C.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")}),e.event.addListener(v,"drag",function(){C.dragTime_=(new Date).getTime(),C._onDrag(v)}),e.event.addListener(v,"dragend",function(){var t=e.event.addListener(v,"idle",function(){e.event.removeListener(t),C._onDragEnd(v)})}),e.event.addListener(v,"maptypeid_changed",function(){C._onMapTypeIdChange(v.getMapTypeId())})}}).catch(function(e){throw n._onGoogleApiLoaded({map:null,maps:null,ref:n.googleMapDom_}),console.error(e),e})}},n._onGoogleApiLoaded=function(){var e;n.props.onGoogleApiLoaded&&(e=n.props).onGoogleApiLoaded.apply(e,arguments)},n._getHoverDistance=function(){return n.props.hoverDistance},n._onDrag=function(){var e;return n.props.onDrag&&(e=n.props).onDrag.apply(e,arguments)},n._onDragEnd=function(){var e;return n.props.onDragEnd&&(e=n.props).onDragEnd.apply(e,arguments)},n._onMapTypeIdChange=function(){var e;return n.props.onMapTypeIdChange&&(e=n.props).onMapTypeIdChange.apply(e,arguments)},n._onZoomAnimationStart=function(){var e;return n.props.onZoomAnimationStart&&(e=n.props).onZoomAnimationStart.apply(e,arguments)},n._onZoomAnimationEnd=function(){var e;return n.props.onZoomAnimationEnd&&(e=n.props).onZoomAnimationEnd.apply(e,arguments)},n._onTilesLoaded=function(){return n.props.onTilesLoaded&&n.props.onTilesLoaded()},n._onChildClick=function(){var e;if(n.props.onChildClick)return(e=n.props).onChildClick.apply(e,arguments)},n._onChildMouseDown=function(e,t){n.childMouseDownArgs_=[e,t],n.props.onChildMouseDown&&n.props.onChildMouseDown(e,t,f({},n.mouse_))},n._onChildMouseUp=function(){var e;n.childMouseDownArgs_&&(n.props.onChildMouseUp&&(e=n.props).onChildMouseUp.apply(e,n.childMouseDownArgs_.concat([f({},n.mouse_)])),n.childMouseDownArgs_=null,n.childMouseUpTime_=(new Date).getTime())},n._onChildMouseMove=function(){var e;n.childMouseDownArgs_&&n.props.onChildMouseMove&&(e=n.props).onChildMouseMove.apply(e,n.childMouseDownArgs_.concat([f({},n.mouse_)]))},n._onChildMouseEnter=function(){var e;if(n.props.onChildMouseEnter)return(e=n.props).onChildMouseEnter.apply(e,arguments)},n._onChildMouseLeave=function(){var e;if(n.props.onChildMouseLeave)return(e=n.props).onChildMouseLeave.apply(e,arguments)},n._setViewSize=function(){if(n.mounted_){if(document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)n.geoService_.setViewSize(window.innerWidth,window.innerHeight);else{var e=s.findDOMNode(n.googleMapDom_);n.geoService_.setViewSize(e.clientWidth,e.clientHeight)}n._onBoundsChanged()}},n._onWindowResize=function(){n.resetSizeOnIdle_=!0},n._onMapMouseMove=function(e){if(n.mouseInMap_){var t=(new Date).getTime();t-n.mouseMoveTime_>50&&(n.boundingRect_=e.currentTarget.getBoundingClientRect()),n.mouseMoveTime_=t;var o=e.clientX-n.boundingRect_.left,r=e.clientY-n.boundingRect_.top;n.mouse_||(n.mouse_={x:0,y:0,lat:0,lng:0}),n.mouse_.x=o,n.mouse_.y=r;var i=n.geoService_.fromContainerPixelToLatLng(n.mouse_);n.mouse_.lat=i.lat,n.mouse_.lng=i.lng,n._onChildMouseMove(),t-n.dragTime_<100?n.fireMouseEventOnIdle_=!0:(n.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"),n.fireMouseEventOnIdle_=!1)}},n._onClick=function(){var e;return n.props.onClick&&!n.childMouseDownArgs_&&(new Date).getTime()-n.childMouseUpTime_>300&&0===n.dragTime_&&(e=n.props).onClick.apply(e,arguments)},n._onMapClick=function(e){n.markersDispatcher_&&(n._onMapMouseMove(e),(new Date).getTime()-n.dragTime_>100&&(n.mouse_&&n._onClick(f({},n.mouse_,{event:e})),n.markersDispatcher_.emit("kON_CLICK",e)))},n._onMapMouseDownNative=function(e){n.mouseInMap_&&n._onMapMouseDown(e)},n._onMapMouseDown=function(e){n.markersDispatcher_&&(new Date).getTime()-n.dragTime_>100&&(n._onMapMouseMove(e),n.markersDispatcher_.emit("kON_MDOWN",e))},n._onMapMouseDownCapture=function(){$().isChrome&&(n.zoomControlClickTime_=(new Date).getTime())},n._onKeyDownCapture=function(){$().isChrome&&(n.zoomControlClickTime_=(new Date).getTime())},n._isCenterDefined=function(e){return e&&(X(e)&&F(e.lat)&&F(e.lng)||2===e.length&&F(e[0])&&F(e[1]))},n._onBoundsChanged=function(e,t,o){if(e){var r=e.getCenter();n.geoService_.setView([r.lat(),r.lng()],e.getZoom(),0)}if((n.props.onChange||n.props.onBoundsChange)&&n.geoService_.canProject()){var i=n.geoService_.getZoom(),s=n.geoService_.getBounds(),a=n.geoService_.getCenter();if(!function(e,t,n){if(e&&t){for(var o=0;o!==e.length;++o)if(Math.abs(e[o]-t[o])>1e-5)return!1;return!0}return!1}(s,n.prevBounds_)&&!1!==o){var l=n.geoService_.getBounds(n.props.margin);n.props.onBoundsChange&&n.props.onBoundsChange(n.centerIsObject_?f({},a):[a.lat,a.lng],i,s,l),n.props.onChange&&n.props.onChange({center:f({},a),zoom:i,bounds:{nw:{lat:s[0],lng:s[1]},se:{lat:s[2],lng:s[3]},sw:{lat:s[4],lng:s[5]},ne:{lat:s[6],lng:s[7]}},marginBounds:{nw:{lat:l[0],lng:l[1]},se:{lat:l[2],lng:l[3]},sw:{lat:l[4],lng:l[5]},ne:{lat:l[6],lng:l[7]}},size:n.geoService_.hasSize()?{width:n.geoService_.getWidth(),height:n.geoService_.getHeight()}:{width:0,height:0}}),n.prevBounds_=s}}},n._registerChild=function(e){n.googleMapDom_=e},n.mounted_=!1,n.initialized_=!1,n.googleApiLoadedCalled_=!1,n.map_=null,n.maps_=null,n.prevBounds_=null,n.heatmap=null,n.layers_={},n.mouse_=null,n.mouseMoveTime_=0,n.boundingRect_=null,n.mouseInMap_=!0,n.dragTime_=0,n.fireMouseEventOnIdle_=!1,n.updateCounter_=0,n.markersDispatcher_=new y(g(n)),n.geoService_=new H(256),n.centerIsObject_=X(n.props.center),n.minZ
1oom_=3,n.defaultDraggableOption_=!0,n.zoomControlClickTime_=0,n.childMouseDownArgs_=null,n.childMouseUpTime_=0,n.googleMapDom_=null,n._isCenterDefined(n.props.center||n.props.defaultCenter)){var r=eC(n.props.center||n.props.defaultCenter);n.geoService_.setView(r,n.props.zoom||n.props.defaultZoom,0)}return n.zoomAnimationInProgress_=!1,n.state={overlay:null},n}m(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.mounted_=!0,this.markersDispatcher_=new y(this),Y(window,"resize",this._onWindowResize,!1),Y(window,"keydown",this._onKeyDownCapture,!0);var t=s.findDOMNode(this.googleMapDom_);t&&Y(t,"mousedown",this._onMapMouseDownNative,!0),Y(window,"mouseup",this._onChildMouseUp,!1);var n=f({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);this.props.googleMapLoader(n,this.props.heatmapLibrary),setTimeout(function(){e._setViewSize(),e._isCenterDefined(e.props.center||e.props.defaultCenter)&&e._initMap()},0,this),this.props.resetBoundsOnResize&&function(e,t){if(void 0===e.parentNode){var n=document.createElement("div");e.parentNode=n}e=e.parentNode,et?e.attachEvent("onresize",t):(e.__resizeTriggers__||("static"==getComputedStyle(e).position&&(e.style.position="relative"),function(){if(!en){var e=(eg||"")+".resize-triggers { "+(ev||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),en=!0}}(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),es(e),Y(e,"scroll",ea,!0),ec&&e.__resizeTriggers__.addEventListener(ec,function(t){t.animationName==em&&es(e)})),e.__resizeListeners__.push(t))}(t,this._mapDomResizeCallback)},n.shouldComponentUpdate=function(e,t){return!M(C(this.props,["draggable"]),C(e,["draggable"]))||!M(this.state,t)},n.componentDidUpdate=function(e){var t=this;if(!this._isCenterDefined(e.center)&&this._isCenterDefined(this.props.center)&&setTimeout(function(){return t._initMap()},0),this.map_){var n=this.geoService_.getCenter();if(this._isCenterDefined(this.props.center)){var o=eC(this.props.center),r=this._isCenterDefined(e.center)?eC(e.center):null;(!r||Math.abs(o.lat-r.lat)+Math.abs(o.lng-r.lng)>1e-5)&&Math.abs(o.lat-n.lat)+Math.abs(o.lng-n.lng)>1e-5&&this.map_.panTo({lat:o.lat,lng:o.lng})}if(B(this.props.zoom)||Math.abs(this.props.zoom-e.zoom)>0&&this.map_.setZoom(this.props.zoom),!B(e.draggable)&&B(this.props.draggable)?this.map_.setOptions({draggable:this.defaultDraggableOption_}):M(e.draggable,this.props.draggable)||this.map_.setOptions({draggable:this.props.draggable}),!B(this.props.options)&&!M(e.options,this.props.options)){var i=V(this.maps_,X),s="function"==typeof this.props.options?this.props.options(i):this.props.options;if("minZoom"in(s=C(s,["zoom","center","draggable"]))){var a=this._computeMinZoom(s.minZoom);s.minZoom=eb(s.minZoom,a)}this.map_.setOptions(s)}M(this.props.layerTypes,e.layerTypes)||(Object.keys(this.layers_).forEach(function(e){t.layers_[e].setMap(null),delete t.layers_[e]}),this._setLayers(this.props.layerTypes)),this.heatmap&&!M(this.props.heatmap.positions,e.heatmap.positions)&&this.heatmap.setData(this.props.heatmap.positions.map(function(e){return{location:new t.maps_.LatLng(e.lat,e.lng),weight:e.weight}})),this.heatmap&&!M(this.props.heatmap.options,e.heatmap.options)&&Object.keys(this.props.heatmap.options).forEach(function(e){t.heatmap.set(e,t.props.heatmap.options[e])})}this.markersDispatcher_.emit("kON_CHANGE"),M(this.props.hoverDistance,e.hoverDistance)||this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")},n.componentWillUnmount=function(){this.mounted_=!1;var e,t,n=s.findDOMNode(this.googleMapDom_);n&&n.removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.props.resetBoundsOnResize&&(t=this._mapDomResizeCallback,e=(e=n).parentNode,et?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",ea),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.props.shouldUnregisterMapOnUnmount&&(this.map_.setOptions({scrollwheel:!1}),this.maps_.event.clearInstanceListeners(this.map_)),this.props.shouldUnregisterMapOnUnmount&&(this.map_=null,this.maps_=null),this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,this.props.shouldUnregisterMapOnUnmount&&(delete this.map_,delete this.markersDispatcher_)},n.render=function(){var e=this.state.overlay,t=e?null:o.createElement(O,{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,insideMapPanes:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return o.createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},o.createElement(_,{registerChild:this._registerChild}),e_&&e&&ey(this._renderPortal(),e),t)},t}(o.Component);ew.propTypes={apiKey:i().string,bootstrapURLKeys:i().any,defaultCenter:i().oneOfType([i().array,i().shape({lat:i().number,lng:i().number})]),center:i().oneOfType([i().array,i().shape({lat:i().number,lng:i().number})]),defaultZoom:i().number,zoom:i().number,onBoundsChange:i().func,onChange:i().func,onClick:i().func,onChildClick:i().func,onChildMouseDown:i().func,onChildMouseUp:i().func,onChildMouseMove:i().func,onChildMouseEnter:i().func,onChildMouseLeave:i().func,onZoomAnimationStart:i().func,onZoomAnimationEnd:i().func,onDrag:i().func,onDragEnd:i().func,onMapTypeIdChange:i().func,onTilesLoaded:i().func,options:i().any,distanceToMouse:i().func,hoverDistance:i().number,debounced:i().bool,margin:i().array,googleMapLoader:i().any,onGoogleApiLoaded:i().func,yesIWantToUseGoogleMapApiInternals:i().bool,draggable:i().bool,style:i().any,resetBoundsOnResize:i().bool,layerTypes:i().arrayOf(i().string),shouldUnregisterMapOnUnmount:i().bool},ew.defaultProps={distanceToMouse:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},hoverDistance:30,debounced:!0,options:function(){return{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3}},googleMapLoader:R,yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"},layerTypes:[],heatmap:{},heatmapLibrary:!1,shouldUnregisterMapOnUnmount:!0},ew.googleMapLoader=R;var eM=ew},9680:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return i}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class o{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let r=globalThis.AsyncLocalStorage;function i(){return r?new r:new o}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},682:function(e,t,n){"use strict";function o(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return o}}),n(3219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8799:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return f},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},useSelectedLayoutSegments:function(){return _},useSelectedLayoutSegment:function(){return y},redirect:function(){return u.redirect},notFound:function(){return c.notFound}});let o=n(2784),r=n(9950),i=n(1452),s=n(682),a=n(5025),l=n(3870),u=n(315),c=n(5532),p=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[p][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[p]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function f(){(0,s.clientHookInServerComponentError)("useSearchParams");let e=(0,o.useContext)(i.SearchParamsContext),t=(0,o.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,s.clientHookInServerComponentError)("usePathname"),(0,o.useContext)(i.PathnameContext)}function g(){(0,s.clientHookInServerComponentError)("useRouter");let e=(0,o.useContext)(r.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,s.clientHookInServerComponentError)("useParams");let e=(0,o.useContext)(r.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let o=t[1];for(let t of Object.values(o)){let o=t[0],r=Array.isArray(o),i=r?o[1]:o;if(!i||i.startsWith("__PAGE__"))continue;let s=r&&("c"===o[2]||"oc"===o[2]);s?n[o[0]]=o[1].split("/"):r&&(n[o[0]]=o[1]),n=e(t,n)}return n}(e.tree):null}function _(e){void 0===e&&(e="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,o.useContext)(r.LayoutRouterContext);return function e(t,n,o,r){let i;if(void 0===o&&(o=!0),void 0===r&&(r=[]),o)i=t[1][n];else{var s;let e=t[1];i=null!=(s=e.children)?s:Object.values(e)[0]}if(!i)return r;let l=i[0],u=(0,a.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?r:(r.push(u),e(i,n,!1,r))}(t,e)}function y(e){void 0===e&&(e="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=_(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return o},isNotFoundError:function(){return r}});let n="NEXT_NOT_FOUND";function o(){let e=Error(n);throw e.digest=n,e}function r(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},315:function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return o},getRedirectError:function(){return a},redirect:function(){return l},isRedirectError:function(){return u},getURLFromRedirectError:function(){return c},getRedirectTypeFromError:function(){return p}});let i=n(5988),s="NEXT_REDIRECT";function a(e,t){let n=Error(s);n.digest=s+";"+t+";"+e;let o=i.requestAsyncStorage.getStore();return o&&(n.mutableCookies=o.mutableCookies),n}function l(e,t){throw void 0===t&&(t="replace"),a(e,t)}function u(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,o]=e.digest.split(";",3);return t===s&&("replace"===n||"push"===n)&&"string"==typeof o}function c(e){return u(e)?e.digest.split(";",3)[2]:null}function p(e){if(!u(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(r=o||(o={})).push="push",r.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});
1let o=n(9680),r=(0,o.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5025:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return s}});let o=n(6794),r=o._(n(2784)),i=r.default.createContext(null);function s(e){let t=(0,r.useContext)(i);t&&t(e)}},2876:function(e,t,n){e.exports=n(8799)},8262:function(e,t,n){"use strict";var o=n(3586);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},106:function(e,t,n){"use strict";function o(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{u:function(){return o}})},2172:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var o=n(2784),r=n(2211),i=n(2656),s=n(9815);function a(e){let t=e+"CollectionProvider",[n,a]=(0,r.b)(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e+"CollectionSlot",p=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=u(c,n),l=(0,i.e)(t,a.collectionRef);return o.createElement(s.g7,{ref:l},r)}),d=e+"CollectionItemSlot",h="data-radix-collection-item",f=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,l=o.useRef(null),c=(0,i.e)(t,l),p=u(d,n);return o.useEffect(()=>(p.itemMap.set(l,{ref:l,...a}),()=>void p.itemMap.delete(l))),o.createElement(s.g7,{[h]:"",ref:c},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return o.createElement(l,{scope:t,itemMap:i,collectionRef:r},n)},Slot:p,ItemSlot:f},function(t){let n=u(e+"CollectionConsumer",t),r=o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`)),o=Array.from(n.itemMap.values()),r=o.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},a]}},9241:function(e,t,n){"use strict";n.d(t,{gm:function(){return i}});var o=n(2784);let r=(0,o.createContext)(void 0);function i(e){let t=(0,o.useContext)(r);return e||t||"ltr"}},9892:function(e,t,n){"use strict";n.d(t,{VY:function(){return ev},JO:function(){return em},ck:function(){return ey},wU:function(){return eb},eT:function(){return eC},h_:function(){return eg},fC:function(){return ed},xz:function(){return eh},B4:function(){return ef},l_:function(){return e_}});var o=n(7896),r=n(2784),i=n(8316),s=n(106),a=n(7998),l=n(2172),u=n(2656),c=n(2211),p=n(9241),d=n(5999),h=n(1861),f=n(2426),m=n(3372),g=n(5813),v=n(8773),_=n(2714),y=n(9815),C=n(7757),b=n(7695),w=n(1644),M=n(22);let S=(0,r.forwardRef)((e,t)=>(0,r.createElement)(_.WV.span,(0,o.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var x=n(9732),E=n(506);let L=[" ","Enter","ArrowUp","ArrowDown"],O=[" ","Enter"],k="Select",[P,T,D]=(0,l.B)(k),[I,A]=(0,c.b)(k,[D,g.D7]),z=(0,g.D7)(),[R,j]=I(k),[N,Z]=I(k),H=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...s}=e,l=z(n),c=j("SelectTrigger",n),p=c.disabled||i,d=(0,u.e)(t,c.onTriggerChange),h=T(n),[f,m,v]=ec(e=>{let t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===c.value),o=ep(t,e,n);void 0!==o&&c.onValueChange(o.value)}),y=()=>{p||(c.onOpenChange(!0),v())};return(0,r.createElement)(g.ee,(0,o.Z)({asChild:!0},l),(0,r.createElement)(_.WV.button,(0,o.Z)({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":void 0===c.value?"":void 0},s,{ref:d,onClick:(0,a.M)(s.onClick,e=>
1{e.currentTarget.focus()}),onPointerDown:(0,a.M)(s.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(y(),c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:(0,a.M)(s.onKeyDown,e=>{let t=""!==f.current,n=e.ctrlKey||e.altKey||e.metaKey;n||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&L.includes(e.key)&&(y(),e.preventDefault())})})))}),U=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,className:i,style:s,children:a,placeholder:l,...c}=e,p=j("SelectValue",n),{onValueNodeHasChildrenChange:d}=p,h=void 0!==a,f=(0,u.e)(t,p.onValueNodeChange);return(0,w.b)(()=>{d(h)},[d,h]),(0,r.createElement)(_.WV.span,(0,o.Z)({},c,{ref:f,style:{pointerEvents:"none"}}),void 0===p.value&&void 0!==l?l:a)}),W=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,children:i,...s}=e;return(0,r.createElement)(_.WV.span,(0,o.Z)({"aria-hidden":!0},s,{ref:t}),i||"▼")}),V="SelectContent",B=(0,r.forwardRef)((e,t)=>{let n=j(V,e.__scopeSelect),[s,a]=(0,r.useState)();return((0,w.b)(()=>{a(new DocumentFragment)},[]),n.open)?(0,r.createElement)(G,(0,o.Z)({},e,{ref:t})):s?(0,i.createPortal)((0,r.createElement)(K,{scope:e.__scopeSelect},(0,r.createElement)(P.Slot,{scope:e.__scopeSelect},(0,r.createElement)("div",null,e.children))),s):null}),[K,F]=I(V),G=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:l,onPointerDownOutside:c,side:p,sideOffset:m,align:g,alignOffset:v,arrowPadding:_,collisionBoundary:C,collisionPadding:b,sticky:w,hideWhenDetached:M,avoidCollisions:S,...L}=e,O=j(V,n),[k,P]=(0,r.useState)(null),[D,I]=(0,r.useState)(null),A=(0,u.e)(t,e=>P(e)),[z,R]=(0,r.useState)(null),[N,Z]=(0,r.useState)(null),H=T(n),[U,W]=(0,r.useState)(!1),B=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(k)return(0,x.Ry)(k)},[k]),(0,h.EW)();let F=(0,r.useCallback)(e=>{let[t,...n]=H().map(e=>e.ref.current),[o]=n.slice(-1),r=document.activeElement;for(let n of e)if(n===r||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&D&&(D.scrollTop=0),n===o&&D&&(D.scrollTop=D.scrollHeight),null==n||n.focus(),document.activeElement!==r))return},[H,D]),G=(0,r.useCallback)(()=>F([z,k]),[F,z,k]);(0,r.useEffect)(()=>{U&&G()},[U,G]);let{onOpenChange:X,triggerPointerDownPosRef:Y}=O;(0,r.useEffect)(()=>{if(k){let e={x:0,y:0},t=t=>{var n,o,r,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(o=Y.current)||void 0===o?void 0:o.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(r=null===(i=Y.current)||void 0===i?void 0:i.y)&&void 0!==r?r:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():k.contains(n.target)||X(!1),document.removeEventListener("pointermove",t),Y.current=null};return null!==Y.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[k,X,Y]),(0,r.useEffect)(()=>{let e=()=>X(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[X]);let[J,Q]=ec(e=>{let t=H().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),o=ep(t,e,n);o&&setTimeout(()=>o.ref.current.focus())}),ee=(0,r.useCallback)((e,t,n)=>{let o=!B.current&&!n,r=void 0!==O.value&&O.value===t;(r||o)&&(R(e),o&&(B.current=!0))},[O.value]),et=(0,r.useCallback)(()=>null==k?void 0:k.focus(),[k]),en=(0,r.useCallback)((e,t,n)=>{let o=!B.current&&!n,r=void 0!==O.value&&O.value===t;(r||o)&&Z(e)},[O.value]),eo="popper"===i?q:$,er=eo===q?{side:p,sideOffset:m,align:g,alignOffset:v,arrowPadding:_,collisionBoundary:C,collisionPadding:b,sticky:w,hideWhenDetached:M,avoidCollisions:S}:{};return(0,r.createElement)(K,{scope:n,content:k,viewport:D,onViewportChange:I,itemRefCallback:ee,selectedItem:z,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:G,selectedItemText:N,position:i,isPositioned:U,searchRef:J},(0,r.createElement)(E.Z,{as:y.g7,allowPinchZoom:!0},(0,r.createElement)(f.M,{asChild:!0,trapped:O.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.M)(s,e=>{var t;null===(t=O.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})},(0,r.createElement)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>O.onOpenChange(!1)},(0,r.createElement)(eo,(0,o.Z)({role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:e=>e.preventDefault()},L,er,{onPlaced:()=>W(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...L.style},onKeyDown:(0,a.M)(L.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=H().filter(e=>!e.disabled),n=t.map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let t=e.target,o=n.indexOf(t);n=n.slice(o+1)}setTimeout(()=>F(n)),e.preventDefault()}})}))))))}),$=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,l=j(V,n),c=F(V,n),[p,d]=(0,r.useState)(null),[h,f]=(0,r.useState)(null),m=(0,u.e)(t,e=>f(e)),g=T(n),v=(0,r.useRef)(!1),y=(0,r.useRef)(!0),{viewport:C,selectedItem:b,selectedItemText:M,focusSelectedItem:S}=c,x=(0,r.useCallback)(()=>{if(l.trigger&&l.valueNode&&p&&h&&C&&b&&M){let e=l.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=M.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-10,d=(0,s.u)(i,[10,c-u]);p.style.minWidth=l+"px",p.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-10,d=(0,s.u)(i,[10,c-u]);p.style.minWidth=l+"px",p.style.right=d+"px"}let r=g(),a=window.innerHeight-20,u=C.scrollHeight,c=window.getComputedStyle(h),d=parseInt(c.borderTopWidth,10),f=parseInt(c.paddingTop,10),m=parseInt(c.borderBottomWidth,10),_=parseInt(c.paddingBottom,10),y=d+f+u+_+m,w=Math.min(5*b.offsetHeight,y),S=window.getComputedStyle(C),x=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),L=e.top+e.height/2-10,O=b.offsetHeight/2,k=b.offsetTop+O,P=d+f+k;if(P<=L){let e=b===r[r.length-1].ref.current;p.style.bottom="0px";let t=h.clientHeight-C.offsetTop-C.offsetHeight;p.style.height=P+Math.max(a-L,O+(e?E:0)+t+m)+"px"}else{let e=b===r[0].ref.current;p.style.top="0px";let t=Math.max(L,d+C.offsetTop+(e?x:0)+O);p.style.height=t+(y-P)+"px",C.scrollTop=P-L+C.offsetTop}p.style.margin="10px 0",p.style.minHeight=w+"px",p.style.maxHeight=a+"px",null==i||i(),requestAnimationFrame(()=>v.current=!0)}},[g,l.trigger,l.valueNode,p,h,C,b,M,l.dir,i]);(0,w.b)(()=>x(),[x]);let[E,L]=(0,r.useState)();(0,w.b)(()=>{h&&L(window.getComputedStyle(h).zIndex)},[h]);let O=(0,r.useCallback)(e=>{e&&!0===y.current&&(x(),null==S||S(),y.current=!1)},[x,S]);return(0,r.createElement)(X,{scope:n,contentWrapper:p,shouldExpandOnScrollRef:v,onScrollButtonChange:O},(0,r.createElement)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},(0,r.createElement)(_.WV.div,(0,o.Z)({},a,{ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}}))))}),q=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,align:i="start",collisionPadding:s=10,...a}=e,l=z(n);return(0,r.createElement)(g.VY,(0,o.Z)({},l,a,{ref:t,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[X,Y]=I(V,{}),J="SelectViewport",Q=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e,s=F(J,n),l=Y(J,n),c=(0,u.e)(t,s.onViewportChange),p=(0,r.useRef)(0);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,r.createElement)(P.Slot,{scope:n},(0,r.createElement)(_.WV.div,(0,o.Z)({"data-radix-select-viewport":"",role:"presentation"},i,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,a.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:o}=l;if(null!=o&&o.current&&n){let e=Math.abs(p.current-t.scrollTop);if(e>0){let o=window.innerHeight-20,r=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),s=Math.max(r,
1i);if(s<o){let r=s+e,i=Math.min(o,r),a=r-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}p.current=t.scrollTop})}))))}),[ee,et]=I("SelectGroup"),en="SelectItem",[eo,er]=I(en),ei=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,value:i,disabled:s=!1,textValue:l,...c}=e,p=j(en,n),d=F(en,n),h=p.value===i,[f,g]=(0,r.useState)(null!=l?l:""),[v,y]=(0,r.useState)(!1),C=(0,u.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,i,s)}),b=(0,m.M)(),w=()=>{s||(p.onValueChange(i),p.onOpenChange(!1))};return(0,r.createElement)(eo,{scope:n,value:i,disabled:s,textId:b,isSelected:h,onItemTextChange:(0,r.useCallback)(e=>{g(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[])},(0,r.createElement)(P.ItemSlot,{scope:n,value:i,disabled:s,textValue:f},(0,r.createElement)(_.WV.div,(0,o.Z)({role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":h&&v,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},c,{ref:C,onFocus:(0,a.M)(c.onFocus,()=>y(!0)),onBlur:(0,a.M)(c.onBlur,()=>y(!1)),onPointerUp:(0,a.M)(c.onPointerUp,w),onPointerMove:(0,a.M)(c.onPointerMove,e=>{if(s){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.M)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,a.M)(c.onKeyDown,e=>{var t;let n=(null===(t=d.searchRef)||void 0===t?void 0:t.current)!=="";n&&" "===e.key||(O.includes(e.key)&&w()," "===e.key&&e.preventDefault())})}))))}),es="SelectItemText",ea=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,className:s,style:a,...l}=e,c=j(es,n),p=F(es,n),d=er(es,n),h=Z(es,n),[f,m]=(0,r.useState)(null),g=(0,u.e)(t,e=>m(e),d.onItemTextChange,e=>{var t;return null===(t=p.itemTextRefCallback)||void 0===t?void 0:t.call(p,e,d.value,d.disabled)}),v=null==f?void 0:f.textContent,y=(0,r.useMemo)(()=>(0,r.createElement)("option",{key:d.value,value:d.value,disabled:d.disabled},v),[d.disabled,d.value,v]),{onNativeOptionAdd:C,onNativeOptionRemove:b}=h;return(0,w.b)(()=>(C(y),()=>b(y)),[C,b,y]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(_.WV.span,(0,o.Z)({id:d.textId},l,{ref:g})),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?(0,i.createPortal)(l.children,c.valueNode):null)}),el=(0,r.forwardRef)((e,t)=>{let{__scopeSelect:n,...i}=e,s=er("SelectItemIndicator",n);return s.isSelected?(0,r.createElement)(_.WV.span,(0,o.Z)({"aria-hidden":!0},i,{ref:t})):null}),eu=((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...s}=e,l=F("SelectScrollButton",n),u=(0,r.useRef)(null),c=T(n),p=(0,r.useCallback)(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return(0,r.useEffect)(()=>()=>p(),[p]),(0,w.b)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[c]),(0,r.createElement)(_.WV.div,(0,o.Z)({"aria-hidden":!0},s,{ref:t,style:{flexShrink:0,...s.style},onPointerDown:(0,a.M)(s.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(i,50))}),onPointerMove:(0,a.M)(s.onPointerMove,()=>{var e;null===(e=l.onItemLeave)||void 0===e||e.call(l),null===u.current&&(u.current=window.setInterval(i,50))}),onPointerLeave:(0,a.M)(s.onPointerLeave,()=>{p()})}))},(0,r.forwardRef)((e,t)=>{let{value:n,...i}=e,s=(0,r.useRef)(null),a=(0,u.e)(t,s),l=(0,M.D)(n);return(0,r.useEffect)(()=>{let e=s.current,t=window.HTMLSelectElement.prototype,o=Object.getOwnPropertyDescriptor(t,"value"),r=o.set;if(l!==n&&r){let t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[l,n]),(0,r.createElement)(S,{asChild:!0},(0,r.createElement)("select",(0,o.Z)({},i,{ref:a,defaultValue:n})))}));function ec(e){let t=(0,C.W)(e),n=(0,r.useRef)(""),o=(0,r.useRef)(0),i=(0,r.useCallback)(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),s=(0,r.useCallback)(()=>{n.current="",window.clearTimeout(o.current)},[]);return(0,r.useEffect)(()=>()=>window.clearTimeout(o.current),[]),[n,i,s]}function ep(e,t,n){var o;let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,s=n?e.indexOf(n):-1,a=(o=Math.max(s,0),e.map((t,n)=>e[(o+n)%e.length])),l=1===i.length;l&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}eu.displayName="BubbleSelect";let ed=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:s,value:a,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:h,disabled:f,required:v}=e,_=z(t),[y,C]=(0,r.useState)(null),[w,M]=(0,r.useState)(null),[S,x]=(0,r.useState)(!1),E=(0,p.gm)(c),[L=!1,O]=(0,b.T)({prop:o,defaultProp:i,onChange:s}),[k,T]=(0,b.T)({prop:a,defaultProp:l,onChange:u}),D=(0,r.useRef)(null),I=!y||!!y.closest("form"),[A,j]=(0,r.useState)(new Set),Z=Array.from(A).map(e=>e.props.value).join(";");return(0,r.createElement)(g.fC,_,(0,r.createElement)(R,{required:v,scope:t,trigger:y,onTriggerChange:C,valueNode:w,onValueNodeChange:M,valueNodeHasChildren:S,onValueNodeHasChildrenChange:x,contentId:(0,m.M)(),value:k,onValueChange:T,open:L,onOpenChange:O,dir:E,triggerPointerDownPosRef:D,disabled:f},(0,r.createElement)(P.Provider,{scope:t},(0,r.createElement)(N,{scope:e.__scopeSelect,onNativeOptionAdd:(0,r.useCallback)(e=>{j(t=>new Set(t).add(e))},[]),onNativeOptionRemove:(0,r.useCallback)(e=>{j(t=>{let n=new Set(t);return n.delete(e),n})},[])},n)),I?(0,r.createElement)(eu,{key:Z,"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:h,value:k,onChange:e=>T(e.target.value),disabled:f},void 0===k?(0,r.createElement)("option",{value:""}):null,Array.from(A)):null))},eh=H,ef=U,em=W,eg=e=>(0,r.createElement)(v.h,(0,o.Z)({asChild:!0},e)),ev=B,e_=Q,ey=ei,eC=ea,eb=el},360:function(e,t,n){"use strict";n.d(t,{df:function(){return p}});var o=n(2784),r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n),a=new Map,l=new WeakMap,u=0,c=void 0,p=class extends o.Component{constructor(e){super(e),s(this,"node",null),s(this,"_unobserveCb",null),s(this,"handleNode",e=>{!this.node||(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),s(this,"handleChange",(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"!=typeof this.props.children||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve(),this.node=null}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:n,trackVisibility:o,delay:r,fallbackInView:i}=this.props;this._unobserveCb=function(e,t,n={},o=c){if(void 0===window.IntersectionObserver&&void 0!==o){let r=e.getBoundingClientRect();return t(o,{isIntersecting:o,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:r,observer:i,elements:s}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(l.has(n)||(u+=1,l.set(n,u.toString())),l.get(n)):"0":e[t]}`}).toString(),n=a.get(t);if(!n){let o;let r=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&o.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEac
1h(e=>{e(i,t)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},a.set(t,n)}return n}(n),p=s.get(e)||[];return s.has(e)||s.set(e,p),p.push(t),i.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(s.delete(e),i.unobserve(e)),0===s.size&&(i.disconnect(),a.delete(r))}}(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:o,delay:r},i)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:n}=this.state;return e({inView:t,entry:n,ref:this.handleNode})}let{as:t,triggerOnce:n,threshold:r,root:i,rootMargin:s,onChange:a,skip:l,trackVisibility:u,delay:c,initialInView:p,fallbackInView:d,...h}=this.props;return o.createElement(t||"div",{ref:this.handleNode,...h},e)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.