@mapsindoors/map-template 1.89.2 → 1.89.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{GoogleMapsMap-52baff50.mjs → GoogleMapsMap-450f5ea9.mjs} +2 -2
  2. package/dist/{MapboxMap-4def7f8c.mjs → MapboxMap-a246464a.mjs} +2 -2
  3. package/dist/{combo-box-item.entry-9fa90934.mjs → combo-box-item.entry-5bbe07d1.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +2 -2
  6. package/dist/mapsindoors-webcomponent.es.js +3 -3
  7. package/dist/mapsindoors-webcomponent.umd.js +2 -2
  8. package/dist/{mi-card_2.entry-802ac37a.mjs → mi-card_2.entry-1986f62c.mjs} +2 -2
  9. package/dist/{mi-chip.entry-5e280243.mjs → mi-chip.entry-6141291b.mjs} +2 -2
  10. package/dist/{mi-column.entry-d8d03cc3.mjs → mi-column.entry-33d0ec2f.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-a25bc003.mjs → mi-combo-box.entry-0a917aa7.mjs} +2 -2
  12. package/dist/{mi-data-table.entry-38fdabfe.mjs → mi-data-table.entry-94d9241e.mjs} +2 -2
  13. package/dist/{mi-distance_2.entry-c2092d97.mjs → mi-distance_2.entry-3a76cf8a.mjs} +2 -2
  14. package/dist/{mi-dropdown-item.entry-ca411ec6.mjs → mi-dropdown-item.entry-58236aeb.mjs} +2 -2
  15. package/dist/{mi-dropdown.entry-1c8e2c37.mjs → mi-dropdown.entry-c775f5da.mjs} +2 -2
  16. package/dist/{mi-floor-selector.entry-a07a669e.mjs → mi-floor-selector.entry-af86a66a.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-93aae114.mjs → mi-keyboard.entry-fd16629a.mjs} +2 -2
  18. package/dist/{mi-list-item-category.entry-21a8e269.mjs → mi-list-item-category.entry-4181e5c6.mjs} +2 -2
  19. package/dist/{mi-list-item-location.entry-e4d6c7c4.mjs → mi-list-item-location.entry-8386721e.mjs} +2 -2
  20. package/dist/{mi-list.entry-2eb6e6fb.mjs → mi-list.entry-578ca77d.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-b509de62.mjs → mi-location-booking.entry-cb4dadbd.mjs} +2 -2
  22. package/dist/{mi-location-info.entry-154935dc.mjs → mi-location-info.entry-2944513d.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-a5f9563e.mjs → mi-map-googlemaps.entry-25b4d9ac.mjs} +2 -2
  24. package/dist/{mi-map-mapbox.entry-ce668a41.mjs → mi-map-mapbox.entry-f5731f34.mjs} +2 -2
  25. package/dist/{mi-metric-card.entry-5e3e27de.mjs → mi-metric-card.entry-68cf17bd.mjs} +2 -2
  26. package/dist/{mi-my-position.entry-4ae16267.mjs → mi-my-position.entry-f6f4fdb6.mjs} +2 -2
  27. package/dist/{mi-notification.entry-7f79d65b.mjs → mi-notification.entry-71b953f8.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-83ab110e.mjs → mi-route-instructions-heading.entry-bd9fe7a4.mjs} +2 -2
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-40e523b3.mjs → mi-route-instructions-maneuver-legacy.entry-be82f1b0.mjs} +2 -2
  30. package/dist/{mi-route-instructions-maneuver.entry-c96d4a48.mjs → mi-route-instructions-maneuver.entry-56d419da.mjs} +2 -2
  31. package/dist/{mi-route-instructions-step-legacy.entry-95b197e9.mjs → mi-route-instructions-step-legacy.entry-377f10dd.mjs} +2 -2
  32. package/dist/{mi-route-instructions-step.entry-51700897.mjs → mi-route-instructions-step.entry-1b0efe24.mjs} +2 -2
  33. package/dist/{mi-route-instructions.entry-3c705f65.mjs → mi-route-instructions.entry-b558e13f.mjs} +2 -2
  34. package/dist/{mi-scroll-buttons.entry-f963323c.mjs → mi-scroll-buttons.entry-cbe5166b.mjs} +2 -2
  35. package/dist/{mi-search.entry-5e9944fa.mjs → mi-search.entry-109a9aef.mjs} +2 -2
  36. package/dist/{mi-share-sms.entry-03f29b65.mjs → mi-share-sms.entry-01210d8f.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-15bdbe42.mjs → mi-step-switcher.entry-15337c94.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-32e39b1f.mjs → mi-tab-panel.entry-a26d69c8.mjs} +2 -2
  39. package/dist/{mi-tab.entry-d1191ee1.mjs → mi-tab.entry-88ed973b.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-a517b481.mjs → mi-tabs.entry-f16792c2.mjs} +2 -2
  41. package/dist/{mi-time.entry-eb59c534.mjs → mi-time.entry-e8a433d9.mjs} +2 -2
  42. package/dist/{reactcomponent-39094f44.mjs → reactcomponent-3c530c02.mjs} +125 -125
  43. package/package.json +1 -1
@@ -40,14 +40,14 @@
40
40
  Error generating stack: `+_.message+`
41
41
  `+_.stack}return{value:e,source:i,stack:d,digest:null}}function TM(e,i,o){return{value:e,source:null,stack:o??null,digest:i??null}}function DM(e,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var vR=typeof WeakMap=="function"?WeakMap:Map;function Y6(e,i,o){o=fc(-1,o),o.tag=3,o.payload={element:null};var u=i.value;return o.callback=function(){Zy||(Zy=!0,UM=u),DM(e,i)},o}function G6(e,i,o){o=fc(-1,o),o.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;o.payload=function(){return u(d)},o.callback=function(){DM(e,i)}}var _=e.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(o.callback=function(){DM(e,i),typeof u!="function"&&(fu===null?fu=new Set([this]):fu.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),o}function Z6(e,i,o){var u=e.pingCache;if(u===null){u=e.pingCache=new vR;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(o)||(d.add(o),e=zR.bind(null,e,i,o),i.then(e,e))}function W6(e){do{var i;if((i=e.tag===13)&&(i=e.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return e;e=e.return}while(e!==null);return null}function q6(e,i,o,u,d){return e.mode&1?(e.flags|=65536,e.lanes=d,e):(e===i?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=fc(-1,1),i.tag=2,hu(o,i,1))),o.lanes|=1),e)}var xR=ac.ReactCurrentOwner,Ys=!1;function Es(e,i,o,u){i.child=e===null?M6(i,null,o,u):sf(i,e.child,o,u)}function K6(e,i,o,u,d){o=o.render;var _=i.ref;return of(i,d),u=vM(e,i,o,u,_,d),o=xM(),e!==null&&!Ys?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,pc(e,i,d)):(co&&o&&eM(i),i.flags|=1,Es(e,i,u,d),i.child)}function X6(e,i,o,u,d){if(e===null){var _=o.type;return typeof _=="function"&&!ZM(_)&&_.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=_,J6(e,i,_,u,d)):(e=e_(o.type,null,u,i,i.mode,d),e.ref=i.ref,e.return=i,i.child=e)}if(_=e.child,!(e.lanes&d)){var w=_.memoizedProps;if(o=o.compare,o=o!==null?o:Yg,o(w,u)&&e.ref===i.ref)return pc(e,i,d)}return i.flags|=1,e=yu(_,u),e.ref=i.ref,e.return=i,i.child=e}function J6(e,i,o,u,d){if(e!==null){var _=e.memoizedProps;if(Yg(_,u)&&e.ref===i.ref)if(Ys=!1,i.pendingProps=u=_,(e.lanes&d)!==0)e.flags&131072&&(Ys=!0);else return i.lanes=e.lanes,pc(e,i,d)}return SM(e,i,o,u,d)}function eA(e,i,o){var u=i.pendingProps,d=u.children,_=e!==null?e.memoizedState:null;if(u.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xr(uf,aa),aa|=o;else{if(!(o&1073741824))return e=_!==null?_.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:e,cachePool:null,transitions:null},i.updateQueue=null,Xr(uf,aa),aa|=e,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=_!==null?_.baseLanes:o,Xr(uf,aa),aa|=u}else _!==null?(u=_.baseLanes|o,i.memoizedState=null):u=o,Xr(uf,aa),aa|=u;return Es(e,i,d,o),i.child}function tA(e,i){var o=i.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function SM(e,i,o,u,d){var _=$s(o)?vh:ms.current;return _=Jd(i,_),of(i,d),o=vM(e,i,o,u,_,d),u=xM(),e!==null&&!Ys?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,pc(e,i,d)):(co&&u&&eM(i),i.flags|=1,Es(e,i,o,d),i.child)}function iA(e,i,o,u,d){if($s(o)){var _=!0;Ty(i)}else _=!1;if(of(i,d),i.stateNode===null)Qy(e,i),v6(i,o,u),dM(i,o,u,d),u=!0;else if(e===null){var w=i.stateNode,a=i.memoizedProps;w.props=a;var E=w.context,j=o.contextType;typeof j=="object"&&j!==null?j=Da(j):(j=$s(o)?vh:ms.current,j=Jd(i,j));var Q=o.getDerivedStateFromProps,q=typeof Q=="function"||typeof w.getSnapshotBeforeUpdate=="function";q||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(a!==u||E!==j)&&x6(i,w,u,j),uu=!1;var W=i.memoizedState;w.state=W,zy(i,u,w,d),E=i.memoizedState,a!==u||W!==E||Hs.current||uu?(typeof Q=="function"&&(hM(i,o,Q,u),E=i.memoizedState),(a=uu||_6(i,o,a,u,W,E,j))?(q||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=E),w.props=u,w.state=E,w.context=j,u=a):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{w=i.stateNode,p6(e,i),a=i.memoizedProps,j=i.type===i.elementType?a:Za(i.type,a),w.props=j,q=i.pendingProps,W=w.context,E=o.contextType,typeof E=="object"&&E!==null?E=Da(E):(E=$s(o)?vh:ms.current,E=Jd(i,E));var le=o.getDerivedStateFromProps;(Q=typeof le=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(a!==q||W!==E)&&x6(i,w,u,E),uu=!1,W=i.memoizedState,w.state=W,zy(i,u,w,d);var fe=i.memoizedState;a!==q||W!==fe||Hs.current||uu?(typeof le=="function"&&(hM(i,o,le,u),fe=i.memoizedState),(j=uu||_6(i,o,j,u,W,fe,E)||!1)?(Q||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(u,fe,E),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(u,fe,E)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||a===e.memoizedProps&&W===e.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&W===e.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=fe),w.props=u,w.state=fe,w.context=E,u=j):(typeof w.componentDidUpdate!="function"||a===e.memoizedProps&&W===e.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&W===e.memoizedState||(i.flags|=1024),u=!1)}return AM(e,i,o,u,_,d)}function AM(e,i,o,u,d,_){tA(e,i);var w=(i.flags&128)!==0;if(!u&&!w)return d&&s6(i,o,!1),pc(e,i,_);u=i.stateNode,xR.current=i;var a=w&&typeof o.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,e!==null&&w?(i.child=sf(i,e.child,null,_),i.child=sf(i,null,a,_)):Es(e,i,a,_),i.memoizedState=u.state,d&&s6(i,o,!0),i.child}function nA(e){var i=e.stateNode;i.pendingContext?r6(e,i.pendingContext,i.pendingContext!==i.context):i.context&&r6(e,i.context,!1),fM(e,i.containerInfo)}function rA(e,i,o,u,d){return nf(),rM(d),i.flags|=256,Es(e,i,o,u),i.child}var CM={dehydrated:null,treeContext:null,retryLane:0};function EM(e){return{baseLanes:e,cachePool:null,transitions:null}}function oA(e,i,o){var u=i.pendingProps,d=yo.current,_=!1,w=(i.flags&128)!==0,a;if((a=w)||(a=e!==null&&e.memoizedState===null?!1:(d&2)!==0),a?(_=!0,i.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Xr(yo,d&1),e===null)return nM(i),e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(i.mode&1?e.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(w=u.children,e=u.fallback,_?(u=i.mode,_=i.child,w={mode:"hidden",children:w},!(u&1)&&_!==null?(_.childLanes=0,_.pendingProps=w):_=t_(w,u,0,null),e=Ch(e,u,o,null),_.return=i,e.return=i,_.sibling=e,i.child=_,i.child.memoizedState=EM(o),i.memoizedState=CM,e):NM(i,w));if(d=e.memoizedState,d!==null&&(a=d.dehydrated,a!==null))return wR(e,i,w,u,a,d,o);if(_){_=u.fallback,w=i.mode,d=e.child,a=d.sibling;var E={mode:"hidden",children:u.children};return!(w&1)&&i.child!==d?(u=i.child,u.childLanes=0,u.pendingProps=E,i.deletions=null):(u=yu(d,E),u.subtreeFlags=d.subtreeFlags&14680064),a!==null?_=yu(a,_):(_=Ch(_,w,o,null),_.flags|=2),_.return=i,u.return=i,u.sibling=_,i.child=u,u=_,_=i.child,w=e.child.memoizedState,w=w===null?EM(o):{baseLanes:w.baseLanes|o,cachePool:null,transitions:w.transitions},_.memoizedState=w,_.childLanes=e.childLanes&~o,i.memoizedState=CM,u}return _=e.child,e=_.sibling,u=yu(_,{mode:"visible",children:u.children}),!(i.mode&1)&&(u.lanes=o),u.return=i,u.sibling=null,e!==null&&(o=i.deletions,o===null?(i.deletions=[e],i.flags|=16):o.push(e)),i.child=u,i.memoizedState=null,u}function NM(e,i){return i=t_({mode:"visible",children:i},e.mode,0,null),i.return=e,e.child=i}function Vy(e,i,o,u){return u!==null&&rM(u),sf(i,e.child,null,o),e=NM(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function wR(e,i,o,u,d,_,w){if(o)return i.flags&256?(i.flags&=-257,u=TM(Error(Wi(422))),Vy(e,i,w,u)):i.memoizedState!==null?(i.child=e.child,i.flags|=128,null):(_=u.fallback,d=i.mode,u=t_({mode:"visible",children:u.children},d,0,null),_=Ch(_,d,w,null),_.flags|=2,u.return=i,_.return=i,u.sibling=_,i.child=u,i.mode&1&&sf(i,e.child,null,w),i.child.memoizedState=EM(w),i.memoizedState=CM,_);if(!(i.mode&1))return Vy(e,i,w,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var a=u.dgst;return u=a,_=Error(Wi(419)),u=TM(_,u,void 0),Vy(e,i,w,u)}if(a=(w&e.childLanes)!==0,Ys||a){if(u=Ko,u!==null){switch(w&-w){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=d&(u.suspendedLanes|w)?0:d,d!==0&&d!==_.retryLane&&(_.retryLane=d,dc(e,d),Ka(u,e,d,-1))}return GM(),u=TM(Error(Wi(421))),Vy(e,i,w,u)}return d.data==="$?"?(i.flags|=128,i.child=e.child,i=OR.bind(null,e),d._reactRetry=i,null):(e=_.treeContext,sa=su(d.nextSibling),oa=i,co=!0,Ga=null,e!==null&&(Ia[Ta++]=uc,Ia[Ta++]=hc,Ia[Ta++]=xh,uc=e.id,hc=e.overflow,xh=i),i=NM(i,u.children),i.flags|=4096,i)}function sA(e,i,o){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i),lM(e.return,i,o)}function LM(e,i,o,u,d){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(_.isBackwards=i,_.rendering=null,_.renderingStartTime=0,_.last=u,_.tail=o,_.tailMode=d)}function aA(e,i,o){var u=i.pendingProps,d=u.revealOrder,_=u.tail;if(Es(e,i,u.children,o),u=yo.current,u&2)u=u&1|2,i.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sA(e,o,i);else if(e.tag===19)sA(e,o,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(Xr(yo,u),!(i.mode&1))i.memoizedState=null;else switch(d){case"forwards":for(o=i.child,d=null;o!==null;)e=o.alternate,e!==null&&jy(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=i.child,i.child=null):(d=o.sibling,o.sibling=null),LM(i,!1,d,o,_);break;case"backwards":for(o=null,d=i.child,i.child=null;d!==null;){if(e=d.alternate,e!==null&&jy(e)===null){i.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}LM(i,!0,o,null,_);break;case"together":LM(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Qy(e,i){!(i.mode&1)&&e!==null&&(e.alternate=null,i.alternate=null,i.flags|=2)}function pc(e,i,o){if(e!==null&&(i.dependencies=e.dependencies),Th|=i.lanes,!(o&i.childLanes))return null;if(e!==null&&i.child!==e.child)throw Error(Wi(153));if(i.child!==null){for(e=i.child,o=yu(e,e.pendingProps),i.child=o,o.return=i;e.sibling!==null;)e=e.sibling,o=o.sibling=yu(e,e.pendingProps),o.return=i;o.sibling=null}return i.child}function bR(e,i,o){switch(i.tag){case 3:nA(i),nf();break;case 5:I6(i);break;case 1:$s(i.type)&&Ty(i);break;case 4:fM(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,d=i.memoizedProps.value;Xr(Ey,u._currentValue),u._currentValue=d;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(Xr(yo,yo.current&1),i.flags|=128,null):o&i.child.childLanes?oA(e,i,o):(Xr(yo,yo.current&1),e=pc(e,i,o),e!==null?e.sibling:null);Xr(yo,yo.current&1);break;case 19:if(u=(o&i.childLanes)!==0,e.flags&128){if(u)return aA(e,i,o);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Xr(yo,yo.current),u)break;return null;case 22:case 23:return i.lanes=0,eA(e,i,o)}return pc(e,i,o)}var lA,zM,cA,uA;lA=function(e,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},zM=function(){},cA=function(e,i,o,u){var d=e.memoizedProps;if(d!==u){e=i.stateNode,Mh(_l.current);var _=null;switch(o){case"input":d=lb(e,d),u=lb(e,u),_=[];break;case"select":d=mo({},d,{value:void 0}),u=mo({},u,{value:void 0}),_=[];break;case"textarea":d=hb(e,d),u=hb(e,u),_=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=by)}fb(o,u);var w;o=null;for(j in d)if(!u.hasOwnProperty(j)&&d.hasOwnProperty(j)&&d[j]!=null)if(j==="style"){var a=d[j];for(w in a)a.hasOwnProperty(w)&&(o||(o={}),o[w]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(Tg.hasOwnProperty(j)?_||(_=[]):(_=_||[]).push(j,null));for(j in u){var E=u[j];if(a=d!=null?d[j]:void 0,u.hasOwnProperty(j)&&E!==a&&(E!=null||a!=null))if(j==="style")if(a){for(w in a)!a.hasOwnProperty(w)||E&&E.hasOwnProperty(w)||(o||(o={}),o[w]="");for(w in E)E.hasOwnProperty(w)&&a[w]!==E[w]&&(o||(o={}),o[w]=E[w])}else o||(_||(_=[]),_.push(j,o)),o=E;else j==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,a=a?a.__html:void 0,E!=null&&a!==E&&(_=_||[]).push(j,E)):j==="children"?typeof E!="string"&&typeof E!="number"||(_=_||[]).push(j,""+E):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(Tg.hasOwnProperty(j)?(E!=null&&j==="onScroll"&&ro("scroll",e),_||a===E||(_=[])):(_=_||[]).push(j,E))}o&&(_=_||[]).push("style",o);var j=_;(i.updateQueue=j)&&(i.flags|=4)}},uA=function(e,i,o,u){o!==u&&(i.flags|=4)};function am(e,i){if(!co)switch(e.tailMode){case"hidden":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function _s(e){var i=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(i)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,i}function MR(e,i,o){var u=i.pendingProps;switch(tM(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _s(i),null;case 1:return $s(i.type)&&Iy(),_s(i),null;case 3:return u=i.stateNode,af(),oo(Hs),oo(ms),mM(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Cy(i)?i.flags|=4:e===null||e.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,Ga!==null&&(HM(Ga),Ga=null))),zM(e,i),_s(i),null;case 5:pM(i);var d=Mh(im.current);if(o=i.type,e!==null&&i.stateNode!=null)cA(e,i,o,u,d),e.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(Wi(166));return _s(i),null}if(e=Mh(_l.current),Cy(i)){u=i.stateNode,o=i.type;var _=i.memoizedProps;switch(u[yl]=i,u[Kg]=_,e=(i.mode&1)!==0,o){case"dialog":ro("cancel",u),ro("close",u);break;case"iframe":case"object":case"embed":ro("load",u);break;case"video":case"audio":for(d=0;d<Zg.length;d++)ro(Zg[d],u);break;case"source":ro("error",u);break;case"img":case"image":case"link":ro("error",u),ro("load",u);break;case"details":ro("toggle",u);break;case"input":QD(u,_),ro("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!_.multiple},ro("invalid",u);break;case"textarea":YD(u,_),ro("invalid",u)}fb(o,_),d=null;for(var w in _)if(_.hasOwnProperty(w)){var a=_[w];w==="children"?typeof a=="string"?u.textContent!==a&&(_.suppressHydrationWarning!==!0&&wy(u.textContent,a,e),d=["children",a]):typeof a=="number"&&u.textContent!==""+a&&(_.suppressHydrationWarning!==!0&&wy(u.textContent,a,e),d=["children",""+a]):Tg.hasOwnProperty(w)&&a!=null&&w==="onScroll"&&ro("scroll",u)}switch(o){case"input":X1(u),$D(u,_,!0);break;case"textarea":X1(u),ZD(u);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(u.onclick=by)}u=d,i.updateQueue=u,u!==null&&(i.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=WD(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=w.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=w.createElement(o,{is:u.is}):(e=w.createElement(o),o==="select"&&(w=e,u.multiple?w.multiple=!0:u.size&&(w.size=u.size))):e=w.createElementNS(e,o),e[yl]=i,e[Kg]=u,lA(e,i,!1,!1),i.stateNode=e;e:{switch(w=pb(o,u),o){case"dialog":ro("cancel",e),ro("close",e),d=u;break;case"iframe":case"object":case"embed":ro("load",e),d=u;break;case"video":case"audio":for(d=0;d<Zg.length;d++)ro(Zg[d],e);d=u;break;case"source":ro("error",e),d=u;break;case"img":case"image":case"link":ro("error",e),ro("load",e),d=u;break;case"details":ro("toggle",e),d=u;break;case"input":QD(e,u),d=lb(e,u),ro("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=mo({},u,{value:void 0}),ro("invalid",e);break;case"textarea":YD(e,u),d=hb(e,u),ro("invalid",e);break;default:d=u}fb(o,d),a=d;for(_ in a)if(a.hasOwnProperty(_)){var E=a[_];_==="style"?XD(e,E):_==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&qD(e,E)):_==="children"?typeof E=="string"?(o!=="textarea"||E!=="")&&Cg(e,E):typeof E=="number"&&Cg(e,""+E):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(Tg.hasOwnProperty(_)?E!=null&&_==="onScroll"&&ro("scroll",e):E!=null&&Kw(e,_,E,w))}switch(o){case"input":X1(e),$D(e,u,!1);break;case"textarea":X1(e),ZD(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Jc(u.value));break;case"select":e.multiple=!!u.multiple,_=u.value,_!=null?Ud(e,!!u.multiple,_,!1):u.defaultValue!=null&&Ud(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=by)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return _s(i),null;case 6:if(e&&i.stateNode!=null)uA(e,i,e.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(Wi(166));if(o=Mh(im.current),Mh(_l.current),Cy(i)){if(u=i.stateNode,o=i.memoizedProps,u[yl]=i,(_=u.nodeValue!==o)&&(e=oa,e!==null))switch(e.tag){case 3:wy(u.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wy(u.nodeValue,o,(e.mode&1)!==0)}_&&(i.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[yl]=i,i.stateNode=u}return _s(i),null;case 13:if(oo(yo),u=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(co&&sa!==null&&i.mode&1&&!(i.flags&128))d6(),nf(),i.flags|=98560,_=!1;else if(_=Cy(i),u!==null&&u.dehydrated!==null){if(e===null){if(!_)throw Error(Wi(318));if(_=i.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(Wi(317));_[yl]=i}else nf(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;_s(i),_=!1}else Ga!==null&&(HM(Ga),Ga=null),_=!0;if(!_)return i.flags&65536?i:null}return i.flags&128?(i.lanes=o,i):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(i.child.flags|=8192,i.mode&1&&(e===null||yo.current&1?$o===0&&($o=3):GM())),i.updateQueue!==null&&(i.flags|=4),_s(i),null);case 4:return af(),zM(e,i),e===null&&Wg(i.stateNode.containerInfo),_s(i),null;case 10:return aM(i.type._context),_s(i),null;case 17:return $s(i.type)&&Iy(),_s(i),null;case 19:if(oo(yo),_=i.memoizedState,_===null)return _s(i),null;if(u=(i.flags&128)!==0,w=_.rendering,w===null)if(u)am(_,!1);else{if($o!==0||e!==null&&e.flags&128)for(e=i.child;e!==null;){if(w=jy(e),w!==null){for(i.flags|=128,am(_,!1),u=w.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=o,o=i.child;o!==null;)_=o,e=u,_.flags&=14680066,w=_.alternate,w===null?(_.childLanes=0,_.lanes=e,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=w.childLanes,_.lanes=w.lanes,_.child=w.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=w.memoizedProps,_.memoizedState=w.memoizedState,_.updateQueue=w.updateQueue,_.type=w.type,e=w.dependencies,_.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Xr(yo,yo.current&1|2),i.child}e=e.sibling}_.tail!==null&&Ao()>hf&&(i.flags|=128,u=!0,am(_,!1),i.lanes=4194304)}else{if(!u)if(e=jy(w),e!==null){if(i.flags|=128,u=!0,o=e.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),am(_,!0),_.tail===null&&_.tailMode==="hidden"&&!w.alternate&&!co)return _s(i),null}else 2*Ao()-_.renderingStartTime>hf&&o!==1073741824&&(i.flags|=128,u=!0,am(_,!1),i.lanes=4194304);_.isBackwards?(w.sibling=i.child,i.child=w):(o=_.last,o!==null?o.sibling=w:i.child=w,_.last=w)}return _.tail!==null?(i=_.tail,_.rendering=i,_.tail=i.sibling,_.renderingStartTime=Ao(),i.sibling=null,o=yo.current,Xr(yo,u?o&1|2:o&1),i):(_s(i),null);case 22:case 23:return YM(),u=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(i.flags|=8192),u&&i.mode&1?aa&1073741824&&(_s(i),i.subtreeFlags&6&&(i.flags|=8192)):_s(i),null;case 24:return null;case 25:return null}throw Error(Wi(156,i.tag))}function IR(e,i){switch(tM(i),i.tag){case 1:return $s(i.type)&&Iy(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return af(),oo(Hs),oo(ms),mM(),e=i.flags,e&65536&&!(e&128)?(i.flags=e&-65537|128,i):null;case 5:return pM(i),null;case 13:if(oo(yo),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(Wi(340));nf()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return oo(yo),null;case 4:return af(),null;case 10:return aM(i.type._context),null;case 22:case 23:return YM(),null;case 24:return null;default:return null}}var Hy=!1,vs=!1,TR=typeof WeakSet=="function"?WeakSet:Set,En=null;function cf(e,i){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){bo(e,i,u)}else o.current=null}function OM(e,i,o){try{o()}catch(u){bo(e,i,u)}}var hA=!1;function DR(e,i){if(Yb=uy,e=VS(),Rb(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,_=u.focusNode;u=u.focusOffset;try{o.nodeType,_.nodeType}catch{o=null;break e}var w=0,a=-1,E=-1,j=0,Q=0,q=e,W=null;t:for(;;){for(var le;q!==o||d!==0&&q.nodeType!==3||(a=w+d),q!==_||u!==0&&q.nodeType!==3||(E=w+u),q.nodeType===3&&(w+=q.nodeValue.length),(le=q.firstChild)!==null;)W=q,q=le;for(;;){if(q===e)break t;if(W===o&&++j===d&&(a=w),W===_&&++Q===u&&(E=w),(le=q.nextSibling)!==null)break;q=W,W=q.parentNode}q=le}o=a===-1||E===-1?null:{start:a,end:E}}else o=null}o=o||{start:0,end:0}}else o=null;for(Gb={focusedElem:e,selectionRange:o},uy=!1,En=i;En!==null;)if(i=En,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,En=e;else for(;En!==null;){i=En;try{var fe=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var we=fe.memoizedProps,$e=fe.memoizedState,me=i.stateNode,ie=me.getSnapshotBeforeUpdate(i.elementType===i.type?we:Za(i.type,we),$e);me.__reactInternalSnapshotBeforeUpdate=ie}break;case 3:var te=i.stateNode.containerInfo;te.nodeType===1?te.textContent="":te.nodeType===9&&te.documentElement&&te.removeChild(te.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Wi(163))}}catch(oe){bo(i,i.return,oe)}if(e=i.sibling,e!==null){e.return=i.return,En=e;break}En=i.return}return fe=hA,hA=!1,fe}function lm(e,i,o){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var _=d.destroy;d.destroy=void 0,_!==void 0&&OM(i,o,_)}d=d.next}while(d!==u)}}function $y(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var u=o.create;o.destroy=u()}o=o.next}while(o!==i)}}function kM(e){var i=e.ref;if(i!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof i=="function"?i(e):i.current=e}}function dA(e){var i=e.alternate;i!==null&&(e.alternate=null,dA(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[yl],delete i[Kg],delete i[Kb],delete i[lR],delete i[cR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fA(e){return e.tag===5||e.tag===3||e.tag===4}function pA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jM(e,i,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(e,i):o.insertBefore(e,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(e,o)):(i=o,i.appendChild(e)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=by));else if(u!==4&&(e=e.child,e!==null))for(jM(e,i,o),e=e.sibling;e!==null;)jM(e,i,o),e=e.sibling}function PM(e,i,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?o.insertBefore(e,i):o.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(PM(e,i,o),e=e.sibling;e!==null;)PM(e,i,o),e=e.sibling}var ls=null,Wa=!1;function du(e,i,o){for(o=o.child;o!==null;)gA(e,i,o),o=o.sibling}function gA(e,i,o){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(ry,o)}catch{}switch(o.tag){case 5:vs||cf(o,i);case 6:var u=ls,d=Wa;ls=null,du(e,i,o),ls=u,Wa=d,ls!==null&&(Wa?(e=ls,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ls.removeChild(o.stateNode));break;case 18:ls!==null&&(Wa?(e=ls,o=o.stateNode,e.nodeType===8?qb(e.parentNode,o):e.nodeType===1&&qb(e,o),Fg(e)):qb(ls,o.stateNode));break;case 4:u=ls,d=Wa,ls=o.stateNode.containerInfo,Wa=!0,du(e,i,o),ls=u,Wa=d;break;case 0:case 11:case 14:case 15:if(!vs&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var _=d,w=_.destroy;_=_.tag,w!==void 0&&(_&2||_&4)&&OM(o,i,w),d=d.next}while(d!==u)}du(e,i,o);break;case 1:if(!vs&&(cf(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(a){bo(o,i,a)}du(e,i,o);break;case 21:du(e,i,o);break;case 22:o.mode&1?(vs=(u=vs)||o.memoizedState!==null,du(e,i,o),vs=u):du(e,i,o);break;default:du(e,i,o)}}function mA(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new TR),i.forEach(function(u){var d=kR.bind(null,e,u);o.has(u)||(o.add(u),u.then(d,d))})}}function qa(e,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];try{var _=e,w=i,a=w;e:for(;a!==null;){switch(a.tag){case 5:ls=a.stateNode,Wa=!1;break e;case 3:ls=a.stateNode.containerInfo,Wa=!0;break e;case 4:ls=a.stateNode.containerInfo,Wa=!0;break e}a=a.return}if(ls===null)throw Error(Wi(160));gA(_,w,d),ls=null,Wa=!1;var E=d.alternate;E!==null&&(E.return=null),d.return=null}catch(j){bo(d,i,j)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)yA(i,e),i=i.sibling}function yA(e,i){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qa(i,e),xl(e),u&4){try{lm(3,e,e.return),$y(3,e)}catch(we){bo(e,e.return,we)}try{lm(5,e,e.return)}catch(we){bo(e,e.return,we)}}break;case 1:qa(i,e),xl(e),u&512&&o!==null&&cf(o,o.return);break;case 5:if(qa(i,e),xl(e),u&512&&o!==null&&cf(o,o.return),e.flags&32){var d=e.stateNode;try{Cg(d,"")}catch(we){bo(e,e.return,we)}}if(u&4&&(d=e.stateNode,d!=null)){var _=e.memoizedProps,w=o!==null?o.memoizedProps:_,a=e.type,E=e.updateQueue;if(e.updateQueue=null,E!==null)try{a==="input"&&_.type==="radio"&&_.name!=null&&HD(d,_),pb(a,w);var j=pb(a,_);for(w=0;w<E.length;w+=2){var Q=E[w],q=E[w+1];Q==="style"?XD(d,q):Q==="dangerouslySetInnerHTML"?qD(d,q):Q==="children"?Cg(d,q):Kw(d,Q,q,j)}switch(a){case"input":cb(d,_);break;case"textarea":GD(d,_);break;case"select":var W=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!_.multiple;var le=_.value;le!=null?Ud(d,!!_.multiple,le,!1):W!==!!_.multiple&&(_.defaultValue!=null?Ud(d,!!_.multiple,_.defaultValue,!0):Ud(d,!!_.multiple,_.multiple?[]:"",!1))}d[Kg]=_}catch(we){bo(e,e.return,we)}}break;case 6:if(qa(i,e),xl(e),u&4){if(e.stateNode===null)throw Error(Wi(162));d=e.stateNode,_=e.memoizedProps;try{d.nodeValue=_}catch(we){bo(e,e.return,we)}}break;case 3:if(qa(i,e),xl(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Fg(i.containerInfo)}catch(we){bo(e,e.return,we)}break;case 4:qa(i,e),xl(e);break;case 13:qa(i,e),xl(e),d=e.child,d.flags&8192&&(_=d.memoizedState!==null,d.stateNode.isHidden=_,!_||d.alternate!==null&&d.alternate.memoizedState!==null||(FM=Ao())),u&4&&mA(e);break;case 22:if(Q=o!==null&&o.memoizedState!==null,e.mode&1?(vs=(j=vs)||Q,qa(i,e),vs=j):qa(i,e),xl(e),u&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!Q&&e.mode&1)for(En=e,Q=e.child;Q!==null;){for(q=En=Q;En!==null;){switch(W=En,le=W.child,W.tag){case 0:case 11:case 14:case 15:lm(4,W,W.return);break;case 1:cf(W,W.return);var fe=W.stateNode;if(typeof fe.componentWillUnmount=="function"){u=W,o=W.return;try{i=u,fe.props=i.memoizedProps,fe.state=i.memoizedState,fe.componentWillUnmount()}catch(we){bo(u,o,we)}}break;case 5:cf(W,W.return);break;case 22:if(W.memoizedState!==null){xA(q);continue}}le!==null?(le.return=W,En=le):xA(q)}Q=Q.sibling}e:for(Q=null,q=e;;){if(q.tag===5){if(Q===null){Q=q;try{d=q.stateNode,j?(_=d.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(a=q.stateNode,E=q.memoizedProps.style,w=E!=null&&E.hasOwnProperty("display")?E.display:null,a.style.display=KD("display",w))}catch(we){bo(e,e.return,we)}}}else if(q.tag===6){if(Q===null)try{q.stateNode.nodeValue=j?"":q.memoizedProps}catch(we){bo(e,e.return,we)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;Q===q&&(Q=null),q=q.return}Q===q&&(Q=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:qa(i,e),xl(e),u&4&&mA(e);break;case 21:break;default:qa(i,e),xl(e)}}function xl(e){var i=e.flags;if(i&2){try{e:{for(var o=e.return;o!==null;){if(fA(o)){var u=o;break e}o=o.return}throw Error(Wi(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(Cg(d,""),u.flags&=-33);var _=pA(e);PM(e,_,d);break;case 3:case 4:var w=u.stateNode.containerInfo,a=pA(e);jM(e,a,w);break;default:throw Error(Wi(161))}}catch(E){bo(e,e.return,E)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function SR(e,i,o){En=e,_A(e)}function _A(e,i,o){for(var u=(e.mode&1)!==0;En!==null;){var d=En,_=d.child;if(d.tag===22&&u){var w=d.memoizedState!==null||Hy;if(!w){var a=d.alternate,E=a!==null&&a.memoizedState!==null||vs;a=Hy;var j=vs;if(Hy=w,(vs=E)&&!j)for(En=d;En!==null;)w=En,E=w.child,w.tag===22&&w.memoizedState!==null?wA(d):E!==null?(E.return=w,En=E):wA(d);for(;_!==null;)En=_,_A(_),_=_.sibling;En=d,Hy=a,vs=j}vA(e)}else d.subtreeFlags&8772&&_!==null?(_.return=d,En=_):vA(e)}}function vA(e){for(;En!==null;){var i=En;if(i.flags&8772){var o=i.alternate;try{if(i.flags&8772)switch(i.tag){case 0:case 11:case 15:vs||$y(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!vs)if(o===null)u.componentDidMount();else{var d=i.elementType===i.type?o.memoizedProps:Za(i.type,o.memoizedProps);u.componentDidUpdate(d,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var _=i.updateQueue;_!==null&&m6(i,_,u);break;case 3:var w=i.updateQueue;if(w!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}m6(i,w,o)}break;case 5:var a=i.stateNode;if(o===null&&i.flags&4){o=a;var E=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&o.focus();break;case"img":E.src&&(o.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var j=i.alternate;if(j!==null){var Q=j.memoizedState;if(Q!==null){var q=Q.dehydrated;q!==null&&Fg(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Wi(163))}vs||i.flags&512&&kM(i)}catch(W){bo(i,i.return,W)}}if(i===e){En=null;break}if(o=i.sibling,o!==null){o.return=i.return,En=o;break}En=i.return}}function xA(e){for(;En!==null;){var i=En;if(i===e){En=null;break}var o=i.sibling;if(o!==null){o.return=i.return,En=o;break}En=i.return}}function wA(e){for(;En!==null;){var i=En;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{$y(4,i)}catch(E){bo(i,o,E)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var d=i.return;try{u.componentDidMount()}catch(E){bo(i,d,E)}}var _=i.return;try{kM(i)}catch(E){bo(i,_,E)}break;case 5:var w=i.return;try{kM(i)}catch(E){bo(i,w,E)}}}catch(E){bo(i,i.return,E)}if(i===e){En=null;break}var a=i.sibling;if(a!==null){a.return=i.return,En=a;break}En=i.return}}var AR=Math.ceil,Yy=ac.ReactCurrentDispatcher,RM=ac.ReactCurrentOwner,Aa=ac.ReactCurrentBatchConfig,kr=0,Ko=null,Oo=null,cs=0,aa=0,uf=au(0),$o=0,cm=null,Th=0,Gy=0,BM=0,um=null,Gs=null,FM=0,hf=1/0,gc=null,Zy=!1,UM=null,fu=null,Wy=!1,pu=null,qy=0,hm=0,VM=null,Ky=-1,Xy=0;function Ns(){return kr&6?Ao():Ky!==-1?Ky:Ky=Ao()}function gu(e){return e.mode&1?kr&2&&cs!==0?cs&-cs:hR.transition!==null?(Xy===0&&(Xy=fS()),Xy):(e=Hr,e!==0||(e=window.event,e=e===void 0?16:bS(e.type)),e):1}function Ka(e,i,o,u){if(50<hm)throw hm=0,VM=null,Error(Wi(185));kg(e,o,u),(!(kr&2)||e!==Ko)&&(e===Ko&&(!(kr&2)&&(Gy|=o),$o===4&&mu(e,cs)),Zs(e,u),o===1&&kr===0&&!(i.mode&1)&&(hf=Ao()+500,Dy&&cu()))}function Zs(e,i){var o=e.callbackNode;hP(e,i);var u=ay(e,e===Ko?cs:0);if(u===0)o!==null&&uS(o),e.callbackNode=null,e.callbackPriority=0;else if(i=u&-u,e.callbackPriority!==i){if(o!=null&&uS(o),i===1)e.tag===0?uR(MA.bind(null,e)):a6(MA.bind(null,e)),sR(function(){!(kr&6)&&cu()}),o=null;else{switch(pS(u)){case 1:o=wb;break;case 4:o=hS;break;case 16:o=ny;break;case 536870912:o=dS;break;default:o=ny}o=NA(o,bA.bind(null,e))}e.callbackPriority=i,e.callbackNode=o}}function bA(e,i){if(Ky=-1,Xy=0,kr&6)throw Error(Wi(327));var o=e.callbackNode;if(df()&&e.callbackNode!==o)return null;var u=ay(e,e===Ko?cs:0);if(u===0)return null;if(u&30||u&e.expiredLanes||i)i=Jy(e,u);else{i=u;var d=kr;kr|=2;var _=TA();(Ko!==e||cs!==i)&&(gc=null,hf=Ao()+500,Sh(e,i));do try{NR();break}catch(a){IA(e,a)}while(1);sM(),Yy.current=_,kr=d,Oo!==null?i=0:(Ko=null,cs=0,i=$o)}if(i!==0){if(i===2&&(d=bb(e),d!==0&&(u=d,i=QM(e,d))),i===1)throw o=cm,Sh(e,0),mu(e,u),Zs(e,Ao()),o;if(i===6)mu(e,u);else{if(d=e.current.alternate,!(u&30)&&!CR(d)&&(i=Jy(e,u),i===2&&(_=bb(e),_!==0&&(u=_,i=QM(e,_))),i===1))throw o=cm,Sh(e,0),mu(e,u),Zs(e,Ao()),o;switch(e.finishedWork=d,e.finishedLanes=u,i){case 0:case 1:throw Error(Wi(345));case 2:Ah(e,Gs,gc);break;case 3:if(mu(e,u),(u&130023424)===u&&(i=FM+500-Ao(),10<i)){if(ay(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){Ns(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=Wb(Ah.bind(null,e,Gs,gc),i);break}Ah(e,Gs,gc);break;case 4:if(mu(e,u),(u&4194240)===u)break;for(i=e.eventTimes,d=-1;0<u;){var w=31-$a(u);_=1<<w,w=i[w],w>d&&(d=w),u&=~_}if(u=d,u=Ao()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*AR(u/1960))-u,10<u){e.timeoutHandle=Wb(Ah.bind(null,e,Gs,gc),u);break}Ah(e,Gs,gc);break;case 5:Ah(e,Gs,gc);break;default:throw Error(Wi(329))}}}return Zs(e,Ao()),e.callbackNode===o?bA.bind(null,e):null}function QM(e,i){var o=um;return e.current.memoizedState.isDehydrated&&(Sh(e,i).flags|=256),e=Jy(e,i),e!==2&&(i=Gs,Gs=o,i!==null&&HM(i)),e}function HM(e){Gs===null?Gs=e:Gs.push.apply(Gs,e)}function CR(e){for(var i=e;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var d=o[u],_=d.getSnapshot;d=d.value;try{if(!Ya(_(),d))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function mu(e,i){for(i&=~BM,i&=~Gy,e.suspendedLanes|=i,e.pingedLanes&=~i,e=e.expirationTimes;0<i;){var o=31-$a(i),u=1<<o;e[o]=-1,i&=~u}}function MA(e){if(kr&6)throw Error(Wi(327));df();var i=ay(e,0);if(!(i&1))return Zs(e,Ao()),null;var o=Jy(e,i);if(e.tag!==0&&o===2){var u=bb(e);u!==0&&(i=u,o=QM(e,u))}if(o===1)throw o=cm,Sh(e,0),mu(e,i),Zs(e,Ao()),o;if(o===6)throw Error(Wi(345));return e.finishedWork=e.current.alternate,e.finishedLanes=i,Ah(e,Gs,gc),Zs(e,Ao()),null}function $M(e,i){var o=kr;kr|=1;try{return e(i)}finally{kr=o,kr===0&&(hf=Ao()+500,Dy&&cu())}}function Dh(e){pu!==null&&pu.tag===0&&!(kr&6)&&df();var i=kr;kr|=1;var o=Aa.transition,u=Hr;try{if(Aa.transition=null,Hr=1,e)return e()}finally{Hr=u,Aa.transition=o,kr=i,!(kr&6)&&cu()}}function YM(){aa=uf.current,oo(uf)}function Sh(e,i){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,oR(o)),Oo!==null)for(o=Oo.return;o!==null;){var u=o;switch(tM(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Iy();break;case 3:af(),oo(Hs),oo(ms),mM();break;case 5:pM(u);break;case 4:af();break;case 13:oo(yo);break;case 19:oo(yo);break;case 10:aM(u.type._context);break;case 22:case 23:YM()}o=o.return}if(Ko=e,Oo=e=yu(e.current,null),cs=aa=i,$o=0,cm=null,BM=Gy=Th=0,Gs=um=null,bh!==null){for(i=0;i<bh.length;i++)if(o=bh[i],u=o.interleaved,u!==null){o.interleaved=null;var d=u.next,_=o.pending;if(_!==null){var w=_.next;_.next=d,u.next=w}o.pending=u}bh=null}return e}function IA(e,i){do{var o=Oo;try{if(sM(),Py.current=Uy,Ry){for(var u=_o.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}Ry=!1}if(Ih=0,qo=Ho=_o=null,nm=!1,rm=0,RM.current=null,o===null||o.return===null){$o=1,cm=i,Oo=null;break}e:{var _=e,w=o.return,a=o,E=i;if(i=cs,a.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var j=E,Q=a,q=Q.tag;if(!(Q.mode&1)&&(q===0||q===11||q===15)){var W=Q.alternate;W?(Q.updateQueue=W.updateQueue,Q.memoizedState=W.memoizedState,Q.lanes=W.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var le=W6(w);if(le!==null){le.flags&=-257,q6(le,w,a,_,i),le.mode&1&&Z6(_,j,i),i=le,E=j;var fe=i.updateQueue;if(fe===null){var we=new Set;we.add(E),i.updateQueue=we}else fe.add(E);break e}else{if(!(i&1)){Z6(_,j,i),GM();break e}E=Error(Wi(426))}}else if(co&&a.mode&1){var $e=W6(w);if($e!==null){!($e.flags&65536)&&($e.flags|=256),q6($e,w,a,_,i),rM(lf(E,a));break e}}_=E=lf(E,a),$o!==4&&($o=2),um===null?um=[_]:um.push(_),_=w;do{switch(_.tag){case 3:_.flags|=65536,i&=-i,_.lanes|=i;var me=Y6(_,E,i);g6(_,me);break e;case 1:a=E;var ie=_.type,te=_.stateNode;if(!(_.flags&128)&&(typeof ie.getDerivedStateFromError=="function"||te!==null&&typeof te.componentDidCatch=="function"&&(fu===null||!fu.has(te)))){_.flags|=65536,i&=-i,_.lanes|=i;var oe=G6(_,a,i);g6(_,oe);break e}}_=_.return}while(_!==null)}SA(o)}catch(be){i=be,Oo===o&&o!==null&&(Oo=o=o.return);continue}break}while(1)}function TA(){var e=Yy.current;return Yy.current=Uy,e===null?Uy:e}function GM(){($o===0||$o===3||$o===2)&&($o=4),Ko===null||!(Th&268435455)&&!(Gy&268435455)||mu(Ko,cs)}function Jy(e,i){var o=kr;kr|=2;var u=TA();(Ko!==e||cs!==i)&&(gc=null,Sh(e,i));do try{ER();break}catch(d){IA(e,d)}while(1);if(sM(),kr=o,Yy.current=u,Oo!==null)throw Error(Wi(261));return Ko=null,cs=0,$o}function ER(){for(;Oo!==null;)DA(Oo)}function NR(){for(;Oo!==null&&!iP();)DA(Oo)}function DA(e){var i=EA(e.alternate,e,aa);e.memoizedProps=e.pendingProps,i===null?SA(e):Oo=i,RM.current=null}function SA(e){var i=e;do{var o=i.alternate;if(e=i.return,i.flags&32768){if(o=IR(o,i),o!==null){o.flags&=32767,Oo=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$o=6,Oo=null;return}}else if(o=MR(o,i,aa),o!==null){Oo=o;return}if(i=i.sibling,i!==null){Oo=i;return}Oo=i=e}while(i!==null);$o===0&&($o=5)}function Ah(e,i,o){var u=Hr,d=Aa.transition;try{Aa.transition=null,Hr=1,LR(e,i,o,u)}finally{Aa.transition=d,Hr=u}return null}function LR(e,i,o,u){do df();while(pu!==null);if(kr&6)throw Error(Wi(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(Wi(177));e.callbackNode=null,e.callbackPriority=0;var _=o.lanes|o.childLanes;if(dP(e,_),e===Ko&&(Oo=Ko=null,cs=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||Wy||(Wy=!0,NA(ny,function(){return df(),null})),_=(o.flags&15990)!==0,o.subtreeFlags&15990||_){_=Aa.transition,Aa.transition=null;var w=Hr;Hr=1;var a=kr;kr|=4,RM.current=null,DR(e,o),yA(o,e),XP(Gb),uy=!!Yb,Gb=Yb=null,e.current=o,SR(o),nP(),kr=a,Hr=w,Aa.transition=_}else e.current=o;if(Wy&&(Wy=!1,pu=e,qy=d),_=e.pendingLanes,_===0&&(fu=null),sP(o.stateNode),Zs(e,Ao()),i!==null)for(u=e.onRecoverableError,o=0;o<i.length;o++)d=i[o],u(d.value,{componentStack:d.stack,digest:d.digest});if(Zy)throw Zy=!1,e=UM,UM=null,e;return qy&1&&e.tag!==0&&df(),_=e.pendingLanes,_&1?e===VM?hm++:(hm=0,VM=e):hm=0,cu(),null}function df(){if(pu!==null){var e=pS(qy),i=Aa.transition,o=Hr;try{if(Aa.transition=null,Hr=16>e?16:e,pu===null)var u=!1;else{if(e=pu,pu=null,qy=0,kr&6)throw Error(Wi(331));var d=kr;for(kr|=4,En=e.current;En!==null;){var _=En,w=_.child;if(En.flags&16){var a=_.deletions;if(a!==null){for(var E=0;E<a.length;E++){var j=a[E];for(En=j;En!==null;){var Q=En;switch(Q.tag){case 0:case 11:case 15:lm(8,Q,_)}var q=Q.child;if(q!==null)q.return=Q,En=q;else for(;En!==null;){Q=En;var W=Q.sibling,le=Q.return;if(dA(Q),Q===j){En=null;break}if(W!==null){W.return=le,En=W;break}En=le}}}var fe=_.alternate;if(fe!==null){var we=fe.child;if(we!==null){fe.child=null;do{var $e=we.sibling;we.sibling=null,we=$e}while(we!==null)}}En=_}}if(_.subtreeFlags&2064&&w!==null)w.return=_,En=w;else e:for(;En!==null;){if(_=En,_.flags&2048)switch(_.tag){case 0:case 11:case 15:lm(9,_,_.return)}var me=_.sibling;if(me!==null){me.return=_.return,En=me;break e}En=_.return}}var ie=e.current;for(En=ie;En!==null;){w=En;var te=w.child;if(w.subtreeFlags&2064&&te!==null)te.return=w,En=te;else e:for(w=ie;En!==null;){if(a=En,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$y(9,a)}}catch(be){bo(a,a.return,be)}if(a===w){En=null;break e}var oe=a.sibling;if(oe!==null){oe.return=a.return,En=oe;break e}En=a.return}}if(kr=d,cu(),ml&&typeof ml.onPostCommitFiberRoot=="function")try{ml.onPostCommitFiberRoot(ry,e)}catch{}u=!0}return u}finally{Hr=o,Aa.transition=i}}return!1}function AA(e,i,o){i=lf(o,i),i=Y6(e,i,1),e=hu(e,i,1),i=Ns(),e!==null&&(kg(e,1,i),Zs(e,i))}function bo(e,i,o){if(e.tag===3)AA(e,e,o);else for(;i!==null;){if(i.tag===3){AA(i,e,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(fu===null||!fu.has(u))){e=lf(o,e),e=G6(i,e,1),i=hu(i,e,1),e=Ns(),i!==null&&(kg(i,1,e),Zs(i,e));break}}i=i.return}}function zR(e,i,o){var u=e.pingCache;u!==null&&u.delete(i),i=Ns(),e.pingedLanes|=e.suspendedLanes&o,Ko===e&&(cs&o)===o&&($o===4||$o===3&&(cs&130023424)===cs&&500>Ao()-FM?Sh(e,0):BM|=o),Zs(e,i)}function CA(e,i){i===0&&(e.mode&1?(i=sy,sy<<=1,!(sy&130023424)&&(sy=4194304)):i=1);var o=Ns();e=dc(e,i),e!==null&&(kg(e,i,o),Zs(e,o))}function OR(e){var i=e.memoizedState,o=0;i!==null&&(o=i.retryLane),CA(e,o)}function kR(e,i){var o=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(Wi(314))}u!==null&&u.delete(i),CA(e,o)}var EA;EA=function(e,i,o){if(e!==null)if(e.memoizedProps!==i.pendingProps||Hs.current)Ys=!0;else{if(!(e.lanes&o)&&!(i.flags&128))return Ys=!1,bR(e,i,o);Ys=!!(e.flags&131072)}else Ys=!1,co&&i.flags&1048576&&l6(i,Ay,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;Qy(e,i),e=i.pendingProps;var d=Jd(i,ms.current);of(i,o),d=vM(null,i,u,e,d,o);var _=xM();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,$s(u)?(_=!0,Ty(i)):_=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,uM(i),d.updater=Oy,i.stateNode=d,d._reactInternals=i,dM(i,u,e,o),i=AM(null,i,u,!0,_,o)):(i.tag=0,co&&_&&eM(i),Es(null,i,d,o),i=i.child),i;case 16:u=i.elementType;e:{switch(Qy(e,i),e=i.pendingProps,d=u._init,u=d(u._payload),i.type=u,d=i.tag=PR(u),e=Za(u,e),d){case 0:i=SM(null,i,u,e,o);break e;case 1:i=iA(null,i,u,e,o);break e;case 11:i=K6(null,i,u,e,o);break e;case 14:i=X6(null,i,u,Za(u.type,e),o);break e}throw Error(Wi(306,u,""))}return i;case 0:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),SM(e,i,u,d,o);case 1:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),iA(e,i,u,d,o);case 3:e:{if(nA(i),e===null)throw Error(Wi(387));u=i.pendingProps,_=i.memoizedState,d=_.element,p6(e,i),zy(i,u,null,o);var w=i.memoizedState;if(u=w.element,_.isDehydrated)if(_={element:u,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=_,i.memoizedState=_,i.flags&256){d=lf(Error(Wi(423)),i),i=rA(e,i,u,o,d);break e}else if(u!==d){d=lf(Error(Wi(424)),i),i=rA(e,i,u,o,d);break e}else for(sa=su(i.stateNode.containerInfo.firstChild),oa=i,co=!0,Ga=null,o=M6(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(nf(),u===d){i=pc(e,i,o);break e}Es(e,i,u,o)}i=i.child}return i;case 5:return I6(i),e===null&&nM(i),u=i.type,d=i.pendingProps,_=e!==null?e.memoizedProps:null,w=d.children,Zb(u,d)?w=null:_!==null&&Zb(u,_)&&(i.flags|=32),tA(e,i),Es(e,i,w,o),i.child;case 6:return e===null&&nM(i),null;case 13:return oA(e,i,o);case 4:return fM(i,i.stateNode.containerInfo),u=i.pendingProps,e===null?i.child=sf(i,null,u,o):Es(e,i,u,o),i.child;case 11:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),K6(e,i,u,d,o);case 7:return Es(e,i,i.pendingProps,o),i.child;case 8:return Es(e,i,i.pendingProps.children,o),i.child;case 12:return Es(e,i,i.pendingProps.children,o),i.child;case 10:e:{if(u=i.type._context,d=i.pendingProps,_=i.memoizedProps,w=d.value,Xr(Ey,u._currentValue),u._currentValue=w,_!==null)if(Ya(_.value,w)){if(_.children===d.children&&!Hs.current){i=pc(e,i,o);break e}}else for(_=i.child,_!==null&&(_.return=i);_!==null;){var a=_.dependencies;if(a!==null){w=_.child;for(var E=a.firstContext;E!==null;){if(E.context===u){if(_.tag===1){E=fc(-1,o&-o),E.tag=2;var j=_.updateQueue;if(j!==null){j=j.shared;var Q=j.pending;Q===null?E.next=E:(E.next=Q.next,Q.next=E),j.pending=E}}_.lanes|=o,E=_.alternate,E!==null&&(E.lanes|=o),lM(_.return,o,i),a.lanes|=o;break}E=E.next}}else if(_.tag===10)w=_.type===i.type?null:_.child;else if(_.tag===18){if(w=_.return,w===null)throw Error(Wi(341));w.lanes|=o,a=w.alternate,a!==null&&(a.lanes|=o),lM(w,o,i),w=_.sibling}else w=_.child;if(w!==null)w.return=_;else for(w=_;w!==null;){if(w===i){w=null;break}if(_=w.sibling,_!==null){_.return=w.return,w=_;break}w=w.return}_=w}Es(e,i,d.children,o),i=i.child}return i;case 9:return d=i.type,u=i.pendingProps.children,of(i,o),d=Da(d),u=u(d),i.flags|=1,Es(e,i,u,o),i.child;case 14:return u=i.type,d=Za(u,i.pendingProps),d=Za(u.type,d),X6(e,i,u,d,o);case 15:return J6(e,i,i.type,i.pendingProps,o);case 17:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),Qy(e,i),i.tag=1,$s(u)?(e=!0,Ty(i)):e=!1,of(i,o),v6(i,u,d),dM(i,u,d,o),AM(null,i,u,!0,e,o);case 19:return aA(e,i,o);case 22:return eA(e,i,o)}throw Error(Wi(156,i.tag))};function NA(e,i){return cS(e,i)}function jR(e,i,o,u){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ca(e,i,o,u){return new jR(e,i,o,u)}function ZM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PR(e){if(typeof e=="function")return ZM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eb)return 11;if(e===nb)return 14}return 2}function yu(e,i){var o=e.alternate;return o===null?(o=Ca(e.tag,i,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=i,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,i=e.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function e_(e,i,o,u,d,_){var w=2;if(u=e,typeof e=="function")ZM(e)&&(w=1);else if(typeof e=="string")w=5;else e:switch(e){case Fd:return Ch(o.children,d,_,i);case Xw:w=8,d|=8;break;case Jw:return e=Ca(12,o,i,d|2),e.elementType=Jw,e.lanes=_,e;case tb:return e=Ca(13,o,i,d),e.elementType=tb,e.lanes=_,e;case ib:return e=Ca(19,o,i,d),e.elementType=ib,e.lanes=_,e;case BD:return t_(o,d,_,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case PD:w=10;break e;case RD:w=9;break e;case eb:w=11;break e;case nb:w=14;break e;case Xc:w=16,u=null;break e}throw Error(Wi(130,e==null?e:typeof e,""))}return i=Ca(w,o,i,d),i.elementType=e,i.type=u,i.lanes=_,i}function Ch(e,i,o,u){return e=Ca(7,e,u,i),e.lanes=o,e}function t_(e,i,o,u){return e=Ca(22,e,u,i),e.elementType=BD,e.lanes=o,e.stateNode={isHidden:!1},e}function WM(e,i,o){return e=Ca(6,e,null,i),e.lanes=o,e}function qM(e,i,o){return i=Ca(4,e.children!==null?e.children:[],e.key,i),i.lanes=o,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function RR(e,i,o,u,d){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mb(0),this.expirationTimes=Mb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mb(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function KM(e,i,o,u,d,_,w,a,E){return e=new RR(e,i,o,a,E),i===1?(i=1,_===!0&&(i|=8)):i=0,_=Ca(3,null,null,i),e.current=_,_.stateNode=e,_.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},uM(_),e}function BR(e,i,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bd,key:u==null?null:""+u,children:e,containerInfo:i,implementation:o}}function LA(e){if(!e)return lu;e=e._reactInternals;e:{if(yh(e)!==e||e.tag!==1)throw Error(Wi(170));var i=e;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if($s(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(Wi(171))}if(e.tag===1){var o=e.type;if($s(o))return o6(e,o,i)}return i}function zA(e,i,o,u,d,_,w,a,E){return e=KM(o,u,!0,e,d,_,w,a,E),e.context=LA(null),o=e.current,u=Ns(),d=gu(o),_=fc(u,d),_.callback=i??null,hu(o,_,d),e.current.lanes=d,kg(e,d,u),Zs(e,u),e}function i_(e,i,o,u){var d=i.current,_=Ns(),w=gu(d);return o=LA(o),i.context===null?i.context=o:i.pendingContext=o,i=fc(_,w),i.payload={element:e},u=u===void 0?null:u,u!==null&&(i.callback=u),e=hu(d,i,w),e!==null&&(Ka(e,d,w,_),Ly(e,d,w)),w}function n_(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function OA(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<i?o:i}}function XM(e,i){OA(e,i),(e=e.alternate)&&OA(e,i)}function FR(){return null}var kA=typeof reportError=="function"?reportError:function(e){console.error(e)};function JM(e){this._internalRoot=e}r_.prototype.render=JM.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(Wi(409));i_(e,i,null,null)},r_.prototype.unmount=JM.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;Dh(function(){i_(null,e,null,null)}),i[lc]=null}};function r_(e){this._internalRoot=e}r_.prototype.unstable_scheduleHydration=function(e){if(e){var i=yS();e={blockedOn:null,target:e,priority:i};for(var o=0;o<nu.length&&i!==0&&i<nu[o].priority;o++);nu.splice(o,0,e),o===0&&xS(e)}};function e3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jA(){}function UR(e,i,o,u,d){if(d){if(typeof u=="function"){var _=u;u=function(){var j=n_(w);_.call(j)}}var w=zA(i,u,e,0,null,!1,!1,"",jA);return e._reactRootContainer=w,e[lc]=w.current,Wg(e.nodeType===8?e.parentNode:e),Dh(),w}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var a=u;u=function(){var j=n_(E);a.call(j)}}var E=KM(e,0,!1,null,null,!1,!1,"",jA);return e._reactRootContainer=E,e[lc]=E.current,Wg(e.nodeType===8?e.parentNode:e),Dh(function(){i_(i,E,o,u)}),E}function s_(e,i,o,u,d){var _=o._reactRootContainer;if(_){var w=_;if(typeof d=="function"){var a=d;d=function(){var E=n_(w);a.call(E)}}i_(i,w,e,d)}else w=UR(o,i,e,d,u);return n_(w)}gS=function(e){switch(e.tag){case 3:var i=e.stateNode;if(i.current.memoizedState.isDehydrated){var o=Og(i.pendingLanes);o!==0&&(Ib(i,o|1),Zs(i,Ao()),!(kr&6)&&(hf=Ao()+500,cu()))}break;case 13:Dh(function(){var u=dc(e,1);if(u!==null){var d=Ns();Ka(u,e,1,d)}}),XM(e,1)}},Tb=function(e){if(e.tag===13){var i=dc(e,134217728);if(i!==null){var o=Ns();Ka(i,e,134217728,o)}XM(e,134217728)}},mS=function(e){if(e.tag===13){var i=gu(e),o=dc(e,i);if(o!==null){var u=Ns();Ka(o,e,i,u)}XM(e,i)}},yS=function(){return Hr},_S=function(e,i){var o=Hr;try{return Hr=e,i()}finally{Hr=o}},yb=function(e,i,o){switch(i){case"input":if(cb(e,o),i=o.name,o.type==="radio"&&i!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==e&&u.form===e.form){var d=My(u);if(!d)throw Error(Wi(90));VD(u),cb(u,d)}}}break;case"textarea":GD(e,o);break;case"select":i=o.value,i!=null&&Ud(e,!!o.multiple,i,!1)}},iS=$M,nS=Dh;var VR={usingClientEntryPoint:!1,Events:[Xg,Kd,My,eS,tS,$M]},dm={findFiberByHostInstance:_h,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},QR={bundleType:dm.bundleType,version:dm.version,rendererPackageName:dm.rendererPackageName,rendererConfig:dm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ac.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=aS(e),e===null?null:e.stateNode},findFiberByHostInstance:dm.findFiberByHostInstance||FR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var a_=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!a_.isDisabled&&a_.supportsFiber)try{ry=a_.inject(QR),ml=a_}catch{}}ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VR,ia.createPortal=function(e,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e3(i))throw Error(Wi(200));return BR(e,i,null,o)},ia.createRoot=function(e,i){if(!e3(e))throw Error(Wi(299));var o=!1,u="",d=kA;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(d=i.onRecoverableError)),i=KM(e,1,!1,null,null,o,!1,u,d),e[lc]=i.current,Wg(e.nodeType===8?e.parentNode:e),new JM(i)},ia.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(Wi(188)):(e=Object.keys(e).join(","),Error(Wi(268,e)));return e=aS(i),e=e===null?null:e.stateNode,e},ia.flushSync=function(e){return Dh(e)},ia.hydrate=function(e,i,o){if(!o_(i))throw Error(Wi(200));return s_(null,e,i,!0,o)},ia.hydrateRoot=function(e,i,o){if(!e3(e))throw Error(Wi(405));var u=o!=null&&o.hydratedSources||null,d=!1,_="",w=kA;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(_=o.identifierPrefix),o.onRecoverableError!==void 0&&(w=o.onRecoverableError)),i=zA(i,null,e,1,o??null,d,!1,_,w),e[lc]=i.current,Wg(e),u)for(e=0;e<u.length;e++)o=u[e],d=o._getVersion,d=d(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,d]:i.mutableSourceEagerHydrationData.push(o,d);return new r_(i)},ia.render=function(e,i,o){if(!o_(i))throw Error(Wi(200));return s_(null,e,i,!1,o)},ia.unmountComponentAtNode=function(e){if(!o_(e))throw Error(Wi(40));return e._reactRootContainer?(Dh(function(){s_(null,null,e,!1,function(){e._reactRootContainer=null,e[lc]=null})}),!0):!1},ia.unstable_batchedUpdates=$M,ia.unstable_renderSubtreeIntoContainer=function(e,i,o,u){if(!o_(o))throw Error(Wi(200));if(e==null||e._reactInternals===void 0)throw Error(Wi(38));return s_(e,i,o,!1,u)},ia.version="18.2.0-next-9e3b772b8-20220608";function PA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(PA)}catch(e){console.error(e)}}PA(),ED.exports=ia;var _u=ED.exports;const fm=oc(_u);function HR(e){const i=new Error(e);if(i.stack===void 0)try{throw i}catch{}return i}var $R=HR,hr=$R;function YR(e){return!!e&&typeof e.then=="function"}var so=YR;function GR(e,i){if(e!=null)return e;throw hr(i??"Got unexpected null or undefined")}var uo=GR;function ar(e,i,o){return i in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}class l_{getValue(){throw hr("BaseLoadable")}toPromise(){throw hr("BaseLoadable")}valueMaybe(){throw hr("BaseLoadable")}valueOrThrow(){throw hr(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw hr("BaseLoadable")}promiseOrThrow(){throw hr(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw hr("BaseLoadable")}errorOrThrow(){throw hr(`Loadable expected error, but in "${this.state}" state`)}is(i){return i.state===this.state&&i.contents===this.contents}map(i){throw hr("BaseLoadable")}}class ZR extends l_{constructor(i){super(),ar(this,"state","hasValue"),ar(this,"contents",void 0),this.contents=i}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(i){try{const o=i(this.contents);return so(o)?Eh(o):ff(o)?o:pm(o)}catch(o){return so(o)?Eh(o.next(()=>this.map(i))):c_(o)}}}class WR extends l_{constructor(i){super(),ar(this,"state","hasError"),ar(this,"contents",void 0),this.contents=i}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(i){return this}}class RA extends l_{constructor(i){super(),ar(this,"state","loading"),ar(this,"contents",void 0),this.contents=i}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(i){return Eh(this.contents.then(o=>{const u=i(o);if(ff(u)){const d=u;switch(d.state){case"hasValue":return d.contents;case"hasError":throw d.contents;case"loading":return d.contents}}return u}).catch(o=>{if(so(o))return o.then(()=>this.map(i).contents);throw o}))}}function pm(e){return Object.freeze(new ZR(e))}function c_(e){return Object.freeze(new WR(e))}function Eh(e){return Object.freeze(new RA(e))}function BA(){return Object.freeze(new RA(new Promise(()=>{})))}function qR(e){return e.every(i=>i.state==="hasValue")?pm(e.map(i=>i.contents)):e.some(i=>i.state==="hasError")?c_(uo(e.find(i=>i.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Eh(Promise.all(e.map(i=>i.contents)))}function FA(e){const o=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(d=>e[d])).map(d=>ff(d)?d:so(d)?Eh(d):pm(d)),u=qR(o);return Array.isArray(e)?u:u.map(d=>Object.getOwnPropertyNames(e).reduce((_,w,a)=>({..._,[w]:d[a]}),{}))}function ff(e){return e instanceof l_}var Nh={loadableWithValue:pm,loadableWithError:c_,loadableWithPromise:Eh,loadableLoading:BA,loadableAll:FA,isLoadable:ff,RecoilLoadable:{of:e=>so(e)?Eh(e):ff(e)?e:pm(e),error:e=>c_(e),loading:()=>BA(),all:FA,isLoadable:ff}},KR=Nh.loadableWithValue,XR=Nh.loadableWithError,JR=Nh.loadableWithPromise,eB=Nh.loadableLoading,tB=Nh.loadableAll,iB=Nh.isLoadable,nB=Nh.RecoilLoadable,gm=Object.freeze({__proto__:null,loadableWithValue:KR,loadableWithError:XR,loadableWithPromise:JR,loadableLoading:eB,loadableAll:tB,isLoadable:iB,RecoilLoadable:nB});const t3={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function rB(e,i){var o,u;const d=(o=process.env[e])===null||o===void 0||(u=o.toLowerCase())===null||u===void 0?void 0:u.trim();if(d==null||d==="")return;if(!["true","false"].includes(d))throw hr(`process.env.${e} value must be 'true', 'false', or empty: ${d}`);i(d==="true")}function oB(e,i){var o;const u=(o=process.env[e])===null||o===void 0?void 0:o.trim();u==null||u===""||i(u.split(/\s*,\s*|\s+/))}function sB(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(rB("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",i=>{t3.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=i}),oB("RECOIL_GKS_ENABLED",i=>{i.forEach(o=>{t3.RECOIL_GKS_ENABLED.add(o)})}))}sB();var pf=t3;function u_(e){return pf.RECOIL_GKS_ENABLED.has(e)}u_.setPass=e=>{pf.RECOIL_GKS_ENABLED.add(e)},u_.setFail=e=>{pf.RECOIL_GKS_ENABLED.delete(e)},u_.clear=()=>{pf.RECOIL_GKS_ENABLED.clear()};var qr=u_;function aB(e,i,{error:o}={}){return null}var lB=aB,i3=lB,n3,r3,o3;const cB=(n3=Cr.createMutableSource)!==null&&n3!==void 0?n3:Cr.unstable_createMutableSource,UA=(r3=Cr.useMutableSource)!==null&&r3!==void 0?r3:Cr.unstable_useMutableSource,VA=(o3=Cr.useSyncExternalStore)!==null&&o3!==void 0?o3:Cr.unstable_useSyncExternalStore;function uB(){var e;const{ReactCurrentDispatcher:i,ReactCurrentOwner:o}=Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=i==null?void 0:i.current)!==null&&e!==void 0?e:o.currentDispatcher).useSyncExternalStore!=null}function hB(){return qr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:qr("recoil_sync_external_store")&&VA!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:qr("recoil_mutable_source")&&UA!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?qr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:qr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function dB(){return!1}var mm={createMutableSource:cB,useMutableSource:UA,useSyncExternalStore:VA,currentRendererSupportsUseSyncExternalStore:uB,reactMode:hB,isFastRefreshEnabled:dB};class s3{constructor(i){ar(this,"key",void 0),this.key=i}toJSON(){return{key:this.key}}}class QA extends s3{}class HA extends s3{}function fB(e){return e instanceof QA||e instanceof HA}var h_={AbstractRecoilValue:s3,RecoilState:QA,RecoilValueReadOnly:HA,isRecoilValue:fB},pB=h_.AbstractRecoilValue,gB=h_.RecoilState,mB=h_.RecoilValueReadOnly,yB=h_.isRecoilValue,gf=Object.freeze({__proto__:null,AbstractRecoilValue:pB,RecoilState:gB,RecoilValueReadOnly:mB,isRecoilValue:yB});function _B(e,i){return function*(){let o=0;for(const u of e)yield i(u,o++)}()}var d_=_B;class $A{}const vB=new $A,Lh=new Map,a3=new Map;function xB(e){return d_(e,i=>uo(a3.get(i)))}function wB(e){if(Lh.has(e)){const i=`Duplicate atom key "${e}". This is a FATAL ERROR in
42
42
  production. But it is safe to ignore this warning if it occurred because of
43
- hot module replacement.`;console.warn(i)}}function bB(e){pf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&wB(e.key),Lh.set(e.key,e);const i=e.set==null?new gf.RecoilValueReadOnly(e.key):new gf.RecoilState(e.key);return a3.set(e.key,i),i}class YA extends Error{}function MB(e){const i=Lh.get(e);if(i==null)throw new YA(`Missing definition for RecoilValue: "${e}""`);return i}function IB(e){return Lh.get(e)}const f_=new Map;function TB(e){var i;if(!qr("recoil_memory_managament_2020"))return;const o=Lh.get(e);if(o!=null&&(i=o.shouldDeleteConfigOnRelease)!==null&&i!==void 0&&i.call(o)){var u;Lh.delete(e),(u=GA(e))===null||u===void 0||u(),f_.delete(e)}}function DB(e,i){qr("recoil_memory_managament_2020")&&(i===void 0?f_.delete(e):f_.set(e,i))}function GA(e){return f_.get(e)}var Ws={nodes:Lh,recoilValues:a3,registerNode:bB,getNode:MB,getNodeMaybe:IB,deleteNodeConfigIfPossible:TB,setConfigDeletionHandler:DB,getConfigDeletionHandler:GA,recoilValuesForKeys:xB,NodeMissingError:YA,DefaultValue:$A,DEFAULT_VALUE:vB};function SB(e,i){i()}var AB={enqueueExecution:SB};function CB(e,i){return i={exports:{}},e(i,i.exports),i.exports}var EB=CB(function(e){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},o={},u=5,d=Math.pow(2,u),_=d-1,w=d/2,a=d/4,E={},j=function(ft){return function(){return ft}},Q=o.hash=function(vt){var ft=typeof vt>"u"?"undefined":i(vt);if(ft==="number")return vt;ft!=="string"&&(vt+="");for(var si=0,Zt=0,ti=vt.length;Zt<ti;++Zt){var yi=vt.charCodeAt(Zt);si=(si<<5)-si+yi|0}return si},q=function(ft){return ft-=ft>>1&1431655765,ft=(ft&858993459)+(ft>>2&858993459),ft=ft+(ft>>4)&252645135,ft+=ft>>8,ft+=ft>>16,ft&127},W=function(ft,si){return si>>>ft&_},le=function(ft){return 1<<ft},fe=function(ft,si){return q(ft&si-1)},we=function(ft,si,Zt,ti){var yi=ti;if(!ft){var Di=ti.length;yi=new Array(Di);for(var Qi=0;Qi<Di;++Qi)yi[Qi]=ti[Qi]}return yi[si]=Zt,yi},$e=function(ft,si,Zt){var ti=Zt.length-1,yi=0,Di=0,Qi=Zt;if(ft)yi=Di=si;else for(Qi=new Array(ti);yi<si;)Qi[Di++]=Zt[yi++];for(++yi;yi<=ti;)Qi[Di++]=Zt[yi++];return ft&&(Qi.length=ti),Qi},me=function(ft,si,Zt,ti){var yi=ti.length;if(ft){for(var Di=yi;Di>=si;)ti[Di--]=ti[Di];return ti[si]=Zt,ti}for(var Qi=0,cn=0,Ji=new Array(yi+1);Qi<si;)Ji[cn++]=ti[Qi++];for(Ji[si]=Zt;Qi<yi;)Ji[++cn]=ti[Qi++];return Ji},ie=1,te=2,oe=3,be=4,_e={__hamt_isEmpty:!0},Je=function(ft){return ft===_e||ft&&ft.__hamt_isEmpty},nt=function(ft,si,Zt,ti){return{type:ie,edit:ft,hash:si,key:Zt,value:ti,_modify:St}},Ye=function(ft,si,Zt){return{type:te,edit:ft,hash:si,children:Zt,_modify:Ht}},xt=function(ft,si,Zt){return{type:oe,edit:ft,mask:si,children:Zt,_modify:Z}},dt=function(ft,si,Zt){return{type:be,edit:ft,size:si,children:Zt,_modify:ne}},Pt=function(ft){return ft===_e||ft.type===ie||ft.type===te},Tt=function(ft,si,Zt,ti,yi){for(var Di=[],Qi=ti,cn=0,Ji=0;Qi;++Ji)Qi&1&&(Di[Ji]=yi[cn++]),Qi>>>=1;return Di[si]=Zt,dt(ft,cn+1,Di)},ci=function(ft,si,Zt,ti){for(var yi=new Array(si-1),Di=0,Qi=0,cn=0,Ji=ti.length;cn<Ji;++cn)if(cn!==Zt){var wn=ti[cn];wn&&!Je(wn)&&(yi[Di++]=wn,Qi|=1<<cn)}return xt(ft,Qi,yi)},Ot=function vt(ft,si,Zt,ti,yi,Di){if(Zt===yi)return Ye(ft,Zt,[Di,ti]);var Qi=W(si,Zt),cn=W(si,yi);return xt(ft,le(Qi)|le(cn),Qi===cn?[vt(ft,si+u,Zt,ti,yi,Di)]:Qi<cn?[ti,Di]:[Di,ti])},wt=function(ft,si,Zt,ti,yi,Di,Qi,cn){for(var Ji=yi.length,wn=0;wn<Ji;++wn){var Dt=yi[wn];if(Zt(Qi,Dt.key)){var Vn=Dt.value,gr=Di(Vn);return gr===Vn?yi:gr===E?(--cn.value,$e(ft,wn,yi)):we(ft,wn,nt(si,ti,Qi,gr),yi)}}var xr=Di();return xr===E?yi:(++cn.value,we(ft,Ji,nt(si,ti,Qi,xr),yi))},$t=function(ft,si){return ft===si.edit},St=function(ft,si,Zt,ti,yi,Di,Qi){if(si(Di,this.key)){var cn=ti(this.value);return cn===this.value?this:cn===E?(--Qi.value,_e):$t(ft,this)?(this.value=cn,this):nt(ft,yi,Di,cn)}var Ji=ti();return Ji===E?this:(++Qi.value,Ot(ft,Zt,this.hash,this,yi,nt(ft,yi,Di,Ji)))},Ht=function(ft,si,Zt,ti,yi,Di,Qi){if(yi===this.hash){var cn=$t(ft,this),Ji=wt(cn,ft,si,this.hash,this.children,ti,Di,Qi);return Ji===this.children?this:Ji.length>1?Ye(ft,this.hash,Ji):Ji[0]}var wn=ti();return wn===E?this:(++Qi.value,Ot(ft,Zt,this.hash,this,yi,nt(ft,yi,Di,wn)))},Z=function(ft,si,Zt,ti,yi,Di,Qi){var cn=this.mask,Ji=this.children,wn=W(Zt,yi),Dt=le(wn),Vn=fe(cn,Dt),gr=cn&Dt,xr=gr?Ji[Vn]:_e,Ze=xr._modify(ft,si,Zt+u,ti,yi,Di,Qi);if(xr===Ze)return this;var K=$t(ft,this),ae=cn,he=void 0;if(gr&&Je(Ze)){if(ae&=~Dt,!ae)return _e;if(Ji.length<=2&&Pt(Ji[Vn^1]))return Ji[Vn^1];he=$e(K,Vn,Ji)}else if(!gr&&!Je(Ze)){if(Ji.length>=w)return Tt(ft,wn,Ze,cn,Ji);ae|=Dt,he=me(K,Vn,Ze,Ji)}else he=we(K,Vn,Ze,Ji);return K?(this.mask=ae,this.children=he,this):xt(ft,ae,he)},ne=function(ft,si,Zt,ti,yi,Di,Qi){var cn=this.size,Ji=this.children,wn=W(Zt,yi),Dt=Ji[wn],Vn=(Dt||_e)._modify(ft,si,Zt+u,ti,yi,Di,Qi);if(Dt===Vn)return this;var gr=$t(ft,this),xr=void 0;if(Je(Dt)&&!Je(Vn))++cn,xr=we(gr,wn,Vn,Ji);else if(!Je(Dt)&&Je(Vn)){if(--cn,cn<=a)return ci(ft,cn,wn,Ji);xr=we(gr,wn,_e,Ji)}else xr=we(gr,wn,Vn,Ji);return gr?(this.size=cn,this.children=xr,this):dt(ft,cn,xr)};_e._modify=function(vt,ft,si,Zt,ti,yi,Di){var Qi=Zt();return Qi===E?_e:(++Di.value,nt(vt,ti,yi,Qi))};function T(vt,ft,si,Zt,ti){this._editable=vt,this._edit=ft,this._config=si,this._root=Zt,this._size=ti}T.prototype.setTree=function(vt,ft){return this._editable?(this._root=vt,this._size=ft,this):vt===this._root?this:new T(this._editable,this._edit,this._config,vt,ft)};var k=o.tryGetHash=function(vt,ft,si,Zt){for(var ti=Zt._root,yi=0,Di=Zt._config.keyEq;;)switch(ti.type){case ie:return Di(si,ti.key)?ti.value:vt;case te:{if(ft===ti.hash)for(var Qi=ti.children,cn=0,Ji=Qi.length;cn<Ji;++cn){var wn=Qi[cn];if(Di(si,wn.key))return wn.value}return vt}case oe:{var Dt=W(yi,ft),Vn=le(Dt);if(ti.mask&Vn){ti=ti.children[fe(ti.mask,Vn)],yi+=u;break}return vt}case be:{if(ti=ti.children[W(yi,ft)],ti){yi+=u;break}return vt}default:return vt}};T.prototype.tryGetHash=function(vt,ft,si){return k(vt,ft,si,this)};var F=o.tryGet=function(vt,ft,si){return k(vt,si._config.hash(ft),ft,si)};T.prototype.tryGet=function(vt,ft){return F(vt,ft,this)};var U=o.getHash=function(vt,ft,si){return k(void 0,vt,ft,si)};T.prototype.getHash=function(vt,ft){return U(vt,ft,this)},o.get=function(vt,ft){return k(void 0,ft._config.hash(vt),vt,ft)},T.prototype.get=function(vt,ft){return F(ft,vt,this)};var G=o.has=function(vt,ft,si){return k(E,vt,ft,si)!==E};T.prototype.hasHash=function(vt,ft){return G(vt,ft,this)};var re=o.has=function(vt,ft){return G(ft._config.hash(vt),vt,ft)};T.prototype.has=function(vt){return re(vt,this)};var de=function(ft,si){return ft===si};o.make=function(vt){return new T(0,0,{keyEq:vt&&vt.keyEq||de,hash:vt&&vt.hash||Q},_e,0)},o.empty=o.make();var ue=o.isEmpty=function(vt){return vt&&!!Je(vt._root)};T.prototype.isEmpty=function(){return ue(this)};var Me=o.modifyHash=function(vt,ft,si,Zt){var ti={value:Zt._size},yi=Zt._root._modify(Zt._editable?Zt._edit:NaN,Zt._config.keyEq,0,vt,ft,si,ti);return Zt.setTree(yi,ti.value)};T.prototype.modifyHash=function(vt,ft,si){return Me(si,vt,ft,this)};var Fe=o.modify=function(vt,ft,si){return Me(vt,si._config.hash(ft),ft,si)};T.prototype.modify=function(vt,ft){return Fe(ft,vt,this)};var et=o.setHash=function(vt,ft,si,Zt){return Me(j(si),vt,ft,Zt)};T.prototype.setHash=function(vt,ft,si){return et(vt,ft,si,this)};var Ue=o.set=function(vt,ft,si){return et(si._config.hash(vt),vt,ft,si)};T.prototype.set=function(vt,ft){return Ue(vt,ft,this)};var Ke=j(E),Ve=o.removeHash=function(vt,ft,si){return Me(Ke,vt,ft,si)};T.prototype.removeHash=T.prototype.deleteHash=function(vt,ft){return Ve(vt,ft,this)};var mt=o.remove=function(vt,ft){return Ve(ft._config.hash(vt),vt,ft)};T.prototype.remove=T.prototype.delete=function(vt){return mt(vt,this)};var yt=o.beginMutation=function(vt){return new T(vt._editable+1,vt._edit+1,vt._config,vt._root,vt._size)};T.prototype.beginMutation=function(){return yt(this)};var Mt=o.endMutation=function(vt){return vt._editable=vt._editable&&vt._editable-1,vt};T.prototype.endMutation=function(){return Mt(this)};var Et=o.mutate=function(vt,ft){var si=yt(ft);return vt(si),Mt(si)};T.prototype.mutate=function(vt){return Et(vt,this)};var di=function(ft){return ft&&qt(ft[0],ft[1],ft[2],ft[3],ft[4])},qt=function(ft,si,Zt,ti,yi){for(;Zt<ft;){var Di=si[Zt++];if(Di&&!Je(Di))return ui(Di,ti,[ft,si,Zt,ti,yi])}return di(yi)},ui=function(ft,si,Zt){switch(ft.type){case ie:return{value:si(ft),rest:Zt};case te:case be:case oe:var ti=ft.children;return qt(ti.length,ti,0,si,Zt);default:return di(Zt)}},Wt={done:!0};function wi(vt){this.v=vt}wi.prototype.next=function(){if(!this.v)return Wt;var vt=this.v;return this.v=di(vt.rest),vt},wi.prototype[Symbol.iterator]=function(){return this};var Ei=function(ft,si){return new wi(ui(ft._root,si))},jt=function(ft){return[ft.key,ft.value]},kt=o.entries=function(vt){return Ei(vt,jt)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return kt(this)};var Pi=function(ft){return ft.key},Ai=o.keys=function(vt){return Ei(vt,Pi)};T.prototype.keys=function(){return Ai(this)};var $i=function(ft){return ft.value},xn=o.values=T.prototype.values=function(vt){return Ei(vt,$i)};T.prototype.values=function(){return xn(this)};var fn=o.fold=function(vt,ft,si){var Zt=si._root;if(Zt.type===ie)return vt(ft,Zt.value,Zt.key);for(var ti=[Zt.children],yi=void 0;yi=ti.pop();)for(var Di=0,Qi=yi.length;Di<Qi;){var cn=yi[Di++];cn&&cn.type&&(cn.type===ie?ft=vt(ft,cn.value,cn.key):ti.push(cn.children))}return ft};T.prototype.fold=function(vt,ft){return fn(vt,ft,this)};var tn=o.forEach=function(vt,ft){return fn(function(si,Zt,ti){return vt(Zt,ti,ft)},null,ft)};T.prototype.forEach=function(vt){return tn(vt,this)};var On=o.count=function(vt){return vt._size};T.prototype.count=function(){return On(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=o:(void 0).hamt=o});class NB{constructor(i){ar(this,"_map",void 0),this._map=new Map(i==null?void 0:i.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(i){return this._map.get(i)}has(i){return this._map.has(i)}set(i,o){return this._map.set(i,o),this}delete(i){return this._map.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._map)}}class l3{constructor(i){if(ar(this,"_hamt",EB.empty.beginMutation()),i instanceof l3){const o=i._hamt.endMutation();i._hamt=o.beginMutation(),this._hamt=o.beginMutation()}else if(i)for(const[o,u]of i.entries())this._hamt.set(o,u)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(i){return this._hamt.get(i)}has(i){return this._hamt.has(i)}set(i,o){return this._hamt.set(i,o),this}delete(i){return this._hamt.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._hamt)}}function c3(e){return qr("recoil_hamt_2020")?new l3(e):new NB(e)}var LB={persistentMap:c3},zB=LB.persistentMap,OB=Object.freeze({__proto__:null,persistentMap:zB});function kB(e,...i){const o=new Set;e:for(const u of e){for(const d of i)if(d.has(u))continue e;o.add(u)}return o}var ym=kB;function jB(e,i){const o=new Map;return e.forEach((u,d)=>{o.set(d,i(u,d))}),o}var p_=jB;function PB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function RB(e){return{nodeDeps:p_(e.nodeDeps,i=>new Set(i)),nodeToNodeSubscriptions:p_(e.nodeToNodeSubscriptions,i=>new Set(i))}}function u3(e,i,o,u){const{nodeDeps:d,nodeToNodeSubscriptions:_}=o,w=d.get(e);if(w&&u&&w!==u.nodeDeps.get(e))return;d.set(e,i);const a=w==null?i:ym(i,w);for(const E of a)_.has(E)||_.set(E,new Set),uo(_.get(E)).add(e);if(w){const E=ym(w,i);for(const j of E){if(!_.has(j))return;const Q=uo(_.get(j));Q.delete(e),Q.size===0&&_.delete(j)}}}function BB(e,i,o,u){var d,_,w,a;const E=o.getState();u===E.currentTree.version||u===((d=E.nextTree)===null||d===void 0?void 0:d.version)||((_=E.previousTree)===null||_===void 0||_.version);const j=o.getGraph(u);if(u3(e,i,j),u===((w=E.previousTree)===null||w===void 0?void 0:w.version)){const q=o.getGraph(E.currentTree.version);u3(e,i,q,j)}if(u===((a=E.previousTree)===null||a===void 0?void 0:a.version)||u===E.currentTree.version){var Q;const q=(Q=E.nextTree)===null||Q===void 0?void 0:Q.version;if(q!==void 0){const W=o.getGraph(q);u3(e,i,W,j)}}}var _m={cloneGraph:RB,graph:PB,saveDepsToStore:BB};let FB=0;const UB=()=>FB++;let VB=0;const QB=()=>VB++;let HB=0;var g_={getNextTreeStateVersion:UB,getNextStoreID:QB,getNextComponentID:()=>HB++};const{persistentMap:ZA}=OB,{graph:$B}=_m,{getNextTreeStateVersion:WA}=g_;function qA(){const e=WA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ZA(),nonvalidatedAtoms:ZA()}}function YB(){const e=qA();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,$B()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var KA={makeEmptyTreeState:qA,makeEmptyStoreState:YB,getNextTreeStateVersion:WA};class XA{}function GB(){return new XA}var m_={RetentionZone:XA,retentionZone:GB};function ZB(e,i){const o=new Set(e);return o.add(i),o}function WB(e,i){const o=new Set(e);return o.delete(i),o}function qB(e,i,o){const u=new Map(e);return u.set(i,o),u}function KB(e,i,o){const u=new Map(e);return u.set(i,o(u.get(i))),u}function XB(e,i){const o=new Map(e);return o.delete(i),o}function JB(e,i){const o=new Map(e);return i.forEach(u=>o.delete(u)),o}var JA={setByAddingToSet:ZB,setByDeletingFromSet:WB,mapBySettingInMap:qB,mapByUpdatingInMap:KB,mapByDeletingFromMap:XB,mapByDeletingMultipleFromMap:JB};function*eF(e,i){let o=0;for(const u of e)i(u,o++)&&(yield u)}var h3=eF;function tF(e,i){return new Proxy(e,{get:(u,d)=>(!(d in u)&&d in i&&(u[d]=i[d]()),u[d]),ownKeys:u=>Object.keys(u)})}var eC=tF;const{getNode:vm,getNodeMaybe:iF,recoilValuesForKeys:tC}=Ws,{RetentionZone:iC}=m_,{setByAddingToSet:nF}=JA,rF=Object.freeze(new Set);class oF extends Error{}function sF(e,i,o){if(!qr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:u}=e.getState().retention;function d(_){let w=u.get(_);w||u.set(_,w=new Set),w.add(i)}if(o instanceof iC)d(o);else if(Array.isArray(o))for(const _ of o)d(_);return()=>{if(!qr("recoil_memory_managament_2020"))return;const{retention:_}=e.getState();function w(a){const E=_.nodesRetainedByZone.get(a);E==null||E.delete(i),E&&E.size===0&&_.nodesRetainedByZone.delete(a)}if(o instanceof iC)w(o);else if(Array.isArray(o))for(const a of o)w(a)}}function d3(e,i,o,u){const d=e.getState();if(d.nodeCleanupFunctions.has(o))return;const _=vm(o),w=sF(e,o,_.retainedBy),a=_.init(e,i,u);d.nodeCleanupFunctions.set(o,()=>{a(),w()})}function aF(e,i,o){d3(e,e.getState().currentTree,i,o)}function lF(e,i){var o;const u=e.getState();(o=u.nodeCleanupFunctions.get(i))===null||o===void 0||o(),u.nodeCleanupFunctions.delete(i)}function cF(e,i,o){return d3(e,i,o,"get"),vm(o).get(e,i)}function nC(e,i,o){return vm(o).peek(e,i)}function uF(e,i,o){var u;const d=iF(i);return d==null||(u=d.invalidate)===null||u===void 0||u.call(d,e),{...e,atomValues:e.atomValues.clone().delete(i),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(i,o),dirtyAtoms:nF(e.dirtyAtoms,i)}}function hF(e,i,o,u){const d=vm(o);if(d.set==null)throw new oF(`Attempt to set read-only RecoilValue: ${o}`);const _=d.set;return d3(e,i,o,"set"),_(e,i,u)}function dF(e,i,o){const u=e.getState(),d=e.getGraph(i.version),_=vm(o).nodeType;return eC({type:_},{loadable:()=>nC(e,i,o),isActive:()=>u.knownAtoms.has(o)||u.knownSelectors.has(o),isSet:()=>_==="selector"?!1:i.atomValues.has(o),isModified:()=>i.dirtyAtoms.has(o),deps:()=>{var w;return tC((w=d.nodeDeps.get(o))!==null&&w!==void 0?w:[])},subscribers:()=>{var w,a;return{nodes:tC(h3(rC(e,i,new Set([o])),E=>E!==o)),components:d_((w=(a=u.nodeToComponentSubscriptions.get(o))===null||a===void 0?void 0:a.values())!==null&&w!==void 0?w:[],([E])=>({name:E}))}}})}function rC(e,i,o){const u=new Set,d=Array.from(o),_=e.getGraph(i.version);for(let a=d.pop();a;a=d.pop()){var w;u.add(a);const E=(w=_.nodeToNodeSubscriptions.get(a))!==null&&w!==void 0?w:rF;for(const j of E)u.has(j)||d.push(j)}return u}var vu={getNodeLoadable:cF,peekNodeLoadable:nC,setNodeValue:hF,initializeNode:aF,cleanUpNode:lF,setUnvalidatedAtomValue_DEPRECATED:uF,peekNodeInfo:dF,getDownstreamNodes:rC};let oC=null;function fF(e){oC=e}function pF(){var e;(e=oC)===null||e===void 0||e()}var sC={setInvalidateMemoizedSnapshot:fF,invalidateMemoizedSnapshot:pF};const{getDownstreamNodes:gF,getNodeLoadable:aC,setNodeValue:mF}=vu,{getNextComponentID:yF}=g_,{getNode:_F,getNodeMaybe:lC}=Ws,{DefaultValue:f3}=Ws,{reactMode:vF}=mm,{AbstractRecoilValue:xF,RecoilState:wF,RecoilValueReadOnly:bF,isRecoilValue:MF}=gf,{invalidateMemoizedSnapshot:IF}=sC;function TF(e,{key:i},o=e.getState().currentTree){var u,d;const _=e.getState();o.version===_.currentTree.version||o.version===((u=_.nextTree)===null||u===void 0?void 0:u.version)||(o.version,(d=_.previousTree)===null||d===void 0||d.version);const w=aC(e,o,i);return w.state==="loading"&&w.contents.catch(()=>{}),w}function DF(e,i){const o=e.clone();return i.forEach((u,d)=>{u.state==="hasValue"&&u.contents instanceof f3?o.delete(d):o.set(d,u)}),o}function SF(e,i,{key:o},u){if(typeof u=="function"){const d=aC(e,i,o);if(d.state==="loading"){const _=`Tried to set atom or selector "${o}" using an updater function while the current state is pending, this is not currently supported.`;throw hr(_)}else if(d.state==="hasError")throw d.contents;return u(d.contents)}else return u}function AF(e,i,o){if(o.type==="set"){const{recoilValue:d,valueOrUpdater:_}=o,w=SF(e,i,d,_),a=mF(e,i,d.key,w);for(const[E,j]of a.entries())p3(i,E,j)}else if(o.type==="setLoadable"){const{recoilValue:{key:d},loadable:_}=o;p3(i,d,_)}else if(o.type==="markModified"){const{recoilValue:{key:d}}=o;i.dirtyAtoms.add(d)}else if(o.type==="setUnvalidated"){var u;const{recoilValue:{key:d},unvalidatedValue:_}=o,w=lC(d);w==null||(u=w.invalidate)===null||u===void 0||u.call(w,i),i.atomValues.delete(d),i.nonvalidatedAtoms.set(d,_),i.dirtyAtoms.add(d)}else i3(`Unknown action ${o.type}`)}function p3(e,i,o){o.state==="hasValue"&&o.contents instanceof f3?e.atomValues.delete(i):e.atomValues.set(i,o),e.dirtyAtoms.add(i),e.nonvalidatedAtoms.delete(i)}function cC(e,i){e.replaceState(o=>{const u=uC(o);for(const d of i)AF(e,u,d);return hC(e,u),IF(),u})}function y_(e,i){if(xm.length){const o=xm[xm.length-1];let u=o.get(e);u||o.set(e,u=[]),u.push(i)}else cC(e,[i])}const xm=[];function CF(){const e=new Map;return xm.push(e),()=>{for(const[i,o]of e)cC(i,o);xm.pop()}}function uC(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function hC(e,i){const o=gF(e,i,i.dirtyAtoms);for(const _ of o){var u,d;(u=lC(_))===null||u===void 0||(d=u.invalidate)===null||d===void 0||d.call(u,i)}}function dC(e,i,o){y_(e,{type:"set",recoilValue:i,valueOrUpdater:o})}function EF(e,i,o){if(o instanceof f3)return dC(e,i,o);y_(e,{type:"setLoadable",recoilValue:i,loadable:o})}function NF(e,i){y_(e,{type:"markModified",recoilValue:i})}function LF(e,i,o){y_(e,{type:"setUnvalidated",recoilValue:i,unvalidatedValue:o})}function zF(e,{key:i},o,u=null){const d=yF(),_=e.getState();_.nodeToComponentSubscriptions.has(i)||_.nodeToComponentSubscriptions.set(i,new Map),uo(_.nodeToComponentSubscriptions.get(i)).set(d,[u??"<not captured>",o]);const w=vF();if(w.early&&(w.mode==="LEGACY"||w.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(i)&&o(a)}return{release:()=>{const a=e.getState(),E=a.nodeToComponentSubscriptions.get(i);E===void 0||!E.has(d)||(E.delete(d),E.size===0&&a.nodeToComponentSubscriptions.delete(i))}}}function OF(e,i){var o;const{currentTree:u}=e.getState(),d=_F(i.key);(o=d.clearCache)===null||o===void 0||o.call(d,e,u)}var wl={RecoilValueReadOnly:bF,AbstractRecoilValue:xF,RecoilState:wF,getRecoilValueAsLoadable:TF,setRecoilValue:dC,setRecoilValueLoadable:EF,markRecoilValueModified:NF,setUnvalidatedRecoilValue:LF,subscribeToRecoilValue:zF,isRecoilValue:MF,applyAtomValueWrites:DF,batchStart:CF,writeLoadableToTreeState:p3,invalidateDownstreams:hC,copyTreeState:uC,refreshRecoilValue:OF};function kF(e,i,o){const u=e.entries();let d=u.next();for(;!d.done;){const _=d.value;if(i.call(o,_[1],_[0],e))return!0;d=u.next()}return!1}var jF=kF;const{cleanUpNode:PF}=vu,{deleteNodeConfigIfPossible:RF,getNode:fC}=Ws,{RetentionZone:pC}=m_,BF=12e4,gC=new Set;function mC(e,i){const o=e.getState(),u=o.currentTree;if(o.nextTree)return;const d=new Set;for(const w of i)if(w instanceof pC)for(const a of QF(o,w))d.add(a);else d.add(w);const _=FF(e,d);for(const w of _)VF(e,u,w)}function FF(e,i){const o=e.getState(),u=o.currentTree,d=e.getGraph(u.version),_=new Set,w=new Set;return a(i),_;function a(E){const j=new Set,Q=UF(e,u,E,_,w);for(const fe of Q){var q;if(fC(fe).retainedBy==="recoilRoot"){w.add(fe);continue}if(((q=o.retention.referenceCounts.get(fe))!==null&&q!==void 0?q:0)>0){w.add(fe);continue}if(yC(fe).some($e=>o.retention.referenceCounts.get($e))){w.add(fe);continue}const we=d.nodeToNodeSubscriptions.get(fe);if(we&&jF(we,$e=>w.has($e))){w.add(fe);continue}_.add(fe),j.add(fe)}const W=new Set;for(const fe of j)for(const we of(le=d.nodeDeps.get(fe))!==null&&le!==void 0?le:gC){var le;_.has(we)||W.add(we)}W.size&&a(W)}}function UF(e,i,o,u,d){const _=e.getGraph(i.version),w=[],a=new Set;for(;o.size>0;)E(uo(o.values().next().value));return w;function E(j){if(u.has(j)||d.has(j)){o.delete(j);return}if(a.has(j))return;const Q=_.nodeToNodeSubscriptions.get(j);if(Q)for(const q of Q)E(q);a.add(j),o.delete(j),w.push(j)}}function VF(e,i,o){if(!qr("recoil_memory_managament_2020"))return;PF(e,o);const u=e.getState();u.knownAtoms.delete(o),u.knownSelectors.delete(o),u.nodeTransactionSubscriptions.delete(o),u.retention.referenceCounts.delete(o);const d=yC(o);for(const E of d){var _;(_=u.retention.nodesRetainedByZone.get(E))===null||_===void 0||_.delete(o)}i.atomValues.delete(o),i.dirtyAtoms.delete(o),i.nonvalidatedAtoms.delete(o);const w=u.graphsByVersion.get(i.version);if(w){const E=w.nodeDeps.get(o);if(E!==void 0){w.nodeDeps.delete(o);for(const j of E){var a;(a=w.nodeToNodeSubscriptions.get(j))===null||a===void 0||a.delete(o)}}w.nodeToNodeSubscriptions.delete(o)}RF(o)}function QF(e,i){var o;return(o=e.retention.nodesRetainedByZone.get(i))!==null&&o!==void 0?o:gC}function yC(e){const i=fC(e).retainedBy;return i===void 0||i==="components"||i==="recoilRoot"?[]:i instanceof pC?[i]:i}function HF(e,i){const o=e.getState();o.nextTree?o.retention.retainablesToCheckForRelease.add(i):mC(e,new Set([i]))}function $F(e,i,o){var u;if(!qr("recoil_memory_managament_2020"))return;const d=e.getState().retention.referenceCounts,_=((u=d.get(i))!==null&&u!==void 0?u:0)+o;_===0?_C(e,i):d.set(i,_)}function _C(e,i){if(!qr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(i),HF(e,i)}function YF(e){if(!qr("recoil_memory_managament_2020"))return;const i=e.getState();mC(e,i.retention.retainablesToCheckForRelease),i.retention.retainablesToCheckForRelease.clear()}function GF(e){return e===void 0?"recoilRoot":e}var zh={SUSPENSE_TIMEOUT_MS:BF,updateRetainCount:$F,updateRetainCountToZero:_C,releaseScheduledRetainablesNow:YF,retainedByOptionWithDefault:GF};const{unstable_batchedUpdates:ZF}=fm;var WF={unstable_batchedUpdates:ZF};const{unstable_batchedUpdates:qF}=WF;var KF={unstable_batchedUpdates:qF};const{batchStart:XF}=wl,{unstable_batchedUpdates:JF}=KF;let g3=JF||(e=>e());var __={getBatcher:()=>g3,setBatcher:e=>{g3=e},batchUpdates:e=>{g3(()=>{let i=()=>{};try{i=XF(),e()}finally{i()}})}};function*eU(e){for(const i of e)for(const o of i)yield o}var vC=eU;const xC=typeof Window>"u"||typeof window>"u",tU=e=>!xC&&(e===window||e instanceof Window),iU=typeof navigator<"u"&&navigator.product==="ReactNative";var v_={isSSR:xC,isReactNative:iU,isWindow:tU};function nU(e,i){let o;return(...u)=>{o||(o={});const d=i(...u);return Object.hasOwnProperty.call(o,d)||(o[d]=e(...u)),o[d]}}function rU(e,i){let o,u;return(...d)=>{const _=i(...d);return o===_||(o=_,u=e(...d)),u}}function oU(e,i){let o,u;return[(...w)=>{const a=i(...w);return o===a||(o=a,u=e(...w)),u},()=>{o=null}]}var sU={memoizeWithArgsHash:nU,memoizeOneWithArgsHash:rU,memoizeOneWithArgsHashAndInvalidation:oU};const{batchUpdates:m3}=__,{initializeNode:aU,peekNodeInfo:lU}=vu,{graph:cU}=_m,{getNextStoreID:uU}=g_,{DEFAULT_VALUE:hU,recoilValues:wC,recoilValuesForKeys:bC}=Ws,{AbstractRecoilValue:dU,getRecoilValueAsLoadable:fU,setRecoilValue:MC,setUnvalidatedRecoilValue:pU}=wl,{updateRetainCount:x_}=zh,{setInvalidateMemoizedSnapshot:gU}=sC,{getNextTreeStateVersion:mU,makeEmptyStoreState:yU}=KA,{isSSR:_U}=v_,{memoizeOneWithArgsHashAndInvalidation:vU}=sU;class w_{constructor(i,o){ar(this,"_store",void 0),ar(this,"_refCount",1),ar(this,"getLoadable",u=>(this.checkRefCount_INTERNAL(),fU(this._store,u))),ar(this,"getPromise",u=>(this.checkRefCount_INTERNAL(),this.getLoadable(u).toPromise())),ar(this,"getNodes_UNSTABLE",u=>{if(this.checkRefCount_INTERNAL(),(u==null?void 0:u.isModified)===!0){if((u==null?void 0:u.isInitialized)===!1)return[];const w=this._store.getState().currentTree;return bC(w.dirtyAtoms)}const d=this._store.getState().knownAtoms,_=this._store.getState().knownSelectors;return(u==null?void 0:u.isInitialized)==null?wC.values():u.isInitialized===!0?bC(vC([d,_])):h3(wC.values(),({key:w})=>!d.has(w)&&!_.has(w))}),ar(this,"getInfo_UNSTABLE",({key:u})=>(this.checkRefCount_INTERNAL(),lU(this._store,this._store.getState().currentTree,u))),ar(this,"map",u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return u(d),d}),ar(this,"asyncMap",async u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return d.retain(),await u(d),d.autoRelease_INTERNAL(),d}),this._store={storeID:uU(),parentStoreID:o,getState:()=>i,replaceState:u=>{i.currentTree=u(i.currentTree)},getGraph:u=>{const d=i.graphsByVersion;if(d.has(u))return uo(d.get(u));const _=cU();return d.set(u,_),_},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw hr("Cannot subscribe to Snapshots")}};for(const u of this._store.getState().knownAtoms)aU(this._store,u,"get"),x_(this._store,u,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let i=!1;return()=>{i||(i=!0,this._release())}}autoRelease_INTERNAL(){_U||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(i=>i()),this._store.getState().nodeCleanupFunctions.clear(),!qr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){qr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function IC(e,i,o=!1){const u=e.getState(),d=o?mU():i.version;return{currentTree:{version:o?d:i.version,stateID:o?d:i.stateID,transactionMetadata:{...i.transactionMetadata},dirtyAtoms:new Set(i.dirtyAtoms),atomValues:i.atomValues.clone(),nonvalidatedAtoms:i.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(u.knownAtoms),knownSelectors:new Set(u.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(d,e.getGraph(i.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(d_(u.nodeCleanupFunctions.entries(),([_])=>[_,()=>{}]))}}function xU(e){const i=new w_(yU());return e!=null?i.map(e):i}const[TC,DC]=vU((e,i)=>{var o;const u=e.getState(),d=i==="latest"?(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree:uo(u.previousTree);return new w_(IC(e,d),e.storeID)},(e,i)=>{var o,u;return String(i)+String(e.storeID)+String((o=e.getState().nextTree)===null||o===void 0?void 0:o.version)+String(e.getState().currentTree.version)+String((u=e.getState().previousTree)===null||u===void 0?void 0:u.version)});gU(DC);function wU(e,i="latest"){const o=TC(e,i);return o.isRetained()?o:(DC(),TC(e,i))}class y3 extends w_{constructor(i,o){super(IC(i.getStore_INTERNAL(),i.getStore_INTERNAL().getState().currentTree,!0),i.getStoreID()),ar(this,"_batch",void 0),ar(this,"set",(u,d)=>{this.checkRefCount_INTERNAL();const _=this.getStore_INTERNAL();this._batch(()=>{x_(_,u.key,1),MC(this.getStore_INTERNAL(),u,d)})}),ar(this,"reset",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{x_(d,u.key,1),MC(this.getStore_INTERNAL(),u,hU)})}),ar(this,"setUnvalidatedAtomValues_DEPRECATED",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();m3(()=>{for(const[_,w]of u.entries())x_(d,_,1),pU(d,new dU(_),w)})}),this._batch=o}}var b_={Snapshot:w_,MutableSnapshot:y3,freshSnapshot:xU,cloneSnapshot:wU},bU=b_.Snapshot,MU=b_.MutableSnapshot,IU=b_.freshSnapshot,TU=b_.cloneSnapshot,M_=Object.freeze({__proto__:null,Snapshot:bU,MutableSnapshot:MU,freshSnapshot:IU,cloneSnapshot:TU});function DU(...e){const i=new Set;for(const o of e)for(const u of o)i.add(u);return i}var SU=DU;const{useRef:AU}=Cr;function CU(e){const i=AU(e);return i.current===e&&typeof e=="function"&&(i.current=e()),i}var SC=CU;const{getNextTreeStateVersion:EU,makeEmptyStoreState:AC}=KA,{cleanUpNode:NU,getDownstreamNodes:LU,initializeNode:zU,setNodeValue:OU,setUnvalidatedAtomValue_DEPRECATED:kU}=vu,{graph:jU}=_m,{cloneGraph:PU}=_m,{getNextStoreID:CC}=g_,{createMutableSource:_3,reactMode:EC}=mm,{applyAtomValueWrites:RU}=wl,{releaseScheduledRetainablesNow:NC}=zh,{freshSnapshot:BU}=M_,{useCallback:FU,useContext:LC,useEffect:v3,useMemo:UU,useRef:VU,useState:QU}=Cr;function wm(){throw hr("This component must be used inside a <RecoilRoot> component.")}const zC=Object.freeze({storeID:CC(),getState:wm,replaceState:wm,getGraph:wm,subscribeToTransactions:wm,addTransactionMetadata:wm});let x3=!1;function OC(e){if(x3)throw hr("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const i=e.getState();if(i.nextTree===null){qr("recoil_memory_managament_2020")&&qr("recoil_release_on_cascading_update_killswitch_2021")&&i.commitDepth>0&&NC(e);const o=i.currentTree.version,u=EU();i.nextTree={...i.currentTree,version:u,stateID:u,dirtyAtoms:new Set,transactionMetadata:{}},i.graphsByVersion.set(u,PU(uo(i.graphsByVersion.get(o))))}}const kC=Cr.createContext({current:zC}),I_=()=>LC(kC),jC=Cr.createContext(null);function HU(){return LC(jC)}function w3(e,i,o){const u=LU(e,o,o.dirtyAtoms);for(const d of u){const _=i.nodeToComponentSubscriptions.get(d);if(_)for(const[w,[a,E]]of _)E(o)}}function PC(e){const i=e.getState(),o=i.currentTree,u=o.dirtyAtoms;if(u.size){for(const[d,_]of i.nodeTransactionSubscriptions)if(u.has(d))for(const[w,a]of _)a(e);for(const[d,_]of i.transactionSubscriptions)_(e);(!EC().early||i.suspendedComponentResolvers.size>0)&&(w3(e,i,o),i.suspendedComponentResolvers.forEach(d=>d()),i.suspendedComponentResolvers.clear())}i.queuedComponentCallbacks_DEPRECATED.forEach(d=>d(o)),i.queuedComponentCallbacks_DEPRECATED.splice(0,i.queuedComponentCallbacks_DEPRECATED.length)}function $U(e){const i=e.getState();i.commitDepth++;try{const{nextTree:o}=i;if(o==null)return;i.previousTree=i.currentTree,i.currentTree=o,i.nextTree=null,PC(e),i.previousTree!=null?i.graphsByVersion.delete(i.previousTree.version):i3("Ended batch with no previous state, which is unexpected","recoil"),i.previousTree=null,qr("recoil_memory_managament_2020")&&o==null&&NC(e)}finally{i.commitDepth--}}function YU({setNotifyBatcherOfChange:e}){const i=I_(),[,o]=QU([]);return e(()=>o({})),v3(()=>(e(()=>o({})),()=>{e(()=>{})}),[e]),v3(()=>{AB.enqueueExecution("Batcher",()=>{$U(i.current)})}),null}function GU(e,i){const o=AC();return i({set:(u,d)=>{const _=o.currentTree,w=OU(e,_,u.key,d),a=new Set(w.keys()),E=_.nonvalidatedAtoms.clone();for(const j of a)E.delete(j);o.currentTree={..._,dirtyAtoms:SU(_.dirtyAtoms,a),atomValues:RU(_.atomValues,w),nonvalidatedAtoms:E}},setUnvalidatedAtomValues:u=>{u.forEach((d,_)=>{o.currentTree=kU(o.currentTree,_,d)})}}),o}function ZU(e){const i=BU(e),o=i.getStore_INTERNAL().getState();return i.retain(),o.nodeCleanupFunctions.forEach(u=>u()),o.nodeCleanupFunctions.clear(),o}let RC=0;function WU({initializeState_DEPRECATED:e,initializeState:i,store_INTERNAL:o,children:u}){let d;const _=le=>{const fe=d.current.graphsByVersion;if(fe.has(le))return uo(fe.get(le));const we=jU();return fe.set(le,we),we},w=(le,fe)=>{if(fe==null){const{transactionSubscriptions:we}=q.current.getState(),$e=RC++;return we.set($e,le),{release:()=>{we.delete($e)}}}else{const{nodeTransactionSubscriptions:we}=q.current.getState();we.has(fe)||we.set(fe,new Map);const $e=RC++;return uo(we.get(fe)).set($e,le),{release:()=>{const me=we.get(fe);me&&(me.delete($e),me.size===0&&we.delete(fe))}}}},a=le=>{OC(q.current);for(const fe of Object.keys(le))uo(q.current.getState().nextTree).transactionMetadata[fe]=le[fe]},E=le=>{OC(q.current);const fe=uo(d.current.nextTree);let we;try{x3=!0,we=le(fe)}finally{x3=!1}we!==fe&&(d.current.nextTree=we,EC().early&&w3(q.current,d.current,we),uo(j.current)())},j=VU(null),Q=FU(le=>{j.current=le},[j]),q=SC(()=>o??{storeID:CC(),getState:()=>d.current,replaceState:E,getGraph:_,subscribeToTransactions:w,addTransactionMetadata:a});o!=null&&(q.current=o),d=SC(()=>e!=null?GU(q.current,e):i!=null?ZU(i):AC());const W=UU(()=>_3==null?void 0:_3(d,()=>d.current.currentTree.version),[d]);return v3(()=>{const le=q.current;for(const fe of new Set(le.getState().knownAtoms))zU(le,fe,"get");return()=>{for(const fe of le.getState().knownAtoms)NU(le,fe)}},[q]),Cr.createElement(kC.Provider,{value:q},Cr.createElement(jC.Provider,{value:W},Cr.createElement(YU,{setNotifyBatcherOfChange:Q}),u))}function qU(e){const{override:i,...o}=e,u=I_();return i===!1&&u.current!==zC?e.children:Cr.createElement(WU,o)}function KU(){return I_().current.storeID}var mc={RecoilRoot:qU,useStoreRef:I_,useRecoilMutableSource:HU,useRecoilStoreID:KU,notifyComponents_FOR_TESTING:w3,sendEndOfBatchNotifications_FOR_TESTING:PC};function XU(e,i){if(e===i)return!0;if(e.length!==i.length)return!1;for(let o=0,u=e.length;o<u;o++)if(e[o]!==i[o])return!1;return!0}var JU=XU;const{useEffect:eV,useRef:tV}=Cr;function iV(e){const i=tV();return eV(()=>{i.current=e}),i.current}var BC=iV;const{useStoreRef:nV}=mc,{SUSPENSE_TIMEOUT_MS:rV}=zh,{updateRetainCount:bm}=zh,{RetentionZone:oV}=m_,{useEffect:sV,useRef:aV}=Cr,{isSSR:FC}=v_;function lV(e){if(qr("recoil_memory_managament_2020"))return cV(e)}function cV(e){const o=(Array.isArray(e)?e:[e]).map(w=>w instanceof oV?w:w.key),u=nV();sV(()=>{if(!qr("recoil_memory_managament_2020"))return;const w=u.current;if(d.current&&!FC)window.clearTimeout(d.current),d.current=null;else for(const a of o)bm(w,a,1);return()=>{for(const a of o)bm(w,a,-1)}},[u,...o]);const d=aV(),_=BC(o);if(!FC&&(_===void 0||!JU(_,o))){const w=u.current;for(const a of o)bm(w,a,1);if(_)for(const a of _)bm(w,a,-1);d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=null;for(const a of o)bm(w,a,-1)},rV)}}var b3=lV;function uV(){return"<component name not available>"}var Mm=uV;const{batchUpdates:hV}=__,{DEFAULT_VALUE:UC}=Ws,{currentRendererSupportsUseSyncExternalStore:dV,reactMode:mf,useMutableSource:fV,useSyncExternalStore:pV}=mm,{useRecoilMutableSource:gV,useStoreRef:bl}=mc,{AbstractRecoilValue:M3,getRecoilValueAsLoadable:Im,setRecoilValue:T_,setUnvalidatedRecoilValue:mV,subscribeToRecoilValue:yf}=wl,{useCallback:qs,useEffect:_f,useMemo:VC,useRef:Tm,useState:I3}=Cr,{setByAddingToSet:yV}=JA,{isSSR:_V}=v_;function T3(e,i,o){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(d=>{const _=o.current.getState().suspendedComponentResolvers;_.add(d),_V&&so(e.contents)&&e.contents.finally(()=>{_.delete(d)})}):e.state==="hasError"?e.contents:hr(`Invalid value of loadable atom "${i.key}"`)}function vV(){const e=Mm(),i=bl(),[,o]=I3([]),u=Tm(new Set);u.current=new Set;const d=Tm(new Set),_=Tm(new Map),w=qs(E=>{const j=_.current.get(E);j&&(j.release(),_.current.delete(E))},[_]),a=qs((E,j)=>{_.current.has(j)&&o([])},[]);return _f(()=>{const E=i.current;ym(u.current,d.current).forEach(j=>{if(_.current.has(j))return;const Q=yf(E,new M3(j),W=>a(W,j),e);_.current.set(j,Q),E.getState().nextTree?E.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(E.getState(),j)}):a(E.getState(),j)}),ym(d.current,u.current).forEach(j=>{w(j)}),d.current=u.current}),_f(()=>{const E=_.current;return ym(u.current,new Set(E.keys())).forEach(j=>{const Q=yf(i.current,new M3(j),q=>a(q,j),e);E.set(j,Q)}),()=>E.forEach((j,Q)=>w(Q))},[e,i,w,a]),VC(()=>{function E(fe){return we=>{T_(i.current,fe,we)}}function j(fe){return()=>T_(i.current,fe,UC)}function Q(fe){var we;u.current.has(fe.key)||(u.current=yV(u.current,fe.key));const $e=i.current.getState();return Im(i.current,fe,mf().early&&(we=$e.nextTree)!==null&&we!==void 0?we:$e.currentTree)}function q(fe){const we=Q(fe);return T3(we,fe,i)}function W(fe){return[q(fe),E(fe)]}function le(fe){return[Q(fe),E(fe)]}return{getRecoilValue:q,getRecoilValueLoadable:Q,getRecoilState:W,getRecoilStateLoadable:le,getSetRecoilState:E,getResetRecoilState:j}},[u,i])}const xV={current:0};function wV(e){const i=bl(),o=Mm(),u=qs(()=>{var a;const E=i.current,j=E.getState(),Q=mf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return{loadable:Im(E,e,Q),key:e.key}},[i,e]),d=qs(a=>{let E;return()=>{var j,Q;const q=a();return(j=E)!==null&&j!==void 0&&j.loadable.is(q.loadable)&&((Q=E)===null||Q===void 0?void 0:Q.key)===q.key?E:(E=q,q)}},[]),_=VC(()=>d(u),[u,d]),w=qs(a=>{const E=i.current;return yf(E,e,a,o).release},[i,e,o]);return pV(w,_,_).loadable}function bV(e){const i=bl(),o=qs(()=>{var j;const Q=i.current,q=Q.getState(),W=mf().early&&(j=q.nextTree)!==null&&j!==void 0?j:q.currentTree;return Im(Q,e,W)},[i,e]),u=qs(()=>o(),[o]),d=Mm(),_=qs((j,Q)=>{const q=i.current;return yf(q,e,()=>{if(!qr("recoil_suppress_rerender_in_callback"))return Q();const le=o();E.current.is(le)||Q(),E.current=le},d).release},[i,e,d,o]),w=gV();if(w==null)throw hr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=fV(w,u,_),E=Tm(a);return _f(()=>{E.current=a}),a}function D3(e){const i=bl(),o=Mm(),u=qs(()=>{var E;const j=i.current,Q=j.getState(),q=mf().early&&(E=Q.nextTree)!==null&&E!==void 0?E:Q.currentTree;return Im(j,e,q)},[i,e]),d=qs(()=>({loadable:u(),key:e.key}),[u,e.key]),_=qs(E=>{const j=d();return E.loadable.is(j.loadable)&&E.key===j.key?E:j},[d]);_f(()=>{const E=yf(i.current,e,j=>{a(_)},o);return a(_),E.release},[o,e,i,_]);const[w,a]=I3(d);return w.key!==e.key?d().loadable:w.loadable}function MV(e){const i=bl(),[,o]=I3([]),u=Mm(),d=qs(()=>{var a;const E=i.current,j=E.getState(),Q=mf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return Im(E,e,Q)},[i,e]),_=d(),w=Tm(_);return _f(()=>{w.current=_}),_f(()=>{const a=i.current,E=a.getState(),j=yf(a,e,q=>{var W;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const le=d();(W=w.current)!==null&&W!==void 0&&W.is(le)||o(le),w.current=le},u);if(E.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{w.current=null,o([])});else{var Q;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const q=d();(Q=w.current)!==null&&Q!==void 0&&Q.is(q)||o(q),w.current=q}return j.release},[u,d,e,i]),_}function S3(e){return qr("recoil_memory_managament_2020")&&b3(e),{TRANSITION_SUPPORT:D3,SYNC_EXTERNAL_STORE:dV()?wV:D3,MUTABLE_SOURCE:bV,LEGACY:MV}[mf().mode](e)}function QC(e){const i=bl(),o=S3(e);return T3(o,e,i)}function D_(e){const i=bl();return qs(o=>{T_(i.current,e,o)},[i,e])}function IV(e){const i=bl();return qs(()=>{T_(i.current,e,UC)},[i,e])}function TV(e){return[QC(e),D_(e)]}function DV(e){return[S3(e),D_(e)]}function SV(){const e=bl();return(i,o={})=>{hV(()=>{e.current.addTransactionMetadata(o),i.forEach((u,d)=>mV(e.current,new M3(d),u))})}}function HC(e){return qr("recoil_memory_managament_2020")&&b3(e),D3(e)}function $C(e){const i=bl(),o=HC(e);return T3(o,e,i)}function AV(e){return[$C(e),D_(e)]}var CV={recoilComponentGetRecoilValueCount_FOR_TESTING:xV,useRecoilInterface:vV,useRecoilState:TV,useRecoilStateLoadable:DV,useRecoilValue:QC,useRecoilValueLoadable:S3,useResetRecoilState:IV,useSetRecoilState:D_,useSetUnvalidatedAtomValues:SV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:HC,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:$C,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:AV};function EV(e,i){const o=new Map;for(const[u,d]of e)i(d,u)&&o.set(u,d);return o}var NV=EV;function LV(e,i){const o=new Set;for(const u of e)i(u)&&o.add(u);return o}var zV=LV;function OV(...e){const i=new Map;for(let o=0;o<e.length;o++){const u=e[o].keys();let d;for(;!(d=u.next()).done;)i.set(d.value,e[o].get(d.value))}return i}var kV=OV;const{batchUpdates:jV}=__,{DEFAULT_VALUE:PV,getNode:YC,nodes:RV}=Ws,{useStoreRef:A3}=mc,{AbstractRecoilValue:BV,setRecoilValueLoadable:FV}=wl,{SUSPENSE_TIMEOUT_MS:UV}=zh,{cloneSnapshot:S_}=M_,{useCallback:A_,useEffect:GC,useRef:ZC,useState:VV}=Cr,{isSSR:WC}=v_;function C_(e){const i=A3();GC(()=>i.current.subscribeToTransactions(e).release,[e,i])}function qC(e){const i=e.atomValues.toMap(),o=p_(NV(i,(u,d)=>{const w=YC(d).persistence_UNSTABLE;return w!=null&&w.type!=="none"&&u.state==="hasValue"}),u=>u.contents);return kV(e.nonvalidatedAtoms.toMap(),o)}function QV(e){C_(A_(i=>{let o=i.getState().previousTree;const u=i.getState().currentTree;o||(o=i.getState().currentTree);const d=qC(u),_=qC(o),w=p_(RV,E=>{var j,Q,q,W;return{persistence_UNSTABLE:{type:(j=(Q=E.persistence_UNSTABLE)===null||Q===void 0?void 0:Q.type)!==null&&j!==void 0?j:"none",backButton:(q=(W=E.persistence_UNSTABLE)===null||W===void 0?void 0:W.backButton)!==null&&q!==void 0?q:!1}}}),a=zV(u.dirtyAtoms,E=>d.has(E)||_.has(E));e({atomValues:d,previousAtomValues:_,atomInfo:w,modifiedAtoms:a,transactionMetadata:{...u.transactionMetadata}})},[e]))}function HV(e){C_(A_(i=>{const o=S_(i,"latest"),u=S_(i,"previous");e({snapshot:o,previousSnapshot:u})},[e]))}function $V(){const e=A3(),[i,o]=VV(()=>S_(e.current)),u=BC(i),d=ZC(),_=ZC();if(C_(A_(a=>o(S_(a)),[])),GC(()=>{const a=i.retain();if(d.current&&!WC){var E;window.clearTimeout(d.current),d.current=null,(E=_.current)===null||E===void 0||E.call(_),_.current=null}return()=>{window.setTimeout(a,10)}},[i]),u!==i&&!WC){if(d.current){var w;window.clearTimeout(d.current),d.current=null,(w=_.current)===null||w===void 0||w.call(_),_.current=null}_.current=i.retain(),d.current=window.setTimeout(()=>{var a;d.current=null,(a=_.current)===null||a===void 0||a.call(_),_.current=null},UV)}return i}function KC(e,i){var o;const u=e.getState(),d=(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree,_=i.getStore_INTERNAL().getState().currentTree;jV(()=>{const w=new Set;for(const j of[d.atomValues.keys(),_.atomValues.keys()])for(const Q of j){var a,E;((a=d.atomValues.get(Q))===null||a===void 0?void 0:a.contents)!==((E=_.atomValues.get(Q))===null||E===void 0?void 0:E.contents)&&YC(Q).shouldRestoreFromSnapshots&&w.add(Q)}w.forEach(j=>{FV(e,new BV(j),_.atomValues.has(j)?uo(_.atomValues.get(j)):PV)}),e.replaceState(j=>({...j,stateID:i.getID()}))})}function YV(){const e=A3();return A_(i=>KC(e.current,i),[e])}var XC={useRecoilSnapshot:$V,gotoSnapshot:KC,useGotoRecoilSnapshot:YV,useRecoilTransactionObserver:HV,useTransactionObservation_DEPRECATED:QV,useTransactionSubscription_DEPRECATED:C_};const{peekNodeInfo:GV}=vu,{useStoreRef:ZV}=mc;function WV(){const e=ZV();return({key:i})=>GV(e.current,e.current.getState().currentTree,i)}var qV=WV;const{reactMode:KV}=mm,{RecoilRoot:XV,useStoreRef:JV}=mc,{useMemo:eQ}=Cr;function tQ(){KV().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=JV().current;return eQ(()=>{function i({children:o}){return Cr.createElement(XV,{store_INTERNAL:e},o)}return i},[e])}var iQ=tQ;const{loadableWithValue:nQ}=gm,{initializeNode:rQ}=vu,{DEFAULT_VALUE:oQ,getNode:sQ}=Ws,{copyTreeState:aQ,getRecoilValueAsLoadable:lQ,invalidateDownstreams:cQ,writeLoadableToTreeState:uQ}=wl;function JC(e){return sQ(e.key).nodeType==="atom"}class hQ{constructor(i,o){ar(this,"_store",void 0),ar(this,"_treeState",void 0),ar(this,"_changes",void 0),ar(this,"get",u=>{if(this._changes.has(u.key))return this._changes.get(u.key);if(!JC(u))throw hr("Reading selectors within atomicUpdate is not supported");const d=lQ(this._store,u,this._treeState);if(d.state==="hasValue")return d.contents;throw d.state==="hasError"?d.contents:hr(`Expected Recoil atom ${u.key} to have a value, but it is in a loading state.`)}),ar(this,"set",(u,d)=>{if(!JC(u))throw hr("Setting selectors within atomicUpdate is not supported");if(typeof d=="function"){const _=this.get(u);this._changes.set(u.key,d(_))}else rQ(this._store,u.key,"set"),this._changes.set(u.key,d)}),ar(this,"reset",u=>{this.set(u,oQ)}),this._store=i,this._treeState=o,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const i=aQ(this._treeState);for(const[o,u]of this._changes)uQ(i,o,nQ(u));return cQ(this._store,i),i}}function dQ(e){return i=>{e.replaceState(o=>{const u=new hQ(e,o);return i(u),u.newTreeState_INTERNAL()})}}var fQ={atomicUpdater:dQ},pQ=fQ.atomicUpdater,eE=Object.freeze({__proto__:null,atomicUpdater:pQ});function gQ(e,i){if(!e)throw new Error(i)}var mQ=gQ,Dm=mQ;const{atomicUpdater:yQ}=eE,{batchUpdates:_Q}=__,{DEFAULT_VALUE:vQ}=Ws,{useStoreRef:xQ}=mc,{refreshRecoilValue:wQ,setRecoilValue:tE}=wl,{cloneSnapshot:bQ}=M_,{gotoSnapshot:MQ}=XC,{useCallback:IQ}=Cr;class iE{}const TQ=new iE;function nE(e,i,o,u){let d=TQ,_;if(_Q(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof i!="function")throw hr(a);const E=eC({...u??{},set:(Q,q)=>tE(e,Q,q),reset:Q=>tE(e,Q,vQ),refresh:Q=>wQ(e,Q),gotoSnapshot:Q=>MQ(e,Q),transact_UNSTABLE:Q=>yQ(e)(Q)},{snapshot:()=>{const Q=bQ(e);return _=Q.retain(),Q}}),j=i(E);if(typeof j!="function")throw hr(a);d=j(...o)}),d instanceof iE&&Dm(!1),so(d))d=d.finally(()=>{var a;(a=_)===null||a===void 0||a()});else{var w;(w=_)===null||w===void 0||w()}return d}function DQ(e,i){const o=xQ();return IQ((...u)=>nE(o.current,e,u),i!=null?[...i,o]:void 0)}var rE={recoilCallback:nE,useRecoilCallback:DQ};const{useStoreRef:SQ}=mc,{refreshRecoilValue:AQ}=wl,{useCallback:CQ}=Cr;function EQ(e){const i=SQ();return CQ(()=>{const o=i.current;AQ(o,e)},[e,i])}var NQ=EQ;const{atomicUpdater:LQ}=eE,{useStoreRef:zQ}=mc,{useMemo:OQ}=Cr;function kQ(e,i){const o=zQ();return OQ(()=>(...u)=>{LQ(o.current)(_=>{e(_)(...u)})},i!=null?[...i,o]:void 0)}var jQ=kQ;class PQ{constructor(i){ar(this,"value",void 0),this.value=i}}var RQ={WrappedValue:PQ},BQ=RQ.WrappedValue,oE=Object.freeze({__proto__:null,WrappedValue:BQ});const{isFastRefreshEnabled:FQ}=mm;class sE extends Error{}class UQ{constructor(i){var o,u,d;ar(this,"_name",void 0),ar(this,"_numLeafs",void 0),ar(this,"_root",void 0),ar(this,"_onHit",void 0),ar(this,"_onSet",void 0),ar(this,"_mapNodeValue",void 0),this._name=i==null?void 0:i.name,this._numLeafs=0,this._root=null,this._onHit=(o=i==null?void 0:i.onHit)!==null&&o!==void 0?o:()=>{},this._onSet=(u=i==null?void 0:i.onSet)!==null&&u!==void 0?u:()=>{},this._mapNodeValue=(d=i==null?void 0:i.mapNodeValue)!==null&&d!==void 0?d:_=>_}size(){return this._numLeafs}root(){return this._root}get(i,o){var u;return(u=this.getLeafNode(i,o))===null||u===void 0?void 0:u.value}getLeafNode(i,o){if(this._root==null)return;let u=this._root;for(;u;){if(o==null||o.onNodeVisit(u),u.type==="leaf")return this._onHit(u),u;const d=this._mapNodeValue(i(u.nodeKey));u=u.branches.get(d)}}set(i,o,u){const d=()=>{var _,w,a,E;let j,Q;for(const[$e,me]of i){var q,W,le;const ie=this._root;if((ie==null?void 0:ie.type)==="leaf")throw this.invalidCacheError();const te=j;if(j=te?te.branches.get(Q):ie,j=(q=j)!==null&&q!==void 0?q:{type:"branch",nodeKey:$e,parent:te,branches:new Map,branchKey:Q},j.type!=="branch"||j.nodeKey!==$e)throw this.invalidCacheError();te==null||te.branches.set(Q,j),u==null||(W=u.onNodeVisit)===null||W===void 0||W.call(u,j),Q=this._mapNodeValue(me),this._root=(le=this._root)!==null&&le!==void 0?le:j}const fe=j?(_=j)===null||_===void 0?void 0:_.branches.get(Q):this._root;if(fe!=null&&(fe.type!=="leaf"||fe.branchKey!==Q))throw this.invalidCacheError();const we={type:"leaf",value:o,parent:j,branchKey:Q};(w=j)===null||w===void 0||w.branches.set(Q,we),this._root=(a=this._root)!==null&&a!==void 0?a:we,this._numLeafs++,this._onSet(we),u==null||(E=u.onNodeVisit)===null||E===void 0||E.call(u,we)};try{d()}catch(_){if(_ instanceof sE)this.clear(),d();else throw _}}delete(i){const o=this.root();if(!o)return!1;if(i===o)return this._root=null,this._numLeafs=0,!0;let u=i.parent,d=i.branchKey;for(;u;){var _;if(u.branches.delete(d),u===o)return u.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(u.branches.size>0)break;d=(_=u)===null||_===void 0?void 0:_.branchKey,u=u.parent}for(;u!==o;u=u.parent)if(u==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const i=FQ()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw i3(i+(this._name!=null?` - ${this._name}`:"")),new sE}}var VQ={TreeCache:UQ},QQ=VQ.TreeCache,aE=Object.freeze({__proto__:null,TreeCache:QQ});class HQ{constructor(i){var o;ar(this,"_maxSize",void 0),ar(this,"_size",void 0),ar(this,"_head",void 0),ar(this,"_tail",void 0),ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._maxSize=i.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(o=i.mapKey)!==null&&o!==void 0?o:u=>u}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(i){return this._map.has(this._keyMapper(i))}get(i){const o=this._keyMapper(i),u=this._map.get(o);if(u)return this.set(i,u.value),u.value}set(i,o){const u=this._keyMapper(i);this._map.get(u)&&this.delete(i);const _=this.head(),w={key:i,right:_,left:null,value:o};_?_.left=w:this._tail=w,this._map.set(u,w),this._head=w,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const i=this.tail();i&&this.delete(i.key)}delete(i){const o=this._keyMapper(i);if(!this._size||!this._map.has(o))return;const u=uo(this._map.get(o)),d=u.right,_=u.left;d&&(d.left=u.left),_&&(_.right=u.right),u===this.head()&&(this._head=d),u===this.tail()&&(this._tail=_),this._map.delete(o),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var $Q={LRUCache:HQ},YQ=$Q.LRUCache,lE=Object.freeze({__proto__:null,LRUCache:YQ});const{LRUCache:GQ}=lE,{TreeCache:ZQ}=aE;function WQ({name:e,maxSize:i,mapNodeValue:o=u=>u}){const u=new GQ({maxSize:i}),d=new ZQ({name:e,mapNodeValue:o,onHit:_=>{u.set(_,!0)},onSet:_=>{const w=u.tail();u.set(_,!0),w&&d.size()>i&&d.delete(w.key)}});return d}var cE=WQ;function Xa(e,i,o){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((i==null?void 0:i.allowFunctions)!==!0)throw hr("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var u;return(u=JSON.stringify(e))!==null&&u!==void 0?u:""}if(so(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((d,_)=>Xa(d,i,_.toString()))}]`;if(typeof e.toJSON=="function")return Xa(e.toJSON(o),i,o);if(e instanceof Map){const d={};for(const[_,w]of e)d[typeof _=="string"?_:Xa(_,i)]=w;return Xa(d,i,o)}return e instanceof Set?Xa(Array.from(e).sort((d,_)=>Xa(d,i).localeCompare(Xa(_,i))),i,o):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xa(Array.from(e),i,o):`{${Object.keys(e).filter(d=>e[d]!==void 0).sort().map(d=>`${Xa(d,i)}:${Xa(e[d],i,d)}`).join(",")}}`}function qQ(e,i={allowFunctions:!1}){return Xa(e,i)}var E_=qQ;const{TreeCache:KQ}=aE,N_={equality:"reference",eviction:"keep-all",maxSize:1/0};function XQ({equality:e=N_.equality,eviction:i=N_.eviction,maxSize:o=N_.maxSize}=N_,u){const d=JQ(e);return eH(i,o,d,u)}function JQ(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function eH(e,i,o,u){switch(e){case"keep-all":return new KQ({name:u,mapNodeValue:o});case"lru":return cE({name:u,maxSize:uo(i),mapNodeValue:o});case"most-recent":return cE({name:u,maxSize:1,mapNodeValue:o})}throw hr(`Unrecognized eviction policy ${e}`)}var tH=XQ;function iH(e){return()=>null}var nH={startPerfBlock:iH};const{isLoadable:rH,loadableWithError:L_,loadableWithPromise:oH,loadableWithValue:C3}=gm,{WrappedValue:uE}=oE,{getNodeLoadable:z_,peekNodeLoadable:sH,setNodeValue:aH}=vu,{saveDepsToStore:lH}=_m,{DEFAULT_VALUE:cH,getConfigDeletionHandler:uH,getNode:hH,registerNode:hE}=Ws,{isRecoilValue:dH}=gf,{markRecoilValueModified:dE}=wl,{retainedByOptionWithDefault:fH}=zh,{recoilCallback:pH}=rE,{startPerfBlock:gH}=nH;class fE{}const Sm=new fE,Am=[],O_=new Map,mH=(()=>{let e=0;return()=>e++})();function pE(e){let i=null;const{key:o,get:u,cachePolicy_UNSTABLE:d}=e,_=e.set!=null?e.set:void 0,w=new Set,a=tH(d??{equality:"reference",eviction:"keep-all"},o),E=fH(e.retainedBy_UNSTABLE),j=new Map;let Q=0;function q(){return!qr("recoil_memory_managament_2020")||Q>0}function W(T){return T.getState().knownSelectors.add(o),Q++,()=>{Q--}}function le(){return uH(o)!==void 0&&!q()}function fe(T,k,F,U,G){wt(k,U,G),we(T,F)}function we(T,k){ci(T,k)&&Tt(T),me(k,!0)}function $e(T,k){ci(T,k)&&(uo(xt(T)).stateVersions.clear(),me(k,!1))}function me(T,k){const F=O_.get(T);if(F!=null){for(const U of F)dE(U,uo(i));k&&O_.delete(T)}}function ie(T,k){let F=O_.get(k);F==null&&O_.set(k,F=new Set),F.add(T)}function te(T,k,F,U,G,re){return k.then(de=>{if(!q())throw Tt(T),Sm;const ue=C3(de);return fe(T,F,G,ue,U),de}).catch(de=>{if(!q())throw Tt(T),Sm;if(so(de))return oe(T,de,F,U,G,re);const ue=L_(de);throw fe(T,F,G,ue,U),de})}function oe(T,k,F,U,G,re){return k.then(de=>{if(!q())throw Tt(T),Sm;re.loadingDepKey!=null&&re.loadingDepPromise===k?F.atomValues.set(re.loadingDepKey,C3(de)):T.getState().knownSelectors.forEach(et=>{F.atomValues.delete(et)});const ue=Je(T,F);if(ue&&ue.state!=="loading"){if((ci(T,G)||xt(T)==null)&&we(T,G),ue.state==="hasValue")return ue.contents;throw ue.contents}if(!ci(T,G)){const et=Ye(T,F);if(et!=null)return et.loadingLoadable.contents}const[Me,Fe]=_e(T,F,G);if(Me.state!=="loading"&&fe(T,F,G,Me,Fe),Me.state==="hasError")throw Me.contents;return Me.contents}).catch(de=>{if(de instanceof fE)throw Sm;if(!q())throw Tt(T),Sm;const ue=L_(de);throw fe(T,F,G,ue,U),de})}function be(T,k,F,U){var G,re,de,ue;if(ci(T,U)||k.version===((G=T.getState())===null||G===void 0||(re=G.currentTree)===null||re===void 0?void 0:re.version)||k.version===((de=T.getState())===null||de===void 0||(ue=de.nextTree)===null||ue===void 0?void 0:ue.version)){var Me,Fe,et;lH(o,F,T,(Me=(Fe=T.getState())===null||Fe===void 0||(et=Fe.nextTree)===null||et===void 0?void 0:et.version)!==null&&Me!==void 0?Me:T.getState().currentTree.version)}for(const Ue of F)w.add(Ue)}function _e(T,k,F){const U=gH(o);let G=!0,re=!0;const de=()=>{U(),re=!1};let ue,Me=!1,Fe;const et={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Ke({key:mt}){const yt=z_(T,k,mt);switch(Ue.set(mt,yt),G||(be(T,k,new Set(Ue.keys()),F),$e(T,F)),yt.state){case"hasValue":return yt.contents;case"hasError":throw yt.contents;case"loading":throw et.loadingDepKey=mt,et.loadingDepPromise=yt.contents,yt.contents}throw hr("Invalid Loadable state")}const Ve=mt=>(...yt)=>{if(re)throw hr("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return i==null&&Dm(!1),pH(T,mt,yt,{node:i})};try{ue=u({get:Ke,getCallback:Ve}),ue=dH(ue)?Ke(ue):ue,rH(ue)&&(ue.state==="hasError"&&(Me=!0),ue=ue.contents),so(ue)?ue=te(T,ue,k,Ue,F,et).finally(de):de(),ue=ue instanceof uE?ue.value:ue}catch(mt){ue=mt,so(ue)?ue=oe(T,ue,k,Ue,F,et).finally(de):(Me=!0,de())}return Me?Fe=L_(ue):so(ue)?Fe=oH(ue):Fe=C3(ue),G=!1,Pt(T,F,Ue),be(T,k,new Set(Ue.keys()),F),[Fe,Ue]}function Je(T,k){let F=k.atomValues.get(o);if(F!=null)return F;const U=new Set;try{F=a.get(re=>(typeof re!="string"&&Dm(!1),z_(T,k,re).contents),{onNodeVisit:re=>{re.type==="branch"&&re.nodeKey!==o&&U.add(re.nodeKey)}})}catch(re){throw hr(`Problem with cache lookup for selector "${o}": ${re.message}`)}if(F){var G;k.atomValues.set(o,F),be(T,k,U,(G=xt(T))===null||G===void 0?void 0:G.executionID)}return F}function nt(T,k){const F=Je(T,k);if(F!=null)return Tt(T),F;const U=Ye(T,k);if(U!=null){var G;return((G=U.loadingLoadable)===null||G===void 0?void 0:G.state)==="loading"&&ie(T,U.executionID),U.loadingLoadable}const re=mH(),[de,ue]=_e(T,k,re);return de.state==="loading"?(dt(T,re,de,ue,k),ie(T,re)):(Tt(T),wt(k,de,ue)),de}function Ye(T,k){const F=vC([j.has(T)?[uo(j.get(T))]:[],d_(h3(j,([G])=>G!==T),([,G])=>G)]);function U(G){for(const[re,de]of G)if(!z_(T,k,re).is(de))return!0;return!1}for(const G of F){if(G.stateVersions.get(k.version)||!U(G.depValuesDiscoveredSoFarDuringAsyncWork))return G.stateVersions.set(k.version,!0),G;G.stateVersions.set(k.version,!1)}}function xt(T){return j.get(T)}function dt(T,k,F,U,G){j.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:U,executionID:k,loadingLoadable:F,stateVersions:new Map([[G.version,!0]])})}function Pt(T,k,F){if(ci(T,k)){const U=xt(T);U!=null&&(U.depValuesDiscoveredSoFarDuringAsyncWork=F)}}function Tt(T){j.delete(T)}function ci(T,k){var F;return k===((F=xt(T))===null||F===void 0?void 0:F.executionID)}function Ot(T){return Array.from(T.entries()).map(([k,F])=>[k,F.contents])}function wt(T,k,F){T.atomValues.set(o,k);try{a.set(Ot(F),k)}catch(U){throw hr(`Problem with setting cache for selector "${o}": ${U.message}`)}}function $t(T){if(Am.includes(o)){const k=`Recoil selector has circular dependencies: ${Am.slice(Am.indexOf(o)).join(" → ")}`;return L_(hr(k))}Am.push(o);try{return T()}finally{Am.pop()}}function St(T,k){const F=k.atomValues.get(o);return F??a.get(U=>{var G;return typeof U!="string"&&Dm(!1),(G=sH(T,k,U))===null||G===void 0?void 0:G.contents})}function Ht(T,k){return $t(()=>nt(T,k))}function Z(T){T.atomValues.delete(o)}function ne(T,k){i==null&&Dm(!1);for(const U of w){var F;const G=hH(U);(F=G.clearCache)===null||F===void 0||F.call(G,T,k)}w.clear(),Z(k),a.clear(),dE(T,i)}return _!=null?i=hE({key:o,nodeType:"selector",peek:St,get:Ht,set:(k,F,U)=>{let G=!1;const re=new Map;function de({key:et}){if(G)throw hr("Recoil: Async selector sets are not currently supported.");const Ue=z_(k,F,et);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Ke=`Getting value of asynchronous atom or selector "${et}" in a pending state while setting selector "${o}" is not yet supported.`;throw hr(Ke)}else throw Ue.contents}function ue(et,Ue){if(G)throw hr("Recoil: Async selector sets are not currently supported.");const Ke=typeof Ue=="function"?Ue(de(et)):Ue;aH(k,F,et.key,Ke).forEach((mt,yt)=>re.set(yt,mt))}function Me(et){ue(et,cH)}const Fe=_({set:ue,get:de,reset:Me},U);if(Fe!==void 0)throw so(Fe)?hr("Recoil: Async selector sets are not currently supported."):hr("Recoil: selector set should be a void function.");return G=!0,re},init:W,invalidate:Z,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E}):i=hE({key:o,nodeType:"selector",peek:St,get:Ht,init:W,invalidate:Z,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E})}pE.value=e=>new uE(e);var vf=pE;const{isLoadable:yH,loadableWithError:E3,loadableWithPromise:N3,loadableWithValue:xf}=gm,{WrappedValue:gE}=oE,{peekNodeInfo:_H}=vu,{DEFAULT_VALUE:Oh,DefaultValue:xu,getConfigDeletionHandler:mE,registerNode:vH,setConfigDeletionHandler:xH}=Ws,{isRecoilValue:wH}=gf,{getRecoilValueAsLoadable:bH,markRecoilValueModified:MH,setRecoilValue:yE,setRecoilValueLoadable:IH}=wl,{retainedByOptionWithDefault:TH}=zh,Cm=e=>e instanceof gE?e.value:e;function DH(e){const{key:i,persistence_UNSTABLE:o}=e,u=TH(e.retainedBy_UNSTABLE);let d=0;function _(ie){return N3(ie.then(te=>(w=xf(te),te)).catch(te=>{throw w=E3(te),te}))}let w=so(e.default)?_(e.default):yH(e.default)?e.default.state==="loading"?_(e.default.contents):e.default:xf(Cm(e.default));w.contents;let a;const E=new Map;function j(ie){return ie}function Q(ie,te){const oe=te.then(be=>{var _e,Je;return((Je=((_e=ie.getState().nextTree)!==null&&_e!==void 0?_e:ie.getState().currentTree).atomValues.get(i))===null||Je===void 0?void 0:Je.contents)===oe&&yE(ie,me,be),be}).catch(be=>{var _e,Je;throw((Je=((_e=ie.getState().nextTree)!==null&&_e!==void 0?_e:ie.getState().currentTree).atomValues.get(i))===null||Je===void 0?void 0:Je.contents)===oe&&IH(ie,me,E3(be)),be});return oe}function q(ie,te,oe){var be;d++;const _e=()=>{var xt;d--,(xt=E.get(ie))===null||xt===void 0||xt.forEach(dt=>dt()),E.delete(ie)};if(ie.getState().knownAtoms.add(i),w.state==="loading"){const xt=()=>{var dt;((dt=ie.getState().nextTree)!==null&&dt!==void 0?dt:ie.getState().currentTree).atomValues.has(i)||MH(ie,me)};w.contents.finally(xt)}const Je=(be=e.effects)!==null&&be!==void 0?be:e.effects_UNSTABLE;if(Je!=null){let ci=function(Z){if(dt&&Z.key===i){const ne=xt;return ne instanceof xu?W(ie,te):so(ne)?N3(ne.then(T=>T instanceof xu?w.toPromise():T)):xf(ne)}return bH(ie,Z)},Ot=function(Z){return ci(Z).toPromise()},wt=function(Z){var ne;const T=_H(ie,(ne=ie.getState().nextTree)!==null&&ne!==void 0?ne:ie.getState().currentTree,Z.key);return dt&&Z.key===i&&!(xt instanceof xu)?{...T,isSet:!0,loadable:ci(Z)}:T},xt=Oh,dt=!0,Pt=!1,Tt=null;const $t=Z=>ne=>{if(dt){const T=ci(me),k=T.state==="hasValue"?T.contents:Oh;xt=typeof ne=="function"?ne(k):ne,so(xt)&&(xt=xt.then(F=>(Tt={effect:Z,value:F},F)))}else{if(so(ne))throw hr("Setting atoms to async values is not implemented.");typeof ne!="function"&&(Tt={effect:Z,value:Cm(ne)}),yE(ie,me,typeof ne=="function"?T=>{const k=Cm(ne(T));return Tt={effect:Z,value:k},k}:Cm(ne))}},St=Z=>()=>$t(Z)(Oh),Ht=Z=>ne=>{var T;const{release:k}=ie.subscribeToTransactions(F=>{var U;let{currentTree:G,previousTree:re}=F.getState();re||(re=G);const de=(U=G.atomValues.get(i))!==null&&U!==void 0?U:w;if(de.state==="hasValue"){var ue,Me,Fe,et;const Ue=de.contents,Ke=(ue=re.atomValues.get(i))!==null&&ue!==void 0?ue:w,Ve=Ke.state==="hasValue"?Ke.contents:Oh;((Me=Tt)===null||Me===void 0?void 0:Me.effect)!==Z||((Fe=Tt)===null||Fe===void 0?void 0:Fe.value)!==Ue?ne(Ue,Ve,!G.atomValues.has(i)):((et=Tt)===null||et===void 0?void 0:et.effect)===Z&&(Tt=null)}},i);E.set(ie,[...(T=E.get(ie))!==null&&T!==void 0?T:[],k])};for(const Z of Je)try{const ne=Z({node:me,storeID:ie.storeID,parentStoreID_UNSTABLE:ie.parentStoreID,trigger:oe,setSelf:$t(Z),resetSelf:St(Z),onSet:Ht(Z),getPromise:Ot,getLoadable:ci,getInfo_UNSTABLE:wt});if(ne!=null){var nt;E.set(ie,[...(nt=E.get(ie))!==null&&nt!==void 0?nt:[],ne])}}catch(ne){xt=ne,Pt=!0}if(dt=!1,!(xt instanceof xu)){var Ye;const Z=Pt?E3(xt):so(xt)?N3(Q(ie,xt)):xf(Cm(xt));Z.contents,te.atomValues.set(i,Z),(Ye=ie.getState().nextTree)===null||Ye===void 0||Ye.atomValues.set(i,Z)}}return _e}function W(ie,te){var oe,be;return(oe=(be=te.atomValues.get(i))!==null&&be!==void 0?be:a)!==null&&oe!==void 0?oe:w}function le(ie,te){if(te.atomValues.has(i))return uo(te.atomValues.get(i));if(te.nonvalidatedAtoms.has(i)){if(a!=null)return a;if(o==null)return w;const oe=te.nonvalidatedAtoms.get(i),be=o.validator(oe,Oh);return a=be instanceof xu?w:xf(be),a}else return w}function fe(){a=void 0}function we(ie,te,oe){if(te.atomValues.has(i)){const be=uo(te.atomValues.get(i));if(be.state==="hasValue"&&oe===be.contents)return new Map}else if(!te.nonvalidatedAtoms.has(i)&&oe instanceof xu)return new Map;return a=void 0,new Map().set(i,xf(oe))}function $e(){return mE(i)!==void 0&&d<=0}const me=vH({key:i,nodeType:"atom",peek:W,get:le,set:we,init:q,invalidate:fe,shouldDeleteConfigOnRelease:$e,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:u});return me}function L3(e){const{...i}=e,o="default"in e?e.default:new Promise(()=>{});return wH(o)?SH({...i,default:o}):DH({...i,default:o})}function SH(e){const i=L3({...e,default:Oh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:u=>u instanceof xu?u:uo(e.persistence_UNSTABLE).validator(u,Oh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),o=vf({key:`${e.key}__withFallback`,get:({get:u})=>{const d=u(i);return d instanceof xu?e.default:d},set:({set:u},d)=>u(i,d),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return xH(o.key,mE(e.key)),o}L3.value=e=>new gE(e);var _E=L3;class AH{constructor(i){var o;ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(o=i==null?void 0:i.mapKey)!==null&&o!==void 0?o:u=>u}size(){return this._map.size}has(i){return this._map.has(this._keyMapper(i))}get(i){return this._map.get(this._keyMapper(i))}set(i,o){this._map.set(this._keyMapper(i),o)}delete(i){this._map.delete(this._keyMapper(i))}clear(){this._map.clear()}}var CH={MapCache:AH},EH=CH.MapCache,NH=Object.freeze({__proto__:null,MapCache:EH});const{LRUCache:vE}=lE,{MapCache:LH}=NH,k_={equality:"reference",eviction:"none",maxSize:1/0};function zH({equality:e=k_.equality,eviction:i=k_.eviction,maxSize:o=k_.maxSize}=k_){const u=OH(e);return kH(i,o,u)}function OH(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function kH(e,i,o){switch(e){case"keep-all":return new LH({mapKey:o});case"lru":return new vE({mapKey:o,maxSize:uo(i)});case"most-recent":return new vE({mapKey:o,maxSize:1})}throw hr(`Unrecognized eviction policy ${e}`)}var xE=zH;const{setConfigDeletionHandler:jH}=Ws;function PH(e){var i,o;const u=xE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _,w;const a=u.get(d);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:E,...j}=e,Q="default"in e?e.default:new Promise(()=>{}),q=_E({...j,key:`${e.key}__${(_=E_(d))!==null&&_!==void 0?_:"void"}`,default:typeof Q=="function"?Q(d):Q,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(d):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(d):(w=e.effects)!==null&&w!==void 0?w:e.effects_UNSTABLE});return u.set(d,q),jH(q.key,()=>{u.delete(d)}),q}}var RH=PH;const{setConfigDeletionHandler:BH}=Ws;let FH=0;function UH(e){var i,o;const u=xE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _;let w;try{w=u.get(d)}catch(W){throw hr(`Problem with cache lookup for selector ${e.key}: ${W.message}`)}if(w!=null)return w;const a=`${e.key}__selectorFamily/${(_=E_(d,{allowFunctions:!0}))!==null&&_!==void 0?_:"void"}/${FH++}`,E=W=>e.get(d)(W),j=e.cachePolicy_UNSTABLE,Q=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE;let q;if(e.set!=null){const W=e.set;q=vf({key:a,get:E,set:(fe,we)=>W(d)(fe,we),cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q})}else q=vf({key:a,get:E,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q});return u.set(d,q),BH(q.key,()=>{u.delete(d)}),q}}var wu=UH;const VH=wu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function QH(e){return VH(e)}var HH=QH;const $H=wu({key:"__error",get:e=>()=>{throw hr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function YH(e){return $H(e)}var GH=YH;function ZH(e){return e}var WH=ZH;const{loadableWithError:wE,loadableWithPromise:bE,loadableWithValue:ME}=gm;function j_(e,i){const o=Array(i.length).fill(void 0),u=Array(i.length).fill(void 0);for(const[d,_]of i.entries())try{o[d]=e(_)}catch(w){u[d]=w}return[o,u]}function qH(e){return e!=null&&!so(e)}function P_(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])}function z3(e,i){return Array.isArray(e)?i:Object.getOwnPropertyNames(e).reduce((o,u,d)=>({...o,[u]:i[d]}),{})}function wf(e,i,o){const u=o.map((d,_)=>d==null?ME(i[_]):so(d)?bE(d):wE(d));return z3(e,u)}function KH(e,i){return i.map((o,u)=>o===void 0?e[u]:o)}const XH=wu({key:"__waitForNone",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return wf(e,u,d)},dangerouslyAllowMutability:!0}),JH=wu({key:"__waitForAny",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.some(_=>!so(_))?wf(e,u,d):new Promise(_=>{for(const[w,a]of d.entries())so(a)&&a.then(E=>{u[w]=E,d[w]=void 0,_(wf(e,u,d))}).catch(E=>{d[w]=E,_(wf(e,u,d))})})},dangerouslyAllowMutability:!0}),e$=wu({key:"__waitForAll",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);if(d.every(w=>w==null))return z3(e,u);const _=d.find(qH);if(_!=null)throw _;return Promise.all(d).then(w=>z3(e,KH(u,w)))},dangerouslyAllowMutability:!0}),t$=wu({key:"__waitForAllSettled",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.every(_=>!so(_))?wf(e,u,d):Promise.all(d.map((_,w)=>so(_)?_.then(a=>{u[w]=a,d[w]=void 0}).catch(a=>{u[w]=void 0,d[w]=a}):null)).then(()=>wf(e,u,d))},dangerouslyAllowMutability:!0}),i$=wu({key:"__noWait",get:e=>({get:i})=>{try{return vf.value(ME(i(e)))}catch(o){return vf.value(so(o)?bE(o):wE(o))}},dangerouslyAllowMutability:!0});var n$={waitForNone:XH,waitForAny:JH,waitForAll:e$,waitForAllSettled:t$,noWait:i$};const{RecoilLoadable:r$}=gm,{DefaultValue:o$}=Ws,{RecoilRoot:s$,useRecoilStoreID:a$}=mc,{isRecoilValue:l$}=gf,{retentionZone:c$}=m_,{freshSnapshot:u$}=M_,{useRecoilState:h$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilStateLoadable:f$,useRecoilValue:p$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:g$,useRecoilValueLoadable:m$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:y$,useResetRecoilState:_$,useSetRecoilState:v$}=CV,{useGotoRecoilSnapshot:x$,useRecoilSnapshot:w$,useRecoilTransactionObserver:b$}=XC,{useRecoilCallback:M$}=rE,{noWait:I$,waitForAll:T$,waitForAllSettled:D$,waitForAny:S$,waitForNone:A$}=n$;var bf={DefaultValue:o$,isRecoilValue:l$,RecoilLoadable:r$,RecoilEnv:pf,RecoilRoot:s$,useRecoilStoreID:a$,useRecoilBridgeAcrossReactRoots_UNSTABLE:iQ,atom:_E,selector:vf,atomFamily:RH,selectorFamily:wu,constSelector:HH,errorSelector:GH,readOnlySelector:WH,noWait:I$,waitForNone:A$,waitForAny:S$,waitForAll:T$,waitForAllSettled:D$,useRecoilValue:p$,useRecoilValueLoadable:m$,useRecoilState:h$,useRecoilStateLoadable:f$,useSetRecoilState:v$,useResetRecoilState:_$,useGetRecoilValueInfo_UNSTABLE:qV,useRecoilRefresher_UNSTABLE:NQ,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:y$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:g$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilCallback:M$,useRecoilTransaction_UNSTABLE:jQ,useGotoRecoilSnapshot:x$,useRecoilSnapshot:w$,useRecoilTransactionObserver_UNSTABLE:b$,snapshot_UNSTABLE:u$,useRetain:b3,retentionZone:c$},C$=bf.RecoilRoot,kn=bf.atom,R_=bf.selector,Ci=bf.useRecoilValue,sn=bf.useRecoilState,Mo=bf.useResetRecoilState;const E$=(e,i)=>{const o=e[i];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((u,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+i)))})},N$="mi-components";let B_,IE,la=!1,O3=!1;const yc=(e,i="")=>()=>{},L$=(e,i)=>()=>{},z$="{visibility:hidden}.hydrated{visibility:inherit}",TE="http://www.w3.org/1999/xlink",DE={},O$="http://www.w3.org/2000/svg",k$="http://www.w3.org/1999/xhtml",j$=e=>e!=null,k3=e=>(e=typeof e,e==="object"||e==="function");function SE(e){var i,o,u;return(u=(o=(i=e.head)===null||i===void 0?void 0:i.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&u!==void 0?u:void 0}const Xe=(e,i,...o)=>{let u=null,d=null,_=!1,w=!1;const a=[],E=Q=>{for(let q=0;q<Q.length;q++)u=Q[q],Array.isArray(u)?E(u):u!=null&&typeof u!="boolean"&&((_=typeof e!="function"&&!k3(u))&&(u=String(u)),_&&w?a[a.length-1].$text$+=u:a.push(_?j3(null,u):u),w=_)};if(E(o),i){i.key&&(d=i.key);{const Q=i.className||i.class;Q&&(i.class=typeof Q!="object"?Q:Object.keys(Q).filter(q=>Q[q]).join(" "))}}const j=j3(e,null);return j.$attrs$=i,a.length>0&&(j.$children$=a),j.$key$=d,j},j3=(e,i)=>{const o={$flags$:0,$tag$:e,$text$:i,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},ko={},P$=e=>e&&e.$tag$===ko,R$=(e,i)=>e!=null&&!k3(e)?i&4?e==="false"?!1:e===""||!!e:i&2?parseFloat(e):i&1?String(e):e:e,_c=e=>bu(e).$hostElement$,$r=(e,i,o)=>{const u=_c(e);return{emit:d=>AE(u,i,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:d})}},AE=(e,i,o)=>{const u=Xo.ce(i,o);return e.dispatchEvent(u),u},CE=new WeakMap,B$=(e,i,o)=>{let u=Q_.get(e);sY&&o?(u=u||new CSSStyleSheet,typeof u=="string"?u=i:u.replaceSync(i)):u=i,Q_.set(e,u)},F$=(e,i,o,u)=>{var d;let _=EE(i);const w=Q_.get(_);if(e=e.nodeType===11?e:Ml,w)if(typeof w=="string"){e=e.head||e;let a=CE.get(e),E;if(a||CE.set(e,a=new Set),!a.has(_)){{E=Ml.createElement("style"),E.innerHTML=w;const j=(d=Xo.$nonce$)!==null&&d!==void 0?d:SE(Ml);j!=null&&E.setAttribute("nonce",j),e.insertBefore(E,e.querySelector("link"))}a&&a.add(_)}}else e.adoptedStyleSheets.includes(w)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,w]);return _},U$=e=>{const i=e.$cmpMeta$,o=e.$hostElement$,u=i.$flags$,d=yc("attachStyles",i.$tagName$),_=F$(o.shadowRoot?o.shadowRoot:o.getRootNode(),i);u&10&&(o["s-sc"]=_,o.classList.add(_+"-h")),d()},EE=(e,i)=>"sc-"+e.$tagName$,NE=(e,i,o,u,d,_)=>{if(o!==u){let w=HE(e,i),a=i.toLowerCase();if(i==="class"){const E=e.classList,j=LE(o),Q=LE(u);E.remove(...j.filter(q=>q&&!Q.includes(q))),E.add(...Q.filter(q=>q&&!j.includes(q)))}else if(i==="style"){for(const E in o)(!u||u[E]==null)&&(E.includes("-")?e.style.removeProperty(E):e.style[E]="");for(const E in u)(!o||u[E]!==o[E])&&(E.includes("-")?e.style.setProperty(E,u[E]):e.style[E]=u[E])}else if(i!=="key")if(i==="ref")u&&u(e);else if(!w&&i[0]==="o"&&i[1]==="n")i[2]==="-"?i=i.slice(3):HE(Em,a)?i=a.slice(2):i=a[2]+i.slice(3),o&&Xo.rel(e,i,o,!1),u&&Xo.ael(e,i,u,!1);else{const E=k3(u);if((w||E&&u!==null)&&!d)try{if(e.tagName.includes("-"))e[i]=u;else{const Q=u??"";i==="list"?w=!1:(o==null||e[i]!=Q)&&(e[i]=Q)}}catch{}let j=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(i=a,j=!0),u==null||u===!1?(u!==!1||e.getAttribute(i)==="")&&(j?e.removeAttributeNS(TE,i):e.removeAttribute(i)):(!w||_&4||d)&&!E&&(u=u===!0?"":u,j?e.setAttributeNS(TE,i,u):e.setAttribute(i,u))}}},V$=/\s/,LE=e=>e?e.split(V$):[],zE=(e,i,o,u)=>{const d=i.$elm$.nodeType===11&&i.$elm$.host?i.$elm$.host:i.$elm$,_=e&&e.$attrs$||DE,w=i.$attrs$||DE;for(u in _)u in w||NE(d,u,_[u],void 0,o,i.$flags$);for(u in w)NE(d,u,_[u],w[u],o,i.$flags$)},F_=(e,i,o,u)=>{const d=i.$children$[o];let _=0,w,a;if(d.$text$!==null)w=d.$elm$=Ml.createTextNode(d.$text$);else{if(la||(la=d.$tag$==="svg"),w=d.$elm$=Ml.createElementNS(la?O$:k$,d.$tag$),la&&d.$tag$==="foreignObject"&&(la=!1),zE(null,d,la),j$(B_)&&w["s-si"]!==B_&&w.classList.add(w["s-si"]=B_),d.$children$)for(_=0;_<d.$children$.length;++_)a=F_(e,d,_),a&&w.appendChild(a);d.$tag$==="svg"?la=!1:w.tagName==="foreignObject"&&(la=!0)}return w},OE=(e,i,o,u,d,_)=>{let w=e,a;for(w.shadowRoot&&w.tagName===IE&&(w=w.shadowRoot);d<=_;++d)u[d]&&(a=F_(null,o,d),a&&(u[d].$elm$=a,w.insertBefore(a,i)))},kE=(e,i,o,u,d)=>{for(;i<=o;++i)(u=e[i])&&(d=u.$elm$,jE(u),d.remove())},Q$=(e,i,o,u)=>{let d=0,_=0,w=0,a=0,E=i.length-1,j=i[0],Q=i[E],q=u.length-1,W=u[0],le=u[q],fe,we;for(;d<=E&&_<=q;)if(j==null)j=i[++d];else if(Q==null)Q=i[--E];else if(W==null)W=u[++_];else if(le==null)le=u[--q];else if(U_(j,W))Mf(j,W),j=i[++d],W=u[++_];else if(U_(Q,le))Mf(Q,le),Q=i[--E],le=u[--q];else if(U_(j,le))Mf(j,le),e.insertBefore(j.$elm$,Q.$elm$.nextSibling),j=i[++d],le=u[--q];else if(U_(Q,W))Mf(Q,W),e.insertBefore(Q.$elm$,j.$elm$),Q=i[--E],W=u[++_];else{for(w=-1,a=d;a<=E;++a)if(i[a]&&i[a].$key$!==null&&i[a].$key$===W.$key$){w=a;break}w>=0?(we=i[w],we.$tag$!==W.$tag$?fe=F_(i&&i[_],o,w):(Mf(we,W),i[w]=void 0,fe=we.$elm$),W=u[++_]):(fe=F_(i&&i[_],o,_),W=u[++_]),fe&&j.$elm$.parentNode.insertBefore(fe,j.$elm$)}d>E?OE(e,u[q+1]==null?null:u[q+1].$elm$,o,u,_,q):_>q&&kE(i,d,E)},U_=(e,i)=>e.$tag$===i.$tag$?e.$key$===i.$key$:!1,Mf=(e,i)=>{const o=i.$elm$=e.$elm$,u=e.$children$,d=i.$children$,_=i.$tag$,w=i.$text$;w===null?(la=_==="svg"?!0:_==="foreignObject"?!1:la,_==="slot"||zE(e,i,la),u!==null&&d!==null?Q$(o,u,i,d):d!==null?(e.$text$!==null&&(o.textContent=""),OE(o,null,i,d,0,d.length-1)):u!==null&&kE(u,0,u.length-1),la&&_==="svg"&&(la=!1)):e.$text$!==w&&(o.data=w)},jE=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(jE)},H$=(e,i)=>{const o=e.$hostElement$,u=e.$cmpMeta$,d=e.$vnode$||j3(null,null),_=P$(i)?i:Xe(null,null,i);IE=o.tagName,u.$attrsToReflect$&&(_.$attrs$=_.$attrs$||{},u.$attrsToReflect$.map(([w,a])=>_.$attrs$[a]=o[w])),_.$tag$=null,_.$flags$|=4,e.$vnode$=_,_.$elm$=d.$elm$=o.shadowRoot||o,B_=o["s-sc"],Mf(d,_)},PE=(e,i)=>{i&&!e.$onRenderResolve$&&i["s-p"]&&i["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},V_=(e,i)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return PE(e,e.$ancestorComponent$),lY(()=>$$(e,i))},$$=(e,i)=>{const o=yc("scheduleUpdate",e.$cmpMeta$.$tagName$),u=e.$lazyInstance$;let d;return i&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([_,w])=>kh(u,_,w)),e.$queuedListeners$=null),d=kh(u,"componentWillLoad")),d=BE(d,()=>kh(u,"componentWillRender")),o(),BE(d,()=>Y$(e,u,i))},Y$=async(e,i,o)=>{const u=e.$hostElement$,d=yc("update",e.$cmpMeta$.$tagName$),_=u["s-rc"];o&&U$(e);const w=yc("render",e.$cmpMeta$.$tagName$);G$(e,i),_&&(_.map(a=>a()),u["s-rc"]=void 0),w(),d();{const a=u["s-p"],E=()=>Z$(e);a.length===0?E():(Promise.all(a).then(E),e.$flags$|=4,a.length=0)}},G$=(e,i,o)=>{try{i=i.render&&i.render(),e.$flags$&=-17,e.$flags$|=2,H$(e,i)}catch(u){jh(u,e.$hostElement$)}return null},Z$=e=>{const i=e.$cmpMeta$.$tagName$,o=e.$hostElement$,u=yc("postUpdate",i),d=e.$lazyInstance$,_=e.$ancestorComponent$;kh(d,"componentDidRender"),e.$flags$&64?u():(e.$flags$|=64,FE(o),kh(d,"componentDidLoad"),u(),e.$onReadyResolve$(o),_||RE()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&F3(()=>V_(e,!1)),e.$flags$&=-517},P3=e=>{{const i=bu(e),o=i.$hostElement$.isConnected;return o&&(i.$flags$&18)===2&&V_(i,!1),o}},RE=e=>{FE(Ml.documentElement),F3(()=>AE(Em,"appload",{detail:{namespace:N$}}))},kh=(e,i,o)=>{if(e&&e[i])try{return e[i](o)}catch(u){jh(u)}},BE=(e,i)=>e&&e.then?e.then(i):i(),FE=e=>e.classList.add("hydrated"),W$=(e,i)=>bu(e).$instanceValues$.get(i),q$=(e,i,o,u)=>{const d=bu(e),_=d.$hostElement$,w=d.$instanceValues$.get(i),a=d.$flags$,E=d.$lazyInstance$;o=R$(o,u.$members$[i][0]);const j=Number.isNaN(w)&&Number.isNaN(o),Q=o!==w&&!j;if((!(a&8)||w===void 0)&&Q&&(d.$instanceValues$.set(i,o),E)){if(u.$watchers$&&a&128){const q=u.$watchers$[i];q&&q.map(W=>{try{E[W](o,w,i)}catch(le){jh(le,_)}})}(a&18)===2&&V_(d,!1)}},UE=(e,i,o)=>{if(i.$members$){e.watchers&&(i.$watchers$=e.watchers);const u=Object.entries(i.$members$),d=e.prototype;if(u.map(([_,[w]])=>{w&31||o&2&&w&32?Object.defineProperty(d,_,{get(){return W$(this,_)},set(a){q$(this,_,a,i)},configurable:!0,enumerable:!0}):o&1&&w&64&&Object.defineProperty(d,_,{value(...a){const E=bu(this);return E.$onInstancePromise$.then(()=>E.$lazyInstance$[_](...a))}})}),o&1){const _=new Map;d.attributeChangedCallback=function(w,a,E){Xo.jmp(()=>{const j=_.get(w);if(this.hasOwnProperty(j))E=this[j],delete this[j];else if(d.hasOwnProperty(j)&&typeof this[j]=="number"&&this[j]==E)return;this[j]=E===null&&typeof this[j]=="boolean"?!1:E})},e.observedAttributes=u.filter(([w,a])=>a[0]&15).map(([w,a])=>{const E=a[1]||w;return _.set(E,w),a[0]&512&&i.$attrsToReflect$.push([w,E]),E})}}return e},K$=async(e,i,o,u,d)=>{if(!(i.$flags$&32)){{if(i.$flags$|=32,d=oY(o),d.then){const E=L$();d=await d,E()}d.isProxied||(o.$watchers$=d.watchers,UE(d,o,2),d.isProxied=!0);const a=yc("createInstance",o.$tagName$);i.$flags$|=8;try{new d(i)}catch(E){jh(E)}i.$flags$&=-9,i.$flags$|=128,a(),VE(i.$lazyInstance$)}if(d.style){let a=d.style;const E=EE(o);if(!Q_.has(E)){const j=yc("registerStyles",o.$tagName$);B$(E,a,!!(o.$flags$&1)),j()}}}const _=i.$ancestorComponent$,w=()=>V_(i,!0);_&&_["s-rc"]?_["s-rc"].push(w):w()},VE=e=>{kh(e,"connectedCallback")},X$=e=>{if(!(Xo.$flags$&1)){const i=bu(e),o=i.$cmpMeta$,u=yc("connectedCallback",o.$tagName$);if(i.$flags$&1)QE(e,i,o.$listeners$),VE(i.$lazyInstance$);else{i.$flags$|=1;{let d=e;for(;d=d.parentNode||d.host;)if(d["s-p"]){PE(i,i.$ancestorComponent$=d);break}}o.$members$&&Object.entries(o.$members$).map(([d,[_]])=>{if(_&31&&e.hasOwnProperty(d)){const w=e[d];delete e[d],e[d]=w}}),K$(e,i,o)}u()}},J$=e=>{if(!(Xo.$flags$&1)){const i=bu(e),o=i.$lazyInstance$;i.$rmListeners$&&(i.$rmListeners$.map(u=>u()),i.$rmListeners$=void 0),kh(o,"disconnectedCallback")}},eY=(e,i={})=>{var o;const u=yc(),d=[],_=i.exclude||[],w=Em.customElements,a=Ml.head,E=a.querySelector("meta[charset]"),j=Ml.createElement("style"),Q=[];let q,W=!0;Object.assign(Xo,i),Xo.$resourcesUrl$=new URL(i.resourcesUrl||"./",Ml.baseURI).href,e.map(le=>{le[1].map(fe=>{const we={$flags$:fe[0],$tagName$:fe[1],$members$:fe[2],$listeners$:fe[3]};we.$members$=fe[2],we.$listeners$=fe[3],we.$attrsToReflect$=[],we.$watchers$={};const $e=we.$tagName$,me=class extends HTMLElement{constructor(ie){super(ie),ie=this,rY(ie,we),we.$flags$&1&&ie.attachShadow({mode:"open"})}connectedCallback(){q&&(clearTimeout(q),q=null),W?Q.push(this):Xo.jmp(()=>X$(this))}disconnectedCallback(){Xo.jmp(()=>J$(this))}componentOnReady(){return bu(this).$onReadyPromise$}};we.$lazyBundleId$=le[0],!_.includes($e)&&!w.get($e)&&(d.push($e),w.define($e,UE(me,we,1)))})});{j.innerHTML=d+z$,j.setAttribute("data-styles","");const le=(o=Xo.$nonce$)!==null&&o!==void 0?o:SE(Ml);le!=null&&j.setAttribute("nonce",le),a.insertBefore(j,E?E.nextSibling:a.firstChild)}W=!1,Q.length?Q.map(le=>le.connectedCallback()):Xo.jmp(()=>q=setTimeout(RE,30)),u()},QE=(e,i,o,u)=>{o&&o.map(([d,_,w])=>{const a=iY(e,d),E=tY(i,w),j=nY(d);Xo.ael(a,_,E,j),(i.$rmListeners$=i.$rmListeners$||[]).push(()=>Xo.rel(a,_,E,j))})},tY=(e,i)=>o=>{try{e.$flags$&256?e.$lazyInstance$[i](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([i,o])}catch(u){jh(u)}},iY=(e,i)=>i&8?Em:e,nY=e=>(e&2)!==0,R3=new WeakMap,bu=e=>R3.get(e),Ir=(e,i)=>R3.set(i.$lazyInstance$=e,i),rY=(e,i)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:i,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(u=>o.$onInstanceResolve$=u),o.$onReadyPromise$=new Promise(u=>o.$onReadyResolve$=u),e["s-p"]=[],e["s-rc"]=[],QE(e,o,i.$listeners$),R3.set(e,o)},HE=(e,i)=>i in e,jh=(e,i)=>(0,console.error)(e,i),$E=new Map,oY=(e,i,o)=>{const u=e.$tagName$.replace(/-/g,"_"),d=e.$lazyBundleId$,_=$E.get(d);if(_)return _[u];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return E$(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>_q),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>wq),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>Mq),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Iq),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Sq),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>kq),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Rq),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>Bq),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Gq),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>Wq),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>aK),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>cK),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>hK),"./mi-list.entry.js":()=>Promise.resolve().then(()=>fK),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Rie),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>Fie),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Gie),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>Kie),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>Jie),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>pne),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>mne),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>_ne),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>xne),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>bne),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Ine),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>Dne),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>Ane),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Ene),"./mi-search.entry.js":()=>Promise.resolve().then(()=>kne),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Pne),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Bne),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Une),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>Vne),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Hne),"./mi-time.entry.js":()=>Promise.resolve().then(()=>$ne)}),`./${d}.entry.js`).then(w=>($E.set(d,w),w[u]),jh)},Q_=new Map,Em=typeof window<"u"?window:{},Ml=Em.document||{head:{}},Xo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,i,o,u)=>e.addEventListener(i,o,u),rel:(e,i,o,u)=>e.removeEventListener(i,o,u),ce:(e,i)=>new CustomEvent(e,i)},YE=e=>Promise.resolve(e),sY=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),GE=[],ZE=[],aY=(e,i)=>o=>{e.push(o),O3||(O3=!0,i&&Xo.$flags$&4?F3(B3):Xo.raf(B3))},WE=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(o){jh(o)}e.length=0},B3=()=>{WE(GE),WE(ZE),(O3=GE.length>0)&&Xo.raf(B3)},F3=e=>YE().then(e),lY=aY(ZE,!0),cY=()=>YE(),qE=(e,i)=>typeof window>"u"?Promise.resolve():cY().then(()=>eY([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],customPositionProvider:[16],positionState:[32],setPosition:[64],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtons:[64],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"],showFloor:[4,"show-floor"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],i)),uY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,i){console&&console[e]&&console[e].apply(console,i)}};class H_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(i,o)}init(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=i||uY,this.options=o,this.debug=o.debug}log(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"log","",!0)}warn(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","",!0)}error(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"error","")}deprecate(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,u,d){return d&&!this.debug?null:(typeof i[0]=="string"&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new H_(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new H_(this.logger,i)}}var Il=new H_;class $_{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(u=>{this.observers[u]=this.observers[u]||[],this.observers[u].push(o)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(u=>u!==o)}}emit(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];this.observers[i]&&[].concat(this.observers[i]).forEach(w=>{w(...u)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(w=>{w.apply(w,[i,...u])})}}function Nm(){let e,i;const o=new Promise((u,d)=>{e=u,i=d});return o.resolve=e,o.reject=i,o}function KE(e){return e==null?"":""+e}function hY(e,i,o){e.forEach(u=>{i[u]&&(o[u]=i[u])})}function U3(e,i,o){function u(w){return w&&w.indexOf("###")>-1?w.replace(/###/g,"."):w}function d(){return!e||typeof e=="string"}const _=typeof i!="string"?[].concat(i):i.split(".");for(;_.length>1;){if(d())return{};const w=u(_.shift());!e[w]&&o&&(e[w]=new o),Object.prototype.hasOwnProperty.call(e,w)?e=e[w]:e={}}return d()?{}:{obj:e,k:u(_.shift())}}function XE(e,i,o){const{obj:u,k:d}=U3(e,i,Object);u[d]=o}function dY(e,i,o,u){const{obj:d,k:_}=U3(e,i,Object);d[_]=d[_]||[],u&&(d[_]=d[_].concat(o)),u||d[_].push(o)}function Y_(e,i){const{obj:o,k:u}=U3(e,i);if(o)return o[u]}function fY(e,i,o){const u=Y_(e,o);return u!==void 0?u:Y_(i,o)}function JE(e,i,o){for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in e?typeof e[u]=="string"||e[u]instanceof String||typeof i[u]=="string"||i[u]instanceof String?o&&(e[u]=i[u]):JE(e[u],i[u],o):e[u]=i[u]);return e}function If(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function gY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,i=>pY[i]):e}const mY=[" ",",","?","!",";"];function yY(e,i,o){i=i||"",o=o||"";const u=mY.filter(w=>i.indexOf(w)<0&&o.indexOf(w)<0);if(u.length===0)return!0;const d=new RegExp(`(${u.map(w=>w==="?"?"\\?":w).join("|")})`);let _=!d.test(e);if(!_){const w=e.indexOf(o);w>0&&!d.test(e.substring(0,w))&&(_=!0)}return _}function G_(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[i])return e[i];const u=i.split(o);let d=e;for(let _=0;_<u.length;++_){if(!d||typeof d[u[_]]=="string"&&_+1<u.length)return;if(d[u[_]]===void 0){let w=2,a=u.slice(_,_+w).join(o),E=d[a];for(;E===void 0&&u.length>_+w;)w++,a=u.slice(_,_+w).join(o),E=d[a];if(E===void 0)return;if(E===null)return null;if(i.endsWith(a)){if(typeof E=="string")return E;if(a&&typeof E[a]=="string")return E[a]}const j=u.slice(_+w).join(o);return j?G_(E,j,o):void 0}d=d[u[_]]}return d}function Z_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class eN extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,w=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[i,o];u&&typeof u!="string"&&(a=a.concat(u)),u&&typeof u=="string"&&(a=a.concat(_?u.split(_):u)),i.indexOf(".")>-1&&(a=i.split("."));const E=Y_(this.data,a);return E||!w||typeof u!="string"?E:G_(this.data&&this.data[i]&&this.data[i][o],u,_)}addResource(i,o,u,d){let _=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const w=_.keySeparator!==void 0?_.keySeparator:this.options.keySeparator;let a=[i,o];u&&(a=a.concat(w?u.split(w):u)),i.indexOf(".")>-1&&(a=i.split("."),d=o,o=a[1]),this.addNamespaces(o),XE(this.data,a,d),_.silent||this.emit("added",i,o,u,d)}addResources(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _ in u)(typeof u[_]=="string"||Object.prototype.toString.apply(u[_])==="[object Array]")&&this.addResource(i,o,_,u[_],{silent:!0});d.silent||this.emit("added",i,o,u)}addResourceBundle(i,o,u,d,_){let w=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[i,o];i.indexOf(".")>-1&&(a=i.split("."),d=u,u=o,o=a[1]),this.addNamespaces(o);let E=Y_(this.data,a)||{};d?JE(E,u,_):E={...E,...u},XE(this.data,a,E),w.silent||this.emit("added",i,o,u)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(i,o)}:this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(d=>o[d]&&Object.keys(o[d]).length>0)}toJSON(){return this.data}}var tN={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,i,o,u,d){return e.forEach(_=>{this.processors[_]&&(i=this.processors[_].process(i,o,u,d))}),i}};const iN={};class W_ extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),hY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Il.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;const u=this.resolve(i,o);return u&&u.res!==void 0}extractFromKey(i,o){let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let _=o.ns||this.options.defaultNS||[];const w=u&&i.indexOf(u)>-1,a=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!yY(i,u,d);if(w&&!a){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:_};const j=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(j[0])>-1)&&(_=j.shift()),i=j.join(d)}return typeof _=="string"&&(_=[_]),{key:i,namespaces:_}}translate(i,o,u){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,_=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:w,namespaces:a}=this.extractFromKey(i[i.length-1],o),E=a[a.length-1],j=o.lng||this.language,Q=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(j&&j.toLowerCase()==="cimode"){if(Q){const oe=o.nsSeparator||this.options.nsSeparator;return d?{res:`${E}${oe}${w}`,usedKey:w,exactUsedKey:w,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:`${E}${oe}${w}`}return d?{res:w,usedKey:w,exactUsedKey:w,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:w}const q=this.resolve(i,o);let W=q&&q.res;const le=q&&q.usedKey||w,fe=q&&q.exactUsedKey||w,we=Object.prototype.toString.apply(W),$e=["[object Number]","[object Function]","[object RegExp]"],me=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ie=!this.i18nFormat||this.i18nFormat.handleAsObject;if(ie&&W&&(typeof W!="string"&&typeof W!="boolean"&&typeof W!="number")&&$e.indexOf(we)<0&&!(typeof me=="string"&&we==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const oe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(le,W,{...o,ns:a}):`key '${w} (${this.language})' returned an object instead of string.`;return d?(q.res=oe,q.usedParams=this.getUsedParamsDetails(o),q):oe}if(_){const oe=we==="[object Array]",be=oe?[]:{},_e=oe?fe:le;for(const Je in W)if(Object.prototype.hasOwnProperty.call(W,Je)){const nt=`${_e}${_}${Je}`;be[Je]=this.translate(nt,{...o,joinArrays:!1,ns:a}),be[Je]===nt&&(be[Je]=W[Je])}W=be}}else if(ie&&typeof me=="string"&&we==="[object Array]")W=W.join(me),W&&(W=this.extendTranslation(W,i,o,u));else{let oe=!1,be=!1;const _e=o.count!==void 0&&typeof o.count!="string",Je=W_.hasDefaultValue(o),nt=_e?this.pluralResolver.getSuffix(j,o.count,o):"",Ye=o.ordinal&&_e?this.pluralResolver.getSuffix(j,o.count,{ordinal:!1}):"",xt=o[`defaultValue${nt}`]||o[`defaultValue${Ye}`]||o.defaultValue;!this.isValidLookup(W)&&Je&&(oe=!0,W=xt),this.isValidLookup(W)||(be=!0,W=w);const Pt=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&be?void 0:W,Tt=Je&&xt!==W&&this.options.updateMissing;if(be||oe||Tt){if(this.logger.log(Tt?"updateKey":"missingKey",j,E,w,Tt?xt:W),_){const $t=this.resolve(w,{...o,keySeparator:!1});$t&&$t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ci=[];const Ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ot&&Ot[0])for(let $t=0;$t<Ot.length;$t++)ci.push(Ot[$t]);else this.options.saveMissingTo==="all"?ci=this.languageUtils.toResolveHierarchy(o.lng||this.language):ci.push(o.lng||this.language);const wt=($t,St,Ht)=>{const Z=Je&&Ht!==W?Ht:Pt;this.options.missingKeyHandler?this.options.missingKeyHandler($t,E,St,Z,Tt,o):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($t,E,St,Z,Tt,o),this.emit("missingKey",$t,E,St,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_e?ci.forEach($t=>{this.pluralResolver.getSuffixes($t,o).forEach(St=>{wt([$t],w+St,o[`defaultValue${St}`]||xt)})}):wt(ci,w,xt))}W=this.extendTranslation(W,i,o,q,u),be&&W===w&&this.options.appendNamespaceToMissingKey&&(W=`${E}:${w}`),(be||oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}:${w}`:w,oe?W:void 0):W=this.options.parseMissingKeyHandler(W))}return d?(q.res=W,q.usedParams=this.getUsedParamsDetails(o),q):W}extendTranslation(i,o,u,d,_){var w=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const j=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Q;if(j){const W=i.match(this.interpolator.nestingRegexp);Q=W&&W.length}let q=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(q={...this.options.interpolation.defaultVariables,...q}),i=this.interpolator.interpolate(i,q,u.lng||this.language,u),j){const W=i.match(this.interpolator.nestingRegexp),le=W&&W.length;Q<le&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(u.lng=d.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var W=arguments.length,le=new Array(W),fe=0;fe<W;fe++)le[fe]=arguments[fe];return _&&_[0]===le[0]&&!u.context?(w.logger.warn(`It seems you are nesting recursively key: ${le[0]} in key: ${o[0]}`),null):w.translate(...le,o)},u)),u.interpolation&&this.interpolator.reset()}const a=u.postProcess||this.options.postProcess,E=typeof a=="string"?[a]:a;return i!=null&&E&&E.length&&u.applyPostProcessor!==!1&&(i=tN.handle(E,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,d,_,w,a;return typeof i=="string"&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const j=this.extractFromKey(E,o),Q=j.key;d=Q;let q=j.namespaces;this.options.fallbackNS&&(q=q.concat(this.options.fallbackNS));const W=o.count!==void 0&&typeof o.count!="string",le=W&&!o.ordinal&&o.count===0&&this.pluralResolver.shouldUseIntlApi(),fe=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",we=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);q.forEach($e=>{this.isValidLookup(u)||(a=$e,!iN[`${we[0]}-${$e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(iN[`${we[0]}-${$e}`]=!0,this.logger.warn(`key "${d}" for languages "${we.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),we.forEach(me=>{if(this.isValidLookup(u))return;w=me;const ie=[Q];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ie,Q,me,$e,o);else{let oe;W&&(oe=this.pluralResolver.getSuffix(me,o.count,o));const be=`${this.options.pluralSeparator}zero`,_e=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(W&&(ie.push(Q+oe),o.ordinal&&oe.indexOf(_e)===0&&ie.push(Q+oe.replace(_e,this.options.pluralSeparator)),le&&ie.push(Q+be)),fe){const Je=`${Q}${this.options.contextSeparator}${o.context}`;ie.push(Je),W&&(ie.push(Je+oe),o.ordinal&&oe.indexOf(_e)===0&&ie.push(Je+oe.replace(_e,this.options.pluralSeparator)),le&&ie.push(Je+be))}}let te;for(;te=ie.pop();)this.isValidLookup(u)||(_=te,u=this.getResource(me,$e,te,o))}))})}),{res:u,usedKey:d,exactUsedKey:_,usedLng:w,usedNS:a}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,d):this.resourceStore.getResource(i,o,u,d)}getUsedParamsDetails(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&typeof i.replace!="string";let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const _ of o)delete d[_]}return d}static hasDefaultValue(i){const o="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}function V3(e){return e.charAt(0).toUpperCase()+e.slice(1)}class nN{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Il.create("languageUtils")}getScriptPartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(typeof i=="string"&&i.indexOf("-")>-1){const o=["hans","hant","latn","cyrl","cans","mong","arab"];let u=i.split("-");return this.options.lowerCaseLng?u=u.map(d=>d.toLowerCase()):u.length===2?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase()))):u.length===3&&(u[0]=u[0].toLowerCase(),u[1].length===2&&(u[1]=u[1].toUpperCase()),u[0]!=="sgn"&&u[2].length===2&&(u[2]=u[2].toUpperCase()),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase())),o.indexOf(u[2].toLowerCase())>-1&&(u[2]=V3(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(u=>{if(o)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(o=d)}),!o&&this.options.supportedLngs&&i.forEach(u=>{if(o)return;const d=this.getLanguagePartFromCode(u);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(_=>{if(_===d)return _;if(!(_.indexOf("-")<0&&d.indexOf("-")<0)&&_.indexOf(d)===0)return _})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!o)return i.default||[];let u=i[o];return u||(u=i[this.getScriptPartFromCode(o)]),u||(u=i[this.formatLanguageCode(o)]),u||(u=i[this.getLanguagePartFromCode(o)]),u||(u=i.default),u||[]}toResolveHierarchy(i,o){const u=this.getFallbackCodes(o||this.options.fallbackLng||[],i),d=[],_=w=>{w&&(this.isSupportedCode(w)?d.push(w):this.logger.warn(`rejecting language code not found in supportedLngs: ${w}`))};return typeof i=="string"&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&_(this.getLanguagePartFromCode(i))):typeof i=="string"&&_(this.formatLanguageCode(i)),u.forEach(w=>{d.indexOf(w)<0&&_(this.formatLanguageCode(w))}),d}}let _Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vY={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const xY=["v1","v2","v3"],wY=["v4"],rN={zero:0,one:1,two:2,few:3,many:4,other:5};function bY(){const e={};return _Y.forEach(i=>{i.lngs.forEach(o=>{e[o]={numbers:i.nr,plurals:vY[i.fc]}})}),e}class MY{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=i,this.options=o,this.logger=Il.create("pluralResolver"),(!this.options.compatibilityJSON||wY.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=bY()}addRule(i,o){this.rules[i]=o}getRule(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Z_(i),{type:o.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}needsPlural(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(i,u).map(d=>`${o}${d}`)}getSuffixes(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((d,_)=>rN[d]-rN[_]).map(d=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${d}`):u.numbers.map(d=>this.getSuffix(i,d,o)):[]}getSuffix(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=this.getRule(i,u);return d?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(o)}`:this.getSuffixRetroCompatible(d,o):(this.logger.warn(`no plural rule found for: ${i}`),"")}getSuffixRetroCompatible(i,o){const u=i.noAbs?i.plurals(o):i.plurals(Math.abs(o));let d=i.numbers[u];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(d===2?d="plural":d===1&&(d=""));const _=()=>this.options.prepend&&d.toString()?this.options.prepend+d.toString():d.toString();return this.options.compatibilityJSON==="v1"?d===1?"":typeof d=="number"?`_plural_${d.toString()}`:_():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?_():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!xY.includes(this.options.compatibilityJSON)}}function oN(e,i,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_=fY(e,i,o);return!_&&d&&typeof o=="string"&&(_=G_(e,o,u),_===void 0&&(_=G_(i,o,u))),_}class IY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("interpolator"),this.options=i,this.format=i.interpolation&&i.interpolation.format||(o=>o),this.init(i)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});const o=i.interpolation;this.escape=o.escape!==void 0?o.escape:gY,this.escapeValue=o.escapeValue!==void 0?o.escapeValue:!0,this.useRawValueToEscape=o.useRawValueToEscape!==void 0?o.useRawValueToEscape:!1,this.prefix=o.prefix?If(o.prefix):o.prefixEscaped||"{{",this.suffix=o.suffix?If(o.suffix):o.suffixEscaped||"}}",this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||",",this.unescapePrefix=o.unescapeSuffix?"":o.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":o.unescapeSuffix||"",this.nestingPrefix=o.nestingPrefix?If(o.nestingPrefix):o.nestingPrefixEscaped||If("$t("),this.nestingSuffix=o.nestingSuffix?If(o.nestingSuffix):o.nestingSuffixEscaped||If(")"),this.nestingOptionsSeparator=o.nestingOptionsSeparator?o.nestingOptionsSeparator:o.nestingOptionsSeparator||",",this.maxReplaces=o.maxReplaces?o.maxReplaces:1e3,this.alwaysFormat=o.alwaysFormat!==void 0?o.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(i,"g");const o=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(o,"g");const u=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(u,"g")}interpolate(i,o,u,d){let _,w,a;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(fe){return fe.replace(/\$/g,"$$$$")}const Q=fe=>{if(fe.indexOf(this.formatSeparator)<0){const ie=oN(o,E,fe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ie,void 0,u,{...d,...o,interpolationkey:fe}):ie}const we=fe.split(this.formatSeparator),$e=we.shift().trim(),me=we.join(this.formatSeparator).trim();return this.format(oN(o,E,$e,this.options.keySeparator,this.options.ignoreJSONStructure),me,u,{...d,...o,interpolationkey:$e})};this.resetRegExp();const q=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,W=d&&d.interpolation&&d.interpolation.skipOnVariables!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:fe=>j(fe)},{regex:this.regexp,safeValue:fe=>this.escapeValue?j(this.escape(fe)):j(fe)}].forEach(fe=>{for(a=0;_=fe.regex.exec(i);){const we=_[1].trim();if(w=Q(we),w===void 0)if(typeof q=="function"){const me=q(i,_,d);w=typeof me=="string"?me:""}else if(d&&Object.prototype.hasOwnProperty.call(d,we))w="";else if(W){w=_[0];continue}else this.logger.warn(`missed to pass in variable ${we} for interpolating ${i}`),w="";else typeof w!="string"&&!this.useRawValueToEscape&&(w=KE(w));const $e=fe.safeValue(w);if(i=i.replace(_[0],$e),W?(fe.regex.lastIndex+=w.length,fe.regex.lastIndex-=_[0].length):fe.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),i}nest(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,_,w;function a(E,j){const Q=this.nestingOptionsSeparator;if(E.indexOf(Q)<0)return E;const q=E.split(new RegExp(`${Q}[ ]*{`));let W=`{${q[1]}`;E=q[0],W=this.interpolate(W,w);const le=W.match(/'/g),fe=W.match(/"/g);(le&&le.length%2===0&&!fe||fe.length%2!==0)&&(W=W.replace(/'/g,'"'));try{w=JSON.parse(W),j&&(w={...j,...w})}catch(we){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,we),`${E}${Q}${W}`}return delete w.defaultValue,E}for(;d=this.nestingRegexp.exec(i);){let E=[];w={...u},w=w.replace&&typeof w.replace!="string"?w.replace:w,w.applyPostProcessor=!1,delete w.defaultValue;let j=!1;if(d[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(d[1])){const Q=d[1].split(this.formatSeparator).map(q=>q.trim());d[1]=Q.shift(),E=Q,j=!0}if(_=o(a.call(this,d[1].trim(),w),w),_&&d[0]===i&&typeof _!="string")return _;typeof _!="string"&&(_=KE(_)),_||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),_=""),j&&(_=E.reduce((Q,q)=>this.format(Q,q,u.lng,{...u,interpolationkey:d[1].trim()}),_.trim())),i=i.replace(d[0],_),this.regexp.lastIndex=0}return i}}function TY(e){let i=e.toLowerCase().trim();const o={};if(e.indexOf("(")>-1){const u=e.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?o.currency||(o.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?o.range||(o.range=d.trim()):d.split(";").forEach(w=>{if(!w)return;const[a,...E]=w.split(":"),j=E.join(":").trim().replace(/^'+|'+$/g,"");o[a.trim()]||(o[a.trim()]=j),j==="false"&&(o[a.trim()]=!1),j==="true"&&(o[a.trim()]=!0),isNaN(j)||(o[a.trim()]=parseInt(j,10))})}return{formatName:i,formatOptions:o}}function Tf(e){const i={};return function(u,d,_){const w=d+JSON.stringify(_);let a=i[w];return a||(a=e(Z_(d),_),i[w]=a),a(u)}}class DY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("formatter"),this.options=i,this.formats={number:Tf((o,u)=>{const d=new Intl.NumberFormat(o,{...u});return _=>d.format(_)}),currency:Tf((o,u)=>{const d=new Intl.NumberFormat(o,{...u,style:"currency"});return _=>d.format(_)}),datetime:Tf((o,u)=>{const d=new Intl.DateTimeFormat(o,{...u});return _=>d.format(_)}),relativetime:Tf((o,u)=>{const d=new Intl.RelativeTimeFormat(o,{...u});return _=>d.format(_,u.range||"day")}),list:Tf((o,u)=>{const d=new Intl.ListFormat(o,{...u});return _=>d.format(_)})},this.init(i)}init(i){const u=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=u.formatSeparator?u.formatSeparator:u.formatSeparator||","}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=Tf(o)}format(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return o.split(this.formatSeparator).reduce((a,E)=>{const{formatName:j,formatOptions:Q}=TY(E);if(this.formats[j]){let q=a;try{const W=d&&d.formatParams&&d.formatParams[d.interpolationkey]||{},le=W.locale||W.lng||d.locale||d.lng||u;q=this.formats[j](a,le,{...Q,...d,...W})}catch(W){this.logger.warn(W)}return q}else this.logger.warn(`there was no format function for ${j}`);return a},i)}}function SY(e,i){e.pending[i]!==void 0&&(delete e.pending[i],e.pendingCount--)}class AY extends $_{constructor(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=i,this.store=o,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=Il.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,d.backend,d)}queueLoad(i,o,u,d){const _={},w={},a={},E={};return i.forEach(j=>{let Q=!0;o.forEach(q=>{const W=`${j}|${q}`;!u.reload&&this.store.hasResourceBundle(j,q)?this.state[W]=2:this.state[W]<0||(this.state[W]===1?w[W]===void 0&&(w[W]=!0):(this.state[W]=1,Q=!1,w[W]===void 0&&(w[W]=!0),_[W]===void 0&&(_[W]=!0),E[q]===void 0&&(E[q]=!0)))}),Q||(a[j]=!0)}),(Object.keys(_).length||Object.keys(w).length)&&this.queue.push({pending:w,pendingCount:Object.keys(w).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(_),pending:Object.keys(w),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(E)}}loaded(i,o,u){const d=i.split("|"),_=d[0],w=d[1];o&&this.emit("failedLoading",_,w,o),u&&this.store.addResourceBundle(_,w,u),this.state[i]=o?-1:2;const a={};this.queue.forEach(E=>{dY(E.loaded,[_],w),SY(E,i),o&&E.errors.push(o),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(j=>{a[j]||(a[j]={});const Q=E.loaded[j];Q.length&&Q.forEach(q=>{a[j][q]===void 0&&(a[j][q]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(E=>!E.done)}read(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,w=arguments.length>5?arguments[5]:void 0;if(!i.length)return w(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:d,wait:_,callback:w});return}this.readingCalls++;const a=(j,Q)=>{if(this.readingCalls--,this.waitingReads.length>0){const q=this.waitingReads.shift();this.read(q.lng,q.ns,q.fcName,q.tried,q.wait,q.callback)}if(j&&Q&&d<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,u,d+1,_*2,w)},_);return}w(j,Q)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const j=E(i,o);j&&typeof j.then=="function"?j.then(Q=>a(null,Q)).catch(a):a(null,j)}catch(j){a(j)}return}return E(i,o,a)}prepareLoading(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);const _=this.queueLoad(i,o,u,d);if(!_.toLoad.length)return _.pending.length||d(),null;_.toLoad.forEach(w=>{this.loadOne(w)})}load(i,o,u){this.prepareLoading(i,o,{},u)}reload(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}loadOne(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=i.split("|"),d=u[0],_=u[1];this.read(d,_,"read",void 0,void 0,(w,a)=>{w&&this.logger.warn(`${o}loading namespace ${_} for language ${d} failed`,w),!w&&a&&this.logger.log(`${o}loaded namespace ${_} for language ${d}`,a),this.loaded(i,w,a)})}saveMissing(i,o,u,d,_){let w=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${u}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(u==null||u==="")){if(this.backend&&this.backend.create){const E={...w,isUpdate:_},j=this.backend.create.bind(this.backend);if(j.length<6)try{let Q;j.length===5?Q=j(i,o,u,d,E):Q=j(i,o,u,d),Q&&typeof Q.then=="function"?Q.then(q=>a(null,q)).catch(a):a(null,Q)}catch(Q){a(Q)}else j(i,o,u,d,a,E)}!i||!i[0]||this.store.addResource(i[0],o,u,d)}}}function sN(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(i){let o={};if(typeof i[1]=="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(d=>{o[d]=u[d]})}return o},interpolation:{escapeValue:!0,format:(e,i,o,u)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function aN(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function q_(){}function CY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})}class Lm extends $_{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=aN(i),this.services={},this.logger=Il,this.modules={external:[]},CY(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initImmediate)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(){var i=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const d=sN();this.options={...d,...this.options,...aN(o)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...d.interpolation,...this.options.interpolation}),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function _(Q){return Q?typeof Q=="function"?new Q:Q:null}if(!this.options.isClone){this.modules.logger?Il.init(_(this.modules.logger),this.options):Il.init(null,this.options);let Q;this.modules.formatter?Q=this.modules.formatter:typeof Intl<"u"&&(Q=DY);const q=new nN(this.options);this.store=new eN(this.options.resources,this.options);const W=this.services;W.logger=Il,W.resourceStore=this.store,W.languageUtils=q,W.pluralResolver=new MY(q,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Q&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(W.formatter=_(Q),W.formatter.init(W,this.options),this.options.interpolation.format=W.formatter.format.bind(W.formatter)),W.interpolator=new IY(this.options),W.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},W.backendConnector=new AY(_(this.modules.backend),W.resourceStore,W,this.options),W.backendConnector.on("*",function(le){for(var fe=arguments.length,we=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)we[$e-1]=arguments[$e];i.emit(le,...we)}),this.modules.languageDetector&&(W.languageDetector=_(this.modules.languageDetector),W.languageDetector.init&&W.languageDetector.init(W,this.options.detection,this.options)),this.modules.i18nFormat&&(W.i18nFormat=_(this.modules.i18nFormat),W.i18nFormat.init&&W.i18nFormat.init(this)),this.translator=new W_(this.services,this.options),this.translator.on("*",function(le){for(var fe=arguments.length,we=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)we[$e-1]=arguments[$e];i.emit(le,...we)}),this.modules.external.forEach(le=>{le.init&&le.init(this)})}if(this.format=this.options.interpolation.format,u||(u=q_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Q=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Q.length>0&&Q[0]!=="dev"&&(this.options.lng=Q[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(Q=>{this[Q]=function(){return i.store[Q](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Q=>{this[Q]=function(){return i.store[Q](...arguments),i}});const E=Nm(),j=()=>{const Q=(q,W)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),E.resolve(W),u(q,W)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return Q(null,this.t.bind(this));this.changeLanguage(this.options.lng,Q)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),E}loadResources(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const _=[],w=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(j=>{j!=="cimode"&&_.indexOf(j)<0&&_.push(j)})};d?w(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>w(E)),this.options.preload&&this.options.preload.forEach(a=>w(a)),this.services.backendConnector.load(_,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(a)})}else u(null)}reloadResources(i,o,u){const d=Nm();return i||(i=this.languages),o||(o=this.options.ns),u||(u=q_),this.services.backendConnector.reload(i,o,_=>{d.resolve(),u(_)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&tN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(let o=0;o<this.languages.length;o++){const u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(i,o){var u=this;this.isLanguageChangingTo=i;const d=Nm();this.emit("languageChanging",i);const _=E=>{this.language=E,this.languages=this.services.languageUtils.toResolveHierarchy(E),this.resolvedLanguage=void 0,this.setResolvedLanguage(E)},w=(E,j)=>{j?(_(j),this.translator.changeLanguage(j),this.isLanguageChangingTo=void 0,this.emit("languageChanged",j),this.logger.log("languageChanged",j)):this.isLanguageChangingTo=void 0,d.resolve(function(){return u.t(...arguments)}),o&&o(E,function(){return u.t(...arguments)})},a=E=>{!i&&!E&&this.services.languageDetector&&(E=[]);const j=typeof E=="string"?E:this.services.languageUtils.getBestMatchFromCodes(E);j&&(this.language||_(j),this.translator.language||this.translator.changeLanguage(j),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(j)),this.loadResources(j,Q=>{w(Q,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(i),d}getFixedT(i,o,u){var d=this;const _=function(w,a){let E;if(typeof a!="object"){for(var j=arguments.length,Q=new Array(j>2?j-2:0),q=2;q<j;q++)Q[q-2]=arguments[q];E=d.options.overloadTranslationOptionHandler([w,a].concat(Q))}else E={...a};E.lng=E.lng||_.lng,E.lngs=E.lngs||_.lngs,E.ns=E.ns||_.ns,E.keyPrefix=E.keyPrefix||u||_.keyPrefix;const W=d.options.keySeparator||".";let le;return E.keyPrefix&&Array.isArray(w)?le=w.map(fe=>`${E.keyPrefix}${W}${fe}`):le=E.keyPrefix?`${E.keyPrefix}${W}${w}`:w,d.t(le,E)};return typeof i=="string"?_.lng=i:_.lngs=i,_.ns=o,_.keyPrefix=u,_}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const u=o.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,_=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const w=(a,E)=>{const j=this.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};if(o.precheck){const a=o.precheck(this,w);if(a!==void 0)return a}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||w(u,i)&&(!d||w(_,i)))}loadNamespaces(i,o){const u=Nm();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}loadLanguages(i,o){const u=Nm();typeof i=="string"&&(i=[i]);const d=this.options.preload||[],_=i.filter(w=>d.indexOf(w)<0);return _.length?(this.options.preload=d.concat(_),this.loadResources(w=>{u.resolve(),o&&o(w)}),u):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],u=this.services&&this.services.languageUtils||new nN(sN());return o.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new Lm(i,o)}cloneInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},_=new Lm(d);return(i.debug!==void 0||i.prefix!==void 0)&&(_.logger=_.logger.clone(i)),["store","services","language"].forEach(a=>{_[a]=this[a]}),_.services={...this.services},_.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},u&&(_.store=new eN(this.store.data,d),_.services.resourceStore=_.store),_.translator=new W_(_.services,d),_.translator.on("*",function(a){for(var E=arguments.length,j=new Array(E>1?E-1:0),Q=1;Q<E;Q++)j[Q-1]=arguments[Q];_.emit(a,...j)}),_.init(d,o),_.translator.options=d,_.translator.backendConnector.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},_}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jo=Lm.createInstance();jo.createInstance=Lm.createInstance,jo.createInstance,jo.dir,jo.init,jo.loadResources,jo.reloadResources,jo.use,jo.changeLanguage,jo.getFixedT;const lN=jo.t;jo.exists,jo.setDefaultNamespace,jo.hasLoadedNamespace,jo.loadNamespaces,jo.loadLanguages;function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)({}).hasOwnProperty.call(o,u)&&(e[u]=o[u])}return e},Q3.apply(null,arguments)}function EY(){if(console&&console.warn){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i)}}const cN={};function H3(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&cN[i[0]]||(typeof i[0]=="string"&&(cN[i[0]]=new Date),EY(...i))}const uN=(e,i)=>()=>{if(e.isInitialized)i();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),i()};e.on("initialized",o)}};function hN(e,i,o){e.loadNamespaces(i,uN(e,o))}function dN(e,i,o,u){typeof o=="string"&&(o=[o]),o.forEach(d=>{e.options.ns.indexOf(d)<0&&e.options.ns.push(d)}),e.loadLanguages(i,uN(e,u))}function NY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=i.languages[0],d=i.options?i.options.fallbackLng:!1,_=i.languages[i.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const w=(a,E)=>{const j=i.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!w(i.isLanguageChangingTo,e)?!1:!!(i.hasResourceBundle(u,e)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||w(u,e)&&(!d||w(_,e)))}function LY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!i.languages||!i.languages.length?(H3("i18n.languages were undefined or empty",i.languages),!0):i.options.ignoreJSONStructure!==void 0?i.hasLoadedNamespace(e,{lng:o.lng,precheck:(d,_)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&d.services.backendConnector.backend&&d.isLanguageChangingTo&&!_(d.isLanguageChangingTo,e))return!1}}):NY(e,i,o)}const zY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},kY=e=>OY[e];let $3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(zY,kY)};function jY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$3={...$3,...e}}function PY(){return $3}let fN;function RY(e){fN=e}function BY(){return fN}const FY={type:"3rdParty",init(e){jY(e.options.react),RY(e)}},UY=xe.createContext();class VY{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const QY=(e,i)=>{const o=xe.useRef();return xe.useEffect(()=>{o.current=i?o.current:e},[e,i]),o.current};function Po(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=i,{i18n:u,defaultNS:d}=xe.useContext(UY)||{},_=o||u||BY();if(_&&!_.reportNamespaces&&(_.reportNamespaces=new VY),!_){H3("You will need to pass in an i18next instance by using initReactI18next");const te=(be,_e)=>typeof _e=="string"?_e:_e&&typeof _e=="object"&&typeof _e.defaultValue=="string"?_e.defaultValue:Array.isArray(be)?be[be.length-1]:be,oe=[te,{},!1];return oe.t=te,oe.i18n={},oe.ready=!1,oe}_.options.react&&_.options.react.wait!==void 0&&H3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const w={...PY(),..._.options.react,...i},{useSuspense:a,keyPrefix:E}=w;let j=e||d||_.options&&_.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"],_.reportNamespaces.addUsedNamespaces&&_.reportNamespaces.addUsedNamespaces(j);const Q=(_.isInitialized||_.initializedStoreOnce)&&j.every(te=>LY(te,_,w));function q(){return _.getFixedT(i.lng||null,w.nsMode==="fallback"?j:j[0],E)}const[W,le]=xe.useState(q);let fe=j.join();i.lng&&(fe=`${i.lng}${fe}`);const we=QY(fe),$e=xe.useRef(!0);xe.useEffect(()=>{const{bindI18n:te,bindI18nStore:oe}=w;$e.current=!0,!Q&&!a&&(i.lng?dN(_,i.lng,j,()=>{$e.current&&le(q)}):hN(_,j,()=>{$e.current&&le(q)})),Q&&we&&we!==fe&&$e.current&&le(q);function be(){$e.current&&le(q)}return te&&_&&_.on(te,be),oe&&_&&_.store.on(oe,be),()=>{$e.current=!1,te&&_&&te.split(" ").forEach(_e=>_.off(_e,be)),oe&&_&&oe.split(" ").forEach(_e=>_.store.off(_e,be))}},[_,fe]);const me=xe.useRef(!0);xe.useEffect(()=>{$e.current&&!me.current&&le(q),me.current=!1},[_,E]);const ie=[W,_,Q];if(ie.t=W,ie.i18n=_,ie.ready=Q,Q||!Q&&!a)return ie;throw new Promise(te=>{i.lng?dN(_,i.lng,j,()=>te()):hN(_,j,()=>te())})}const HY={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Show legend":"Show legend","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","Include bus transportation":"Include bus transportation","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route",Share:"Share","Copy link":"Copy link","QR Code":"QR Code",Open:"Open",Closed:"Closed","Expand opening hours":"Expand opening hours","Collapse opening hours":"Collapse opening hours","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language","Increase text size to 200%":"Increase text size to 200%","Decrease text size to 100%":"Decrease text size to 100%","Zoom in":"Zoom in","Zoom out":"Zoom out"},$Y={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Show legend":"Vis forklaring","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","Include bus transportation":"Inkluder bus transport","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten",Share:"Del","Copy link":"Kopiér link","QR Code":"QR-kode",Open:"Åben",Closed:"Lukket","Expand opening hours":"Udvid åbningstider","Collapse opening hours":"Skjul åbningstider","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog","Increase text size to 200%":"Forøg tekststørrelse til 200%","Decrease text size to 100%":"Formindsk tekststørrelse til 100%","Zoom in":"Zoom ind","Zoom out":"Zoom ud"},YY={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Nach Name, Kategorie, Gebäude suchen...","Show legend":"Legende anzeigen","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Beschreibung öffnen",Locations:"Locations","Directions not available":"Wegbeschreibung nicht verfügbar","Start directions":"Starte Wegbeschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben Ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlassen Sie das",Enter:"Gehe Sie in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren","Avoid stairs and escalators":"Treppen und Rolltreppen vermeiden","Include bus transportation":"Busverkehr einbeziehen","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Los!",Directions:"Wegbeschreibung","Choose departure":"Startpunkt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Standort wählen",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden",Share:"Teilen","Copy link":"Link kopieren","QR Code":"QR code",Open:"Geöffnet",Closed:"Geschlossen","Expand opening hours":"Öffnungszeiten erweitern","Collapse opening hours":"Öffnungszeiten reduzieren","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen","Increase text size to 200%":"Textgröße auf 200% erhöhen","Decrease text size to 100%":"Textgröße auf 100% verringern","Zoom in":"Vergrößern","Zoom out":"Verkleinern"},GY={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Show legend":"Afficher la légende","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","Include bus transportation":"Inclure le transport en bus","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire",Share:"Partager","Copy link":"Copier le lien","QR Code":"Code QR",Open:"Ouvert",Closed:"Fermé","Expand opening hours":"Développer les heures d'ouverture","Collapse opening hours":"Réduire les heures d'ouverture","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue","Increase text size to 200%":"Augmenter la taille du texte à 200%","Decrease text size to 100%":"Réduire la taille du texte à 100%","Zoom in":"Zoom avant","Zoom out":"Zoom arrière"},ZY={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Show legend":"Mostra legenda","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","Include bus transportation":"Includi trasporto in autobus","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso",Share:"Condividi","Copy link":"Copia il collegamento","QR Code":"Codice QR",Open:"Aperto",Closed:"Chiuso","Expand opening hours":"Espandi orari di apertura","Collapse opening hours":"Comprimi orari di apertura","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua","Increase text size to 200%":"Aumenta la dimensione del testo al 200%","Decrease text size to 100%":"Riduci la dimensione del testo al 100%","Zoom in":"Ingrandisci","Zoom out":"Riduci"},WY={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Show legend":"Mostrar leyenda","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","Include bus transportation":"Incluir transporte en autobús","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta",Share:"Compartir","Copy link":"Copiar link","QR Code":"Código QR",Open:"Abierto",Closed:"Cerrado","Expand opening hours":"Expandir horario de apertura","Collapse opening hours":"Contraer horario de apertura","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma","Increase text size to 200%":"Aumentar el tamaño del texto al 200%","Decrease text size to 100%":"Reducir el tamaño del texto al 100%","Zoom in":"Acercar","Zoom out":"Alejar"},qY={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Show legend":"Legende weergeven","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","Include bus transportation":"Busvervoer opnemen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien ",Share:"Deel","Copy link":"Link kopiëren","QR Code":"QR code",Open:"Open",Closed:"Gesloten","Expand opening hours":"Openingsuren uitklappen","Collapse opening hours":"Openingsuren inklappen","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal","Increase text size to 200%":"Tekstgrootte verhogen naar 200%","Decrease text size to 100%":"Tekstgrootte verlagen naar 100%","Zoom in":"Inzoomen","Zoom out":"Uitzoomen"},KY={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","Show legend":"显示图例","Nothing was found":"未找到任何结果",d:"天",h:"小时",min:"分钟",Walk:"步行",Bike:"骑车",Transit:"公交",Drive:"驾车","Start wayfinding":"开始导航","Read full description":"查看完整描述",Locations:"位置","Directions not available":"导航不可用","Start directions":"开始导航",Previous:"上一步",Next:"下一步",StepYofX:"第 {{activeStep}} 步,共 {{totalSteps}} 步","You have arrived":"您已到达",Leave:"离开",Park:"停车",at:"在",Building:"建筑",Venue:"场所","Take staircase to level":"走楼梯到","Take the ladder to level":"走梯子到","Take elevator to level":"乘电梯到","Take escalator to level":"乘扶梯到","Take wheelchair lift to level":"乘轮椅升降机到","Take wheelchair ramp to level":"走轮椅坡道到",Exit:"离开",Enter:"进入",stops:"站","and continue":"然后继续","Continue straight ahead":"直行","Go left":"向左","Go sharp left":"急转左","Go slight left":"稍向左","Go right":"向右","Go sharp right":"急转右","Go slight right":"稍向右","Turn around":"掉头",Switch:"切换","Avoid stairs and escalators":"避开楼梯和扶梯","Include bus transportation":"包含公交交通","No route found":"未找到路线","My position":"我的位置","Go!":"出发!",Directions:"导航","Choose departure":"选择出发地","Choose destination":"选择目的地",Venues:"场所","Select venue":"选择场所",Current:"当前","Scan QR code":"扫描二维码","Scan the QR code to see the route on your phone":"扫描二维码在手机上查看路线",Done:"完成","Cancel route":"取消路线","Finish route":"完成路线",Share:"分享","Copy link":"复制链接","QR Code":"二维码",Open:"营业中",Closed:"已关闭","Expand opening hours":"展开营业时间","Collapse opening hours":"收起营业时间","Go to view":"定位到","Select language":"选择语言","Increase text size to 200%":"将文本大小增加到 200%","Decrease text size to 100%":"将文本大小减少到 100%","Zoom in":"放大","Zoom out":"缩小"};function XY(e){jo.use(FY).init({resources:{en:{translation:HY},da:{translation:$Y},de:{translation:YY},fr:{translation:GY},it:{translation:ZY},es:{translation:WY},nl:{translation:qY},zh:{translation:KY}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const pN=[{code:"en",label:"English"},{code:"da",label:"Dansk"},{code:"de",label:"Deutsch"},{code:"fr",label:"Français"},{code:"it",label:"Italiano"},{code:"es",label:"Español"},{code:"nl",label:"Nederlands"},{code:"zh",label:"中文"}],Vae="",Df={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var gN={exports:{}},JY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",eG=JY,tG=eG;function mN(){}function yN(){}yN.resetWarningCache=mN;var iG=function(){function e(u,d,_,w,a,E){if(E!==tG){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}e.isRequired=e;function i(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:i,element:e,elementType:e,instanceOf:i,node:e,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:yN,resetWarningCache:mN};return o.PropTypes=o,o};gN.exports=iG();var nG=gN.exports;const ct=oc(nG),Qae="",rG=e=>{const[i,o]=xe.useState(!1);return xe.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Y3=()=>rG("(min-width: 992px)");class oG{constructor(i={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:o=100}=i;this._maxAccuracy=o}get currentPosition(){return this._currentPosition}hasValidPosition(){const i=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=i}on(i,o){this._listeners.has(i)||this._listeners.set(i,[]),this._listeners.get(i).push(o)}off(i,o){const u=this._listeners.get(i);u&&this._listeners.set(i,u.filter(d=>d!==o))}setPosition(i){let o;if(i.coords&&i.timestamp)o={coords:{latitude:i.coords.latitude,longitude:i.coords.longitude,accuracy:i.coords.accuracy,altitude:i.coords.altitude??null,altitudeAccuracy:i.coords.altitudeAccuracy??null,heading:i.coords.heading??null,speed:i.coords.speed??null},timestamp:i.timestamp,floorIndex:i.floorIndex??null};else{const d={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:i};return this.emitError(d),!1}return o.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${o.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=o,(this._listeners.get("position_received")||[]).forEach(d=>{d.call(null,{position:o})}),!0)}emitError(i){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",i),(this._listeners.get("position_error")||[]).forEach(u=>{u.call(null,i)})}}const sG=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M0.833344 10C0.833344 10.3315 0.96504 10.6495 1.19946 10.8839C1.43388 11.1183 1.75182 11.25 2.08334 11.25H8.54168C8.59693 11.25 8.64992 11.2719 8.68899 11.311C8.72806 11.3501 8.75001 11.4031 8.75001 11.4583V17.9167C8.75001 18.2482 8.88171 18.5661 9.11613 18.8005C9.35055 19.035 9.66849 19.1667 10 19.1667C10.3315 19.1667 10.6495 19.035 10.8839 18.8005C11.1183 18.5661 11.25 18.2482 11.25 17.9167V11.4583C11.25 11.4031 11.272 11.3501 11.311 11.311C11.3501 11.2719 11.4031 11.25 11.4583 11.25H17.9167C18.2482 11.25 18.5661 11.1183 18.8006 10.8839C19.035 10.6495 19.1667 10.3315 19.1667 10C19.1667 9.66848 19.035 9.35054 18.8006 9.11612C18.5661 8.88169 18.2482 8.75 17.9167 8.75H11.4583C11.4031 8.75 11.3501 8.72805 11.311 8.68898C11.272 8.64991 11.25 8.59692 11.25 8.54167V2.08333C11.25 1.75181 11.1183 1.43387 10.8839 1.19945C10.6495 0.965029 10.3315 0.833333 10 0.833333C9.66849 0.833333 9.35055 0.965029 9.11613 1.19945C8.88171 1.43387 8.75001 1.75181 8.75001 2.08333V8.54167C8.75001 8.59692 8.72806 8.64991 8.68899 8.68898C8.64992 8.72805 8.59693 8.75 8.54168 8.75H2.08334C1.75182 8.75 1.43388 8.88169 1.19946 9.11612C0.96504 9.35054 0.833344 9.66848 0.833344 10Z",fill:"#78716C"})),aG=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M2.08333 11.6667H17.9167C18.2482 11.6667 18.5661 11.535 18.8005 11.3006C19.035 11.0661 19.1667 10.7482 19.1667 10.4167C19.1667 10.0851 19.035 9.7672 18.8005 9.53278C18.5661 9.29836 18.2482 9.16667 17.9167 9.16667H2.08333C1.75181 9.16667 1.43387 9.29836 1.19945 9.53278C0.965029 9.7672 0.833333 10.0851 0.833333 10.4167C0.833333 10.7482 0.965029 11.0661 1.19945 11.3006C1.43387 11.535 1.75181 11.6667 2.08333 11.6667Z",fill:"#78716C"})),Hae="";G3.propTypes={mapType:ct.oneOf(["google","mapbox"]).isRequired,mapInstance:ct.object.isRequired};function G3({mapType:e,mapInstance:i}){const{t:o}=Po(),u=Y3(),d=xe.useCallback(()=>{const w=i==null?void 0:i.getMap();if(w)switch(e){case"mapbox":w.zoomIn();break;case"google":{const a=w.getZoom();w.setZoom(a+1);break}}},[e,i]),_=xe.useCallback(()=>{const w=i==null?void 0:i.getMap();if(w)switch(e){case"mapbox":w.zoomOut();break;case"google":{const a=w.getZoom();w.setZoom(a-1);break}}},[e,i]);return u?Oe.jsxs("div",{className:"map-zoom-control",children:[Oe.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:d,"aria-label":o("Zoom in"),children:Oe.jsx(sG,{})}),Oe.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:_,"aria-label":o("Zoom out"),children:Oe.jsx(aG,{})})]}):null}const lG=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M10 4C9.44771 4 9 4.44772 9 5C9 5.55228 9.44771 6 10 6H15V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H10Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}}),xe.createElement("path",{d:"M5.92676 20V12H2C1.44772 12 1 11.5523 1 11C1 10.4477 1.44772 10 2 10H6.88216C6.89695 9.99935 6.91181 9.99902 6.92676 9.99902C6.9417 9.99902 6.95657 9.99935 6.97135 10H12C12.5523 10 13 10.4477 13 11C13 11.5523 12.5523 12 12 12H7.92676V20C7.92676 20.5523 7.47904 21 6.92676 21C6.37447 21 5.92676 20.5523 5.92676 20Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}})),$ae="";_N.propTypes={mapsIndoorsInstance:ct.object.isRequired};function _N({mapsIndoorsInstance:e}){const{t:i}=Po(),o=Y3(),[u,d]=xe.useState(!1),_=xe.useCallback(a=>{var E,j;a?(document.documentElement.style.fontSize="200%",(E=e==null?void 0:e.getMapView())==null||E.setLabelTextSizeMultiplier(2)):(document.documentElement.style.fontSize="",(j=e==null?void 0:e.getMapView())==null||j.resetLabelTextSize())},[e]);xe.useEffect(()=>(_(u),()=>{_(!1)}),[u,_]);const w=xe.useCallback(()=>{const a=!u;d(a),_(a)},[u,_]);return o?Oe.jsx("button",{type:"button",className:`text-size-button ${u?"text-size-button--active":""}`,onClick:w,"aria-label":i(u?"Decrease text size to 100%":"Increase text size to 200%"),"aria-pressed":u,children:Oe.jsx(lG,{})}):null}const K_={venueSelector:{key:"venue-selector",className:"venue-selector-portal"},viewSelector:{key:"view-selector",className:"view-selector-portal"},languageSelector:{key:"language-selector",className:"language-selector-portal"},viewModeSwitch:{key:"viewmode-switch",className:"viewmode-switch-portal"},myPosition:{key:"my-position",className:"my-position-element-portal"},floorSelector:{key:"floor-selector",className:"floor-selector-portal"},resetView:{key:"reset-view",className:"reset-view-portal"},zoomControls:{key:"zoom-controls",className:null},textSizeButton:{key:"text-size-button",className:null}};vN.propTypes={mapType:ct.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:ct.object.isRequired,mapInstance:ct.object.isRequired,onPositionControl:ct.func,brandingColor:ct.string,devicePosition:ct.object,excludedElements:ct.string,isKiosk:ct.bool,enableAccessibilityKioskControls:ct.bool};function vN({mapType:e,mapsIndoorsInstance:i,mapInstance:o,onPositionControl:u,brandingColor:d,devicePosition:_,excludedElements:w="",isKiosk:a,enableAccessibilityKioskControls:E=!1}){const j=Y3(),Q=xe.useRef(null),q=xe.useRef(null),W=xe.useCallback(we=>!w||typeof w!="string"?!0:!w.split(",").map(me=>me.trim()).includes(we),[w]),le=xe.useMemo(()=>{const we={};for(const[$e,me]of Object.entries(K_))we[$e]=Oe.jsx("div",{className:me.className},me.key);return we},[]),fe=we=>{q.current.customPositionProvider.setPosition(we)&&q.current.watchPosition()};return xe.useEffect(()=>{if(!(!i||!o)){if(!Q.current){const we=document.createElement("mi-floor-selector");Q.current=we}if(!q.current){const we=document.createElement("mi-my-position");q.current=we}Q.current.mapsindoors=i,q.current.mapsindoors=i,d&&(Q.current.primaryColor=d),u&&q.current&&u(q.current)}},[e,i,o,u,d]),xe.useEffect(()=>{if(q.current){if(q.current.stopListeningForPosition&&typeof q.current.stopListeningForPosition=="function"&&q.current.stopListeningForPosition(),_&&typeof _=="object"){if(q.current.customPositionProvider||(q.current.customPositionProvider=new oG),Object.keys(_).length===0)return;fe(_)}return()=>{q.current&&q.current.stopListeningForPosition&&typeof q.current.stopListeningForPosition=="function"&&q.current.stopListeningForPosition()}}},[_]),xe.useEffect(()=>{if(!Q.current||!q.current)return;const we=($e,me)=>{const ie=document.querySelector(`.${me}`);ie&&!ie.contains($e)&&($e.remove(),ie.appendChild($e))};requestAnimationFrame(()=>{W("floorSelector")&&we(Q.current,K_.floorSelector.className),W("myPosition")&&we(q.current,K_.myPosition.className)})},[j,a,W]),xe.useEffect(()=>{Object.entries(K_).forEach(([we,$e])=>{if(!$e.className)return;const me=document.querySelector(`.${$e.className}`);me&&(W(we)?me.style.display="":me.style.display="none")})},[w,W,j]),a?E?Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"map-controls-container kiosk top-right"}),Oe.jsxs("div",{className:"map-controls-container kiosk bottom-right",children:[le.venueSelector,le.viewSelector,le.myPosition,W("zoomControls")&&Oe.jsx(G3,{mapType:e,mapInstance:o}),le.languageSelector,W("textSizeButton")&&Oe.jsx(_N,{mapsIndoorsInstance:i}),le.viewModeSwitch,le.floorSelector,le.resetView]})]}):Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"map-controls-container kiosk top-right",children:[le.venueSelector,le.viewSelector,le.languageSelector,le.viewModeSwitch,le.myPosition,le.floorSelector]}),Oe.jsx("div",{className:"map-controls-container kiosk bottom-right",children:le.resetView})]}):j?Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"map-controls-container desktop top-right",children:[le.venueSelector,le.viewSelector,le.languageSelector,le.viewModeSwitch,le.myPosition,le.floorSelector]}),Oe.jsxs("div",{className:"map-controls-container desktop bottom-right",children:[W("zoomControls")&&Oe.jsx(G3,{mapType:e,mapInstance:o}),le.resetView]})]}):Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"map-controls-left-column mobile-column",children:[le.venueSelector,le.viewModeSwitch,le.viewSelector,le.languageSelector]}),Oe.jsxs("div",{className:"map-controls-right-column mobile-column",children:[le.myPosition,le.floorSelector]})]})}const cG=xe.memo(vN),Yae="",uG=xe.lazy(()=>Promise.resolve().then(()=>Xne)),hG=xe.lazy(()=>Promise.resolve().then(()=>nre)),Sf={Google:"google",Mapbox:"mapbox"};xN.propTypes={apiKey:ct.string.isRequired,gmApiKey:ct.string,mapboxAccessToken:ct.string,center:ct.object,zoom:ct.number,bounds:ct.object,bearing:ct.number,pitch:ct.number,resetUICounter:ct.number,mapOptions:ct.object,onInitialized:ct.func,gmMapId:ct.string,devicePosition:ct.object,isKiosk:ct.bool};function xN({apiKey:e,gmApiKey:i,mapboxAccessToken:o,center:u,zoom:d,bounds:_,bearing:w,pitch:a,resetUICounter:E,mapOptions:j,onInitialized:Q,gmMapId:q,devicePosition:W,isKiosk:le}){var ci,Ot;const[fe,we]=xe.useState(),[$e,me]=xe.useState(),[ie,te]=xe.useState(),[oe,be]=xe.useState(),[_e,Je]=xe.useState(),[nt,Ye]=xe.useState(),[xt,dt]=xe.useState(),Pt=xe.useMemo(()=>{var wt;return((wt=nt==null?void 0:nt.appSettings)==null?void 0:wt.excludeFromUI)||""},[(ci=nt==null?void 0:nt.appSettings)==null?void 0:ci.excludeFromUI]);xe.useEffect(()=>{window.customElements.get("mi-floor-selector")||qE()},[]),xe.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),fe===Sf.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(wt=>{Je(wt)}),window.mapsindoors.services.AppConfigService.getConfig().then(wt=>{Ye(wt)})))},[e,fe]);const Tt=wt=>{dt(wt);const $t=new window.mapsindoors.MapsIndoors({mapView:wt});$t.once("building_changed",St=>{const Ht=$t.getVenue();St&&Ht&&St.venueId!==Ht.id&&$t.setVenue(St.venueId)}),$t.on("mouseenter",()=>{var Ht;const St=$t.getHoveredLocation();((Ht=St==null?void 0:St.properties.locationSettings)==null?void 0:Ht.selectable)===!1&&$t.unhoverLocation()}),$t.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),me($t)};return xe.useEffect(()=>{typeof Q=="function"&&$e&&ie&&typeof oe=="boolean"&&Q($e,ie,oe)},[$e,ie,oe]),xe.useEffect(()=>{_e&&fe===Sf.Mapbox&&["mapbox","3dwalls","floorplan"].every(wt=>_e.modules.map($t=>$t.toLowerCase()).includes(wt))?be(!0):be(!1)},[_e,fe]),xe.useEffect(()=>{o?we(Sf.Mapbox):i&&we(Sf.Google)},[i,o]),Oe.jsxs(Oe.Fragment,{children:[fe===Sf.Google&&Oe.jsx(xe.Suspense,{children:Oe.jsx(hG,{mapsIndoorsInstance:$e,apiKey:i,onInitialized:Tt,center:u,zoom:d,mapOptions:j,heading:w,tilt:a,bounds:_,gmMapId:q})}),fe===Sf.Mapbox&&Oe.jsx(xe.Suspense,{children:Oe.jsx(uG,{mapsIndoorsInstance:$e,accessToken:o,onInitialized:Tt,center:u,zoom:d,mapOptions:j,bearing:w,pitch:a,bounds:_,resetViewMode:E,viewModeSwitchVisible:oe,appConfig:nt})}),$e&&xt&&fe&&Oe.jsx(cG,{mapType:fe,mapsIndoorsInstance:$e,mapInstance:xt,onPositionControl:te,brandingColor:j==null?void 0:j.brandingColor,devicePosition:W,excludedElements:Pt,isKiosk:le,enableAccessibilityKioskControls:!!((Ot=nt==null?void 0:nt.appSettings)!=null&&Ot.enableAccessibilityKioskControls)})]})}const us={Google:"google",Mapbox:"mapbox"},ca=kn({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),dG=e=>{const i=Ci(ca),o=xe.useRef(),[u,d]=xe.useState([]);xe.useEffect(()=>{(async()=>{if(i&&e){for(const a of u)o.current.disableLiveData(a);o.current=new window.mapsindoors.LiveDataManager(i);const w=await o.current.LiveDataInfo.activeDomainTypes();for(const a of w)await o.current.enableLiveData(a);d(w)}})()},[e,i])},X_=kn({key:"userPosition",default:null}),Z3=kn({key:"directionsService",default:null}),J_=kn({key:"mapType",default:void 0}),W3=kn({key:"apiKey",default:null}),q3=kn({key:"gmApiKey",default:null}),ev=kn({key:"mapboxAccessToken",default:null}),tv=kn({key:"filteredLocations",default:void 0}),iv=kn({key:"filteredLocationsByExternalID",default:void 0}),wN=kn({key:"tileStyle",default:null}),bN=kn({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),K3=kn({key:"bearing",default:0}),nv=kn({key:"pitch",default:null}),MN=kn({key:"solution",default:null,dangerouslyAllowMutability:!0}),zm=kn({key:"notificationMessage",default:null});function rv(){return new Promise(e=>{const i=document.querySelector(".modal--open"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-(i==null?void 0:i.offsetTop));else{const u=new MutationObserver(()=>{const d=document.querySelector(".modal--open");d&&(u.disconnect(),e(o.offsetHeight-(d==null?void 0:d.offsetTop)))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Om=kn({key:"categories",default:[]}),X3=kn({key:"kioskOriginLocationId",default:void 0}),ov=kn({key:"locationId",default:void 0}),IN=kn({key:"startZoomLevel",default:null}),Mu=kn({key:"currentVenueName",default:null}),km=kn({key:"venues",default:[]}),J3=kn({key:"venueWasSelected",default:!1}),sv=kn({key:"isMapReady",default:!1});function Af(){return new Promise(e=>{const i=document.querySelector(".sheet--active"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-i.offsetTop);else{const u=new MutationObserver(()=>{const d=document.querySelector(".sheet--active");d&&(u.disconnect(),e(o.offsetHeight-d.offsetTop))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function Ph(){return new Promise(e=>{const i=document.querySelector(".modal--open");if(i)e((i==null?void 0:i.offsetWidth)+(i==null?void 0:i.offsetLeft)*2);else{const o=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(o.disconnect(),e((u==null?void 0:u.offsetWidth)+(u==null?void 0:u.offsetLeft)*2))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const TN=kn({key:"timeout",default:void 0});function DN(){const[e,i]=xe.useState(!1),o=Ci(sv),u=Ci(TN);return xe.useEffect(()=>{if(!o||!u)return;let d;const _=()=>{i(!1),window.clearTimeout(d),d=window.setTimeout(w,u*1e3)},w=()=>{i(!0)};return d=window.setTimeout(w,u*1e3),window.addEventListener("mousemove",_),window.addEventListener("mousedown",_),window.addEventListener("resize",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),window.addEventListener("wheel",_),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mousedown",_),window.removeEventListener("resize",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_),window.removeEventListener("wheel",_),window.clearTimeout(d)}},[u,o]),e}const fG=e=>{const[i,o]=xe.useState(window.matchMedia(e).matches);return xe.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Ja=()=>fG("(min-width: 992px)"),SN=kn({key:"mapboxViewMode",default:null}),e4=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),pG=R_({key:"currentPitch",get:({get:e})=>{const i=e(nv),o=e(SN);let u;switch(o){case e4.initial3D:u=i??45;break;case e4.clicked3D:u=45;break;case e4.clicked2D:u=0;break;default:u=i}return u}}),AN=kn({key:"center",default:null});function jr(e){return e==null}var xs=63710088e-1,t4={centimeters:xs*100,centimetres:xs*100,degrees:xs/111325,feet:xs*3.28084,inches:xs*39.37,kilometers:xs/1e3,kilometres:xs/1e3,meters:xs,metres:xs,miles:xs/1609.344,millimeters:xs*1e3,millimetres:xs*1e3,nauticalmiles:xs/1852,radians:1,yards:xs*1.0936},gG={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/xs,yards:1.0936133},i4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Ea(e,i,o){o===void 0&&(o={});var u={type:"Feature"};return(o.id===0||o.id)&&(u.id=o.id),o.bbox&&(u.bbox=o.bbox),u.properties=i||{},u.geometry=e,u}function mG(e,i,o){switch(e){case"Point":return el(i).geometry;case"LineString":return tl(i).geometry;case"Polygon":return n4(i).geometry;case"MultiPoint":return CN(i).geometry;case"MultiLineString":return r4(i).geometry;case"MultiPolygon":return EN(i).geometry;default:throw new Error(e+" is invalid")}}function el(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!av(e[0])||!av(e[1]))throw new Error("coordinates must contain numbers");var u={type:"Point",coordinates:e};return Ea(u,i,o)}function yG(e,i,o){return o===void 0&&(o={}),Iu(e.map(function(u){return el(u,i)}),o)}function n4(e,i,o){o===void 0&&(o={});for(var u=0,d=e;u<d.length;u++){var _=d[u];if(_.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var w=0;w<_[_.length-1].length;w++)if(_[_.length-1][w]!==_[0][w])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return Ea(a,i,o)}function _G(e,i,o){return o===void 0&&(o={}),Iu(e.map(function(u){return n4(u,i)}),o)}function tl(e,i,o){if(o===void 0&&(o={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var u={type:"LineString",coordinates:e};return Ea(u,i,o)}function vG(e,i,o){return o===void 0&&(o={}),Iu(e.map(function(u){return tl(u,i)}),o)}function Iu(e,i){i===void 0&&(i={});var o={type:"FeatureCollection"};return i.id&&(o.id=i.id),i.bbox&&(o.bbox=i.bbox),o.features=e,o}function r4(e,i,o){o===void 0&&(o={});var u={type:"MultiLineString",coordinates:e};return Ea(u,i,o)}function CN(e,i,o){o===void 0&&(o={});var u={type:"MultiPoint",coordinates:e};return Ea(u,i,o)}function EN(e,i,o){o===void 0&&(o={});var u={type:"MultiPolygon",coordinates:e};return Ea(u,i,o)}function xG(e,i,o){o===void 0&&(o={});var u={type:"GeometryCollection",geometries:e};return Ea(u,i,o)}function wG(e,i){if(i===void 0&&(i=0),i&&!(i>=0))throw new Error("precision must be a positive number");var o=Math.pow(10,i||0);return Math.round(e*o)/o}function NN(e,i){i===void 0&&(i="kilometers");var o=t4[i];if(!o)throw new Error(i+" units is invalid");return e*o}function o4(e,i){i===void 0&&(i="kilometers");var o=t4[i];if(!o)throw new Error(i+" units is invalid");return e/o}function bG(e,i){return LN(o4(e,i))}function MG(e){var i=e%360;return i<0&&(i+=360),i}function LN(e){var i=e%(2*Math.PI);return i*180/Math.PI}function IG(e){var i=e%360;return i*Math.PI/180}function TG(e,i,o){if(i===void 0&&(i="kilometers"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("length must be a positive number");return NN(o4(e,i),o)}function DG(e,i,o){if(i===void 0&&(i="meters"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("area must be a positive number");var u=i4[i];if(!u)throw new Error("invalid original units");var d=i4[o];if(!d)throw new Error("invalid final units");return e/u*d}function av(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function s4(e){return!!e&&e.constructor===Object}function SG(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(i){if(!av(i))throw new Error("bbox must only contain numbers")})}function AG(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}const CG=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:i4,bearingToAzimuth:MG,convertArea:DG,convertLength:TG,degreesToRadians:IG,earthRadius:xs,factors:t4,feature:Ea,featureCollection:Iu,geometry:mG,geometryCollection:xG,isNumber:av,isObject:s4,lengthToDegrees:bG,lengthToRadians:o4,lineString:tl,lineStrings:vG,multiLineString:r4,multiPoint:CN,multiPolygon:EN,point:el,points:yG,polygon:n4,polygons:_G,radiansToDegrees:LN,radiansToLength:NN,round:wG,unitsFactors:gG,validateBBox:SG,validateId:AG},Symbol.toStringTag,{value:"Module"}));function Cf(e,i,o){if(e!==null)for(var u,d,_,w,a,E,j,Q=0,q=0,W,le=e.type,fe=le==="FeatureCollection",we=le==="Feature",$e=fe?e.features.length:1,me=0;me<$e;me++){j=fe?e.features[me].geometry:we?e.geometry:e,W=j?j.type==="GeometryCollection":!1,a=W?j.geometries.length:1;for(var ie=0;ie<a;ie++){var te=0,oe=0;if(w=W?j.geometries[ie]:j,w!==null){E=w.coordinates;var be=w.type;switch(Q=o&&(be==="Polygon"||be==="MultiPolygon")?1:0,be){case null:break;case"Point":if(i(E,q,me,te,oe)===!1)return!1;q++,te++;break;case"LineString":case"MultiPoint":for(u=0;u<E.length;u++){if(i(E[u],q,me,te,oe)===!1)return!1;q++,be==="MultiPoint"&&te++}be==="LineString"&&te++;break;case"Polygon":case"MultiLineString":for(u=0;u<E.length;u++){for(d=0;d<E[u].length-Q;d++){if(i(E[u][d],q,me,te,oe)===!1)return!1;q++}be==="MultiLineString"&&te++,be==="Polygon"&&oe++}be==="Polygon"&&te++;break;case"MultiPolygon":for(u=0;u<E.length;u++){for(oe=0,d=0;d<E[u].length;d++){for(_=0;_<E[u][d].length-Q;_++){if(i(E[u][d][_],q,me,te,oe)===!1)return!1;q++}oe++}te++}break;case"GeometryCollection":for(u=0;u<w.geometries.length;u++)if(Cf(w.geometries[u],i,o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function EG(e,i,o,u){var d=o;return Cf(e,function(_,w,a,E,j){w===0&&o===void 0?d=_:d=i(d,_,w,a,E,j)},u),d}function zN(e,i){var o;switch(e.type){case"FeatureCollection":for(o=0;o<e.features.length&&i(e.features[o].properties,o)!==!1;o++);break;case"Feature":i(e.properties,0);break}}function NG(e,i,o){var u=o;return zN(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function lv(e,i){if(e.type==="Feature")i(e,0);else if(e.type==="FeatureCollection")for(var o=0;o<e.features.length&&i(e.features[o],o)!==!1;o++);}function LG(e,i,o){var u=o;return lv(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function zG(e){var i=[];return Cf(e,function(o){i.push(o)}),i}function a4(e,i){var o,u,d,_,w,a,E,j,Q,q,W=0,le=e.type==="FeatureCollection",fe=e.type==="Feature",we=le?e.features.length:1;for(o=0;o<we;o++){for(a=le?e.features[o].geometry:fe?e.geometry:e,j=le?e.features[o].properties:fe?e.properties:{},Q=le?e.features[o].bbox:fe?e.bbox:void 0,q=le?e.features[o].id:fe?e.id:void 0,E=a?a.type==="GeometryCollection":!1,w=E?a.geometries.length:1,d=0;d<w;d++){if(_=E?a.geometries[d]:a,_===null){if(i(null,W,j,Q,q)===!1)return!1;continue}switch(_.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(_,W,j,Q,q)===!1)return!1;break}case"GeometryCollection":{for(u=0;u<_.geometries.length;u++)if(i(_.geometries[u],W,j,Q,q)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}W++}}function OG(e,i,o){var u=o;return a4(e,function(d,_,w,a,E){_===0&&o===void 0?u=d:u=i(u,d,_,w,a,E)}),u}function vc(e,i){a4(e,function(o,u,d,_,w){var a=o===null?null:o.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return i(Ea(o,d,{bbox:_,id:w}),u,0)===!1?!1:void 0}var E;switch(a){case"MultiPoint":E="Point";break;case"MultiLineString":E="LineString";break;case"MultiPolygon":E="Polygon";break}for(var j=0;j<o.coordinates.length;j++){var Q=o.coordinates[j],q={type:E,coordinates:Q};if(i(Ea(q,d),u,j)===!1)return!1}})}function kG(e,i,o){var u=o;return vc(e,function(d,_,w){_===0&&w===0&&o===void 0?u=d:u=i(u,d,_,w)}),u}function ON(e,i){vc(e,function(o,u,d){var _=0;if(o.geometry){var w=o.geometry.type;if(!(w==="Point"||w==="MultiPoint")){var a,E=0,j=0,Q=0;if(Cf(o,function(q,W,le,fe,we){if(a===void 0||u>E||fe>j||we>Q){a=q,E=u,j=fe,Q=we,_=0;return}var $e=tl([a,q],o.properties);if(i($e,u,d,we,_)===!1)return!1;_++,a=q})===!1)return!1}}})}function jG(e,i,o){var u=o,d=!1;return ON(e,function(_,w,a,E,j){d===!1&&o===void 0?u=_:u=i(u,_,w,a,E,j),d=!0}),u}function kN(e,i){if(!e)throw new Error("geojson is required");vc(e,function(o,u,d){if(o.geometry!==null){var _=o.geometry.type,w=o.geometry.coordinates;switch(_){case"LineString":if(i(o,u,d,0,0)===!1)return!1;break;case"Polygon":for(var a=0;a<w.length;a++)if(i(tl(w[a],o.properties),u,d,a)===!1)return!1;break}}})}function PG(e,i,o){var u=o;return kN(e,function(d,_,w,a){_===0&&o===void 0?u=d:u=i(u,d,_,w,a)}),u}function RG(e,i){if(i=i||{},!s4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.segmentIndex||0,w=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),w=w||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":w=w||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":case"MultiPoint":return null;case"LineString":return _<0&&(_=E.length+_-1),tl([E[_],E[_+1]],w,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_-1),tl([E[d][_],E[d][_+1]],w,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_-1),tl([E[u][_],E[u][_+1]],w,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_-1),tl([E[u][d][_],E[u][d][_+1]],w,i)}throw new Error("geojson is invalid")}function BG(e,i){if(i=i||{},!s4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.coordIndex||0,w=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),w=w||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":w=w||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":return el(E,w,i);case"MultiPoint":return u<0&&(u=E.length+u),el(E[u],w,i);case"LineString":return _<0&&(_=E.length+_),el(E[_],w,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_),el(E[d][_],w,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_),el(E[u][_],w,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_),el(E[u][d][_],w,i)}throw new Error("geojson is invalid")}const FG=Object.freeze(Object.defineProperty({__proto__:null,coordAll:zG,coordEach:Cf,coordReduce:EG,featureEach:lv,featureReduce:LG,findPoint:BG,findSegment:RG,flattenEach:vc,flattenReduce:kG,geomEach:a4,geomReduce:OG,lineEach:kN,lineReduce:PG,propEach:zN,propReduce:NG,segmentEach:ON,segmentReduce:jG},Symbol.toStringTag,{value:"Module"}));function cv(e){var i=[1/0,1/0,-1/0,-1/0];return Cf(e,function(o){i[0]>o[0]&&(i[0]=o[0]),i[1]>o[1]&&(i[1]=o[1]),i[2]<o[0]&&(i[2]=o[0]),i[3]<o[1]&&(i[3]=o[1])}),i}cv.default=cv;const UG=Object.freeze(Object.defineProperty({__proto__:null,default:cv},Symbol.toStringTag,{value:"Module"}));function VG(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function jm(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function uv(e){return e.type==="Feature"?e.geometry:e}function Pm(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("point is required");if(!i)throw new Error("polygon is required");var u=VG(e),d=uv(i),_=d.type,w=i.bbox,a=d.coordinates;if(w&&QG(u,w)===!1)return!1;_==="Polygon"&&(a=[a]);for(var E=!1,j=0;j<a.length&&!E;j++)if(jN(u,a[j][0],o.ignoreBoundary)){for(var Q=!1,q=1;q<a[j].length&&!Q;)jN(u,a[j][q],!o.ignoreBoundary)&&(Q=!0),q++;Q||(E=!0)}return E}function jN(e,i,o){var u=!1;i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]&&(i=i.slice(0,i.length-1));for(var d=0,_=i.length-1;d<i.length;_=d++){var w=i[d][0],a=i[d][1],E=i[_][0],j=i[_][1],Q=e[1]*(w-E)+a*(E-e[0])+j*(e[0]-w)===0&&(w-e[0])*(E-e[0])<=0&&(a-e[1])*(j-e[1])<=0;if(Q)return!o;var q=a>e[1]!=j>e[1]&&e[0]<(E-w)*(e[1]-a)/(j-a)+w;q&&(u=!u)}return u}function QG(e,i){return i[0]<=e[0]&&i[1]<=e[1]&&i[2]>=e[0]&&i[3]>=e[1]}function HG(e,i){i===void 0&&(i={});var o=cv(e),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return el([u,d],i.properties,i)}function PN(e){if(!e)throw new Error("geojson is required");var i=[];return vc(e,function(o){$G(o,i)}),Iu(i)}function $G(e,i){var o=[],u=e.geometry;if(u!==null){switch(u.type){case"Polygon":o=jm(u);break;case"LineString":o=[jm(u)]}o.forEach(function(d){var _=YG(d,e.properties);_.forEach(function(w){w.id=i.length,i.push(w)})})}}function YG(e,i){var o=[];return e.reduce(function(u,d){var _=tl([u,d],i);return _.bbox=GG(u,d),o.push(_),d}),o}function GG(e,i){var o=e[0],u=e[1],d=i[0],_=i[1],w=o<d?o:d,a=u<_?u:_,E=o>d?o:d,j=u>_?u:_;return[w,a,E,j]}var l4={exports:{}},RN={exports:{}};(function(e,i){(function(o,u){e.exports=u()})(jd,function(){function o(ie,te,oe,be,_e){(function Je(nt,Ye,xt,dt,Pt){for(;dt>xt;){if(dt-xt>600){var Tt=dt-xt+1,ci=Ye-xt+1,Ot=Math.log(Tt),wt=.5*Math.exp(2*Ot/3),$t=.5*Math.sqrt(Ot*wt*(Tt-wt)/Tt)*(ci-Tt/2<0?-1:1),St=Math.max(xt,Math.floor(Ye-ci*wt/Tt+$t)),Ht=Math.min(dt,Math.floor(Ye+(Tt-ci)*wt/Tt+$t));Je(nt,Ye,St,Ht,Pt)}var Z=nt[Ye],ne=xt,T=dt;for(u(nt,xt,Ye),Pt(nt[dt],Z)>0&&u(nt,xt,dt);ne<T;){for(u(nt,ne,T),ne++,T--;Pt(nt[ne],Z)<0;)ne++;for(;Pt(nt[T],Z)>0;)T--}Pt(nt[xt],Z)===0?u(nt,xt,T):u(nt,++T,dt),T<=Ye&&(xt=T+1),Ye<=T&&(dt=T-1)}})(ie,te,oe||0,be||ie.length-1,_e||d)}function u(ie,te,oe){var be=ie[te];ie[te]=ie[oe],ie[oe]=be}function d(ie,te){return ie<te?-1:ie>te?1:0}var _=function(ie){ie===void 0&&(ie=9),this._maxEntries=Math.max(4,ie),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function w(ie,te,oe){if(!oe)return te.indexOf(ie);for(var be=0;be<te.length;be++)if(oe(ie,te[be]))return be;return-1}function a(ie,te){E(ie,0,ie.children.length,te,ie)}function E(ie,te,oe,be,_e){_e||(_e=$e(null)),_e.minX=1/0,_e.minY=1/0,_e.maxX=-1/0,_e.maxY=-1/0;for(var Je=te;Je<oe;Je++){var nt=ie.children[Je];j(_e,ie.leaf?be(nt):nt)}return _e}function j(ie,te){return ie.minX=Math.min(ie.minX,te.minX),ie.minY=Math.min(ie.minY,te.minY),ie.maxX=Math.max(ie.maxX,te.maxX),ie.maxY=Math.max(ie.maxY,te.maxY),ie}function Q(ie,te){return ie.minX-te.minX}function q(ie,te){return ie.minY-te.minY}function W(ie){return(ie.maxX-ie.minX)*(ie.maxY-ie.minY)}function le(ie){return ie.maxX-ie.minX+(ie.maxY-ie.minY)}function fe(ie,te){return ie.minX<=te.minX&&ie.minY<=te.minY&&te.maxX<=ie.maxX&&te.maxY<=ie.maxY}function we(ie,te){return te.minX<=ie.maxX&&te.minY<=ie.maxY&&te.maxX>=ie.minX&&te.maxY>=ie.minY}function $e(ie){return{children:ie,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function me(ie,te,oe,be,_e){for(var Je=[te,oe];Je.length;)if(!((oe=Je.pop())-(te=Je.pop())<=be)){var nt=te+Math.ceil((oe-te)/be/2)*be;o(ie,nt,te,oe,_e),Je.push(te,nt,nt,oe)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(ie){var te=this.data,oe=[];if(!we(ie,te))return oe;for(var be=this.toBBox,_e=[];te;){for(var Je=0;Je<te.children.length;Je++){var nt=te.children[Je],Ye=te.leaf?be(nt):nt;we(ie,Ye)&&(te.leaf?oe.push(nt):fe(ie,Ye)?this._all(nt,oe):_e.push(nt))}te=_e.pop()}return oe},_.prototype.collides=function(ie){var te=this.data;if(!we(ie,te))return!1;for(var oe=[];te;){for(var be=0;be<te.children.length;be++){var _e=te.children[be],Je=te.leaf?this.toBBox(_e):_e;if(we(ie,Je)){if(te.leaf||fe(ie,Je))return!0;oe.push(_e)}}te=oe.pop()}return!1},_.prototype.load=function(ie){if(!ie||!ie.length)return this;if(ie.length<this._minEntries){for(var te=0;te<ie.length;te++)this.insert(ie[te]);return this}var oe=this._build(ie.slice(),0,ie.length-1,0);if(this.data.children.length)if(this.data.height===oe.height)this._splitRoot(this.data,oe);else{if(this.data.height<oe.height){var be=this.data;this.data=oe,oe=be}this._insert(oe,this.data.height-oe.height-1,!0)}else this.data=oe;return this},_.prototype.insert=function(ie){return ie&&this._insert(ie,this.data.height-1),this},_.prototype.clear=function(){return this.data=$e([]),this},_.prototype.remove=function(ie,te){if(!ie)return this;for(var oe,be,_e,Je=this.data,nt=this.toBBox(ie),Ye=[],xt=[];Je||Ye.length;){if(Je||(Je=Ye.pop(),be=Ye[Ye.length-1],oe=xt.pop(),_e=!0),Je.leaf){var dt=w(ie,Je.children,te);if(dt!==-1)return Je.children.splice(dt,1),Ye.push(Je),this._condense(Ye),this}_e||Je.leaf||!fe(Je,nt)?be?(oe++,Je=be.children[oe],_e=!1):Je=null:(Ye.push(Je),xt.push(oe),oe=0,be=Je,Je=Je.children[0])}return this},_.prototype.toBBox=function(ie){return ie},_.prototype.compareMinX=function(ie,te){return ie.minX-te.minX},_.prototype.compareMinY=function(ie,te){return ie.minY-te.minY},_.prototype.toJSON=function(){return this.data},_.prototype.fromJSON=function(ie){return this.data=ie,this},_.prototype._all=function(ie,te){for(var oe=[];ie;)ie.leaf?te.push.apply(te,ie.children):oe.push.apply(oe,ie.children),ie=oe.pop();return te},_.prototype._build=function(ie,te,oe,be){var _e,Je=oe-te+1,nt=this._maxEntries;if(Je<=nt)return a(_e=$e(ie.slice(te,oe+1)),this.toBBox),_e;be||(be=Math.ceil(Math.log(Je)/Math.log(nt)),nt=Math.ceil(Je/Math.pow(nt,be-1))),(_e=$e([])).leaf=!1,_e.height=be;var Ye=Math.ceil(Je/nt),xt=Ye*Math.ceil(Math.sqrt(nt));me(ie,te,oe,xt,this.compareMinX);for(var dt=te;dt<=oe;dt+=xt){var Pt=Math.min(dt+xt-1,oe);me(ie,dt,Pt,Ye,this.compareMinY);for(var Tt=dt;Tt<=Pt;Tt+=Ye){var ci=Math.min(Tt+Ye-1,Pt);_e.children.push(this._build(ie,Tt,ci,be-1))}}return a(_e,this.toBBox),_e},_.prototype._chooseSubtree=function(ie,te,oe,be){for(;be.push(te),!te.leaf&&be.length-1!==oe;){for(var _e=1/0,Je=1/0,nt=void 0,Ye=0;Ye<te.children.length;Ye++){var xt=te.children[Ye],dt=W(xt),Pt=(Tt=ie,ci=xt,(Math.max(ci.maxX,Tt.maxX)-Math.min(ci.minX,Tt.minX))*(Math.max(ci.maxY,Tt.maxY)-Math.min(ci.minY,Tt.minY))-dt);Pt<Je?(Je=Pt,_e=dt<_e?dt:_e,nt=xt):Pt===Je&&dt<_e&&(_e=dt,nt=xt)}te=nt||te.children[0]}var Tt,ci;return te},_.prototype._insert=function(ie,te,oe){var be=oe?ie:this.toBBox(ie),_e=[],Je=this._chooseSubtree(be,this.data,te,_e);for(Je.children.push(ie),j(Je,be);te>=0&&_e[te].children.length>this._maxEntries;)this._split(_e,te),te--;this._adjustParentBBoxes(be,_e,te)},_.prototype._split=function(ie,te){var oe=ie[te],be=oe.children.length,_e=this._minEntries;this._chooseSplitAxis(oe,_e,be);var Je=this._chooseSplitIndex(oe,_e,be),nt=$e(oe.children.splice(Je,oe.children.length-Je));nt.height=oe.height,nt.leaf=oe.leaf,a(oe,this.toBBox),a(nt,this.toBBox),te?ie[te-1].children.push(nt):this._splitRoot(oe,nt)},_.prototype._splitRoot=function(ie,te){this.data=$e([ie,te]),this.data.height=ie.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(ie,te,oe){for(var be,_e,Je,nt,Ye,xt,dt,Pt=1/0,Tt=1/0,ci=te;ci<=oe-te;ci++){var Ot=E(ie,0,ci,this.toBBox),wt=E(ie,ci,oe,this.toBBox),$t=(_e=Ot,Je=wt,nt=void 0,Ye=void 0,xt=void 0,dt=void 0,nt=Math.max(_e.minX,Je.minX),Ye=Math.max(_e.minY,Je.minY),xt=Math.min(_e.maxX,Je.maxX),dt=Math.min(_e.maxY,Je.maxY),Math.max(0,xt-nt)*Math.max(0,dt-Ye)),St=W(Ot)+W(wt);$t<Pt?(Pt=$t,be=ci,Tt=St<Tt?St:Tt):$t===Pt&&St<Tt&&(Tt=St,be=ci)}return be||oe-te},_.prototype._chooseSplitAxis=function(ie,te,oe){var be=ie.leaf?this.compareMinX:Q,_e=ie.leaf?this.compareMinY:q;this._allDistMargin(ie,te,oe,be)<this._allDistMargin(ie,te,oe,_e)&&ie.children.sort(be)},_.prototype._allDistMargin=function(ie,te,oe,be){ie.children.sort(be);for(var _e=this.toBBox,Je=E(ie,0,te,_e),nt=E(ie,oe-te,oe,_e),Ye=le(Je)+le(nt),xt=te;xt<oe-te;xt++){var dt=ie.children[xt];j(Je,ie.leaf?_e(dt):dt),Ye+=le(Je)}for(var Pt=oe-te-1;Pt>=te;Pt--){var Tt=ie.children[Pt];j(nt,ie.leaf?_e(Tt):Tt),Ye+=le(nt)}return Ye},_.prototype._adjustParentBBoxes=function(ie,te,oe){for(var be=oe;be>=0;be--)j(te[be],ie)},_.prototype._condense=function(ie){for(var te=ie.length-1,oe=void 0;te>=0;te--)ie[te].children.length===0?te>0?(oe=ie[te-1].children).splice(oe.indexOf(ie[te]),1):this.clear():a(ie[te],this.toBBox)},_})})(RN);var ZG=RN.exports;const WG=Vw(CG),qG=Vw(FG),KG=Vw(UG);var Tl=ZG,BN=WG,FN=qG,Ef=KG.default,XG=FN.featureEach;FN.coordEach,BN.polygon;var UN=BN.featureCollection;function VN(e){var i=new Tl(e);return i.insert=function(o){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Ef(o),Tl.prototype.insert.call(this,o)},i.load=function(o){var u=[];return Array.isArray(o)?o.forEach(function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Ef(d),u.push(d)}):XG(o,function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Ef(d),u.push(d)}),Tl.prototype.load.call(this,u)},i.remove=function(o,u){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Ef(o),Tl.prototype.remove.call(this,o,u)},i.clear=function(){return Tl.prototype.clear.call(this)},i.search=function(o){var u=Tl.prototype.search.call(this,this.toBBox(o));return UN(u)},i.collides=function(o){return Tl.prototype.collides.call(this,this.toBBox(o))},i.all=function(){var o=Tl.prototype.all.call(this);return UN(o)},i.toJSON=function(){return Tl.prototype.toJSON.call(this)},i.fromJSON=function(o){return Tl.prototype.fromJSON.call(this,o)},i.toBBox=function(o){var u;if(o.bbox)u=o.bbox;else if(Array.isArray(o)&&o.length===4)u=o;else if(Array.isArray(o)&&o.length===6)u=[o[0],o[1],o[3],o[4]];else if(o.type==="Feature")u=Ef(o);else if(o.type==="FeatureCollection")u=Ef(o);else throw new Error("invalid geojson");return{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3]}},i}l4.exports=VN,l4.exports.default=VN;var JG=l4.exports;const eZ=oc(JG);function c4(e,i){var o={},u=[];if(e.type==="LineString"&&(e=Ea(e)),i.type==="LineString"&&(i=Ea(i)),e.type==="Feature"&&i.type==="Feature"&&e.geometry!==null&&i.geometry!==null&&e.geometry.type==="LineString"&&i.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&i.geometry.coordinates.length===2){var d=QN(e,i);return d&&u.push(d),Iu(u)}var _=eZ();return _.load(PN(i)),lv(PN(e),function(w){lv(_.search(w),function(a){var E=QN(w,a);if(E){var j=jm(E).join(",");o[j]||(o[j]=!0,u.push(E))}})}),Iu(u)}function QN(e,i){var o=jm(e),u=jm(i);if(o.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(u.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var d=o[0][0],_=o[0][1],w=o[1][0],a=o[1][1],E=u[0][0],j=u[0][1],Q=u[1][0],q=u[1][1],W=(q-j)*(w-d)-(Q-E)*(a-_),le=(Q-E)*(_-j)-(q-j)*(d-E),fe=(w-d)*(_-j)-(a-_)*(d-E);if(W===0)return null;var we=le/W,$e=fe/W;if(we>=0&&we<=1&&$e>=0&&$e<=1){var me=d+we*(w-d),ie=_+we*(a-_);return el([me,ie])}return null}function u4(e,i){i===void 0&&(i={});var o=uv(e);switch(!i.properties&&e.type==="Feature"&&(i.properties=e.properties),o.type){case"Polygon":return tZ(o,i);case"MultiPolygon":return iZ(o,i);default:throw new Error("invalid poly")}}function tZ(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{};return HN(u,d)}function iZ(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{},_=[];return u.forEach(function(w){_.push(HN(w,d))}),Iu(_)}function HN(e,i){return e.length>1?r4(e,i):tl(e[0],i)}function nZ(e,i){var o=!0;return vc(e,function(u){vc(i,function(d){if(o===!1)return!1;o=rZ(u.geometry,d.geometry)})}),o}function rZ(e,i){switch(e.type){case"Point":switch(i.type){case"Point":return!lZ(e.coordinates,i.coordinates);case"LineString":return!$N(i,e);case"Polygon":return!Pm(e,i)}break;case"LineString":switch(i.type){case"Point":return!$N(e,i);case"LineString":return!oZ(e,i);case"Polygon":return!YN(i,e)}break;case"Polygon":switch(i.type){case"Point":return!Pm(i,e);case"LineString":return!YN(e,i);case"Polygon":return!sZ(i,e)}}return!1}function $N(e,i){for(var o=0;o<e.coordinates.length-1;o++)if(aZ(e.coordinates[o],e.coordinates[o+1],i.coordinates))return!0;return!1}function oZ(e,i){var o=c4(e,i);return o.features.length>0}function YN(e,i){for(var o=0,u=i.coordinates;o<u.length;o++){var d=u[o];if(Pm(d,e))return!0}var _=c4(i,u4(e));return _.features.length>0}function sZ(e,i){for(var o=0,u=e.coordinates[0];o<u.length;o++){var d=u[o];if(Pm(d,i))return!0}for(var _=0,w=i.coordinates[0];_<w.length;_++){var a=w[_];if(Pm(a,e))return!0}var E=c4(u4(e),u4(i));return E.features.length>0}function aZ(e,i,o){var u=o[0]-e[0],d=o[1]-e[1],_=i[0]-e[0],w=i[1]-e[1],a=u*w-d*_;return a!==0?!1:Math.abs(_)>=Math.abs(w)?_>0?e[0]<=o[0]&&o[0]<=i[0]:i[0]<=o[0]&&o[0]<=e[0]:w>0?e[1]<=o[1]&&o[1]<=i[1]:i[1]<=o[1]&&o[1]<=e[1]}function lZ(e,i){return e[0]===i[0]&&e[1]===i[1]}function cZ(e,i){var o=!1;return vc(e,function(u){vc(i,function(d){if(o===!0)return!0;o=!nZ(u.geometry,d.geometry)})}),o}const uZ=()=>{const[e,i]=xe.useState(!1),[o,u]=xe.useState(!1),d=Ja(),_=DN(),w=Ci(K3),a=Ci(Om),E=Ci(X3),j=Ci(ov),Q=Ci(ca),q=Ci(nv),W=Ci(IN),le=Ci(km),fe=Ci(pG),we=Ci(J3),[$e,me]=xe.useState(!1),[ie,te]=sn(Mu),oe=sn(sv),[be]=sn(AN),[_e,Je]=xe.useState({id:null,originalRule:null});xe.useEffect(()=>{_&&nt()},[_]),xe.useEffect(()=>{nt()},[Q,ie,j,E,q,w,W,a,be]);function nt(){const Pt=le.find(Tt=>Tt.name.toLowerCase()===ie.toLowerCase());if(!E&&_e.id&&Q&&$e&&(window.mapsindoors.services.LocationsService.getLocation(_e.id).then(Tt=>{Tt&&(Q.setDisplayRule(Tt.id,_e.originalRule||null),me(!1))}),Je({id:null,originalRule:null})),Q&&Pt){if(i(!0),E&&d)Je(Tt=>({...Tt,id:E})),window.mapsindoors.services.LocationsService.getLocation(E).then(Tt=>{if(Tt){const ci=Tt.properties.floor;Q.setFloor(ci);const Ot=Q.getDisplayRule(Tt);Je(wt=>({...wt,originalRule:{...Ot}})),Ye(Tt),rv().then(wt=>{u(Tt.geometry),Na(Tt.geometry,Q,wt,0,W?dt(W):void 0,fe,w)})}});else if(j&&!we)jr(be)?window.mapsindoors.services.LocationsService.getLocation(j).then(Tt=>{if(Tt){const ci=Tt.properties.floor;Q.setFloor(ci),d?Ph().then(Ot=>{u(Tt.geometry),Na(Tt.geometry,Q,0,Ot,W?dt(W):void 0,fe,w)}):Af().then(Ot=>{u(Tt.geometry),Na(Tt.geometry,Q,Ot,0,W?dt(W):void 0,fe,w)})}}):d?Ph().then(Tt=>{u(xt().geometry),Na(xt().geometry,Q,0,Tt,dt(W),fe,w)}):Af().then(Tt=>{u(xt().geometry),Na(xt().geometry,Q,Tt,0,dt(W),fe,w)});else if(Pt)if(we)d?(u(Pt.geometry),Na(Pt.geometry,Q,0,0,dt(W),fe,w)):Af().then(Tt=>{u(Pt.geometry),Na(Pt.geometry,Q,Tt,0,dt(W),fe,w)});else{const Tt=le.find(ci=>cZ(ci.geometry,xt().geometry));jr(be)?(u(Pt.geometry),Na(Pt.geometry,Q,0,0,dt(W),fe,w)):jr(Tt)?d?Ph().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,0,ci,dt(W),fe,w)}):Af().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,ci,0,dt(W),fe,w)}):(d?Ph().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,0,ci,dt(W),fe,w)}):Af().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,ci,0,dt(W),fe,w)}),oe&&te(Tt.name))}}}function Ye(Pt){if($e)return;const Tt=Q.getDisplayRule(Pt);Tt.visible=!0,Tt.iconSize={width:Tt.iconSize.width*2,height:Tt.iconSize.height*2},Tt.iconVisible=!0,Tt.zoomFrom=0,Tt.zoomTo=999,Tt.clickable=!1,Q.setDisplayRule(Pt.id,Tt),me(!0)}function xt(){const[Pt,Tt]=be?be.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[Pt,Tt]}}}function dt(Pt){return jr(Pt)?18:Pt}return[e,o]};function Na(e,i,o,u,d,_,w){const a=Number(_),E=Number(w),j=d!==void 0?Number(d):void 0;if(j===void 0)i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:j??22,padding:{top:0,right:0,bottom:o,left:u}});else{const Q=HG(e);i.getMapView().setCenter({lat:Q.geometry.coordinates[1],lng:Q.geometry.coordinates[0]}),i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.setZoom(j)}}const GN=kn({key:"hideNonMatches",default:!1}),hZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V5H5V9H3V3ZM15 3H21V9H19V5H15V3ZM5 15V19H9V21H3V15H5ZM21 15V21H15V19H19V15H21Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}}),xe.createElement("rect",{x:9,y:9,width:6,height:6,fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Rm=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Gae="";ZN.propTypes={isViewSelectorDisabled:ct.bool,isViewSelectorVisible:ct.bool};function ZN({isViewSelectorDisabled:e,isViewSelectorVisible:i}){const{t:o}=Po(),[u,d]=xe.useState(!1),[_,w]=xe.useState([]),[a,E]=xe.useState(null),j=Ja(),Q=Ci(ca),q=Ci(Mu),W=".view-selector-portal",[le,fe]=xe.useState(null),we=xe.useRef(null),$e=xe.useRef(null),me=6,ie=60;xe.useEffect(()=>{let nt=document.querySelector(W);if(nt){fe(nt);return}const Ye=new MutationObserver(()=>{nt=document.querySelector(W),nt&&(fe(nt),Ye.disconnect())}),xt=document.body,dt={childList:!0,subtree:!0};return Ye.observe(xt,dt),()=>{Ye==null||Ye.disconnect()}},[]),xe.useEffect(()=>{const nt=()=>{const xt=document.querySelector(W);xt&&fe(xt)},Ye=new ResizeObserver(()=>{nt()});return Ye.observe(document.body),()=>{Ye==null||Ye.disconnect()}},[j]),xe.useEffect(()=>{var nt;if(Q&&q){const Ye=(nt=Q.getVenue())==null?void 0:nt.id;Ye&&E(Ye)}},[Q,q]),xe.useEffect(()=>{Q&&q&&window.mapsindoors.services.VenuesService.getVenues().then(nt=>{const Ye=nt.find(xt=>xt.name.toLowerCase()===q.toLowerCase());Ye!=null&&Ye.id&&E(Ye.id)})},[Q,q]),xe.useEffect(()=>{a&&window.mapsindoors.services.VenuesService.getBuildings(a).then(nt=>{w(nt)})},[a]);const te=xe.useMemo(()=>_.map(nt=>({id:nt.id,name:nt.buildingInfo.name})),[_]),oe=xe.useCallback(nt=>{Q.fitBuilding(nt),d(!1)},[Q]);if(xe.useEffect(()=>{if(!(u&&j))return;function nt(Ye){we.current&&!we.current.contains(Ye.target)&&$e.current&&!$e.current.contains(Ye.target)&&d(!1)}return document.addEventListener("mousedown",nt),()=>{document.removeEventListener("mousedown",nt)}},[u,j]),te.length<=1||i===!1)return null;const be=()=>Oe.jsx("button",{ref:$e,className:"view-selector__toggle-button",onClick:()=>d(!u),disabled:e,children:Oe.jsx(hZ,{})}),_e=()=>{const nt=xe.useMemo(()=>j&&te.length>me?{height:`${me*ie}px`}:{},[j,te.length]);return Oe.jsx("div",{className:"building-list",style:nt,children:te.map(Ye=>Oe.jsx("button",{className:"building-list__item",onClick:()=>oe(Ye.id),children:Oe.jsx("span",{children:Ye.name})},Ye.id))})},Je=Oe.jsxs("div",{className:"view-selector",children:[!j&&u&&Oe.jsxs("div",{className:"mobile-overlay",children:[Oe.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>d(!1)}),Oe.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Oe.jsxs("div",{className:"mobile-overlay__header",children:[Oe.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>d(!1),"aria-label":o("Close view selector"),children:Oe.jsx(Rm,{})}),Oe.jsx("span",{children:o("Go to view")})]}),Oe.jsx(_e,{})]})]}),j?Oe.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[u&&Oe.jsx("div",{ref:we,className:"view-selector__container view-selector__container--desktop",children:Oe.jsx(_e,{})}),Oe.jsx(be,{})]}):Oe.jsx(be,{})]});return le?_u.createPortal(Je,le):null}const dZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00177 3V5H13.0018V7H11.3742C11.0618 8.91166 10.4455 10.5244 9.43896 11.8188C10.1899 12.3437 11.1128 12.7471 12.2443 13.0299L13.2145 13.2725L12.7294 15.2128L11.7593 14.9702C10.2984 14.605 9.04252 14.0424 8.00171 13.245C6.96091 14.0424 5.70503 14.6049 4.24428 14.9701L3.27413 15.2127L2.78906 13.2724L3.75921 13.0299C4.89067 12.747 5.81358 12.3436 6.56448 11.8188C5.55798 10.5244 4.94173 8.91163 4.62931 7H3.00177V5H7.00177V3H9.00177ZM6.65973 7C6.92571 8.41424 7.37545 9.52718 8.00174 10.4013C8.62805 9.52718 9.0778 8.41425 9.34379 7H6.65973ZM16.1161 10H17.8874L22.3317 19.481L20.5207 20.3299L19.4286 18H14.5749L13.4828 20.3299L11.6719 19.481L16.1161 10ZM15.5124 16H18.4911L17.0018 12.8227L15.5124 16Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Zae="";function WN({toggleButtonRef:e,isExpanded:i,setIsExpanded:o}){return Oe.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>o(u=>!u),"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Select language",children:Oe.jsx(dZ,{})})}function qN({supportedLanguages:e,currentLanguage:i,setLanguage:o,setIsExpanded:u}){return Oe.jsx("div",{className:"language-selector__list",children:e.map(d=>Oe.jsx("button",{className:`language-selector__item${i===d.code?" language-selector__item--selected":""}`,onClick:()=>{o(d.code),u(!1)},children:d.label},d.code))})}function KN({currentLanguage:e,setLanguage:i,isVisible:o}){const{t:u}=Po(),[d,_]=xe.useState(!1),w=xe.useRef(null),a=xe.useRef(null),[E,j]=xe.useState(null),Q=Ja(),q=".language-selector-portal";return xe.useEffect(()=>{let W=document.querySelector(q);if(W){j(W);return}const le=new MutationObserver(()=>{W=document.querySelector(q),W&&(j(W),le.disconnect())});return le.observe(document.body,{childList:!0,subtree:!0}),()=>le.disconnect()},[]),xe.useEffect(()=>{if(!(d&&Q))return;function W(le){w.current&&!w.current.contains(le.target)&&a.current&&!a.current.contains(le.target)&&_(!1)}return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[d,Q]),!o||!E?null:_u.createPortal(Q?Oe.jsxs("div",{className:"language-selector__button-container",children:[d&&Oe.jsx("div",{ref:w,className:"language-selector__container",children:Oe.jsx(qN,{supportedLanguages:pN,currentLanguage:e,setLanguage:i,setIsExpanded:_})}),Oe.jsx(WN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_})]}):Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(WN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_}),d&&Oe.jsxs("div",{className:"language-selector-overlay",children:[Oe.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>_(!1)}),Oe.jsxs("div",{className:"language-selector__container",children:[Oe.jsxs("div",{className:"language-selector-overlay__header",children:[Oe.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>_(!1),"aria-label":"Close language selector",children:"×"}),Oe.jsx("span",{children:u("Select language")})]}),Oe.jsx(qN,{supportedLanguages:pN,currentLanguage:e,setLanguage:i,setIsExpanded:_})]})]})]}),E)}KN.propTypes={currentLanguage:ct.string,setLanguage:ct.func.isRequired,isVisible:ct.bool};const Rh=kn({key:"appConfig",default:void 0}),fZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M14.4978 10C14.4978 11.3807 13.3785 12.5 11.9978 12.5C10.6171 12.5 9.4978 11.3807 9.4978 10C9.4978 8.61929 10.6171 7.5 11.9978 7.5C13.3785 7.5 14.4978 8.61929 14.4978 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"}),xe.createElement("path",{d:"M19 10C19 14.8354 14.2437 19.1734 12.5723 20.5484C12.2352 20.8258 11.7648 20.8258 11.4277 20.5484C9.75634 19.1734 5 14.8354 5 10C5 6.13401 8.13401 3 12 3C15.866 3 19 6.13401 19 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"})),Wae="",Dl=kn({key:"kioskLocation",default:null}),Tu=()=>{const e=Ci(Dl),i=Ja();return!(!e||e&&!i)};function XN(){const[e,i]=xe.useState(null),o=".reset-view-portal",u=Tu(),d=Ci(X3),_=Ci(ca),w=Ci(Mu),a=Ci(Dl),E=Ja();function j(){window.mapsindoors.services.LocationsService.getLocation(d).then(le=>{le&&Q([le])}).catch(le=>{console.error("Error resetting map position:",le)})}function Q(le){if(!_.goTo)return;const fe=le.find(me=>me.id===d);if(fe){const me=fe.properties.floor;_.setFloor(me)}const we=_.getFloor(),$e={type:"FeatureCollection",features:le.filter(me=>parseInt(me.properties.floor,10)===parseInt(we,10)).filter(me=>w&&me.properties.venueId.toLowerCase()===w.toLowerCase()).map(me=>({type:"Feature",geometry:me.geometry,properties:me.properties}))};$e.features.length>0&&Promise.all([q(),W()]).then(([me,ie])=>{_.goTo($e,{maxZoom:22,padding:{bottom:me,left:ie,top:0,right:0}})})}function q(){return new Promise(le=>{E?a?rv().then(fe=>le(fe)):le(0):le(200)})}function W(){return new Promise(le=>{E?a?le(0):Ph().then(fe=>le(fe)):le(0)})}return xe.useEffect(()=>{let le=document.querySelector(o);if(le){i(le);return}const fe=new MutationObserver(()=>{le=document.querySelector(o),le&&(i(le),fe.disconnect())});return fe.observe(document.body,{childList:!0,subtree:!0}),()=>fe.disconnect()},[]),!u||!e?null:_u.createPortal(Oe.jsx("button",{className:"reset-kiosk-view-button",onClick:j,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Oe.jsx(fZ,{})}),e)}XN.propTypes={onReset:ct.func,isVisible:ct.bool},JN.propTypes={onLocationClick:ct.func,onMapPositionKnown:ct.func.isRequired,useMapProviderModule:ct.bool.isRequired,onMapPositionInvestigating:ct.func.isRequired,onViewModeSwitchKnown:ct.func.isRequired,resetCount:ct.number.isRequired,mapOptions:ct.object,gmMapId:ct.string,isWayfindingOrDirections:ct.bool,currentLanguage:ct.string,setLanguage:ct.func,devicePosition:ct.object};let h4;function JN({onLocationClick:e,onMapPositionKnown:i,useMapProviderModule:o,onMapPositionInvestigating:u,onViewModeSwitchKnown:d,resetCount:_,mapOptions:w,gmMapId:a,isWayfindingOrDirections:E,currentLanguage:j,setLanguage:Q,devicePosition:q}){const W=Ci(W3),le=Ci(q3),fe=Ci(ev),[we,$e]=sn(J_),[me,ie]=sn(ca),[,te]=sn(X_),[,oe]=sn(Z3),be=Ci(tv),_e=Ci(iv),Je=Ci(wN),nt=Ci(K3),Ye=Ci(nv),[,xt]=sn(bN),dt=Ci(MN),[,Pt]=sn(zm),Tt=Ci(GN),ci=Ci(Rh),[Ot,wt]=xe.useState(!1),[$t,St]=xe.useState(!1),Ht=Tu();dG(W);const[Z,ne]=uZ();xe.useEffect(()=>{if(!dt||le===null&&fe===null)return;let U;const G=dt.modules.map(re=>re.toLowerCase()).includes("mapbox");o?G?fe&&(U=us.Mapbox):le&&(U=us.Google):fe?U=us.Mapbox:U=us.Google,U?$e(U):(Pt({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),$e(void 0))},[le,fe,dt]),xe.useEffect(()=>{Z&&u()},[Z]),xe.useEffect(()=>{ne&&i()},[ne]),xe.useEffect(()=>{if(!me)return;const U=be||_e;if(!U)return;const G=U.map(re=>re.id);Tt||!me.highlight?me.filter(G):me.highlight(G)},[be,_e,me,Tt]),xe.useEffect(()=>{me&&(isNaN(parseInt(Ye))||me.getMapView().tilt(parseInt(Ye)),isNaN(parseInt(nt))||me.getMapView().rotate(parseInt(nt)))},[nt,Ye,me]);const T=U=>{k(U)},k=U=>{if(U&&h4){let G=U.getTileURL();if(G){G=U.getTileURL().replace("default",h4);const re=G==null?void 0:G.replace("{floor}",U.getFloor());U.getMapView().setMapsIndoorsTileURL(re)}}},F=(U,G,re)=>{U.on("mouseenter",()=>{var et;const Fe=U.getHoveredLocation();((et=Fe==null?void 0:Fe.properties.locationSettings)==null?void 0:et.selectable)===!1&&U.unhoverLocation()}),U.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),U.on("click",Fe=>e(Fe)),U.once("building_changed",()=>T(U)),U.on("floor_changed",()=>k(U)),ie(U),window.mapsIndoorsInstance=U;const de=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(de);let ue;we===us.Google?ue=new window.mapsindoors.directions.GoogleMapsProvider:we===us.Mapbox&&(ue=new window.mapsindoors.directions.MapboxProvider(fe));const Me=new window.mapsindoors.services.DirectionsService(ue);oe(Me),ie(U),G.nodeName==="MI-MY-POSITION"?G.addEventListener("position_received",Fe=>{Fe.detail.accurate===!0&&te(Fe.detail.position)}):G.on("position_received",Fe=>{Fe.accurate===!0&&te(Fe.position)}),xt(G),d(re)};return xe.useEffect(()=>{h4=Je||"default",k(me)},[Je]),xe.useEffect(()=>{var U,G,re,de;ci&&(jr((U=ci==null?void 0:ci.appSettings)==null?void 0:U.viewSelector)?wt(!1):wt(((G=ci==null?void 0:ci.appSettings)==null?void 0:G.viewSelector.trim().toLowerCase())==="true"),jr((re=ci==null?void 0:ci.appSettings)==null?void 0:re.languageSelector)?St(!1):St(((de=ci==null?void 0:ci.appSettings)==null?void 0:de.languageSelector.trim().toLowerCase())==="true"))},[ci]),Oe.jsxs(Oe.Fragment,{children:[W&&Oe.jsx(xN,{apiKey:W,mapboxAccessToken:we===us.Mapbox?fe:void 0,gmApiKey:we===us.Google?le:void 0,onInitialized:F,resetUICounter:_,mapOptions:w,gmMapId:a,devicePosition:q,isKiosk:Ht}),W&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(ZN,{isViewSelectorVisible:Ot,isViewSelectorDisabled:E}),Oe.jsx(KN,{currentLanguage:j,setLanguage:Q,isVisible:$t}),Oe.jsx(XN,{})]})]})}const Sl=kn({key:"primaryColor",default:"#005655"}),qae="",d4=kn({key:"logo",default:void 0});function pZ(){const e=Ci(Sl),i=Ci(d4);return Oe.jsx("div",{className:"splash-screen",children:Oe.jsxs("div",{className:"splash-screen__container",children:[Oe.jsx("img",{className:"splash-screen__logo "+(i?"splash-screen__logo--visible":""),src:i,alt:""}),Oe.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function eL(e,i){if(e==null)return{};var o={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(i.indexOf(u)!==-1)continue;o[u]=e[u]}return o}function f4(e,i){return f4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,u){return o.__proto__=u,o},f4(e,i)}function tL(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,f4(e,i)}function gZ(e,i){return e.classList?!!i&&e.classList.contains(i):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+i+" ")!==-1}function mZ(e,i){e.classList?e.classList.add(i):gZ(e,i)||(typeof e.className=="string"?e.className=e.className+" "+i:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+i))}function iL(e,i){return e.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yZ(e,i){e.classList?e.classList.remove(i):typeof e.className=="string"?e.className=iL(e.className,i):e.setAttribute("class",iL(e.className&&e.className.baseVal||"",i))}const nL={disabled:!1},rL=Cr.createContext(null);var oL=function(i){return i.scrollTop},Bm="unmounted",Bh="exited",Fh="entering",Nf="entered",p4="exiting",xc=function(e){tL(i,e);function i(u,d){var _;_=e.call(this,u,d)||this;var w=d,a=w&&!w.isMounting?u.enter:u.appear,E;return _.appearStatus=null,u.in?a?(E=Bh,_.appearStatus=Fh):E=Nf:u.unmountOnExit||u.mountOnEnter?E=Bm:E=Bh,_.state={status:E},_.nextCallback=null,_}i.getDerivedStateFromProps=function(d,_){var w=d.in;return w&&_.status===Bm?{status:Bh}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(d){var _=null;if(d!==this.props){var w=this.state.status;this.props.in?w!==Fh&&w!==Nf&&(_=Fh):(w===Fh||w===Nf)&&(_=p4)}this.updateStatus(!1,_)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var d=this.props.timeout,_,w,a;return _=w=a=d,d!=null&&typeof d!="number"&&(_=d.exit,w=d.enter,a=d.appear!==void 0?d.appear:w),{exit:_,enter:w,appear:a}},o.updateStatus=function(d,_){if(d===void 0&&(d=!1),_!==null)if(this.cancelNextCallback(),_===Fh){if(this.props.unmountOnExit||this.props.mountOnEnter){var w=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this);w&&oL(w)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bh&&this.setState({status:Bm})},o.performEnter=function(d){var _=this,w=this.props.enter,a=this.context?this.context.isMounting:d,E=this.props.nodeRef?[a]:[fm.findDOMNode(this),a],j=E[0],Q=E[1],q=this.getTimeouts(),W=a?q.appear:q.enter;if(!d&&!w||nL.disabled){this.safeSetState({status:Nf},function(){_.props.onEntered(j)});return}this.props.onEnter(j,Q),this.safeSetState({status:Fh},function(){_.props.onEntering(j,Q),_.onTransitionEnd(W,function(){_.safeSetState({status:Nf},function(){_.props.onEntered(j,Q)})})})},o.performExit=function(){var d=this,_=this.props.exit,w=this.getTimeouts(),a=this.props.nodeRef?void 0:fm.findDOMNode(this);if(!_||nL.disabled){this.safeSetState({status:Bh},function(){d.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:p4},function(){d.props.onExiting(a),d.onTransitionEnd(w.exit,function(){d.safeSetState({status:Bh},function(){d.props.onExited(a)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(d,_){_=this.setNextCallback(_),this.setState(d,_)},o.setNextCallback=function(d){var _=this,w=!0;return this.nextCallback=function(a){w&&(w=!1,_.nextCallback=null,d(a))},this.nextCallback.cancel=function(){w=!1},this.nextCallback},o.onTransitionEnd=function(d,_){this.setNextCallback(_);var w=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this),a=d==null&&!this.props.addEndListener;if(!w||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var E=this.props.nodeRef?[this.nextCallback]:[w,this.nextCallback],j=E[0],Q=E[1];this.props.addEndListener(j,Q)}d!=null&&setTimeout(this.nextCallback,d)},o.render=function(){var d=this.state.status;if(d===Bm)return null;var _=this.props,w=_.children;_.in,_.mountOnEnter,_.unmountOnExit,_.appear,_.enter,_.exit,_.timeout,_.addEndListener,_.onEnter,_.onEntering,_.onEntered,_.onExit,_.onExiting,_.onExited,_.nodeRef;var a=eL(_,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(rL.Provider,{value:null},typeof w=="function"?w(d,a):Cr.cloneElement(Cr.Children.only(w),a))},i}(Cr.Component);xc.contextType=rL,xc.propTypes={};function Lf(){}xc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lf,onEntering:Lf,onEntered:Lf,onExit:Lf,onExiting:Lf,onExited:Lf},xc.UNMOUNTED=Bm,xc.EXITED=Bh,xc.ENTERING=Fh,xc.ENTERED=Nf,xc.EXITING=p4;const _Z=xc;var vZ=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return mZ(i,u)})},g4=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return yZ(i,u)})},m4=function(e){tL(i,e);function i(){for(var u,d=arguments.length,_=new Array(d),w=0;w<d;w++)_[w]=arguments[w];return u=e.call.apply(e,[this].concat(_))||this,u.appliedClasses={appear:{},enter:{},exit:{}},u.onEnter=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],q=j[1];u.removeClasses(Q,"exit"),u.addClass(Q,q?"appear":"enter","base"),u.props.onEnter&&u.props.onEnter(a,E)},u.onEntering=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],q=j[1],W=q?"appear":"enter";u.addClass(Q,W,"active"),u.props.onEntering&&u.props.onEntering(a,E)},u.onEntered=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],q=j[1],W=q?"appear":"enter";u.removeClasses(Q,W),u.addClass(Q,W,"done"),u.props.onEntered&&u.props.onEntered(a,E)},u.onExit=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"appear"),u.removeClasses(j,"enter"),u.addClass(j,"exit","base"),u.props.onExit&&u.props.onExit(a)},u.onExiting=function(a){var E=u.resolveArguments(a),j=E[0];u.addClass(j,"exit","active"),u.props.onExiting&&u.props.onExiting(a)},u.onExited=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"exit"),u.addClass(j,"exit","done"),u.props.onExited&&u.props.onExited(a)},u.resolveArguments=function(a,E){return u.props.nodeRef?[u.props.nodeRef.current,a]:[a,E]},u.getClassNames=function(a){var E=u.props.classNames,j=typeof E=="string",Q=j&&E?E+"-":"",q=j?""+Q+a:E[a],W=j?q+"-active":E[a+"Active"],le=j?q+"-done":E[a+"Done"];return{baseClassName:q,activeClassName:W,doneClassName:le}},u}var o=i.prototype;return o.addClass=function(d,_,w){var a=this.getClassNames(_)[w+"ClassName"],E=this.getClassNames("enter"),j=E.doneClassName;_==="appear"&&w==="done"&&j&&(a+=" "+j),w==="active"&&d&&oL(d),a&&(this.appliedClasses[_][w]=a,vZ(d,a))},o.removeClasses=function(d,_){var w=this.appliedClasses[_],a=w.base,E=w.active,j=w.done;this.appliedClasses[_]={},a&&g4(d,a),E&&g4(d,E),j&&g4(d,j)},o.render=function(){var d=this.props;d.classNames;var _=eL(d,["classNames"]);return Cr.createElement(_Z,Q3({},_,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(Cr.Component);m4.defaultProps={classNames:""},m4.propTypes={};const xZ=m4,Kae="",wZ=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),Xae="";sL.propTypes={venue:ct.object.isRequired,isCurrent:ct.bool,onVenueClicked:ct.func.isRequired};function sL({venue:e,isCurrent:i,onVenueClicked:o}){const{t:u}=Po(),[d,_]=xe.useState({});return xe.useEffect(()=>()=>{_({})},[]),xe.useEffect(()=>{const w={};e.image&&(w.backgroundImage=`url('${e.image}')`),_(w)},[e]),Oe.jsxs("button",{className:"venue",onClick:()=>o(),children:[Oe.jsx("div",{className:"venue__image",style:d}),Oe.jsxs("div",{className:"venue__content",children:[Oe.jsx("div",{children:e.venueInfo.name}),i&&Oe.jsx("div",{className:"venue__current",children:u("Current")})]})]})}const hv=kn({key:"isLocationClicked",default:!1});aL.propTypes={onOpen:ct.func,onClose:ct.func,active:ct.bool};function aL({onOpen:e,onClose:i,active:o}){const{t:u}=Po(),d=xe.useRef(null),_=Ci(km),[,w]=sn(J3),[a,E]=sn(Mu),[,j]=sn(hv),Q=document.querySelector(".venue-selector-portal"),q=fe=>{w(!0),E(fe.name),W()},W=()=>{o?i():e()};function le(fe){q(fe),j(!1)}return Oe.jsxs(Oe.Fragment,{children:[!o&&Q&&_u.createPortal(Oe.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":u("Venues"),children:Oe.jsx(wZ,{})}),Q),Oe.jsx(xZ,{in:o,nodeRef:d,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Oe.jsxs("div",{className:"venue-selector__content",ref:d,children:[Oe.jsxs("div",{className:"venue-selector__header",children:[Oe.jsx("h1",{children:u("Select venue")}),Oe.jsx("button",{className:"venue-selector__button",onClick:()=>i(),"aria-label":u("Close"),children:Oe.jsx(Rm,{})})]}),Oe.jsx("div",{className:"venue-selector__list",children:_.map(fe=>Oe.jsx(sL,{isCurrent:(a==null?void 0:a.toLowerCase())===fe.name.toLowerCase(),venue:fe,onVenueClicked:()=>le(fe)},fe.id))})]})})]})}const lL=xe.createContext(),wc=kn({key:"currentLocation",default:null}),bZ="Left",MZ="Right",IZ="Up",TZ="Down",zf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},y4={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},cL="mousemove",uL="mouseup",DZ="touchend",SZ="touchmove",AZ="touchstart";function CZ(e,i,o,u){return e>i?o>0?MZ:bZ:u>0?TZ:IZ}function hL(e,i){if(i===0)return e;const o=Math.PI/180*i,u=e[0]*Math.cos(o)+e[1]*Math.sin(o),d=e[1]*Math.cos(o)-e[0]*Math.sin(o);return[u,d]}function EZ(e,i){const o=Q=>{const q="touches"in Q;q&&Q.touches.length>1||e((W,le)=>{le.trackMouse&&!q&&(document.addEventListener(cL,u),document.addEventListener(uL,w));const{clientX:fe,clientY:we}=q?Q.touches[0]:Q,$e=hL([fe,we],le.rotationAngle);return le.onTouchStartOrOnMouseDown&&le.onTouchStartOrOnMouseDown({event:Q}),Object.assign(Object.assign(Object.assign({},W),y4),{initial:$e.slice(),xy:$e,start:Q.timeStamp||0})})},u=Q=>{e((q,W)=>{const le="touches"in Q;if(le&&Q.touches.length>1)return q;if(Q.timeStamp-q.start>W.swipeDuration)return q.swiping?Object.assign(Object.assign({},q),{swiping:!1}):q;const{clientX:fe,clientY:we}=le?Q.touches[0]:Q,[$e,me]=hL([fe,we],W.rotationAngle),ie=$e-q.xy[0],te=me-q.xy[1],oe=Math.abs(ie),be=Math.abs(te),_e=(Q.timeStamp||0)-q.start,Je=Math.sqrt(oe*oe+be*be)/(_e||1),nt=[ie/(_e||1),te/(_e||1)],Ye=CZ(oe,be,ie,te),xt=typeof W.delta=="number"?W.delta:W.delta[Ye.toLowerCase()]||zf.delta;if(oe<xt&&be<xt&&!q.swiping)return q;const dt={absX:oe,absY:be,deltaX:ie,deltaY:te,dir:Ye,event:Q,first:q.first,initial:q.initial,velocity:Je,vxvy:nt};dt.first&&W.onSwipeStart&&W.onSwipeStart(dt),W.onSwiping&&W.onSwiping(dt);let Pt=!1;return(W.onSwiping||W.onSwiped||W[`onSwiped${Ye}`])&&(Pt=!0),Pt&&W.preventScrollOnSwipe&&W.trackTouch&&Q.cancelable&&Q.preventDefault(),Object.assign(Object.assign({},q),{first:!1,eventData:dt,swiping:!0})})},d=Q=>{e((q,W)=>{let le;if(q.swiping&&q.eventData){if(Q.timeStamp-q.start<W.swipeDuration){le=Object.assign(Object.assign({},q.eventData),{event:Q}),W.onSwiped&&W.onSwiped(le);const fe=W[`onSwiped${le.dir}`];fe&&fe(le)}}else W.onTap&&W.onTap({event:Q});return W.onTouchEndOrOnMouseUp&&W.onTouchEndOrOnMouseUp({event:Q}),Object.assign(Object.assign(Object.assign({},q),y4),{eventData:le})})},_=()=>{document.removeEventListener(cL,u),document.removeEventListener(uL,w)},w=Q=>{_(),d(Q)},a=(Q,q)=>{let W=()=>{};if(Q&&Q.addEventListener){const le=Object.assign(Object.assign({},zf.touchEventOptions),q.touchEventOptions),fe=[[AZ,o,le],[SZ,u,Object.assign(Object.assign({},le),q.preventScrollOnSwipe?{passive:!1}:{})],[DZ,d,le]];fe.forEach(([we,$e,me])=>Q.addEventListener(we,$e,me)),W=()=>fe.forEach(([we,$e])=>Q.removeEventListener(we,$e))}return W},j={ref:Q=>{Q!==null&&e((q,W)=>{if(q.el===Q)return q;const le={};return q.el&&q.el!==Q&&q.cleanUpTouch&&(q.cleanUpTouch(),le.cleanUpTouch=void 0),W.trackTouch&&Q&&(le.cleanUpTouch=a(Q,W)),Object.assign(Object.assign(Object.assign({},q),{el:Q}),le)})}};return i.trackMouse&&(j.onMouseDown=o),[j,a]}function NZ(e,i,o,u){return!i.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?i.preventScrollOnSwipe!==o.preventScrollOnSwipe||i.touchEventOptions.passive!==o.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})}function dL(e){const{trackMouse:i}=e,o=xe.useRef(Object.assign({},y4)),u=xe.useRef(Object.assign({},zf)),d=xe.useRef(Object.assign({},u.current));d.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},zf),e);let _;for(_ in zf)u.current[_]===void 0&&(u.current[_]=zf[_]);const[w,a]=xe.useMemo(()=>EZ(E=>o.current=E(o.current,u.current),{trackMouse:i}),[i]);return o.current=NZ(o.current,u.current,d.current,a),w}const qn={MIN:"MIN",FIT:"FIT",MAX:"MAX"},Jae="",Of=xe.forwardRef(function({children:i,isOpen:o,initialSnapPoint:u,minimizedHeight:d},_){const w=xe.useRef(),a=xe.useRef(),E=xe.useRef(),j=xe.useRef(),Q=xe.useRef(),[q,W]=xe.useState({}),[le,fe]=xe.useState(!1),[we,$e]=xe.useState(null),me=xe.useContext(lL),ie=xe.useRef();xe.useImperativeHandle(_,()=>({setSnapPoint(Ye){te(Ye)}}));function te(Ye){requestAnimationFrame(()=>{switch(Ye){case qn.MAX:W({height:`${me.current.clientHeight}px`}),E.current=me.current.clientHeight;break;case qn.FIT:{const xt=a.current.children.item(0).clientHeight;xt<d?(W({height:`${d}px`}),E.current=d,Ye=qn.MIN):(W({height:`${xt}px`}),E.current=xt);break}case qn.MIN:W({height:`${d}px`}),E.current=d;break}}),Q.current=Ye}xe.useEffect(()=>(o&&Q.current===qn.FIT?oe():be(),()=>{be()}),[o,Q.current]);function oe(){ie.current&&ie.current.disconnect(),ie.current=new MutationObserver(()=>{te(qn.FIT)}),ie.current.observe(a.current,{childList:!0,subtree:!0})}function be(){ie.current&&ie.current.disconnect()}const _e=dL({onSwipeStart:()=>{fe(!0),$e(null),j.current=w.current.clientHeight},onSwiping:Ye=>{const xt=Math.max(j.current-Ye.deltaY,d);W({height:`${xt}px`})},onSwiped:Ye=>{fe(!1);const xt=LZ(Ye.dir,Ye.deltaY,Q.current,d,me.current.clientHeight,a.current.children.item(0));xt&&(te(xt),$e(xt))},trackMouse:!0,preventScrollOnSwipe:!0});xe.useEffect(()=>{o&&(Q.current=u,te(u))},[d,u,o]);const Je=Ye=>{_e.ref(Ye),w.current=Ye},nt=Cr.Children.map(i,Ye=>xe.cloneElement(Ye,{snapPointSwipedByUser:we}));return Oe.jsx("div",{..._e,ref:Je,className:`sheet ${o?"sheet--active":""} ${le?"sheet--dragging":""} ${Q.current===qn.MAX?"sheet--max":""}`,style:q,children:Oe.jsx("div",{ref:a,className:`sheet__content ${Q.current===qn.MIN?"sheet__content--no-scroll":""}`,style:q,children:nt})})});Of.propTypes={children:ct.node.isRequired,isOpen:ct.bool.isRequired,initialSnapPoint:ct.string.isRequired,minimizedHeight:ct.number.isRequired};function LZ(e,i,o,u,d,_){if(Math.abs(i)<60)return o;let a;return e.toUpperCase()==="DOWN"?o===qn.MAX?zZ(_)?a=qn.MIN:_.clientHeight<=d&&_.clientHeight>u?a=qn.FIT:a=qn.MIN:o===qn.FIT&&(a=qn.MIN):e.toUpperCase()==="UP"&&(o===qn.MIN?_.clientHeight<=u||_.clientHeight>d?a=qn.MAX:a=qn.FIT:o===qn.FIT&&(a=qn.MAX)),a}function zZ(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const i of e.children)if(i.scrollHeight>i.clientHeight)return!0;return!1}const ele="",tle="",OZ=(e,i)=>{const[o,u]=xe.useState(void 0),[d,_]=xe.useState(void 0);return xe.useEffect(()=>{const w=(a=!1)=>{var j,Q;const E=((j=i.current)==null?void 0:j.scrollHeight)>((Q=i.current)==null?void 0:Q.clientHeight);u(E),a===!0&&_(E)};w(!0),i.current&&new ResizeObserver(w).observe(i.current)},[e,i]),[o,d]},kf=()=>dL({onSwiping:({event:e})=>e.stopPropagation()});function fL(e){const i=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:i[1],lng:i[0],floor:e.properties.floor}}const Fm=kn({key:"directionsResponse",default:null}),dv=kn({key:"hasFoundRoute",default:!0}),pL=kn({key:"shuttleBusOn",default:!1}),gL=(e,i,o,u,d)=>{const[_,w]=xe.useState(),[a,E]=xe.useState(),[j,Q]=sn(dv),[,q]=sn(Fm),[W,le]=xe.useState(),fe=Ci(pL);return xe.useEffect(()=>{le(!1);let we=!0;return e!=null&&e.geometry&&(i!=null&&i.geometry)&&o.getRoute({origin:fL(e),destination:fL(i),travelMode:u,avoidStairs:d,excludeHighwayTypes:fe?[]:["busway"]}).then($e=>{if(we)if($e&&$e.legs){const me=$e.legs.reduce((te,oe)=>te+oe.distance.value,0),ie=$e.legs.reduce((te,oe)=>te+oe.duration.value,0);w(me),E(ie),q({originLocation:e,destinationLocation:i,totalDistance:me,totalTime:ie,directionsResult:$e}),Q(!0),le(!0)}else Q(!1)},()=>{we&&Q(!1)}),()=>{we=!1}},[e,i,o,d,u,fe]),[_,a,j,W]},Uh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Um=kn({key:"travelMode",default:Uh.WALKING}),Vm=kn({key:"accessibilityOn",default:!1}),fv=kn({key:"showExternalIDs",default:!1});function mL(e,i){const o=Ci(J_),[u,d]=xe.useState(!1),_=e.getMap();xe.useEffect(()=>{i&&d(!1)},[i]);function w(E,j,Q,q){const W=le=>{if(!Q)return;j.getMap().queryRenderedFeatures(le.point).length?q(!1):q(!0)};return E.on("click",W),()=>{E.off("click",W)}}function a(E,j,Q,q){const W=()=>{Q&&q(!1)},le=()=>{Q&&q(!0)};j.addListener("click",W);const fe=E.addListener("click",le);return()=>{j.removeListener("click",W),fe.remove()}}return xe.useEffect(()=>{let E;return o===us.Mapbox&&(E=w(_,e,i,d)),o===us.Google&&(E=a(_,e,i,d)),()=>E==null?void 0:E()},[e,i]),u}const ile="",kZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M12 7.75V12L14.75 14.75M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),jZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M8 10L11.6464 13.6464C11.8417 13.8417 12.1583 13.8417 12.3536 13.6464L16 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),PZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M16 14L12.3536 10.3536C12.1583 10.1583 11.8417 10.1583 11.6464 10.3536L8 14",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vh=kn({key:"language",default:void 0});yL.propTypes={openingHours:ct.object,isMondayFirstDayOfTheWeek:ct.bool,onExpand:ct.func};function yL({openingHours:e,isMondayFirstDayOfTheWeek:i=!0,onExpand:o}){const{t:u}=Po(),[d,_]=xe.useState(!1),a=Ci(Vh)??navigator.language,E=xe.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(a).match(/AM|PM/)!==null,[a]),j=new Date().getDay(),Q=xe.useMemo(()=>{const oe=[];for(let be=0;be<7;be++)oe.push(new Date(2024,0,be+1));if(!i){const be=oe.pop();oe.unshift(be)}return oe},[i]),q=xe.useMemo(()=>i?j===0?6:j-1:j,[j,i]),{standardOpeningHours:W}=e||{},le=oe=>{const[be,_e]=oe.split(":");return new Date(0,0,0,be,_e).toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",hour12:E})},fe=oe=>{const be=oe.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),_e=W==null?void 0:W[be];return!(_e!=null&&_e.startTime)||!(_e!=null&&_e.endTime)||_e.closedAllDay?{text:u("Closed"),isClosed:!0}:{text:`${le(_e.startTime)} - ${le(_e.endTime)}`,isClosed:!1}},we=xe.useCallback(oe=>{if(!oe||oe.closedAllDay||!oe.startTime||!oe.endTime)return!1;const be=new Date,_e=be.getHours()*60+be.getMinutes(),[Je,nt]=oe.startTime.split(":"),[Ye,xt]=oe.endTime.split(":"),dt=parseInt(Je,10)*60+parseInt(nt,10),Pt=parseInt(Ye,10)*60+parseInt(xt,10);return _e>=dt&&_e<=Pt},[]),me=xe.useCallback(()=>{const oe=Q[q].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return we(W==null?void 0:W[oe])?"Open":"Closed"},[W,Q,q,we,u])(),ie=oe=>oe.charAt(0).toUpperCase()+oe.slice(1),te=()=>{_(oe=>!oe)};return xe.useEffect(()=>{d&&typeof o=="function"&&o()},[d,o]),Oe.jsxs("div",{className:"opening-hours",children:[Oe.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:te,"aria-label":u(d?"Collapse opening hours":"Expand opening hours"),"aria-expanded":d,children:[Oe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Oe.jsx(kZ,{})}),Oe.jsx("div",{className:"contact-action-button__text",children:fe(Q[q]).text}),Oe.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${me.toLowerCase()}`,children:u(me)}),d?Oe.jsx(PZ,{}):Oe.jsx(jZ,{})]}),d&&Oe.jsx("ul",{className:"opening-hours__list",children:Q.map(oe=>{const be=fe(oe);return Oe.jsxs("li",{className:"opening-hours__list-item",children:[Oe.jsx("span",{className:"opening-hours__day",children:ie(oe.toLocaleString(a,{weekday:"long"}))}),Oe.jsx("span",{className:`opening-hours__hours ${be.isClosed?"opening-hours__hours--closed":""}`,children:be.text})]},oe)})})]})}const RZ=xe.memo(yL);function _4(e,i,o){return(i=function(u){var d=function(_,w){if(typeof _!="object"||!_)return _;var a=_[Symbol.toPrimitive];if(a!==void 0){var E=a.call(_,w||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(_)}(u,"string");return typeof d=="symbol"?d:d+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var v4={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},_L=function(e){var i=e.children,o=e.onClickAway,u=e.focusEvent,d=u===void 0?"focusin":u,_=e.mouseEvent,w=_===void 0?"click":_,a=e.touchEvent,E=a===void 0?"touchend":a,j=xe.useRef(null),Q=xe.useRef(null),q=xe.useRef(!1);xe.useEffect(function(){return setTimeout(function(){q.current=!0},0),function(){q.current=!1}},[]);var W=function($e){return function(me){Q.current=me.target;var ie=i==null?void 0:i.props[$e];ie&&ie(me)}};xe.useEffect(function(){var $e,me,ie=($e=(me=j.current)===null||me===void 0?void 0:me.ownerDocument)!==null&&$e!==void 0?$e:document,te=function(oe){q.current&&(j.current&&j.current.contains(oe.target)||Q.current===oe.target||!ie.contains(oe.target)||o(oe))};return ie.addEventListener(w,te),ie.addEventListener(E,te),ie.addEventListener(d,te),function(){ie.removeEventListener(w,te),ie.removeEventListener(E,te),ie.removeEventListener(d,te)}},[d,w,o,E]);var le=v4[w],fe=v4[E],we=v4[d];return Cr.Children.only(xe.cloneElement(i,_4(_4(_4({ref:function($e){j.current=$e;var me=i.ref;typeof me=="function"?me($e):me&&(me.current=$e)}},we,W(we)),le,W(le)),fe,W(fe))))};_L.displayName="ClickAwayListener";const pv=kn({key:"searchAllVenues",default:!1}),x4=kn({key:"searchExternalLocations",default:!0}),vL=R_({key:"baseLink",get:({get:e})=>{const i=e(q3),o=e(ev),u=e(W3),d=e(Sl),_=e(Vh),w=e(pv),a=e(x4),E=e(d4),j=window.location.origin+window.location.pathname.replace(/\/$/,""),Q=new URLSearchParams(window.location.search),q=new URLSearchParams;return[["gmApiKey",i],["mapboxAccessToken",o],["apiKey",u],["primaryColor",d],["language",_],["searchAllVenues",w],["searchExternalLocations",a],["logo",E]].forEach(([W,le])=>{if(Q.has(W)){const fe=Q.get(W);q.append(W,fe)}else le&&(le===d?q.append(W,d.replace("#","")):q.append(W,le))}),`${j}?${q.toString()}`}}),nle="",BZ=e=>xe.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8484 4.66738C13.3129 3.20291 15.6872 3.20291 17.1517 4.66737L19.909 7.42474C21.3735 8.8892 21.3735 11.2636 19.909 12.7281L18.2804 14.3568C17.9875 14.6497 17.5126 14.6497 17.2197 14.3568C16.9268 14.0639 16.9268 13.589 17.2197 13.2961L18.8484 11.6674C19.7271 10.7887 19.7271 9.36407 18.8484 8.4854L16.091 5.72803C15.2123 4.84936 13.7877 4.84936 12.909 5.72804L11.2804 7.35672C10.9875 7.64961 10.5126 7.64961 10.2197 7.35672C9.92681 7.06382 9.92681 6.58895 10.2197 6.29606L11.8484 4.66738ZM15.5304 9.04606C15.8233 9.33895 15.8233 9.81382 15.5304 10.1067L9.53036 16.1068C9.23747 16.3997 8.7626 16.3997 8.4697 16.1068C8.17681 15.8139 8.17681 15.339 8.4697 15.0461L14.4697 9.04606C14.7626 8.75316 15.2375 8.75316 15.5304 9.04606ZM6.78036 10.7961C7.07326 11.089 7.07326 11.5639 6.78036 11.8568L5.15169 13.4854C4.27301 14.3641 4.27301 15.7887 5.15169 16.6674L7.90905 19.4248C8.78773 20.3035 10.2123 20.3035 11.091 19.4248L12.7197 17.7961C13.0126 17.5032 13.4875 17.5032 13.7804 17.7961C14.0733 18.089 14.0733 18.5639 13.7804 18.8568L12.1517 20.4854C10.6872 21.9499 8.31285 21.9499 6.84839 20.4854L4.09102 17.7281C2.62656 16.2636 2.62656 13.8893 4.09103 12.4248L5.7197 10.7961C6.0126 10.5032 6.48747 10.5032 6.78036 10.7961Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),xL=e=>xe.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.32635C3 5.25529 4.67893 3.57635 6.75 3.57635H7.25C9.32107 3.57635 11 5.25529 11 7.32635V7.82635C11 9.89742 9.32107 11.5764 7.25 11.5764H6.75C4.67893 11.5764 3 9.89742 3 7.82635V7.32635ZM6.75 5.07635C5.50736 5.07635 4.5 6.08371 4.5 7.32635V7.82635C4.5 9.06899 5.50736 10.0764 6.75 10.0764H7.25C8.49264 10.0764 9.5 9.06899 9.5 7.82635V7.32635C9.5 6.08371 8.49264 5.07635 7.25 5.07635H6.75ZM13 7.32635C13 5.25529 14.6789 3.57635 16.75 3.57635H17.25C19.3211 3.57635 21 5.25529 21 7.32635V7.82635C21 9.89742 19.3211 11.5764 17.25 11.5764H16.75C14.6789 11.5764 13 9.89742 13 7.82635V7.32635ZM16.75 5.07635C15.5074 5.07635 14.5 6.08371 14.5 7.32635V7.82635C14.5 9.06899 15.5074 10.0764 16.75 10.0764H17.25C18.4926 10.0764 19.5 9.06899 19.5 7.82635V7.32635C19.5 6.08371 18.4926 5.07635 17.25 5.07635H16.75ZM3 17.3264C3 15.2553 4.67893 13.5764 6.75 13.5764H7.25C9.32107 13.5764 11 15.2553 11 17.3264V17.8264C11 19.8975 9.32107 21.5764 7.25 21.5764H6.75C4.67893 21.5764 3 19.8975 3 17.8264V17.3264ZM6.75 15.0764C5.50736 15.0764 4.5 16.0838 4.5 17.3264V17.8264C4.5 19.069 5.50736 20.0764 6.75 20.0764H7.25C8.49264 20.0764 9.5 19.069 9.5 17.8264V17.3264C9.5 16.0838 8.49264 15.0764 7.25 15.0764H6.75Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 13.5764C14.1642 13.5764 14.5 13.9122 14.5 14.3264V16.0764H16.25C16.6642 16.0764 17 16.4122 17 16.8264C17 17.2406 16.6642 17.5764 16.25 17.5764H13.75C13.3358 17.5764 13 17.2406 13 16.8264V14.3264C13 13.9122 13.3358 13.5764 13.75 13.5764ZM17 14.3264C17 13.9122 17.3358 13.5764 17.75 13.5764H20.25C20.6642 13.5764 21 13.9122 21 14.3264C21 14.7406 20.6642 15.0764 20.25 15.0764H17.75C17.3358 15.0764 17 14.7406 17 14.3264ZM17 18.3264C17 17.9122 17.3358 17.5764 17.75 17.5764H20.25C20.6642 17.5764 21 17.9122 21 18.3264C21 18.7406 20.6642 19.0764 20.25 19.0764H18.5V20.8264C18.5 21.2406 18.1642 21.5764 17.75 21.5764C17.3358 21.5764 17 21.2406 17 20.8264V18.3264Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M13 20.5764C13 20.0241 13.4477 19.5764 14 19.5764C14.5523 19.5764 15 20.0241 15 20.5764C15 21.1287 14.5523 21.5764 14 21.5764C13.4477 21.5764 13 21.1287 13 20.5764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M5.5 17.0764C5.5 16.5241 5.94772 16.0764 6.5 16.0764H7.5C8.05228 16.0764 8.5 16.5241 8.5 17.0764V18.0764C8.5 18.6287 8.05228 19.0764 7.5 19.0764H6.5C5.94772 19.0764 5.5 18.6287 5.5 18.0764V17.0764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M5.5 7.07635C5.5 6.52407 5.94772 6.07635 6.5 6.07635H7.5C8.05228 6.07635 8.5 6.52407 8.5 7.07635V8.07635C8.5 8.62863 8.05228 9.07635 7.5 9.07635H6.5C5.94772 9.07635 5.5 8.62863 5.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M15.5 7.07635C15.5 6.52407 15.9477 6.07635 16.5 6.07635H17.5C18.0523 6.07635 18.5 6.52407 18.5 7.07635V8.07635C18.5 8.62863 18.0523 9.07635 17.5 9.07635H16.5C15.9477 9.07635 15.5 8.62863 15.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),FZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M8 6L12 2L16 6",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M12 3V13",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M17 10C18.1046 10 19 10.8954 19 12V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V12C5 10.8954 5.89543 10 7 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),gv=kn({key:"qrCodeLink",default:null}),wL=kn({key:"supportsUrlParameters",default:!1});bL.propTypes={location:ct.object.isRequired,buttonClassName:ct.string};function bL({location:e,buttonClassName:i}){const{t:o}=Po(),[u,d]=xe.useState(!1),_=Ci(vL),[w,a]=xe.useState(),E=Ci(wL),[j,Q]=xe.useState(!1),[q,W]=xe.useState(!1),le=Ci(Dl),[,fe]=sn(gv),we=Ja();xe.useEffect(()=>{_&&e&&a(_+"&locationId="+e.id)},[_,e]),xe.useEffect(()=>{var te;Q(!le&&E&&we);const ie=typeof((te=navigator.clipboard)==null?void 0:te.writeText)=="function";W(!le&&E&&ie)},[E,le,we]);const $e=()=>{navigator.clipboard.writeText(w),d(!1)},me=()=>{fe(w),d(!1)};return(j||q)&&Oe.jsxs("div",{className:"share-location-link",children:[Oe.jsx("button",{className:i,onClick:()=>d(ie=>!ie),title:o("Share"),"aria-label":o("Share"),children:Oe.jsx(FZ,{})}),u&&Oe.jsx(_L,{onClickAway:()=>d(!1),children:Oe.jsxs("ul",{children:[q&&Oe.jsx("li",{children:Oe.jsxs("button",{className:i,onClick:()=>$e(),children:[Oe.jsx(BZ,{}),o("Copy link")]})}),j&&Oe.jsx("li",{children:Oe.jsxs("button",{className:i,onClick:()=>me(),children:[Oe.jsx(xL,{}),o("QR Code")]})})]})})]})}const rle="",ML={email:"email",phone:"phone"};IL.propTypes={detailType:ct.string,active:ct.bool,displayText:ct.string,value:ct.string,icon:ct.string};function IL({detailType:e,active:i,displayText:o,value:u,icon:d}){if(!i||e.toLowerCase()==="openinghours")return null;const _=o!=null&&o.trim()?o:u,w=(a,E)=>{switch(a.toLowerCase()){case ML.email:return`mailto:${E}`;case ML.phone:return`tel:${E}`;default:try{return new URL(E),E}catch{return"#"}}};return Oe.jsxs("a",{className:"contact-action-button",href:w(e,u),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Oe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Oe.jsx("img",{alt:"",src:d,className:"contact-action-button__icon"})}),Oe.jsx("span",{className:"contact-action-button__text",children:_})]})}w4.propTypes={onBack:ct.func,onStartWayfinding:ct.func,onSetSize:ct.func,snapPointSwiped:ct.number,onStartDirections:ct.func,isOpen:ct.bool,snapPointSwipedByUser:ct.string};function w4({onBack:e,onStartWayfinding:i,onSetSize:o,onStartDirections:u,isOpen:d,snapPointSwipedByUser:_}){var Mt,Et,di,qt;const{t:w}=Po(),a=xe.useRef(null),E=xe.useRef(null),j=xe.useRef(null),Q=xe.useRef(null),q=xe.useRef(null),[W,le]=xe.useState(!1),[fe,we]=xe.useState(!1),[$e,me]=xe.useState(!1),ie=xe.useRef(!1),[te,oe]=xe.useState(null),be=Ci(ca),_e=Ci(wc),Je=(Mt=_e==null?void 0:_e.properties)==null?void 0:Mt.additionalDetails,nt=(Et=Je==null?void 0:Je.find(ui=>ui.key.toLowerCase().includes("openinghours")&&ui.active===!0))==null?void 0:Et.openingHours,[Ye,xt]=OZ(_e,j),dt=kf(),Pt=Ci(Sl),Tt=Ci(Dl),ci=Ci(Z3),[Ot,wt]=xe.useState(),[$t,St]=xe.useState(),[Ht,Z]=xe.useState(!0),ne=Ja(),T=Ci(Um),k=Ci(Vm),[,,F]=gL($t,Ot,ci,T,k),U=Ci(fv),G=mL(be,d),re=Ci(Rh),de=(qt=(di=re==null?void 0:re.appSettings)==null?void 0:di.excludeFromUI)==null?void 0:qt.includes("wayfindingDisabled");xe.useEffect(()=>{(()=>{if(be&&_e)try{const Wt=be.getBuilding();if(Wt&&Wt.floors){const wi=Object.keys(Wt.floors).length;Z(wi>1)}else Z(!1)}catch{Z(!0)}})()},[be,_e]),xe.useEffect(()=>()=>{oe(null),wt(),St()},[]);const ue=xe.useCallback(()=>{le(!1),we(!1),me(!1),Me(qn.FIT),e()});function Me(ui){typeof o=="function"&&o(ui)}function Fe(){W===!1?(et(),Me(qn.MAX)):(Ue(),Me(qn.FIT))}function et(){requestAnimationFrame(()=>{le(!0),Ke(),ie.current=!0})}function Ue(){le(!1),Ve(),ie.current=!1}function Ke(){const ui=requestAnimationFrame(()=>{E.current&&(we(E.current.scrollTop>0),me(E.current.scrollTop<E.current.scrollHeight-E.current.offsetHeight-1))});return()=>cancelAnimationFrame(ui)}function Ve(){we(!1),me(!1)}function mt(){le(!1),we(!1),me(!1),Me(qn.FIT),i()}function yt(){le(!1),we(!1),me(!1),Me(qn.FIT),u()}return xe.useEffect(()=>{G&&e()},[G]),xe.useEffect(()=>()=>{oe(null),wt(),St()},[]),xe.useEffect(()=>{le(!1),we(!1),me(!1),oe(null),_e&&(a.current.location=_e,oe(be.getDisplayRule(_e)),wt(_e)),Tt&&St(Tt)},[_e,be,Tt]),xe.useEffect(()=>{const ui=(Je==null?void 0:Je.length)>0;Me(_e&&d&&ui?qn.FIT:qn.MIN)},[_e,d,Je]),xe.useEffect(()=>{if(!_){ie.current=!1;return}le(_===qn.MAX),_===qn.MAX?et():Ue()},[_]),xe.useLayoutEffect(()=>{const ui=document.querySelector(".modal.modal--open");if(!ui||!(Q!=null&&Q.current)||!(E!=null&&E.current))return;const Wt=()=>{const wi=ui.offsetHeight,Ei=E.current.offsetHeight;wi>0&&Ei>0&&(Ei/wi>.9?(ui.style.height="100%",Ke()):ui.style.height="auto")};return q.current?q.current.complete?Wt():(q.current.onload=Wt,q.current.onerror=Wt):Wt(),()=>{ui.style.height="",q.current&&(q.current.onload=null,q.current.onerror=null)}},[_e,W,d,Je]),Oe.jsx("div",{className:`location-details ${ie.current===!0?"location-details--max-height":""} ${fe?"location-details--content-above":""} ${$e?"location-details--content-below":""}`,children:_e&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"location-details__header",children:[Oe.jsxs("div",{className:"location-info",children:[Oe.jsx("div",{className:"location-info__icon",children:te&&Oe.jsx("img",{alt:"",src:te.icon.src?te.icon.src:te.icon})}),Oe.jsxs("div",{className:"location-info__content",children:[Oe.jsx("div",{className:"location-info__name",children:_e.properties.name}),Oe.jsx("mi-location-info",{level:w("Level"),ref:a,"show-external-id":U,"show-floor":Ht})]}),Oe.jsxs("div",{className:"location-info__actions",children:[Oe.jsx(bL,{buttonClassName:"location-info__button",location:_e}),Oe.jsx("button",{className:"location-info__button",onClick:()=>ue(),"aria-label":w("Close"),children:Oe.jsx(Rm,{})})]})]}),!de&&(Tt&&ne?Oe.jsx("button",{disabled:!F,onClick:()=>yt(),className:`location-details__wayfinding ${F?"":"location-details--no-route"}`,style:{background:Pt},children:w(F?"Start directions":"Directions not available")}):Oe.jsx("button",{onClick:()=>mt(),style:{background:Pt},className:"location-details__wayfinding",children:w("Start wayfinding")}))]}),Oe.jsx("div",{className:"location-details__details prevent-scroll",...dt,ref:Q,children:Oe.jsxs("div",{ref:E,onScroll:ui=>Ke(),className:"location-details__details-content",children:[_e.properties.imageURL&&Oe.jsx("img",{ref:q,alt:"",src:_e.properties.imageURL,className:"location-details__image"}),Object.keys(_e.properties.categories).length>0&&Oe.jsx("p",{className:"location-details__categories",children:Object.values(_e.properties.categories).map((ui,Wt,wi)=>Oe.jsxs(Cr.Fragment,{children:[ui,Wt<wi.length-1&&Oe.jsx(Oe.Fragment,{children:"・"})]},ui))}),_e.properties.description&&Oe.jsxs("section",{className:`location-details__description ${W?"location-details__description--full":""}`,children:[Oe.jsx("div",{ref:j,children:_e.properties.description}),(Ye||xt||W)&&Oe.jsx("button",{onClick:()=>Fe(),children:w(W?"Close":"Read full description")})]}),Je&&Oe.jsxs("div",{className:"contact-action-buttons-container",children:[Je.map(ui=>Oe.jsx(IL,{detailType:ui.detailType,active:ui.active,displayText:ui.displayText,value:ui.value,icon:ui.icon},ui.key)),nt&&Oe.jsx(RZ,{openingHours:nt,onExpand:()=>Ke()})]})]})})]})})}const ole="",UZ=e=>xe.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("g",{clipPath:"url(#clip0_1663_3931)"},xe.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),xe.createElement("defs",null,xe.createElement("clipPath",{id:"clip0_1663_3931"},xe.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),TL=e=>xe.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),xe.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),VZ=e=>xe.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),xe.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),sle="";mv.propTypes={location:ct.object,locationClicked:ct.func,icon:ct.string,isHovered:ct.bool};function mv({location:e,locationClicked:i,icon:o,isHovered:u}){const{t:d}=Po(),_=xe.useRef(),w=Ci(ca),a=Ci(fv);return xe.useEffect(()=>{var W;const E=le=>i(le.detail),j=()=>{var le;((le=e.properties.locationSettings)==null?void 0:le.selectable)!==!1&&w.hoverLocation(e)},Q=()=>{var le;(le=e.properties.locationSettings)!=null&&le.selectable||w.unhoverLocation(e)};((W=e.properties.locationSettings)==null?void 0:W.selectable)===!1&&_.current.classList.add("non-selectable");const{current:q}=_;return q.location=e,q.icon=o||w.getDisplayRule(e).icon,q.addEventListener("locationClicked",E),q.addEventListener("mouseover",j),q.addEventListener("mouseout",Q),u?_.current.classList.add("hovered"):_.current.classList.remove("hovered"),()=>{q.removeEventListener("locationClicked",E),q.removeEventListener("mouseover",j),q.removeEventListener("mouseout",Q)}},[e,i,u]),Oe.jsx("mi-list-item-location",{level:d("Level"),ref:_,"show-external-id":a})}const QZ=()=>{const[e,i]=xe.useState(),o=Ci(ca),u=Ci(sv);return xe.useEffect(()=>{function d(){const _=o.getMapView().getCenter();i(_.lat+","+_.lng)}return o&&u?(o.getMapView().addListener("idle",d),d()):o&&o.getMapView().removeListener("idle",d),()=>{o&&o.getMapView().removeListener("idle",d)}},[o,u]),e},b4=kn({key:"searchInput",default:void 0}),yv=xe.forwardRef(function(i,o){const{placeholder:u,mapsindoors:d,results:_,clicked:w,cleared:a,changed:E,category:j,google:Q,mapbox:q,disabled:W=!1}=i,le=xe.useRef(),fe=Ci(X_),we=Ci(Vh),[,$e]=sn(b4),me=sessionStorage.getItem("mapboxPlacesSessionToken"),ie={longitude:fe==null?void 0:fe.coords.longitude,latitude:fe==null?void 0:fe.coords.latitude},te=QZ(),oe=Ci(Mu),be=Ci(pv);return xe.useImperativeHandle(o,()=>({triggerSearch(){le.current.triggerSearch()},getValue(){return le.current.value},setDisplayText(_e){le.current.setDisplayText(_e)},focusInput(){le.current.focusInput()},clear(){le.current.clear()},getInputField(){return le.current.getInputField().then(_e=>$e(_e))}})),xe.useEffect(()=>{const{current:_e}=le;_e.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{_e.triggerSearch()})},[we]),xe.useEffect(()=>{const _e=Ye=>_(Ye.detail),Je=()=>a(),{current:nt}=le;return d===!0&&(nt.mapsindoors="true"),nt.addEventListener("results",_e),nt.addEventListener("click",w),nt.addEventListener("cleared",Je),nt.addEventListener("changed",E),()=>{nt.removeEventListener("results",_e),nt.removeEventListener("click",w),nt.removeEventListener("cleared",Je),nt.removeEventListener("changed",E)}},[u,d,_,w,a,Q,q,E]),Oe.jsx("mi-search",{ref:le,"id-attribute":"search",placeholder:u,"session-token":me,"user-position":ie.latitude!==void 0&&ie.longitude!==void 0?Object.values(ie).join(","):null,"mi-near":te,"mi-categories":j,disabled:W,mapbox:q,google:Q,"mi-venue":be?void 0:oe,language:we})});yv.propTypes={placeholder:ct.string,mapsindoors:ct.bool,results:ct.func,clicked:ct.func,cleared:ct.func,changed:ct.func,category:ct.string,preventFocus:ct.bool,google:ct.bool,mapbox:ct.bool,disabled:ct.bool};function M4(e){const i={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:i,properties:{name:lN("My position"),anchor:i},type:"Feature"}}let I4;function HZ(e){return new Promise((i,o)=>{I4||(I4=new window.google.maps.Geocoder),I4.geocode({placeId:e.properties.placeId},u=>{u.length>0?(e.geometry={type:"Point",coordinates:[u[0].geometry.location.lng(),u[0].geometry.location.lat()]},i(e)):o()})})}const $Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",DL=e=>xe.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),SL=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("g",{clipPath:"url(#clip0_1697_57490)"},xe.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),xe.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),xe.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),xe.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),xe.createElement("defs",null,xe.createElement("clipPath",{id:"clip0_1697_57490"},xe.createElement("rect",{width:20,height:20,fill:"white"})))),YZ=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("g",{clipPath:"url(#clip0_3407_1703)"},xe.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),xe.createElement("defs",null,xe.createElement("clipPath",{id:"clip0_3407_1703"},xe.createElement("rect",{width:20,height:20,fill:"white"}))));AL.propTypes={selectionChanged:ct.func,children:ct.node};function AL({selectionChanged:e,children:i}){const o=xe.useRef();return xe.useEffect(()=>{const u=_=>e(_.detail),{current:d}=o;return d.addEventListener("change",u),()=>d.removeEventListener("change",u)},[e]),Oe.jsx("mi-dropdown",{ref:o,children:i})}function GZ(e,i){const o=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((u,d)=>{const _=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${o}&access_token=${i}`;fetch(_).then(w=>w.status!==200?d():w.json()).then(w=>{e.geometry={type:"Point",coordinates:[w.features[0].geometry.coordinates[0],w.features[0].geometry.coordinates[1]]},u(e)}).catch(()=>{d()})})}const ZZ=R_({key:"unitSystem",get:({get:e})=>e(Vh)==="en-US"?"imperial":"metric"}),ale="";T4.propTypes={onAccessibilityChanged:ct.func};function T4({onAccessibilityChanged:e}){const i=Ci(Sl),[o,u]=sn(Vm);function d(_){u(_.target.checked),e&&e()}return Oe.jsxs("div",{className:"accessibility",children:[Oe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:_=>d(_),style:{backgroundColor:o?i:""}}),Oe.jsx("div",{children:lN("Avoid stairs and escalators")})]})}const lle="";function WZ(){var w,a;const{t:e}=Po(),i=Ci(Sl),o=Ci(Rh),[u,d]=sn(pL);function _(E){d(E.target.checked)}return Oe.jsxs("div",{className:"shuttle-bus",children:[Oe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:u,onChange:E=>_(E),"aria-label":((w=o==null?void 0:o.appSettings)==null?void 0:w.includeTransitSelectionDescription)||e("Include bus transportation"),style:{backgroundColor:u?i:""}}),Oe.jsx("div",{children:((a=o==null?void 0:o.appSettings)==null?void 0:a.includeTransitSelectionDescription)||"Include bus transportation"})]})}const CL=kn({key:"wayfindingLocation",default:null}),Co={TO:"TO",FROM:"FROM"},qZ="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";D4.propTypes={onStartDirections:ct.func.isRequired,onBack:ct.func.isRequired,directionsToLocation:ct.object,directionsFromLocation:ct.object,onSetSize:ct.func,isActive:ct.bool};function D4({onStartDirections:e,onBack:i,directionsToLocation:o,directionsFromLocation:u,onSetSize:d,isActive:_}){var Ei,jt;const{t:w}=Po(),a=xe.useRef(),E=xe.useRef(),j=xe.useRef(),Q=xe.useRef(),q=Ci(Z3),W=Ci(X_),le=Ci(wc),fe=Ci(J_),we=Ci(Sl),[$e,me]=sn(CL),[ie,te]=xe.useState(),[,oe]=sn(dv),[be,_e]=xe.useState(!0),[Je,nt]=xe.useState(!1),[Ye,xt]=xe.useState([]),[dt,Pt]=xe.useState(),[Tt,ci]=xe.useState(),Ot=Ci(Vm),wt=kf(),[$t,St]=xe.useState(!1),[Ht,Z]=sn(Um),[ne,T]=xe.useState(!1),k=Ci(ev),F=Ci(ZZ),[U,G,re,de]=gL(Tt,dt,q,Ht,Ot),ue=Ci(x4),Me=Ci(Rh);function Fe(kt){return fe===us.Google&&kt.properties.type==="google_places"?HZ(kt):fe===us.Mapbox&&kt.properties.type==="mapbox_places"?GZ(kt,k):Promise.resolve(kt)}function et(kt){ie===Co.TO?Fe(kt).then(Pi=>{Pt(Pi),j.current.setDisplayText(Pi.properties.name)},()=>oe(!1)):ie===Co.FROM&&Fe(kt).then(Pi=>{ci(Pi),Q.current.setDisplayText(Pi.properties.name)},()=>oe(!1)),St(!1),nt(!1),xt([]),T(!1)}function Ue(kt,Pi){if(te(Pi),oe(!0),kt.length===0)_e(!1),St(!1),xt([]);else{_e(!0),xt(kt);const Ai=kt.filter($i=>$i.properties.type==="google_places").length>0;St(Ai),Ke(qn.MAX)}}function Ke(kt){typeof d=="function"&&d(kt)}function Ve(){const kt=M4(W);ie===Co.TO?(j.current.setDisplayText(kt.properties.name),Pt(kt)):ie===Co.FROM&&(Q.current.setDisplayText(kt.properties.name),ci(kt)),xt([]),oe(!0),_e(!0),St(!1),nt(!1),T(!1)}function mt(kt){(Tt==null?void 0:Tt.id)==="USER_POSITION"&&kt===Co.TO||(dt==null?void 0:dt.id)==="USER_POSITION"&&kt===Co.FROM?T(!1):T(!0)}function yt(kt){mt(kt)}function Mt(kt){te(kt),qt(kt),oe(!0),St(!1),mt(kt)}function Et(kt){T(!0),te(kt),di(kt),xt([]),oe(!0),St(!1),_e(!0)}function di(kt){kt===Co.TO?Pt():kt===Co.FROM&&ci()}function qt(kt){kt===Co.TO?(xt([]),j.current.getValue()&&(nt(!0),j.current.triggerSearch())):kt===Co.FROM&&(xt([]),Q.current.getValue()&&(nt(!0),Q.current.triggerSearch()))}function ui(){(dt||Tt)&&(Tt?j.current.setDisplayText(Tt.properties.name):j.current.clear(),dt?Q.current.setDisplayText(dt.properties.name):Q.current.clear(),Pt(Tt),ci(dt))}function Wt(){ci(),Q.current.setDisplayText(""),i()}function wi(){xt([]),nt(!1),St(!1),T(!1)}return xe.useEffect(()=>()=>{xt([]),Pt(),ci()},[]),xe.useEffect(()=>{if($e){if(ie===Co.FROM)Q.current.setDisplayText($e.properties.name),ci($e);else if(ie===Co.TO)j.current.setDisplayText($e.properties.name),Pt($e);else return;wi(),me(null)}},[$e]),xe.useEffect(()=>{var Pi;Ke(qn.FIT);let kt=!1;if((u==null?void 0:u.id)==="USER_POSITION"&&(o==null?void 0:o.id)==="USER_POSITION"&&(o=void 0),o!=null&&o.properties&&!le&&(j.current.setDisplayText(o.properties.name),Pt(o)),u!=null&&u.properties?Tt||(Q.current.setDisplayText(u.properties.name),ci(u),kt=!0):te(Co.FROM),_&&!((Pi=Q.current)!=null&&Pi.getValue())&&W&&!Tt&&(o==null?void 0:o.id)!=="USER_POSITION"&&!kt){const Ai=M4(W);Q.current.setDisplayText(Ai.properties.name),ci(Ai),oe(!0),_e(!0),xt([])}},[_,o,u]),xe.useEffect(()=>{fe===us.Mapbox&&(St(!1),xt(Ye.filter(kt=>kt.properties.type!=="google_places")))},[fe]),xe.useEffect(()=>{le&&(Pt(le),j.current.setDisplayText(le.properties.name))},[le]),Oe.jsxs("div",{className:"wayfinding",ref:a,children:[Oe.jsxs("div",{className:"wayfinding__directions",children:[Oe.jsx("div",{className:"wayfinding__title",children:w("Directions")}),Oe.jsx("button",{className:"wayfinding__close",onClick:()=>Wt(),"aria-label":"Close",children:Oe.jsx(Rm,{})}),Oe.jsxs("div",{className:"wayfinding__locations",children:[Oe.jsxs("label",{className:"wayfinding__label",children:[Oe.jsx("span",{children:w("Choose departure")}),Oe.jsx(yv,{ref:Q,mapsindoors:!0,google:fe===us.Google&&ue,mapbox:fe===us.Mapbox&&ue,placeholder:w("Choose departure"),results:kt=>Ue(kt,Co.FROM),clicked:()=>Mt(Co.FROM),cleared:()=>Et(Co.FROM),changed:()=>yt(Co.FROM)})]}),Oe.jsx("button",{onClick:()=>ui(),"aria-label":w("Switch"),className:"wayfinding__switch",children:Oe.jsx(VZ,{})}),Oe.jsxs("label",{className:"wayfinding__label",children:[Oe.jsx("span",{children:w("Choose destination")}),Oe.jsx(yv,{ref:j,mapsindoors:!0,google:fe===us.Google&&ue,mapbox:fe===us.Mapbox&&ue,placeholder:w("Choose destination"),results:kt=>Ue(kt,Co.TO),clicked:()=>Mt(Co.TO),cleared:()=>Et(Co.TO),changed:()=>yt(Co.TO)})]})]})]}),!re&&Oe.jsx("p",{className:"wayfinding__error",children:w("No route found")}),!be&&!ne&&Oe.jsx("p",{className:"wayfinding__error",children:w("Nothing was found")}),W&&ne&&Oe.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Ve(),children:[Oe.jsx(YZ,{}),w("My position")]}),Ye.length>0&&Oe.jsx("div",{className:"wayfinding__scrollable",...wt,children:Oe.jsxs("div",{className:"wayfinding__results",children:[Ye.map(kt=>Oe.jsx(mv,{icon:kt.properties.type==="google_places"||kt.properties.type==="mapbox_places"?qZ:void 0,location:kt,locationClicked:Pi=>et(Pi)},kt.id)),$t&&Oe.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:$Z})]})}),!Je&&!ne&&re&&!$t&&Tt&&dt&&Oe.jsxs("div",{className:"wayfinding__details",ref:E,children:[Oe.jsxs("div",{className:"wayfinding__settings",children:[Oe.jsxs("div",{className:"wayfinding__toggles",children:[Oe.jsx(T4,{}),((Ei=Me==null?void 0:Me.appSettings)==null?void 0:Ei.includeTransitSelection)==="true"&&Oe.jsx(WZ,{})]}),Oe.jsx("div",{className:"wayfinding__travel",children:((jt=Me==null?void 0:Me.appSettings)==null?void 0:jt.includeTravelModeSelection)!=="false"&&Oe.jsxs(AL,{selectionChanged:kt=>Z(kt[0].value),children:[Oe.jsxs("mi-dropdown-item",{selected:!0,value:Uh.WALKING,children:[Oe.jsx(TL,{}),w("Walk")]}),Oe.jsxs("mi-dropdown-item",{value:Uh.DRIVING,children:[Oe.jsx(DL,{}),w("Drive")]}),Oe.jsxs("mi-dropdown-item",{value:Uh.BICYCLING,children:[Oe.jsx(SL,{}),w("Bike")]})]})})]}),Oe.jsx("hr",{}),Oe.jsxs("div",{className:"wayfinding__info",children:[Oe.jsxs("div",{className:"wayfinding__distance",children:[Ht===Uh.WALKING&&Oe.jsx(TL,{}),Ht===Uh.DRIVING&&Oe.jsx(DL,{}),Ht===Uh.BICYCLING&&Oe.jsx(SL,{}),Oe.jsxs("div",{children:[w("Distance"),":"]}),Oe.jsx("div",{className:"wayfinding__meters",children:U&&de&&Oe.jsx("mi-distance",{unit:F,meters:U})})]}),Oe.jsxs("div",{className:"wayfinding__time",children:[Oe.jsx(UZ,{}),Oe.jsxs("div",{children:[w("Estimated time"),":"]}),Oe.jsx("div",{className:"wayfinding__minutes",children:G&&de&&Oe.jsx("mi-time",{translations:JSON.stringify({days:w("d"),hours:w("h"),minutes:w("min")}),seconds:G})})]})]}),Oe.jsx("button",{className:"wayfinding__button",style:{background:we},onClick:()=>e(),disabled:!de,children:w("Go!")})]})]})}const cle="",ule="",KZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),XZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_v=kn({key:"activeStep",default:0}),vv=kn({key:"substepsToggled",default:!1}),JZ=kn({key:"triggerSubsteps",default:!1}),EL=xe.forwardRef(function(i,o){var we;const{totalSteps:u,activeStep:d,previous:_,originLocation:w,directions:a}=i,E=xe.useRef(),{t:j}=Po(),[Q,q]=sn(vv),[,W]=sn(JZ),le=Tu();xe.useImperativeHandle(o,()=>({openSubsteps(){E.current.openSubsteps()},closeSubsteps(){E.current.closeSubsteps()}}));const fe={walk:j("Walk"),bike:j("Bike"),transit:j("Transit"),drive:j("Drive"),destination:j("You have arrived"),leave:j("Leave"),from:j("From"),park:j("Park"),at:j("at"),building:j("Building"),venue:j("Venue"),takeStaircaseToLevel:j("Take staircase to level"),takeLadderToLevel:j("Take the ladder to level"),takeElevatorToLevel:j("Take elevator to level"),takeEscalatorToLevel:j("Take escalator to level"),takeWheelchairLiftToLevel:j("Take wheelchair lift to level"),takeWheelchairRampToLevel:j("Take wheelchair ramp to level"),exit:j("Exit"),enter:j("Enter"),stops:j("stops"),andContinue:j("and continue"),continueStraightAhead:j("Continue straight ahead"),goLeft:j("Go left"),goSharpLeft:j("Go sharp left"),goSlightLeft:j("Go slight left"),goRight:j("Go right"),goSharpRight:j("Go sharp right"),goSlightRight:j("Go slight right"),turnAround:j("Turn around"),days:j("d"),hours:j("h"),minutes:j("min"),rideTheBus:j("Ride the bus")};return xe.useEffect(()=>{const{current:$e}=E;function me(){W(!0),q(!Q)}return $e.addEventListener("substepsToggled",me),()=>{$e.removeEventListener("substepsToggled",me)}},[Q]),Oe.jsx("mi-route-instructions-step",{ref:E,"show-toggle-button":!le,step:JSON.stringify(u[d]),translations:JSON.stringify(fe),"destination-location":a==null?void 0:a.destinationLocation.properties.name,"from-travel-mode":(_==null?void 0:_.travel_mode)??"","from-route-context":(_==null?void 0:_.route_context)??((we=w==null?void 0:w.properties)==null?void 0:we.name)??""})});EL.propTypes={totalSteps:ct.array,activeStep:ct.number,previous:ct.object,originLocation:ct.object,directions:ct.object};const NL=kn({key:"isDestinationStep",default:!1});LL.propTypes={steps:ct.array,onNextStep:ct.func,onPreviousStep:ct.func,originLocation:ct.object,isOpen:ct.bool};function LL({steps:e,onNextStep:i,onPreviousStep:o,originLocation:u,isOpen:d}){const{t:_}=Po(),w=kf(),a=xe.useRef(),[E,j]=xe.useState(),[Q,q]=sn(_v),[W,le]=xe.useState(),fe=Ci(Fm),we=Ci(vv),[,$e]=sn(NL),me=Tu();xe.useEffect(()=>{le(e)},[e]),xe.useEffect(()=>{var oe,be;d&&(Q===(W==null?void 0:W.length)-1&&(fe!=null&&fe.destinationLocation)?$e(!0):$e(!1),we===!1?(oe=a.current)==null||oe.closeSubsteps():we===!0&&((be=a.current)==null||be.openSubsteps()))},[d,Q,W,we]);function ie(){j(W[Q]),q(Q+1),i()}function te(){j(W[Q-2]),q(Q-1),o()}return Oe.jsx("div",{className:"route-instructions prevent-scroll",...w,children:W&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(EL,{totalSteps:W,activeStep:Q,previous:E,directions:fe,originLocation:u,ref:a}),Oe.jsx("div",{className:`route-instructions__footer ${me?"route-instructions__footer--kiosk":""}`,children:Oe.jsxs("div",{className:"route-instructions__actions",children:[Oe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>te(),"aria-label":_("Previous"),disabled:Q===0,children:Oe.jsx(XZ,{})}),Oe.jsx("div",{className:"route-instructions__overview",children:_("StepYofX",{activeStep:Q+1,totalSteps:W.length})}),Oe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>ie(),"aria-label":_("Next"),disabled:Q===W.length-1,children:Oe.jsx(KZ,{})})]})})]})})}const zL=Object.freeze({minZoom:10});let ws;S4.propTypes={isOpen:ct.bool,onBack:ct.func,onSetSize:ct.func,onRouteFinished:ct.func,snapPointSwipedByUser:ct.string};function S4({isOpen:e,onBack:i,onSetSize:o,onRouteFinished:u,snapPointSwipedByUser:d}){const{t:_}=Po(),w=xe.useRef(),[a,E]=xe.useState(null),j=xe.useRef(null),[Q,q]=xe.useState(),W=Ci(ca),le=Ci(Um),fe=Ci(Fm),[,we]=sn(_v),[$e,me]=sn(vv),ie=Ci(Dl),te=Ja(),[,oe]=sn(gv),be=Ci(NL),_e=Ci(Sl),Je=Tu(),nt=Ci(fv),Ye=Ci(vL),xt=Ci(wc),dt=Ci(J_);xe.useEffect(()=>()=>{E(null)},[]),xe.useEffect(()=>{if(E(null),e&&fe){q(fe.totalTime);const k=Math.min(window.innerHeight,window.innerWidth)*.06;ws==null||ws.setRoute(null),ws=null,Promise.all([Pt(k),Tt(k)]).then(([F,U])=>{ws=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:W,fitBounds:!Je,fitBoundsPadding:Je?void 0:{top:k,bottom:F,left:U,right:k}}),ws.setRoute(fe.directionsResult).then(()=>{ws.setStepIndex(0)}),j.current.location=fe.destinationLocation,fe.destinationLocation.id==="USER_POSITION"?E(null):E(W.getDisplayRule(fe.destinationLocation)),Ht(null)})}},[e,fe,W,le]);function Pt(k){return new Promise(F=>{if(te)ie?rv().then(U=>F(U)):F(k);else return Af().then(U=>F(U))})}function Tt(k){return new Promise(F=>{te?ie?F(k):Ph().then(U=>F(U)):F(k)})}xe.useEffect(()=>{!e&&ws&&($t(),Ht(zL.minZoom))},[e]);function ci(){return fe?fe.directionsResult.legs.reduce((k,F)=>{for(const U in F.steps){const G=F.steps[U];k.push(G)}return k},[]):[]}function Ot(){ws&&ws.nextStep()}function wt(){ws&&ws.previousStep()}function $t(){ws==null||ws.setRoute(null),ws=null}function St(){we(0),me(!1),ne(qn.FIT)}function Ht(k){dt==="mapbox"?W.getMapView().getMap().setMinZoom(k):dt==="google"&&W.getMapView().getMap().setOptions({minZoom:k})}function Z(){St(),$t(),i()}function ne(k){typeof o=="function"&&o(k)}function T(){const k=`${Ye}&directionsFrom=${ie.id}&directionsTo=${xt.id}`;oe(k)}return xe.useEffect(()=>(w.current=requestAnimationFrame(()=>{ne($e?qn.MAX:qn.FIT)}),()=>{w.current&&cancelAnimationFrame(w.current)}),[$e]),xe.useEffect(()=>{e&&d&&me(d===qn.MAX)},[e,d]),Oe.jsxs("div",{className:"directions",style:{display:Je?"block":"grid"},children:[Oe.jsxs("div",{className:"directions__steps",children:[Oe.jsx("div",{className:"directions__minutes",children:Q&&Oe.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:Q})}),Oe.jsx(LL,{steps:ci(),originLocation:fe==null?void 0:fe.originLocation,onNextStep:()=>Ot(),isOpen:e,onPreviousStep:()=>wt()})]}),Je&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("hr",{}),Oe.jsxs("div",{className:"directions__kiosk",children:[Oe.jsx(T4,{onAccessibilityChanged:()=>St()}),Oe.jsxs("button",{className:"directions__qr-code",onClick:()=>T(),"aria-label":_("Scan QR code to view route on phone"),children:[Oe.jsx(xL,{}),_("Scan QR code")]})]})]}),Oe.jsxs("div",{className:"directions__actions",children:[Oe.jsx("div",{className:"directions__details",children:(fe==null?void 0:fe.destinationLocation)&&Oe.jsxs("div",{className:"directions__info",children:[a&&fe.destinationLocation.id!=="USER_POSITION"&&Oe.jsx("div",{className:"directions__icon",children:Oe.jsx("img",{alt:"",src:a.icon.src?a.icon.src:a.icon})}),Oe.jsxs("div",{className:"directions__content",children:[Oe.jsx("div",{className:"directions__name",children:fe==null?void 0:fe.destinationLocation.properties.name}),Oe.jsx("mi-location-info",{ref:j,"show-external-id":nt})]})]})}),be?Oe.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:_e},children:_("Finish route")}):Oe.jsx("button",{className:"directions__cancel",onClick:()=>Z(),children:_("Cancel route")})]})]})}const hle="",OL=kn({key:"useKeyboard",default:!1}),kL=xe.forwardRef(function(i,o){const{searchInputElement:u}=i,d=xe.useRef(),_=Ci(Vh);return xe.useImperativeHandle(o,()=>({clearInputField(){d.current.clearInputField()}})),xe.useEffect(()=>{const{current:w}=d;u&&(w.inputElement=u)},[u]),Oe.jsx("mi-keyboard",{language:_,ref:d})});kL.propTypes={searchInputElement:ct.instanceOf(HTMLInputElement)};const xv=kn({key:"searchResults",default:[]}),A4=kn({key:"selectedCategory",default:void 0}),dle="";function eW(){return new Promise(e=>{const i=document.querySelector(".chip--active");if(i)e(i);else{const o=new MutationObserver(()=>{const u=document.querySelector(".chip--active");u&&(o.disconnect(),e(u))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const tW=kn({key:"isBottomSheetLoaded",default:!1}),jL=kn({key:"category",default:void 0}),PL=e=>xe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),iW=e=>xe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));C4.propTypes={onSetSize:ct.func,getFilteredLocations:ct.func,searchFieldRef:ct.object,isOpen:ct.bool,topLevelCategory:ct.bool,handleBack:ct.func,selectedCategoriesArray:ct.object,categoryOrientation:ct.oneOf(["horizontal","vertical"])};function C4({onSetSize:e,getFilteredLocations:i,searchFieldRef:o,isOpen:u,topLevelCategory:d,handleBack:_,selectedCategoriesArray:w,categoryOrientation:a}){const E=Ci(Om),j=Ja(),[Q,q]=sn(A4),[,W]=sn(xv),[,le]=sn(tv),fe=kf(),[we,$e]=xe.useState(),me=Ci(tW),ie=Ci(jL),te=Ci(ca),oe=mL(te,u),[be,_e]=xe.useState([]),[Je,nt]=xe.useState([]),{t:Ye}=Po(),xt=Tu(),dt=xe.useRef(null),[Pt,Tt]=xe.useState(!1),[ci,Ot]=xe.useState(!1),wt=k=>{Ht&&dt.current&&dt.current.scrollBy({left:k==="left"?-200:200,behavior:"smooth"})},$t=()=>{if(dt.current){const{scrollLeft:k,scrollWidth:F,clientWidth:U}=dt.current,G=k<=0,re=k>=F-U-1;Tt(!G),Ot(!re)}},St=!d&&be.length===0,Ht=xt&&a==="horizontal"&&!St;xe.useEffect(()=>{if(!Ht)return;const k=dt.current;if(k)return $t(),k.addEventListener("scroll",$t),()=>{k.removeEventListener("scroll",$t)}},[Ht,be.length]);const Z=`categories prevent-scroll${xt?` categories--kiosk-${a||"vertical"}`:""}`;function ne(k){typeof e=="function"&&e(k)}function T(k){q(k),Q===k?(W([]),q(null),le([]),o.current.getValue()&&o.current.triggerSearch()):o.current.getValue()?o.current.triggerSearch():i(k)}return xe.useEffect(()=>{var k;oe&&Q&&(q(null),W([]),le([]),(k=o.current)!=null&&k.getValue()&&o.current.clear())},[oe]),xe.useEffect(()=>{Q&&(eW().then(k=>$e(k)),ne(qn.MAX))},[Q]),xe.useEffect(()=>{we&&ie!==void 0&&(j||!j&&me)&&we.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[we,ie,me]),xe.useEffect(()=>{var U,G,re;let k=[];if(d){const de=E.flatMap(([,ue])=>ue.childKeys||[]);k=E.filter(([ue])=>!de.includes(ue))}else if(Q){const de=(U=E.find(([Me])=>Me===Q))==null?void 0:U[1],ue=(de==null?void 0:de.childKeys)||[];k=E.filter(([Me])=>ue.includes(Me))}_e(k);const F=(re=(G=E.find(([de])=>de===Q))==null?void 0:G[1])==null?void 0:re.displayName;nt(F)},[E]),Oe.jsx("div",{className:Z,...fe,children:E.length>0&&Oe.jsxs(Oe.Fragment,{children:[!d&&Oe.jsxs("div",{className:"categories__nav",children:[Oe.jsx("button",{"aria-label":Ye("Back"),type:"button",className:"categories__nav-button",onClick:_,children:Oe.jsx(PL,{})}),Oe.jsx("div",{children:Je})]}),Oe.jsxs("div",{className:"categories__row",children:[Ht&&Oe.jsx("div",{className:"categories__chevron categories__chevron--left",children:Oe.jsx("button",{"aria-label":Ye("Previous categories"),type:"button",disabled:!Pt,onClick:()=>wt("left"),children:Oe.jsx(PL,{})})}),Oe.jsx("div",{className:"categories__list",ref:xt?dt:void 0,children:be.map(([k,F])=>!d&&w.current.length!==1?null:Oe.jsx("div",{className:"categories__category",children:Oe.jsxs("button",{onClick:()=>d?T(k):i(k),children:[Oe.jsx("img",{src:F.iconUrl,alt:""}),F.displayName]})},k))}),Ht&&Oe.jsx("div",{className:"categories__chevron categories__chevron--right",children:Oe.jsx("button",{"aria-label":Ye("Next categories"),type:"button",disabled:!ci,onClick:()=>wt("right"),children:Oe.jsx(iW,{})})})]})]})})}const nW=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),xe.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),wv=kn({key:"isLegendDialogVisible",default:!1}),RL=R_({key:"legendFields",get:({get:e})=>{const i=e(Dl);if(!(i!=null&&i.properties.fields))return;const o=[];for(const d of Object.keys(i.properties.fields)){const _=parseInt(d.charAt(0));if(!Number.isInteger(_))continue;const w=o.find(j=>j.index===_),a=d.toLowerCase().includes("legendheading"),E=d.toLowerCase().includes("legendcontent");if(w)a?w.heading=i.properties.fields[d].value:E&&(w.content=i.properties.fields[d].value);else{const j={index:_,heading:a?i.properties.fields[d].value:null,content:E?i.properties.fields[d].value:null};o.push(j)}}return o.sort((d,_)=>d.index-_.index)}}),E4=kn({key:"initialVenueName",default:null});N4.propTypes={categories:ct.array,onSetSize:ct.func,isOpen:ct.bool};function N4({onSetSize:e,isOpen:i}){const o=Ci(Rh),{t:u}=Po(),d=xe.useRef(),_=xe.useRef(),w=xe.useRef(),a=xe.useRef(),E=xe.useRef(),j=100,[Q,q]=sn(xv),W=Ci(Om),le=Ci(OL),[fe,we]=xe.useState(!1),[$e,me]=sn(A4),ie=kf(),[te,oe]=xe.useState(),be=Ci(ca),[,_e]=sn(tv),[,Je]=sn(wc),[,nt]=sn(hv),[Ye,xt]=sn(Mu),dt=Ci(Vh),Pt=Ja(),Tt=Ci(Dl),[ci,Ot]=xe.useState(!1),wt=Ci(b4),$t=Tu(),[,St]=sn(wv),[Ht,Z]=xe.useState(!1),ne=Ci(RL),T=Ci(pv),k=Ci(km),F=Ci(E4),[U,G]=xe.useState(!1),re=xe.useRef([]),[de,ue]=xe.useState([]),[Me,Fe]=xe.useState(!1);function et(){var jt,kt,Pi;re.current.length===1?(me(null),q([]),_e([]),Ke(qn.FIT),G(!0),((kt=(jt=a.current)==null?void 0:jt.getValue())==null?void 0:kt.trim())?a.current.triggerSearch():(Pi=a.current)==null||Pi.clear(),re.current.pop()):(re.current.pop(),me(re.current[0]))}function Ue(jt){var kt;re.current.includes(jt)||re.current.push(jt),$e&&(me([]),q([]),_e([])),me(jt),window.mapsindoors.services.LocationsService.getLocations({categories:jt,venue:T||(kt=k.find(Pi=>Pi.name.toLowerCase()===Ye.toLowerCase()))==null?void 0:kt.name}).then(Pi=>mt(Pi,!0))}function Ke(jt){typeof e=="function"&&e(jt)}function Ve(jt){return $e?[...jt].sort((kt,Pi)=>{var Ai,$i;return(((Ai=kt.properties)==null?void 0:Ai.name)||"").localeCompare((($i=Pi.properties)==null?void 0:$i.name)||"",void 0,{numeric:!0})}):jt}function mt(jt,kt=!1){var Ai;const Pi=jt.slice(0,j);Ke(qn.MAX),q(Pi),_e(Pi),we(Pi.length===0),jt&&kt&&yt(jt),$t&&((Ai=d.current)==null||Ai.addEventListener("transitionend",()=>{var $i;($i=_==null?void 0:_.current)==null||$i.updateScrollButtons()},{once:!0}))}function yt(jt){if(!be.goTo)return;const kt=be.getFloor(),Pi={type:"FeatureCollection",features:jt.filter(Ai=>parseInt(Ai.properties.floor,10)===parseInt(kt,10)).filter(Ai=>Ai.properties.venueId.toLowerCase()===Ye.toLowerCase()).map(Ai=>({type:"Feature",geometry:Ai.geometry,properties:Ai.properties}))};Pi.features.length>0&&Promise.all([ui(),Wt()]).then(([Ai,$i])=>{be.goTo(Pi,{maxZoom:22,padding:{bottom:Ai,left:$i,top:0,right:0}})})}function Mt(){q([]),we(!1),$e&&Ue($e),_e([]),jr(E.current)||E.current.clearInputField()}function Et(){a.current.getInputField();const jt=d.current.closest(".sheet");jt?jt.addEventListener("transitionend",()=>{a.current.focusInput(),G(!0)},{once:!0}):(a.current.focusInput(),G(!0))}function di(jt){oe(jt)}function qt(jt){Je(jt),jt.properties.venueId.toLowerCase()!==Ye.toLowerCase()&&(xt(jt.properties.venueId),nt(!0));const kt=be.getFloor(),Pi=jt.properties.floor;Pi!==kt&&be.setFloor(Pi),Promise.all([ui(),Wt()]).then(([Ai,$i])=>{be.goTo(jt,{maxZoom:22,padding:{bottom:Ai,left:$i,top:0,right:0}})})}function ui(){return new Promise(jt=>{Pt?Tt?rv().then(kt=>jt(kt)):jt(0):jt(200)})}function Wt(){return new Promise(jt=>{Pt?Tt?jt(0):Ph().then(kt=>jt(kt)):jt(0)})}function wi(){if(Q.length>0){let jt;return Pt?jt=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":jt="100%",{display:"flex",flexDirection:"column",maxHeight:jt,overflow:"hidden"}}}function Ei(){return $t&&Me}return xe.useEffect(()=>{const jt=[".search__info",".search__back-button",".categories",".sheet__content"],kt=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],Pi=Ai=>{const $i=jt.some(tn=>Ai.target.closest(tn)),xn=kt.some(tn=>Ai.target.closest(tn)),fn=Ai.target.closest(".search__results");$i?(Ke(qn.MAX),w.current=requestAnimationFrame(()=>{G(!0)})):!fn&&!xn&&(G(!1),Ke(qn.MIN),me(null),q([]),_e([]),re.current=[])};return i?w.current=requestAnimationFrame(()=>{document.addEventListener("click",Pi)}):document.removeEventListener("click",Pi),()=>{document.removeEventListener("click",Pi),w.current&&cancelAnimationFrame(w.current)}},[i]),xe.useEffect(()=>()=>{oe()},[]),xe.useEffect(()=>{i&&!$e&&(Q.length>0||re.current.length>0)&&(q([]),_e([]),we(!1),re.current=[],a.current&&a.current.clear())},[i,$e,Q.length]),xe.useEffect(()=>{$e&&Ye!==F&&(q([]),me(null))},[Ye]),xe.useEffect(()=>{$e&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{a.current.triggerSearch()})},[dt]),xe.useEffect(()=>(be==null||be.on("mouseenter",di),()=>{be==null||be.off("mouseenter",di)}),[be]),xe.useEffect(()=>{if(i&&$t&&Q.length>0){const jt=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=jt}},[Q,i]),xe.useEffect(()=>{if(le){const jt=kt=>{kt.target.closest("mi-keyboard")||kt.target.tagName.toUpperCase()==="MI-SEARCH"||kt.target.tagName.toUpperCase()==="INPUT"?Ot(!0):Ot(!1)};return window.addEventListener("click",jt,!1),()=>{window.removeEventListener("click",jt,!1)}}},[le]),xe.useEffect(()=>{$e&&Ue($e)},[$e]),xe.useEffect(()=>{Tt&&Z(ne.length>0)},[Tt]),xe.useEffect(()=>{var kt,Pi;const jt=((Pi=(kt=W.find(([Ai])=>Ai===$e))==null?void 0:kt[1])==null?void 0:Pi.childKeys)||[];ue(jt)},[W,$e]),xe.useEffect(()=>{var jt,kt;Fe(((jt=o==null?void 0:o.appSettings)==null?void 0:jt.areHorizontalCategoriesEnabled)===!0||((kt=o==null?void 0:o.appSettings)==null?void 0:kt.areHorizontalCategoriesEnabled)==="true")},[o]),Oe.jsxs("div",{className:"search",ref:d,style:wi(),children:[Oe.jsxs("div",{className:"search__info",style:{gridTemplateColumns:$t&&Ht?"min-content 1fr":"auto"},children:[$t&&Ht&&Oe.jsx("button",{className:"search__legend",onClick:()=>St(!0),"aria-label":u("Show legend"),children:Oe.jsx(nW,{})}),Oe.jsxs("label",{className:"search__label",children:[Oe.jsx("span",{children:u("Search by name, category, building...")}),Oe.jsx(yv,{ref:a,mapsindoors:!0,placeholder:u("Search by name, category, building..."),results:jt=>mt(jt),clicked:()=>Et(),cleared:()=>Mt(),category:$e,disabled:!i})]})]}),(Ei()||U)&&!fe&&W.length>0&&Q.length===0&&Oe.jsx(C4,{onSetSize:e,searchFieldRef:a,getFilteredLocations:jt=>Ue(jt),isOpen:!!$e,topLevelCategory:!0,categoryOrientation:Me?"horizontal":"vertical"}),fe&&Oe.jsxs("p",{className:"search__error",children:[" ",u("Nothing was found")]}),Q.length>0&&Oe.jsxs("div",{className:"search__results prevent-scroll",...ie,children:[$e&&Oe.jsx(C4,{handleBack:et,getFilteredLocations:jt=>Ue(jt),onLocationClicked:qt,childKeys:de,topLevelCategory:!1,selectedCategoriesArray:re,categoryOrientation:Me?"horizontal":"vertical"}),Ve(Q).map(jt=>Oe.jsx(mv,{location:jt,locationClicked:()=>qt(jt),isHovered:(jt==null?void 0:jt.id)===(te==null?void 0:te.id)},jt.id))]}),ci&&Pt&&Oe.jsx(kL,{ref:E,searchInputElement:wt}),i&&$t&&Q.length>0&&_u.createPortal(Oe.jsx("div",{className:"search__scroll-buttons",children:Oe.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const fle="";L4.propTypes={onLocationClick:ct.func.isRequired,onBack:ct.func.isRequired,locations:ct.arrayOf(ct.object),onSetSize:ct.func};function L4({onBack:e,onLocationClick:i,locations:o,onSetSize:u}){const{t:d}=Po(),_=kf();function w(a){typeof u=="function"&&u(a)}return xe.useEffect(()=>{w(qn.FIT)},[]),Oe.jsxs("div",{className:"locations-list",children:[Oe.jsxs("div",{className:"locations-list__header",children:[Oe.jsxs("div",{className:"locations-list__title",children:[o==null?void 0:o.length," ",d("Locations")]}),Oe.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":d("Close"),children:Oe.jsx(Rm,{})})]}),Oe.jsx("div",{className:"locations-list__scrollable prevent-scroll",..._,children:Oe.jsx("div",{className:"locations-list__list",children:o==null?void 0:o.map(a=>Oe.jsx(mv,{location:a,locationClicked:E=>i(E)},a.id))})})]})}BL.propTypes={directionsFromLocation:ct.string,directionsToLocation:ct.string,pushAppView:ct.func.isRequired,currentAppView:ct.string,appViews:ct.object,onRouteFinished:ct.func.isRequired};function BL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const w=xe.useRef(),a=xe.useRef(),E=xe.useRef(),j=xe.useRef(),Q=xe.useRef(),q=xe.useRef(),[W,le]=sn(wc),[fe,we]=xe.useState(!1),[$e,me]=sn(iv),[,ie]=sn(ov);xe.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):W?o(d.LOCATION_DETAILS,W):($e==null?void 0:$e.length)>1?o(d.EXTERNALIDS):($e==null?void 0:$e.length)===1?(le($e[0]),ie($e[0].id)):o(d.SEARCH))},[W,e,i,$e]),xe.useEffect(()=>{if(W){const _e=W.properties.imageURL||W.properties.description||W.properties.additionalDetails||Object.keys(W.properties.categories).length>0;we(_e)}},[W]);function te(){($e==null?void 0:$e.length)>1?(o(d.EXTERNALIDS),le()):($e==null?void 0:$e.length)===1?(o(d.SEARCH),le(),me([]),a.current.setSnapPoint(qn.MIN)):(o(d.SEARCH),le(),a.current.setSnapPoint(qn.MIN))}function oe(){o(d.SEARCH),le(),me([])}const be=[Oe.jsx(Of,{minimizedHeight:80,initialSnapPoint:qn.MIN,isOpen:u===d.SEARCH,ref:a,children:Oe.jsx(N4,{isOpen:u===d.SEARCH,onSetSize:_e=>a.current.setSnapPoint(_e)})},"SEARCH"),Oe.jsx(Of,{minimizedHeight:200,isOpen:u===d.EXTERNALIDS,initialSnapPoint:qn.MIN,ref:E,children:Oe.jsx(L4,{onSetSize:_e=>E.current.setSnapPoint(_e),onBack:()=>oe(),locations:$e,onLocationClick:_e=>le(_e)})},"EXTERNALIDS"),Oe.jsx(Of,{minimizedHeight:fe?180:136,initialSnapPoint:qn.MIN,isOpen:u===d.LOCATION_DETAILS,ref:j,children:Oe.jsx(w4,{onSetSize:_e=>j.current.setSnapPoint(_e),onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>te(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Oe.jsx(Of,{minimizedHeight:190,initialSnapPoint:qn.FIT,isOpen:u===d.WAYFINDING,ref:Q,children:Oe.jsx(D4,{onSetSize:_e=>Q.current.setSnapPoint(_e),onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(W?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Oe.jsx(Of,{minimizedHeight:273,isOpen:u===d.DIRECTIONS,initialSnapPoint:qn.FIT,ref:q,children:Oe.jsx(S4,{onSetSize:_e=>q.current.setSnapPoint(_e),isOpen:u===d.DIRECTIONS,onBack:()=>o(d.WAYFINDING),onRouteFinished:()=>_()})},"DIRECTIONS")];return Oe.jsx("div",{ref:w,className:"bottom-sheets",children:Oe.jsx(lL.Provider,{value:w,children:be})})}const rW={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},oW=()=>{const[e,i]=xe.useState(void 0),[o,u]=xe.useState(),[d,_]=xe.useState(null);xe.useEffect(()=>{function j(Q){var q,W;i((q=Q.state)==null?void 0:q.value),u((W=Q.state)==null?void 0:W.payload)}return window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}},[]);const w=(j,Q)=>{window.history.pushState({value:j,payload:Q},""),i(j),d===null&&_({value:j,payload:Q})};return[w,()=>{window.history.back()},e,o,rW,()=>{w(d.value,d.payload)}]},sW=kn({key:"showQRCodeDialog",default:!1});function aW(){const e=Ci(E4),[,i]=sn(Mu),o=Mo(_v),u=Mo(wc),d=Mo(Fm),_=Mo(dv),w=Mo(hv),a=Mo(zm),E=Mo(sW),j=Mo(vv),Q=Mo(Um),q=Mo(xv),W=Mo(Vm),le=Mo(wv),fe=Mo(SN),we=Mo(J3);return()=>{o(),u(),d(),_(),w(),a(),E(),j(),Q(),q(),W(),le(),fe(),we(),e&&i(e)}}const ple="";jf.propTypes={children:ct.node,isOpen:ct.bool};function jf({children:e,isOpen:i}){const[o,u]=xe.useState(!1),d=Ci(Dl),_=xe.useRef(),w=xe.useRef();return xe.useEffect(()=>{if(!w)return;const a=new MutationObserver(()=>{var Q;const E=w.current.clientHeight,j=(Q=_.current)==null?void 0:Q.clientHeight;u(E>j)});return a.observe(w.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[w]),Oe.jsx("div",{ref:_,className:`modal ${i?"modal--open":""} ${o?"modal--full":""} ${d?"modal--kiosk":""}`,children:Oe.jsx("div",{ref:w,className:"modal__content",children:e})})}FL.propTypes={directionsFromLocation:ct.string,directionsToLocation:ct.string,pushAppView:ct.func,currentAppView:ct.string,appViews:ct.object,filteredLocationsByExternalIDs:ct.array,onRouteFinished:ct.func};function FL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const[w,a]=sn(wc),[E,j]=sn(iv),[,Q]=sn(ov),q=Ci(Dl);xe.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):w?o(d.LOCATION_DETAILS,w):(E==null?void 0:E.length)>1?o(d.EXTERNALIDS):(E==null?void 0:E.length)===1?(a(E[0]),Q(E[0].id)):o(d.SEARCH))},[w,e,i,E]);function W(){(E==null?void 0:E.length)>1?(o(d.EXTERNALIDS),a()):(E==null?void 0:E.length)===1?(o(d.SEARCH),a(),j([])):(o(d.SEARCH),a())}function le(){o(d.SEARCH),a(),j([])}function fe(){o(q?d.LOCATION_DETAILS:d.WAYFINDING)}const we=[Oe.jsx(jf,{isOpen:u===d.SEARCH,children:Oe.jsx(N4,{isOpen:u===d.SEARCH})},"SEARCH"),Oe.jsx(jf,{isOpen:u===d.EXTERNALIDS,children:Oe.jsx(L4,{onBack:()=>le(),locations:E,onLocationClick:$e=>a($e)})},"EXTERNALIDS"),Oe.jsx(jf,{isOpen:u===d.LOCATION_DETAILS,children:Oe.jsx(w4,{onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>W(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Oe.jsx(jf,{isOpen:u===d.WAYFINDING,children:Oe.jsx(D4,{onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(w?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Oe.jsx(jf,{isOpen:u===d.DIRECTIONS,children:Oe.jsx(S4,{isOpen:u===d.DIRECTIONS,onBack:()=>fe(),onRouteFinished:()=>_()})},"DIRECTIONS")];return Oe.jsx("div",{children:we})}const UL=e=>{const[i,o]=xe.useState(),u=Ci(X_),d=Ci(bN);return xe.useEffect(()=>{d&&e&&(e==="USER_POSITION"&&!u?(o("USER_POSITION_PENDING"),d.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(_=>o(_)),u&&e==="USER_POSITION"&&o(M4(u)))},[e,u,d]),i},lW=kn({key:"gmMapId",default:null}),gle="";function cW(){const e=Ci(zm),i=xe.useRef();return xe.useEffect(()=>{var o;(o=i.current)==null||o.classList.add("notification"),e?i.current.push(e.text,e.type,!0):i.current.clearAll()},[e]),Oe.jsx("mi-notification",{ref:i,position:"top-center"})}const mle="";var Qm={},uW=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},VL={},ua={};let z4;const hW=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ua.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},ua.getSymbolTotalCodewords=function(i){return hW[i]},ua.getBCHDigit=function(e){let i=0;for(;e!==0;)i++,e>>>=1;return i},ua.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');z4=i},ua.isKanjiModeEnabled=function(){return typeof z4<"u"},ua.toSJIS=function(i){return z4(i)};var bv={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+o)}}e.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},e.from=function(u,d){if(e.isValid(u))return u;try{return i(u)}catch{return d}}})(bv);function QL(){this.buffer=[],this.length=0}QL.prototype={get:function(e){const i=Math.floor(e/8);return(this.buffer[i]>>>7-e%8&1)===1},put:function(e,i){for(let o=0;o<i;o++)this.putBit((e>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),e&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var dW=QL;function Hm(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Hm.prototype.set=function(e,i,o,u){const d=e*this.size+i;this.data[d]=o,u&&(this.reservedBit[d]=!0)},Hm.prototype.get=function(e,i){return this.data[e*this.size+i]},Hm.prototype.xor=function(e,i,o){this.data[e*this.size+i]^=o},Hm.prototype.isReserved=function(e,i){return this.reservedBit[e*this.size+i]};var fW=Hm,HL={};(function(e){const i=ua.getSymbolSize;e.getRowColCoords=function(u){if(u===1)return[];const d=Math.floor(u/7)+2,_=i(u),w=_===145?26:Math.ceil((_-13)/(2*d-2))*2,a=[_-7];for(let E=1;E<d-1;E++)a[E]=a[E-1]-w;return a.push(6),a.reverse()},e.getPositions=function(u){const d=[],_=e.getRowColCoords(u),w=_.length;for(let a=0;a<w;a++)for(let E=0;E<w;E++)a===0&&E===0||a===0&&E===w-1||a===w-1&&E===0||d.push([_[a],_[E]]);return d}})(HL);var $L={};const pW=ua.getSymbolSize,YL=7;$L.getPositions=function(i){const o=pW(i);return[[0,0],[o-YL,0],[0,o-YL]]};var GL={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},e.from=function(d){return e.isValid(d)?parseInt(d,10):void 0},e.getPenaltyN1=function(d){const _=d.size;let w=0,a=0,E=0,j=null,Q=null;for(let q=0;q<_;q++){a=E=0,j=Q=null;for(let W=0;W<_;W++){let le=d.get(q,W);le===j?a++:(a>=5&&(w+=i.N1+(a-5)),j=le,a=1),le=d.get(W,q),le===Q?E++:(E>=5&&(w+=i.N1+(E-5)),Q=le,E=1)}a>=5&&(w+=i.N1+(a-5)),E>=5&&(w+=i.N1+(E-5))}return w},e.getPenaltyN2=function(d){const _=d.size;let w=0;for(let a=0;a<_-1;a++)for(let E=0;E<_-1;E++){const j=d.get(a,E)+d.get(a,E+1)+d.get(a+1,E)+d.get(a+1,E+1);(j===4||j===0)&&w++}return w*i.N2},e.getPenaltyN3=function(d){const _=d.size;let w=0,a=0,E=0;for(let j=0;j<_;j++){a=E=0;for(let Q=0;Q<_;Q++)a=a<<1&2047|d.get(j,Q),Q>=10&&(a===1488||a===93)&&w++,E=E<<1&2047|d.get(Q,j),Q>=10&&(E===1488||E===93)&&w++}return w*i.N3},e.getPenaltyN4=function(d){let _=0;const w=d.data.length;for(let E=0;E<w;E++)_+=d.data[E];return Math.abs(Math.ceil(_*100/w/5)-10)*i.N4};function o(u,d,_){switch(u){case e.Patterns.PATTERN000:return(d+_)%2===0;case e.Patterns.PATTERN001:return d%2===0;case e.Patterns.PATTERN010:return _%3===0;case e.Patterns.PATTERN011:return(d+_)%3===0;case e.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(_/3))%2===0;case e.Patterns.PATTERN101:return d*_%2+d*_%3===0;case e.Patterns.PATTERN110:return(d*_%2+d*_%3)%2===0;case e.Patterns.PATTERN111:return(d*_%3+(d+_)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}e.applyMask=function(d,_){const w=_.size;for(let a=0;a<w;a++)for(let E=0;E<w;E++)_.isReserved(E,a)||_.xor(E,a,o(d,E,a))},e.getBestMask=function(d,_){const w=Object.keys(e.Patterns).length;let a=0,E=1/0;for(let j=0;j<w;j++){_(j),e.applyMask(j,d);const Q=e.getPenaltyN1(d)+e.getPenaltyN2(d)+e.getPenaltyN3(d)+e.getPenaltyN4(d);e.applyMask(j,d),Q<E&&(E=Q,a=j)}return a}})(GL);var Mv={};const Du=bv,Iv=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Tv=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Mv.getBlocksCount=function(i,o){switch(o){case Du.L:return Iv[(i-1)*4+0];case Du.M:return Iv[(i-1)*4+1];case Du.Q:return Iv[(i-1)*4+2];case Du.H:return Iv[(i-1)*4+3];default:return}},Mv.getTotalCodewordsCount=function(i,o){switch(o){case Du.L:return Tv[(i-1)*4+0];case Du.M:return Tv[(i-1)*4+1];case Du.Q:return Tv[(i-1)*4+2];case Du.H:return Tv[(i-1)*4+3];default:return}};var ZL={},Dv={};const $m=new Uint8Array(512),Sv=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)$m[o]=i,Sv[i]=o,i<<=1,i&256&&(i^=285);for(let o=255;o<512;o++)$m[o]=$m[o-255]})(),Dv.log=function(i){if(i<1)throw new Error("log("+i+")");return Sv[i]},Dv.exp=function(i){return $m[i]},Dv.mul=function(i,o){return i===0||o===0?0:$m[Sv[i]+Sv[o]]},function(e){const i=Dv;e.mul=function(u,d){const _=new Uint8Array(u.length+d.length-1);for(let w=0;w<u.length;w++)for(let a=0;a<d.length;a++)_[w+a]^=i.mul(u[w],d[a]);return _},e.mod=function(u,d){let _=new Uint8Array(u);for(;_.length-d.length>=0;){const w=_[0];for(let E=0;E<d.length;E++)_[E]^=i.mul(d[E],w);let a=0;for(;a<_.length&&_[a]===0;)a++;_=_.slice(a)}return _},e.generateECPolynomial=function(u){let d=new Uint8Array([1]);for(let _=0;_<u;_++)d=e.mul(d,new Uint8Array([1,i.exp(_)]));return d}}(ZL);const WL=ZL;function O4(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}O4.prototype.initialize=function(i){this.degree=i,this.genPoly=WL.generateECPolynomial(this.degree)},O4.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(i.length+this.degree);o.set(i);const u=WL.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const _=new Uint8Array(this.degree);return _.set(u,d),_}return u};var gW=O4,qL={},Su={},k4={};k4.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};var Al={};const KL="[0-9]+",mW="[A-Z $%*+\\-./:]+";let Ym="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ym=Ym.replace(/u/g,"\\u");const yW="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ym+`)(?:.|[\r
43
+ hot module replacement.`;console.warn(i)}}function bB(e){pf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&wB(e.key),Lh.set(e.key,e);const i=e.set==null?new gf.RecoilValueReadOnly(e.key):new gf.RecoilState(e.key);return a3.set(e.key,i),i}class YA extends Error{}function MB(e){const i=Lh.get(e);if(i==null)throw new YA(`Missing definition for RecoilValue: "${e}""`);return i}function IB(e){return Lh.get(e)}const f_=new Map;function TB(e){var i;if(!qr("recoil_memory_managament_2020"))return;const o=Lh.get(e);if(o!=null&&(i=o.shouldDeleteConfigOnRelease)!==null&&i!==void 0&&i.call(o)){var u;Lh.delete(e),(u=GA(e))===null||u===void 0||u(),f_.delete(e)}}function DB(e,i){qr("recoil_memory_managament_2020")&&(i===void 0?f_.delete(e):f_.set(e,i))}function GA(e){return f_.get(e)}var Ws={nodes:Lh,recoilValues:a3,registerNode:bB,getNode:MB,getNodeMaybe:IB,deleteNodeConfigIfPossible:TB,setConfigDeletionHandler:DB,getConfigDeletionHandler:GA,recoilValuesForKeys:xB,NodeMissingError:YA,DefaultValue:$A,DEFAULT_VALUE:vB};function SB(e,i){i()}var AB={enqueueExecution:SB};function CB(e,i){return i={exports:{}},e(i,i.exports),i.exports}var EB=CB(function(e){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},o={},u=5,d=Math.pow(2,u),_=d-1,w=d/2,a=d/4,E={},j=function(ft){return function(){return ft}},Q=o.hash=function(vt){var ft=typeof vt>"u"?"undefined":i(vt);if(ft==="number")return vt;ft!=="string"&&(vt+="");for(var si=0,Zt=0,ti=vt.length;Zt<ti;++Zt){var yi=vt.charCodeAt(Zt);si=(si<<5)-si+yi|0}return si},q=function(ft){return ft-=ft>>1&1431655765,ft=(ft&858993459)+(ft>>2&858993459),ft=ft+(ft>>4)&252645135,ft+=ft>>8,ft+=ft>>16,ft&127},W=function(ft,si){return si>>>ft&_},le=function(ft){return 1<<ft},fe=function(ft,si){return q(ft&si-1)},we=function(ft,si,Zt,ti){var yi=ti;if(!ft){var Di=ti.length;yi=new Array(Di);for(var Qi=0;Qi<Di;++Qi)yi[Qi]=ti[Qi]}return yi[si]=Zt,yi},$e=function(ft,si,Zt){var ti=Zt.length-1,yi=0,Di=0,Qi=Zt;if(ft)yi=Di=si;else for(Qi=new Array(ti);yi<si;)Qi[Di++]=Zt[yi++];for(++yi;yi<=ti;)Qi[Di++]=Zt[yi++];return ft&&(Qi.length=ti),Qi},me=function(ft,si,Zt,ti){var yi=ti.length;if(ft){for(var Di=yi;Di>=si;)ti[Di--]=ti[Di];return ti[si]=Zt,ti}for(var Qi=0,cn=0,Ji=new Array(yi+1);Qi<si;)Ji[cn++]=ti[Qi++];for(Ji[si]=Zt;Qi<yi;)Ji[++cn]=ti[Qi++];return Ji},ie=1,te=2,oe=3,be=4,_e={__hamt_isEmpty:!0},Je=function(ft){return ft===_e||ft&&ft.__hamt_isEmpty},nt=function(ft,si,Zt,ti){return{type:ie,edit:ft,hash:si,key:Zt,value:ti,_modify:St}},Ye=function(ft,si,Zt){return{type:te,edit:ft,hash:si,children:Zt,_modify:Ht}},xt=function(ft,si,Zt){return{type:oe,edit:ft,mask:si,children:Zt,_modify:Z}},dt=function(ft,si,Zt){return{type:be,edit:ft,size:si,children:Zt,_modify:ne}},Pt=function(ft){return ft===_e||ft.type===ie||ft.type===te},Tt=function(ft,si,Zt,ti,yi){for(var Di=[],Qi=ti,cn=0,Ji=0;Qi;++Ji)Qi&1&&(Di[Ji]=yi[cn++]),Qi>>>=1;return Di[si]=Zt,dt(ft,cn+1,Di)},ci=function(ft,si,Zt,ti){for(var yi=new Array(si-1),Di=0,Qi=0,cn=0,Ji=ti.length;cn<Ji;++cn)if(cn!==Zt){var wn=ti[cn];wn&&!Je(wn)&&(yi[Di++]=wn,Qi|=1<<cn)}return xt(ft,Qi,yi)},Ot=function vt(ft,si,Zt,ti,yi,Di){if(Zt===yi)return Ye(ft,Zt,[Di,ti]);var Qi=W(si,Zt),cn=W(si,yi);return xt(ft,le(Qi)|le(cn),Qi===cn?[vt(ft,si+u,Zt,ti,yi,Di)]:Qi<cn?[ti,Di]:[Di,ti])},wt=function(ft,si,Zt,ti,yi,Di,Qi,cn){for(var Ji=yi.length,wn=0;wn<Ji;++wn){var Dt=yi[wn];if(Zt(Qi,Dt.key)){var Vn=Dt.value,gr=Di(Vn);return gr===Vn?yi:gr===E?(--cn.value,$e(ft,wn,yi)):we(ft,wn,nt(si,ti,Qi,gr),yi)}}var xr=Di();return xr===E?yi:(++cn.value,we(ft,Ji,nt(si,ti,Qi,xr),yi))},$t=function(ft,si){return ft===si.edit},St=function(ft,si,Zt,ti,yi,Di,Qi){if(si(Di,this.key)){var cn=ti(this.value);return cn===this.value?this:cn===E?(--Qi.value,_e):$t(ft,this)?(this.value=cn,this):nt(ft,yi,Di,cn)}var Ji=ti();return Ji===E?this:(++Qi.value,Ot(ft,Zt,this.hash,this,yi,nt(ft,yi,Di,Ji)))},Ht=function(ft,si,Zt,ti,yi,Di,Qi){if(yi===this.hash){var cn=$t(ft,this),Ji=wt(cn,ft,si,this.hash,this.children,ti,Di,Qi);return Ji===this.children?this:Ji.length>1?Ye(ft,this.hash,Ji):Ji[0]}var wn=ti();return wn===E?this:(++Qi.value,Ot(ft,Zt,this.hash,this,yi,nt(ft,yi,Di,wn)))},Z=function(ft,si,Zt,ti,yi,Di,Qi){var cn=this.mask,Ji=this.children,wn=W(Zt,yi),Dt=le(wn),Vn=fe(cn,Dt),gr=cn&Dt,xr=gr?Ji[Vn]:_e,Ze=xr._modify(ft,si,Zt+u,ti,yi,Di,Qi);if(xr===Ze)return this;var K=$t(ft,this),ae=cn,he=void 0;if(gr&&Je(Ze)){if(ae&=~Dt,!ae)return _e;if(Ji.length<=2&&Pt(Ji[Vn^1]))return Ji[Vn^1];he=$e(K,Vn,Ji)}else if(!gr&&!Je(Ze)){if(Ji.length>=w)return Tt(ft,wn,Ze,cn,Ji);ae|=Dt,he=me(K,Vn,Ze,Ji)}else he=we(K,Vn,Ze,Ji);return K?(this.mask=ae,this.children=he,this):xt(ft,ae,he)},ne=function(ft,si,Zt,ti,yi,Di,Qi){var cn=this.size,Ji=this.children,wn=W(Zt,yi),Dt=Ji[wn],Vn=(Dt||_e)._modify(ft,si,Zt+u,ti,yi,Di,Qi);if(Dt===Vn)return this;var gr=$t(ft,this),xr=void 0;if(Je(Dt)&&!Je(Vn))++cn,xr=we(gr,wn,Vn,Ji);else if(!Je(Dt)&&Je(Vn)){if(--cn,cn<=a)return ci(ft,cn,wn,Ji);xr=we(gr,wn,_e,Ji)}else xr=we(gr,wn,Vn,Ji);return gr?(this.size=cn,this.children=xr,this):dt(ft,cn,xr)};_e._modify=function(vt,ft,si,Zt,ti,yi,Di){var Qi=Zt();return Qi===E?_e:(++Di.value,nt(vt,ti,yi,Qi))};function T(vt,ft,si,Zt,ti){this._editable=vt,this._edit=ft,this._config=si,this._root=Zt,this._size=ti}T.prototype.setTree=function(vt,ft){return this._editable?(this._root=vt,this._size=ft,this):vt===this._root?this:new T(this._editable,this._edit,this._config,vt,ft)};var k=o.tryGetHash=function(vt,ft,si,Zt){for(var ti=Zt._root,yi=0,Di=Zt._config.keyEq;;)switch(ti.type){case ie:return Di(si,ti.key)?ti.value:vt;case te:{if(ft===ti.hash)for(var Qi=ti.children,cn=0,Ji=Qi.length;cn<Ji;++cn){var wn=Qi[cn];if(Di(si,wn.key))return wn.value}return vt}case oe:{var Dt=W(yi,ft),Vn=le(Dt);if(ti.mask&Vn){ti=ti.children[fe(ti.mask,Vn)],yi+=u;break}return vt}case be:{if(ti=ti.children[W(yi,ft)],ti){yi+=u;break}return vt}default:return vt}};T.prototype.tryGetHash=function(vt,ft,si){return k(vt,ft,si,this)};var F=o.tryGet=function(vt,ft,si){return k(vt,si._config.hash(ft),ft,si)};T.prototype.tryGet=function(vt,ft){return F(vt,ft,this)};var U=o.getHash=function(vt,ft,si){return k(void 0,vt,ft,si)};T.prototype.getHash=function(vt,ft){return U(vt,ft,this)},o.get=function(vt,ft){return k(void 0,ft._config.hash(vt),vt,ft)},T.prototype.get=function(vt,ft){return F(ft,vt,this)};var G=o.has=function(vt,ft,si){return k(E,vt,ft,si)!==E};T.prototype.hasHash=function(vt,ft){return G(vt,ft,this)};var re=o.has=function(vt,ft){return G(ft._config.hash(vt),vt,ft)};T.prototype.has=function(vt){return re(vt,this)};var de=function(ft,si){return ft===si};o.make=function(vt){return new T(0,0,{keyEq:vt&&vt.keyEq||de,hash:vt&&vt.hash||Q},_e,0)},o.empty=o.make();var ue=o.isEmpty=function(vt){return vt&&!!Je(vt._root)};T.prototype.isEmpty=function(){return ue(this)};var Me=o.modifyHash=function(vt,ft,si,Zt){var ti={value:Zt._size},yi=Zt._root._modify(Zt._editable?Zt._edit:NaN,Zt._config.keyEq,0,vt,ft,si,ti);return Zt.setTree(yi,ti.value)};T.prototype.modifyHash=function(vt,ft,si){return Me(si,vt,ft,this)};var Fe=o.modify=function(vt,ft,si){return Me(vt,si._config.hash(ft),ft,si)};T.prototype.modify=function(vt,ft){return Fe(ft,vt,this)};var et=o.setHash=function(vt,ft,si,Zt){return Me(j(si),vt,ft,Zt)};T.prototype.setHash=function(vt,ft,si){return et(vt,ft,si,this)};var Ue=o.set=function(vt,ft,si){return et(si._config.hash(vt),vt,ft,si)};T.prototype.set=function(vt,ft){return Ue(vt,ft,this)};var Ke=j(E),Ve=o.removeHash=function(vt,ft,si){return Me(Ke,vt,ft,si)};T.prototype.removeHash=T.prototype.deleteHash=function(vt,ft){return Ve(vt,ft,this)};var mt=o.remove=function(vt,ft){return Ve(ft._config.hash(vt),vt,ft)};T.prototype.remove=T.prototype.delete=function(vt){return mt(vt,this)};var yt=o.beginMutation=function(vt){return new T(vt._editable+1,vt._edit+1,vt._config,vt._root,vt._size)};T.prototype.beginMutation=function(){return yt(this)};var Mt=o.endMutation=function(vt){return vt._editable=vt._editable&&vt._editable-1,vt};T.prototype.endMutation=function(){return Mt(this)};var Et=o.mutate=function(vt,ft){var si=yt(ft);return vt(si),Mt(si)};T.prototype.mutate=function(vt){return Et(vt,this)};var di=function(ft){return ft&&qt(ft[0],ft[1],ft[2],ft[3],ft[4])},qt=function(ft,si,Zt,ti,yi){for(;Zt<ft;){var Di=si[Zt++];if(Di&&!Je(Di))return ui(Di,ti,[ft,si,Zt,ti,yi])}return di(yi)},ui=function(ft,si,Zt){switch(ft.type){case ie:return{value:si(ft),rest:Zt};case te:case be:case oe:var ti=ft.children;return qt(ti.length,ti,0,si,Zt);default:return di(Zt)}},Wt={done:!0};function wi(vt){this.v=vt}wi.prototype.next=function(){if(!this.v)return Wt;var vt=this.v;return this.v=di(vt.rest),vt},wi.prototype[Symbol.iterator]=function(){return this};var Ei=function(ft,si){return new wi(ui(ft._root,si))},jt=function(ft){return[ft.key,ft.value]},kt=o.entries=function(vt){return Ei(vt,jt)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return kt(this)};var Pi=function(ft){return ft.key},Ai=o.keys=function(vt){return Ei(vt,Pi)};T.prototype.keys=function(){return Ai(this)};var $i=function(ft){return ft.value},xn=o.values=T.prototype.values=function(vt){return Ei(vt,$i)};T.prototype.values=function(){return xn(this)};var fn=o.fold=function(vt,ft,si){var Zt=si._root;if(Zt.type===ie)return vt(ft,Zt.value,Zt.key);for(var ti=[Zt.children],yi=void 0;yi=ti.pop();)for(var Di=0,Qi=yi.length;Di<Qi;){var cn=yi[Di++];cn&&cn.type&&(cn.type===ie?ft=vt(ft,cn.value,cn.key):ti.push(cn.children))}return ft};T.prototype.fold=function(vt,ft){return fn(vt,ft,this)};var tn=o.forEach=function(vt,ft){return fn(function(si,Zt,ti){return vt(Zt,ti,ft)},null,ft)};T.prototype.forEach=function(vt){return tn(vt,this)};var On=o.count=function(vt){return vt._size};T.prototype.count=function(){return On(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=o:(void 0).hamt=o});class NB{constructor(i){ar(this,"_map",void 0),this._map=new Map(i==null?void 0:i.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(i){return this._map.get(i)}has(i){return this._map.has(i)}set(i,o){return this._map.set(i,o),this}delete(i){return this._map.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._map)}}class l3{constructor(i){if(ar(this,"_hamt",EB.empty.beginMutation()),i instanceof l3){const o=i._hamt.endMutation();i._hamt=o.beginMutation(),this._hamt=o.beginMutation()}else if(i)for(const[o,u]of i.entries())this._hamt.set(o,u)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(i){return this._hamt.get(i)}has(i){return this._hamt.has(i)}set(i,o){return this._hamt.set(i,o),this}delete(i){return this._hamt.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._hamt)}}function c3(e){return qr("recoil_hamt_2020")?new l3(e):new NB(e)}var LB={persistentMap:c3},zB=LB.persistentMap,OB=Object.freeze({__proto__:null,persistentMap:zB});function kB(e,...i){const o=new Set;e:for(const u of e){for(const d of i)if(d.has(u))continue e;o.add(u)}return o}var ym=kB;function jB(e,i){const o=new Map;return e.forEach((u,d)=>{o.set(d,i(u,d))}),o}var p_=jB;function PB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function RB(e){return{nodeDeps:p_(e.nodeDeps,i=>new Set(i)),nodeToNodeSubscriptions:p_(e.nodeToNodeSubscriptions,i=>new Set(i))}}function u3(e,i,o,u){const{nodeDeps:d,nodeToNodeSubscriptions:_}=o,w=d.get(e);if(w&&u&&w!==u.nodeDeps.get(e))return;d.set(e,i);const a=w==null?i:ym(i,w);for(const E of a)_.has(E)||_.set(E,new Set),uo(_.get(E)).add(e);if(w){const E=ym(w,i);for(const j of E){if(!_.has(j))return;const Q=uo(_.get(j));Q.delete(e),Q.size===0&&_.delete(j)}}}function BB(e,i,o,u){var d,_,w,a;const E=o.getState();u===E.currentTree.version||u===((d=E.nextTree)===null||d===void 0?void 0:d.version)||((_=E.previousTree)===null||_===void 0||_.version);const j=o.getGraph(u);if(u3(e,i,j),u===((w=E.previousTree)===null||w===void 0?void 0:w.version)){const q=o.getGraph(E.currentTree.version);u3(e,i,q,j)}if(u===((a=E.previousTree)===null||a===void 0?void 0:a.version)||u===E.currentTree.version){var Q;const q=(Q=E.nextTree)===null||Q===void 0?void 0:Q.version;if(q!==void 0){const W=o.getGraph(q);u3(e,i,W,j)}}}var _m={cloneGraph:RB,graph:PB,saveDepsToStore:BB};let FB=0;const UB=()=>FB++;let VB=0;const QB=()=>VB++;let HB=0;var g_={getNextTreeStateVersion:UB,getNextStoreID:QB,getNextComponentID:()=>HB++};const{persistentMap:ZA}=OB,{graph:$B}=_m,{getNextTreeStateVersion:WA}=g_;function qA(){const e=WA();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ZA(),nonvalidatedAtoms:ZA()}}function YB(){const e=qA();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,$B()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var KA={makeEmptyTreeState:qA,makeEmptyStoreState:YB,getNextTreeStateVersion:WA};class XA{}function GB(){return new XA}var m_={RetentionZone:XA,retentionZone:GB};function ZB(e,i){const o=new Set(e);return o.add(i),o}function WB(e,i){const o=new Set(e);return o.delete(i),o}function qB(e,i,o){const u=new Map(e);return u.set(i,o),u}function KB(e,i,o){const u=new Map(e);return u.set(i,o(u.get(i))),u}function XB(e,i){const o=new Map(e);return o.delete(i),o}function JB(e,i){const o=new Map(e);return i.forEach(u=>o.delete(u)),o}var JA={setByAddingToSet:ZB,setByDeletingFromSet:WB,mapBySettingInMap:qB,mapByUpdatingInMap:KB,mapByDeletingFromMap:XB,mapByDeletingMultipleFromMap:JB};function*eF(e,i){let o=0;for(const u of e)i(u,o++)&&(yield u)}var h3=eF;function tF(e,i){return new Proxy(e,{get:(u,d)=>(!(d in u)&&d in i&&(u[d]=i[d]()),u[d]),ownKeys:u=>Object.keys(u)})}var eC=tF;const{getNode:vm,getNodeMaybe:iF,recoilValuesForKeys:tC}=Ws,{RetentionZone:iC}=m_,{setByAddingToSet:nF}=JA,rF=Object.freeze(new Set);class oF extends Error{}function sF(e,i,o){if(!qr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:u}=e.getState().retention;function d(_){let w=u.get(_);w||u.set(_,w=new Set),w.add(i)}if(o instanceof iC)d(o);else if(Array.isArray(o))for(const _ of o)d(_);return()=>{if(!qr("recoil_memory_managament_2020"))return;const{retention:_}=e.getState();function w(a){const E=_.nodesRetainedByZone.get(a);E==null||E.delete(i),E&&E.size===0&&_.nodesRetainedByZone.delete(a)}if(o instanceof iC)w(o);else if(Array.isArray(o))for(const a of o)w(a)}}function d3(e,i,o,u){const d=e.getState();if(d.nodeCleanupFunctions.has(o))return;const _=vm(o),w=sF(e,o,_.retainedBy),a=_.init(e,i,u);d.nodeCleanupFunctions.set(o,()=>{a(),w()})}function aF(e,i,o){d3(e,e.getState().currentTree,i,o)}function lF(e,i){var o;const u=e.getState();(o=u.nodeCleanupFunctions.get(i))===null||o===void 0||o(),u.nodeCleanupFunctions.delete(i)}function cF(e,i,o){return d3(e,i,o,"get"),vm(o).get(e,i)}function nC(e,i,o){return vm(o).peek(e,i)}function uF(e,i,o){var u;const d=iF(i);return d==null||(u=d.invalidate)===null||u===void 0||u.call(d,e),{...e,atomValues:e.atomValues.clone().delete(i),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(i,o),dirtyAtoms:nF(e.dirtyAtoms,i)}}function hF(e,i,o,u){const d=vm(o);if(d.set==null)throw new oF(`Attempt to set read-only RecoilValue: ${o}`);const _=d.set;return d3(e,i,o,"set"),_(e,i,u)}function dF(e,i,o){const u=e.getState(),d=e.getGraph(i.version),_=vm(o).nodeType;return eC({type:_},{loadable:()=>nC(e,i,o),isActive:()=>u.knownAtoms.has(o)||u.knownSelectors.has(o),isSet:()=>_==="selector"?!1:i.atomValues.has(o),isModified:()=>i.dirtyAtoms.has(o),deps:()=>{var w;return tC((w=d.nodeDeps.get(o))!==null&&w!==void 0?w:[])},subscribers:()=>{var w,a;return{nodes:tC(h3(rC(e,i,new Set([o])),E=>E!==o)),components:d_((w=(a=u.nodeToComponentSubscriptions.get(o))===null||a===void 0?void 0:a.values())!==null&&w!==void 0?w:[],([E])=>({name:E}))}}})}function rC(e,i,o){const u=new Set,d=Array.from(o),_=e.getGraph(i.version);for(let a=d.pop();a;a=d.pop()){var w;u.add(a);const E=(w=_.nodeToNodeSubscriptions.get(a))!==null&&w!==void 0?w:rF;for(const j of E)u.has(j)||d.push(j)}return u}var vu={getNodeLoadable:cF,peekNodeLoadable:nC,setNodeValue:hF,initializeNode:aF,cleanUpNode:lF,setUnvalidatedAtomValue_DEPRECATED:uF,peekNodeInfo:dF,getDownstreamNodes:rC};let oC=null;function fF(e){oC=e}function pF(){var e;(e=oC)===null||e===void 0||e()}var sC={setInvalidateMemoizedSnapshot:fF,invalidateMemoizedSnapshot:pF};const{getDownstreamNodes:gF,getNodeLoadable:aC,setNodeValue:mF}=vu,{getNextComponentID:yF}=g_,{getNode:_F,getNodeMaybe:lC}=Ws,{DefaultValue:f3}=Ws,{reactMode:vF}=mm,{AbstractRecoilValue:xF,RecoilState:wF,RecoilValueReadOnly:bF,isRecoilValue:MF}=gf,{invalidateMemoizedSnapshot:IF}=sC;function TF(e,{key:i},o=e.getState().currentTree){var u,d;const _=e.getState();o.version===_.currentTree.version||o.version===((u=_.nextTree)===null||u===void 0?void 0:u.version)||(o.version,(d=_.previousTree)===null||d===void 0||d.version);const w=aC(e,o,i);return w.state==="loading"&&w.contents.catch(()=>{}),w}function DF(e,i){const o=e.clone();return i.forEach((u,d)=>{u.state==="hasValue"&&u.contents instanceof f3?o.delete(d):o.set(d,u)}),o}function SF(e,i,{key:o},u){if(typeof u=="function"){const d=aC(e,i,o);if(d.state==="loading"){const _=`Tried to set atom or selector "${o}" using an updater function while the current state is pending, this is not currently supported.`;throw hr(_)}else if(d.state==="hasError")throw d.contents;return u(d.contents)}else return u}function AF(e,i,o){if(o.type==="set"){const{recoilValue:d,valueOrUpdater:_}=o,w=SF(e,i,d,_),a=mF(e,i,d.key,w);for(const[E,j]of a.entries())p3(i,E,j)}else if(o.type==="setLoadable"){const{recoilValue:{key:d},loadable:_}=o;p3(i,d,_)}else if(o.type==="markModified"){const{recoilValue:{key:d}}=o;i.dirtyAtoms.add(d)}else if(o.type==="setUnvalidated"){var u;const{recoilValue:{key:d},unvalidatedValue:_}=o,w=lC(d);w==null||(u=w.invalidate)===null||u===void 0||u.call(w,i),i.atomValues.delete(d),i.nonvalidatedAtoms.set(d,_),i.dirtyAtoms.add(d)}else i3(`Unknown action ${o.type}`)}function p3(e,i,o){o.state==="hasValue"&&o.contents instanceof f3?e.atomValues.delete(i):e.atomValues.set(i,o),e.dirtyAtoms.add(i),e.nonvalidatedAtoms.delete(i)}function cC(e,i){e.replaceState(o=>{const u=uC(o);for(const d of i)AF(e,u,d);return hC(e,u),IF(),u})}function y_(e,i){if(xm.length){const o=xm[xm.length-1];let u=o.get(e);u||o.set(e,u=[]),u.push(i)}else cC(e,[i])}const xm=[];function CF(){const e=new Map;return xm.push(e),()=>{for(const[i,o]of e)cC(i,o);xm.pop()}}function uC(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function hC(e,i){const o=gF(e,i,i.dirtyAtoms);for(const _ of o){var u,d;(u=lC(_))===null||u===void 0||(d=u.invalidate)===null||d===void 0||d.call(u,i)}}function dC(e,i,o){y_(e,{type:"set",recoilValue:i,valueOrUpdater:o})}function EF(e,i,o){if(o instanceof f3)return dC(e,i,o);y_(e,{type:"setLoadable",recoilValue:i,loadable:o})}function NF(e,i){y_(e,{type:"markModified",recoilValue:i})}function LF(e,i,o){y_(e,{type:"setUnvalidated",recoilValue:i,unvalidatedValue:o})}function zF(e,{key:i},o,u=null){const d=yF(),_=e.getState();_.nodeToComponentSubscriptions.has(i)||_.nodeToComponentSubscriptions.set(i,new Map),uo(_.nodeToComponentSubscriptions.get(i)).set(d,[u??"<not captured>",o]);const w=vF();if(w.early&&(w.mode==="LEGACY"||w.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(i)&&o(a)}return{release:()=>{const a=e.getState(),E=a.nodeToComponentSubscriptions.get(i);E===void 0||!E.has(d)||(E.delete(d),E.size===0&&a.nodeToComponentSubscriptions.delete(i))}}}function OF(e,i){var o;const{currentTree:u}=e.getState(),d=_F(i.key);(o=d.clearCache)===null||o===void 0||o.call(d,e,u)}var wl={RecoilValueReadOnly:bF,AbstractRecoilValue:xF,RecoilState:wF,getRecoilValueAsLoadable:TF,setRecoilValue:dC,setRecoilValueLoadable:EF,markRecoilValueModified:NF,setUnvalidatedRecoilValue:LF,subscribeToRecoilValue:zF,isRecoilValue:MF,applyAtomValueWrites:DF,batchStart:CF,writeLoadableToTreeState:p3,invalidateDownstreams:hC,copyTreeState:uC,refreshRecoilValue:OF};function kF(e,i,o){const u=e.entries();let d=u.next();for(;!d.done;){const _=d.value;if(i.call(o,_[1],_[0],e))return!0;d=u.next()}return!1}var jF=kF;const{cleanUpNode:PF}=vu,{deleteNodeConfigIfPossible:RF,getNode:fC}=Ws,{RetentionZone:pC}=m_,BF=12e4,gC=new Set;function mC(e,i){const o=e.getState(),u=o.currentTree;if(o.nextTree)return;const d=new Set;for(const w of i)if(w instanceof pC)for(const a of QF(o,w))d.add(a);else d.add(w);const _=FF(e,d);for(const w of _)VF(e,u,w)}function FF(e,i){const o=e.getState(),u=o.currentTree,d=e.getGraph(u.version),_=new Set,w=new Set;return a(i),_;function a(E){const j=new Set,Q=UF(e,u,E,_,w);for(const fe of Q){var q;if(fC(fe).retainedBy==="recoilRoot"){w.add(fe);continue}if(((q=o.retention.referenceCounts.get(fe))!==null&&q!==void 0?q:0)>0){w.add(fe);continue}if(yC(fe).some($e=>o.retention.referenceCounts.get($e))){w.add(fe);continue}const we=d.nodeToNodeSubscriptions.get(fe);if(we&&jF(we,$e=>w.has($e))){w.add(fe);continue}_.add(fe),j.add(fe)}const W=new Set;for(const fe of j)for(const we of(le=d.nodeDeps.get(fe))!==null&&le!==void 0?le:gC){var le;_.has(we)||W.add(we)}W.size&&a(W)}}function UF(e,i,o,u,d){const _=e.getGraph(i.version),w=[],a=new Set;for(;o.size>0;)E(uo(o.values().next().value));return w;function E(j){if(u.has(j)||d.has(j)){o.delete(j);return}if(a.has(j))return;const Q=_.nodeToNodeSubscriptions.get(j);if(Q)for(const q of Q)E(q);a.add(j),o.delete(j),w.push(j)}}function VF(e,i,o){if(!qr("recoil_memory_managament_2020"))return;PF(e,o);const u=e.getState();u.knownAtoms.delete(o),u.knownSelectors.delete(o),u.nodeTransactionSubscriptions.delete(o),u.retention.referenceCounts.delete(o);const d=yC(o);for(const E of d){var _;(_=u.retention.nodesRetainedByZone.get(E))===null||_===void 0||_.delete(o)}i.atomValues.delete(o),i.dirtyAtoms.delete(o),i.nonvalidatedAtoms.delete(o);const w=u.graphsByVersion.get(i.version);if(w){const E=w.nodeDeps.get(o);if(E!==void 0){w.nodeDeps.delete(o);for(const j of E){var a;(a=w.nodeToNodeSubscriptions.get(j))===null||a===void 0||a.delete(o)}}w.nodeToNodeSubscriptions.delete(o)}RF(o)}function QF(e,i){var o;return(o=e.retention.nodesRetainedByZone.get(i))!==null&&o!==void 0?o:gC}function yC(e){const i=fC(e).retainedBy;return i===void 0||i==="components"||i==="recoilRoot"?[]:i instanceof pC?[i]:i}function HF(e,i){const o=e.getState();o.nextTree?o.retention.retainablesToCheckForRelease.add(i):mC(e,new Set([i]))}function $F(e,i,o){var u;if(!qr("recoil_memory_managament_2020"))return;const d=e.getState().retention.referenceCounts,_=((u=d.get(i))!==null&&u!==void 0?u:0)+o;_===0?_C(e,i):d.set(i,_)}function _C(e,i){if(!qr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(i),HF(e,i)}function YF(e){if(!qr("recoil_memory_managament_2020"))return;const i=e.getState();mC(e,i.retention.retainablesToCheckForRelease),i.retention.retainablesToCheckForRelease.clear()}function GF(e){return e===void 0?"recoilRoot":e}var zh={SUSPENSE_TIMEOUT_MS:BF,updateRetainCount:$F,updateRetainCountToZero:_C,releaseScheduledRetainablesNow:YF,retainedByOptionWithDefault:GF};const{unstable_batchedUpdates:ZF}=fm;var WF={unstable_batchedUpdates:ZF};const{unstable_batchedUpdates:qF}=WF;var KF={unstable_batchedUpdates:qF};const{batchStart:XF}=wl,{unstable_batchedUpdates:JF}=KF;let g3=JF||(e=>e());var __={getBatcher:()=>g3,setBatcher:e=>{g3=e},batchUpdates:e=>{g3(()=>{let i=()=>{};try{i=XF(),e()}finally{i()}})}};function*eU(e){for(const i of e)for(const o of i)yield o}var vC=eU;const xC=typeof Window>"u"||typeof window>"u",tU=e=>!xC&&(e===window||e instanceof Window),iU=typeof navigator<"u"&&navigator.product==="ReactNative";var v_={isSSR:xC,isReactNative:iU,isWindow:tU};function nU(e,i){let o;return(...u)=>{o||(o={});const d=i(...u);return Object.hasOwnProperty.call(o,d)||(o[d]=e(...u)),o[d]}}function rU(e,i){let o,u;return(...d)=>{const _=i(...d);return o===_||(o=_,u=e(...d)),u}}function oU(e,i){let o,u;return[(...w)=>{const a=i(...w);return o===a||(o=a,u=e(...w)),u},()=>{o=null}]}var sU={memoizeWithArgsHash:nU,memoizeOneWithArgsHash:rU,memoizeOneWithArgsHashAndInvalidation:oU};const{batchUpdates:m3}=__,{initializeNode:aU,peekNodeInfo:lU}=vu,{graph:cU}=_m,{getNextStoreID:uU}=g_,{DEFAULT_VALUE:hU,recoilValues:wC,recoilValuesForKeys:bC}=Ws,{AbstractRecoilValue:dU,getRecoilValueAsLoadable:fU,setRecoilValue:MC,setUnvalidatedRecoilValue:pU}=wl,{updateRetainCount:x_}=zh,{setInvalidateMemoizedSnapshot:gU}=sC,{getNextTreeStateVersion:mU,makeEmptyStoreState:yU}=KA,{isSSR:_U}=v_,{memoizeOneWithArgsHashAndInvalidation:vU}=sU;class w_{constructor(i,o){ar(this,"_store",void 0),ar(this,"_refCount",1),ar(this,"getLoadable",u=>(this.checkRefCount_INTERNAL(),fU(this._store,u))),ar(this,"getPromise",u=>(this.checkRefCount_INTERNAL(),this.getLoadable(u).toPromise())),ar(this,"getNodes_UNSTABLE",u=>{if(this.checkRefCount_INTERNAL(),(u==null?void 0:u.isModified)===!0){if((u==null?void 0:u.isInitialized)===!1)return[];const w=this._store.getState().currentTree;return bC(w.dirtyAtoms)}const d=this._store.getState().knownAtoms,_=this._store.getState().knownSelectors;return(u==null?void 0:u.isInitialized)==null?wC.values():u.isInitialized===!0?bC(vC([d,_])):h3(wC.values(),({key:w})=>!d.has(w)&&!_.has(w))}),ar(this,"getInfo_UNSTABLE",({key:u})=>(this.checkRefCount_INTERNAL(),lU(this._store,this._store.getState().currentTree,u))),ar(this,"map",u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return u(d),d}),ar(this,"asyncMap",async u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return d.retain(),await u(d),d.autoRelease_INTERNAL(),d}),this._store={storeID:uU(),parentStoreID:o,getState:()=>i,replaceState:u=>{i.currentTree=u(i.currentTree)},getGraph:u=>{const d=i.graphsByVersion;if(d.has(u))return uo(d.get(u));const _=cU();return d.set(u,_),_},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw hr("Cannot subscribe to Snapshots")}};for(const u of this._store.getState().knownAtoms)aU(this._store,u,"get"),x_(this._store,u,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let i=!1;return()=>{i||(i=!0,this._release())}}autoRelease_INTERNAL(){_U||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(i=>i()),this._store.getState().nodeCleanupFunctions.clear(),!qr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){qr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function IC(e,i,o=!1){const u=e.getState(),d=o?mU():i.version;return{currentTree:{version:o?d:i.version,stateID:o?d:i.stateID,transactionMetadata:{...i.transactionMetadata},dirtyAtoms:new Set(i.dirtyAtoms),atomValues:i.atomValues.clone(),nonvalidatedAtoms:i.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(u.knownAtoms),knownSelectors:new Set(u.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(d,e.getGraph(i.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(d_(u.nodeCleanupFunctions.entries(),([_])=>[_,()=>{}]))}}function xU(e){const i=new w_(yU());return e!=null?i.map(e):i}const[TC,DC]=vU((e,i)=>{var o;const u=e.getState(),d=i==="latest"?(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree:uo(u.previousTree);return new w_(IC(e,d),e.storeID)},(e,i)=>{var o,u;return String(i)+String(e.storeID)+String((o=e.getState().nextTree)===null||o===void 0?void 0:o.version)+String(e.getState().currentTree.version)+String((u=e.getState().previousTree)===null||u===void 0?void 0:u.version)});gU(DC);function wU(e,i="latest"){const o=TC(e,i);return o.isRetained()?o:(DC(),TC(e,i))}class y3 extends w_{constructor(i,o){super(IC(i.getStore_INTERNAL(),i.getStore_INTERNAL().getState().currentTree,!0),i.getStoreID()),ar(this,"_batch",void 0),ar(this,"set",(u,d)=>{this.checkRefCount_INTERNAL();const _=this.getStore_INTERNAL();this._batch(()=>{x_(_,u.key,1),MC(this.getStore_INTERNAL(),u,d)})}),ar(this,"reset",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{x_(d,u.key,1),MC(this.getStore_INTERNAL(),u,hU)})}),ar(this,"setUnvalidatedAtomValues_DEPRECATED",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();m3(()=>{for(const[_,w]of u.entries())x_(d,_,1),pU(d,new dU(_),w)})}),this._batch=o}}var b_={Snapshot:w_,MutableSnapshot:y3,freshSnapshot:xU,cloneSnapshot:wU},bU=b_.Snapshot,MU=b_.MutableSnapshot,IU=b_.freshSnapshot,TU=b_.cloneSnapshot,M_=Object.freeze({__proto__:null,Snapshot:bU,MutableSnapshot:MU,freshSnapshot:IU,cloneSnapshot:TU});function DU(...e){const i=new Set;for(const o of e)for(const u of o)i.add(u);return i}var SU=DU;const{useRef:AU}=Cr;function CU(e){const i=AU(e);return i.current===e&&typeof e=="function"&&(i.current=e()),i}var SC=CU;const{getNextTreeStateVersion:EU,makeEmptyStoreState:AC}=KA,{cleanUpNode:NU,getDownstreamNodes:LU,initializeNode:zU,setNodeValue:OU,setUnvalidatedAtomValue_DEPRECATED:kU}=vu,{graph:jU}=_m,{cloneGraph:PU}=_m,{getNextStoreID:CC}=g_,{createMutableSource:_3,reactMode:EC}=mm,{applyAtomValueWrites:RU}=wl,{releaseScheduledRetainablesNow:NC}=zh,{freshSnapshot:BU}=M_,{useCallback:FU,useContext:LC,useEffect:v3,useMemo:UU,useRef:VU,useState:QU}=Cr;function wm(){throw hr("This component must be used inside a <RecoilRoot> component.")}const zC=Object.freeze({storeID:CC(),getState:wm,replaceState:wm,getGraph:wm,subscribeToTransactions:wm,addTransactionMetadata:wm});let x3=!1;function OC(e){if(x3)throw hr("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const i=e.getState();if(i.nextTree===null){qr("recoil_memory_managament_2020")&&qr("recoil_release_on_cascading_update_killswitch_2021")&&i.commitDepth>0&&NC(e);const o=i.currentTree.version,u=EU();i.nextTree={...i.currentTree,version:u,stateID:u,dirtyAtoms:new Set,transactionMetadata:{}},i.graphsByVersion.set(u,PU(uo(i.graphsByVersion.get(o))))}}const kC=Cr.createContext({current:zC}),I_=()=>LC(kC),jC=Cr.createContext(null);function HU(){return LC(jC)}function w3(e,i,o){const u=LU(e,o,o.dirtyAtoms);for(const d of u){const _=i.nodeToComponentSubscriptions.get(d);if(_)for(const[w,[a,E]]of _)E(o)}}function PC(e){const i=e.getState(),o=i.currentTree,u=o.dirtyAtoms;if(u.size){for(const[d,_]of i.nodeTransactionSubscriptions)if(u.has(d))for(const[w,a]of _)a(e);for(const[d,_]of i.transactionSubscriptions)_(e);(!EC().early||i.suspendedComponentResolvers.size>0)&&(w3(e,i,o),i.suspendedComponentResolvers.forEach(d=>d()),i.suspendedComponentResolvers.clear())}i.queuedComponentCallbacks_DEPRECATED.forEach(d=>d(o)),i.queuedComponentCallbacks_DEPRECATED.splice(0,i.queuedComponentCallbacks_DEPRECATED.length)}function $U(e){const i=e.getState();i.commitDepth++;try{const{nextTree:o}=i;if(o==null)return;i.previousTree=i.currentTree,i.currentTree=o,i.nextTree=null,PC(e),i.previousTree!=null?i.graphsByVersion.delete(i.previousTree.version):i3("Ended batch with no previous state, which is unexpected","recoil"),i.previousTree=null,qr("recoil_memory_managament_2020")&&o==null&&NC(e)}finally{i.commitDepth--}}function YU({setNotifyBatcherOfChange:e}){const i=I_(),[,o]=QU([]);return e(()=>o({})),v3(()=>(e(()=>o({})),()=>{e(()=>{})}),[e]),v3(()=>{AB.enqueueExecution("Batcher",()=>{$U(i.current)})}),null}function GU(e,i){const o=AC();return i({set:(u,d)=>{const _=o.currentTree,w=OU(e,_,u.key,d),a=new Set(w.keys()),E=_.nonvalidatedAtoms.clone();for(const j of a)E.delete(j);o.currentTree={..._,dirtyAtoms:SU(_.dirtyAtoms,a),atomValues:RU(_.atomValues,w),nonvalidatedAtoms:E}},setUnvalidatedAtomValues:u=>{u.forEach((d,_)=>{o.currentTree=kU(o.currentTree,_,d)})}}),o}function ZU(e){const i=BU(e),o=i.getStore_INTERNAL().getState();return i.retain(),o.nodeCleanupFunctions.forEach(u=>u()),o.nodeCleanupFunctions.clear(),o}let RC=0;function WU({initializeState_DEPRECATED:e,initializeState:i,store_INTERNAL:o,children:u}){let d;const _=le=>{const fe=d.current.graphsByVersion;if(fe.has(le))return uo(fe.get(le));const we=jU();return fe.set(le,we),we},w=(le,fe)=>{if(fe==null){const{transactionSubscriptions:we}=q.current.getState(),$e=RC++;return we.set($e,le),{release:()=>{we.delete($e)}}}else{const{nodeTransactionSubscriptions:we}=q.current.getState();we.has(fe)||we.set(fe,new Map);const $e=RC++;return uo(we.get(fe)).set($e,le),{release:()=>{const me=we.get(fe);me&&(me.delete($e),me.size===0&&we.delete(fe))}}}},a=le=>{OC(q.current);for(const fe of Object.keys(le))uo(q.current.getState().nextTree).transactionMetadata[fe]=le[fe]},E=le=>{OC(q.current);const fe=uo(d.current.nextTree);let we;try{x3=!0,we=le(fe)}finally{x3=!1}we!==fe&&(d.current.nextTree=we,EC().early&&w3(q.current,d.current,we),uo(j.current)())},j=VU(null),Q=FU(le=>{j.current=le},[j]),q=SC(()=>o??{storeID:CC(),getState:()=>d.current,replaceState:E,getGraph:_,subscribeToTransactions:w,addTransactionMetadata:a});o!=null&&(q.current=o),d=SC(()=>e!=null?GU(q.current,e):i!=null?ZU(i):AC());const W=UU(()=>_3==null?void 0:_3(d,()=>d.current.currentTree.version),[d]);return v3(()=>{const le=q.current;for(const fe of new Set(le.getState().knownAtoms))zU(le,fe,"get");return()=>{for(const fe of le.getState().knownAtoms)NU(le,fe)}},[q]),Cr.createElement(kC.Provider,{value:q},Cr.createElement(jC.Provider,{value:W},Cr.createElement(YU,{setNotifyBatcherOfChange:Q}),u))}function qU(e){const{override:i,...o}=e,u=I_();return i===!1&&u.current!==zC?e.children:Cr.createElement(WU,o)}function KU(){return I_().current.storeID}var mc={RecoilRoot:qU,useStoreRef:I_,useRecoilMutableSource:HU,useRecoilStoreID:KU,notifyComponents_FOR_TESTING:w3,sendEndOfBatchNotifications_FOR_TESTING:PC};function XU(e,i){if(e===i)return!0;if(e.length!==i.length)return!1;for(let o=0,u=e.length;o<u;o++)if(e[o]!==i[o])return!1;return!0}var JU=XU;const{useEffect:eV,useRef:tV}=Cr;function iV(e){const i=tV();return eV(()=>{i.current=e}),i.current}var BC=iV;const{useStoreRef:nV}=mc,{SUSPENSE_TIMEOUT_MS:rV}=zh,{updateRetainCount:bm}=zh,{RetentionZone:oV}=m_,{useEffect:sV,useRef:aV}=Cr,{isSSR:FC}=v_;function lV(e){if(qr("recoil_memory_managament_2020"))return cV(e)}function cV(e){const o=(Array.isArray(e)?e:[e]).map(w=>w instanceof oV?w:w.key),u=nV();sV(()=>{if(!qr("recoil_memory_managament_2020"))return;const w=u.current;if(d.current&&!FC)window.clearTimeout(d.current),d.current=null;else for(const a of o)bm(w,a,1);return()=>{for(const a of o)bm(w,a,-1)}},[u,...o]);const d=aV(),_=BC(o);if(!FC&&(_===void 0||!JU(_,o))){const w=u.current;for(const a of o)bm(w,a,1);if(_)for(const a of _)bm(w,a,-1);d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=null;for(const a of o)bm(w,a,-1)},rV)}}var b3=lV;function uV(){return"<component name not available>"}var Mm=uV;const{batchUpdates:hV}=__,{DEFAULT_VALUE:UC}=Ws,{currentRendererSupportsUseSyncExternalStore:dV,reactMode:mf,useMutableSource:fV,useSyncExternalStore:pV}=mm,{useRecoilMutableSource:gV,useStoreRef:bl}=mc,{AbstractRecoilValue:M3,getRecoilValueAsLoadable:Im,setRecoilValue:T_,setUnvalidatedRecoilValue:mV,subscribeToRecoilValue:yf}=wl,{useCallback:qs,useEffect:_f,useMemo:VC,useRef:Tm,useState:I3}=Cr,{setByAddingToSet:yV}=JA,{isSSR:_V}=v_;function T3(e,i,o){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(d=>{const _=o.current.getState().suspendedComponentResolvers;_.add(d),_V&&so(e.contents)&&e.contents.finally(()=>{_.delete(d)})}):e.state==="hasError"?e.contents:hr(`Invalid value of loadable atom "${i.key}"`)}function vV(){const e=Mm(),i=bl(),[,o]=I3([]),u=Tm(new Set);u.current=new Set;const d=Tm(new Set),_=Tm(new Map),w=qs(E=>{const j=_.current.get(E);j&&(j.release(),_.current.delete(E))},[_]),a=qs((E,j)=>{_.current.has(j)&&o([])},[]);return _f(()=>{const E=i.current;ym(u.current,d.current).forEach(j=>{if(_.current.has(j))return;const Q=yf(E,new M3(j),W=>a(W,j),e);_.current.set(j,Q),E.getState().nextTree?E.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(E.getState(),j)}):a(E.getState(),j)}),ym(d.current,u.current).forEach(j=>{w(j)}),d.current=u.current}),_f(()=>{const E=_.current;return ym(u.current,new Set(E.keys())).forEach(j=>{const Q=yf(i.current,new M3(j),q=>a(q,j),e);E.set(j,Q)}),()=>E.forEach((j,Q)=>w(Q))},[e,i,w,a]),VC(()=>{function E(fe){return we=>{T_(i.current,fe,we)}}function j(fe){return()=>T_(i.current,fe,UC)}function Q(fe){var we;u.current.has(fe.key)||(u.current=yV(u.current,fe.key));const $e=i.current.getState();return Im(i.current,fe,mf().early&&(we=$e.nextTree)!==null&&we!==void 0?we:$e.currentTree)}function q(fe){const we=Q(fe);return T3(we,fe,i)}function W(fe){return[q(fe),E(fe)]}function le(fe){return[Q(fe),E(fe)]}return{getRecoilValue:q,getRecoilValueLoadable:Q,getRecoilState:W,getRecoilStateLoadable:le,getSetRecoilState:E,getResetRecoilState:j}},[u,i])}const xV={current:0};function wV(e){const i=bl(),o=Mm(),u=qs(()=>{var a;const E=i.current,j=E.getState(),Q=mf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return{loadable:Im(E,e,Q),key:e.key}},[i,e]),d=qs(a=>{let E;return()=>{var j,Q;const q=a();return(j=E)!==null&&j!==void 0&&j.loadable.is(q.loadable)&&((Q=E)===null||Q===void 0?void 0:Q.key)===q.key?E:(E=q,q)}},[]),_=VC(()=>d(u),[u,d]),w=qs(a=>{const E=i.current;return yf(E,e,a,o).release},[i,e,o]);return pV(w,_,_).loadable}function bV(e){const i=bl(),o=qs(()=>{var j;const Q=i.current,q=Q.getState(),W=mf().early&&(j=q.nextTree)!==null&&j!==void 0?j:q.currentTree;return Im(Q,e,W)},[i,e]),u=qs(()=>o(),[o]),d=Mm(),_=qs((j,Q)=>{const q=i.current;return yf(q,e,()=>{if(!qr("recoil_suppress_rerender_in_callback"))return Q();const le=o();E.current.is(le)||Q(),E.current=le},d).release},[i,e,d,o]),w=gV();if(w==null)throw hr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=fV(w,u,_),E=Tm(a);return _f(()=>{E.current=a}),a}function D3(e){const i=bl(),o=Mm(),u=qs(()=>{var E;const j=i.current,Q=j.getState(),q=mf().early&&(E=Q.nextTree)!==null&&E!==void 0?E:Q.currentTree;return Im(j,e,q)},[i,e]),d=qs(()=>({loadable:u(),key:e.key}),[u,e.key]),_=qs(E=>{const j=d();return E.loadable.is(j.loadable)&&E.key===j.key?E:j},[d]);_f(()=>{const E=yf(i.current,e,j=>{a(_)},o);return a(_),E.release},[o,e,i,_]);const[w,a]=I3(d);return w.key!==e.key?d().loadable:w.loadable}function MV(e){const i=bl(),[,o]=I3([]),u=Mm(),d=qs(()=>{var a;const E=i.current,j=E.getState(),Q=mf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return Im(E,e,Q)},[i,e]),_=d(),w=Tm(_);return _f(()=>{w.current=_}),_f(()=>{const a=i.current,E=a.getState(),j=yf(a,e,q=>{var W;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const le=d();(W=w.current)!==null&&W!==void 0&&W.is(le)||o(le),w.current=le},u);if(E.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{w.current=null,o([])});else{var Q;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const q=d();(Q=w.current)!==null&&Q!==void 0&&Q.is(q)||o(q),w.current=q}return j.release},[u,d,e,i]),_}function S3(e){return qr("recoil_memory_managament_2020")&&b3(e),{TRANSITION_SUPPORT:D3,SYNC_EXTERNAL_STORE:dV()?wV:D3,MUTABLE_SOURCE:bV,LEGACY:MV}[mf().mode](e)}function QC(e){const i=bl(),o=S3(e);return T3(o,e,i)}function D_(e){const i=bl();return qs(o=>{T_(i.current,e,o)},[i,e])}function IV(e){const i=bl();return qs(()=>{T_(i.current,e,UC)},[i,e])}function TV(e){return[QC(e),D_(e)]}function DV(e){return[S3(e),D_(e)]}function SV(){const e=bl();return(i,o={})=>{hV(()=>{e.current.addTransactionMetadata(o),i.forEach((u,d)=>mV(e.current,new M3(d),u))})}}function HC(e){return qr("recoil_memory_managament_2020")&&b3(e),D3(e)}function $C(e){const i=bl(),o=HC(e);return T3(o,e,i)}function AV(e){return[$C(e),D_(e)]}var CV={recoilComponentGetRecoilValueCount_FOR_TESTING:xV,useRecoilInterface:vV,useRecoilState:TV,useRecoilStateLoadable:DV,useRecoilValue:QC,useRecoilValueLoadable:S3,useResetRecoilState:IV,useSetRecoilState:D_,useSetUnvalidatedAtomValues:SV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:HC,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:$C,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:AV};function EV(e,i){const o=new Map;for(const[u,d]of e)i(d,u)&&o.set(u,d);return o}var NV=EV;function LV(e,i){const o=new Set;for(const u of e)i(u)&&o.add(u);return o}var zV=LV;function OV(...e){const i=new Map;for(let o=0;o<e.length;o++){const u=e[o].keys();let d;for(;!(d=u.next()).done;)i.set(d.value,e[o].get(d.value))}return i}var kV=OV;const{batchUpdates:jV}=__,{DEFAULT_VALUE:PV,getNode:YC,nodes:RV}=Ws,{useStoreRef:A3}=mc,{AbstractRecoilValue:BV,setRecoilValueLoadable:FV}=wl,{SUSPENSE_TIMEOUT_MS:UV}=zh,{cloneSnapshot:S_}=M_,{useCallback:A_,useEffect:GC,useRef:ZC,useState:VV}=Cr,{isSSR:WC}=v_;function C_(e){const i=A3();GC(()=>i.current.subscribeToTransactions(e).release,[e,i])}function qC(e){const i=e.atomValues.toMap(),o=p_(NV(i,(u,d)=>{const w=YC(d).persistence_UNSTABLE;return w!=null&&w.type!=="none"&&u.state==="hasValue"}),u=>u.contents);return kV(e.nonvalidatedAtoms.toMap(),o)}function QV(e){C_(A_(i=>{let o=i.getState().previousTree;const u=i.getState().currentTree;o||(o=i.getState().currentTree);const d=qC(u),_=qC(o),w=p_(RV,E=>{var j,Q,q,W;return{persistence_UNSTABLE:{type:(j=(Q=E.persistence_UNSTABLE)===null||Q===void 0?void 0:Q.type)!==null&&j!==void 0?j:"none",backButton:(q=(W=E.persistence_UNSTABLE)===null||W===void 0?void 0:W.backButton)!==null&&q!==void 0?q:!1}}}),a=zV(u.dirtyAtoms,E=>d.has(E)||_.has(E));e({atomValues:d,previousAtomValues:_,atomInfo:w,modifiedAtoms:a,transactionMetadata:{...u.transactionMetadata}})},[e]))}function HV(e){C_(A_(i=>{const o=S_(i,"latest"),u=S_(i,"previous");e({snapshot:o,previousSnapshot:u})},[e]))}function $V(){const e=A3(),[i,o]=VV(()=>S_(e.current)),u=BC(i),d=ZC(),_=ZC();if(C_(A_(a=>o(S_(a)),[])),GC(()=>{const a=i.retain();if(d.current&&!WC){var E;window.clearTimeout(d.current),d.current=null,(E=_.current)===null||E===void 0||E.call(_),_.current=null}return()=>{window.setTimeout(a,10)}},[i]),u!==i&&!WC){if(d.current){var w;window.clearTimeout(d.current),d.current=null,(w=_.current)===null||w===void 0||w.call(_),_.current=null}_.current=i.retain(),d.current=window.setTimeout(()=>{var a;d.current=null,(a=_.current)===null||a===void 0||a.call(_),_.current=null},UV)}return i}function KC(e,i){var o;const u=e.getState(),d=(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree,_=i.getStore_INTERNAL().getState().currentTree;jV(()=>{const w=new Set;for(const j of[d.atomValues.keys(),_.atomValues.keys()])for(const Q of j){var a,E;((a=d.atomValues.get(Q))===null||a===void 0?void 0:a.contents)!==((E=_.atomValues.get(Q))===null||E===void 0?void 0:E.contents)&&YC(Q).shouldRestoreFromSnapshots&&w.add(Q)}w.forEach(j=>{FV(e,new BV(j),_.atomValues.has(j)?uo(_.atomValues.get(j)):PV)}),e.replaceState(j=>({...j,stateID:i.getID()}))})}function YV(){const e=A3();return A_(i=>KC(e.current,i),[e])}var XC={useRecoilSnapshot:$V,gotoSnapshot:KC,useGotoRecoilSnapshot:YV,useRecoilTransactionObserver:HV,useTransactionObservation_DEPRECATED:QV,useTransactionSubscription_DEPRECATED:C_};const{peekNodeInfo:GV}=vu,{useStoreRef:ZV}=mc;function WV(){const e=ZV();return({key:i})=>GV(e.current,e.current.getState().currentTree,i)}var qV=WV;const{reactMode:KV}=mm,{RecoilRoot:XV,useStoreRef:JV}=mc,{useMemo:eQ}=Cr;function tQ(){KV().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=JV().current;return eQ(()=>{function i({children:o}){return Cr.createElement(XV,{store_INTERNAL:e},o)}return i},[e])}var iQ=tQ;const{loadableWithValue:nQ}=gm,{initializeNode:rQ}=vu,{DEFAULT_VALUE:oQ,getNode:sQ}=Ws,{copyTreeState:aQ,getRecoilValueAsLoadable:lQ,invalidateDownstreams:cQ,writeLoadableToTreeState:uQ}=wl;function JC(e){return sQ(e.key).nodeType==="atom"}class hQ{constructor(i,o){ar(this,"_store",void 0),ar(this,"_treeState",void 0),ar(this,"_changes",void 0),ar(this,"get",u=>{if(this._changes.has(u.key))return this._changes.get(u.key);if(!JC(u))throw hr("Reading selectors within atomicUpdate is not supported");const d=lQ(this._store,u,this._treeState);if(d.state==="hasValue")return d.contents;throw d.state==="hasError"?d.contents:hr(`Expected Recoil atom ${u.key} to have a value, but it is in a loading state.`)}),ar(this,"set",(u,d)=>{if(!JC(u))throw hr("Setting selectors within atomicUpdate is not supported");if(typeof d=="function"){const _=this.get(u);this._changes.set(u.key,d(_))}else rQ(this._store,u.key,"set"),this._changes.set(u.key,d)}),ar(this,"reset",u=>{this.set(u,oQ)}),this._store=i,this._treeState=o,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const i=aQ(this._treeState);for(const[o,u]of this._changes)uQ(i,o,nQ(u));return cQ(this._store,i),i}}function dQ(e){return i=>{e.replaceState(o=>{const u=new hQ(e,o);return i(u),u.newTreeState_INTERNAL()})}}var fQ={atomicUpdater:dQ},pQ=fQ.atomicUpdater,eE=Object.freeze({__proto__:null,atomicUpdater:pQ});function gQ(e,i){if(!e)throw new Error(i)}var mQ=gQ,Dm=mQ;const{atomicUpdater:yQ}=eE,{batchUpdates:_Q}=__,{DEFAULT_VALUE:vQ}=Ws,{useStoreRef:xQ}=mc,{refreshRecoilValue:wQ,setRecoilValue:tE}=wl,{cloneSnapshot:bQ}=M_,{gotoSnapshot:MQ}=XC,{useCallback:IQ}=Cr;class iE{}const TQ=new iE;function nE(e,i,o,u){let d=TQ,_;if(_Q(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof i!="function")throw hr(a);const E=eC({...u??{},set:(Q,q)=>tE(e,Q,q),reset:Q=>tE(e,Q,vQ),refresh:Q=>wQ(e,Q),gotoSnapshot:Q=>MQ(e,Q),transact_UNSTABLE:Q=>yQ(e)(Q)},{snapshot:()=>{const Q=bQ(e);return _=Q.retain(),Q}}),j=i(E);if(typeof j!="function")throw hr(a);d=j(...o)}),d instanceof iE&&Dm(!1),so(d))d=d.finally(()=>{var a;(a=_)===null||a===void 0||a()});else{var w;(w=_)===null||w===void 0||w()}return d}function DQ(e,i){const o=xQ();return IQ((...u)=>nE(o.current,e,u),i!=null?[...i,o]:void 0)}var rE={recoilCallback:nE,useRecoilCallback:DQ};const{useStoreRef:SQ}=mc,{refreshRecoilValue:AQ}=wl,{useCallback:CQ}=Cr;function EQ(e){const i=SQ();return CQ(()=>{const o=i.current;AQ(o,e)},[e,i])}var NQ=EQ;const{atomicUpdater:LQ}=eE,{useStoreRef:zQ}=mc,{useMemo:OQ}=Cr;function kQ(e,i){const o=zQ();return OQ(()=>(...u)=>{LQ(o.current)(_=>{e(_)(...u)})},i!=null?[...i,o]:void 0)}var jQ=kQ;class PQ{constructor(i){ar(this,"value",void 0),this.value=i}}var RQ={WrappedValue:PQ},BQ=RQ.WrappedValue,oE=Object.freeze({__proto__:null,WrappedValue:BQ});const{isFastRefreshEnabled:FQ}=mm;class sE extends Error{}class UQ{constructor(i){var o,u,d;ar(this,"_name",void 0),ar(this,"_numLeafs",void 0),ar(this,"_root",void 0),ar(this,"_onHit",void 0),ar(this,"_onSet",void 0),ar(this,"_mapNodeValue",void 0),this._name=i==null?void 0:i.name,this._numLeafs=0,this._root=null,this._onHit=(o=i==null?void 0:i.onHit)!==null&&o!==void 0?o:()=>{},this._onSet=(u=i==null?void 0:i.onSet)!==null&&u!==void 0?u:()=>{},this._mapNodeValue=(d=i==null?void 0:i.mapNodeValue)!==null&&d!==void 0?d:_=>_}size(){return this._numLeafs}root(){return this._root}get(i,o){var u;return(u=this.getLeafNode(i,o))===null||u===void 0?void 0:u.value}getLeafNode(i,o){if(this._root==null)return;let u=this._root;for(;u;){if(o==null||o.onNodeVisit(u),u.type==="leaf")return this._onHit(u),u;const d=this._mapNodeValue(i(u.nodeKey));u=u.branches.get(d)}}set(i,o,u){const d=()=>{var _,w,a,E;let j,Q;for(const[$e,me]of i){var q,W,le;const ie=this._root;if((ie==null?void 0:ie.type)==="leaf")throw this.invalidCacheError();const te=j;if(j=te?te.branches.get(Q):ie,j=(q=j)!==null&&q!==void 0?q:{type:"branch",nodeKey:$e,parent:te,branches:new Map,branchKey:Q},j.type!=="branch"||j.nodeKey!==$e)throw this.invalidCacheError();te==null||te.branches.set(Q,j),u==null||(W=u.onNodeVisit)===null||W===void 0||W.call(u,j),Q=this._mapNodeValue(me),this._root=(le=this._root)!==null&&le!==void 0?le:j}const fe=j?(_=j)===null||_===void 0?void 0:_.branches.get(Q):this._root;if(fe!=null&&(fe.type!=="leaf"||fe.branchKey!==Q))throw this.invalidCacheError();const we={type:"leaf",value:o,parent:j,branchKey:Q};(w=j)===null||w===void 0||w.branches.set(Q,we),this._root=(a=this._root)!==null&&a!==void 0?a:we,this._numLeafs++,this._onSet(we),u==null||(E=u.onNodeVisit)===null||E===void 0||E.call(u,we)};try{d()}catch(_){if(_ instanceof sE)this.clear(),d();else throw _}}delete(i){const o=this.root();if(!o)return!1;if(i===o)return this._root=null,this._numLeafs=0,!0;let u=i.parent,d=i.branchKey;for(;u;){var _;if(u.branches.delete(d),u===o)return u.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(u.branches.size>0)break;d=(_=u)===null||_===void 0?void 0:_.branchKey,u=u.parent}for(;u!==o;u=u.parent)if(u==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const i=FQ()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw i3(i+(this._name!=null?` - ${this._name}`:"")),new sE}}var VQ={TreeCache:UQ},QQ=VQ.TreeCache,aE=Object.freeze({__proto__:null,TreeCache:QQ});class HQ{constructor(i){var o;ar(this,"_maxSize",void 0),ar(this,"_size",void 0),ar(this,"_head",void 0),ar(this,"_tail",void 0),ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._maxSize=i.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(o=i.mapKey)!==null&&o!==void 0?o:u=>u}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(i){return this._map.has(this._keyMapper(i))}get(i){const o=this._keyMapper(i),u=this._map.get(o);if(u)return this.set(i,u.value),u.value}set(i,o){const u=this._keyMapper(i);this._map.get(u)&&this.delete(i);const _=this.head(),w={key:i,right:_,left:null,value:o};_?_.left=w:this._tail=w,this._map.set(u,w),this._head=w,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const i=this.tail();i&&this.delete(i.key)}delete(i){const o=this._keyMapper(i);if(!this._size||!this._map.has(o))return;const u=uo(this._map.get(o)),d=u.right,_=u.left;d&&(d.left=u.left),_&&(_.right=u.right),u===this.head()&&(this._head=d),u===this.tail()&&(this._tail=_),this._map.delete(o),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var $Q={LRUCache:HQ},YQ=$Q.LRUCache,lE=Object.freeze({__proto__:null,LRUCache:YQ});const{LRUCache:GQ}=lE,{TreeCache:ZQ}=aE;function WQ({name:e,maxSize:i,mapNodeValue:o=u=>u}){const u=new GQ({maxSize:i}),d=new ZQ({name:e,mapNodeValue:o,onHit:_=>{u.set(_,!0)},onSet:_=>{const w=u.tail();u.set(_,!0),w&&d.size()>i&&d.delete(w.key)}});return d}var cE=WQ;function Xa(e,i,o){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((i==null?void 0:i.allowFunctions)!==!0)throw hr("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var u;return(u=JSON.stringify(e))!==null&&u!==void 0?u:""}if(so(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((d,_)=>Xa(d,i,_.toString()))}]`;if(typeof e.toJSON=="function")return Xa(e.toJSON(o),i,o);if(e instanceof Map){const d={};for(const[_,w]of e)d[typeof _=="string"?_:Xa(_,i)]=w;return Xa(d,i,o)}return e instanceof Set?Xa(Array.from(e).sort((d,_)=>Xa(d,i).localeCompare(Xa(_,i))),i,o):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xa(Array.from(e),i,o):`{${Object.keys(e).filter(d=>e[d]!==void 0).sort().map(d=>`${Xa(d,i)}:${Xa(e[d],i,d)}`).join(",")}}`}function qQ(e,i={allowFunctions:!1}){return Xa(e,i)}var E_=qQ;const{TreeCache:KQ}=aE,N_={equality:"reference",eviction:"keep-all",maxSize:1/0};function XQ({equality:e=N_.equality,eviction:i=N_.eviction,maxSize:o=N_.maxSize}=N_,u){const d=JQ(e);return eH(i,o,d,u)}function JQ(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function eH(e,i,o,u){switch(e){case"keep-all":return new KQ({name:u,mapNodeValue:o});case"lru":return cE({name:u,maxSize:uo(i),mapNodeValue:o});case"most-recent":return cE({name:u,maxSize:1,mapNodeValue:o})}throw hr(`Unrecognized eviction policy ${e}`)}var tH=XQ;function iH(e){return()=>null}var nH={startPerfBlock:iH};const{isLoadable:rH,loadableWithError:L_,loadableWithPromise:oH,loadableWithValue:C3}=gm,{WrappedValue:uE}=oE,{getNodeLoadable:z_,peekNodeLoadable:sH,setNodeValue:aH}=vu,{saveDepsToStore:lH}=_m,{DEFAULT_VALUE:cH,getConfigDeletionHandler:uH,getNode:hH,registerNode:hE}=Ws,{isRecoilValue:dH}=gf,{markRecoilValueModified:dE}=wl,{retainedByOptionWithDefault:fH}=zh,{recoilCallback:pH}=rE,{startPerfBlock:gH}=nH;class fE{}const Sm=new fE,Am=[],O_=new Map,mH=(()=>{let e=0;return()=>e++})();function pE(e){let i=null;const{key:o,get:u,cachePolicy_UNSTABLE:d}=e,_=e.set!=null?e.set:void 0,w=new Set,a=tH(d??{equality:"reference",eviction:"keep-all"},o),E=fH(e.retainedBy_UNSTABLE),j=new Map;let Q=0;function q(){return!qr("recoil_memory_managament_2020")||Q>0}function W(T){return T.getState().knownSelectors.add(o),Q++,()=>{Q--}}function le(){return uH(o)!==void 0&&!q()}function fe(T,k,F,U,G){wt(k,U,G),we(T,F)}function we(T,k){ci(T,k)&&Tt(T),me(k,!0)}function $e(T,k){ci(T,k)&&(uo(xt(T)).stateVersions.clear(),me(k,!1))}function me(T,k){const F=O_.get(T);if(F!=null){for(const U of F)dE(U,uo(i));k&&O_.delete(T)}}function ie(T,k){let F=O_.get(k);F==null&&O_.set(k,F=new Set),F.add(T)}function te(T,k,F,U,G,re){return k.then(de=>{if(!q())throw Tt(T),Sm;const ue=C3(de);return fe(T,F,G,ue,U),de}).catch(de=>{if(!q())throw Tt(T),Sm;if(so(de))return oe(T,de,F,U,G,re);const ue=L_(de);throw fe(T,F,G,ue,U),de})}function oe(T,k,F,U,G,re){return k.then(de=>{if(!q())throw Tt(T),Sm;re.loadingDepKey!=null&&re.loadingDepPromise===k?F.atomValues.set(re.loadingDepKey,C3(de)):T.getState().knownSelectors.forEach(et=>{F.atomValues.delete(et)});const ue=Je(T,F);if(ue&&ue.state!=="loading"){if((ci(T,G)||xt(T)==null)&&we(T,G),ue.state==="hasValue")return ue.contents;throw ue.contents}if(!ci(T,G)){const et=Ye(T,F);if(et!=null)return et.loadingLoadable.contents}const[Me,Fe]=_e(T,F,G);if(Me.state!=="loading"&&fe(T,F,G,Me,Fe),Me.state==="hasError")throw Me.contents;return Me.contents}).catch(de=>{if(de instanceof fE)throw Sm;if(!q())throw Tt(T),Sm;const ue=L_(de);throw fe(T,F,G,ue,U),de})}function be(T,k,F,U){var G,re,de,ue;if(ci(T,U)||k.version===((G=T.getState())===null||G===void 0||(re=G.currentTree)===null||re===void 0?void 0:re.version)||k.version===((de=T.getState())===null||de===void 0||(ue=de.nextTree)===null||ue===void 0?void 0:ue.version)){var Me,Fe,et;lH(o,F,T,(Me=(Fe=T.getState())===null||Fe===void 0||(et=Fe.nextTree)===null||et===void 0?void 0:et.version)!==null&&Me!==void 0?Me:T.getState().currentTree.version)}for(const Ue of F)w.add(Ue)}function _e(T,k,F){const U=gH(o);let G=!0,re=!0;const de=()=>{U(),re=!1};let ue,Me=!1,Fe;const et={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Ke({key:mt}){const yt=z_(T,k,mt);switch(Ue.set(mt,yt),G||(be(T,k,new Set(Ue.keys()),F),$e(T,F)),yt.state){case"hasValue":return yt.contents;case"hasError":throw yt.contents;case"loading":throw et.loadingDepKey=mt,et.loadingDepPromise=yt.contents,yt.contents}throw hr("Invalid Loadable state")}const Ve=mt=>(...yt)=>{if(re)throw hr("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return i==null&&Dm(!1),pH(T,mt,yt,{node:i})};try{ue=u({get:Ke,getCallback:Ve}),ue=dH(ue)?Ke(ue):ue,rH(ue)&&(ue.state==="hasError"&&(Me=!0),ue=ue.contents),so(ue)?ue=te(T,ue,k,Ue,F,et).finally(de):de(),ue=ue instanceof uE?ue.value:ue}catch(mt){ue=mt,so(ue)?ue=oe(T,ue,k,Ue,F,et).finally(de):(Me=!0,de())}return Me?Fe=L_(ue):so(ue)?Fe=oH(ue):Fe=C3(ue),G=!1,Pt(T,F,Ue),be(T,k,new Set(Ue.keys()),F),[Fe,Ue]}function Je(T,k){let F=k.atomValues.get(o);if(F!=null)return F;const U=new Set;try{F=a.get(re=>(typeof re!="string"&&Dm(!1),z_(T,k,re).contents),{onNodeVisit:re=>{re.type==="branch"&&re.nodeKey!==o&&U.add(re.nodeKey)}})}catch(re){throw hr(`Problem with cache lookup for selector "${o}": ${re.message}`)}if(F){var G;k.atomValues.set(o,F),be(T,k,U,(G=xt(T))===null||G===void 0?void 0:G.executionID)}return F}function nt(T,k){const F=Je(T,k);if(F!=null)return Tt(T),F;const U=Ye(T,k);if(U!=null){var G;return((G=U.loadingLoadable)===null||G===void 0?void 0:G.state)==="loading"&&ie(T,U.executionID),U.loadingLoadable}const re=mH(),[de,ue]=_e(T,k,re);return de.state==="loading"?(dt(T,re,de,ue,k),ie(T,re)):(Tt(T),wt(k,de,ue)),de}function Ye(T,k){const F=vC([j.has(T)?[uo(j.get(T))]:[],d_(h3(j,([G])=>G!==T),([,G])=>G)]);function U(G){for(const[re,de]of G)if(!z_(T,k,re).is(de))return!0;return!1}for(const G of F){if(G.stateVersions.get(k.version)||!U(G.depValuesDiscoveredSoFarDuringAsyncWork))return G.stateVersions.set(k.version,!0),G;G.stateVersions.set(k.version,!1)}}function xt(T){return j.get(T)}function dt(T,k,F,U,G){j.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:U,executionID:k,loadingLoadable:F,stateVersions:new Map([[G.version,!0]])})}function Pt(T,k,F){if(ci(T,k)){const U=xt(T);U!=null&&(U.depValuesDiscoveredSoFarDuringAsyncWork=F)}}function Tt(T){j.delete(T)}function ci(T,k){var F;return k===((F=xt(T))===null||F===void 0?void 0:F.executionID)}function Ot(T){return Array.from(T.entries()).map(([k,F])=>[k,F.contents])}function wt(T,k,F){T.atomValues.set(o,k);try{a.set(Ot(F),k)}catch(U){throw hr(`Problem with setting cache for selector "${o}": ${U.message}`)}}function $t(T){if(Am.includes(o)){const k=`Recoil selector has circular dependencies: ${Am.slice(Am.indexOf(o)).join(" → ")}`;return L_(hr(k))}Am.push(o);try{return T()}finally{Am.pop()}}function St(T,k){const F=k.atomValues.get(o);return F??a.get(U=>{var G;return typeof U!="string"&&Dm(!1),(G=sH(T,k,U))===null||G===void 0?void 0:G.contents})}function Ht(T,k){return $t(()=>nt(T,k))}function Z(T){T.atomValues.delete(o)}function ne(T,k){i==null&&Dm(!1);for(const U of w){var F;const G=hH(U);(F=G.clearCache)===null||F===void 0||F.call(G,T,k)}w.clear(),Z(k),a.clear(),dE(T,i)}return _!=null?i=hE({key:o,nodeType:"selector",peek:St,get:Ht,set:(k,F,U)=>{let G=!1;const re=new Map;function de({key:et}){if(G)throw hr("Recoil: Async selector sets are not currently supported.");const Ue=z_(k,F,et);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Ke=`Getting value of asynchronous atom or selector "${et}" in a pending state while setting selector "${o}" is not yet supported.`;throw hr(Ke)}else throw Ue.contents}function ue(et,Ue){if(G)throw hr("Recoil: Async selector sets are not currently supported.");const Ke=typeof Ue=="function"?Ue(de(et)):Ue;aH(k,F,et.key,Ke).forEach((mt,yt)=>re.set(yt,mt))}function Me(et){ue(et,cH)}const Fe=_({set:ue,get:de,reset:Me},U);if(Fe!==void 0)throw so(Fe)?hr("Recoil: Async selector sets are not currently supported."):hr("Recoil: selector set should be a void function.");return G=!0,re},init:W,invalidate:Z,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E}):i=hE({key:o,nodeType:"selector",peek:St,get:Ht,init:W,invalidate:Z,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E})}pE.value=e=>new uE(e);var vf=pE;const{isLoadable:yH,loadableWithError:E3,loadableWithPromise:N3,loadableWithValue:xf}=gm,{WrappedValue:gE}=oE,{peekNodeInfo:_H}=vu,{DEFAULT_VALUE:Oh,DefaultValue:xu,getConfigDeletionHandler:mE,registerNode:vH,setConfigDeletionHandler:xH}=Ws,{isRecoilValue:wH}=gf,{getRecoilValueAsLoadable:bH,markRecoilValueModified:MH,setRecoilValue:yE,setRecoilValueLoadable:IH}=wl,{retainedByOptionWithDefault:TH}=zh,Cm=e=>e instanceof gE?e.value:e;function DH(e){const{key:i,persistence_UNSTABLE:o}=e,u=TH(e.retainedBy_UNSTABLE);let d=0;function _(ie){return N3(ie.then(te=>(w=xf(te),te)).catch(te=>{throw w=E3(te),te}))}let w=so(e.default)?_(e.default):yH(e.default)?e.default.state==="loading"?_(e.default.contents):e.default:xf(Cm(e.default));w.contents;let a;const E=new Map;function j(ie){return ie}function Q(ie,te){const oe=te.then(be=>{var _e,Je;return((Je=((_e=ie.getState().nextTree)!==null&&_e!==void 0?_e:ie.getState().currentTree).atomValues.get(i))===null||Je===void 0?void 0:Je.contents)===oe&&yE(ie,me,be),be}).catch(be=>{var _e,Je;throw((Je=((_e=ie.getState().nextTree)!==null&&_e!==void 0?_e:ie.getState().currentTree).atomValues.get(i))===null||Je===void 0?void 0:Je.contents)===oe&&IH(ie,me,E3(be)),be});return oe}function q(ie,te,oe){var be;d++;const _e=()=>{var xt;d--,(xt=E.get(ie))===null||xt===void 0||xt.forEach(dt=>dt()),E.delete(ie)};if(ie.getState().knownAtoms.add(i),w.state==="loading"){const xt=()=>{var dt;((dt=ie.getState().nextTree)!==null&&dt!==void 0?dt:ie.getState().currentTree).atomValues.has(i)||MH(ie,me)};w.contents.finally(xt)}const Je=(be=e.effects)!==null&&be!==void 0?be:e.effects_UNSTABLE;if(Je!=null){let ci=function(Z){if(dt&&Z.key===i){const ne=xt;return ne instanceof xu?W(ie,te):so(ne)?N3(ne.then(T=>T instanceof xu?w.toPromise():T)):xf(ne)}return bH(ie,Z)},Ot=function(Z){return ci(Z).toPromise()},wt=function(Z){var ne;const T=_H(ie,(ne=ie.getState().nextTree)!==null&&ne!==void 0?ne:ie.getState().currentTree,Z.key);return dt&&Z.key===i&&!(xt instanceof xu)?{...T,isSet:!0,loadable:ci(Z)}:T},xt=Oh,dt=!0,Pt=!1,Tt=null;const $t=Z=>ne=>{if(dt){const T=ci(me),k=T.state==="hasValue"?T.contents:Oh;xt=typeof ne=="function"?ne(k):ne,so(xt)&&(xt=xt.then(F=>(Tt={effect:Z,value:F},F)))}else{if(so(ne))throw hr("Setting atoms to async values is not implemented.");typeof ne!="function"&&(Tt={effect:Z,value:Cm(ne)}),yE(ie,me,typeof ne=="function"?T=>{const k=Cm(ne(T));return Tt={effect:Z,value:k},k}:Cm(ne))}},St=Z=>()=>$t(Z)(Oh),Ht=Z=>ne=>{var T;const{release:k}=ie.subscribeToTransactions(F=>{var U;let{currentTree:G,previousTree:re}=F.getState();re||(re=G);const de=(U=G.atomValues.get(i))!==null&&U!==void 0?U:w;if(de.state==="hasValue"){var ue,Me,Fe,et;const Ue=de.contents,Ke=(ue=re.atomValues.get(i))!==null&&ue!==void 0?ue:w,Ve=Ke.state==="hasValue"?Ke.contents:Oh;((Me=Tt)===null||Me===void 0?void 0:Me.effect)!==Z||((Fe=Tt)===null||Fe===void 0?void 0:Fe.value)!==Ue?ne(Ue,Ve,!G.atomValues.has(i)):((et=Tt)===null||et===void 0?void 0:et.effect)===Z&&(Tt=null)}},i);E.set(ie,[...(T=E.get(ie))!==null&&T!==void 0?T:[],k])};for(const Z of Je)try{const ne=Z({node:me,storeID:ie.storeID,parentStoreID_UNSTABLE:ie.parentStoreID,trigger:oe,setSelf:$t(Z),resetSelf:St(Z),onSet:Ht(Z),getPromise:Ot,getLoadable:ci,getInfo_UNSTABLE:wt});if(ne!=null){var nt;E.set(ie,[...(nt=E.get(ie))!==null&&nt!==void 0?nt:[],ne])}}catch(ne){xt=ne,Pt=!0}if(dt=!1,!(xt instanceof xu)){var Ye;const Z=Pt?E3(xt):so(xt)?N3(Q(ie,xt)):xf(Cm(xt));Z.contents,te.atomValues.set(i,Z),(Ye=ie.getState().nextTree)===null||Ye===void 0||Ye.atomValues.set(i,Z)}}return _e}function W(ie,te){var oe,be;return(oe=(be=te.atomValues.get(i))!==null&&be!==void 0?be:a)!==null&&oe!==void 0?oe:w}function le(ie,te){if(te.atomValues.has(i))return uo(te.atomValues.get(i));if(te.nonvalidatedAtoms.has(i)){if(a!=null)return a;if(o==null)return w;const oe=te.nonvalidatedAtoms.get(i),be=o.validator(oe,Oh);return a=be instanceof xu?w:xf(be),a}else return w}function fe(){a=void 0}function we(ie,te,oe){if(te.atomValues.has(i)){const be=uo(te.atomValues.get(i));if(be.state==="hasValue"&&oe===be.contents)return new Map}else if(!te.nonvalidatedAtoms.has(i)&&oe instanceof xu)return new Map;return a=void 0,new Map().set(i,xf(oe))}function $e(){return mE(i)!==void 0&&d<=0}const me=vH({key:i,nodeType:"atom",peek:W,get:le,set:we,init:q,invalidate:fe,shouldDeleteConfigOnRelease:$e,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:u});return me}function L3(e){const{...i}=e,o="default"in e?e.default:new Promise(()=>{});return wH(o)?SH({...i,default:o}):DH({...i,default:o})}function SH(e){const i=L3({...e,default:Oh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:u=>u instanceof xu?u:uo(e.persistence_UNSTABLE).validator(u,Oh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),o=vf({key:`${e.key}__withFallback`,get:({get:u})=>{const d=u(i);return d instanceof xu?e.default:d},set:({set:u},d)=>u(i,d),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return xH(o.key,mE(e.key)),o}L3.value=e=>new gE(e);var _E=L3;class AH{constructor(i){var o;ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(o=i==null?void 0:i.mapKey)!==null&&o!==void 0?o:u=>u}size(){return this._map.size}has(i){return this._map.has(this._keyMapper(i))}get(i){return this._map.get(this._keyMapper(i))}set(i,o){this._map.set(this._keyMapper(i),o)}delete(i){this._map.delete(this._keyMapper(i))}clear(){this._map.clear()}}var CH={MapCache:AH},EH=CH.MapCache,NH=Object.freeze({__proto__:null,MapCache:EH});const{LRUCache:vE}=lE,{MapCache:LH}=NH,k_={equality:"reference",eviction:"none",maxSize:1/0};function zH({equality:e=k_.equality,eviction:i=k_.eviction,maxSize:o=k_.maxSize}=k_){const u=OH(e);return kH(i,o,u)}function OH(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function kH(e,i,o){switch(e){case"keep-all":return new LH({mapKey:o});case"lru":return new vE({mapKey:o,maxSize:uo(i)});case"most-recent":return new vE({mapKey:o,maxSize:1})}throw hr(`Unrecognized eviction policy ${e}`)}var xE=zH;const{setConfigDeletionHandler:jH}=Ws;function PH(e){var i,o;const u=xE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _,w;const a=u.get(d);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:E,...j}=e,Q="default"in e?e.default:new Promise(()=>{}),q=_E({...j,key:`${e.key}__${(_=E_(d))!==null&&_!==void 0?_:"void"}`,default:typeof Q=="function"?Q(d):Q,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(d):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(d):(w=e.effects)!==null&&w!==void 0?w:e.effects_UNSTABLE});return u.set(d,q),jH(q.key,()=>{u.delete(d)}),q}}var RH=PH;const{setConfigDeletionHandler:BH}=Ws;let FH=0;function UH(e){var i,o;const u=xE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _;let w;try{w=u.get(d)}catch(W){throw hr(`Problem with cache lookup for selector ${e.key}: ${W.message}`)}if(w!=null)return w;const a=`${e.key}__selectorFamily/${(_=E_(d,{allowFunctions:!0}))!==null&&_!==void 0?_:"void"}/${FH++}`,E=W=>e.get(d)(W),j=e.cachePolicy_UNSTABLE,Q=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE;let q;if(e.set!=null){const W=e.set;q=vf({key:a,get:E,set:(fe,we)=>W(d)(fe,we),cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q})}else q=vf({key:a,get:E,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q});return u.set(d,q),BH(q.key,()=>{u.delete(d)}),q}}var wu=UH;const VH=wu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function QH(e){return VH(e)}var HH=QH;const $H=wu({key:"__error",get:e=>()=>{throw hr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function YH(e){return $H(e)}var GH=YH;function ZH(e){return e}var WH=ZH;const{loadableWithError:wE,loadableWithPromise:bE,loadableWithValue:ME}=gm;function j_(e,i){const o=Array(i.length).fill(void 0),u=Array(i.length).fill(void 0);for(const[d,_]of i.entries())try{o[d]=e(_)}catch(w){u[d]=w}return[o,u]}function qH(e){return e!=null&&!so(e)}function P_(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])}function z3(e,i){return Array.isArray(e)?i:Object.getOwnPropertyNames(e).reduce((o,u,d)=>({...o,[u]:i[d]}),{})}function wf(e,i,o){const u=o.map((d,_)=>d==null?ME(i[_]):so(d)?bE(d):wE(d));return z3(e,u)}function KH(e,i){return i.map((o,u)=>o===void 0?e[u]:o)}const XH=wu({key:"__waitForNone",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return wf(e,u,d)},dangerouslyAllowMutability:!0}),JH=wu({key:"__waitForAny",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.some(_=>!so(_))?wf(e,u,d):new Promise(_=>{for(const[w,a]of d.entries())so(a)&&a.then(E=>{u[w]=E,d[w]=void 0,_(wf(e,u,d))}).catch(E=>{d[w]=E,_(wf(e,u,d))})})},dangerouslyAllowMutability:!0}),e$=wu({key:"__waitForAll",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);if(d.every(w=>w==null))return z3(e,u);const _=d.find(qH);if(_!=null)throw _;return Promise.all(d).then(w=>z3(e,KH(u,w)))},dangerouslyAllowMutability:!0}),t$=wu({key:"__waitForAllSettled",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.every(_=>!so(_))?wf(e,u,d):Promise.all(d.map((_,w)=>so(_)?_.then(a=>{u[w]=a,d[w]=void 0}).catch(a=>{u[w]=void 0,d[w]=a}):null)).then(()=>wf(e,u,d))},dangerouslyAllowMutability:!0}),i$=wu({key:"__noWait",get:e=>({get:i})=>{try{return vf.value(ME(i(e)))}catch(o){return vf.value(so(o)?bE(o):wE(o))}},dangerouslyAllowMutability:!0});var n$={waitForNone:XH,waitForAny:JH,waitForAll:e$,waitForAllSettled:t$,noWait:i$};const{RecoilLoadable:r$}=gm,{DefaultValue:o$}=Ws,{RecoilRoot:s$,useRecoilStoreID:a$}=mc,{isRecoilValue:l$}=gf,{retentionZone:c$}=m_,{freshSnapshot:u$}=M_,{useRecoilState:h$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilStateLoadable:f$,useRecoilValue:p$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:g$,useRecoilValueLoadable:m$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:y$,useResetRecoilState:_$,useSetRecoilState:v$}=CV,{useGotoRecoilSnapshot:x$,useRecoilSnapshot:w$,useRecoilTransactionObserver:b$}=XC,{useRecoilCallback:M$}=rE,{noWait:I$,waitForAll:T$,waitForAllSettled:D$,waitForAny:S$,waitForNone:A$}=n$;var bf={DefaultValue:o$,isRecoilValue:l$,RecoilLoadable:r$,RecoilEnv:pf,RecoilRoot:s$,useRecoilStoreID:a$,useRecoilBridgeAcrossReactRoots_UNSTABLE:iQ,atom:_E,selector:vf,atomFamily:RH,selectorFamily:wu,constSelector:HH,errorSelector:GH,readOnlySelector:WH,noWait:I$,waitForNone:A$,waitForAny:S$,waitForAll:T$,waitForAllSettled:D$,useRecoilValue:p$,useRecoilValueLoadable:m$,useRecoilState:h$,useRecoilStateLoadable:f$,useSetRecoilState:v$,useResetRecoilState:_$,useGetRecoilValueInfo_UNSTABLE:qV,useRecoilRefresher_UNSTABLE:NQ,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:y$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:g$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilCallback:M$,useRecoilTransaction_UNSTABLE:jQ,useGotoRecoilSnapshot:x$,useRecoilSnapshot:w$,useRecoilTransactionObserver_UNSTABLE:b$,snapshot_UNSTABLE:u$,useRetain:b3,retentionZone:c$},C$=bf.RecoilRoot,kn=bf.atom,R_=bf.selector,Ci=bf.useRecoilValue,sn=bf.useRecoilState,Mo=bf.useResetRecoilState;const E$=(e,i)=>{const o=e[i];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((u,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+i)))})},N$="mi-components";let B_,IE,la=!1,O3=!1;const yc=(e,i="")=>()=>{},L$=(e,i)=>()=>{},z$="{visibility:hidden}.hydrated{visibility:inherit}",TE="http://www.w3.org/1999/xlink",DE={},O$="http://www.w3.org/2000/svg",k$="http://www.w3.org/1999/xhtml",j$=e=>e!=null,k3=e=>(e=typeof e,e==="object"||e==="function");function SE(e){var i,o,u;return(u=(o=(i=e.head)===null||i===void 0?void 0:i.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&u!==void 0?u:void 0}const Xe=(e,i,...o)=>{let u=null,d=null,_=!1,w=!1;const a=[],E=Q=>{for(let q=0;q<Q.length;q++)u=Q[q],Array.isArray(u)?E(u):u!=null&&typeof u!="boolean"&&((_=typeof e!="function"&&!k3(u))&&(u=String(u)),_&&w?a[a.length-1].$text$+=u:a.push(_?j3(null,u):u),w=_)};if(E(o),i){i.key&&(d=i.key);{const Q=i.className||i.class;Q&&(i.class=typeof Q!="object"?Q:Object.keys(Q).filter(q=>Q[q]).join(" "))}}const j=j3(e,null);return j.$attrs$=i,a.length>0&&(j.$children$=a),j.$key$=d,j},j3=(e,i)=>{const o={$flags$:0,$tag$:e,$text$:i,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},ko={},P$=e=>e&&e.$tag$===ko,R$=(e,i)=>e!=null&&!k3(e)?i&4?e==="false"?!1:e===""||!!e:i&2?parseFloat(e):i&1?String(e):e:e,_c=e=>bu(e).$hostElement$,$r=(e,i,o)=>{const u=_c(e);return{emit:d=>AE(u,i,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:d})}},AE=(e,i,o)=>{const u=Xo.ce(i,o);return e.dispatchEvent(u),u},CE=new WeakMap,B$=(e,i,o)=>{let u=Q_.get(e);sY&&o?(u=u||new CSSStyleSheet,typeof u=="string"?u=i:u.replaceSync(i)):u=i,Q_.set(e,u)},F$=(e,i,o,u)=>{var d;let _=EE(i);const w=Q_.get(_);if(e=e.nodeType===11?e:Ml,w)if(typeof w=="string"){e=e.head||e;let a=CE.get(e),E;if(a||CE.set(e,a=new Set),!a.has(_)){{E=Ml.createElement("style"),E.innerHTML=w;const j=(d=Xo.$nonce$)!==null&&d!==void 0?d:SE(Ml);j!=null&&E.setAttribute("nonce",j),e.insertBefore(E,e.querySelector("link"))}a&&a.add(_)}}else e.adoptedStyleSheets.includes(w)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,w]);return _},U$=e=>{const i=e.$cmpMeta$,o=e.$hostElement$,u=i.$flags$,d=yc("attachStyles",i.$tagName$),_=F$(o.shadowRoot?o.shadowRoot:o.getRootNode(),i);u&10&&(o["s-sc"]=_,o.classList.add(_+"-h")),d()},EE=(e,i)=>"sc-"+e.$tagName$,NE=(e,i,o,u,d,_)=>{if(o!==u){let w=HE(e,i),a=i.toLowerCase();if(i==="class"){const E=e.classList,j=LE(o),Q=LE(u);E.remove(...j.filter(q=>q&&!Q.includes(q))),E.add(...Q.filter(q=>q&&!j.includes(q)))}else if(i==="style"){for(const E in o)(!u||u[E]==null)&&(E.includes("-")?e.style.removeProperty(E):e.style[E]="");for(const E in u)(!o||u[E]!==o[E])&&(E.includes("-")?e.style.setProperty(E,u[E]):e.style[E]=u[E])}else if(i!=="key")if(i==="ref")u&&u(e);else if(!w&&i[0]==="o"&&i[1]==="n")i[2]==="-"?i=i.slice(3):HE(Em,a)?i=a.slice(2):i=a[2]+i.slice(3),o&&Xo.rel(e,i,o,!1),u&&Xo.ael(e,i,u,!1);else{const E=k3(u);if((w||E&&u!==null)&&!d)try{if(e.tagName.includes("-"))e[i]=u;else{const Q=u??"";i==="list"?w=!1:(o==null||e[i]!=Q)&&(e[i]=Q)}}catch{}let j=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(i=a,j=!0),u==null||u===!1?(u!==!1||e.getAttribute(i)==="")&&(j?e.removeAttributeNS(TE,i):e.removeAttribute(i)):(!w||_&4||d)&&!E&&(u=u===!0?"":u,j?e.setAttributeNS(TE,i,u):e.setAttribute(i,u))}}},V$=/\s/,LE=e=>e?e.split(V$):[],zE=(e,i,o,u)=>{const d=i.$elm$.nodeType===11&&i.$elm$.host?i.$elm$.host:i.$elm$,_=e&&e.$attrs$||DE,w=i.$attrs$||DE;for(u in _)u in w||NE(d,u,_[u],void 0,o,i.$flags$);for(u in w)NE(d,u,_[u],w[u],o,i.$flags$)},F_=(e,i,o,u)=>{const d=i.$children$[o];let _=0,w,a;if(d.$text$!==null)w=d.$elm$=Ml.createTextNode(d.$text$);else{if(la||(la=d.$tag$==="svg"),w=d.$elm$=Ml.createElementNS(la?O$:k$,d.$tag$),la&&d.$tag$==="foreignObject"&&(la=!1),zE(null,d,la),j$(B_)&&w["s-si"]!==B_&&w.classList.add(w["s-si"]=B_),d.$children$)for(_=0;_<d.$children$.length;++_)a=F_(e,d,_),a&&w.appendChild(a);d.$tag$==="svg"?la=!1:w.tagName==="foreignObject"&&(la=!0)}return w},OE=(e,i,o,u,d,_)=>{let w=e,a;for(w.shadowRoot&&w.tagName===IE&&(w=w.shadowRoot);d<=_;++d)u[d]&&(a=F_(null,o,d),a&&(u[d].$elm$=a,w.insertBefore(a,i)))},kE=(e,i,o,u,d)=>{for(;i<=o;++i)(u=e[i])&&(d=u.$elm$,jE(u),d.remove())},Q$=(e,i,o,u)=>{let d=0,_=0,w=0,a=0,E=i.length-1,j=i[0],Q=i[E],q=u.length-1,W=u[0],le=u[q],fe,we;for(;d<=E&&_<=q;)if(j==null)j=i[++d];else if(Q==null)Q=i[--E];else if(W==null)W=u[++_];else if(le==null)le=u[--q];else if(U_(j,W))Mf(j,W),j=i[++d],W=u[++_];else if(U_(Q,le))Mf(Q,le),Q=i[--E],le=u[--q];else if(U_(j,le))Mf(j,le),e.insertBefore(j.$elm$,Q.$elm$.nextSibling),j=i[++d],le=u[--q];else if(U_(Q,W))Mf(Q,W),e.insertBefore(Q.$elm$,j.$elm$),Q=i[--E],W=u[++_];else{for(w=-1,a=d;a<=E;++a)if(i[a]&&i[a].$key$!==null&&i[a].$key$===W.$key$){w=a;break}w>=0?(we=i[w],we.$tag$!==W.$tag$?fe=F_(i&&i[_],o,w):(Mf(we,W),i[w]=void 0,fe=we.$elm$),W=u[++_]):(fe=F_(i&&i[_],o,_),W=u[++_]),fe&&j.$elm$.parentNode.insertBefore(fe,j.$elm$)}d>E?OE(e,u[q+1]==null?null:u[q+1].$elm$,o,u,_,q):_>q&&kE(i,d,E)},U_=(e,i)=>e.$tag$===i.$tag$?e.$key$===i.$key$:!1,Mf=(e,i)=>{const o=i.$elm$=e.$elm$,u=e.$children$,d=i.$children$,_=i.$tag$,w=i.$text$;w===null?(la=_==="svg"?!0:_==="foreignObject"?!1:la,_==="slot"||zE(e,i,la),u!==null&&d!==null?Q$(o,u,i,d):d!==null?(e.$text$!==null&&(o.textContent=""),OE(o,null,i,d,0,d.length-1)):u!==null&&kE(u,0,u.length-1),la&&_==="svg"&&(la=!1)):e.$text$!==w&&(o.data=w)},jE=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(jE)},H$=(e,i)=>{const o=e.$hostElement$,u=e.$cmpMeta$,d=e.$vnode$||j3(null,null),_=P$(i)?i:Xe(null,null,i);IE=o.tagName,u.$attrsToReflect$&&(_.$attrs$=_.$attrs$||{},u.$attrsToReflect$.map(([w,a])=>_.$attrs$[a]=o[w])),_.$tag$=null,_.$flags$|=4,e.$vnode$=_,_.$elm$=d.$elm$=o.shadowRoot||o,B_=o["s-sc"],Mf(d,_)},PE=(e,i)=>{i&&!e.$onRenderResolve$&&i["s-p"]&&i["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},V_=(e,i)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return PE(e,e.$ancestorComponent$),lY(()=>$$(e,i))},$$=(e,i)=>{const o=yc("scheduleUpdate",e.$cmpMeta$.$tagName$),u=e.$lazyInstance$;let d;return i&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([_,w])=>kh(u,_,w)),e.$queuedListeners$=null),d=kh(u,"componentWillLoad")),d=BE(d,()=>kh(u,"componentWillRender")),o(),BE(d,()=>Y$(e,u,i))},Y$=async(e,i,o)=>{const u=e.$hostElement$,d=yc("update",e.$cmpMeta$.$tagName$),_=u["s-rc"];o&&U$(e);const w=yc("render",e.$cmpMeta$.$tagName$);G$(e,i),_&&(_.map(a=>a()),u["s-rc"]=void 0),w(),d();{const a=u["s-p"],E=()=>Z$(e);a.length===0?E():(Promise.all(a).then(E),e.$flags$|=4,a.length=0)}},G$=(e,i,o)=>{try{i=i.render&&i.render(),e.$flags$&=-17,e.$flags$|=2,H$(e,i)}catch(u){jh(u,e.$hostElement$)}return null},Z$=e=>{const i=e.$cmpMeta$.$tagName$,o=e.$hostElement$,u=yc("postUpdate",i),d=e.$lazyInstance$,_=e.$ancestorComponent$;kh(d,"componentDidRender"),e.$flags$&64?u():(e.$flags$|=64,FE(o),kh(d,"componentDidLoad"),u(),e.$onReadyResolve$(o),_||RE()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&F3(()=>V_(e,!1)),e.$flags$&=-517},P3=e=>{{const i=bu(e),o=i.$hostElement$.isConnected;return o&&(i.$flags$&18)===2&&V_(i,!1),o}},RE=e=>{FE(Ml.documentElement),F3(()=>AE(Em,"appload",{detail:{namespace:N$}}))},kh=(e,i,o)=>{if(e&&e[i])try{return e[i](o)}catch(u){jh(u)}},BE=(e,i)=>e&&e.then?e.then(i):i(),FE=e=>e.classList.add("hydrated"),W$=(e,i)=>bu(e).$instanceValues$.get(i),q$=(e,i,o,u)=>{const d=bu(e),_=d.$hostElement$,w=d.$instanceValues$.get(i),a=d.$flags$,E=d.$lazyInstance$;o=R$(o,u.$members$[i][0]);const j=Number.isNaN(w)&&Number.isNaN(o),Q=o!==w&&!j;if((!(a&8)||w===void 0)&&Q&&(d.$instanceValues$.set(i,o),E)){if(u.$watchers$&&a&128){const q=u.$watchers$[i];q&&q.map(W=>{try{E[W](o,w,i)}catch(le){jh(le,_)}})}(a&18)===2&&V_(d,!1)}},UE=(e,i,o)=>{if(i.$members$){e.watchers&&(i.$watchers$=e.watchers);const u=Object.entries(i.$members$),d=e.prototype;if(u.map(([_,[w]])=>{w&31||o&2&&w&32?Object.defineProperty(d,_,{get(){return W$(this,_)},set(a){q$(this,_,a,i)},configurable:!0,enumerable:!0}):o&1&&w&64&&Object.defineProperty(d,_,{value(...a){const E=bu(this);return E.$onInstancePromise$.then(()=>E.$lazyInstance$[_](...a))}})}),o&1){const _=new Map;d.attributeChangedCallback=function(w,a,E){Xo.jmp(()=>{const j=_.get(w);if(this.hasOwnProperty(j))E=this[j],delete this[j];else if(d.hasOwnProperty(j)&&typeof this[j]=="number"&&this[j]==E)return;this[j]=E===null&&typeof this[j]=="boolean"?!1:E})},e.observedAttributes=u.filter(([w,a])=>a[0]&15).map(([w,a])=>{const E=a[1]||w;return _.set(E,w),a[0]&512&&i.$attrsToReflect$.push([w,E]),E})}}return e},K$=async(e,i,o,u,d)=>{if(!(i.$flags$&32)){{if(i.$flags$|=32,d=oY(o),d.then){const E=L$();d=await d,E()}d.isProxied||(o.$watchers$=d.watchers,UE(d,o,2),d.isProxied=!0);const a=yc("createInstance",o.$tagName$);i.$flags$|=8;try{new d(i)}catch(E){jh(E)}i.$flags$&=-9,i.$flags$|=128,a(),VE(i.$lazyInstance$)}if(d.style){let a=d.style;const E=EE(o);if(!Q_.has(E)){const j=yc("registerStyles",o.$tagName$);B$(E,a,!!(o.$flags$&1)),j()}}}const _=i.$ancestorComponent$,w=()=>V_(i,!0);_&&_["s-rc"]?_["s-rc"].push(w):w()},VE=e=>{kh(e,"connectedCallback")},X$=e=>{if(!(Xo.$flags$&1)){const i=bu(e),o=i.$cmpMeta$,u=yc("connectedCallback",o.$tagName$);if(i.$flags$&1)QE(e,i,o.$listeners$),VE(i.$lazyInstance$);else{i.$flags$|=1;{let d=e;for(;d=d.parentNode||d.host;)if(d["s-p"]){PE(i,i.$ancestorComponent$=d);break}}o.$members$&&Object.entries(o.$members$).map(([d,[_]])=>{if(_&31&&e.hasOwnProperty(d)){const w=e[d];delete e[d],e[d]=w}}),K$(e,i,o)}u()}},J$=e=>{if(!(Xo.$flags$&1)){const i=bu(e),o=i.$lazyInstance$;i.$rmListeners$&&(i.$rmListeners$.map(u=>u()),i.$rmListeners$=void 0),kh(o,"disconnectedCallback")}},eY=(e,i={})=>{var o;const u=yc(),d=[],_=i.exclude||[],w=Em.customElements,a=Ml.head,E=a.querySelector("meta[charset]"),j=Ml.createElement("style"),Q=[];let q,W=!0;Object.assign(Xo,i),Xo.$resourcesUrl$=new URL(i.resourcesUrl||"./",Ml.baseURI).href,e.map(le=>{le[1].map(fe=>{const we={$flags$:fe[0],$tagName$:fe[1],$members$:fe[2],$listeners$:fe[3]};we.$members$=fe[2],we.$listeners$=fe[3],we.$attrsToReflect$=[],we.$watchers$={};const $e=we.$tagName$,me=class extends HTMLElement{constructor(ie){super(ie),ie=this,rY(ie,we),we.$flags$&1&&ie.attachShadow({mode:"open"})}connectedCallback(){q&&(clearTimeout(q),q=null),W?Q.push(this):Xo.jmp(()=>X$(this))}disconnectedCallback(){Xo.jmp(()=>J$(this))}componentOnReady(){return bu(this).$onReadyPromise$}};we.$lazyBundleId$=le[0],!_.includes($e)&&!w.get($e)&&(d.push($e),w.define($e,UE(me,we,1)))})});{j.innerHTML=d+z$,j.setAttribute("data-styles","");const le=(o=Xo.$nonce$)!==null&&o!==void 0?o:SE(Ml);le!=null&&j.setAttribute("nonce",le),a.insertBefore(j,E?E.nextSibling:a.firstChild)}W=!1,Q.length?Q.map(le=>le.connectedCallback()):Xo.jmp(()=>q=setTimeout(RE,30)),u()},QE=(e,i,o,u)=>{o&&o.map(([d,_,w])=>{const a=iY(e,d),E=tY(i,w),j=nY(d);Xo.ael(a,_,E,j),(i.$rmListeners$=i.$rmListeners$||[]).push(()=>Xo.rel(a,_,E,j))})},tY=(e,i)=>o=>{try{e.$flags$&256?e.$lazyInstance$[i](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([i,o])}catch(u){jh(u)}},iY=(e,i)=>i&8?Em:e,nY=e=>(e&2)!==0,R3=new WeakMap,bu=e=>R3.get(e),Ir=(e,i)=>R3.set(i.$lazyInstance$=e,i),rY=(e,i)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:i,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(u=>o.$onInstanceResolve$=u),o.$onReadyPromise$=new Promise(u=>o.$onReadyResolve$=u),e["s-p"]=[],e["s-rc"]=[],QE(e,o,i.$listeners$),R3.set(e,o)},HE=(e,i)=>i in e,jh=(e,i)=>(0,console.error)(e,i),$E=new Map,oY=(e,i,o)=>{const u=e.$tagName$.replace(/-/g,"_"),d=e.$lazyBundleId$,_=$E.get(d);if(_)return _[u];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return E$(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>_q),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>wq),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>Mq),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Iq),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Sq),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>kq),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Rq),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>Bq),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Gq),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>Wq),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>aK),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>cK),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>hK),"./mi-list.entry.js":()=>Promise.resolve().then(()=>fK),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Rie),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>Fie),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Gie),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>Kie),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>Jie),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>pne),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>mne),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>_ne),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>xne),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>bne),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Ine),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>Dne),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>Ane),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Ene),"./mi-search.entry.js":()=>Promise.resolve().then(()=>kne),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Pne),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Bne),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Une),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>Vne),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Hne),"./mi-time.entry.js":()=>Promise.resolve().then(()=>$ne)}),`./${d}.entry.js`).then(w=>($E.set(d,w),w[u]),jh)},Q_=new Map,Em=typeof window<"u"?window:{},Ml=Em.document||{head:{}},Xo={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,i,o,u)=>e.addEventListener(i,o,u),rel:(e,i,o,u)=>e.removeEventListener(i,o,u),ce:(e,i)=>new CustomEvent(e,i)},YE=e=>Promise.resolve(e),sY=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),GE=[],ZE=[],aY=(e,i)=>o=>{e.push(o),O3||(O3=!0,i&&Xo.$flags$&4?F3(B3):Xo.raf(B3))},WE=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(o){jh(o)}e.length=0},B3=()=>{WE(GE),WE(ZE),(O3=GE.length>0)&&Xo.raf(B3)},F3=e=>YE().then(e),lY=aY(ZE,!0),cY=()=>YE(),qE=(e,i)=>typeof window>"u"?Promise.resolve():cY().then(()=>eY([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],customPositionProvider:[16],positionState:[32],setPosition:[64],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtons:[64],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"],showFloor:[4,"show-floor"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],i)),uY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,i){console&&console[e]&&console[e].apply(console,i)}};class H_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(i,o)}init(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=i||uY,this.options=o,this.debug=o.debug}log(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"log","",!0)}warn(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","",!0)}error(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"error","")}deprecate(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,u,d){return d&&!this.debug?null:(typeof i[0]=="string"&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new H_(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new H_(this.logger,i)}}var Il=new H_;class $_{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(u=>{this.observers[u]=this.observers[u]||[],this.observers[u].push(o)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(u=>u!==o)}}emit(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];this.observers[i]&&[].concat(this.observers[i]).forEach(w=>{w(...u)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(w=>{w.apply(w,[i,...u])})}}function Nm(){let e,i;const o=new Promise((u,d)=>{e=u,i=d});return o.resolve=e,o.reject=i,o}function KE(e){return e==null?"":""+e}function hY(e,i,o){e.forEach(u=>{i[u]&&(o[u]=i[u])})}function U3(e,i,o){function u(w){return w&&w.indexOf("###")>-1?w.replace(/###/g,"."):w}function d(){return!e||typeof e=="string"}const _=typeof i!="string"?[].concat(i):i.split(".");for(;_.length>1;){if(d())return{};const w=u(_.shift());!e[w]&&o&&(e[w]=new o),Object.prototype.hasOwnProperty.call(e,w)?e=e[w]:e={}}return d()?{}:{obj:e,k:u(_.shift())}}function XE(e,i,o){const{obj:u,k:d}=U3(e,i,Object);u[d]=o}function dY(e,i,o,u){const{obj:d,k:_}=U3(e,i,Object);d[_]=d[_]||[],u&&(d[_]=d[_].concat(o)),u||d[_].push(o)}function Y_(e,i){const{obj:o,k:u}=U3(e,i);if(o)return o[u]}function fY(e,i,o){const u=Y_(e,o);return u!==void 0?u:Y_(i,o)}function JE(e,i,o){for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in e?typeof e[u]=="string"||e[u]instanceof String||typeof i[u]=="string"||i[u]instanceof String?o&&(e[u]=i[u]):JE(e[u],i[u],o):e[u]=i[u]);return e}function If(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function gY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,i=>pY[i]):e}const mY=[" ",",","?","!",";"];function yY(e,i,o){i=i||"",o=o||"";const u=mY.filter(w=>i.indexOf(w)<0&&o.indexOf(w)<0);if(u.length===0)return!0;const d=new RegExp(`(${u.map(w=>w==="?"?"\\?":w).join("|")})`);let _=!d.test(e);if(!_){const w=e.indexOf(o);w>0&&!d.test(e.substring(0,w))&&(_=!0)}return _}function G_(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[i])return e[i];const u=i.split(o);let d=e;for(let _=0;_<u.length;++_){if(!d||typeof d[u[_]]=="string"&&_+1<u.length)return;if(d[u[_]]===void 0){let w=2,a=u.slice(_,_+w).join(o),E=d[a];for(;E===void 0&&u.length>_+w;)w++,a=u.slice(_,_+w).join(o),E=d[a];if(E===void 0)return;if(E===null)return null;if(i.endsWith(a)){if(typeof E=="string")return E;if(a&&typeof E[a]=="string")return E[a]}const j=u.slice(_+w).join(o);return j?G_(E,j,o):void 0}d=d[u[_]]}return d}function Z_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class eN extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,w=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[i,o];u&&typeof u!="string"&&(a=a.concat(u)),u&&typeof u=="string"&&(a=a.concat(_?u.split(_):u)),i.indexOf(".")>-1&&(a=i.split("."));const E=Y_(this.data,a);return E||!w||typeof u!="string"?E:G_(this.data&&this.data[i]&&this.data[i][o],u,_)}addResource(i,o,u,d){let _=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const w=_.keySeparator!==void 0?_.keySeparator:this.options.keySeparator;let a=[i,o];u&&(a=a.concat(w?u.split(w):u)),i.indexOf(".")>-1&&(a=i.split("."),d=o,o=a[1]),this.addNamespaces(o),XE(this.data,a,d),_.silent||this.emit("added",i,o,u,d)}addResources(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _ in u)(typeof u[_]=="string"||Object.prototype.toString.apply(u[_])==="[object Array]")&&this.addResource(i,o,_,u[_],{silent:!0});d.silent||this.emit("added",i,o,u)}addResourceBundle(i,o,u,d,_){let w=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[i,o];i.indexOf(".")>-1&&(a=i.split("."),d=u,u=o,o=a[1]),this.addNamespaces(o);let E=Y_(this.data,a)||{};d?JE(E,u,_):E={...E,...u},XE(this.data,a,E),w.silent||this.emit("added",i,o,u)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(i,o)}:this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(d=>o[d]&&Object.keys(o[d]).length>0)}toJSON(){return this.data}}var tN={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,i,o,u,d){return e.forEach(_=>{this.processors[_]&&(i=this.processors[_].process(i,o,u,d))}),i}};const iN={};class W_ extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),hY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Il.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;const u=this.resolve(i,o);return u&&u.res!==void 0}extractFromKey(i,o){let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let _=o.ns||this.options.defaultNS||[];const w=u&&i.indexOf(u)>-1,a=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!yY(i,u,d);if(w&&!a){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:_};const j=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(j[0])>-1)&&(_=j.shift()),i=j.join(d)}return typeof _=="string"&&(_=[_]),{key:i,namespaces:_}}translate(i,o,u){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,_=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:w,namespaces:a}=this.extractFromKey(i[i.length-1],o),E=a[a.length-1],j=o.lng||this.language,Q=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(j&&j.toLowerCase()==="cimode"){if(Q){const oe=o.nsSeparator||this.options.nsSeparator;return d?{res:`${E}${oe}${w}`,usedKey:w,exactUsedKey:w,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:`${E}${oe}${w}`}return d?{res:w,usedKey:w,exactUsedKey:w,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:w}const q=this.resolve(i,o);let W=q&&q.res;const le=q&&q.usedKey||w,fe=q&&q.exactUsedKey||w,we=Object.prototype.toString.apply(W),$e=["[object Number]","[object Function]","[object RegExp]"],me=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ie=!this.i18nFormat||this.i18nFormat.handleAsObject;if(ie&&W&&(typeof W!="string"&&typeof W!="boolean"&&typeof W!="number")&&$e.indexOf(we)<0&&!(typeof me=="string"&&we==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const oe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(le,W,{...o,ns:a}):`key '${w} (${this.language})' returned an object instead of string.`;return d?(q.res=oe,q.usedParams=this.getUsedParamsDetails(o),q):oe}if(_){const oe=we==="[object Array]",be=oe?[]:{},_e=oe?fe:le;for(const Je in W)if(Object.prototype.hasOwnProperty.call(W,Je)){const nt=`${_e}${_}${Je}`;be[Je]=this.translate(nt,{...o,joinArrays:!1,ns:a}),be[Je]===nt&&(be[Je]=W[Je])}W=be}}else if(ie&&typeof me=="string"&&we==="[object Array]")W=W.join(me),W&&(W=this.extendTranslation(W,i,o,u));else{let oe=!1,be=!1;const _e=o.count!==void 0&&typeof o.count!="string",Je=W_.hasDefaultValue(o),nt=_e?this.pluralResolver.getSuffix(j,o.count,o):"",Ye=o.ordinal&&_e?this.pluralResolver.getSuffix(j,o.count,{ordinal:!1}):"",xt=o[`defaultValue${nt}`]||o[`defaultValue${Ye}`]||o.defaultValue;!this.isValidLookup(W)&&Je&&(oe=!0,W=xt),this.isValidLookup(W)||(be=!0,W=w);const Pt=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&be?void 0:W,Tt=Je&&xt!==W&&this.options.updateMissing;if(be||oe||Tt){if(this.logger.log(Tt?"updateKey":"missingKey",j,E,w,Tt?xt:W),_){const $t=this.resolve(w,{...o,keySeparator:!1});$t&&$t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ci=[];const Ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ot&&Ot[0])for(let $t=0;$t<Ot.length;$t++)ci.push(Ot[$t]);else this.options.saveMissingTo==="all"?ci=this.languageUtils.toResolveHierarchy(o.lng||this.language):ci.push(o.lng||this.language);const wt=($t,St,Ht)=>{const Z=Je&&Ht!==W?Ht:Pt;this.options.missingKeyHandler?this.options.missingKeyHandler($t,E,St,Z,Tt,o):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($t,E,St,Z,Tt,o),this.emit("missingKey",$t,E,St,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_e?ci.forEach($t=>{this.pluralResolver.getSuffixes($t,o).forEach(St=>{wt([$t],w+St,o[`defaultValue${St}`]||xt)})}):wt(ci,w,xt))}W=this.extendTranslation(W,i,o,q,u),be&&W===w&&this.options.appendNamespaceToMissingKey&&(W=`${E}:${w}`),(be||oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}:${w}`:w,oe?W:void 0):W=this.options.parseMissingKeyHandler(W))}return d?(q.res=W,q.usedParams=this.getUsedParamsDetails(o),q):W}extendTranslation(i,o,u,d,_){var w=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const j=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Q;if(j){const W=i.match(this.interpolator.nestingRegexp);Q=W&&W.length}let q=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(q={...this.options.interpolation.defaultVariables,...q}),i=this.interpolator.interpolate(i,q,u.lng||this.language,u),j){const W=i.match(this.interpolator.nestingRegexp),le=W&&W.length;Q<le&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(u.lng=d.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var W=arguments.length,le=new Array(W),fe=0;fe<W;fe++)le[fe]=arguments[fe];return _&&_[0]===le[0]&&!u.context?(w.logger.warn(`It seems you are nesting recursively key: ${le[0]} in key: ${o[0]}`),null):w.translate(...le,o)},u)),u.interpolation&&this.interpolator.reset()}const a=u.postProcess||this.options.postProcess,E=typeof a=="string"?[a]:a;return i!=null&&E&&E.length&&u.applyPostProcessor!==!1&&(i=tN.handle(E,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,d,_,w,a;return typeof i=="string"&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const j=this.extractFromKey(E,o),Q=j.key;d=Q;let q=j.namespaces;this.options.fallbackNS&&(q=q.concat(this.options.fallbackNS));const W=o.count!==void 0&&typeof o.count!="string",le=W&&!o.ordinal&&o.count===0&&this.pluralResolver.shouldUseIntlApi(),fe=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",we=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);q.forEach($e=>{this.isValidLookup(u)||(a=$e,!iN[`${we[0]}-${$e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(iN[`${we[0]}-${$e}`]=!0,this.logger.warn(`key "${d}" for languages "${we.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),we.forEach(me=>{if(this.isValidLookup(u))return;w=me;const ie=[Q];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ie,Q,me,$e,o);else{let oe;W&&(oe=this.pluralResolver.getSuffix(me,o.count,o));const be=`${this.options.pluralSeparator}zero`,_e=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(W&&(ie.push(Q+oe),o.ordinal&&oe.indexOf(_e)===0&&ie.push(Q+oe.replace(_e,this.options.pluralSeparator)),le&&ie.push(Q+be)),fe){const Je=`${Q}${this.options.contextSeparator}${o.context}`;ie.push(Je),W&&(ie.push(Je+oe),o.ordinal&&oe.indexOf(_e)===0&&ie.push(Je+oe.replace(_e,this.options.pluralSeparator)),le&&ie.push(Je+be))}}let te;for(;te=ie.pop();)this.isValidLookup(u)||(_=te,u=this.getResource(me,$e,te,o))}))})}),{res:u,usedKey:d,exactUsedKey:_,usedLng:w,usedNS:a}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,d):this.resourceStore.getResource(i,o,u,d)}getUsedParamsDetails(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&typeof i.replace!="string";let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const _ of o)delete d[_]}return d}static hasDefaultValue(i){const o="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}function V3(e){return e.charAt(0).toUpperCase()+e.slice(1)}class nN{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Il.create("languageUtils")}getScriptPartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(typeof i=="string"&&i.indexOf("-")>-1){const o=["hans","hant","latn","cyrl","cans","mong","arab"];let u=i.split("-");return this.options.lowerCaseLng?u=u.map(d=>d.toLowerCase()):u.length===2?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase()))):u.length===3&&(u[0]=u[0].toLowerCase(),u[1].length===2&&(u[1]=u[1].toUpperCase()),u[0]!=="sgn"&&u[2].length===2&&(u[2]=u[2].toUpperCase()),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase())),o.indexOf(u[2].toLowerCase())>-1&&(u[2]=V3(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(u=>{if(o)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(o=d)}),!o&&this.options.supportedLngs&&i.forEach(u=>{if(o)return;const d=this.getLanguagePartFromCode(u);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(_=>{if(_===d)return _;if(!(_.indexOf("-")<0&&d.indexOf("-")<0)&&_.indexOf(d)===0)return _})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!o)return i.default||[];let u=i[o];return u||(u=i[this.getScriptPartFromCode(o)]),u||(u=i[this.formatLanguageCode(o)]),u||(u=i[this.getLanguagePartFromCode(o)]),u||(u=i.default),u||[]}toResolveHierarchy(i,o){const u=this.getFallbackCodes(o||this.options.fallbackLng||[],i),d=[],_=w=>{w&&(this.isSupportedCode(w)?d.push(w):this.logger.warn(`rejecting language code not found in supportedLngs: ${w}`))};return typeof i=="string"&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&_(this.getLanguagePartFromCode(i))):typeof i=="string"&&_(this.formatLanguageCode(i)),u.forEach(w=>{d.indexOf(w)<0&&_(this.formatLanguageCode(w))}),d}}let _Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vY={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const xY=["v1","v2","v3"],wY=["v4"],rN={zero:0,one:1,two:2,few:3,many:4,other:5};function bY(){const e={};return _Y.forEach(i=>{i.lngs.forEach(o=>{e[o]={numbers:i.nr,plurals:vY[i.fc]}})}),e}class MY{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=i,this.options=o,this.logger=Il.create("pluralResolver"),(!this.options.compatibilityJSON||wY.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=bY()}addRule(i,o){this.rules[i]=o}getRule(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Z_(i),{type:o.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}needsPlural(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(i,u).map(d=>`${o}${d}`)}getSuffixes(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((d,_)=>rN[d]-rN[_]).map(d=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${d}`):u.numbers.map(d=>this.getSuffix(i,d,o)):[]}getSuffix(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=this.getRule(i,u);return d?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(o)}`:this.getSuffixRetroCompatible(d,o):(this.logger.warn(`no plural rule found for: ${i}`),"")}getSuffixRetroCompatible(i,o){const u=i.noAbs?i.plurals(o):i.plurals(Math.abs(o));let d=i.numbers[u];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(d===2?d="plural":d===1&&(d=""));const _=()=>this.options.prepend&&d.toString()?this.options.prepend+d.toString():d.toString();return this.options.compatibilityJSON==="v1"?d===1?"":typeof d=="number"?`_plural_${d.toString()}`:_():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?_():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!xY.includes(this.options.compatibilityJSON)}}function oN(e,i,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_=fY(e,i,o);return!_&&d&&typeof o=="string"&&(_=G_(e,o,u),_===void 0&&(_=G_(i,o,u))),_}class IY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("interpolator"),this.options=i,this.format=i.interpolation&&i.interpolation.format||(o=>o),this.init(i)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});const o=i.interpolation;this.escape=o.escape!==void 0?o.escape:gY,this.escapeValue=o.escapeValue!==void 0?o.escapeValue:!0,this.useRawValueToEscape=o.useRawValueToEscape!==void 0?o.useRawValueToEscape:!1,this.prefix=o.prefix?If(o.prefix):o.prefixEscaped||"{{",this.suffix=o.suffix?If(o.suffix):o.suffixEscaped||"}}",this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||",",this.unescapePrefix=o.unescapeSuffix?"":o.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":o.unescapeSuffix||"",this.nestingPrefix=o.nestingPrefix?If(o.nestingPrefix):o.nestingPrefixEscaped||If("$t("),this.nestingSuffix=o.nestingSuffix?If(o.nestingSuffix):o.nestingSuffixEscaped||If(")"),this.nestingOptionsSeparator=o.nestingOptionsSeparator?o.nestingOptionsSeparator:o.nestingOptionsSeparator||",",this.maxReplaces=o.maxReplaces?o.maxReplaces:1e3,this.alwaysFormat=o.alwaysFormat!==void 0?o.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(i,"g");const o=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(o,"g");const u=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(u,"g")}interpolate(i,o,u,d){let _,w,a;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(fe){return fe.replace(/\$/g,"$$$$")}const Q=fe=>{if(fe.indexOf(this.formatSeparator)<0){const ie=oN(o,E,fe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ie,void 0,u,{...d,...o,interpolationkey:fe}):ie}const we=fe.split(this.formatSeparator),$e=we.shift().trim(),me=we.join(this.formatSeparator).trim();return this.format(oN(o,E,$e,this.options.keySeparator,this.options.ignoreJSONStructure),me,u,{...d,...o,interpolationkey:$e})};this.resetRegExp();const q=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,W=d&&d.interpolation&&d.interpolation.skipOnVariables!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:fe=>j(fe)},{regex:this.regexp,safeValue:fe=>this.escapeValue?j(this.escape(fe)):j(fe)}].forEach(fe=>{for(a=0;_=fe.regex.exec(i);){const we=_[1].trim();if(w=Q(we),w===void 0)if(typeof q=="function"){const me=q(i,_,d);w=typeof me=="string"?me:""}else if(d&&Object.prototype.hasOwnProperty.call(d,we))w="";else if(W){w=_[0];continue}else this.logger.warn(`missed to pass in variable ${we} for interpolating ${i}`),w="";else typeof w!="string"&&!this.useRawValueToEscape&&(w=KE(w));const $e=fe.safeValue(w);if(i=i.replace(_[0],$e),W?(fe.regex.lastIndex+=w.length,fe.regex.lastIndex-=_[0].length):fe.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),i}nest(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,_,w;function a(E,j){const Q=this.nestingOptionsSeparator;if(E.indexOf(Q)<0)return E;const q=E.split(new RegExp(`${Q}[ ]*{`));let W=`{${q[1]}`;E=q[0],W=this.interpolate(W,w);const le=W.match(/'/g),fe=W.match(/"/g);(le&&le.length%2===0&&!fe||fe.length%2!==0)&&(W=W.replace(/'/g,'"'));try{w=JSON.parse(W),j&&(w={...j,...w})}catch(we){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,we),`${E}${Q}${W}`}return delete w.defaultValue,E}for(;d=this.nestingRegexp.exec(i);){let E=[];w={...u},w=w.replace&&typeof w.replace!="string"?w.replace:w,w.applyPostProcessor=!1,delete w.defaultValue;let j=!1;if(d[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(d[1])){const Q=d[1].split(this.formatSeparator).map(q=>q.trim());d[1]=Q.shift(),E=Q,j=!0}if(_=o(a.call(this,d[1].trim(),w),w),_&&d[0]===i&&typeof _!="string")return _;typeof _!="string"&&(_=KE(_)),_||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),_=""),j&&(_=E.reduce((Q,q)=>this.format(Q,q,u.lng,{...u,interpolationkey:d[1].trim()}),_.trim())),i=i.replace(d[0],_),this.regexp.lastIndex=0}return i}}function TY(e){let i=e.toLowerCase().trim();const o={};if(e.indexOf("(")>-1){const u=e.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?o.currency||(o.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?o.range||(o.range=d.trim()):d.split(";").forEach(w=>{if(!w)return;const[a,...E]=w.split(":"),j=E.join(":").trim().replace(/^'+|'+$/g,"");o[a.trim()]||(o[a.trim()]=j),j==="false"&&(o[a.trim()]=!1),j==="true"&&(o[a.trim()]=!0),isNaN(j)||(o[a.trim()]=parseInt(j,10))})}return{formatName:i,formatOptions:o}}function Tf(e){const i={};return function(u,d,_){const w=d+JSON.stringify(_);let a=i[w];return a||(a=e(Z_(d),_),i[w]=a),a(u)}}class DY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("formatter"),this.options=i,this.formats={number:Tf((o,u)=>{const d=new Intl.NumberFormat(o,{...u});return _=>d.format(_)}),currency:Tf((o,u)=>{const d=new Intl.NumberFormat(o,{...u,style:"currency"});return _=>d.format(_)}),datetime:Tf((o,u)=>{const d=new Intl.DateTimeFormat(o,{...u});return _=>d.format(_)}),relativetime:Tf((o,u)=>{const d=new Intl.RelativeTimeFormat(o,{...u});return _=>d.format(_,u.range||"day")}),list:Tf((o,u)=>{const d=new Intl.ListFormat(o,{...u});return _=>d.format(_)})},this.init(i)}init(i){const u=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=u.formatSeparator?u.formatSeparator:u.formatSeparator||","}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=Tf(o)}format(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return o.split(this.formatSeparator).reduce((a,E)=>{const{formatName:j,formatOptions:Q}=TY(E);if(this.formats[j]){let q=a;try{const W=d&&d.formatParams&&d.formatParams[d.interpolationkey]||{},le=W.locale||W.lng||d.locale||d.lng||u;q=this.formats[j](a,le,{...Q,...d,...W})}catch(W){this.logger.warn(W)}return q}else this.logger.warn(`there was no format function for ${j}`);return a},i)}}function SY(e,i){e.pending[i]!==void 0&&(delete e.pending[i],e.pendingCount--)}class AY extends $_{constructor(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=i,this.store=o,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=Il.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,d.backend,d)}queueLoad(i,o,u,d){const _={},w={},a={},E={};return i.forEach(j=>{let Q=!0;o.forEach(q=>{const W=`${j}|${q}`;!u.reload&&this.store.hasResourceBundle(j,q)?this.state[W]=2:this.state[W]<0||(this.state[W]===1?w[W]===void 0&&(w[W]=!0):(this.state[W]=1,Q=!1,w[W]===void 0&&(w[W]=!0),_[W]===void 0&&(_[W]=!0),E[q]===void 0&&(E[q]=!0)))}),Q||(a[j]=!0)}),(Object.keys(_).length||Object.keys(w).length)&&this.queue.push({pending:w,pendingCount:Object.keys(w).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(_),pending:Object.keys(w),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(E)}}loaded(i,o,u){const d=i.split("|"),_=d[0],w=d[1];o&&this.emit("failedLoading",_,w,o),u&&this.store.addResourceBundle(_,w,u),this.state[i]=o?-1:2;const a={};this.queue.forEach(E=>{dY(E.loaded,[_],w),SY(E,i),o&&E.errors.push(o),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(j=>{a[j]||(a[j]={});const Q=E.loaded[j];Q.length&&Q.forEach(q=>{a[j][q]===void 0&&(a[j][q]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(E=>!E.done)}read(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,w=arguments.length>5?arguments[5]:void 0;if(!i.length)return w(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:d,wait:_,callback:w});return}this.readingCalls++;const a=(j,Q)=>{if(this.readingCalls--,this.waitingReads.length>0){const q=this.waitingReads.shift();this.read(q.lng,q.ns,q.fcName,q.tried,q.wait,q.callback)}if(j&&Q&&d<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,u,d+1,_*2,w)},_);return}w(j,Q)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const j=E(i,o);j&&typeof j.then=="function"?j.then(Q=>a(null,Q)).catch(a):a(null,j)}catch(j){a(j)}return}return E(i,o,a)}prepareLoading(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);const _=this.queueLoad(i,o,u,d);if(!_.toLoad.length)return _.pending.length||d(),null;_.toLoad.forEach(w=>{this.loadOne(w)})}load(i,o,u){this.prepareLoading(i,o,{},u)}reload(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}loadOne(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=i.split("|"),d=u[0],_=u[1];this.read(d,_,"read",void 0,void 0,(w,a)=>{w&&this.logger.warn(`${o}loading namespace ${_} for language ${d} failed`,w),!w&&a&&this.logger.log(`${o}loaded namespace ${_} for language ${d}`,a),this.loaded(i,w,a)})}saveMissing(i,o,u,d,_){let w=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${u}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(u==null||u==="")){if(this.backend&&this.backend.create){const E={...w,isUpdate:_},j=this.backend.create.bind(this.backend);if(j.length<6)try{let Q;j.length===5?Q=j(i,o,u,d,E):Q=j(i,o,u,d),Q&&typeof Q.then=="function"?Q.then(q=>a(null,q)).catch(a):a(null,Q)}catch(Q){a(Q)}else j(i,o,u,d,a,E)}!i||!i[0]||this.store.addResource(i[0],o,u,d)}}}function sN(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(i){let o={};if(typeof i[1]=="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(d=>{o[d]=u[d]})}return o},interpolation:{escapeValue:!0,format:(e,i,o,u)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function aN(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function q_(){}function CY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})}class Lm extends $_{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=aN(i),this.services={},this.logger=Il,this.modules={external:[]},CY(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initImmediate)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(){var i=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const d=sN();this.options={...d,...this.options,...aN(o)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...d.interpolation,...this.options.interpolation}),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function _(Q){return Q?typeof Q=="function"?new Q:Q:null}if(!this.options.isClone){this.modules.logger?Il.init(_(this.modules.logger),this.options):Il.init(null,this.options);let Q;this.modules.formatter?Q=this.modules.formatter:typeof Intl<"u"&&(Q=DY);const q=new nN(this.options);this.store=new eN(this.options.resources,this.options);const W=this.services;W.logger=Il,W.resourceStore=this.store,W.languageUtils=q,W.pluralResolver=new MY(q,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Q&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(W.formatter=_(Q),W.formatter.init(W,this.options),this.options.interpolation.format=W.formatter.format.bind(W.formatter)),W.interpolator=new IY(this.options),W.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},W.backendConnector=new AY(_(this.modules.backend),W.resourceStore,W,this.options),W.backendConnector.on("*",function(le){for(var fe=arguments.length,we=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)we[$e-1]=arguments[$e];i.emit(le,...we)}),this.modules.languageDetector&&(W.languageDetector=_(this.modules.languageDetector),W.languageDetector.init&&W.languageDetector.init(W,this.options.detection,this.options)),this.modules.i18nFormat&&(W.i18nFormat=_(this.modules.i18nFormat),W.i18nFormat.init&&W.i18nFormat.init(this)),this.translator=new W_(this.services,this.options),this.translator.on("*",function(le){for(var fe=arguments.length,we=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)we[$e-1]=arguments[$e];i.emit(le,...we)}),this.modules.external.forEach(le=>{le.init&&le.init(this)})}if(this.format=this.options.interpolation.format,u||(u=q_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Q=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Q.length>0&&Q[0]!=="dev"&&(this.options.lng=Q[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(Q=>{this[Q]=function(){return i.store[Q](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Q=>{this[Q]=function(){return i.store[Q](...arguments),i}});const E=Nm(),j=()=>{const Q=(q,W)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),E.resolve(W),u(q,W)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return Q(null,this.t.bind(this));this.changeLanguage(this.options.lng,Q)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),E}loadResources(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const _=[],w=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(j=>{j!=="cimode"&&_.indexOf(j)<0&&_.push(j)})};d?w(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>w(E)),this.options.preload&&this.options.preload.forEach(a=>w(a)),this.services.backendConnector.load(_,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(a)})}else u(null)}reloadResources(i,o,u){const d=Nm();return i||(i=this.languages),o||(o=this.options.ns),u||(u=q_),this.services.backendConnector.reload(i,o,_=>{d.resolve(),u(_)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&tN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(let o=0;o<this.languages.length;o++){const u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(i,o){var u=this;this.isLanguageChangingTo=i;const d=Nm();this.emit("languageChanging",i);const _=E=>{this.language=E,this.languages=this.services.languageUtils.toResolveHierarchy(E),this.resolvedLanguage=void 0,this.setResolvedLanguage(E)},w=(E,j)=>{j?(_(j),this.translator.changeLanguage(j),this.isLanguageChangingTo=void 0,this.emit("languageChanged",j),this.logger.log("languageChanged",j)):this.isLanguageChangingTo=void 0,d.resolve(function(){return u.t(...arguments)}),o&&o(E,function(){return u.t(...arguments)})},a=E=>{!i&&!E&&this.services.languageDetector&&(E=[]);const j=typeof E=="string"?E:this.services.languageUtils.getBestMatchFromCodes(E);j&&(this.language||_(j),this.translator.language||this.translator.changeLanguage(j),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(j)),this.loadResources(j,Q=>{w(Q,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(i),d}getFixedT(i,o,u){var d=this;const _=function(w,a){let E;if(typeof a!="object"){for(var j=arguments.length,Q=new Array(j>2?j-2:0),q=2;q<j;q++)Q[q-2]=arguments[q];E=d.options.overloadTranslationOptionHandler([w,a].concat(Q))}else E={...a};E.lng=E.lng||_.lng,E.lngs=E.lngs||_.lngs,E.ns=E.ns||_.ns,E.keyPrefix=E.keyPrefix||u||_.keyPrefix;const W=d.options.keySeparator||".";let le;return E.keyPrefix&&Array.isArray(w)?le=w.map(fe=>`${E.keyPrefix}${W}${fe}`):le=E.keyPrefix?`${E.keyPrefix}${W}${w}`:w,d.t(le,E)};return typeof i=="string"?_.lng=i:_.lngs=i,_.ns=o,_.keyPrefix=u,_}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const u=o.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,_=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const w=(a,E)=>{const j=this.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};if(o.precheck){const a=o.precheck(this,w);if(a!==void 0)return a}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||w(u,i)&&(!d||w(_,i)))}loadNamespaces(i,o){const u=Nm();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}loadLanguages(i,o){const u=Nm();typeof i=="string"&&(i=[i]);const d=this.options.preload||[],_=i.filter(w=>d.indexOf(w)<0);return _.length?(this.options.preload=d.concat(_),this.loadResources(w=>{u.resolve(),o&&o(w)}),u):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],u=this.services&&this.services.languageUtils||new nN(sN());return o.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new Lm(i,o)}cloneInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},_=new Lm(d);return(i.debug!==void 0||i.prefix!==void 0)&&(_.logger=_.logger.clone(i)),["store","services","language"].forEach(a=>{_[a]=this[a]}),_.services={...this.services},_.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},u&&(_.store=new eN(this.store.data,d),_.services.resourceStore=_.store),_.translator=new W_(_.services,d),_.translator.on("*",function(a){for(var E=arguments.length,j=new Array(E>1?E-1:0),Q=1;Q<E;Q++)j[Q-1]=arguments[Q];_.emit(a,...j)}),_.init(d,o),_.translator.options=d,_.translator.backendConnector.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},_}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jo=Lm.createInstance();jo.createInstance=Lm.createInstance,jo.createInstance,jo.dir,jo.init,jo.loadResources,jo.reloadResources,jo.use,jo.changeLanguage,jo.getFixedT;const lN=jo.t;jo.exists,jo.setDefaultNamespace,jo.hasLoadedNamespace,jo.loadNamespaces,jo.loadLanguages;function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)({}).hasOwnProperty.call(o,u)&&(e[u]=o[u])}return e},Q3.apply(null,arguments)}function EY(){if(console&&console.warn){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i)}}const cN={};function H3(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&cN[i[0]]||(typeof i[0]=="string"&&(cN[i[0]]=new Date),EY(...i))}const uN=(e,i)=>()=>{if(e.isInitialized)i();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),i()};e.on("initialized",o)}};function hN(e,i,o){e.loadNamespaces(i,uN(e,o))}function dN(e,i,o,u){typeof o=="string"&&(o=[o]),o.forEach(d=>{e.options.ns.indexOf(d)<0&&e.options.ns.push(d)}),e.loadLanguages(i,uN(e,u))}function NY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=i.languages[0],d=i.options?i.options.fallbackLng:!1,_=i.languages[i.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const w=(a,E)=>{const j=i.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!w(i.isLanguageChangingTo,e)?!1:!!(i.hasResourceBundle(u,e)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||w(u,e)&&(!d||w(_,e)))}function LY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!i.languages||!i.languages.length?(H3("i18n.languages were undefined or empty",i.languages),!0):i.options.ignoreJSONStructure!==void 0?i.hasLoadedNamespace(e,{lng:o.lng,precheck:(d,_)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&d.services.backendConnector.backend&&d.isLanguageChangingTo&&!_(d.isLanguageChangingTo,e))return!1}}):NY(e,i,o)}const zY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},kY=e=>OY[e];let $3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(zY,kY)};function jY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$3={...$3,...e}}function PY(){return $3}let fN;function RY(e){fN=e}function BY(){return fN}const FY={type:"3rdParty",init(e){jY(e.options.react),RY(e)}},UY=xe.createContext();class VY{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const QY=(e,i)=>{const o=xe.useRef();return xe.useEffect(()=>{o.current=i?o.current:e},[e,i]),o.current};function Po(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=i,{i18n:u,defaultNS:d}=xe.useContext(UY)||{},_=o||u||BY();if(_&&!_.reportNamespaces&&(_.reportNamespaces=new VY),!_){H3("You will need to pass in an i18next instance by using initReactI18next");const te=(be,_e)=>typeof _e=="string"?_e:_e&&typeof _e=="object"&&typeof _e.defaultValue=="string"?_e.defaultValue:Array.isArray(be)?be[be.length-1]:be,oe=[te,{},!1];return oe.t=te,oe.i18n={},oe.ready=!1,oe}_.options.react&&_.options.react.wait!==void 0&&H3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const w={...PY(),..._.options.react,...i},{useSuspense:a,keyPrefix:E}=w;let j=e||d||_.options&&_.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"],_.reportNamespaces.addUsedNamespaces&&_.reportNamespaces.addUsedNamespaces(j);const Q=(_.isInitialized||_.initializedStoreOnce)&&j.every(te=>LY(te,_,w));function q(){return _.getFixedT(i.lng||null,w.nsMode==="fallback"?j:j[0],E)}const[W,le]=xe.useState(q);let fe=j.join();i.lng&&(fe=`${i.lng}${fe}`);const we=QY(fe),$e=xe.useRef(!0);xe.useEffect(()=>{const{bindI18n:te,bindI18nStore:oe}=w;$e.current=!0,!Q&&!a&&(i.lng?dN(_,i.lng,j,()=>{$e.current&&le(q)}):hN(_,j,()=>{$e.current&&le(q)})),Q&&we&&we!==fe&&$e.current&&le(q);function be(){$e.current&&le(q)}return te&&_&&_.on(te,be),oe&&_&&_.store.on(oe,be),()=>{$e.current=!1,te&&_&&te.split(" ").forEach(_e=>_.off(_e,be)),oe&&_&&oe.split(" ").forEach(_e=>_.store.off(_e,be))}},[_,fe]);const me=xe.useRef(!0);xe.useEffect(()=>{$e.current&&!me.current&&le(q),me.current=!1},[_,E]);const ie=[W,_,Q];if(ie.t=W,ie.i18n=_,ie.ready=Q,Q||!Q&&!a)return ie;throw new Promise(te=>{i.lng?dN(_,i.lng,j,()=>te()):hN(_,j,()=>te())})}const HY={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Show legend":"Show legend","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","Include bus transportation":"Include bus transportation","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route",Share:"Share","Copy link":"Copy link","QR Code":"QR Code",Open:"Open",Closed:"Closed","Expand opening hours":"Expand opening hours","Collapse opening hours":"Collapse opening hours","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language","Increase text size to 200%":"Increase text size to 200%","Decrease text size to 100%":"Decrease text size to 100%","Zoom in":"Zoom in","Zoom out":"Zoom out"},$Y={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Show legend":"Vis forklaring","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","Include bus transportation":"Inkluder bus transport","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten",Share:"Del","Copy link":"Kopiér link","QR Code":"QR-kode",Open:"Åben",Closed:"Lukket","Expand opening hours":"Udvid åbningstider","Collapse opening hours":"Skjul åbningstider","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog","Increase text size to 200%":"Forøg tekststørrelse til 200%","Decrease text size to 100%":"Formindsk tekststørrelse til 100%","Zoom in":"Zoom ind","Zoom out":"Zoom ud"},YY={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Nach Name, Kategorie, Gebäude suchen...","Show legend":"Legende anzeigen","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Beschreibung öffnen",Locations:"Locations","Directions not available":"Wegbeschreibung nicht verfügbar","Start directions":"Starte Wegbeschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben Ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlassen Sie das",Enter:"Gehe Sie in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren","Avoid stairs and escalators":"Treppen und Rolltreppen vermeiden","Include bus transportation":"Busverkehr einbeziehen","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Los!",Directions:"Wegbeschreibung","Choose departure":"Startpunkt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Standort wählen",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden",Share:"Teilen","Copy link":"Link kopieren","QR Code":"QR code",Open:"Geöffnet",Closed:"Geschlossen","Expand opening hours":"Öffnungszeiten erweitern","Collapse opening hours":"Öffnungszeiten reduzieren","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen","Increase text size to 200%":"Textgröße auf 200% erhöhen","Decrease text size to 100%":"Textgröße auf 100% verringern","Zoom in":"Vergrößern","Zoom out":"Verkleinern"},GY={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Show legend":"Afficher la légende","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","Include bus transportation":"Inclure le transport en bus","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire",Share:"Partager","Copy link":"Copier le lien","QR Code":"Code QR",Open:"Ouvert",Closed:"Fermé","Expand opening hours":"Développer les heures d'ouverture","Collapse opening hours":"Réduire les heures d'ouverture","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue","Increase text size to 200%":"Augmenter la taille du texte à 200%","Decrease text size to 100%":"Réduire la taille du texte à 100%","Zoom in":"Zoom avant","Zoom out":"Zoom arrière"},ZY={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Show legend":"Mostra legenda","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","Include bus transportation":"Includi trasporto in autobus","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso",Share:"Condividi","Copy link":"Copia il collegamento","QR Code":"Codice QR",Open:"Aperto",Closed:"Chiuso","Expand opening hours":"Espandi orari di apertura","Collapse opening hours":"Comprimi orari di apertura","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua","Increase text size to 200%":"Aumenta la dimensione del testo al 200%","Decrease text size to 100%":"Riduci la dimensione del testo al 100%","Zoom in":"Ingrandisci","Zoom out":"Riduci"},WY={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Show legend":"Mostrar leyenda","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","Include bus transportation":"Incluir transporte en autobús","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta",Share:"Compartir","Copy link":"Copiar link","QR Code":"Código QR",Open:"Abierto",Closed:"Cerrado","Expand opening hours":"Expandir horario de apertura","Collapse opening hours":"Contraer horario de apertura","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma","Increase text size to 200%":"Aumentar el tamaño del texto al 200%","Decrease text size to 100%":"Reducir el tamaño del texto al 100%","Zoom in":"Acercar","Zoom out":"Alejar"},qY={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Show legend":"Legende weergeven","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","Include bus transportation":"Busvervoer opnemen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien ",Share:"Deel","Copy link":"Link kopiëren","QR Code":"QR code",Open:"Open",Closed:"Gesloten","Expand opening hours":"Openingsuren uitklappen","Collapse opening hours":"Openingsuren inklappen","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal","Increase text size to 200%":"Tekstgrootte verhogen naar 200%","Decrease text size to 100%":"Tekstgrootte verlagen naar 100%","Zoom in":"Inzoomen","Zoom out":"Uitzoomen"},KY={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","Show legend":"显示图例","Nothing was found":"未找到任何结果",d:"天",h:"小时",min:"分钟",Walk:"步行",Bike:"骑车",Transit:"公交",Drive:"驾车","Start wayfinding":"开始导航","Read full description":"查看完整描述",Locations:"位置","Directions not available":"导航不可用","Start directions":"开始导航",Previous:"上一步",Next:"下一步",StepYofX:"第 {{activeStep}} 步,共 {{totalSteps}} 步","You have arrived":"您已到达",Leave:"离开",Park:"停车",at:"在",Building:"建筑",Venue:"场所","Take staircase to level":"走楼梯到","Take the ladder to level":"走梯子到","Take elevator to level":"乘电梯到","Take escalator to level":"乘扶梯到","Take wheelchair lift to level":"乘轮椅升降机到","Take wheelchair ramp to level":"走轮椅坡道到",Exit:"离开",Enter:"进入",stops:"站","and continue":"然后继续","Continue straight ahead":"直行","Go left":"向左","Go sharp left":"急转左","Go slight left":"稍向左","Go right":"向右","Go sharp right":"急转右","Go slight right":"稍向右","Turn around":"掉头",Switch:"切换","Avoid stairs and escalators":"避开楼梯和扶梯","Include bus transportation":"包含公交交通","No route found":"未找到路线","My position":"我的位置","Go!":"出发!",Directions:"导航","Choose departure":"选择出发地","Choose destination":"选择目的地",Venues:"场所","Select venue":"选择场所",Current:"当前","Scan QR code":"扫描二维码","Scan the QR code to see the route on your phone":"扫描二维码在手机上查看路线",Done:"完成","Cancel route":"取消路线","Finish route":"完成路线",Share:"分享","Copy link":"复制链接","QR Code":"二维码",Open:"营业中",Closed:"已关闭","Expand opening hours":"展开营业时间","Collapse opening hours":"收起营业时间","Go to view":"定位到","Select language":"选择语言","Increase text size to 200%":"将文本大小增加到 200%","Decrease text size to 100%":"将文本大小减少到 100%","Zoom in":"放大","Zoom out":"缩小"};function XY(e){jo.use(FY).init({resources:{en:{translation:HY},da:{translation:$Y},de:{translation:YY},fr:{translation:GY},it:{translation:ZY},es:{translation:WY},nl:{translation:qY},zh:{translation:KY}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const pN=[{code:"en",label:"English"},{code:"da",label:"Dansk"},{code:"de",label:"Deutsch"},{code:"fr",label:"Français"},{code:"it",label:"Italiano"},{code:"es",label:"Español"},{code:"nl",label:"Nederlands"},{code:"zh",label:"中文"}],Vae="",Df={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var gN={exports:{}},JY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",eG=JY,tG=eG;function mN(){}function yN(){}yN.resetWarningCache=mN;var iG=function(){function e(u,d,_,w,a,E){if(E!==tG){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}}e.isRequired=e;function i(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:i,element:e,elementType:e,instanceOf:i,node:e,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:yN,resetWarningCache:mN};return o.PropTypes=o,o};gN.exports=iG();var nG=gN.exports;const ct=oc(nG),Qae="",rG=e=>{const[i,o]=xe.useState(!1);return xe.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Y3=()=>rG("(min-width: 992px)");class oG{constructor(i={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:o=100}=i;this._maxAccuracy=o}get currentPosition(){return this._currentPosition}hasValidPosition(){const i=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=i}on(i,o){this._listeners.has(i)||this._listeners.set(i,[]),this._listeners.get(i).push(o)}off(i,o){const u=this._listeners.get(i);u&&this._listeners.set(i,u.filter(d=>d!==o))}setPosition(i){let o;if(i.coords&&i.timestamp)o={coords:{latitude:i.coords.latitude,longitude:i.coords.longitude,accuracy:i.coords.accuracy,altitude:i.coords.altitude??null,altitudeAccuracy:i.coords.altitudeAccuracy??null,heading:i.coords.heading??null,speed:i.coords.speed??null},timestamp:i.timestamp,floorIndex:i.floorIndex??null};else{const d={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:i};return this.emitError(d),!1}return o.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${o.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=o,(this._listeners.get("position_received")||[]).forEach(d=>{d.call(null,{position:o})}),!0)}emitError(i){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",i),(this._listeners.get("position_error")||[]).forEach(u=>{u.call(null,i)})}}const sG=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M0.833344 10C0.833344 10.3315 0.96504 10.6495 1.19946 10.8839C1.43388 11.1183 1.75182 11.25 2.08334 11.25H8.54168C8.59693 11.25 8.64992 11.2719 8.68899 11.311C8.72806 11.3501 8.75001 11.4031 8.75001 11.4583V17.9167C8.75001 18.2482 8.88171 18.5661 9.11613 18.8005C9.35055 19.035 9.66849 19.1667 10 19.1667C10.3315 19.1667 10.6495 19.035 10.8839 18.8005C11.1183 18.5661 11.25 18.2482 11.25 17.9167V11.4583C11.25 11.4031 11.272 11.3501 11.311 11.311C11.3501 11.2719 11.4031 11.25 11.4583 11.25H17.9167C18.2482 11.25 18.5661 11.1183 18.8006 10.8839C19.035 10.6495 19.1667 10.3315 19.1667 10C19.1667 9.66848 19.035 9.35054 18.8006 9.11612C18.5661 8.88169 18.2482 8.75 17.9167 8.75H11.4583C11.4031 8.75 11.3501 8.72805 11.311 8.68898C11.272 8.64991 11.25 8.59692 11.25 8.54167V2.08333C11.25 1.75181 11.1183 1.43387 10.8839 1.19945C10.6495 0.965029 10.3315 0.833333 10 0.833333C9.66849 0.833333 9.35055 0.965029 9.11613 1.19945C8.88171 1.43387 8.75001 1.75181 8.75001 2.08333V8.54167C8.75001 8.59692 8.72806 8.64991 8.68899 8.68898C8.64992 8.72805 8.59693 8.75 8.54168 8.75H2.08334C1.75182 8.75 1.43388 8.88169 1.19946 9.11612C0.96504 9.35054 0.833344 9.66848 0.833344 10Z",fill:"#78716C"})),aG=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M2.08333 11.6667H17.9167C18.2482 11.6667 18.5661 11.535 18.8005 11.3006C19.035 11.0661 19.1667 10.7482 19.1667 10.4167C19.1667 10.0851 19.035 9.7672 18.8005 9.53278C18.5661 9.29836 18.2482 9.16667 17.9167 9.16667H2.08333C1.75181 9.16667 1.43387 9.29836 1.19945 9.53278C0.965029 9.7672 0.833333 10.0851 0.833333 10.4167C0.833333 10.7482 0.965029 11.0661 1.19945 11.3006C1.43387 11.535 1.75181 11.6667 2.08333 11.6667Z",fill:"#78716C"})),Hae="";G3.propTypes={mapType:ct.oneOf(["google","mapbox"]).isRequired,mapInstance:ct.object.isRequired};function G3({mapType:e,mapInstance:i}){const{t:o}=Po(),u=Y3(),d=xe.useCallback(()=>{const w=i==null?void 0:i.getMap();if(w)switch(e){case"mapbox":w.zoomIn();break;case"google":{const a=w.getZoom();w.setZoom(a+1);break}}},[e,i]),_=xe.useCallback(()=>{const w=i==null?void 0:i.getMap();if(w)switch(e){case"mapbox":w.zoomOut();break;case"google":{const a=w.getZoom();w.setZoom(a-1);break}}},[e,i]);return u?Oe.jsxs("div",{className:"map-zoom-control",children:[Oe.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:d,"aria-label":o("Zoom in"),children:Oe.jsx(sG,{})}),Oe.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:_,"aria-label":o("Zoom out"),children:Oe.jsx(aG,{})})]}):null}const lG=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M10 4C9.44771 4 9 4.44772 9 5C9 5.55228 9.44771 6 10 6H15V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H10Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}}),xe.createElement("path",{d:"M5.92676 20V12H2C1.44772 12 1 11.5523 1 11C1 10.4477 1.44772 10 2 10H6.88216C6.89695 9.99935 6.91181 9.99902 6.92676 9.99902C6.9417 9.99902 6.95657 9.99935 6.97135 10H12C12.5523 10 13 10.4477 13 11C13 11.5523 12.5523 12 12 12H7.92676V20C7.92676 20.5523 7.47904 21 6.92676 21C6.37447 21 5.92676 20.5523 5.92676 20Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}})),$ae="";_N.propTypes={mapsIndoorsInstance:ct.object.isRequired};function _N({mapsIndoorsInstance:e}){const{t:i}=Po(),o=Y3(),[u,d]=xe.useState(!1),_=xe.useCallback(a=>{var E,j;a?(document.documentElement.style.fontSize="200%",(E=e==null?void 0:e.getMapView())==null||E.setLabelTextSizeMultiplier(2)):(document.documentElement.style.fontSize="",(j=e==null?void 0:e.getMapView())==null||j.resetLabelTextSize())},[e]);xe.useEffect(()=>(_(u),()=>{_(!1)}),[u,_]);const w=xe.useCallback(()=>{const a=!u;d(a),_(a)},[u,_]);return o?Oe.jsx("button",{type:"button",className:`text-size-button ${u?"text-size-button--active":""}`,onClick:w,"aria-label":i(u?"Decrease text size to 100%":"Increase text size to 200%"),"aria-pressed":u,children:Oe.jsx(lG,{})}):null}const K_={venueSelector:{key:"venue-selector",className:"venue-selector-portal"},viewSelector:{key:"view-selector",className:"view-selector-portal"},languageSelector:{key:"language-selector",className:"language-selector-portal"},viewModeSwitch:{key:"viewmode-switch",className:"viewmode-switch-portal"},myPosition:{key:"my-position",className:"my-position-element-portal"},floorSelector:{key:"floor-selector",className:"floor-selector-portal"},resetView:{key:"reset-view",className:"reset-view-portal"},zoomControls:{key:"zoom-controls",className:null},textSizeButton:{key:"text-size-button",className:null}};vN.propTypes={mapType:ct.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:ct.object.isRequired,mapInstance:ct.object.isRequired,onPositionControl:ct.func,brandingColor:ct.string,devicePosition:ct.object,excludedElements:ct.string,isKiosk:ct.bool,enableAccessibilityKioskControls:ct.bool};function vN({mapType:e,mapsIndoorsInstance:i,mapInstance:o,onPositionControl:u,brandingColor:d,devicePosition:_,excludedElements:w="",isKiosk:a,enableAccessibilityKioskControls:E=!1}){const j=Y3(),Q=xe.useRef(null),q=xe.useRef(null),W=xe.useCallback(we=>!w||typeof w!="string"?!0:!w.split(",").map(me=>me.trim()).includes(we),[w]),le=xe.useMemo(()=>{const we={};for(const[$e,me]of Object.entries(K_))we[$e]=Oe.jsx("div",{className:me.className},me.key);return we},[]),fe=we=>{q.current.customPositionProvider.setPosition(we)&&q.current.watchPosition()};return xe.useEffect(()=>{if(!(!i||!o)){if(!Q.current){const we=document.createElement("mi-floor-selector");Q.current=we}if(!q.current){const we=document.createElement("mi-my-position");q.current=we}Q.current.mapsindoors=i,q.current.mapsindoors=i,d&&(Q.current.primaryColor=d),u&&q.current&&u(q.current)}},[e,i,o,u,d]),xe.useEffect(()=>{if(q.current){if(q.current.stopListeningForPosition&&typeof q.current.stopListeningForPosition=="function"&&q.current.stopListeningForPosition(),_&&typeof _=="object"){if(q.current.customPositionProvider||(q.current.customPositionProvider=new oG),Object.keys(_).length===0)return;fe(_)}return()=>{q.current&&q.current.stopListeningForPosition&&typeof q.current.stopListeningForPosition=="function"&&q.current.stopListeningForPosition()}}},[_]),xe.useEffect(()=>{if(!Q.current||!q.current)return;const we=($e,me)=>{const ie=document.querySelector(`.${me}`);ie&&!ie.contains($e)&&($e.remove(),ie.appendChild($e))};requestAnimationFrame(()=>{W("floorSelector")&&we(Q.current,K_.floorSelector.className),W("myPosition")&&we(q.current,K_.myPosition.className)})},[j,a,W]),xe.useEffect(()=>{Object.entries(K_).forEach(([we,$e])=>{if(!$e.className)return;const me=document.querySelector(`.${$e.className}`);me&&(W(we)?me.style.display="":me.style.display="none")})},[w,W,j]),a?E?Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"map-controls-container kiosk top-right"}),Oe.jsxs("div",{className:"map-controls-container kiosk bottom-right",children:[le.venueSelector,le.viewSelector,le.myPosition,W("zoomControls")&&Oe.jsx(G3,{mapType:e,mapInstance:o}),le.languageSelector,W("textSizeButton")&&Oe.jsx(_N,{mapsIndoorsInstance:i}),le.viewModeSwitch,le.floorSelector,le.resetView]})]}):Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"map-controls-container kiosk top-right",children:[le.venueSelector,le.viewSelector,le.languageSelector,le.viewModeSwitch,le.myPosition,le.floorSelector]}),Oe.jsx("div",{className:"map-controls-container kiosk bottom-right",children:le.resetView})]}):j?Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"map-controls-container desktop top-right",children:[le.venueSelector,le.viewSelector,le.languageSelector,le.viewModeSwitch,le.myPosition,le.floorSelector]}),Oe.jsxs("div",{className:"map-controls-container desktop bottom-right",children:[W("zoomControls")&&Oe.jsx(G3,{mapType:e,mapInstance:o}),le.resetView]})]}):Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"map-controls-left-column mobile-column",children:[le.venueSelector,le.viewModeSwitch,le.viewSelector,le.languageSelector]}),Oe.jsxs("div",{className:"map-controls-right-column mobile-column",children:[le.myPosition,le.floorSelector]})]})}const cG=xe.memo(vN),Yae="",uG=xe.lazy(()=>Promise.resolve().then(()=>Xne)),hG=xe.lazy(()=>Promise.resolve().then(()=>nre)),Sf={Google:"google",Mapbox:"mapbox"};xN.propTypes={apiKey:ct.string.isRequired,gmApiKey:ct.string,mapboxAccessToken:ct.string,center:ct.object,zoom:ct.number,bounds:ct.object,bearing:ct.number,pitch:ct.number,resetUICounter:ct.number,mapOptions:ct.object,onInitialized:ct.func,gmMapId:ct.string,devicePosition:ct.object,isKiosk:ct.bool};function xN({apiKey:e,gmApiKey:i,mapboxAccessToken:o,center:u,zoom:d,bounds:_,bearing:w,pitch:a,resetUICounter:E,mapOptions:j,onInitialized:Q,gmMapId:q,devicePosition:W,isKiosk:le}){var ci,Ot;const[fe,we]=xe.useState(),[$e,me]=xe.useState(),[ie,te]=xe.useState(),[oe,be]=xe.useState(),[_e,Je]=xe.useState(),[nt,Ye]=xe.useState(),[xt,dt]=xe.useState(),Pt=xe.useMemo(()=>{var wt;return((wt=nt==null?void 0:nt.appSettings)==null?void 0:wt.excludeFromUI)||""},[(ci=nt==null?void 0:nt.appSettings)==null?void 0:ci.excludeFromUI]);xe.useEffect(()=>{window.customElements.get("mi-floor-selector")||qE()},[]),xe.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),fe===Sf.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(wt=>{Je(wt)}),window.mapsindoors.services.AppConfigService.getConfig().then(wt=>{Ye(wt)})))},[e,fe]);const Tt=wt=>{dt(wt);const $t=new window.mapsindoors.MapsIndoors({mapView:wt});$t.once("building_changed",St=>{const Ht=$t.getVenue();St&&Ht&&St.venueId!==Ht.id&&$t.setVenue(St.venueId)}),$t.on("mouseenter",()=>{var Ht;const St=$t.getHoveredLocation();((Ht=St==null?void 0:St.properties.locationSettings)==null?void 0:Ht.selectable)===!1&&$t.unhoverLocation()}),$t.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),me($t)};return xe.useEffect(()=>{typeof Q=="function"&&$e&&ie&&typeof oe=="boolean"&&Q($e,ie,oe)},[$e,ie,oe]),xe.useEffect(()=>{_e&&fe===Sf.Mapbox&&["mapbox","3dwalls","floorplan"].every(wt=>_e.modules.map($t=>$t.toLowerCase()).includes(wt))?be(!0):be(!1)},[_e,fe]),xe.useEffect(()=>{o?we(Sf.Mapbox):i&&we(Sf.Google)},[i,o]),Oe.jsxs(Oe.Fragment,{children:[fe===Sf.Google&&Oe.jsx(xe.Suspense,{children:Oe.jsx(hG,{mapsIndoorsInstance:$e,apiKey:i,onInitialized:Tt,center:u,zoom:d,mapOptions:j,heading:w,tilt:a,bounds:_,gmMapId:q})}),fe===Sf.Mapbox&&Oe.jsx(xe.Suspense,{children:Oe.jsx(uG,{mapsIndoorsInstance:$e,accessToken:o,onInitialized:Tt,center:u,zoom:d,mapOptions:j,bearing:w,pitch:a,bounds:_,resetViewMode:E,viewModeSwitchVisible:oe,appConfig:nt})}),$e&&xt&&fe&&Oe.jsx(cG,{mapType:fe,mapsIndoorsInstance:$e,mapInstance:xt,onPositionControl:te,brandingColor:j==null?void 0:j.brandingColor,devicePosition:W,excludedElements:Pt,isKiosk:le,enableAccessibilityKioskControls:!!((Ot=nt==null?void 0:nt.appSettings)!=null&&Ot.enableAccessibilityKioskControls)})]})}const us={Google:"google",Mapbox:"mapbox"},ca=kn({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),dG=e=>{const i=Ci(ca),o=xe.useRef(),[u,d]=xe.useState([]);xe.useEffect(()=>{(async()=>{if(i&&e){for(const a of u)o.current.disableLiveData(a);o.current=new window.mapsindoors.LiveDataManager(i);const w=await o.current.LiveDataInfo.activeDomainTypes();for(const a of w)await o.current.enableLiveData(a);d(w)}})()},[e,i])},X_=kn({key:"userPosition",default:null}),Z3=kn({key:"directionsService",default:null}),J_=kn({key:"mapType",default:void 0}),W3=kn({key:"apiKey",default:null}),q3=kn({key:"gmApiKey",default:null}),ev=kn({key:"mapboxAccessToken",default:null}),tv=kn({key:"filteredLocations",default:void 0}),iv=kn({key:"filteredLocationsByExternalID",default:void 0}),wN=kn({key:"tileStyle",default:null}),bN=kn({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),K3=kn({key:"bearing",default:0}),nv=kn({key:"pitch",default:null}),MN=kn({key:"solution",default:null,dangerouslyAllowMutability:!0}),zm=kn({key:"notificationMessage",default:null});function rv(){return new Promise(e=>{const i=document.querySelector(".modal--open"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-(i==null?void 0:i.offsetTop));else{const u=new MutationObserver(()=>{const d=document.querySelector(".modal--open");d&&(u.disconnect(),e(o.offsetHeight-(d==null?void 0:d.offsetTop)))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Om=kn({key:"categories",default:[]}),X3=kn({key:"kioskOriginLocationId",default:void 0}),ov=kn({key:"locationId",default:void 0}),IN=kn({key:"startZoomLevel",default:null}),Mu=kn({key:"currentVenueName",default:null}),km=kn({key:"venues",default:[]}),J3=kn({key:"venueWasSelected",default:!1}),sv=kn({key:"isMapReady",default:!1});function Af(){return new Promise(e=>{const i=document.querySelector(".sheet--active"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-i.offsetTop);else{const u=new MutationObserver(()=>{const d=document.querySelector(".sheet--active");d&&(u.disconnect(),e(o.offsetHeight-d.offsetTop))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function Ph(){return new Promise(e=>{const i=document.querySelector(".modal--open");if(i)e((i==null?void 0:i.offsetWidth)+(i==null?void 0:i.offsetLeft)*2);else{const o=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(o.disconnect(),e((u==null?void 0:u.offsetWidth)+(u==null?void 0:u.offsetLeft)*2))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const TN=kn({key:"timeout",default:void 0});function DN(){const[e,i]=xe.useState(!1),o=Ci(sv),u=Ci(TN);return xe.useEffect(()=>{if(!o||!u)return;let d;const _=()=>{i(!1),window.clearTimeout(d),d=window.setTimeout(w,u*1e3)},w=()=>{i(!0)};return d=window.setTimeout(w,u*1e3),window.addEventListener("mousemove",_),window.addEventListener("mousedown",_),window.addEventListener("resize",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),window.addEventListener("wheel",_),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mousedown",_),window.removeEventListener("resize",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_),window.removeEventListener("wheel",_),window.clearTimeout(d)}},[u,o]),e}const fG=e=>{const[i,o]=xe.useState(window.matchMedia(e).matches);return xe.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Ja=()=>fG("(min-width: 992px)"),SN=kn({key:"mapboxViewMode",default:null}),e4=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),pG=R_({key:"currentPitch",get:({get:e})=>{const i=e(nv),o=e(SN);let u;switch(o){case e4.initial3D:u=i??45;break;case e4.clicked3D:u=45;break;case e4.clicked2D:u=0;break;default:u=i}return u}}),AN=kn({key:"center",default:null});function jr(e){return e==null}var xs=63710088e-1,t4={centimeters:xs*100,centimetres:xs*100,degrees:xs/111325,feet:xs*3.28084,inches:xs*39.37,kilometers:xs/1e3,kilometres:xs/1e3,meters:xs,metres:xs,miles:xs/1609.344,millimeters:xs*1e3,millimetres:xs*1e3,nauticalmiles:xs/1852,radians:1,yards:xs*1.0936},gG={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/xs,yards:1.0936133},i4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Ea(e,i,o){o===void 0&&(o={});var u={type:"Feature"};return(o.id===0||o.id)&&(u.id=o.id),o.bbox&&(u.bbox=o.bbox),u.properties=i||{},u.geometry=e,u}function mG(e,i,o){switch(e){case"Point":return el(i).geometry;case"LineString":return tl(i).geometry;case"Polygon":return n4(i).geometry;case"MultiPoint":return CN(i).geometry;case"MultiLineString":return r4(i).geometry;case"MultiPolygon":return EN(i).geometry;default:throw new Error(e+" is invalid")}}function el(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!av(e[0])||!av(e[1]))throw new Error("coordinates must contain numbers");var u={type:"Point",coordinates:e};return Ea(u,i,o)}function yG(e,i,o){return o===void 0&&(o={}),Iu(e.map(function(u){return el(u,i)}),o)}function n4(e,i,o){o===void 0&&(o={});for(var u=0,d=e;u<d.length;u++){var _=d[u];if(_.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var w=0;w<_[_.length-1].length;w++)if(_[_.length-1][w]!==_[0][w])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return Ea(a,i,o)}function _G(e,i,o){return o===void 0&&(o={}),Iu(e.map(function(u){return n4(u,i)}),o)}function tl(e,i,o){if(o===void 0&&(o={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var u={type:"LineString",coordinates:e};return Ea(u,i,o)}function vG(e,i,o){return o===void 0&&(o={}),Iu(e.map(function(u){return tl(u,i)}),o)}function Iu(e,i){i===void 0&&(i={});var o={type:"FeatureCollection"};return i.id&&(o.id=i.id),i.bbox&&(o.bbox=i.bbox),o.features=e,o}function r4(e,i,o){o===void 0&&(o={});var u={type:"MultiLineString",coordinates:e};return Ea(u,i,o)}function CN(e,i,o){o===void 0&&(o={});var u={type:"MultiPoint",coordinates:e};return Ea(u,i,o)}function EN(e,i,o){o===void 0&&(o={});var u={type:"MultiPolygon",coordinates:e};return Ea(u,i,o)}function xG(e,i,o){o===void 0&&(o={});var u={type:"GeometryCollection",geometries:e};return Ea(u,i,o)}function wG(e,i){if(i===void 0&&(i=0),i&&!(i>=0))throw new Error("precision must be a positive number");var o=Math.pow(10,i||0);return Math.round(e*o)/o}function NN(e,i){i===void 0&&(i="kilometers");var o=t4[i];if(!o)throw new Error(i+" units is invalid");return e*o}function o4(e,i){i===void 0&&(i="kilometers");var o=t4[i];if(!o)throw new Error(i+" units is invalid");return e/o}function bG(e,i){return LN(o4(e,i))}function MG(e){var i=e%360;return i<0&&(i+=360),i}function LN(e){var i=e%(2*Math.PI);return i*180/Math.PI}function IG(e){var i=e%360;return i*Math.PI/180}function TG(e,i,o){if(i===void 0&&(i="kilometers"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("length must be a positive number");return NN(o4(e,i),o)}function DG(e,i,o){if(i===void 0&&(i="meters"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("area must be a positive number");var u=i4[i];if(!u)throw new Error("invalid original units");var d=i4[o];if(!d)throw new Error("invalid final units");return e/u*d}function av(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function s4(e){return!!e&&e.constructor===Object}function SG(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(i){if(!av(i))throw new Error("bbox must only contain numbers")})}function AG(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}const CG=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:i4,bearingToAzimuth:MG,convertArea:DG,convertLength:TG,degreesToRadians:IG,earthRadius:xs,factors:t4,feature:Ea,featureCollection:Iu,geometry:mG,geometryCollection:xG,isNumber:av,isObject:s4,lengthToDegrees:bG,lengthToRadians:o4,lineString:tl,lineStrings:vG,multiLineString:r4,multiPoint:CN,multiPolygon:EN,point:el,points:yG,polygon:n4,polygons:_G,radiansToDegrees:LN,radiansToLength:NN,round:wG,unitsFactors:gG,validateBBox:SG,validateId:AG},Symbol.toStringTag,{value:"Module"}));function Cf(e,i,o){if(e!==null)for(var u,d,_,w,a,E,j,Q=0,q=0,W,le=e.type,fe=le==="FeatureCollection",we=le==="Feature",$e=fe?e.features.length:1,me=0;me<$e;me++){j=fe?e.features[me].geometry:we?e.geometry:e,W=j?j.type==="GeometryCollection":!1,a=W?j.geometries.length:1;for(var ie=0;ie<a;ie++){var te=0,oe=0;if(w=W?j.geometries[ie]:j,w!==null){E=w.coordinates;var be=w.type;switch(Q=o&&(be==="Polygon"||be==="MultiPolygon")?1:0,be){case null:break;case"Point":if(i(E,q,me,te,oe)===!1)return!1;q++,te++;break;case"LineString":case"MultiPoint":for(u=0;u<E.length;u++){if(i(E[u],q,me,te,oe)===!1)return!1;q++,be==="MultiPoint"&&te++}be==="LineString"&&te++;break;case"Polygon":case"MultiLineString":for(u=0;u<E.length;u++){for(d=0;d<E[u].length-Q;d++){if(i(E[u][d],q,me,te,oe)===!1)return!1;q++}be==="MultiLineString"&&te++,be==="Polygon"&&oe++}be==="Polygon"&&te++;break;case"MultiPolygon":for(u=0;u<E.length;u++){for(oe=0,d=0;d<E[u].length;d++){for(_=0;_<E[u][d].length-Q;_++){if(i(E[u][d][_],q,me,te,oe)===!1)return!1;q++}oe++}te++}break;case"GeometryCollection":for(u=0;u<w.geometries.length;u++)if(Cf(w.geometries[u],i,o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function EG(e,i,o,u){var d=o;return Cf(e,function(_,w,a,E,j){w===0&&o===void 0?d=_:d=i(d,_,w,a,E,j)},u),d}function zN(e,i){var o;switch(e.type){case"FeatureCollection":for(o=0;o<e.features.length&&i(e.features[o].properties,o)!==!1;o++);break;case"Feature":i(e.properties,0);break}}function NG(e,i,o){var u=o;return zN(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function lv(e,i){if(e.type==="Feature")i(e,0);else if(e.type==="FeatureCollection")for(var o=0;o<e.features.length&&i(e.features[o],o)!==!1;o++);}function LG(e,i,o){var u=o;return lv(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function zG(e){var i=[];return Cf(e,function(o){i.push(o)}),i}function a4(e,i){var o,u,d,_,w,a,E,j,Q,q,W=0,le=e.type==="FeatureCollection",fe=e.type==="Feature",we=le?e.features.length:1;for(o=0;o<we;o++){for(a=le?e.features[o].geometry:fe?e.geometry:e,j=le?e.features[o].properties:fe?e.properties:{},Q=le?e.features[o].bbox:fe?e.bbox:void 0,q=le?e.features[o].id:fe?e.id:void 0,E=a?a.type==="GeometryCollection":!1,w=E?a.geometries.length:1,d=0;d<w;d++){if(_=E?a.geometries[d]:a,_===null){if(i(null,W,j,Q,q)===!1)return!1;continue}switch(_.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(_,W,j,Q,q)===!1)return!1;break}case"GeometryCollection":{for(u=0;u<_.geometries.length;u++)if(i(_.geometries[u],W,j,Q,q)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}W++}}function OG(e,i,o){var u=o;return a4(e,function(d,_,w,a,E){_===0&&o===void 0?u=d:u=i(u,d,_,w,a,E)}),u}function vc(e,i){a4(e,function(o,u,d,_,w){var a=o===null?null:o.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return i(Ea(o,d,{bbox:_,id:w}),u,0)===!1?!1:void 0}var E;switch(a){case"MultiPoint":E="Point";break;case"MultiLineString":E="LineString";break;case"MultiPolygon":E="Polygon";break}for(var j=0;j<o.coordinates.length;j++){var Q=o.coordinates[j],q={type:E,coordinates:Q};if(i(Ea(q,d),u,j)===!1)return!1}})}function kG(e,i,o){var u=o;return vc(e,function(d,_,w){_===0&&w===0&&o===void 0?u=d:u=i(u,d,_,w)}),u}function ON(e,i){vc(e,function(o,u,d){var _=0;if(o.geometry){var w=o.geometry.type;if(!(w==="Point"||w==="MultiPoint")){var a,E=0,j=0,Q=0;if(Cf(o,function(q,W,le,fe,we){if(a===void 0||u>E||fe>j||we>Q){a=q,E=u,j=fe,Q=we,_=0;return}var $e=tl([a,q],o.properties);if(i($e,u,d,we,_)===!1)return!1;_++,a=q})===!1)return!1}}})}function jG(e,i,o){var u=o,d=!1;return ON(e,function(_,w,a,E,j){d===!1&&o===void 0?u=_:u=i(u,_,w,a,E,j),d=!0}),u}function kN(e,i){if(!e)throw new Error("geojson is required");vc(e,function(o,u,d){if(o.geometry!==null){var _=o.geometry.type,w=o.geometry.coordinates;switch(_){case"LineString":if(i(o,u,d,0,0)===!1)return!1;break;case"Polygon":for(var a=0;a<w.length;a++)if(i(tl(w[a],o.properties),u,d,a)===!1)return!1;break}}})}function PG(e,i,o){var u=o;return kN(e,function(d,_,w,a){_===0&&o===void 0?u=d:u=i(u,d,_,w,a)}),u}function RG(e,i){if(i=i||{},!s4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.segmentIndex||0,w=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),w=w||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":w=w||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":case"MultiPoint":return null;case"LineString":return _<0&&(_=E.length+_-1),tl([E[_],E[_+1]],w,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_-1),tl([E[d][_],E[d][_+1]],w,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_-1),tl([E[u][_],E[u][_+1]],w,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_-1),tl([E[u][d][_],E[u][d][_+1]],w,i)}throw new Error("geojson is invalid")}function BG(e,i){if(i=i||{},!s4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.coordIndex||0,w=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),w=w||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":w=w||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":return el(E,w,i);case"MultiPoint":return u<0&&(u=E.length+u),el(E[u],w,i);case"LineString":return _<0&&(_=E.length+_),el(E[_],w,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_),el(E[d][_],w,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_),el(E[u][_],w,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_),el(E[u][d][_],w,i)}throw new Error("geojson is invalid")}const FG=Object.freeze(Object.defineProperty({__proto__:null,coordAll:zG,coordEach:Cf,coordReduce:EG,featureEach:lv,featureReduce:LG,findPoint:BG,findSegment:RG,flattenEach:vc,flattenReduce:kG,geomEach:a4,geomReduce:OG,lineEach:kN,lineReduce:PG,propEach:zN,propReduce:NG,segmentEach:ON,segmentReduce:jG},Symbol.toStringTag,{value:"Module"}));function cv(e){var i=[1/0,1/0,-1/0,-1/0];return Cf(e,function(o){i[0]>o[0]&&(i[0]=o[0]),i[1]>o[1]&&(i[1]=o[1]),i[2]<o[0]&&(i[2]=o[0]),i[3]<o[1]&&(i[3]=o[1])}),i}cv.default=cv;const UG=Object.freeze(Object.defineProperty({__proto__:null,default:cv},Symbol.toStringTag,{value:"Module"}));function VG(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function jm(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function uv(e){return e.type==="Feature"?e.geometry:e}function Pm(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("point is required");if(!i)throw new Error("polygon is required");var u=VG(e),d=uv(i),_=d.type,w=i.bbox,a=d.coordinates;if(w&&QG(u,w)===!1)return!1;_==="Polygon"&&(a=[a]);for(var E=!1,j=0;j<a.length&&!E;j++)if(jN(u,a[j][0],o.ignoreBoundary)){for(var Q=!1,q=1;q<a[j].length&&!Q;)jN(u,a[j][q],!o.ignoreBoundary)&&(Q=!0),q++;Q||(E=!0)}return E}function jN(e,i,o){var u=!1;i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]&&(i=i.slice(0,i.length-1));for(var d=0,_=i.length-1;d<i.length;_=d++){var w=i[d][0],a=i[d][1],E=i[_][0],j=i[_][1],Q=e[1]*(w-E)+a*(E-e[0])+j*(e[0]-w)===0&&(w-e[0])*(E-e[0])<=0&&(a-e[1])*(j-e[1])<=0;if(Q)return!o;var q=a>e[1]!=j>e[1]&&e[0]<(E-w)*(e[1]-a)/(j-a)+w;q&&(u=!u)}return u}function QG(e,i){return i[0]<=e[0]&&i[1]<=e[1]&&i[2]>=e[0]&&i[3]>=e[1]}function HG(e,i){i===void 0&&(i={});var o=cv(e),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return el([u,d],i.properties,i)}function PN(e){if(!e)throw new Error("geojson is required");var i=[];return vc(e,function(o){$G(o,i)}),Iu(i)}function $G(e,i){var o=[],u=e.geometry;if(u!==null){switch(u.type){case"Polygon":o=jm(u);break;case"LineString":o=[jm(u)]}o.forEach(function(d){var _=YG(d,e.properties);_.forEach(function(w){w.id=i.length,i.push(w)})})}}function YG(e,i){var o=[];return e.reduce(function(u,d){var _=tl([u,d],i);return _.bbox=GG(u,d),o.push(_),d}),o}function GG(e,i){var o=e[0],u=e[1],d=i[0],_=i[1],w=o<d?o:d,a=u<_?u:_,E=o>d?o:d,j=u>_?u:_;return[w,a,E,j]}var l4={exports:{}},RN={exports:{}};(function(e,i){(function(o,u){e.exports=u()})(jd,function(){function o(ie,te,oe,be,_e){(function Je(nt,Ye,xt,dt,Pt){for(;dt>xt;){if(dt-xt>600){var Tt=dt-xt+1,ci=Ye-xt+1,Ot=Math.log(Tt),wt=.5*Math.exp(2*Ot/3),$t=.5*Math.sqrt(Ot*wt*(Tt-wt)/Tt)*(ci-Tt/2<0?-1:1),St=Math.max(xt,Math.floor(Ye-ci*wt/Tt+$t)),Ht=Math.min(dt,Math.floor(Ye+(Tt-ci)*wt/Tt+$t));Je(nt,Ye,St,Ht,Pt)}var Z=nt[Ye],ne=xt,T=dt;for(u(nt,xt,Ye),Pt(nt[dt],Z)>0&&u(nt,xt,dt);ne<T;){for(u(nt,ne,T),ne++,T--;Pt(nt[ne],Z)<0;)ne++;for(;Pt(nt[T],Z)>0;)T--}Pt(nt[xt],Z)===0?u(nt,xt,T):u(nt,++T,dt),T<=Ye&&(xt=T+1),Ye<=T&&(dt=T-1)}})(ie,te,oe||0,be||ie.length-1,_e||d)}function u(ie,te,oe){var be=ie[te];ie[te]=ie[oe],ie[oe]=be}function d(ie,te){return ie<te?-1:ie>te?1:0}var _=function(ie){ie===void 0&&(ie=9),this._maxEntries=Math.max(4,ie),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function w(ie,te,oe){if(!oe)return te.indexOf(ie);for(var be=0;be<te.length;be++)if(oe(ie,te[be]))return be;return-1}function a(ie,te){E(ie,0,ie.children.length,te,ie)}function E(ie,te,oe,be,_e){_e||(_e=$e(null)),_e.minX=1/0,_e.minY=1/0,_e.maxX=-1/0,_e.maxY=-1/0;for(var Je=te;Je<oe;Je++){var nt=ie.children[Je];j(_e,ie.leaf?be(nt):nt)}return _e}function j(ie,te){return ie.minX=Math.min(ie.minX,te.minX),ie.minY=Math.min(ie.minY,te.minY),ie.maxX=Math.max(ie.maxX,te.maxX),ie.maxY=Math.max(ie.maxY,te.maxY),ie}function Q(ie,te){return ie.minX-te.minX}function q(ie,te){return ie.minY-te.minY}function W(ie){return(ie.maxX-ie.minX)*(ie.maxY-ie.minY)}function le(ie){return ie.maxX-ie.minX+(ie.maxY-ie.minY)}function fe(ie,te){return ie.minX<=te.minX&&ie.minY<=te.minY&&te.maxX<=ie.maxX&&te.maxY<=ie.maxY}function we(ie,te){return te.minX<=ie.maxX&&te.minY<=ie.maxY&&te.maxX>=ie.minX&&te.maxY>=ie.minY}function $e(ie){return{children:ie,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function me(ie,te,oe,be,_e){for(var Je=[te,oe];Je.length;)if(!((oe=Je.pop())-(te=Je.pop())<=be)){var nt=te+Math.ceil((oe-te)/be/2)*be;o(ie,nt,te,oe,_e),Je.push(te,nt,nt,oe)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(ie){var te=this.data,oe=[];if(!we(ie,te))return oe;for(var be=this.toBBox,_e=[];te;){for(var Je=0;Je<te.children.length;Je++){var nt=te.children[Je],Ye=te.leaf?be(nt):nt;we(ie,Ye)&&(te.leaf?oe.push(nt):fe(ie,Ye)?this._all(nt,oe):_e.push(nt))}te=_e.pop()}return oe},_.prototype.collides=function(ie){var te=this.data;if(!we(ie,te))return!1;for(var oe=[];te;){for(var be=0;be<te.children.length;be++){var _e=te.children[be],Je=te.leaf?this.toBBox(_e):_e;if(we(ie,Je)){if(te.leaf||fe(ie,Je))return!0;oe.push(_e)}}te=oe.pop()}return!1},_.prototype.load=function(ie){if(!ie||!ie.length)return this;if(ie.length<this._minEntries){for(var te=0;te<ie.length;te++)this.insert(ie[te]);return this}var oe=this._build(ie.slice(),0,ie.length-1,0);if(this.data.children.length)if(this.data.height===oe.height)this._splitRoot(this.data,oe);else{if(this.data.height<oe.height){var be=this.data;this.data=oe,oe=be}this._insert(oe,this.data.height-oe.height-1,!0)}else this.data=oe;return this},_.prototype.insert=function(ie){return ie&&this._insert(ie,this.data.height-1),this},_.prototype.clear=function(){return this.data=$e([]),this},_.prototype.remove=function(ie,te){if(!ie)return this;for(var oe,be,_e,Je=this.data,nt=this.toBBox(ie),Ye=[],xt=[];Je||Ye.length;){if(Je||(Je=Ye.pop(),be=Ye[Ye.length-1],oe=xt.pop(),_e=!0),Je.leaf){var dt=w(ie,Je.children,te);if(dt!==-1)return Je.children.splice(dt,1),Ye.push(Je),this._condense(Ye),this}_e||Je.leaf||!fe(Je,nt)?be?(oe++,Je=be.children[oe],_e=!1):Je=null:(Ye.push(Je),xt.push(oe),oe=0,be=Je,Je=Je.children[0])}return this},_.prototype.toBBox=function(ie){return ie},_.prototype.compareMinX=function(ie,te){return ie.minX-te.minX},_.prototype.compareMinY=function(ie,te){return ie.minY-te.minY},_.prototype.toJSON=function(){return this.data},_.prototype.fromJSON=function(ie){return this.data=ie,this},_.prototype._all=function(ie,te){for(var oe=[];ie;)ie.leaf?te.push.apply(te,ie.children):oe.push.apply(oe,ie.children),ie=oe.pop();return te},_.prototype._build=function(ie,te,oe,be){var _e,Je=oe-te+1,nt=this._maxEntries;if(Je<=nt)return a(_e=$e(ie.slice(te,oe+1)),this.toBBox),_e;be||(be=Math.ceil(Math.log(Je)/Math.log(nt)),nt=Math.ceil(Je/Math.pow(nt,be-1))),(_e=$e([])).leaf=!1,_e.height=be;var Ye=Math.ceil(Je/nt),xt=Ye*Math.ceil(Math.sqrt(nt));me(ie,te,oe,xt,this.compareMinX);for(var dt=te;dt<=oe;dt+=xt){var Pt=Math.min(dt+xt-1,oe);me(ie,dt,Pt,Ye,this.compareMinY);for(var Tt=dt;Tt<=Pt;Tt+=Ye){var ci=Math.min(Tt+Ye-1,Pt);_e.children.push(this._build(ie,Tt,ci,be-1))}}return a(_e,this.toBBox),_e},_.prototype._chooseSubtree=function(ie,te,oe,be){for(;be.push(te),!te.leaf&&be.length-1!==oe;){for(var _e=1/0,Je=1/0,nt=void 0,Ye=0;Ye<te.children.length;Ye++){var xt=te.children[Ye],dt=W(xt),Pt=(Tt=ie,ci=xt,(Math.max(ci.maxX,Tt.maxX)-Math.min(ci.minX,Tt.minX))*(Math.max(ci.maxY,Tt.maxY)-Math.min(ci.minY,Tt.minY))-dt);Pt<Je?(Je=Pt,_e=dt<_e?dt:_e,nt=xt):Pt===Je&&dt<_e&&(_e=dt,nt=xt)}te=nt||te.children[0]}var Tt,ci;return te},_.prototype._insert=function(ie,te,oe){var be=oe?ie:this.toBBox(ie),_e=[],Je=this._chooseSubtree(be,this.data,te,_e);for(Je.children.push(ie),j(Je,be);te>=0&&_e[te].children.length>this._maxEntries;)this._split(_e,te),te--;this._adjustParentBBoxes(be,_e,te)},_.prototype._split=function(ie,te){var oe=ie[te],be=oe.children.length,_e=this._minEntries;this._chooseSplitAxis(oe,_e,be);var Je=this._chooseSplitIndex(oe,_e,be),nt=$e(oe.children.splice(Je,oe.children.length-Je));nt.height=oe.height,nt.leaf=oe.leaf,a(oe,this.toBBox),a(nt,this.toBBox),te?ie[te-1].children.push(nt):this._splitRoot(oe,nt)},_.prototype._splitRoot=function(ie,te){this.data=$e([ie,te]),this.data.height=ie.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(ie,te,oe){for(var be,_e,Je,nt,Ye,xt,dt,Pt=1/0,Tt=1/0,ci=te;ci<=oe-te;ci++){var Ot=E(ie,0,ci,this.toBBox),wt=E(ie,ci,oe,this.toBBox),$t=(_e=Ot,Je=wt,nt=void 0,Ye=void 0,xt=void 0,dt=void 0,nt=Math.max(_e.minX,Je.minX),Ye=Math.max(_e.minY,Je.minY),xt=Math.min(_e.maxX,Je.maxX),dt=Math.min(_e.maxY,Je.maxY),Math.max(0,xt-nt)*Math.max(0,dt-Ye)),St=W(Ot)+W(wt);$t<Pt?(Pt=$t,be=ci,Tt=St<Tt?St:Tt):$t===Pt&&St<Tt&&(Tt=St,be=ci)}return be||oe-te},_.prototype._chooseSplitAxis=function(ie,te,oe){var be=ie.leaf?this.compareMinX:Q,_e=ie.leaf?this.compareMinY:q;this._allDistMargin(ie,te,oe,be)<this._allDistMargin(ie,te,oe,_e)&&ie.children.sort(be)},_.prototype._allDistMargin=function(ie,te,oe,be){ie.children.sort(be);for(var _e=this.toBBox,Je=E(ie,0,te,_e),nt=E(ie,oe-te,oe,_e),Ye=le(Je)+le(nt),xt=te;xt<oe-te;xt++){var dt=ie.children[xt];j(Je,ie.leaf?_e(dt):dt),Ye+=le(Je)}for(var Pt=oe-te-1;Pt>=te;Pt--){var Tt=ie.children[Pt];j(nt,ie.leaf?_e(Tt):Tt),Ye+=le(nt)}return Ye},_.prototype._adjustParentBBoxes=function(ie,te,oe){for(var be=oe;be>=0;be--)j(te[be],ie)},_.prototype._condense=function(ie){for(var te=ie.length-1,oe=void 0;te>=0;te--)ie[te].children.length===0?te>0?(oe=ie[te-1].children).splice(oe.indexOf(ie[te]),1):this.clear():a(ie[te],this.toBBox)},_})})(RN);var ZG=RN.exports;const WG=Vw(CG),qG=Vw(FG),KG=Vw(UG);var Tl=ZG,BN=WG,FN=qG,Ef=KG.default,XG=FN.featureEach;FN.coordEach,BN.polygon;var UN=BN.featureCollection;function VN(e){var i=new Tl(e);return i.insert=function(o){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Ef(o),Tl.prototype.insert.call(this,o)},i.load=function(o){var u=[];return Array.isArray(o)?o.forEach(function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Ef(d),u.push(d)}):XG(o,function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Ef(d),u.push(d)}),Tl.prototype.load.call(this,u)},i.remove=function(o,u){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Ef(o),Tl.prototype.remove.call(this,o,u)},i.clear=function(){return Tl.prototype.clear.call(this)},i.search=function(o){var u=Tl.prototype.search.call(this,this.toBBox(o));return UN(u)},i.collides=function(o){return Tl.prototype.collides.call(this,this.toBBox(o))},i.all=function(){var o=Tl.prototype.all.call(this);return UN(o)},i.toJSON=function(){return Tl.prototype.toJSON.call(this)},i.fromJSON=function(o){return Tl.prototype.fromJSON.call(this,o)},i.toBBox=function(o){var u;if(o.bbox)u=o.bbox;else if(Array.isArray(o)&&o.length===4)u=o;else if(Array.isArray(o)&&o.length===6)u=[o[0],o[1],o[3],o[4]];else if(o.type==="Feature")u=Ef(o);else if(o.type==="FeatureCollection")u=Ef(o);else throw new Error("invalid geojson");return{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3]}},i}l4.exports=VN,l4.exports.default=VN;var JG=l4.exports;const eZ=oc(JG);function c4(e,i){var o={},u=[];if(e.type==="LineString"&&(e=Ea(e)),i.type==="LineString"&&(i=Ea(i)),e.type==="Feature"&&i.type==="Feature"&&e.geometry!==null&&i.geometry!==null&&e.geometry.type==="LineString"&&i.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&i.geometry.coordinates.length===2){var d=QN(e,i);return d&&u.push(d),Iu(u)}var _=eZ();return _.load(PN(i)),lv(PN(e),function(w){lv(_.search(w),function(a){var E=QN(w,a);if(E){var j=jm(E).join(",");o[j]||(o[j]=!0,u.push(E))}})}),Iu(u)}function QN(e,i){var o=jm(e),u=jm(i);if(o.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(u.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var d=o[0][0],_=o[0][1],w=o[1][0],a=o[1][1],E=u[0][0],j=u[0][1],Q=u[1][0],q=u[1][1],W=(q-j)*(w-d)-(Q-E)*(a-_),le=(Q-E)*(_-j)-(q-j)*(d-E),fe=(w-d)*(_-j)-(a-_)*(d-E);if(W===0)return null;var we=le/W,$e=fe/W;if(we>=0&&we<=1&&$e>=0&&$e<=1){var me=d+we*(w-d),ie=_+we*(a-_);return el([me,ie])}return null}function u4(e,i){i===void 0&&(i={});var o=uv(e);switch(!i.properties&&e.type==="Feature"&&(i.properties=e.properties),o.type){case"Polygon":return tZ(o,i);case"MultiPolygon":return iZ(o,i);default:throw new Error("invalid poly")}}function tZ(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{};return HN(u,d)}function iZ(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{},_=[];return u.forEach(function(w){_.push(HN(w,d))}),Iu(_)}function HN(e,i){return e.length>1?r4(e,i):tl(e[0],i)}function nZ(e,i){var o=!0;return vc(e,function(u){vc(i,function(d){if(o===!1)return!1;o=rZ(u.geometry,d.geometry)})}),o}function rZ(e,i){switch(e.type){case"Point":switch(i.type){case"Point":return!lZ(e.coordinates,i.coordinates);case"LineString":return!$N(i,e);case"Polygon":return!Pm(e,i)}break;case"LineString":switch(i.type){case"Point":return!$N(e,i);case"LineString":return!oZ(e,i);case"Polygon":return!YN(i,e)}break;case"Polygon":switch(i.type){case"Point":return!Pm(i,e);case"LineString":return!YN(e,i);case"Polygon":return!sZ(i,e)}}return!1}function $N(e,i){for(var o=0;o<e.coordinates.length-1;o++)if(aZ(e.coordinates[o],e.coordinates[o+1],i.coordinates))return!0;return!1}function oZ(e,i){var o=c4(e,i);return o.features.length>0}function YN(e,i){for(var o=0,u=i.coordinates;o<u.length;o++){var d=u[o];if(Pm(d,e))return!0}var _=c4(i,u4(e));return _.features.length>0}function sZ(e,i){for(var o=0,u=e.coordinates[0];o<u.length;o++){var d=u[o];if(Pm(d,i))return!0}for(var _=0,w=i.coordinates[0];_<w.length;_++){var a=w[_];if(Pm(a,e))return!0}var E=c4(u4(e),u4(i));return E.features.length>0}function aZ(e,i,o){var u=o[0]-e[0],d=o[1]-e[1],_=i[0]-e[0],w=i[1]-e[1],a=u*w-d*_;return a!==0?!1:Math.abs(_)>=Math.abs(w)?_>0?e[0]<=o[0]&&o[0]<=i[0]:i[0]<=o[0]&&o[0]<=e[0]:w>0?e[1]<=o[1]&&o[1]<=i[1]:i[1]<=o[1]&&o[1]<=e[1]}function lZ(e,i){return e[0]===i[0]&&e[1]===i[1]}function cZ(e,i){var o=!1;return vc(e,function(u){vc(i,function(d){if(o===!0)return!0;o=!nZ(u.geometry,d.geometry)})}),o}const uZ=()=>{const[e,i]=xe.useState(!1),[o,u]=xe.useState(!1),d=Ja(),_=DN(),w=Ci(K3),a=Ci(Om),E=Ci(X3),j=Ci(ov),Q=Ci(ca),q=Ci(nv),W=Ci(IN),le=Ci(km),fe=Ci(pG),we=Ci(J3),[$e,me]=xe.useState(!1),[ie,te]=sn(Mu),oe=sn(sv),[be]=sn(AN),[_e,Je]=xe.useState({id:null,originalRule:null});xe.useEffect(()=>{_&&nt()},[_]),xe.useEffect(()=>{nt()},[Q,ie,j,E,q,w,W,a,be]);function nt(){const Pt=le.find(Tt=>Tt.name.toLowerCase()===ie.toLowerCase());if(!E&&_e.id&&Q&&$e&&(window.mapsindoors.services.LocationsService.getLocation(_e.id).then(Tt=>{Tt&&(Q.setDisplayRule(Tt.id,_e.originalRule||null),me(!1))}),Je({id:null,originalRule:null})),Q&&Pt){if(i(!0),E&&d)Je(Tt=>({...Tt,id:E})),window.mapsindoors.services.LocationsService.getLocation(E).then(Tt=>{if(Tt){const ci=Tt.properties.floor;Q.setFloor(ci);const Ot=Q.getDisplayRule(Tt);Je(wt=>({...wt,originalRule:{...Ot}})),Ye(Tt),rv().then(wt=>{u(Tt.geometry),Na(Tt.geometry,Q,wt,0,W?dt(W):void 0,fe,w)})}});else if(j&&!we)jr(be)?window.mapsindoors.services.LocationsService.getLocation(j).then(Tt=>{if(Tt){const ci=Tt.properties.floor;Q.setFloor(ci),d?Ph().then(Ot=>{u(Tt.geometry),Na(Tt.geometry,Q,0,Ot,W?dt(W):void 0,fe,w)}):Af().then(Ot=>{u(Tt.geometry),Na(Tt.geometry,Q,Ot,0,W?dt(W):void 0,fe,w)})}}):d?Ph().then(Tt=>{u(xt().geometry),Na(xt().geometry,Q,0,Tt,dt(W),fe,w)}):Af().then(Tt=>{u(xt().geometry),Na(xt().geometry,Q,Tt,0,dt(W),fe,w)});else if(Pt)if(we)d?(u(Pt.geometry),Na(Pt.geometry,Q,0,0,dt(W),fe,w)):Af().then(Tt=>{u(Pt.geometry),Na(Pt.geometry,Q,Tt,0,dt(W),fe,w)});else{const Tt=le.find(ci=>cZ(ci.geometry,xt().geometry));jr(be)?(u(Pt.geometry),Na(Pt.geometry,Q,0,0,dt(W),fe,w)):jr(Tt)?d?Ph().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,0,ci,dt(W),fe,w)}):Af().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,ci,0,dt(W),fe,w)}):(d?Ph().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,0,ci,dt(W),fe,w)}):Af().then(ci=>{u(xt().geometry),Na(xt().geometry,Q,ci,0,dt(W),fe,w)}),oe&&te(Tt.name))}}}function Ye(Pt){if($e)return;const Tt=Q.getDisplayRule(Pt);Tt.visible=!0,Tt.iconSize={width:Tt.iconSize.width*2,height:Tt.iconSize.height*2},Tt.iconVisible=!0,Tt.zoomFrom=0,Tt.zoomTo=999,Tt.clickable=!1,Q.setDisplayRule(Pt.id,Tt),me(!0)}function xt(){const[Pt,Tt]=be?be.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[Pt,Tt]}}}function dt(Pt){return jr(Pt)?18:Pt}return[e,o]};function Na(e,i,o,u,d,_,w){const a=Number(_),E=Number(w),j=d!==void 0?Number(d):void 0;if(j===void 0)i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:j??22,padding:{top:0,right:0,bottom:o,left:u}});else{const Q=HG(e);i.getMapView().setCenter({lat:Q.geometry.coordinates[1],lng:Q.geometry.coordinates[0]}),i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.setZoom(j)}}const GN=kn({key:"hideNonMatches",default:!1}),hZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V5H5V9H3V3ZM15 3H21V9H19V5H15V3ZM5 15V19H9V21H3V15H5ZM21 15V21H15V19H19V15H21Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}}),xe.createElement("rect",{x:9,y:9,width:6,height:6,fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Rm=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Gae="";ZN.propTypes={isViewSelectorDisabled:ct.bool,isViewSelectorVisible:ct.bool};function ZN({isViewSelectorDisabled:e,isViewSelectorVisible:i}){const{t:o}=Po(),[u,d]=xe.useState(!1),[_,w]=xe.useState([]),[a,E]=xe.useState(null),j=Ja(),Q=Ci(ca),q=Ci(Mu),W=".view-selector-portal",[le,fe]=xe.useState(null),we=xe.useRef(null),$e=xe.useRef(null),me=6,ie=60;xe.useEffect(()=>{let nt=document.querySelector(W);if(nt){fe(nt);return}const Ye=new MutationObserver(()=>{nt=document.querySelector(W),nt&&(fe(nt),Ye.disconnect())}),xt=document.body,dt={childList:!0,subtree:!0};return Ye.observe(xt,dt),()=>{Ye==null||Ye.disconnect()}},[]),xe.useEffect(()=>{const nt=()=>{const xt=document.querySelector(W);xt&&fe(xt)},Ye=new ResizeObserver(()=>{nt()});return Ye.observe(document.body),()=>{Ye==null||Ye.disconnect()}},[j]),xe.useEffect(()=>{var nt;if(Q&&q){const Ye=(nt=Q.getVenue())==null?void 0:nt.id;Ye&&E(Ye)}},[Q,q]),xe.useEffect(()=>{Q&&q&&window.mapsindoors.services.VenuesService.getVenues().then(nt=>{const Ye=nt.find(xt=>xt.name.toLowerCase()===q.toLowerCase());Ye!=null&&Ye.id&&E(Ye.id)})},[Q,q]),xe.useEffect(()=>{a&&window.mapsindoors.services.VenuesService.getBuildings(a).then(nt=>{w(nt)})},[a]);const te=xe.useMemo(()=>_.map(nt=>({id:nt.id,name:nt.buildingInfo.name})),[_]),oe=xe.useCallback(nt=>{Q.fitBuilding(nt),d(!1)},[Q]);if(xe.useEffect(()=>{if(!(u&&j))return;function nt(Ye){we.current&&!we.current.contains(Ye.target)&&$e.current&&!$e.current.contains(Ye.target)&&d(!1)}return document.addEventListener("mousedown",nt),()=>{document.removeEventListener("mousedown",nt)}},[u,j]),te.length<=1||i===!1)return null;const be=()=>Oe.jsx("button",{ref:$e,className:"view-selector__toggle-button",onClick:()=>d(!u),disabled:e,children:Oe.jsx(hZ,{})}),_e=()=>{const nt=xe.useMemo(()=>j&&te.length>me?{height:`${me*ie}px`}:{},[j,te.length]);return Oe.jsx("div",{className:"building-list",style:nt,children:te.map(Ye=>Oe.jsx("button",{className:"building-list__item",onClick:()=>oe(Ye.id),children:Oe.jsx("span",{children:Ye.name})},Ye.id))})},Je=Oe.jsxs("div",{className:"view-selector",children:[!j&&u&&Oe.jsxs("div",{className:"mobile-overlay",children:[Oe.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>d(!1)}),Oe.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Oe.jsxs("div",{className:"mobile-overlay__header",children:[Oe.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>d(!1),"aria-label":o("Close view selector"),children:Oe.jsx(Rm,{})}),Oe.jsx("span",{children:o("Go to view")})]}),Oe.jsx(_e,{})]})]}),j?Oe.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[u&&Oe.jsx("div",{ref:we,className:"view-selector__container view-selector__container--desktop",children:Oe.jsx(_e,{})}),Oe.jsx(be,{})]}):Oe.jsx(be,{})]});return le?_u.createPortal(Je,le):null}const dZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00177 3V5H13.0018V7H11.3742C11.0618 8.91166 10.4455 10.5244 9.43896 11.8188C10.1899 12.3437 11.1128 12.7471 12.2443 13.0299L13.2145 13.2725L12.7294 15.2128L11.7593 14.9702C10.2984 14.605 9.04252 14.0424 8.00171 13.245C6.96091 14.0424 5.70503 14.6049 4.24428 14.9701L3.27413 15.2127L2.78906 13.2724L3.75921 13.0299C4.89067 12.747 5.81358 12.3436 6.56448 11.8188C5.55798 10.5244 4.94173 8.91163 4.62931 7H3.00177V5H7.00177V3H9.00177ZM6.65973 7C6.92571 8.41424 7.37545 9.52718 8.00174 10.4013C8.62805 9.52718 9.0778 8.41425 9.34379 7H6.65973ZM16.1161 10H17.8874L22.3317 19.481L20.5207 20.3299L19.4286 18H14.5749L13.4828 20.3299L11.6719 19.481L16.1161 10ZM15.5124 16H18.4911L17.0018 12.8227L15.5124 16Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Zae="";function WN({toggleButtonRef:e,isExpanded:i,setIsExpanded:o}){return Oe.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>o(u=>!u),"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Select language",children:Oe.jsx(dZ,{})})}function qN({supportedLanguages:e,currentLanguage:i,setLanguage:o,setIsExpanded:u}){return Oe.jsx("div",{className:"language-selector__list",children:e.map(d=>Oe.jsx("button",{className:`language-selector__item${i===d.code?" language-selector__item--selected":""}`,onClick:()=>{o(d.code),u(!1)},children:d.label},d.code))})}function KN({currentLanguage:e,setLanguage:i,isVisible:o}){const{t:u}=Po(),[d,_]=xe.useState(!1),w=xe.useRef(null),a=xe.useRef(null),[E,j]=xe.useState(null),Q=Ja(),q=".language-selector-portal";return xe.useEffect(()=>{let W=document.querySelector(q);if(W){j(W);return}const le=new MutationObserver(()=>{W=document.querySelector(q),W&&(j(W),le.disconnect())});return le.observe(document.body,{childList:!0,subtree:!0}),()=>le.disconnect()},[]),xe.useEffect(()=>{if(!(d&&Q))return;function W(le){w.current&&!w.current.contains(le.target)&&a.current&&!a.current.contains(le.target)&&_(!1)}return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[d,Q]),!o||!E?null:_u.createPortal(Q?Oe.jsxs("div",{className:"language-selector__button-container",children:[d&&Oe.jsx("div",{ref:w,className:"language-selector__container",children:Oe.jsx(qN,{supportedLanguages:pN,currentLanguage:e,setLanguage:i,setIsExpanded:_})}),Oe.jsx(WN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_})]}):Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(WN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_}),d&&Oe.jsxs("div",{className:"language-selector-overlay",children:[Oe.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>_(!1)}),Oe.jsxs("div",{className:"language-selector__container",children:[Oe.jsxs("div",{className:"language-selector-overlay__header",children:[Oe.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>_(!1),"aria-label":"Close language selector",children:"×"}),Oe.jsx("span",{children:u("Select language")})]}),Oe.jsx(qN,{supportedLanguages:pN,currentLanguage:e,setLanguage:i,setIsExpanded:_})]})]})]}),E)}KN.propTypes={currentLanguage:ct.string,setLanguage:ct.func.isRequired,isVisible:ct.bool};const Rh=kn({key:"appConfig",default:void 0}),fZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M14.4978 10C14.4978 11.3807 13.3785 12.5 11.9978 12.5C10.6171 12.5 9.4978 11.3807 9.4978 10C9.4978 8.61929 10.6171 7.5 11.9978 7.5C13.3785 7.5 14.4978 8.61929 14.4978 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"}),xe.createElement("path",{d:"M19 10C19 14.8354 14.2437 19.1734 12.5723 20.5484C12.2352 20.8258 11.7648 20.8258 11.4277 20.5484C9.75634 19.1734 5 14.8354 5 10C5 6.13401 8.13401 3 12 3C15.866 3 19 6.13401 19 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"})),Wae="",Dl=kn({key:"kioskLocation",default:null}),Tu=()=>{const e=Ci(Dl),i=Ja();return!(!e||e&&!i)};function XN(){const[e,i]=xe.useState(null),o=".reset-view-portal",u=Tu(),d=Ci(X3),_=Ci(ca),w=Ci(Mu),a=Ci(Dl),E=Ja();function j(){window.mapsindoors.services.LocationsService.getLocation(d).then(le=>{le&&Q([le])}).catch(le=>{console.error("Error resetting map position:",le)})}function Q(le){if(!_.goTo)return;const fe=le.find(me=>me.id===d);if(fe){const me=fe.properties.floor;_.setFloor(me)}const we=_.getFloor(),$e={type:"FeatureCollection",features:le.filter(me=>parseInt(me.properties.floor,10)===parseInt(we,10)).filter(me=>w&&me.properties.venueId.toLowerCase()===w.toLowerCase()).map(me=>({type:"Feature",geometry:me.geometry,properties:me.properties}))};$e.features.length>0&&Promise.all([q(),W()]).then(([me,ie])=>{_.goTo($e,{maxZoom:22,padding:{bottom:me,left:ie,top:0,right:0}})})}function q(){return new Promise(le=>{E?a?rv().then(fe=>le(fe)):le(0):le(200)})}function W(){return new Promise(le=>{E?a?le(0):Ph().then(fe=>le(fe)):le(0)})}return xe.useEffect(()=>{let le=document.querySelector(o);if(le){i(le);return}const fe=new MutationObserver(()=>{le=document.querySelector(o),le&&(i(le),fe.disconnect())});return fe.observe(document.body,{childList:!0,subtree:!0}),()=>fe.disconnect()},[]),!u||!e?null:_u.createPortal(Oe.jsx("button",{className:"reset-kiosk-view-button",onClick:j,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Oe.jsx(fZ,{})}),e)}XN.propTypes={onReset:ct.func,isVisible:ct.bool},JN.propTypes={onLocationClick:ct.func,onMapPositionKnown:ct.func.isRequired,useMapProviderModule:ct.bool.isRequired,onMapPositionInvestigating:ct.func.isRequired,onViewModeSwitchKnown:ct.func.isRequired,resetCount:ct.number.isRequired,mapOptions:ct.object,gmMapId:ct.string,isWayfindingOrDirections:ct.bool,currentLanguage:ct.string,setLanguage:ct.func,devicePosition:ct.object};let h4;function JN({onLocationClick:e,onMapPositionKnown:i,useMapProviderModule:o,onMapPositionInvestigating:u,onViewModeSwitchKnown:d,resetCount:_,mapOptions:w,gmMapId:a,isWayfindingOrDirections:E,currentLanguage:j,setLanguage:Q,devicePosition:q}){const W=Ci(W3),le=Ci(q3),fe=Ci(ev),[we,$e]=sn(J_),[me,ie]=sn(ca),[,te]=sn(X_),[,oe]=sn(Z3),be=Ci(tv),_e=Ci(iv),Je=Ci(wN),nt=Ci(K3),Ye=Ci(nv),[,xt]=sn(bN),dt=Ci(MN),[,Pt]=sn(zm),Tt=Ci(GN),ci=Ci(Rh),[Ot,wt]=xe.useState(!1),[$t,St]=xe.useState(!1),Ht=Tu();dG(W);const[Z,ne]=uZ();xe.useEffect(()=>{if(!dt||le===null&&fe===null)return;let U;const G=dt.modules.map(re=>re.toLowerCase()).includes("mapbox");o?G?fe&&(U=us.Mapbox):le&&(U=us.Google):fe?U=us.Mapbox:U=us.Google,U?$e(U):(Pt({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),$e(void 0))},[le,fe,dt]),xe.useEffect(()=>{Z&&u()},[Z]),xe.useEffect(()=>{ne&&i()},[ne]),xe.useEffect(()=>{if(!me)return;const U=be||_e;if(!U)return;const G=U.map(re=>re.id);Tt||!me.highlight?me.filter(G):me.highlight(G)},[be,_e,me,Tt]),xe.useEffect(()=>{me&&(isNaN(parseInt(Ye))||me.getMapView().tilt(parseInt(Ye)),isNaN(parseInt(nt))||me.getMapView().rotate(parseInt(nt)))},[nt,Ye,me]);const T=U=>{k(U)},k=U=>{if(U&&h4){let G=U.getTileURL();if(G){G=U.getTileURL().replace("default",h4);const re=G==null?void 0:G.replace("{floor}",U.getFloor());U.getMapView().setMapsIndoorsTileURL(re)}}},F=(U,G,re)=>{U.on("mouseenter",()=>{var et;const Fe=U.getHoveredLocation();((et=Fe==null?void 0:Fe.properties.locationSettings)==null?void 0:et.selectable)===!1&&U.unhoverLocation()}),U.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),U.on("click",Fe=>e(Fe)),U.once("building_changed",()=>T(U)),U.on("floor_changed",()=>k(U)),ie(U),window.mapsIndoorsInstance=U;const de=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(de);let ue;we===us.Google?ue=new window.mapsindoors.directions.GoogleMapsProvider:we===us.Mapbox&&(ue=new window.mapsindoors.directions.MapboxProvider(fe));const Me=new window.mapsindoors.services.DirectionsService(ue);oe(Me),ie(U),G.nodeName==="MI-MY-POSITION"?G.addEventListener("position_received",Fe=>{Fe.detail.accurate===!0&&te(Fe.detail.position)}):G.on("position_received",Fe=>{Fe.accurate===!0&&te(Fe.position)}),xt(G),d(re)};return xe.useEffect(()=>{h4=Je||"default",k(me)},[Je]),xe.useEffect(()=>{var U,G,re,de;ci&&(jr((U=ci==null?void 0:ci.appSettings)==null?void 0:U.viewSelector)?wt(!1):wt(((G=ci==null?void 0:ci.appSettings)==null?void 0:G.viewSelector.trim().toLowerCase())==="true"),jr((re=ci==null?void 0:ci.appSettings)==null?void 0:re.languageSelector)?St(!1):St(((de=ci==null?void 0:ci.appSettings)==null?void 0:de.languageSelector.trim().toLowerCase())==="true"))},[ci]),Oe.jsxs(Oe.Fragment,{children:[W&&Oe.jsx(xN,{apiKey:W,mapboxAccessToken:we===us.Mapbox?fe:void 0,gmApiKey:we===us.Google?le:void 0,onInitialized:F,resetUICounter:_,mapOptions:w,gmMapId:a,devicePosition:q,isKiosk:Ht}),W&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(ZN,{isViewSelectorVisible:Ot,isViewSelectorDisabled:E}),Oe.jsx(KN,{currentLanguage:j,setLanguage:Q,isVisible:$t}),Oe.jsx(XN,{})]})]})}const Sl=kn({key:"primaryColor",default:"#005655"}),qae="",d4=kn({key:"logo",default:void 0});function pZ(){const e=Ci(Sl),i=Ci(d4);return Oe.jsx("div",{className:"splash-screen",children:Oe.jsxs("div",{className:"splash-screen__container",children:[Oe.jsx("img",{className:"splash-screen__logo "+(i?"splash-screen__logo--visible":""),src:i,alt:""}),Oe.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function eL(e,i){if(e==null)return{};var o={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(i.indexOf(u)!==-1)continue;o[u]=e[u]}return o}function f4(e,i){return f4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,u){return o.__proto__=u,o},f4(e,i)}function tL(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,f4(e,i)}function gZ(e,i){return e.classList?!!i&&e.classList.contains(i):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+i+" ")!==-1}function mZ(e,i){e.classList?e.classList.add(i):gZ(e,i)||(typeof e.className=="string"?e.className=e.className+" "+i:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+i))}function iL(e,i){return e.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yZ(e,i){e.classList?e.classList.remove(i):typeof e.className=="string"?e.className=iL(e.className,i):e.setAttribute("class",iL(e.className&&e.className.baseVal||"",i))}const nL={disabled:!1},rL=Cr.createContext(null);var oL=function(i){return i.scrollTop},Bm="unmounted",Bh="exited",Fh="entering",Nf="entered",p4="exiting",xc=function(e){tL(i,e);function i(u,d){var _;_=e.call(this,u,d)||this;var w=d,a=w&&!w.isMounting?u.enter:u.appear,E;return _.appearStatus=null,u.in?a?(E=Bh,_.appearStatus=Fh):E=Nf:u.unmountOnExit||u.mountOnEnter?E=Bm:E=Bh,_.state={status:E},_.nextCallback=null,_}i.getDerivedStateFromProps=function(d,_){var w=d.in;return w&&_.status===Bm?{status:Bh}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(d){var _=null;if(d!==this.props){var w=this.state.status;this.props.in?w!==Fh&&w!==Nf&&(_=Fh):(w===Fh||w===Nf)&&(_=p4)}this.updateStatus(!1,_)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var d=this.props.timeout,_,w,a;return _=w=a=d,d!=null&&typeof d!="number"&&(_=d.exit,w=d.enter,a=d.appear!==void 0?d.appear:w),{exit:_,enter:w,appear:a}},o.updateStatus=function(d,_){if(d===void 0&&(d=!1),_!==null)if(this.cancelNextCallback(),_===Fh){if(this.props.unmountOnExit||this.props.mountOnEnter){var w=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this);w&&oL(w)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bh&&this.setState({status:Bm})},o.performEnter=function(d){var _=this,w=this.props.enter,a=this.context?this.context.isMounting:d,E=this.props.nodeRef?[a]:[fm.findDOMNode(this),a],j=E[0],Q=E[1],q=this.getTimeouts(),W=a?q.appear:q.enter;if(!d&&!w||nL.disabled){this.safeSetState({status:Nf},function(){_.props.onEntered(j)});return}this.props.onEnter(j,Q),this.safeSetState({status:Fh},function(){_.props.onEntering(j,Q),_.onTransitionEnd(W,function(){_.safeSetState({status:Nf},function(){_.props.onEntered(j,Q)})})})},o.performExit=function(){var d=this,_=this.props.exit,w=this.getTimeouts(),a=this.props.nodeRef?void 0:fm.findDOMNode(this);if(!_||nL.disabled){this.safeSetState({status:Bh},function(){d.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:p4},function(){d.props.onExiting(a),d.onTransitionEnd(w.exit,function(){d.safeSetState({status:Bh},function(){d.props.onExited(a)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(d,_){_=this.setNextCallback(_),this.setState(d,_)},o.setNextCallback=function(d){var _=this,w=!0;return this.nextCallback=function(a){w&&(w=!1,_.nextCallback=null,d(a))},this.nextCallback.cancel=function(){w=!1},this.nextCallback},o.onTransitionEnd=function(d,_){this.setNextCallback(_);var w=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this),a=d==null&&!this.props.addEndListener;if(!w||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var E=this.props.nodeRef?[this.nextCallback]:[w,this.nextCallback],j=E[0],Q=E[1];this.props.addEndListener(j,Q)}d!=null&&setTimeout(this.nextCallback,d)},o.render=function(){var d=this.state.status;if(d===Bm)return null;var _=this.props,w=_.children;_.in,_.mountOnEnter,_.unmountOnExit,_.appear,_.enter,_.exit,_.timeout,_.addEndListener,_.onEnter,_.onEntering,_.onEntered,_.onExit,_.onExiting,_.onExited,_.nodeRef;var a=eL(_,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(rL.Provider,{value:null},typeof w=="function"?w(d,a):Cr.cloneElement(Cr.Children.only(w),a))},i}(Cr.Component);xc.contextType=rL,xc.propTypes={};function Lf(){}xc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lf,onEntering:Lf,onEntered:Lf,onExit:Lf,onExiting:Lf,onExited:Lf},xc.UNMOUNTED=Bm,xc.EXITED=Bh,xc.ENTERING=Fh,xc.ENTERED=Nf,xc.EXITING=p4;const _Z=xc;var vZ=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return mZ(i,u)})},g4=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return yZ(i,u)})},m4=function(e){tL(i,e);function i(){for(var u,d=arguments.length,_=new Array(d),w=0;w<d;w++)_[w]=arguments[w];return u=e.call.apply(e,[this].concat(_))||this,u.appliedClasses={appear:{},enter:{},exit:{}},u.onEnter=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],q=j[1];u.removeClasses(Q,"exit"),u.addClass(Q,q?"appear":"enter","base"),u.props.onEnter&&u.props.onEnter(a,E)},u.onEntering=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],q=j[1],W=q?"appear":"enter";u.addClass(Q,W,"active"),u.props.onEntering&&u.props.onEntering(a,E)},u.onEntered=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],q=j[1],W=q?"appear":"enter";u.removeClasses(Q,W),u.addClass(Q,W,"done"),u.props.onEntered&&u.props.onEntered(a,E)},u.onExit=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"appear"),u.removeClasses(j,"enter"),u.addClass(j,"exit","base"),u.props.onExit&&u.props.onExit(a)},u.onExiting=function(a){var E=u.resolveArguments(a),j=E[0];u.addClass(j,"exit","active"),u.props.onExiting&&u.props.onExiting(a)},u.onExited=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"exit"),u.addClass(j,"exit","done"),u.props.onExited&&u.props.onExited(a)},u.resolveArguments=function(a,E){return u.props.nodeRef?[u.props.nodeRef.current,a]:[a,E]},u.getClassNames=function(a){var E=u.props.classNames,j=typeof E=="string",Q=j&&E?E+"-":"",q=j?""+Q+a:E[a],W=j?q+"-active":E[a+"Active"],le=j?q+"-done":E[a+"Done"];return{baseClassName:q,activeClassName:W,doneClassName:le}},u}var o=i.prototype;return o.addClass=function(d,_,w){var a=this.getClassNames(_)[w+"ClassName"],E=this.getClassNames("enter"),j=E.doneClassName;_==="appear"&&w==="done"&&j&&(a+=" "+j),w==="active"&&d&&oL(d),a&&(this.appliedClasses[_][w]=a,vZ(d,a))},o.removeClasses=function(d,_){var w=this.appliedClasses[_],a=w.base,E=w.active,j=w.done;this.appliedClasses[_]={},a&&g4(d,a),E&&g4(d,E),j&&g4(d,j)},o.render=function(){var d=this.props;d.classNames;var _=eL(d,["classNames"]);return Cr.createElement(_Z,Q3({},_,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(Cr.Component);m4.defaultProps={classNames:""},m4.propTypes={};const xZ=m4,Kae="",wZ=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),Xae="";sL.propTypes={venue:ct.object.isRequired,isCurrent:ct.bool,onVenueClicked:ct.func.isRequired};function sL({venue:e,isCurrent:i,onVenueClicked:o}){const{t:u}=Po(),[d,_]=xe.useState({});return xe.useEffect(()=>()=>{_({})},[]),xe.useEffect(()=>{const w={};e.image&&(w.backgroundImage=`url('${e.image}')`),_(w)},[e]),Oe.jsxs("button",{className:"venue",onClick:()=>o(),children:[Oe.jsx("div",{className:"venue__image",style:d}),Oe.jsxs("div",{className:"venue__content",children:[Oe.jsx("div",{children:e.venueInfo.name}),i&&Oe.jsx("div",{className:"venue__current",children:u("Current")})]})]})}const hv=kn({key:"isLocationClicked",default:!1});aL.propTypes={onOpen:ct.func,onClose:ct.func,active:ct.bool};function aL({onOpen:e,onClose:i,active:o}){const{t:u}=Po(),d=xe.useRef(null),_=Ci(km),[,w]=sn(J3),[a,E]=sn(Mu),[,j]=sn(hv),Q=document.querySelector(".venue-selector-portal"),q=fe=>{w(!0),E(fe.name),W()},W=()=>{o?i():e()};function le(fe){q(fe),j(!1)}return Oe.jsxs(Oe.Fragment,{children:[!o&&Q&&_u.createPortal(Oe.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":u("Venues"),children:Oe.jsx(wZ,{})}),Q),Oe.jsx(xZ,{in:o,nodeRef:d,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Oe.jsxs("div",{className:"venue-selector__content",ref:d,children:[Oe.jsxs("div",{className:"venue-selector__header",children:[Oe.jsx("h1",{children:u("Select venue")}),Oe.jsx("button",{className:"venue-selector__button",onClick:()=>i(),"aria-label":u("Close"),children:Oe.jsx(Rm,{})})]}),Oe.jsx("div",{className:"venue-selector__list",children:_.map(fe=>Oe.jsx(sL,{isCurrent:(a==null?void 0:a.toLowerCase())===fe.name.toLowerCase(),venue:fe,onVenueClicked:()=>le(fe)},fe.id))})]})})]})}const lL=xe.createContext(),wc=kn({key:"currentLocation",default:null}),bZ="Left",MZ="Right",IZ="Up",TZ="Down",zf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},y4={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},cL="mousemove",uL="mouseup",DZ="touchend",SZ="touchmove",AZ="touchstart";function CZ(e,i,o,u){return e>i?o>0?MZ:bZ:u>0?TZ:IZ}function hL(e,i){if(i===0)return e;const o=Math.PI/180*i,u=e[0]*Math.cos(o)+e[1]*Math.sin(o),d=e[1]*Math.cos(o)-e[0]*Math.sin(o);return[u,d]}function EZ(e,i){const o=Q=>{const q="touches"in Q;q&&Q.touches.length>1||e((W,le)=>{le.trackMouse&&!q&&(document.addEventListener(cL,u),document.addEventListener(uL,w));const{clientX:fe,clientY:we}=q?Q.touches[0]:Q,$e=hL([fe,we],le.rotationAngle);return le.onTouchStartOrOnMouseDown&&le.onTouchStartOrOnMouseDown({event:Q}),Object.assign(Object.assign(Object.assign({},W),y4),{initial:$e.slice(),xy:$e,start:Q.timeStamp||0})})},u=Q=>{e((q,W)=>{const le="touches"in Q;if(le&&Q.touches.length>1)return q;if(Q.timeStamp-q.start>W.swipeDuration)return q.swiping?Object.assign(Object.assign({},q),{swiping:!1}):q;const{clientX:fe,clientY:we}=le?Q.touches[0]:Q,[$e,me]=hL([fe,we],W.rotationAngle),ie=$e-q.xy[0],te=me-q.xy[1],oe=Math.abs(ie),be=Math.abs(te),_e=(Q.timeStamp||0)-q.start,Je=Math.sqrt(oe*oe+be*be)/(_e||1),nt=[ie/(_e||1),te/(_e||1)],Ye=CZ(oe,be,ie,te),xt=typeof W.delta=="number"?W.delta:W.delta[Ye.toLowerCase()]||zf.delta;if(oe<xt&&be<xt&&!q.swiping)return q;const dt={absX:oe,absY:be,deltaX:ie,deltaY:te,dir:Ye,event:Q,first:q.first,initial:q.initial,velocity:Je,vxvy:nt};dt.first&&W.onSwipeStart&&W.onSwipeStart(dt),W.onSwiping&&W.onSwiping(dt);let Pt=!1;return(W.onSwiping||W.onSwiped||W[`onSwiped${Ye}`])&&(Pt=!0),Pt&&W.preventScrollOnSwipe&&W.trackTouch&&Q.cancelable&&Q.preventDefault(),Object.assign(Object.assign({},q),{first:!1,eventData:dt,swiping:!0})})},d=Q=>{e((q,W)=>{let le;if(q.swiping&&q.eventData){if(Q.timeStamp-q.start<W.swipeDuration){le=Object.assign(Object.assign({},q.eventData),{event:Q}),W.onSwiped&&W.onSwiped(le);const fe=W[`onSwiped${le.dir}`];fe&&fe(le)}}else W.onTap&&W.onTap({event:Q});return W.onTouchEndOrOnMouseUp&&W.onTouchEndOrOnMouseUp({event:Q}),Object.assign(Object.assign(Object.assign({},q),y4),{eventData:le})})},_=()=>{document.removeEventListener(cL,u),document.removeEventListener(uL,w)},w=Q=>{_(),d(Q)},a=(Q,q)=>{let W=()=>{};if(Q&&Q.addEventListener){const le=Object.assign(Object.assign({},zf.touchEventOptions),q.touchEventOptions),fe=[[AZ,o,le],[SZ,u,Object.assign(Object.assign({},le),q.preventScrollOnSwipe?{passive:!1}:{})],[DZ,d,le]];fe.forEach(([we,$e,me])=>Q.addEventListener(we,$e,me)),W=()=>fe.forEach(([we,$e])=>Q.removeEventListener(we,$e))}return W},j={ref:Q=>{Q!==null&&e((q,W)=>{if(q.el===Q)return q;const le={};return q.el&&q.el!==Q&&q.cleanUpTouch&&(q.cleanUpTouch(),le.cleanUpTouch=void 0),W.trackTouch&&Q&&(le.cleanUpTouch=a(Q,W)),Object.assign(Object.assign(Object.assign({},q),{el:Q}),le)})}};return i.trackMouse&&(j.onMouseDown=o),[j,a]}function NZ(e,i,o,u){return!i.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?i.preventScrollOnSwipe!==o.preventScrollOnSwipe||i.touchEventOptions.passive!==o.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})}function dL(e){const{trackMouse:i}=e,o=xe.useRef(Object.assign({},y4)),u=xe.useRef(Object.assign({},zf)),d=xe.useRef(Object.assign({},u.current));d.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},zf),e);let _;for(_ in zf)u.current[_]===void 0&&(u.current[_]=zf[_]);const[w,a]=xe.useMemo(()=>EZ(E=>o.current=E(o.current,u.current),{trackMouse:i}),[i]);return o.current=NZ(o.current,u.current,d.current,a),w}const qn={MIN:"MIN",FIT:"FIT",MAX:"MAX"},Jae="",Of=xe.forwardRef(function({children:i,isOpen:o,initialSnapPoint:u,minimizedHeight:d},_){const w=xe.useRef(),a=xe.useRef(),E=xe.useRef(),j=xe.useRef(),Q=xe.useRef(),[q,W]=xe.useState({}),[le,fe]=xe.useState(!1),[we,$e]=xe.useState(null),me=xe.useContext(lL),ie=xe.useRef();xe.useImperativeHandle(_,()=>({setSnapPoint(Ye){te(Ye)}}));function te(Ye){requestAnimationFrame(()=>{switch(Ye){case qn.MAX:W({height:`${me.current.clientHeight}px`}),E.current=me.current.clientHeight;break;case qn.FIT:{const xt=a.current.children.item(0).clientHeight;xt<d?(W({height:`${d}px`}),E.current=d,Ye=qn.MIN):(W({height:`${xt}px`}),E.current=xt);break}case qn.MIN:W({height:`${d}px`}),E.current=d;break}}),Q.current=Ye}xe.useEffect(()=>(o&&Q.current===qn.FIT?oe():be(),()=>{be()}),[o,Q.current]);function oe(){ie.current&&ie.current.disconnect(),ie.current=new MutationObserver(()=>{te(qn.FIT)}),ie.current.observe(a.current,{childList:!0,subtree:!0})}function be(){ie.current&&ie.current.disconnect()}const _e=dL({onSwipeStart:()=>{fe(!0),$e(null),j.current=w.current.clientHeight},onSwiping:Ye=>{const xt=Math.max(j.current-Ye.deltaY,d);W({height:`${xt}px`})},onSwiped:Ye=>{fe(!1);const xt=LZ(Ye.dir,Ye.deltaY,Q.current,d,me.current.clientHeight,a.current.children.item(0));xt&&(te(xt),$e(xt))},trackMouse:!0,preventScrollOnSwipe:!0});xe.useEffect(()=>{o&&(Q.current=u,te(u))},[d,u,o]);const Je=Ye=>{_e.ref(Ye),w.current=Ye},nt=Cr.Children.map(i,Ye=>xe.cloneElement(Ye,{snapPointSwipedByUser:we}));return Oe.jsx("div",{..._e,ref:Je,className:`sheet ${o?"sheet--active":""} ${le?"sheet--dragging":""} ${Q.current===qn.MAX?"sheet--max":""}`,style:q,children:Oe.jsx("div",{ref:a,className:`sheet__content ${Q.current===qn.MIN?"sheet__content--no-scroll":""}`,style:q,children:nt})})});Of.propTypes={children:ct.node.isRequired,isOpen:ct.bool.isRequired,initialSnapPoint:ct.string.isRequired,minimizedHeight:ct.number.isRequired};function LZ(e,i,o,u,d,_){if(Math.abs(i)<60)return o;let a;return e.toUpperCase()==="DOWN"?o===qn.MAX?zZ(_)?a=qn.MIN:_.clientHeight<=d&&_.clientHeight>u?a=qn.FIT:a=qn.MIN:o===qn.FIT&&(a=qn.MIN):e.toUpperCase()==="UP"&&(o===qn.MIN?_.clientHeight<=u||_.clientHeight>d?a=qn.MAX:a=qn.FIT:o===qn.FIT&&(a=qn.MAX)),a}function zZ(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const i of e.children)if(i.scrollHeight>i.clientHeight)return!0;return!1}const ele="",tle="",OZ=(e,i)=>{const[o,u]=xe.useState(void 0),[d,_]=xe.useState(void 0);return xe.useEffect(()=>{const w=(a=!1)=>{var j,Q;const E=((j=i.current)==null?void 0:j.scrollHeight)>((Q=i.current)==null?void 0:Q.clientHeight);u(E),a===!0&&_(E)};w(!0),i.current&&new ResizeObserver(w).observe(i.current)},[e,i]),[o,d]},kf=()=>dL({onSwiping:({event:e})=>e.stopPropagation()});function fL(e){const i=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:i[1],lng:i[0],floor:e.properties.floor}}const Fm=kn({key:"directionsResponse",default:null}),dv=kn({key:"hasFoundRoute",default:!0}),pL=kn({key:"shuttleBusOn",default:!1}),gL=(e,i,o,u,d)=>{const[_,w]=xe.useState(),[a,E]=xe.useState(),[j,Q]=sn(dv),[,q]=sn(Fm),[W,le]=xe.useState(),fe=Ci(pL);return xe.useEffect(()=>{le(!1);let we=!0;return e!=null&&e.geometry&&(i!=null&&i.geometry)&&o.getRoute({origin:fL(e),destination:fL(i),travelMode:u,avoidStairs:d,excludeHighwayTypes:fe?[]:["busway"]}).then($e=>{if(we)if($e&&$e.legs){const me=$e.legs.reduce((te,oe)=>te+oe.distance.value,0),ie=$e.legs.reduce((te,oe)=>te+oe.duration.value,0);w(me),E(ie),q({originLocation:e,destinationLocation:i,totalDistance:me,totalTime:ie,directionsResult:$e}),Q(!0),le(!0)}else Q(!1)},()=>{we&&Q(!1)}),()=>{we=!1}},[e,i,o,d,u,fe]),[_,a,j,W]},Uh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Um=kn({key:"travelMode",default:Uh.WALKING}),Vm=kn({key:"accessibilityOn",default:!1}),fv=kn({key:"showExternalIDs",default:!1});function mL(e,i){const o=Ci(J_),[u,d]=xe.useState(!1),_=e.getMap();xe.useEffect(()=>{i&&d(!1)},[i]);function w(E,j,Q,q){const W=le=>{if(!Q)return;j.getMap().queryRenderedFeatures(le.point).length?q(!1):q(!0)};return E.on("click",W),()=>{E.off("click",W)}}function a(E,j,Q,q){const W=()=>{Q&&q(!1)},le=()=>{Q&&q(!0)};j.addListener("click",W);const fe=E.addListener("click",le);return()=>{j.removeListener("click",W),fe.remove()}}return xe.useEffect(()=>{let E;return o===us.Mapbox&&(E=w(_,e,i,d)),o===us.Google&&(E=a(_,e,i,d)),()=>E==null?void 0:E()},[e,i]),u}const ile="",kZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M12 7.75V12L14.75 14.75M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),jZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M8 10L11.6464 13.6464C11.8417 13.8417 12.1583 13.8417 12.3536 13.6464L16 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),PZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M16 14L12.3536 10.3536C12.1583 10.1583 11.8417 10.1583 11.6464 10.3536L8 14",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vh=kn({key:"language",default:void 0});yL.propTypes={openingHours:ct.object,isMondayFirstDayOfTheWeek:ct.bool,onExpand:ct.func};function yL({openingHours:e,isMondayFirstDayOfTheWeek:i=!0,onExpand:o}){const{t:u}=Po(),[d,_]=xe.useState(!1),a=Ci(Vh)??navigator.language,E=xe.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(a).match(/AM|PM/)!==null,[a]),j=new Date().getDay(),Q=xe.useMemo(()=>{const oe=[];for(let be=0;be<7;be++)oe.push(new Date(2024,0,be+1));if(!i){const be=oe.pop();oe.unshift(be)}return oe},[i]),q=xe.useMemo(()=>i?j===0?6:j-1:j,[j,i]),{standardOpeningHours:W}=e||{},le=oe=>{const[be,_e]=oe.split(":");return new Date(0,0,0,be,_e).toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",hour12:E})},fe=oe=>{const be=oe.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),_e=W==null?void 0:W[be];return!(_e!=null&&_e.startTime)||!(_e!=null&&_e.endTime)||_e.closedAllDay?{text:u("Closed"),isClosed:!0}:{text:`${le(_e.startTime)} - ${le(_e.endTime)}`,isClosed:!1}},we=xe.useCallback(oe=>{if(!oe||oe.closedAllDay||!oe.startTime||!oe.endTime)return!1;const be=new Date,_e=be.getHours()*60+be.getMinutes(),[Je,nt]=oe.startTime.split(":"),[Ye,xt]=oe.endTime.split(":"),dt=parseInt(Je,10)*60+parseInt(nt,10),Pt=parseInt(Ye,10)*60+parseInt(xt,10);return _e>=dt&&_e<=Pt},[]),me=xe.useCallback(()=>{const oe=Q[q].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return we(W==null?void 0:W[oe])?"Open":"Closed"},[W,Q,q,we,u])(),ie=oe=>oe.charAt(0).toUpperCase()+oe.slice(1),te=()=>{_(oe=>!oe)};return xe.useEffect(()=>{d&&typeof o=="function"&&o()},[d,o]),Oe.jsxs("div",{className:"opening-hours",children:[Oe.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:te,"aria-label":u(d?"Collapse opening hours":"Expand opening hours"),"aria-expanded":d,children:[Oe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Oe.jsx(kZ,{})}),Oe.jsx("div",{className:"contact-action-button__text",children:fe(Q[q]).text}),Oe.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${me.toLowerCase()}`,children:u(me)}),d?Oe.jsx(PZ,{}):Oe.jsx(jZ,{})]}),d&&Oe.jsx("ul",{className:"opening-hours__list",children:Q.map(oe=>{const be=fe(oe);return Oe.jsxs("li",{className:"opening-hours__list-item",children:[Oe.jsx("span",{className:"opening-hours__day",children:ie(oe.toLocaleString(a,{weekday:"long"}))}),Oe.jsx("span",{className:`opening-hours__hours ${be.isClosed?"opening-hours__hours--closed":""}`,children:be.text})]},oe)})})]})}const RZ=xe.memo(yL);function _4(e,i,o){return(i=function(u){var d=function(_,w){if(typeof _!="object"||!_)return _;var a=_[Symbol.toPrimitive];if(a!==void 0){var E=a.call(_,w||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(_)}(u,"string");return typeof d=="symbol"?d:d+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var v4={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},_L=function(e){var i=e.children,o=e.onClickAway,u=e.focusEvent,d=u===void 0?"focusin":u,_=e.mouseEvent,w=_===void 0?"click":_,a=e.touchEvent,E=a===void 0?"touchend":a,j=xe.useRef(null),Q=xe.useRef(null),q=xe.useRef(!1);xe.useEffect(function(){return setTimeout(function(){q.current=!0},0),function(){q.current=!1}},[]);var W=function($e){return function(me){Q.current=me.target;var ie=i==null?void 0:i.props[$e];ie&&ie(me)}};xe.useEffect(function(){var $e,me,ie=($e=(me=j.current)===null||me===void 0?void 0:me.ownerDocument)!==null&&$e!==void 0?$e:document,te=function(oe){q.current&&(j.current&&j.current.contains(oe.target)||Q.current===oe.target||!ie.contains(oe.target)||o(oe))};return ie.addEventListener(w,te),ie.addEventListener(E,te),ie.addEventListener(d,te),function(){ie.removeEventListener(w,te),ie.removeEventListener(E,te),ie.removeEventListener(d,te)}},[d,w,o,E]);var le=v4[w],fe=v4[E],we=v4[d];return Cr.Children.only(xe.cloneElement(i,_4(_4(_4({ref:function($e){j.current=$e;var me=i.ref;typeof me=="function"?me($e):me&&(me.current=$e)}},we,W(we)),le,W(le)),fe,W(fe))))};_L.displayName="ClickAwayListener";const pv=kn({key:"searchAllVenues",default:!1}),x4=kn({key:"searchExternalLocations",default:!0}),vL=R_({key:"baseLink",get:({get:e})=>{const i=e(q3),o=e(ev),u=e(W3),d=e(Sl),_=e(Vh),w=e(pv),a=e(x4),E=e(d4),j=window.location.origin+window.location.pathname.replace(/\/$/,""),Q=new URLSearchParams(window.location.search),q=new URLSearchParams;return[["gmApiKey",i],["mapboxAccessToken",o],["apiKey",u],["primaryColor",d],["language",_],["searchAllVenues",w],["searchExternalLocations",a],["logo",E]].forEach(([W,le])=>{if(Q.has(W)){const fe=Q.get(W);q.append(W,fe)}else le&&(le===d?q.append(W,d.replace("#","")):q.append(W,le))}),`${j}?${q.toString()}`}}),nle="",BZ=e=>xe.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8484 4.66738C13.3129 3.20291 15.6872 3.20291 17.1517 4.66737L19.909 7.42474C21.3735 8.8892 21.3735 11.2636 19.909 12.7281L18.2804 14.3568C17.9875 14.6497 17.5126 14.6497 17.2197 14.3568C16.9268 14.0639 16.9268 13.589 17.2197 13.2961L18.8484 11.6674C19.7271 10.7887 19.7271 9.36407 18.8484 8.4854L16.091 5.72803C15.2123 4.84936 13.7877 4.84936 12.909 5.72804L11.2804 7.35672C10.9875 7.64961 10.5126 7.64961 10.2197 7.35672C9.92681 7.06382 9.92681 6.58895 10.2197 6.29606L11.8484 4.66738ZM15.5304 9.04606C15.8233 9.33895 15.8233 9.81382 15.5304 10.1067L9.53036 16.1068C9.23747 16.3997 8.7626 16.3997 8.4697 16.1068C8.17681 15.8139 8.17681 15.339 8.4697 15.0461L14.4697 9.04606C14.7626 8.75316 15.2375 8.75316 15.5304 9.04606ZM6.78036 10.7961C7.07326 11.089 7.07326 11.5639 6.78036 11.8568L5.15169 13.4854C4.27301 14.3641 4.27301 15.7887 5.15169 16.6674L7.90905 19.4248C8.78773 20.3035 10.2123 20.3035 11.091 19.4248L12.7197 17.7961C13.0126 17.5032 13.4875 17.5032 13.7804 17.7961C14.0733 18.089 14.0733 18.5639 13.7804 18.8568L12.1517 20.4854C10.6872 21.9499 8.31285 21.9499 6.84839 20.4854L4.09102 17.7281C2.62656 16.2636 2.62656 13.8893 4.09103 12.4248L5.7197 10.7961C6.0126 10.5032 6.48747 10.5032 6.78036 10.7961Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),xL=e=>xe.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.32635C3 5.25529 4.67893 3.57635 6.75 3.57635H7.25C9.32107 3.57635 11 5.25529 11 7.32635V7.82635C11 9.89742 9.32107 11.5764 7.25 11.5764H6.75C4.67893 11.5764 3 9.89742 3 7.82635V7.32635ZM6.75 5.07635C5.50736 5.07635 4.5 6.08371 4.5 7.32635V7.82635C4.5 9.06899 5.50736 10.0764 6.75 10.0764H7.25C8.49264 10.0764 9.5 9.06899 9.5 7.82635V7.32635C9.5 6.08371 8.49264 5.07635 7.25 5.07635H6.75ZM13 7.32635C13 5.25529 14.6789 3.57635 16.75 3.57635H17.25C19.3211 3.57635 21 5.25529 21 7.32635V7.82635C21 9.89742 19.3211 11.5764 17.25 11.5764H16.75C14.6789 11.5764 13 9.89742 13 7.82635V7.32635ZM16.75 5.07635C15.5074 5.07635 14.5 6.08371 14.5 7.32635V7.82635C14.5 9.06899 15.5074 10.0764 16.75 10.0764H17.25C18.4926 10.0764 19.5 9.06899 19.5 7.82635V7.32635C19.5 6.08371 18.4926 5.07635 17.25 5.07635H16.75ZM3 17.3264C3 15.2553 4.67893 13.5764 6.75 13.5764H7.25C9.32107 13.5764 11 15.2553 11 17.3264V17.8264C11 19.8975 9.32107 21.5764 7.25 21.5764H6.75C4.67893 21.5764 3 19.8975 3 17.8264V17.3264ZM6.75 15.0764C5.50736 15.0764 4.5 16.0838 4.5 17.3264V17.8264C4.5 19.069 5.50736 20.0764 6.75 20.0764H7.25C8.49264 20.0764 9.5 19.069 9.5 17.8264V17.3264C9.5 16.0838 8.49264 15.0764 7.25 15.0764H6.75Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 13.5764C14.1642 13.5764 14.5 13.9122 14.5 14.3264V16.0764H16.25C16.6642 16.0764 17 16.4122 17 16.8264C17 17.2406 16.6642 17.5764 16.25 17.5764H13.75C13.3358 17.5764 13 17.2406 13 16.8264V14.3264C13 13.9122 13.3358 13.5764 13.75 13.5764ZM17 14.3264C17 13.9122 17.3358 13.5764 17.75 13.5764H20.25C20.6642 13.5764 21 13.9122 21 14.3264C21 14.7406 20.6642 15.0764 20.25 15.0764H17.75C17.3358 15.0764 17 14.7406 17 14.3264ZM17 18.3264C17 17.9122 17.3358 17.5764 17.75 17.5764H20.25C20.6642 17.5764 21 17.9122 21 18.3264C21 18.7406 20.6642 19.0764 20.25 19.0764H18.5V20.8264C18.5 21.2406 18.1642 21.5764 17.75 21.5764C17.3358 21.5764 17 21.2406 17 20.8264V18.3264Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M13 20.5764C13 20.0241 13.4477 19.5764 14 19.5764C14.5523 19.5764 15 20.0241 15 20.5764C15 21.1287 14.5523 21.5764 14 21.5764C13.4477 21.5764 13 21.1287 13 20.5764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M5.5 17.0764C5.5 16.5241 5.94772 16.0764 6.5 16.0764H7.5C8.05228 16.0764 8.5 16.5241 8.5 17.0764V18.0764C8.5 18.6287 8.05228 19.0764 7.5 19.0764H6.5C5.94772 19.0764 5.5 18.6287 5.5 18.0764V17.0764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M5.5 7.07635C5.5 6.52407 5.94772 6.07635 6.5 6.07635H7.5C8.05228 6.07635 8.5 6.52407 8.5 7.07635V8.07635C8.5 8.62863 8.05228 9.07635 7.5 9.07635H6.5C5.94772 9.07635 5.5 8.62863 5.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),xe.createElement("path",{d:"M15.5 7.07635C15.5 6.52407 15.9477 6.07635 16.5 6.07635H17.5C18.0523 6.07635 18.5 6.52407 18.5 7.07635V8.07635C18.5 8.62863 18.0523 9.07635 17.5 9.07635H16.5C15.9477 9.07635 15.5 8.62863 15.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),FZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M8 6L12 2L16 6",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M12 3V13",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),xe.createElement("path",{d:"M17 10C18.1046 10 19 10.8954 19 12V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V12C5 10.8954 5.89543 10 7 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),gv=kn({key:"qrCodeLink",default:null}),wL=kn({key:"supportsUrlParameters",default:!1});bL.propTypes={location:ct.object.isRequired,buttonClassName:ct.string};function bL({location:e,buttonClassName:i}){const{t:o}=Po(),[u,d]=xe.useState(!1),_=Ci(vL),[w,a]=xe.useState(),E=Ci(wL),[j,Q]=xe.useState(!1),[q,W]=xe.useState(!1),le=Ci(Dl),[,fe]=sn(gv),we=Ja();xe.useEffect(()=>{_&&e&&a(_+"&locationId="+e.id)},[_,e]),xe.useEffect(()=>{var te;Q(!le&&E&&we);const ie=typeof((te=navigator.clipboard)==null?void 0:te.writeText)=="function";W(!le&&E&&ie)},[E,le,we]);const $e=()=>{navigator.clipboard.writeText(w),d(!1)},me=()=>{fe(w),d(!1)};return(j||q)&&Oe.jsxs("div",{className:"share-location-link",children:[Oe.jsx("button",{className:i,onClick:()=>d(ie=>!ie),title:o("Share"),"aria-label":o("Share"),children:Oe.jsx(FZ,{})}),u&&Oe.jsx(_L,{onClickAway:()=>d(!1),children:Oe.jsxs("ul",{children:[q&&Oe.jsx("li",{children:Oe.jsxs("button",{className:i,onClick:()=>$e(),children:[Oe.jsx(BZ,{}),o("Copy link")]})}),j&&Oe.jsx("li",{children:Oe.jsxs("button",{className:i,onClick:()=>me(),children:[Oe.jsx(xL,{}),o("QR Code")]})})]})})]})}const rle="",ML={email:"email",phone:"phone"};IL.propTypes={detailType:ct.string,active:ct.bool,displayText:ct.string,value:ct.string,icon:ct.string};function IL({detailType:e,active:i,displayText:o,value:u,icon:d}){if(!i||e.toLowerCase()==="openinghours")return null;const _=o!=null&&o.trim()?o:u,w=(a,E)=>{switch(a.toLowerCase()){case ML.email:return`mailto:${E}`;case ML.phone:return`tel:${E}`;default:try{return new URL(E),E}catch{return"#"}}};return Oe.jsxs("a",{className:"contact-action-button",href:w(e,u),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Oe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Oe.jsx("img",{alt:"",src:d,className:"contact-action-button__icon"})}),Oe.jsx("span",{className:"contact-action-button__text",children:_})]})}w4.propTypes={onBack:ct.func,onStartWayfinding:ct.func,onSetSize:ct.func,snapPointSwiped:ct.number,onStartDirections:ct.func,isOpen:ct.bool,snapPointSwipedByUser:ct.string};function w4({onBack:e,onStartWayfinding:i,onSetSize:o,onStartDirections:u,isOpen:d,snapPointSwipedByUser:_}){var Mt,Et,di,qt;const{t:w}=Po(),a=xe.useRef(null),E=xe.useRef(null),j=xe.useRef(null),Q=xe.useRef(null),q=xe.useRef(null),[W,le]=xe.useState(!1),[fe,we]=xe.useState(!1),[$e,me]=xe.useState(!1),ie=xe.useRef(!1),[te,oe]=xe.useState(null),be=Ci(ca),_e=Ci(wc),Je=(Mt=_e==null?void 0:_e.properties)==null?void 0:Mt.additionalDetails,nt=(Et=Je==null?void 0:Je.find(ui=>ui.key.toLowerCase().includes("openinghours")&&ui.active===!0))==null?void 0:Et.openingHours,[Ye,xt]=OZ(_e,j),dt=kf(),Pt=Ci(Sl),Tt=Ci(Dl),ci=Ci(Z3),[Ot,wt]=xe.useState(),[$t,St]=xe.useState(),[Ht,Z]=xe.useState(!0),ne=Ja(),T=Ci(Um),k=Ci(Vm),[,,F]=gL($t,Ot,ci,T,k),U=Ci(fv),G=mL(be,d),re=Ci(Rh),de=(qt=(di=re==null?void 0:re.appSettings)==null?void 0:di.excludeFromUI)==null?void 0:qt.includes("wayfindingDisabled");xe.useEffect(()=>{(()=>{if(be&&_e)try{const Wt=be.getBuilding();if(Wt&&Wt.floors){const wi=Object.keys(Wt.floors).length;Z(wi>1)}else Z(!1)}catch{Z(!0)}})()},[be,_e]),xe.useEffect(()=>()=>{oe(null),wt(),St()},[]);const ue=xe.useCallback(()=>{le(!1),we(!1),me(!1),Me(qn.FIT),e()});function Me(ui){typeof o=="function"&&o(ui)}function Fe(){W===!1?(et(),Me(qn.MAX)):(Ue(),Me(qn.FIT))}function et(){requestAnimationFrame(()=>{le(!0),Ke(),ie.current=!0})}function Ue(){le(!1),Ve(),ie.current=!1}function Ke(){const ui=requestAnimationFrame(()=>{E.current&&(we(E.current.scrollTop>0),me(E.current.scrollTop<E.current.scrollHeight-E.current.offsetHeight-1))});return()=>cancelAnimationFrame(ui)}function Ve(){we(!1),me(!1)}function mt(){le(!1),we(!1),me(!1),Me(qn.FIT),i()}function yt(){le(!1),we(!1),me(!1),Me(qn.FIT),u()}return xe.useEffect(()=>{G&&e()},[G]),xe.useEffect(()=>()=>{oe(null),wt(),St()},[]),xe.useEffect(()=>{le(!1),we(!1),me(!1),oe(null),_e&&(a.current.location=_e,oe(be.getDisplayRule(_e)),wt(_e)),Tt&&St(Tt)},[_e,be,Tt]),xe.useEffect(()=>{const ui=(Je==null?void 0:Je.length)>0;Me(_e&&d&&ui?qn.FIT:qn.MIN)},[_e,d,Je]),xe.useEffect(()=>{if(!_){ie.current=!1;return}le(_===qn.MAX),_===qn.MAX?et():Ue()},[_]),xe.useLayoutEffect(()=>{const ui=document.querySelector(".modal.modal--open");if(!ui||!(Q!=null&&Q.current)||!(E!=null&&E.current))return;const Wt=()=>{const wi=ui.offsetHeight,Ei=E.current.offsetHeight;wi>0&&Ei>0&&(Ei/wi>.9?(ui.style.height="100%",Ke()):ui.style.height="auto")};return q.current?q.current.complete?Wt():(q.current.onload=Wt,q.current.onerror=Wt):Wt(),()=>{ui.style.height="",q.current&&(q.current.onload=null,q.current.onerror=null)}},[_e,W,d,Je]),Oe.jsx("div",{className:`location-details ${ie.current===!0?"location-details--max-height":""} ${fe?"location-details--content-above":""} ${$e?"location-details--content-below":""}`,children:_e&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"location-details__header",children:[Oe.jsxs("div",{className:"location-info",children:[Oe.jsx("div",{className:"location-info__icon",children:te&&Oe.jsx("img",{alt:"",src:te.icon.src?te.icon.src:te.icon})}),Oe.jsxs("div",{className:"location-info__content",children:[Oe.jsx("div",{className:"location-info__name",children:_e.properties.name}),Oe.jsx("mi-location-info",{level:w("Level"),ref:a,"show-external-id":U,"show-floor":Ht})]}),Oe.jsxs("div",{className:"location-info__actions",children:[Oe.jsx(bL,{buttonClassName:"location-info__button",location:_e}),Oe.jsx("button",{className:"location-info__button",onClick:()=>ue(),"aria-label":w("Close"),children:Oe.jsx(Rm,{})})]})]}),!de&&(Tt&&ne?Oe.jsx("button",{disabled:!F,onClick:()=>yt(),className:`location-details__wayfinding ${F?"":"location-details--no-route"}`,style:{background:Pt},children:w(F?"Start directions":"Directions not available")}):Oe.jsx("button",{onClick:()=>mt(),style:{background:Pt},className:"location-details__wayfinding",children:w("Start wayfinding")}))]}),Oe.jsx("div",{className:"location-details__details prevent-scroll",...dt,ref:Q,children:Oe.jsxs("div",{ref:E,onScroll:ui=>Ke(),className:"location-details__details-content",children:[_e.properties.imageURL&&Oe.jsx("img",{ref:q,alt:"",src:_e.properties.imageURL,className:"location-details__image"}),Object.keys(_e.properties.categories).length>0&&Oe.jsx("p",{className:"location-details__categories",children:Object.values(_e.properties.categories).map((ui,Wt,wi)=>Oe.jsxs(Cr.Fragment,{children:[ui,Wt<wi.length-1&&Oe.jsx(Oe.Fragment,{children:"・"})]},ui))}),_e.properties.description&&Oe.jsxs("section",{className:`location-details__description ${W?"location-details__description--full":""}`,children:[Oe.jsx("div",{ref:j,children:_e.properties.description}),(Ye||xt||W)&&Oe.jsx("button",{onClick:()=>Fe(),children:w(W?"Close":"Read full description")})]}),Je&&Oe.jsxs("div",{className:"contact-action-buttons-container",children:[Je.map(ui=>Oe.jsx(IL,{detailType:ui.detailType,active:ui.active,displayText:ui.displayText,value:ui.value,icon:ui.icon},ui.key)),nt&&Oe.jsx(RZ,{openingHours:nt,onExpand:()=>Ke()})]})]})})]})})}const ole="",UZ=e=>xe.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("g",{clipPath:"url(#clip0_1663_3931)"},xe.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),xe.createElement("defs",null,xe.createElement("clipPath",{id:"clip0_1663_3931"},xe.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),TL=e=>xe.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),xe.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),VZ=e=>xe.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),xe.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),sle="";mv.propTypes={location:ct.object,locationClicked:ct.func,icon:ct.string,isHovered:ct.bool};function mv({location:e,locationClicked:i,icon:o,isHovered:u}){const{t:d}=Po(),_=xe.useRef(),w=Ci(ca),a=Ci(fv);return xe.useEffect(()=>{var W;const E=le=>i(le.detail),j=()=>{var le;((le=e.properties.locationSettings)==null?void 0:le.selectable)!==!1&&w.hoverLocation(e)},Q=()=>{var le;(le=e.properties.locationSettings)!=null&&le.selectable||w.unhoverLocation(e)};((W=e.properties.locationSettings)==null?void 0:W.selectable)===!1&&_.current.classList.add("non-selectable");const{current:q}=_;return q.location=e,q.icon=o||w.getDisplayRule(e).icon,q.addEventListener("locationClicked",E),q.addEventListener("mouseover",j),q.addEventListener("mouseout",Q),u?_.current.classList.add("hovered"):_.current.classList.remove("hovered"),()=>{q.removeEventListener("locationClicked",E),q.removeEventListener("mouseover",j),q.removeEventListener("mouseout",Q)}},[e,i,u]),Oe.jsx("mi-list-item-location",{level:d("Level"),ref:_,"show-external-id":a})}const QZ=()=>{const[e,i]=xe.useState(),o=Ci(ca),u=Ci(sv);return xe.useEffect(()=>{function d(){const _=o.getMapView().getCenter();i(_.lat+","+_.lng)}return o&&u?(o.getMapView().addListener("idle",d),d()):o&&o.getMapView().removeListener("idle",d),()=>{o&&o.getMapView().removeListener("idle",d)}},[o,u]),e},b4=kn({key:"searchInput",default:void 0}),yv=xe.forwardRef(function(i,o){const{placeholder:u,mapsindoors:d,results:_,clicked:w,cleared:a,changed:E,category:j,google:Q,mapbox:q,disabled:W=!1}=i,le=xe.useRef(),fe=Ci(X_),we=Ci(Vh),[,$e]=sn(b4),me=sessionStorage.getItem("mapboxPlacesSessionToken"),ie={longitude:fe==null?void 0:fe.coords.longitude,latitude:fe==null?void 0:fe.coords.latitude},te=QZ(),oe=Ci(Mu),be=Ci(pv);return xe.useImperativeHandle(o,()=>({triggerSearch(){le.current.triggerSearch()},getValue(){return le.current.value},setDisplayText(_e){le.current.setDisplayText(_e)},focusInput(){le.current.focusInput()},clear(){le.current.clear()},getInputField(){return le.current.getInputField().then(_e=>$e(_e))}})),xe.useEffect(()=>{const{current:_e}=le;_e.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{_e.triggerSearch()})},[we]),xe.useEffect(()=>{const _e=Ye=>_(Ye.detail),Je=()=>a(),{current:nt}=le;return d===!0&&(nt.mapsindoors="true"),nt.addEventListener("results",_e),nt.addEventListener("click",w),nt.addEventListener("cleared",Je),nt.addEventListener("changed",E),()=>{nt.removeEventListener("results",_e),nt.removeEventListener("click",w),nt.removeEventListener("cleared",Je),nt.removeEventListener("changed",E)}},[u,d,_,w,a,Q,q,E]),Oe.jsx("mi-search",{ref:le,"id-attribute":"search",placeholder:u,"session-token":me,"user-position":ie.latitude!==void 0&&ie.longitude!==void 0?Object.values(ie).join(","):null,"mi-near":te,"mi-categories":j,disabled:W,mapbox:q,google:Q,"mi-venue":be?void 0:oe,language:we})});yv.propTypes={placeholder:ct.string,mapsindoors:ct.bool,results:ct.func,clicked:ct.func,cleared:ct.func,changed:ct.func,category:ct.string,preventFocus:ct.bool,google:ct.bool,mapbox:ct.bool,disabled:ct.bool};function M4(e){const i={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:i,properties:{name:lN("My position"),anchor:i},type:"Feature"}}let I4;function HZ(e){return new Promise((i,o)=>{I4||(I4=new window.google.maps.Geocoder),I4.geocode({placeId:e.properties.placeId},u=>{u.length>0?(e.geometry={type:"Point",coordinates:[u[0].geometry.location.lng(),u[0].geometry.location.lat()]},i(e)):o()})})}const $Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",DL=e=>xe.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),SL=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("g",{clipPath:"url(#clip0_1697_57490)"},xe.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),xe.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),xe.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),xe.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),xe.createElement("defs",null,xe.createElement("clipPath",{id:"clip0_1697_57490"},xe.createElement("rect",{width:20,height:20,fill:"white"})))),YZ=e=>xe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("g",{clipPath:"url(#clip0_3407_1703)"},xe.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),xe.createElement("defs",null,xe.createElement("clipPath",{id:"clip0_3407_1703"},xe.createElement("rect",{width:20,height:20,fill:"white"}))));AL.propTypes={selectionChanged:ct.func,children:ct.node};function AL({selectionChanged:e,children:i}){const o=xe.useRef();return xe.useEffect(()=>{const u=_=>e(_.detail),{current:d}=o;return d.addEventListener("change",u),()=>d.removeEventListener("change",u)},[e]),Oe.jsx("mi-dropdown",{ref:o,children:i})}function GZ(e,i){const o=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((u,d)=>{const _=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${o}&access_token=${i}`;fetch(_).then(w=>w.status!==200?d():w.json()).then(w=>{e.geometry={type:"Point",coordinates:[w.features[0].geometry.coordinates[0],w.features[0].geometry.coordinates[1]]},u(e)}).catch(()=>{d()})})}const ZZ=R_({key:"unitSystem",get:({get:e})=>e(Vh)==="en-US"?"imperial":"metric"}),ale="";T4.propTypes={onAccessibilityChanged:ct.func};function T4({onAccessibilityChanged:e}){const i=Ci(Sl),[o,u]=sn(Vm);function d(_){u(_.target.checked),e&&e()}return Oe.jsxs("div",{className:"accessibility",children:[Oe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:_=>d(_),style:{backgroundColor:o?i:""}}),Oe.jsx("div",{children:lN("Avoid stairs and escalators")})]})}const lle="";function WZ(){var w,a;const{t:e}=Po(),i=Ci(Sl),o=Ci(Rh),[u,d]=sn(pL);function _(E){d(E.target.checked)}return Oe.jsxs("div",{className:"shuttle-bus",children:[Oe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:u,onChange:E=>_(E),"aria-label":((w=o==null?void 0:o.appSettings)==null?void 0:w.includeTransitSelectionDescription)||e("Include bus transportation"),style:{backgroundColor:u?i:""}}),Oe.jsx("div",{children:((a=o==null?void 0:o.appSettings)==null?void 0:a.includeTransitSelectionDescription)||"Include bus transportation"})]})}const CL=kn({key:"wayfindingLocation",default:null}),Co={TO:"TO",FROM:"FROM"},qZ="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";D4.propTypes={onStartDirections:ct.func.isRequired,onBack:ct.func.isRequired,directionsToLocation:ct.object,directionsFromLocation:ct.object,onSetSize:ct.func,isActive:ct.bool};function D4({onStartDirections:e,onBack:i,directionsToLocation:o,directionsFromLocation:u,onSetSize:d,isActive:_}){var Ei,jt;const{t:w}=Po(),a=xe.useRef(),E=xe.useRef(),j=xe.useRef(),Q=xe.useRef(),q=Ci(Z3),W=Ci(X_),le=Ci(wc),fe=Ci(J_),we=Ci(Sl),[$e,me]=sn(CL),[ie,te]=xe.useState(),[,oe]=sn(dv),[be,_e]=xe.useState(!0),[Je,nt]=xe.useState(!1),[Ye,xt]=xe.useState([]),[dt,Pt]=xe.useState(),[Tt,ci]=xe.useState(),Ot=Ci(Vm),wt=kf(),[$t,St]=xe.useState(!1),[Ht,Z]=sn(Um),[ne,T]=xe.useState(!1),k=Ci(ev),F=Ci(ZZ),[U,G,re,de]=gL(Tt,dt,q,Ht,Ot),ue=Ci(x4),Me=Ci(Rh);function Fe(kt){return fe===us.Google&&kt.properties.type==="google_places"?HZ(kt):fe===us.Mapbox&&kt.properties.type==="mapbox_places"?GZ(kt,k):Promise.resolve(kt)}function et(kt){ie===Co.TO?Fe(kt).then(Pi=>{Pt(Pi),j.current.setDisplayText(Pi.properties.name)},()=>oe(!1)):ie===Co.FROM&&Fe(kt).then(Pi=>{ci(Pi),Q.current.setDisplayText(Pi.properties.name)},()=>oe(!1)),St(!1),nt(!1),xt([]),T(!1)}function Ue(kt,Pi){if(te(Pi),oe(!0),kt.length===0)_e(!1),St(!1),xt([]);else{_e(!0),xt(kt);const Ai=kt.filter($i=>$i.properties.type==="google_places").length>0;St(Ai),Ke(qn.MAX)}}function Ke(kt){typeof d=="function"&&d(kt)}function Ve(){const kt=M4(W);ie===Co.TO?(j.current.setDisplayText(kt.properties.name),Pt(kt)):ie===Co.FROM&&(Q.current.setDisplayText(kt.properties.name),ci(kt)),xt([]),oe(!0),_e(!0),St(!1),nt(!1),T(!1)}function mt(kt){(Tt==null?void 0:Tt.id)==="USER_POSITION"&&kt===Co.TO||(dt==null?void 0:dt.id)==="USER_POSITION"&&kt===Co.FROM?T(!1):T(!0)}function yt(kt){mt(kt)}function Mt(kt){te(kt),qt(kt),oe(!0),St(!1),mt(kt)}function Et(kt){T(!0),te(kt),di(kt),xt([]),oe(!0),St(!1),_e(!0)}function di(kt){kt===Co.TO?Pt():kt===Co.FROM&&ci()}function qt(kt){kt===Co.TO?(xt([]),j.current.getValue()&&(nt(!0),j.current.triggerSearch())):kt===Co.FROM&&(xt([]),Q.current.getValue()&&(nt(!0),Q.current.triggerSearch()))}function ui(){(dt||Tt)&&(Tt?j.current.setDisplayText(Tt.properties.name):j.current.clear(),dt?Q.current.setDisplayText(dt.properties.name):Q.current.clear(),Pt(Tt),ci(dt))}function Wt(){ci(),Q.current.setDisplayText(""),i()}function wi(){xt([]),nt(!1),St(!1),T(!1)}return xe.useEffect(()=>()=>{xt([]),Pt(),ci()},[]),xe.useEffect(()=>{if($e){if(ie===Co.FROM)Q.current.setDisplayText($e.properties.name),ci($e);else if(ie===Co.TO)j.current.setDisplayText($e.properties.name),Pt($e);else return;wi(),me(null)}},[$e]),xe.useEffect(()=>{var Pi;Ke(qn.FIT);let kt=!1;if((u==null?void 0:u.id)==="USER_POSITION"&&(o==null?void 0:o.id)==="USER_POSITION"&&(o=void 0),o!=null&&o.properties&&!le&&(j.current.setDisplayText(o.properties.name),Pt(o)),u!=null&&u.properties?Tt||(Q.current.setDisplayText(u.properties.name),ci(u),kt=!0):te(Co.FROM),_&&!((Pi=Q.current)!=null&&Pi.getValue())&&W&&!Tt&&(o==null?void 0:o.id)!=="USER_POSITION"&&!kt){const Ai=M4(W);Q.current.setDisplayText(Ai.properties.name),ci(Ai),oe(!0),_e(!0),xt([])}},[_,o,u]),xe.useEffect(()=>{fe===us.Mapbox&&(St(!1),xt(Ye.filter(kt=>kt.properties.type!=="google_places")))},[fe]),xe.useEffect(()=>{le&&(Pt(le),j.current.setDisplayText(le.properties.name))},[le]),Oe.jsxs("div",{className:"wayfinding",ref:a,children:[Oe.jsxs("div",{className:"wayfinding__directions",children:[Oe.jsx("div",{className:"wayfinding__title",children:w("Directions")}),Oe.jsx("button",{className:"wayfinding__close",onClick:()=>Wt(),"aria-label":"Close",children:Oe.jsx(Rm,{})}),Oe.jsxs("div",{className:"wayfinding__locations",children:[Oe.jsxs("label",{className:"wayfinding__label",children:[Oe.jsx("span",{children:w("Choose departure")}),Oe.jsx(yv,{ref:Q,mapsindoors:!0,google:fe===us.Google&&ue,mapbox:fe===us.Mapbox&&ue,placeholder:w("Choose departure"),results:kt=>Ue(kt,Co.FROM),clicked:()=>Mt(Co.FROM),cleared:()=>Et(Co.FROM),changed:()=>yt(Co.FROM)})]}),Oe.jsx("button",{onClick:()=>ui(),"aria-label":w("Switch"),className:"wayfinding__switch",children:Oe.jsx(VZ,{})}),Oe.jsxs("label",{className:"wayfinding__label",children:[Oe.jsx("span",{children:w("Choose destination")}),Oe.jsx(yv,{ref:j,mapsindoors:!0,google:fe===us.Google&&ue,mapbox:fe===us.Mapbox&&ue,placeholder:w("Choose destination"),results:kt=>Ue(kt,Co.TO),clicked:()=>Mt(Co.TO),cleared:()=>Et(Co.TO),changed:()=>yt(Co.TO)})]})]})]}),!re&&Oe.jsx("p",{className:"wayfinding__error",children:w("No route found")}),!be&&!ne&&Oe.jsx("p",{className:"wayfinding__error",children:w("Nothing was found")}),W&&ne&&Oe.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Ve(),children:[Oe.jsx(YZ,{}),w("My position")]}),Ye.length>0&&Oe.jsx("div",{className:"wayfinding__scrollable",...wt,children:Oe.jsxs("div",{className:"wayfinding__results",children:[Ye.map(kt=>Oe.jsx(mv,{icon:kt.properties.type==="google_places"||kt.properties.type==="mapbox_places"?qZ:void 0,location:kt,locationClicked:Pi=>et(Pi)},kt.id)),$t&&Oe.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:$Z})]})}),!Je&&!ne&&re&&!$t&&Tt&&dt&&Oe.jsxs("div",{className:"wayfinding__details",ref:E,children:[Oe.jsxs("div",{className:"wayfinding__settings",children:[Oe.jsxs("div",{className:"wayfinding__toggles",children:[Oe.jsx(T4,{}),((Ei=Me==null?void 0:Me.appSettings)==null?void 0:Ei.includeTransitSelection)==="true"&&Oe.jsx(WZ,{})]}),Oe.jsx("div",{className:"wayfinding__travel",children:((jt=Me==null?void 0:Me.appSettings)==null?void 0:jt.includeTravelModeSelection)!=="false"&&Oe.jsxs(AL,{selectionChanged:kt=>Z(kt[0].value),children:[Oe.jsxs("mi-dropdown-item",{selected:!0,value:Uh.WALKING,children:[Oe.jsx(TL,{}),w("Walk")]}),Oe.jsxs("mi-dropdown-item",{value:Uh.DRIVING,children:[Oe.jsx(DL,{}),w("Drive")]}),Oe.jsxs("mi-dropdown-item",{value:Uh.BICYCLING,children:[Oe.jsx(SL,{}),w("Bike")]})]})})]}),Oe.jsx("hr",{}),Oe.jsxs("div",{className:"wayfinding__info",children:[Oe.jsxs("div",{className:"wayfinding__distance",children:[Ht===Uh.WALKING&&Oe.jsx(TL,{}),Ht===Uh.DRIVING&&Oe.jsx(DL,{}),Ht===Uh.BICYCLING&&Oe.jsx(SL,{}),Oe.jsxs("div",{children:[w("Distance"),":"]}),Oe.jsx("div",{className:"wayfinding__meters",children:U&&de&&Oe.jsx("mi-distance",{unit:F,meters:U})})]}),Oe.jsxs("div",{className:"wayfinding__time",children:[Oe.jsx(UZ,{}),Oe.jsxs("div",{children:[w("Estimated time"),":"]}),Oe.jsx("div",{className:"wayfinding__minutes",children:G&&de&&Oe.jsx("mi-time",{translations:JSON.stringify({days:w("d"),hours:w("h"),minutes:w("min")}),seconds:G})})]})]}),Oe.jsx("button",{className:"wayfinding__button",style:{background:we},onClick:()=>e(),disabled:!de,children:w("Go!")})]})]})}const cle="",ule="",KZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),XZ=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_v=kn({key:"activeStep",default:0}),vv=kn({key:"substepsToggled",default:!1}),JZ=kn({key:"triggerSubsteps",default:!1}),EL=xe.forwardRef(function(i,o){var we;const{totalSteps:u,activeStep:d,previous:_,originLocation:w,directions:a}=i,E=xe.useRef(),{t:j}=Po(),[Q,q]=sn(vv),[,W]=sn(JZ),le=Tu();xe.useImperativeHandle(o,()=>({openSubsteps(){E.current.openSubsteps()},closeSubsteps(){E.current.closeSubsteps()}}));const fe={walk:j("Walk"),bike:j("Bike"),transit:j("Transit"),drive:j("Drive"),destination:j("You have arrived"),leave:j("Leave"),from:j("From"),park:j("Park"),at:j("at"),building:j("Building"),venue:j("Venue"),takeStaircaseToLevel:j("Take staircase to level"),takeLadderToLevel:j("Take the ladder to level"),takeElevatorToLevel:j("Take elevator to level"),takeEscalatorToLevel:j("Take escalator to level"),takeWheelchairLiftToLevel:j("Take wheelchair lift to level"),takeWheelchairRampToLevel:j("Take wheelchair ramp to level"),exit:j("Exit"),enter:j("Enter"),stops:j("stops"),andContinue:j("and continue"),continueStraightAhead:j("Continue straight ahead"),goLeft:j("Go left"),goSharpLeft:j("Go sharp left"),goSlightLeft:j("Go slight left"),goRight:j("Go right"),goSharpRight:j("Go sharp right"),goSlightRight:j("Go slight right"),turnAround:j("Turn around"),days:j("d"),hours:j("h"),minutes:j("min"),rideTheBus:j("Ride the bus")};return xe.useEffect(()=>{const{current:$e}=E;function me(){W(!0),q(!Q)}return $e.addEventListener("substepsToggled",me),()=>{$e.removeEventListener("substepsToggled",me)}},[Q]),Oe.jsx("mi-route-instructions-step",{ref:E,"show-toggle-button":!le,step:JSON.stringify(u[d]),translations:JSON.stringify(fe),"destination-location":a==null?void 0:a.destinationLocation.properties.name,"from-travel-mode":(_==null?void 0:_.travel_mode)??"","from-route-context":(_==null?void 0:_.route_context)??((we=w==null?void 0:w.properties)==null?void 0:we.name)??""})});EL.propTypes={totalSteps:ct.array,activeStep:ct.number,previous:ct.object,originLocation:ct.object,directions:ct.object};const NL=kn({key:"isDestinationStep",default:!1});LL.propTypes={steps:ct.array,onNextStep:ct.func,onPreviousStep:ct.func,originLocation:ct.object,isOpen:ct.bool};function LL({steps:e,onNextStep:i,onPreviousStep:o,originLocation:u,isOpen:d}){const{t:_}=Po(),w=kf(),a=xe.useRef(),[E,j]=xe.useState(),[Q,q]=sn(_v),[W,le]=xe.useState(),fe=Ci(Fm),we=Ci(vv),[,$e]=sn(NL),me=Tu();xe.useEffect(()=>{le(e)},[e]),xe.useEffect(()=>{var oe,be;d&&(Q===(W==null?void 0:W.length)-1&&(fe!=null&&fe.destinationLocation)?$e(!0):$e(!1),we===!1?(oe=a.current)==null||oe.closeSubsteps():we===!0&&((be=a.current)==null||be.openSubsteps()))},[d,Q,W,we]);function ie(){j(W[Q]),q(Q+1),i()}function te(){j(W[Q-2]),q(Q-1),o()}return Oe.jsx("div",{className:"route-instructions prevent-scroll",...w,children:W&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(EL,{totalSteps:W,activeStep:Q,previous:E,directions:fe,originLocation:u,ref:a}),Oe.jsx("div",{className:`route-instructions__footer ${me?"route-instructions__footer--kiosk":""}`,children:Oe.jsxs("div",{className:"route-instructions__actions",children:[Oe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>te(),"aria-label":_("Previous"),disabled:Q===0,children:Oe.jsx(XZ,{})}),Oe.jsx("div",{className:"route-instructions__overview",children:_("StepYofX",{activeStep:Q+1,totalSteps:W.length})}),Oe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>ie(),"aria-label":_("Next"),disabled:Q===W.length-1,children:Oe.jsx(KZ,{})})]})})]})})}const zL=Object.freeze({minZoom:10});let ws;S4.propTypes={isOpen:ct.bool,onBack:ct.func,onSetSize:ct.func,onRouteFinished:ct.func,snapPointSwipedByUser:ct.string};function S4({isOpen:e,onBack:i,onSetSize:o,onRouteFinished:u,snapPointSwipedByUser:d}){const{t:_}=Po(),w=xe.useRef(),[a,E]=xe.useState(null),j=xe.useRef(null),[Q,q]=xe.useState(),W=Ci(ca),le=Ci(Um),fe=Ci(Fm),[,we]=sn(_v),[$e,me]=sn(vv),ie=Ci(Dl),te=Ja(),[,oe]=sn(gv),be=Ci(NL),_e=Ci(Sl),Je=Tu(),nt=Ci(fv),Ye=Ci(vL),xt=Ci(wc),dt=Ci(J_);xe.useEffect(()=>()=>{E(null)},[]),xe.useEffect(()=>{if(E(null),e&&fe){q(fe.totalTime);const k=Math.min(window.innerHeight,window.innerWidth)*.06;ws==null||ws.setRoute(null),ws=null,Promise.all([Pt(k),Tt(k)]).then(([F,U])=>{ws=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:W,fitBounds:!Je,fitBoundsPadding:Je?void 0:{top:k,bottom:F,left:U,right:k}}),ws.setRoute(fe.directionsResult).then(()=>{ws.setStepIndex(0)}),j.current.location=fe.destinationLocation,fe.destinationLocation.id==="USER_POSITION"?E(null):E(W.getDisplayRule(fe.destinationLocation)),Ht(null)})}},[e,fe,W,le]);function Pt(k){return new Promise(F=>{if(te)ie?rv().then(U=>F(U)):F(k);else return Af().then(U=>F(U))})}function Tt(k){return new Promise(F=>{te?ie?F(k):Ph().then(U=>F(U)):F(k)})}xe.useEffect(()=>{!e&&ws&&($t(),Ht(zL.minZoom))},[e]);function ci(){return fe?fe.directionsResult.legs.reduce((k,F)=>{for(const U in F.steps){const G=F.steps[U];k.push(G)}return k},[]):[]}function Ot(){ws&&ws.nextStep()}function wt(){ws&&ws.previousStep()}function $t(){ws==null||ws.setRoute(null),ws=null}function St(){we(0),me(!1),ne(qn.FIT)}function Ht(k){dt==="mapbox"?W.getMapView().getMap().setMinZoom(k):dt==="google"&&W.getMapView().getMap().setOptions({minZoom:k})}function Z(){St(),$t(),i()}function ne(k){typeof o=="function"&&o(k)}function T(){const k=`${Ye}&directionsFrom=${ie.id}&directionsTo=${xt.id}`;oe(k)}return xe.useEffect(()=>(w.current=requestAnimationFrame(()=>{ne($e?qn.MAX:qn.FIT)}),()=>{w.current&&cancelAnimationFrame(w.current)}),[$e]),xe.useEffect(()=>{e&&d&&me(d===qn.MAX)},[e,d]),Oe.jsxs("div",{className:"directions",style:{display:Je?"block":"grid"},children:[Oe.jsxs("div",{className:"directions__steps",children:[Oe.jsx("div",{className:"directions__minutes",children:Q&&Oe.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:Q})}),Oe.jsx(LL,{steps:ci(),originLocation:fe==null?void 0:fe.originLocation,onNextStep:()=>Ot(),isOpen:e,onPreviousStep:()=>wt()})]}),Je&&Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("hr",{}),Oe.jsxs("div",{className:"directions__kiosk",children:[Oe.jsx(T4,{onAccessibilityChanged:()=>St()}),Oe.jsxs("button",{className:"directions__qr-code",onClick:()=>T(),"aria-label":_("Scan QR code to view route on phone"),children:[Oe.jsx(xL,{}),_("Scan QR code")]})]})]}),Oe.jsxs("div",{className:"directions__actions",children:[Oe.jsx("div",{className:"directions__details",children:(fe==null?void 0:fe.destinationLocation)&&Oe.jsxs("div",{className:"directions__info",children:[a&&fe.destinationLocation.id!=="USER_POSITION"&&Oe.jsx("div",{className:"directions__icon",children:Oe.jsx("img",{alt:"",src:a.icon.src?a.icon.src:a.icon})}),Oe.jsxs("div",{className:"directions__content",children:[Oe.jsx("div",{className:"directions__name",children:fe==null?void 0:fe.destinationLocation.properties.name}),Oe.jsx("mi-location-info",{ref:j,"show-external-id":nt})]})]})}),be?Oe.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:_e},children:_("Finish route")}):Oe.jsx("button",{className:"directions__cancel",onClick:()=>Z(),children:_("Cancel route")})]})]})}const hle="",OL=kn({key:"useKeyboard",default:!1}),kL=xe.forwardRef(function(i,o){const{searchInputElement:u}=i,d=xe.useRef(),_=Ci(Vh);return xe.useImperativeHandle(o,()=>({clearInputField(){d.current.clearInputField()}})),xe.useEffect(()=>{const{current:w}=d;u&&(w.inputElement=u)},[u]),Oe.jsx("mi-keyboard",{language:_,ref:d})});kL.propTypes={searchInputElement:ct.instanceOf(HTMLInputElement)};const xv=kn({key:"searchResults",default:[]}),A4=kn({key:"selectedCategory",default:void 0}),dle="";function eW(){return new Promise(e=>{const i=document.querySelector(".chip--active");if(i)e(i);else{const o=new MutationObserver(()=>{const u=document.querySelector(".chip--active");u&&(o.disconnect(),e(u))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const tW=kn({key:"isBottomSheetLoaded",default:!1}),jL=kn({key:"category",default:void 0}),PL=e=>xe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),iW=e=>xe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));C4.propTypes={onSetSize:ct.func,getFilteredLocations:ct.func,searchFieldRef:ct.object,isOpen:ct.bool,topLevelCategory:ct.bool,handleBack:ct.func,selectedCategoriesArray:ct.object,categoryOrientation:ct.oneOf(["horizontal","vertical"])};function C4({onSetSize:e,getFilteredLocations:i,searchFieldRef:o,isOpen:u,topLevelCategory:d,handleBack:_,selectedCategoriesArray:w,categoryOrientation:a}){const E=Ci(Om),j=Ja(),[Q,q]=sn(A4),[,W]=sn(xv),[,le]=sn(tv),fe=kf(),[we,$e]=xe.useState(),me=Ci(tW),ie=Ci(jL),te=Ci(ca),oe=mL(te,u),[be,_e]=xe.useState([]),[Je,nt]=xe.useState([]),{t:Ye}=Po(),xt=Tu(),dt=xe.useRef(null),[Pt,Tt]=xe.useState(!1),[ci,Ot]=xe.useState(!1),wt=k=>{Ht&&dt.current&&dt.current.scrollBy({left:k==="left"?-200:200,behavior:"smooth"})},$t=()=>{if(dt.current){const{scrollLeft:k,scrollWidth:F,clientWidth:U}=dt.current,G=k<=0,re=k>=F-U-1;Tt(!G),Ot(!re)}},St=!d&&be.length===0,Ht=xt&&a==="horizontal"&&!St;xe.useEffect(()=>{if(!Ht)return;const k=dt.current;if(k)return $t(),k.addEventListener("scroll",$t),()=>{k.removeEventListener("scroll",$t)}},[Ht,be.length]);const Z=`categories prevent-scroll${xt?` categories--kiosk-${a||"vertical"}`:""}`;function ne(k){typeof e=="function"&&e(k)}function T(k){q(k),Q===k?(W([]),q(null),le([]),o.current.getValue()&&o.current.triggerSearch()):o.current.getValue()?o.current.triggerSearch():i(k)}return xe.useEffect(()=>{var k;oe&&Q&&(q(null),W([]),le([]),(k=o.current)!=null&&k.getValue()&&o.current.clear())},[oe]),xe.useEffect(()=>{Q&&(eW().then(k=>$e(k)),ne(qn.MAX))},[Q]),xe.useEffect(()=>{we&&ie!==void 0&&(j||!j&&me)&&we.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[we,ie,me]),xe.useEffect(()=>{var U,G,re;let k=[];if(d){const de=E.flatMap(([,ue])=>ue.childKeys||[]);k=E.filter(([ue])=>!de.includes(ue))}else if(Q){const de=(U=E.find(([Me])=>Me===Q))==null?void 0:U[1],ue=(de==null?void 0:de.childKeys)||[];k=E.filter(([Me])=>ue.includes(Me))}_e(k);const F=(re=(G=E.find(([de])=>de===Q))==null?void 0:G[1])==null?void 0:re.displayName;nt(F)},[E]),Oe.jsx("div",{className:Z,...fe,children:E.length>0&&Oe.jsxs(Oe.Fragment,{children:[!d&&Oe.jsxs("div",{className:"categories__nav",children:[Oe.jsx("button",{"aria-label":Ye("Back"),type:"button",className:"categories__nav-button",onClick:_,children:Oe.jsx(PL,{})}),Oe.jsx("div",{children:Je})]}),Oe.jsxs("div",{className:"categories__row",children:[Ht&&Oe.jsx("div",{className:"categories__chevron categories__chevron--left",children:Oe.jsx("button",{"aria-label":Ye("Previous categories"),type:"button",disabled:!Pt,onClick:()=>wt("left"),children:Oe.jsx(PL,{})})}),Oe.jsx("div",{className:"categories__list",ref:xt?dt:void 0,children:be.map(([k,F])=>!d&&w.current.length!==1?null:Oe.jsx("div",{className:"categories__category",children:Oe.jsxs("button",{onClick:()=>d?T(k):i(k),children:[Oe.jsx("img",{src:F.iconUrl,alt:""}),F.displayName]})},k))}),Ht&&Oe.jsx("div",{className:"categories__chevron categories__chevron--right",children:Oe.jsx("button",{"aria-label":Ye("Next categories"),type:"button",disabled:!ci,onClick:()=>wt("right"),children:Oe.jsx(iW,{})})})]})]})})}const nW=e=>xe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},xe.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),xe.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),wv=kn({key:"isLegendDialogVisible",default:!1}),RL=R_({key:"legendFields",get:({get:e})=>{const i=e(Dl);if(!(i!=null&&i.properties.fields))return;const o=[];for(const d of Object.keys(i.properties.fields)){const _=parseInt(d.charAt(0));if(!Number.isInteger(_))continue;const w=o.find(j=>j.index===_),a=d.toLowerCase().includes("legendheading"),E=d.toLowerCase().includes("legendcontent");if(w)a?w.heading=i.properties.fields[d].value:E&&(w.content=i.properties.fields[d].value);else{const j={index:_,heading:a?i.properties.fields[d].value:null,content:E?i.properties.fields[d].value:null};o.push(j)}}return o.sort((d,_)=>d.index-_.index)}}),E4=kn({key:"initialVenueName",default:null});N4.propTypes={categories:ct.array,onSetSize:ct.func,isOpen:ct.bool};function N4({onSetSize:e,isOpen:i}){const o=Ci(Rh),{t:u}=Po(),d=xe.useRef(),_=xe.useRef(),w=xe.useRef(),a=xe.useRef(),E=xe.useRef(),j=100,[Q,q]=sn(xv),W=Ci(Om),le=Ci(OL),[fe,we]=xe.useState(!1),[$e,me]=sn(A4),ie=kf(),[te,oe]=xe.useState(),be=Ci(ca),[,_e]=sn(tv),[,Je]=sn(wc),[,nt]=sn(hv),[Ye,xt]=sn(Mu),dt=Ci(Vh),Pt=Ja(),Tt=Ci(Dl),[ci,Ot]=xe.useState(!1),wt=Ci(b4),$t=Tu(),[,St]=sn(wv),[Ht,Z]=xe.useState(!1),ne=Ci(RL),T=Ci(pv),k=Ci(km),F=Ci(E4),[U,G]=xe.useState(!1),re=xe.useRef([]),[de,ue]=xe.useState([]),[Me,Fe]=xe.useState(!1);function et(){var jt,kt,Pi;re.current.length===1?(me(null),q([]),_e([]),Ke(qn.FIT),G(!0),((kt=(jt=a.current)==null?void 0:jt.getValue())==null?void 0:kt.trim())?a.current.triggerSearch():(Pi=a.current)==null||Pi.clear(),re.current.pop()):(re.current.pop(),me(re.current[0]))}function Ue(jt){var kt;re.current.includes(jt)||re.current.push(jt),$e&&(me([]),q([]),_e([])),me(jt),window.mapsindoors.services.LocationsService.getLocations({categories:jt,venue:T||(kt=k.find(Pi=>Pi.name.toLowerCase()===Ye.toLowerCase()))==null?void 0:kt.name}).then(Pi=>mt(Pi,!0))}function Ke(jt){typeof e=="function"&&e(jt)}function Ve(jt){return $e?[...jt].sort((kt,Pi)=>{var Ai,$i;return(((Ai=kt.properties)==null?void 0:Ai.name)||"").localeCompare((($i=Pi.properties)==null?void 0:$i.name)||"",void 0,{numeric:!0})}):jt}function mt(jt,kt=!1){var Ai;const Pi=jt.slice(0,j);Ke(qn.MAX),q(Pi),_e(Pi),we(Pi.length===0),jt&&kt&&yt(jt),$t&&((Ai=d.current)==null||Ai.addEventListener("transitionend",()=>{var $i;($i=_==null?void 0:_.current)==null||$i.updateScrollButtons()},{once:!0}))}function yt(jt){if(!be.goTo)return;const kt=be.getFloor(),Pi={type:"FeatureCollection",features:jt.filter(Ai=>parseInt(Ai.properties.floor,10)===parseInt(kt,10)).filter(Ai=>Ai.properties.venueId.toLowerCase()===Ye.toLowerCase()).map(Ai=>({type:"Feature",geometry:Ai.geometry,properties:Ai.properties}))};Pi.features.length>0&&Promise.all([ui(),Wt()]).then(([Ai,$i])=>{be.goTo(Pi,{maxZoom:22,padding:{bottom:Ai,left:$i,top:0,right:0}})})}function Mt(){q([]),we(!1),$e&&Ue($e),_e([]),jr(E.current)||E.current.clearInputField()}function Et(){a.current.getInputField();const jt=d.current.closest(".sheet");jt?jt.addEventListener("transitionend",()=>{a.current.focusInput(),G(!0)},{once:!0}):(a.current.focusInput(),G(!0))}function di(jt){oe(jt)}function qt(jt){Je(jt),jt.properties.venueId.toLowerCase()!==Ye.toLowerCase()&&(xt(jt.properties.venueId),nt(!0));const kt=be.getFloor(),Pi=jt.properties.floor;Pi!==kt&&be.setFloor(Pi),Promise.all([ui(),Wt()]).then(([Ai,$i])=>{be.goTo(jt,{maxZoom:22,padding:{bottom:Ai,left:$i,top:0,right:0}})})}function ui(){return new Promise(jt=>{Pt?Tt?rv().then(kt=>jt(kt)):jt(0):jt(200)})}function Wt(){return new Promise(jt=>{Pt?Tt?jt(0):Ph().then(kt=>jt(kt)):jt(0)})}function wi(){if(Q.length>0){let jt;return Pt?jt=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":jt="100%",{display:"flex",flexDirection:"column",maxHeight:jt,overflow:"hidden"}}}function Ei(){return $t&&Me}return xe.useEffect(()=>{const jt=[".search__info",".search__back-button",".categories",".sheet__content"],kt=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],Pi=Ai=>{const $i=jt.some(tn=>Ai.target.closest(tn)),xn=kt.some(tn=>Ai.target.closest(tn)),fn=Ai.target.closest(".search__results");$i?(Ke(qn.MAX),w.current=requestAnimationFrame(()=>{G(!0)})):!fn&&!xn&&(G(!1),Ke(qn.MIN),me(null),q([]),_e([]),re.current=[])};return i?w.current=requestAnimationFrame(()=>{document.addEventListener("click",Pi)}):document.removeEventListener("click",Pi),()=>{document.removeEventListener("click",Pi),w.current&&cancelAnimationFrame(w.current)}},[i]),xe.useEffect(()=>()=>{oe()},[]),xe.useEffect(()=>{i&&!$e&&(q([]),_e([]),we(!1),re.current=[])},[i,$e]),xe.useEffect(()=>{$e&&Ye!==F&&(q([]),me(null))},[Ye]),xe.useEffect(()=>{$e&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{a.current.triggerSearch()})},[dt]),xe.useEffect(()=>(be==null||be.on("mouseenter",di),()=>{be==null||be.off("mouseenter",di)}),[be]),xe.useEffect(()=>{if(i&&$t&&Q.length>0){const jt=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=jt}},[Q,i]),xe.useEffect(()=>{if(le){const jt=kt=>{kt.target.closest("mi-keyboard")||kt.target.tagName.toUpperCase()==="MI-SEARCH"||kt.target.tagName.toUpperCase()==="INPUT"?Ot(!0):Ot(!1)};return window.addEventListener("click",jt,!1),()=>{window.removeEventListener("click",jt,!1)}}},[le]),xe.useEffect(()=>{$e&&Ue($e)},[$e]),xe.useEffect(()=>{Tt&&Z(ne.length>0)},[Tt]),xe.useEffect(()=>{var kt,Pi;const jt=((Pi=(kt=W.find(([Ai])=>Ai===$e))==null?void 0:kt[1])==null?void 0:Pi.childKeys)||[];ue(jt)},[W,$e]),xe.useEffect(()=>{var jt,kt;Fe(((jt=o==null?void 0:o.appSettings)==null?void 0:jt.areHorizontalCategoriesEnabled)===!0||((kt=o==null?void 0:o.appSettings)==null?void 0:kt.areHorizontalCategoriesEnabled)==="true")},[o]),Oe.jsxs("div",{className:"search",ref:d,style:wi(),children:[Oe.jsxs("div",{className:"search__info",style:{gridTemplateColumns:$t&&Ht?"min-content 1fr":"auto"},children:[$t&&Ht&&Oe.jsx("button",{className:"search__legend",onClick:()=>St(!0),"aria-label":u("Show legend"),children:Oe.jsx(nW,{})}),Oe.jsxs("label",{className:"search__label",children:[Oe.jsx("span",{children:u("Search by name, category, building...")}),Oe.jsx(yv,{ref:a,mapsindoors:!0,placeholder:u("Search by name, category, building..."),results:jt=>mt(jt),clicked:()=>Et(),cleared:()=>Mt(),category:$e,disabled:!i})]})]}),(Ei()||U)&&!fe&&W.length>0&&Q.length===0&&Oe.jsx(C4,{onSetSize:e,searchFieldRef:a,getFilteredLocations:jt=>Ue(jt),isOpen:!!$e,topLevelCategory:!0,categoryOrientation:Me?"horizontal":"vertical"}),fe&&Oe.jsxs("p",{className:"search__error",children:[" ",u("Nothing was found")]}),Q.length>0&&Oe.jsxs("div",{className:"search__results prevent-scroll",...ie,children:[$e&&Oe.jsx(C4,{handleBack:et,getFilteredLocations:jt=>Ue(jt),onLocationClicked:qt,childKeys:de,topLevelCategory:!1,selectedCategoriesArray:re,categoryOrientation:Me?"horizontal":"vertical"}),Ve(Q).map(jt=>Oe.jsx(mv,{location:jt,locationClicked:()=>qt(jt),isHovered:(jt==null?void 0:jt.id)===(te==null?void 0:te.id)},jt.id))]}),ci&&Pt&&Oe.jsx(kL,{ref:E,searchInputElement:wt}),i&&$t&&Q.length>0&&_u.createPortal(Oe.jsx("div",{className:"search__scroll-buttons",children:Oe.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const fle="";L4.propTypes={onLocationClick:ct.func.isRequired,onBack:ct.func.isRequired,locations:ct.arrayOf(ct.object),onSetSize:ct.func};function L4({onBack:e,onLocationClick:i,locations:o,onSetSize:u}){const{t:d}=Po(),_=kf();function w(a){typeof u=="function"&&u(a)}return xe.useEffect(()=>{w(qn.FIT)},[]),Oe.jsxs("div",{className:"locations-list",children:[Oe.jsxs("div",{className:"locations-list__header",children:[Oe.jsxs("div",{className:"locations-list__title",children:[o==null?void 0:o.length," ",d("Locations")]}),Oe.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":d("Close"),children:Oe.jsx(Rm,{})})]}),Oe.jsx("div",{className:"locations-list__scrollable prevent-scroll",..._,children:Oe.jsx("div",{className:"locations-list__list",children:o==null?void 0:o.map(a=>Oe.jsx(mv,{location:a,locationClicked:E=>i(E)},a.id))})})]})}BL.propTypes={directionsFromLocation:ct.string,directionsToLocation:ct.string,pushAppView:ct.func.isRequired,currentAppView:ct.string,appViews:ct.object,onRouteFinished:ct.func.isRequired};function BL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const w=xe.useRef(),a=xe.useRef(),E=xe.useRef(),j=xe.useRef(),Q=xe.useRef(),q=xe.useRef(),[W,le]=sn(wc),[fe,we]=xe.useState(!1),[$e,me]=sn(iv),[,ie]=sn(ov);xe.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):W?o(d.LOCATION_DETAILS,W):($e==null?void 0:$e.length)>1?o(d.EXTERNALIDS):($e==null?void 0:$e.length)===1?(le($e[0]),ie($e[0].id)):o(d.SEARCH))},[W,e,i,$e]),xe.useEffect(()=>{if(W){const _e=W.properties.imageURL||W.properties.description||W.properties.additionalDetails||Object.keys(W.properties.categories).length>0;we(_e)}},[W]);function te(){($e==null?void 0:$e.length)>1?(o(d.EXTERNALIDS),le()):($e==null?void 0:$e.length)===1?(o(d.SEARCH),le(),me([]),a.current.setSnapPoint(qn.MIN)):(o(d.SEARCH),le(),a.current.setSnapPoint(qn.MIN))}function oe(){o(d.SEARCH),le(),me([])}const be=[Oe.jsx(Of,{minimizedHeight:80,initialSnapPoint:qn.MIN,isOpen:u===d.SEARCH,ref:a,children:Oe.jsx(N4,{isOpen:u===d.SEARCH,onSetSize:_e=>a.current.setSnapPoint(_e)})},"SEARCH"),Oe.jsx(Of,{minimizedHeight:200,isOpen:u===d.EXTERNALIDS,initialSnapPoint:qn.MIN,ref:E,children:Oe.jsx(L4,{onSetSize:_e=>E.current.setSnapPoint(_e),onBack:()=>oe(),locations:$e,onLocationClick:_e=>le(_e)})},"EXTERNALIDS"),Oe.jsx(Of,{minimizedHeight:fe?180:136,initialSnapPoint:qn.MIN,isOpen:u===d.LOCATION_DETAILS,ref:j,children:Oe.jsx(w4,{onSetSize:_e=>j.current.setSnapPoint(_e),onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>te(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Oe.jsx(Of,{minimizedHeight:190,initialSnapPoint:qn.FIT,isOpen:u===d.WAYFINDING,ref:Q,children:Oe.jsx(D4,{onSetSize:_e=>Q.current.setSnapPoint(_e),onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(W?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Oe.jsx(Of,{minimizedHeight:273,isOpen:u===d.DIRECTIONS,initialSnapPoint:qn.FIT,ref:q,children:Oe.jsx(S4,{onSetSize:_e=>q.current.setSnapPoint(_e),isOpen:u===d.DIRECTIONS,onBack:()=>o(d.WAYFINDING),onRouteFinished:()=>_()})},"DIRECTIONS")];return Oe.jsx("div",{ref:w,className:"bottom-sheets",children:Oe.jsx(lL.Provider,{value:w,children:be})})}const rW={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},oW=()=>{const[e,i]=xe.useState(void 0),[o,u]=xe.useState(),[d,_]=xe.useState(null);xe.useEffect(()=>{function j(Q){var q,W;i((q=Q.state)==null?void 0:q.value),u((W=Q.state)==null?void 0:W.payload)}return window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}},[]);const w=(j,Q)=>{window.history.pushState({value:j,payload:Q},""),i(j),d===null&&_({value:j,payload:Q})};return[w,()=>{window.history.back()},e,o,rW,()=>{w(d.value,d.payload)}]},sW=kn({key:"showQRCodeDialog",default:!1});function aW(){const e=Ci(E4),[,i]=sn(Mu),o=Mo(_v),u=Mo(wc),d=Mo(Fm),_=Mo(dv),w=Mo(hv),a=Mo(zm),E=Mo(sW),j=Mo(vv),Q=Mo(Um),q=Mo(xv),W=Mo(Vm),le=Mo(wv),fe=Mo(SN),we=Mo(J3);return()=>{o(),u(),d(),_(),w(),a(),E(),j(),Q(),q(),W(),le(),fe(),we(),e&&i(e)}}const ple="";jf.propTypes={children:ct.node,isOpen:ct.bool};function jf({children:e,isOpen:i}){const[o,u]=xe.useState(!1),d=Ci(Dl),_=xe.useRef(),w=xe.useRef();return xe.useEffect(()=>{if(!w)return;const a=new MutationObserver(()=>{var Q;const E=w.current.clientHeight,j=(Q=_.current)==null?void 0:Q.clientHeight;u(E>j)});return a.observe(w.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[w]),Oe.jsx("div",{ref:_,className:`modal ${i?"modal--open":""} ${o?"modal--full":""} ${d?"modal--kiosk":""}`,children:Oe.jsx("div",{ref:w,className:"modal__content",children:e})})}FL.propTypes={directionsFromLocation:ct.string,directionsToLocation:ct.string,pushAppView:ct.func,currentAppView:ct.string,appViews:ct.object,filteredLocationsByExternalIDs:ct.array,onRouteFinished:ct.func};function FL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const[w,a]=sn(wc),[E,j]=sn(iv),[,Q]=sn(ov),q=Ci(Dl);xe.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):w?o(d.LOCATION_DETAILS,w):(E==null?void 0:E.length)>1?o(d.EXTERNALIDS):(E==null?void 0:E.length)===1?(a(E[0]),Q(E[0].id)):o(d.SEARCH))},[w,e,i,E]);function W(){(E==null?void 0:E.length)>1?(o(d.EXTERNALIDS),a()):(E==null?void 0:E.length)===1?(o(d.SEARCH),a(),j([])):(o(d.SEARCH),a())}function le(){o(d.SEARCH),a(),j([])}function fe(){o(q?d.LOCATION_DETAILS:d.WAYFINDING)}const we=[Oe.jsx(jf,{isOpen:u===d.SEARCH,children:Oe.jsx(N4,{isOpen:u===d.SEARCH})},"SEARCH"),Oe.jsx(jf,{isOpen:u===d.EXTERNALIDS,children:Oe.jsx(L4,{onBack:()=>le(),locations:E,onLocationClick:$e=>a($e)})},"EXTERNALIDS"),Oe.jsx(jf,{isOpen:u===d.LOCATION_DETAILS,children:Oe.jsx(w4,{onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>W(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Oe.jsx(jf,{isOpen:u===d.WAYFINDING,children:Oe.jsx(D4,{onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(w?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Oe.jsx(jf,{isOpen:u===d.DIRECTIONS,children:Oe.jsx(S4,{isOpen:u===d.DIRECTIONS,onBack:()=>fe(),onRouteFinished:()=>_()})},"DIRECTIONS")];return Oe.jsx("div",{children:we})}const UL=e=>{const[i,o]=xe.useState(),u=Ci(X_),d=Ci(bN);return xe.useEffect(()=>{d&&e&&(e==="USER_POSITION"&&!u?(o("USER_POSITION_PENDING"),d.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(_=>o(_)),u&&e==="USER_POSITION"&&o(M4(u)))},[e,u,d]),i},lW=kn({key:"gmMapId",default:null}),gle="";function cW(){const e=Ci(zm),i=xe.useRef();return xe.useEffect(()=>{var o;(o=i.current)==null||o.classList.add("notification"),e?i.current.push(e.text,e.type,!0):i.current.clearAll()},[e]),Oe.jsx("mi-notification",{ref:i,position:"top-center"})}const mle="";var Qm={},uW=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},VL={},ua={};let z4;const hW=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ua.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},ua.getSymbolTotalCodewords=function(i){return hW[i]},ua.getBCHDigit=function(e){let i=0;for(;e!==0;)i++,e>>>=1;return i},ua.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');z4=i},ua.isKanjiModeEnabled=function(){return typeof z4<"u"},ua.toSJIS=function(i){return z4(i)};var bv={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+o)}}e.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},e.from=function(u,d){if(e.isValid(u))return u;try{return i(u)}catch{return d}}})(bv);function QL(){this.buffer=[],this.length=0}QL.prototype={get:function(e){const i=Math.floor(e/8);return(this.buffer[i]>>>7-e%8&1)===1},put:function(e,i){for(let o=0;o<i;o++)this.putBit((e>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),e&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var dW=QL;function Hm(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Hm.prototype.set=function(e,i,o,u){const d=e*this.size+i;this.data[d]=o,u&&(this.reservedBit[d]=!0)},Hm.prototype.get=function(e,i){return this.data[e*this.size+i]},Hm.prototype.xor=function(e,i,o){this.data[e*this.size+i]^=o},Hm.prototype.isReserved=function(e,i){return this.reservedBit[e*this.size+i]};var fW=Hm,HL={};(function(e){const i=ua.getSymbolSize;e.getRowColCoords=function(u){if(u===1)return[];const d=Math.floor(u/7)+2,_=i(u),w=_===145?26:Math.ceil((_-13)/(2*d-2))*2,a=[_-7];for(let E=1;E<d-1;E++)a[E]=a[E-1]-w;return a.push(6),a.reverse()},e.getPositions=function(u){const d=[],_=e.getRowColCoords(u),w=_.length;for(let a=0;a<w;a++)for(let E=0;E<w;E++)a===0&&E===0||a===0&&E===w-1||a===w-1&&E===0||d.push([_[a],_[E]]);return d}})(HL);var $L={};const pW=ua.getSymbolSize,YL=7;$L.getPositions=function(i){const o=pW(i);return[[0,0],[o-YL,0],[0,o-YL]]};var GL={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},e.from=function(d){return e.isValid(d)?parseInt(d,10):void 0},e.getPenaltyN1=function(d){const _=d.size;let w=0,a=0,E=0,j=null,Q=null;for(let q=0;q<_;q++){a=E=0,j=Q=null;for(let W=0;W<_;W++){let le=d.get(q,W);le===j?a++:(a>=5&&(w+=i.N1+(a-5)),j=le,a=1),le=d.get(W,q),le===Q?E++:(E>=5&&(w+=i.N1+(E-5)),Q=le,E=1)}a>=5&&(w+=i.N1+(a-5)),E>=5&&(w+=i.N1+(E-5))}return w},e.getPenaltyN2=function(d){const _=d.size;let w=0;for(let a=0;a<_-1;a++)for(let E=0;E<_-1;E++){const j=d.get(a,E)+d.get(a,E+1)+d.get(a+1,E)+d.get(a+1,E+1);(j===4||j===0)&&w++}return w*i.N2},e.getPenaltyN3=function(d){const _=d.size;let w=0,a=0,E=0;for(let j=0;j<_;j++){a=E=0;for(let Q=0;Q<_;Q++)a=a<<1&2047|d.get(j,Q),Q>=10&&(a===1488||a===93)&&w++,E=E<<1&2047|d.get(Q,j),Q>=10&&(E===1488||E===93)&&w++}return w*i.N3},e.getPenaltyN4=function(d){let _=0;const w=d.data.length;for(let E=0;E<w;E++)_+=d.data[E];return Math.abs(Math.ceil(_*100/w/5)-10)*i.N4};function o(u,d,_){switch(u){case e.Patterns.PATTERN000:return(d+_)%2===0;case e.Patterns.PATTERN001:return d%2===0;case e.Patterns.PATTERN010:return _%3===0;case e.Patterns.PATTERN011:return(d+_)%3===0;case e.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(_/3))%2===0;case e.Patterns.PATTERN101:return d*_%2+d*_%3===0;case e.Patterns.PATTERN110:return(d*_%2+d*_%3)%2===0;case e.Patterns.PATTERN111:return(d*_%3+(d+_)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}e.applyMask=function(d,_){const w=_.size;for(let a=0;a<w;a++)for(let E=0;E<w;E++)_.isReserved(E,a)||_.xor(E,a,o(d,E,a))},e.getBestMask=function(d,_){const w=Object.keys(e.Patterns).length;let a=0,E=1/0;for(let j=0;j<w;j++){_(j),e.applyMask(j,d);const Q=e.getPenaltyN1(d)+e.getPenaltyN2(d)+e.getPenaltyN3(d)+e.getPenaltyN4(d);e.applyMask(j,d),Q<E&&(E=Q,a=j)}return a}})(GL);var Mv={};const Du=bv,Iv=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Tv=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Mv.getBlocksCount=function(i,o){switch(o){case Du.L:return Iv[(i-1)*4+0];case Du.M:return Iv[(i-1)*4+1];case Du.Q:return Iv[(i-1)*4+2];case Du.H:return Iv[(i-1)*4+3];default:return}},Mv.getTotalCodewordsCount=function(i,o){switch(o){case Du.L:return Tv[(i-1)*4+0];case Du.M:return Tv[(i-1)*4+1];case Du.Q:return Tv[(i-1)*4+2];case Du.H:return Tv[(i-1)*4+3];default:return}};var ZL={},Dv={};const $m=new Uint8Array(512),Sv=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)$m[o]=i,Sv[i]=o,i<<=1,i&256&&(i^=285);for(let o=255;o<512;o++)$m[o]=$m[o-255]})(),Dv.log=function(i){if(i<1)throw new Error("log("+i+")");return Sv[i]},Dv.exp=function(i){return $m[i]},Dv.mul=function(i,o){return i===0||o===0?0:$m[Sv[i]+Sv[o]]},function(e){const i=Dv;e.mul=function(u,d){const _=new Uint8Array(u.length+d.length-1);for(let w=0;w<u.length;w++)for(let a=0;a<d.length;a++)_[w+a]^=i.mul(u[w],d[a]);return _},e.mod=function(u,d){let _=new Uint8Array(u);for(;_.length-d.length>=0;){const w=_[0];for(let E=0;E<d.length;E++)_[E]^=i.mul(d[E],w);let a=0;for(;a<_.length&&_[a]===0;)a++;_=_.slice(a)}return _},e.generateECPolynomial=function(u){let d=new Uint8Array([1]);for(let _=0;_<u;_++)d=e.mul(d,new Uint8Array([1,i.exp(_)]));return d}}(ZL);const WL=ZL;function O4(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}O4.prototype.initialize=function(i){this.degree=i,this.genPoly=WL.generateECPolynomial(this.degree)},O4.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(i.length+this.degree);o.set(i);const u=WL.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const _=new Uint8Array(this.degree);return _.set(u,d),_}return u};var gW=O4,qL={},Su={},k4={};k4.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};var Al={};const KL="[0-9]+",mW="[A-Z $%*+\\-./:]+";let Ym="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ym=Ym.replace(/u/g,"\\u");const yW="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ym+`)(?:.|[\r
44
44
  ]))+`;Al.KANJI=new RegExp(Ym,"g"),Al.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Al.BYTE=new RegExp(yW,"g"),Al.NUMERIC=new RegExp(KL,"g"),Al.ALPHANUMERIC=new RegExp(mW,"g");const _W=new RegExp("^"+Ym+"$"),vW=new RegExp("^"+KL+"$"),xW=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Al.testKanji=function(i){return _W.test(i)},Al.testNumeric=function(i){return vW.test(i)},Al.testAlphanumeric=function(i){return xW.test(i)},function(e){const i=k4,o=Al;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(_,w){if(!_.ccBits)throw new Error("Invalid mode: "+_);if(!i.isValid(w))throw new Error("Invalid version: "+w);return w>=1&&w<10?_.ccBits[0]:w<27?_.ccBits[1]:_.ccBits[2]},e.getBestModeForData=function(_){return o.testNumeric(_)?e.NUMERIC:o.testAlphanumeric(_)?e.ALPHANUMERIC:o.testKanji(_)?e.KANJI:e.BYTE},e.toString=function(_){if(_&&_.id)return _.id;throw new Error("Invalid mode")},e.isValid=function(_){return _&&_.bit&&_.ccBits};function u(d){if(typeof d!="string")throw new Error("Param is not a string");switch(d.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+d)}}e.from=function(_,w){if(e.isValid(_))return _;try{return u(_)}catch{return w}}}(Su),function(e){const i=ua,o=Mv,u=bv,d=Su,_=k4,w=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=i.getBCHDigit(w);function E(W,le,fe){for(let we=1;we<=40;we++)if(le<=e.getCapacity(we,fe,W))return we}function j(W,le){return d.getCharCountIndicator(W,le)+4}function Q(W,le){let fe=0;return W.forEach(function(we){const $e=j(we.mode,le);fe+=$e+we.getBitsLength()}),fe}function q(W,le){for(let fe=1;fe<=40;fe++)if(Q(W,fe)<=e.getCapacity(fe,le,d.MIXED))return fe}e.from=function(le,fe){return _.isValid(le)?parseInt(le,10):fe},e.getCapacity=function(le,fe,we){if(!_.isValid(le))throw new Error("Invalid QR Code version");typeof we>"u"&&(we=d.BYTE);const $e=i.getSymbolTotalCodewords(le),me=o.getTotalCodewordsCount(le,fe),ie=($e-me)*8;if(we===d.MIXED)return ie;const te=ie-j(we,le);switch(we){case d.NUMERIC:return Math.floor(te/10*3);case d.ALPHANUMERIC:return Math.floor(te/11*2);case d.KANJI:return Math.floor(te/13);case d.BYTE:default:return Math.floor(te/8)}},e.getBestVersionForData=function(le,fe){let we;const $e=u.from(fe,u.M);if(Array.isArray(le)){if(le.length>1)return q(le,$e);if(le.length===0)return 1;we=le[0]}else we=le;return E(we.mode,we.getLength(),$e)},e.getEncodedBits=function(le){if(!_.isValid(le)||le<7)throw new Error("Invalid QR Code version");let fe=le<<12;for(;i.getBCHDigit(fe)-a>=0;)fe^=w<<i.getBCHDigit(fe)-a;return le<<12|fe}}(qL);var XL={};const j4=ua,JL=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,wW=1<<14|1<<12|1<<10|1<<4|1<<1,ez=j4.getBCHDigit(JL);XL.getEncodedBits=function(i,o){const u=i.bit<<3|o;let d=u<<10;for(;j4.getBCHDigit(d)-ez>=0;)d^=JL<<j4.getBCHDigit(d)-ez;return(u<<10|d)^wW};var tz={};const bW=Su;function Pf(e){this.mode=bW.NUMERIC,this.data=e.toString()}Pf.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},Pf.prototype.getLength=function(){return this.data.length},Pf.prototype.getBitsLength=function(){return Pf.getBitsLength(this.data.length)},Pf.prototype.write=function(i){let o,u,d;for(o=0;o+3<=this.data.length;o+=3)u=this.data.substr(o,3),d=parseInt(u,10),i.put(d,10);const _=this.data.length-o;_>0&&(u=this.data.substr(o),d=parseInt(u,10),i.put(d,_*3+1))};var MW=Pf;const IW=Su,P4=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Rf(e){this.mode=IW.ALPHANUMERIC,this.data=e}Rf.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},Rf.prototype.getLength=function(){return this.data.length},Rf.prototype.getBitsLength=function(){return Rf.getBitsLength(this.data.length)},Rf.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let u=P4.indexOf(this.data[o])*45;u+=P4.indexOf(this.data[o+1]),i.put(u,11)}this.data.length%2&&i.put(P4.indexOf(this.data[o]),6)};var TW=Rf,DW=function(i){for(var o=[],u=i.length,d=0;d<u;d++){var _=i.charCodeAt(d);if(_>=55296&&_<=56319&&u>d+1){var w=i.charCodeAt(d+1);w>=56320&&w<=57343&&(_=(_-55296)*1024+w-56320+65536,d+=1)}if(_<128){o.push(_);continue}if(_<2048){o.push(_>>6|192),o.push(_&63|128);continue}if(_<55296||_>=57344&&_<65536){o.push(_>>12|224),o.push(_>>6&63|128),o.push(_&63|128);continue}if(_>=65536&&_<=1114111){o.push(_>>18|240),o.push(_>>12&63|128),o.push(_>>6&63|128),o.push(_&63|128);continue}o.push(239,191,189)}return new Uint8Array(o).buffer};const SW=DW,AW=Su;function Bf(e){this.mode=AW.BYTE,typeof e=="string"&&(e=SW(e)),this.data=new Uint8Array(e)}Bf.getBitsLength=function(i){return i*8},Bf.prototype.getLength=function(){return this.data.length},Bf.prototype.getBitsLength=function(){return Bf.getBitsLength(this.data.length)},Bf.prototype.write=function(e){for(let i=0,o=this.data.length;i<o;i++)e.put(this.data[i],8)};var CW=Bf;const EW=Su,NW=ua;function Ff(e){this.mode=EW.KANJI,this.data=e}Ff.getBitsLength=function(i){return i*13},Ff.prototype.getLength=function(){return this.data.length},Ff.prototype.getBitsLength=function(){return Ff.getBitsLength(this.data.length)},Ff.prototype.write=function(e){let i;for(i=0;i<this.data.length;i++){let o=NW.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
45
45
  Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var LW=Ff,iz={exports:{}};(function(e){var i={single_source_shortest_paths:function(o,u,d){var _={},w={};w[u]=0;var a=i.PriorityQueue.make();a.push(u,0);for(var E,j,Q,q,W,le,fe,we,$e;!a.empty();){E=a.pop(),j=E.value,q=E.cost,W=o[j]||{};for(Q in W)W.hasOwnProperty(Q)&&(le=W[Q],fe=q+le,we=w[Q],$e=typeof w[Q]>"u",($e||we>fe)&&(w[Q]=fe,a.push(Q,fe),_[Q]=j))}if(typeof d<"u"&&typeof w[d]>"u"){var me=["Could not find a path from ",u," to ",d,"."].join("");throw new Error(me)}return _},extract_shortest_path_from_predecessor_list:function(o,u){for(var d=[],_=u;_;)d.push(_),o[_],_=o[_];return d.reverse(),d},find_path:function(o,u,d){var _=i.single_source_shortest_paths(o,u,d);return i.extract_shortest_path_from_predecessor_list(_,d)},PriorityQueue:{make:function(o){var u=i.PriorityQueue,d={},_;o=o||{};for(_ in u)u.hasOwnProperty(_)&&(d[_]=u[_]);return d.queue=[],d.sorter=o.sorter||u.default_sorter,d},default_sorter:function(o,u){return o.cost-u.cost},push:function(o,u){var d={value:o,cost:u};this.queue.push(d),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=i})(iz);var zW=iz.exports;(function(e){const i=Su,o=MW,u=TW,d=CW,_=LW,w=Al,a=ua,E=zW;function j(me){return unescape(encodeURIComponent(me)).length}function Q(me,ie,te){const oe=[];let be;for(;(be=me.exec(te))!==null;)oe.push({data:be[0],index:be.index,mode:ie,length:be[0].length});return oe}function q(me){const ie=Q(w.NUMERIC,i.NUMERIC,me),te=Q(w.ALPHANUMERIC,i.ALPHANUMERIC,me);let oe,be;return a.isKanjiModeEnabled()?(oe=Q(w.BYTE,i.BYTE,me),be=Q(w.KANJI,i.KANJI,me)):(oe=Q(w.BYTE_KANJI,i.BYTE,me),be=[]),ie.concat(te,oe,be).sort(function(Je,nt){return Je.index-nt.index}).map(function(Je){return{data:Je.data,mode:Je.mode,length:Je.length}})}function W(me,ie){switch(ie){case i.NUMERIC:return o.getBitsLength(me);case i.ALPHANUMERIC:return u.getBitsLength(me);case i.KANJI:return _.getBitsLength(me);case i.BYTE:return d.getBitsLength(me)}}function le(me){return me.reduce(function(ie,te){const oe=ie.length-1>=0?ie[ie.length-1]:null;return oe&&oe.mode===te.mode?(ie[ie.length-1].data+=te.data,ie):(ie.push(te),ie)},[])}function fe(me){const ie=[];for(let te=0;te<me.length;te++){const oe=me[te];switch(oe.mode){case i.NUMERIC:ie.push([oe,{data:oe.data,mode:i.ALPHANUMERIC,length:oe.length},{data:oe.data,mode:i.BYTE,length:oe.length}]);break;case i.ALPHANUMERIC:ie.push([oe,{data:oe.data,mode:i.BYTE,length:oe.length}]);break;case i.KANJI:ie.push([oe,{data:oe.data,mode:i.BYTE,length:j(oe.data)}]);break;case i.BYTE:ie.push([{data:oe.data,mode:i.BYTE,length:j(oe.data)}])}}return ie}function we(me,ie){const te={},oe={start:{}};let be=["start"];for(let _e=0;_e<me.length;_e++){const Je=me[_e],nt=[];for(let Ye=0;Ye<Je.length;Ye++){const xt=Je[Ye],dt=""+_e+Ye;nt.push(dt),te[dt]={node:xt,lastCount:0},oe[dt]={};for(let Pt=0;Pt<be.length;Pt++){const Tt=be[Pt];te[Tt]&&te[Tt].node.mode===xt.mode?(oe[Tt][dt]=W(te[Tt].lastCount+xt.length,xt.mode)-W(te[Tt].lastCount,xt.mode),te[Tt].lastCount+=xt.length):(te[Tt]&&(te[Tt].lastCount=xt.length),oe[Tt][dt]=W(xt.length,xt.mode)+4+i.getCharCountIndicator(xt.mode,ie))}}be=nt}for(let _e=0;_e<be.length;_e++)oe[be[_e]].end=0;return{map:oe,table:te}}function $e(me,ie){let te;const oe=i.getBestModeForData(me);if(te=i.from(ie,oe),te!==i.BYTE&&te.bit<oe.bit)throw new Error('"'+me+'" cannot be encoded with mode '+i.toString(te)+`.
46
46
  Suggested mode is: `+i.toString(oe));switch(te===i.KANJI&&!a.isKanjiModeEnabled()&&(te=i.BYTE),te){case i.NUMERIC:return new o(me);case i.ALPHANUMERIC:return new u(me);case i.KANJI:return new _(me);case i.BYTE:return new d(me)}}e.fromArray=function(ie){return ie.reduce(function(te,oe){return typeof oe=="string"?te.push($e(oe,null)):oe.data&&te.push($e(oe.data,oe.mode)),te},[])},e.fromString=function(ie,te){const oe=q(ie,a.isKanjiModeEnabled()),be=fe(oe),_e=we(be,te),Je=E.find_path(_e.map,"start","end"),nt=[];for(let Ye=1;Ye<Je.length-1;Ye++)nt.push(_e.table[Je[Ye]].node);return e.fromArray(le(nt))},e.rawSplit=function(ie){return e.fromArray(q(ie,a.isKanjiModeEnabled()))}})(tz);const Av=ua,R4=bv,OW=dW,kW=fW,jW=HL,PW=$L,B4=GL,F4=Mv,RW=gW,Cv=qL,BW=XL,FW=Su,U4=tz;function UW(e,i){const o=e.size,u=PW.getPositions(i);for(let d=0;d<u.length;d++){const _=u[d][0],w=u[d][1];for(let a=-1;a<=7;a++)if(!(_+a<=-1||o<=_+a))for(let E=-1;E<=7;E++)w+E<=-1||o<=w+E||(a>=0&&a<=6&&(E===0||E===6)||E>=0&&E<=6&&(a===0||a===6)||a>=2&&a<=4&&E>=2&&E<=4?e.set(_+a,w+E,!0,!0):e.set(_+a,w+E,!1,!0))}}function VW(e){const i=e.size;for(let o=8;o<i-8;o++){const u=o%2===0;e.set(o,6,u,!0),e.set(6,o,u,!0)}}function QW(e,i){const o=jW.getPositions(i);for(let u=0;u<o.length;u++){const d=o[u][0],_=o[u][1];for(let w=-2;w<=2;w++)for(let a=-2;a<=2;a++)w===-2||w===2||a===-2||a===2||w===0&&a===0?e.set(d+w,_+a,!0,!0):e.set(d+w,_+a,!1,!0)}}function HW(e,i){const o=e.size,u=Cv.getEncodedBits(i);let d,_,w;for(let a=0;a<18;a++)d=Math.floor(a/3),_=a%3+o-8-3,w=(u>>a&1)===1,e.set(d,_,w,!0),e.set(_,d,w,!0)}function V4(e,i,o){const u=e.size,d=BW.getEncodedBits(i,o);let _,w;for(_=0;_<15;_++)w=(d>>_&1)===1,_<6?e.set(_,8,w,!0):_<8?e.set(_+1,8,w,!0):e.set(u-15+_,8,w,!0),_<8?e.set(8,u-_-1,w,!0):_<9?e.set(8,15-_-1+1,w,!0):e.set(8,15-_-1,w,!0);e.set(u-8,8,1,!0)}function $W(e,i){const o=e.size;let u=-1,d=o-1,_=7,w=0;for(let a=o-1;a>0;a-=2)for(a===6&&a--;;){for(let E=0;E<2;E++)if(!e.isReserved(d,a-E)){let j=!1;w<i.length&&(j=(i[w]>>>_&1)===1),e.set(d,a-E,j),_--,_===-1&&(w++,_=7)}if(d+=u,d<0||o<=d){d-=u,u=-u;break}}}function YW(e,i,o){const u=new OW;o.forEach(function(E){u.put(E.mode.bit,4),u.put(E.getLength(),FW.getCharCountIndicator(E.mode,e)),E.write(u)});const d=Av.getSymbolTotalCodewords(e),_=F4.getTotalCodewordsCount(e,i),w=(d-_)*8;for(u.getLengthInBits()+4<=w&&u.put(0,4);u.getLengthInBits()%8!==0;)u.putBit(0);const a=(w-u.getLengthInBits())/8;for(let E=0;E<a;E++)u.put(E%2?17:236,8);return GW(u,e,i)}function GW(e,i,o){const u=Av.getSymbolTotalCodewords(i),d=F4.getTotalCodewordsCount(i,o),_=u-d,w=F4.getBlocksCount(i,o),a=u%w,E=w-a,j=Math.floor(u/w),Q=Math.floor(_/w),q=Q+1,W=j-Q,le=new RW(W);let fe=0;const we=new Array(w),$e=new Array(w);let me=0;const ie=new Uint8Array(e.buffer);for(let Je=0;Je<w;Je++){const nt=Je<E?Q:q;we[Je]=ie.slice(fe,fe+nt),$e[Je]=le.encode(we[Je]),fe+=nt,me=Math.max(me,nt)}const te=new Uint8Array(u);let oe=0,be,_e;for(be=0;be<me;be++)for(_e=0;_e<w;_e++)be<we[_e].length&&(te[oe++]=we[_e][be]);for(be=0;be<W;be++)for(_e=0;_e<w;_e++)te[oe++]=$e[_e][be];return te}function ZW(e,i,o,u){let d;if(Array.isArray(e))d=U4.fromArray(e);else if(typeof e=="string"){let j=i;if(!j){const Q=U4.rawSplit(e);j=Cv.getBestVersionForData(Q,o)}d=U4.fromString(e,j||40)}else throw new Error("Invalid data");const _=Cv.getBestVersionForData(d,o);if(!_)throw new Error("The amount of data is too big to be stored in a QR Code");if(!i)i=_;else if(i<_)throw new Error(`
47
47
  The chosen QR Code version cannot contain this amount of data.
48
48
  Minimum version required to store current data is: `+_+`.
49
49
  `);const w=YW(i,o,d),a=Av.getSymbolSize(i),E=new kW(a);return UW(E,i),VW(E),QW(E,i),V4(E,o,0),i>=7&&HW(E,i),$W(E,w),isNaN(u)&&(u=B4.getBestMask(E,V4.bind(null,E,o))),B4.applyMask(u,E),V4(E,o,u),{modules:E,version:i,errorCorrectionLevel:o,maskPattern:u,segments:d}}VL.create=function(i,o){if(typeof i>"u"||i==="")throw new Error("No input text");let u=R4.M,d,_;return typeof o<"u"&&(u=R4.from(o.errorCorrectionLevel,R4.M),d=Cv.from(o.version),_=B4.from(o.maskPattern),o.toSJISFunc&&Av.setToSJISFunction(o.toSJISFunc)),ZW(i,d,u,_)};var nz={},Q4={};(function(e){function i(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let u=o.slice().replace("#","").split("");if(u.length<3||u.length===5||u.length>8)throw new Error("Invalid hex color: "+o);(u.length===3||u.length===4)&&(u=Array.prototype.concat.apply([],u.map(function(_){return[_,_]}))),u.length===6&&u.push("F","F");const d=parseInt(u.join(""),16);return{r:d>>24&255,g:d>>16&255,b:d>>8&255,a:d&255,hex:"#"+u.slice(0,6).join("")}}e.getOptions=function(u){u||(u={}),u.color||(u.color={});const d=typeof u.margin>"u"||u.margin===null||u.margin<0?4:u.margin,_=u.width&&u.width>=21?u.width:void 0,w=u.scale||4;return{width:_,scale:_?4:w,margin:d,color:{dark:i(u.color.dark||"#000000ff"),light:i(u.color.light||"#ffffffff")},type:u.type,rendererOpts:u.rendererOpts||{}}},e.getScale=function(u,d){return d.width&&d.width>=u+d.margin*2?d.width/(u+d.margin*2):d.scale},e.getImageWidth=function(u,d){const _=e.getScale(u,d);return Math.floor((u+d.margin*2)*_)},e.qrToImageData=function(u,d,_){const w=d.modules.size,a=d.modules.data,E=e.getScale(w,_),j=Math.floor((w+_.margin*2)*E),Q=_.margin*E,q=[_.color.light,_.color.dark];for(let W=0;W<j;W++)for(let le=0;le<j;le++){let fe=(W*j+le)*4,we=_.color.light;if(W>=Q&&le>=Q&&W<j-Q&&le<j-Q){const $e=Math.floor((W-Q)/E),me=Math.floor((le-Q)/E);we=q[a[$e*w+me]?1:0]}u[fe++]=we.r,u[fe++]=we.g,u[fe++]=we.b,u[fe]=we.a}}})(Q4),function(e){const i=Q4;function o(d,_,w){d.clearRect(0,0,_.width,_.height),_.style||(_.style={}),_.height=w,_.width=w,_.style.height=w+"px",_.style.width=w+"px"}function u(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(_,w,a){let E=a,j=w;typeof E>"u"&&(!w||!w.getContext)&&(E=w,w=void 0),w||(j=u()),E=i.getOptions(E);const Q=i.getImageWidth(_.modules.size,E),q=j.getContext("2d"),W=q.createImageData(Q,Q);return i.qrToImageData(W.data,_,E),o(q,j,Q),q.putImageData(W,0,0),j},e.renderToDataURL=function(_,w,a){let E=a;typeof E>"u"&&(!w||!w.getContext)&&(E=w,w=void 0),E||(E={});const j=e.render(_,w,E),Q=E.type||"image/png",q=E.rendererOpts||{};return j.toDataURL(Q,q.quality)}}(nz);var rz={};const WW=Q4;function oz(e,i){const o=e.a/255,u=i+'="'+e.hex+'"';return o<1?u+" "+i+'-opacity="'+o.toFixed(2).slice(1)+'"':u}function H4(e,i,o){let u=e+i;return typeof o<"u"&&(u+=" "+o),u}function qW(e,i,o){let u="",d=0,_=!1,w=0;for(let a=0;a<e.length;a++){const E=Math.floor(a%i),j=Math.floor(a/i);!E&&!_&&(_=!0),e[a]?(w++,a>0&&E>0&&e[a-1]||(u+=_?H4("M",E+o,.5+j+o):H4("m",d,0),d=0,_=!1),E+1<i&&e[a+1]||(u+=H4("h",w),w=0)):d++}return u}rz.render=function(i,o,u){const d=WW.getOptions(o),_=i.modules.size,w=i.modules.data,a=_+d.margin*2,E=d.color.light.a?"<path "+oz(d.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",j="<path "+oz(d.color.dark,"stroke")+' d="'+qW(w,_,d.margin)+'"/>',Q='viewBox="0 0 '+a+" "+a+'"',W='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+Q+' shape-rendering="crispEdges">'+E+j+`</svg>
50
- `;return typeof u=="function"&&u(null,W),W};const KW=uW,$4=VL,sz=nz,XW=rz;function Y4(e,i,o,u,d){const _=[].slice.call(arguments,1),w=_.length,a=typeof _[w-1]=="function";if(!a&&!KW())throw new Error("Callback required as last argument");if(a){if(w<2)throw new Error("Too few arguments provided");w===2?(d=o,o=i,i=u=void 0):w===3&&(i.getContext&&typeof d>"u"?(d=u,u=void 0):(d=u,u=o,o=i,i=void 0))}else{if(w<1)throw new Error("Too few arguments provided");return w===1?(o=i,i=u=void 0):w===2&&!i.getContext&&(u=o,o=i,i=void 0),new Promise(function(E,j){try{const Q=$4.create(o,u);E(e(Q,i,u))}catch(Q){j(Q)}})}try{const E=$4.create(o,u);d(null,e(E,i,u))}catch(E){d(E)}}Qm.create=$4.create,Qm.toCanvas=Y4.bind(null,sz.render),Qm.toDataURL=Y4.bind(null,sz.renderToDataURL),Qm.toString=Y4.bind(null,function(e,i,o){return XW.render(e,o)});function JW(){const{t:e}=Po(),[i,o]=sn(gv),u=xe.useRef(),d=Ci(Sl);return xe.useEffect(()=>{const _={errorCorrectionLevel:"L",margin:0,width:"225"};Qm.toDataURL(i,_).then(w=>{u.current.src=w})},[d,i]),Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"background"}),Oe.jsxs("div",{className:"qr-code",children:[Oe.jsx("img",{alt:"",className:"qr-code__image",ref:u}),Oe.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Oe.jsx("button",{className:"qr-code__button",style:{background:d},onClick:()=>o(null),children:e("Done")})]})]})}const eq=kn({key:"miTransitionLevel",default:void 0}),yle="";function tq(){const{t:e}=Po(),i=Ci(Sl),o=Ci(RL),u=Tu(),d=xe.useRef(),_=xe.useRef(),w=xe.useRef(),[a,E]=sn(wv),[j,Q]=xe.useState(!1),q=xe.useRef();let W=700;return xe.useEffect(()=>{a&&u&&Q(q.current.clientHeight>W)},[a,u]),xe.useEffect(()=>{if(a&&u&&j){const le=document.querySelector(".legend__sections");w.current.scrollContainerElementRef=le}},[a,o,j]),Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"legend__background"}),Oe.jsxs("div",{className:"legend",ref:d,children:[o.length>0&&Oe.jsx("div",{className:`legend__sections ${j?"legend__sections--scrollable":""}`,ref:q,style:{maxHeight:j?`${W}px`:"auto",overflowY:j?"scroll":"auto"},children:o.map((le,fe)=>Oe.jsxs("div",{className:"legend__section",ref:_,children:[Oe.jsx("div",{className:"legend__heading",children:le.heading}),Oe.jsx("div",{className:"legend__content",children:le.content})]},fe))}),Oe.jsx("button",{className:"legend__button",style:{background:i},onClick:()=>E(!1),children:e("Close")}),u&&a&&j&&Oe.jsx("div",{className:"scroll-buttons",children:Oe.jsx("mi-scroll-buttons",{ref:w})})]})]})}const iq=()=>{const[e,i]=sn(Mu),o=Ci(km),u=Ci(ca),d=Ci(Rh),[,_]=sn(Om),[,w]=sn(xv),a=Ci(b4),[E,j]=sn(E4);xe.useEffect(()=>{var W;!e&&o.length&&i((W=Q())==null?void 0:W.name)},[e,o]),xe.useEffect(()=>{e&&!E&&j(e)},[e]),xe.useEffect(()=>{u&&o.length&&e&&d&&(u.setVenue(o.find(W=>W.name.toLowerCase()===e.toLowerCase())),q(),w([]),a&&(a.value=""))},[u,e,o,d]);const Q=()=>o.length===1?o[0]:[...o].sort(function(W,le){return W.venueInfo.name>le.venueInfo.name?1:le.venueInfo.name>W.venueInfo.name?-1:0})[0],q=async()=>{var me,ie,te,oe,be;const W=await((te=(ie=(me=window==null?void 0:window.mapsindoors)==null?void 0:me.services)==null?void 0:ie.SolutionsService)==null?void 0:te.getCategories()),le=((oe=d==null?void 0:d.menuInfo)==null?void 0:oe.mainmenu)??[],fe=new Map(W.map(_e=>[_e.key,_e.childKeys])),we=le.map(_e=>({..._e,childKeys:fe.get(_e.categoryKey)??[]})),$e=(be=o.find(_e=>_e.name.toLowerCase()===e.toLowerCase()))==null?void 0:be.name;window.mapsindoors.services.LocationsService.getLocations({venue:$e}).then(_e=>{let Je=new Map;for(const Ye of _e){const xt=Object.keys(Ye.properties.categories);for(const dt of xt)if(le){const Pt=we.find(Tt=>Tt.categoryKey===dt);Pt&&Je.set(Pt.categoryKey,{displayName:Ye.properties.categories[dt],iconUrl:Pt==null?void 0:Pt.iconUrl,childKeys:(Pt==null?void 0:Pt.childKeys)??[]})}}const nt=Array.from(Je).sort((Ye,xt)=>{var Tt,ci,Ot,wt;const dt=(ci=(Tt=d.menuInfo)==null?void 0:Tt.mainmenu)==null?void 0:ci.findIndex($t=>$t.categoryKey===Ye[0]),Pt=(wt=(Ot=d.menuInfo)==null?void 0:Ot.mainmenu)==null?void 0:wt.findIndex($t=>$t.categoryKey===xt[0]);return dt-Pt});_(nt)})};return[i,q]},nq=kn({key:"showRoadNames",default:!0});function rq(){const e=Mo(_v),i=Mo(wc),o=Mo(Fm),u=Mo(dv),d=Mo(hv),_=Mo(zm),w=Mo(Um),a=Mo(Vm);return()=>{e(),i(),o(),u(),d(),_(),w(),a()}}qE(),az.propTypes={apiKey:ct.string.isRequired,gmApiKey:ct.string,mapboxAccessToken:ct.string,venue:ct.string,locationId:ct.string,primaryColor:ct.string,logo:ct.string,appUserRoles:ct.arrayOf(ct.string),directionsFrom:ct.string,directionsTo:ct.string,externalIDs:ct.arrayOf(ct.string),tileStyle:ct.string,startZoomLevel:ct.number,bearing:ct.number,pitch:ct.number,gmMapId:ct.string,useMapProviderModule:ct.bool,kioskOriginLocationId:ct.string,language:ct.string,timeout:ct.number,useKeyboard:ct.bool,miTransitionLevel:ct.number,category:ct.string,searchAllVenues:ct.bool,hideNonMatches:ct.bool,showExternalIDs:ct.bool,showRoadNames:ct.bool,searchExternalLocations:ct.bool,supportsUrlParameters:ct.bool,center:ct.string,useAppTitle:ct.bool,showMapMarkers:ct.bool,mapboxMapStyle:ct.string,devicePosition:ct.object};function az({apiKey:e,gmApiKey:i,mapboxAccessToken:o,venue:u,locationId:d,primaryColor:_,logo:w,appUserRoles:a,directionsFrom:E,directionsTo:j,externalIDs:Q,tileStyle:q,startZoomLevel:W,bearing:le,pitch:fe,gmMapId:we,useMapProviderModule:$e,kioskOriginLocationId:me,language:ie,supportsUrlParameters:te,useKeyboard:oe,timeout:be,miTransitionLevel:_e,category:Je,searchAllVenues:nt,hideNonMatches:Ye,showRoadNames:xt,showExternalIDs:dt,searchExternalLocations:Pt,center:Tt,useAppTitle:ci,showMapMarkers:Ot,mapboxMapStyle:wt,devicePosition:$t}){const[St,Ht]=xe.useState(!1),[Z,ne]=xe.useState({brandingColor:_}),[,T]=sn(W3),[,k]=sn(q3),[,F]=sn(ev),[U,G]=sn(sv),[re,de]=sn(km),[ue,Me]=sn(wc),Fe=Ci(Om),[,et]=sn(ov),[Ue,Ke]=sn(Sl),[,Ve]=sn(d4),[,mt]=sn(lW),yt=Ci(ca),[Mt,Et]=sn(Vh),[,di]=sn(Dl),[,qt]=sn(X3),[,ui]=sn(TN),Wt=DN(),[,wi]=sn(wL),[,Ei]=sn(OL),[,jt]=sn(eq),[,kt]=sn(A4),[,Pi]=sn(pv),[,Ai]=sn(jL),[,$i]=sn(GN),[,xn]=sn(fv),[,fn]=sn(nq),[,tn]=sn(x4),[,On]=sn(AN),[vt,ft]=xe.useState(),si=xe.useRef(),[,Zt]=sn(CL),ti=Ci(gv),[yi,Di]=xe.useState(!0),[Qi,cn]=xe.useState(!0),Ji=UL(E),wn=UL(j),[Dt,Vn]=xe.useState(!1),[,gr]=sn(iv),[xr,Ze]=sn(tv),[K,ae]=xe.useState(),[he,Re]=sn(Rh),[,ke]=sn(MN),[,Le]=sn(wN),[,ot]=sn(IN),[,Qe]=sn(K3),[,st]=sn(nv),Ft=Ja(),zt=aW(),[Ct,ii,hi,qi,fi,ki]=oW(),[Gi,vi]=xe.useState(!1),ji=Ci(wv),[Zi,un]=xe.useState(0),[gn,zn]=iq(),lr=rq(),[,Rn]=sn(zm);function cr(){return new Promise(Hi=>{if(window.mapsindoors!==void 0)return Hi();const mr=document.createElement("script");mr.setAttribute("type","text/javascript"),mr.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.46.0/mapsindoors-4.46.0.js.gz"),mr.setAttribute("integrity","sha384-Ygw6sO8Q71z/FxztdpmuOo+hYFf5ozKSIrrm+MDsIaRapLjN7STzmbVNEfHegsqt"),mr.setAttribute("crossorigin","anonymous"),document.body.appendChild(mr),mr.onload=()=>{Hi()}})}xe.useEffect(()=>{var Hi;Mt||(ie?Et(ie):(Hi=he==null?void 0:he.appSettings)!=null&&Hi.language&&Et(he.appSettings.language))},[ie,he,Mt,Et]),xe.useEffect(()=>{Wt&&ds()},[Wt]),xe.useEffect(()=>(cr().then(()=>{vi(!0)}),()=>{ae()}),[]),xe.useEffect(()=>{var Hi;if(Gi){const mr=Mt??ie??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.language)??navigator.language;window.mapsindoors.MapsIndoors.setLanguage(mr.split("-")[0]),window.mapsindoors.services.LocationsService.once("update_completed",()=>{Fe.length>0&&zn(),re.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(To=>{To=To.map(Bo=>(Bo.image=he.venueImages[Bo.name.toLowerCase()],Bo)),de(To)}),ue&&window.mapsindoors.services.LocationsService.getLocation(ue.id).then(To=>Me(To))}),(!jo.language||jo.language!==mr)&&(jo.isInitialized?jo.changeLanguage(mr):XY(mr))}},[Mt,ie,Gi,he]),xe.useEffect(()=>{Gi&&(T(e),G(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(Hi=>(Re(Hi),Hi)),window.mapsindoors.services.SolutionsService.getSolution().then(Hi=>(ke(Hi),Hi)),new Promise(Hi=>setTimeout(Hi,3e3))]).then(([Hi,mr])=>{Hi=Hi.map(To=>(To.image=mr.venueImages[To.name.toLowerCase()],To)),de(Hi)}),G(!1))},[e,Gi]),xe.useEffect(()=>{var Hi,mr,To,Bo;Gi&&he&&(jr(o)&&jr(i)&&jr((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.mapboxAccessToken)&&jr((mr=he==null?void 0:he.appSettings)==null?void 0:mr.gmKey)?Rn({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}):(F(o||((To=he.appSettings)==null?void 0:To.mapboxAccessToken)),k(i||((Bo=he.appSettings)==null?void 0:Bo.gmKey))))},[i,o,Gi,he]),xe.useEffect(()=>{Gi&&window.mapsindoors.services.SolutionsService.getUserRoles().then(Hi=>{const mr=Hi.filter(To=>a==null?void 0:a.includes(To.name));window.mapsindoors.MapsIndoors.setUserRoles(mr)})},[a,Gi]),xe.useEffect(()=>{Gi&&(Q?window.mapsindoors.services.LocationsService.getLocationsByExternalId(Q).then(Hi=>{gr(Hi)}):gr([]))},[Q,Gi]),xe.useEffect(()=>{Gi&&(et(d),d&&window.mapsindoors.services.LocationsService.getLocation(d).then(Hi=>{Hi&&(gn(Hi.properties.venueId),Me(Hi))}))},[d,Gi,Zi]),xe.useEffect(()=>{Gi&&mt(we)},[we,Gi]),xe.useEffect(()=>{switch(hi){case fi.SEARCH:case fi.EXTERNALIDS:case fi.VENUE_SELECTOR:si.current=Df.SetCurrentLocation;break;case fi.LOCATION_DETAILS:qi&&!ue&&Me(qi),si.current=Df.SetCurrentLocation;break;case fi.WAYFINDING:si.current=Df.SetWayfindingLocation;break;case fi.DIRECTIONS:si.current=Df.None;break}hi===fi.DIRECTIONS?(ae(xr),Ze([])):Ze(K)},[hi]),xe.useEffect(()=>{var Hi;gn(u??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.venue))},[u,he]),xe.useEffect(()=>{Le(q)},[q]),xe.useEffect(()=>{var mr;const Hi="#003C3B";Ke(_??((mr=he==null?void 0:he.appSettings)==null?void 0:mr.primaryColor)??Hi)},[_,he]),xe.useEffect(()=>{var Hi,mr,To,Bo,il,Ll;ne({brandingColor:Ue,showRoadNames:xt!==void 0?xt:typeof((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.showRoadNames)=="string"?he.appSettings.showRoadNames.toLowerCase()==="true":(mr=he==null?void 0:he.appSettings)==null?void 0:mr.showRoadNames,showMapMarkers:Ot!==void 0?Ot:typeof((To=he==null?void 0:he.appSettings)==null?void 0:To.showMapMarkers)=="string"?he.appSettings.showMapMarkers.toLowerCase()==="true":(Bo=he==null?void 0:he.appSettings)==null?void 0:Bo.showMapMarkers,miTransitionLevel:_e,minZoom:(il=he==null?void 0:he.appSettings)!=null&&il.ignoreViewportBounds?1:zL.minZoom,mapboxMapStyle:((Ll=he==null?void 0:he.appSettings)==null?void 0:Ll.mapboxMapStyle)||wt})},[_,xt,_e,Ue,Ot,he]),xe.useEffect(()=>{var Hi;ot(W??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.startZoomLevel))},[W,he]),xe.useEffect(()=>{var mr;const Hi=fe??((mr=he==null?void 0:he.appSettings)==null?void 0:mr.pitch)??null;jr(Hi)?vt&&st(45):st(Hi)},[fe,vt,he]),xe.useEffect(()=>{var Hi;Qe(le??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.bearing)??null)},[le,he]),xe.useEffect(()=>{var mr;const Hi="https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg";he&&Ve(w??((mr=he==null?void 0:he.appSettings)==null?void 0:mr.logo)??Hi)},[w,he]),xe.useEffect(()=>{jt(_e)},[_e]),xe.useEffect(()=>{ue&&ue.id!==me?yt!=null&&yt.selectLocation&&yt.selectLocation(ue):yt!=null&&yt.deselectLocation&&yt.deselectLocation()},[ue]),xe.useEffect(()=>{Gi&&(qt(me),me?window.mapsindoors.services.LocationsService.getLocation(me).then(Hi=>{gn(Hi.properties.venueId),di(Hi),yt==null||yt.setNonCollidingLocation(Hi)}):di(),me&&Ft?(Di(!1),cn(!1)):(Di(!0),cn(!0)))},[me,Gi,yt]),xe.useEffect(()=>{ui(be)},[be]),xe.useEffect(()=>{wi(te)},[te]),xe.useEffect(()=>{oe&&me&&Ei(oe)},[oe,me]),xe.useEffect(()=>{Gi&&Je&&Fe.find(Hi=>Hi[0]===Je)&&kt(Je)},[Je,Fe,Gi]),xe.useEffect(()=>{Pi(nt)},[nt]),xe.useEffect(()=>{$i(Ye)},[Ye]),xe.useEffect(()=>{xn(dt)},[dt]),xe.useEffect(()=>{fn(xt)},[xt]),xe.useEffect(()=>{tn(Pt)},[Pt]),xe.useEffect(()=>{var Hi;On(Tt??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.center))},[Tt,he]),xe.useEffect(()=>{var Hi;ci===!0&&!jr((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.title)&&(document.title=he.appSettings.title)},[ci,he]);function xo(){U===!1&&G(!0)}function Ro(Hi){switch(si.current){case Df.SetCurrentLocation:Hi.id!==me&&Me(Hi);break;case Df.SetWayfindingLocation:Zt(Hi);break}}function ds(){zt(),ki(),un(Hi=>Hi+1),kt(null)}function Xs(){lr(),ki(),un(Hi=>Hi+1),kt(null)}return xe.useEffect(()=>{Gi&&Je&&Fe.find(Hi=>Hi[0]===Je)&&(kt(Je),Ai(Je))},[Je,Fe,Gi]),xe.useEffect(()=>{var Hi;St||(ie&&Mt!==ie?Et(ie):!ie&&((Hi=he==null?void 0:he.appSettings)!=null&&Hi.language)&&Mt!==he.appSettings.language&&Et(he.appSettings.language))},[ie,he,Mt,Et,St]),Oe.jsxs("div",{className:`mapsindoors-map
50
+ `;return typeof u=="function"&&u(null,W),W};const KW=uW,$4=VL,sz=nz,XW=rz;function Y4(e,i,o,u,d){const _=[].slice.call(arguments,1),w=_.length,a=typeof _[w-1]=="function";if(!a&&!KW())throw new Error("Callback required as last argument");if(a){if(w<2)throw new Error("Too few arguments provided");w===2?(d=o,o=i,i=u=void 0):w===3&&(i.getContext&&typeof d>"u"?(d=u,u=void 0):(d=u,u=o,o=i,i=void 0))}else{if(w<1)throw new Error("Too few arguments provided");return w===1?(o=i,i=u=void 0):w===2&&!i.getContext&&(u=o,o=i,i=void 0),new Promise(function(E,j){try{const Q=$4.create(o,u);E(e(Q,i,u))}catch(Q){j(Q)}})}try{const E=$4.create(o,u);d(null,e(E,i,u))}catch(E){d(E)}}Qm.create=$4.create,Qm.toCanvas=Y4.bind(null,sz.render),Qm.toDataURL=Y4.bind(null,sz.renderToDataURL),Qm.toString=Y4.bind(null,function(e,i,o){return XW.render(e,o)});function JW(){const{t:e}=Po(),[i,o]=sn(gv),u=xe.useRef(),d=Ci(Sl);return xe.useEffect(()=>{const _={errorCorrectionLevel:"L",margin:0,width:"225"};Qm.toDataURL(i,_).then(w=>{u.current.src=w})},[d,i]),Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"background"}),Oe.jsxs("div",{className:"qr-code",children:[Oe.jsx("img",{alt:"",className:"qr-code__image",ref:u}),Oe.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Oe.jsx("button",{className:"qr-code__button",style:{background:d},onClick:()=>o(null),children:e("Done")})]})]})}const eq=kn({key:"miTransitionLevel",default:void 0}),yle="";function tq(){const{t:e}=Po(),i=Ci(Sl),o=Ci(RL),u=Tu(),d=xe.useRef(),_=xe.useRef(),w=xe.useRef(),[a,E]=sn(wv),[j,Q]=xe.useState(!1),q=xe.useRef();let W=700;return xe.useEffect(()=>{a&&u&&Q(q.current.clientHeight>W)},[a,u]),xe.useEffect(()=>{if(a&&u&&j){const le=document.querySelector(".legend__sections");w.current.scrollContainerElementRef=le}},[a,o,j]),Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"legend__background"}),Oe.jsxs("div",{className:"legend",ref:d,children:[o.length>0&&Oe.jsx("div",{className:`legend__sections ${j?"legend__sections--scrollable":""}`,ref:q,style:{maxHeight:j?`${W}px`:"auto",overflowY:j?"scroll":"auto"},children:o.map((le,fe)=>Oe.jsxs("div",{className:"legend__section",ref:_,children:[Oe.jsx("div",{className:"legend__heading",children:le.heading}),Oe.jsx("div",{className:"legend__content",children:le.content})]},fe))}),Oe.jsx("button",{className:"legend__button",style:{background:i},onClick:()=>E(!1),children:e("Close")}),u&&a&&j&&Oe.jsx("div",{className:"scroll-buttons",children:Oe.jsx("mi-scroll-buttons",{ref:w})})]})]})}const iq=()=>{const[e,i]=sn(Mu),o=Ci(km),u=Ci(ca),d=Ci(Rh),[,_]=sn(Om),[,w]=sn(xv),a=Ci(b4),[E,j]=sn(E4);xe.useEffect(()=>{var W;!e&&o.length&&i((W=Q())==null?void 0:W.name)},[e,o]),xe.useEffect(()=>{e&&!E&&j(e)},[e]),xe.useEffect(()=>{u&&o.length&&e&&d&&(u.setVenue(o.find(W=>W.name.toLowerCase()===e.toLowerCase())),q(),w([]),a&&(a.value=""))},[u,e,o,d]);const Q=()=>o.length===1?o[0]:[...o].sort(function(W,le){return W.venueInfo.name>le.venueInfo.name?1:le.venueInfo.name>W.venueInfo.name?-1:0})[0],q=async()=>{var me,ie,te,oe,be;const W=await((te=(ie=(me=window==null?void 0:window.mapsindoors)==null?void 0:me.services)==null?void 0:ie.SolutionsService)==null?void 0:te.getCategories()),le=((oe=d==null?void 0:d.menuInfo)==null?void 0:oe.mainmenu)??[],fe=new Map(W.map(_e=>[_e.key,_e.childKeys])),we=le.map(_e=>({..._e,childKeys:fe.get(_e.categoryKey)??[]})),$e=(be=o.find(_e=>_e.name.toLowerCase()===e.toLowerCase()))==null?void 0:be.name;window.mapsindoors.services.LocationsService.getLocations({venue:$e}).then(_e=>{let Je=new Map;for(const Ye of _e){const xt=Object.keys(Ye.properties.categories);for(const dt of xt)if(le){const Pt=we.find(Tt=>Tt.categoryKey===dt);Pt&&Je.set(Pt.categoryKey,{displayName:Ye.properties.categories[dt],iconUrl:Pt==null?void 0:Pt.iconUrl,childKeys:(Pt==null?void 0:Pt.childKeys)??[]})}}const nt=Array.from(Je).sort((Ye,xt)=>{var Tt,ci,Ot,wt;const dt=(ci=(Tt=d.menuInfo)==null?void 0:Tt.mainmenu)==null?void 0:ci.findIndex($t=>$t.categoryKey===Ye[0]),Pt=(wt=(Ot=d.menuInfo)==null?void 0:Ot.mainmenu)==null?void 0:wt.findIndex($t=>$t.categoryKey===xt[0]);return dt-Pt});_(nt)})};return[i,q]},nq=kn({key:"showRoadNames",default:!0});function rq(){const e=Mo(_v),i=Mo(wc),o=Mo(Fm),u=Mo(dv),d=Mo(hv),_=Mo(zm),w=Mo(Um),a=Mo(Vm);return()=>{e(),i(),o(),u(),d(),_(),w(),a()}}qE(),az.propTypes={apiKey:ct.string.isRequired,gmApiKey:ct.string,mapboxAccessToken:ct.string,venue:ct.string,locationId:ct.string,primaryColor:ct.string,logo:ct.string,appUserRoles:ct.arrayOf(ct.string),directionsFrom:ct.string,directionsTo:ct.string,externalIDs:ct.arrayOf(ct.string),tileStyle:ct.string,startZoomLevel:ct.number,bearing:ct.number,pitch:ct.number,gmMapId:ct.string,useMapProviderModule:ct.bool,kioskOriginLocationId:ct.string,language:ct.string,timeout:ct.number,useKeyboard:ct.bool,miTransitionLevel:ct.number,category:ct.string,searchAllVenues:ct.bool,hideNonMatches:ct.bool,showExternalIDs:ct.bool,showRoadNames:ct.bool,searchExternalLocations:ct.bool,supportsUrlParameters:ct.bool,center:ct.string,useAppTitle:ct.bool,showMapMarkers:ct.bool,mapboxMapStyle:ct.string,devicePosition:ct.object};function az({apiKey:e,gmApiKey:i,mapboxAccessToken:o,venue:u,locationId:d,primaryColor:_,logo:w,appUserRoles:a,directionsFrom:E,directionsTo:j,externalIDs:Q,tileStyle:q,startZoomLevel:W,bearing:le,pitch:fe,gmMapId:we,useMapProviderModule:$e,kioskOriginLocationId:me,language:ie,supportsUrlParameters:te,useKeyboard:oe,timeout:be,miTransitionLevel:_e,category:Je,searchAllVenues:nt,hideNonMatches:Ye,showRoadNames:xt,showExternalIDs:dt,searchExternalLocations:Pt,center:Tt,useAppTitle:ci,showMapMarkers:Ot,mapboxMapStyle:wt,devicePosition:$t}){const[St,Ht]=xe.useState(!1),[Z,ne]=xe.useState({brandingColor:_}),[,T]=sn(W3),[,k]=sn(q3),[,F]=sn(ev),[U,G]=sn(sv),[re,de]=sn(km),[ue,Me]=sn(wc),Fe=Ci(Om),[,et]=sn(ov),[Ue,Ke]=sn(Sl),[,Ve]=sn(d4),[,mt]=sn(lW),yt=Ci(ca),[Mt,Et]=sn(Vh),[,di]=sn(Dl),[,qt]=sn(X3),[,ui]=sn(TN),Wt=DN(),[,wi]=sn(wL),[,Ei]=sn(OL),[,jt]=sn(eq),[,kt]=sn(A4),[,Pi]=sn(pv),[,Ai]=sn(jL),[,$i]=sn(GN),[,xn]=sn(fv),[,fn]=sn(nq),[,tn]=sn(x4),[,On]=sn(AN),[vt,ft]=xe.useState(),si=xe.useRef(),[,Zt]=sn(CL),ti=Ci(gv),[yi,Di]=xe.useState(!0),[Qi,cn]=xe.useState(!0),Ji=UL(E),wn=UL(j),[Dt,Vn]=xe.useState(!1),[,gr]=sn(iv),[xr,Ze]=sn(tv),[K,ae]=xe.useState(),[he,Re]=sn(Rh),[,ke]=sn(MN),[,Le]=sn(wN),[,ot]=sn(IN),[,Qe]=sn(K3),[,st]=sn(nv),Ft=Ja(),zt=aW(),[Ct,ii,hi,qi,fi,ki]=oW(),[Gi,vi]=xe.useState(!1),ji=Ci(wv),[Zi,un]=xe.useState(0),[gn,zn]=iq(),lr=rq(),[,Rn]=sn(zm);function cr(){return new Promise(Hi=>{if(window.mapsindoors!==void 0)return Hi();const mr=document.createElement("script");mr.setAttribute("type","text/javascript"),mr.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.46.1/mapsindoors-4.46.1.js.gz"),mr.setAttribute("integrity","sha384-UIZ8ZRvII99qxHaf7YG0mGf2g6idRr6YDVpCQkVeP+zJntNk6m+aZZ4ekFVghmDH"),mr.setAttribute("crossorigin","anonymous"),document.body.appendChild(mr),mr.onload=()=>{Hi()}})}xe.useEffect(()=>{var Hi;Mt||(ie?Et(ie):(Hi=he==null?void 0:he.appSettings)!=null&&Hi.language&&Et(he.appSettings.language))},[ie,he,Mt,Et]),xe.useEffect(()=>{Wt&&ds()},[Wt]),xe.useEffect(()=>(cr().then(()=>{vi(!0)}),()=>{ae()}),[]),xe.useEffect(()=>{var Hi;if(Gi){const mr=Mt??ie??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.language)??navigator.language;window.mapsindoors.MapsIndoors.setLanguage(mr.split("-")[0]),window.mapsindoors.services.LocationsService.once("update_completed",()=>{Fe.length>0&&zn(),re.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(To=>{To=To.map(Bo=>(Bo.image=he.venueImages[Bo.name.toLowerCase()],Bo)),de(To)}),ue&&window.mapsindoors.services.LocationsService.getLocation(ue.id).then(To=>Me(To))}),(!jo.language||jo.language!==mr)&&(jo.isInitialized?jo.changeLanguage(mr):XY(mr))}},[Mt,ie,Gi,he]),xe.useEffect(()=>{Gi&&(T(e),G(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(Hi=>(Re(Hi),Hi)),window.mapsindoors.services.SolutionsService.getSolution().then(Hi=>(ke(Hi),Hi)),new Promise(Hi=>setTimeout(Hi,3e3))]).then(([Hi,mr])=>{Hi=Hi.map(To=>(To.image=mr.venueImages[To.name.toLowerCase()],To)),de(Hi)}),G(!1))},[e,Gi]),xe.useEffect(()=>{var Hi,mr,To,Bo;Gi&&he&&(jr(o)&&jr(i)&&jr((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.mapboxAccessToken)&&jr((mr=he==null?void 0:he.appSettings)==null?void 0:mr.gmKey)?Rn({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}):(F(o||((To=he.appSettings)==null?void 0:To.mapboxAccessToken)),k(i||((Bo=he.appSettings)==null?void 0:Bo.gmKey))))},[i,o,Gi,he]),xe.useEffect(()=>{Gi&&window.mapsindoors.services.SolutionsService.getUserRoles().then(Hi=>{const mr=Hi.filter(To=>a==null?void 0:a.includes(To.name));window.mapsindoors.MapsIndoors.setUserRoles(mr)})},[a,Gi]),xe.useEffect(()=>{Gi&&(Q?window.mapsindoors.services.LocationsService.getLocationsByExternalId(Q).then(Hi=>{gr(Hi)}):gr([]))},[Q,Gi]),xe.useEffect(()=>{Gi&&(et(d),d&&window.mapsindoors.services.LocationsService.getLocation(d).then(Hi=>{Hi&&(gn(Hi.properties.venueId),Me(Hi))}))},[d,Gi,Zi]),xe.useEffect(()=>{Gi&&mt(we)},[we,Gi]),xe.useEffect(()=>{switch(hi){case fi.SEARCH:case fi.EXTERNALIDS:case fi.VENUE_SELECTOR:si.current=Df.SetCurrentLocation;break;case fi.LOCATION_DETAILS:qi&&!ue&&Me(qi),si.current=Df.SetCurrentLocation;break;case fi.WAYFINDING:si.current=Df.SetWayfindingLocation;break;case fi.DIRECTIONS:si.current=Df.None;break}hi===fi.DIRECTIONS?(ae(xr),Ze([])):Ze(K)},[hi]),xe.useEffect(()=>{var Hi;gn(u??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.venue))},[u,he]),xe.useEffect(()=>{Le(q)},[q]),xe.useEffect(()=>{var mr;const Hi="#003C3B";Ke(_??((mr=he==null?void 0:he.appSettings)==null?void 0:mr.primaryColor)??Hi)},[_,he]),xe.useEffect(()=>{var Hi,mr,To,Bo,il,Ll;ne({brandingColor:Ue,showRoadNames:xt!==void 0?xt:typeof((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.showRoadNames)=="string"?he.appSettings.showRoadNames.toLowerCase()==="true":(mr=he==null?void 0:he.appSettings)==null?void 0:mr.showRoadNames,showMapMarkers:Ot!==void 0?Ot:typeof((To=he==null?void 0:he.appSettings)==null?void 0:To.showMapMarkers)=="string"?he.appSettings.showMapMarkers.toLowerCase()==="true":(Bo=he==null?void 0:he.appSettings)==null?void 0:Bo.showMapMarkers,miTransitionLevel:_e,minZoom:(il=he==null?void 0:he.appSettings)!=null&&il.ignoreViewportBounds?1:zL.minZoom,mapboxMapStyle:((Ll=he==null?void 0:he.appSettings)==null?void 0:Ll.mapboxMapStyle)||wt})},[_,xt,_e,Ue,Ot,he]),xe.useEffect(()=>{var Hi;ot(W??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.startZoomLevel))},[W,he]),xe.useEffect(()=>{var mr;const Hi=fe??((mr=he==null?void 0:he.appSettings)==null?void 0:mr.pitch)??null;jr(Hi)?vt&&st(45):st(Hi)},[fe,vt,he]),xe.useEffect(()=>{var Hi;Qe(le??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.bearing)??null)},[le,he]),xe.useEffect(()=>{var mr;const Hi="https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg";he&&Ve(w??((mr=he==null?void 0:he.appSettings)==null?void 0:mr.logo)??Hi)},[w,he]),xe.useEffect(()=>{jt(_e)},[_e]),xe.useEffect(()=>{ue&&ue.id!==me?yt!=null&&yt.selectLocation&&yt.selectLocation(ue):yt!=null&&yt.deselectLocation&&yt.deselectLocation()},[ue]),xe.useEffect(()=>{Gi&&(qt(me),me?window.mapsindoors.services.LocationsService.getLocation(me).then(Hi=>{gn(Hi.properties.venueId),di(Hi),yt==null||yt.setNonCollidingLocation(Hi)}):di(),me&&Ft?(Di(!1),cn(!1)):(Di(!0),cn(!0)))},[me,Gi,yt]),xe.useEffect(()=>{ui(be)},[be]),xe.useEffect(()=>{wi(te)},[te]),xe.useEffect(()=>{oe&&me&&Ei(oe)},[oe,me]),xe.useEffect(()=>{Gi&&Je&&Fe.find(Hi=>Hi[0]===Je)&&kt(Je)},[Je,Fe,Gi]),xe.useEffect(()=>{Pi(nt)},[nt]),xe.useEffect(()=>{$i(Ye)},[Ye]),xe.useEffect(()=>{xn(dt)},[dt]),xe.useEffect(()=>{fn(xt)},[xt]),xe.useEffect(()=>{tn(Pt)},[Pt]),xe.useEffect(()=>{var Hi;On(Tt??((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.center))},[Tt,he]),xe.useEffect(()=>{var Hi;ci===!0&&!jr((Hi=he==null?void 0:he.appSettings)==null?void 0:Hi.title)&&(document.title=he.appSettings.title)},[ci,he]);function xo(){U===!1&&G(!0)}function Ro(Hi){switch(si.current){case Df.SetCurrentLocation:Hi.id!==me&&Me(Hi);break;case Df.SetWayfindingLocation:Zt(Hi);break}}function ds(){zt(),ki(),un(Hi=>Hi+1),kt(null)}function Xs(){lr(),ki(),un(Hi=>Hi+1),kt(null)}return xe.useEffect(()=>{Gi&&Je&&Fe.find(Hi=>Hi[0]===Je)&&(kt(Je),Ai(Je))},[Je,Fe,Gi]),xe.useEffect(()=>{var Hi;St||(ie&&Mt!==ie?Et(ie):!ie&&((Hi=he==null?void 0:he.appSettings)!=null&&Hi.language)&&Mt!==he.appSettings.language&&Et(he.appSettings.language))},[ie,he,Mt,Et,St]),Oe.jsxs("div",{className:`mapsindoors-map
51
51
  ${hi===fi.DIRECTIONS?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"}
52
52
  ${re.length>1&&yi?"":"mapsindoors-map--hide-venue-selector"}
53
53
  ${Qi?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,children:[Oe.jsx(cW,{}),!U&&Oe.jsx(pZ,{}),re.length>1&&yi&&Oe.jsx(aL,{onOpen:()=>Ct(fi.VENUE_SELECTOR),onClose:()=>ii(),active:hi===fi.VENUE_SELECTOR}),ti&&Oe.jsx(JW,{}),ji&&Oe.jsx(tq,{}),Dt&&Oe.jsxs(xe.Fragment,{children:[Ft&&Oe.jsx(FL,{directionsFromLocation:Ji,directionsToLocation:wn,pushAppView:Ct,currentAppView:hi,appViews:fi,onRouteFinished:()=>Xs()}),!Ft&&Oe.jsx(BL,{directionsFromLocation:Ji,directionsToLocation:wn,pushAppView:Ct,currentAppView:hi,appViews:fi,onRouteFinished:()=>Xs()})]},Zi),Oe.jsx(JN,{useMapProviderModule:$e,onMapPositionKnown:()=>xo(),onMapPositionInvestigating:()=>Vn(!0),onLocationClick:Hi=>Ro(Hi),onViewModeSwitchKnown:Hi=>ft(Hi),resetCount:Zi,mapOptions:Z,gmMapId:we,isWayfindingOrDirections:hi===fi.WAYFINDING||hi===fi.DIRECTIONS,currentLanguage:Mt,setLanguage:Hi=>{Et(Hi),Ht(!0)},devicePosition:$t})]})}function bc(e,i,o,u){let d;return e===!0&&!jr(u)?u===!0||u==="true"?d=!0:(u===!1||u!=="true")&&(d=!1):jr(o)?jr(i)||(d=i):d=typeof o=="boolean"?o:!1,d}lz.propTypes={apiKey:ct.string,gmApiKey:ct.string,mapboxAccessToken:ct.string,venue:ct.string,locationId:ct.string,primaryColor:ct.string,logo:ct.string,appUserRoles:ct.arrayOf(ct.string),directionsFrom:ct.string,directionsTo:ct.string,externalIDs:ct.arrayOf(ct.string),tileStyle:ct.string,startZoomLevel:ct.number,pitch:ct.number,bearing:ct.number,supportsUrlParameters:ct.bool,gmMapId:ct.string,useMapProviderModule:ct.bool,kioskOriginLocationId:ct.string,timeout:ct.number,language:ct.string,useKeyboard:ct.bool,miTransitionLevel:ct.number,category:ct.string,searchAllVenues:ct.bool,hideNonMatches:ct.bool,showExternalIDs:ct.bool,showRoadNames:ct.bool,searchExternalLocations:ct.bool,center:ct.string,useAppTitle:ct.bool,showMapMarkers:ct.bool,mapboxMapStyle:ct.string,devicePosition:ct.object};function lz(e){const[i,o]=xe.useState();return xe.useEffect(()=>{var F,U;const u=window.location.search,d=new URLSearchParams(u),_={apiKey:"mapspeople3d",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1,searchExternalLocations:!0,showExternalIDs:!1,hideNonMatches:!1,useAppTitle:!1},w=d.get("apiKey"),a=d.get("venue"),E=d.get("locationId"),j=d.get("logo"),Q=d.get("directionsFrom"),q=d.get("directionsTo"),W=d.get("tileStyle"),le=Number(d.get("startZoomLevel")),fe=Number(d.get("pitch")),we=Number(d.get("bearing")),$e=d.get("gmApiKey"),me=d.get("mapboxAccessToken"),ie=d.get("primaryColor"),te=(F=d.get("appUserRoles"))==null?void 0:F.split(","),oe=(U=d.get("externalIDs"))==null?void 0:U.split(","),be=d.get("gmMapId"),_e=d.get("kioskOriginLocationId"),Je=Number(d.get("timeout")),nt=d.get("language"),Ye=Number(d.get("miTransitionLevel")),xt=d.get("category"),dt=d.get("useMapProviderModule"),Pt=d.get("useKeyboard"),Tt=d.get("searchAllVenues"),ci=d.get("hideNonMatches"),Ot=d.get("showExternalIDs"),wt=d.get("showRoadNames"),$t=d.get("searchExternalLocations"),St=d.get("center"),Ht=d.get("useAppTitle"),Z=d.get("showMapMarkers"),ne=d.get("mapboxMapStyle"),T=e.supportsUrlParameters&&w?w:e.apiKey||_.apiKey;let k=e.supportsUrlParameters&&a?a:e.venue||_.venue;T==="mapspeople3d"&&!k&&(k="AUSTINOFFICE"),o({apiKey:T,venue:k,locationId:e.supportsUrlParameters&&E?E:e.locationId,logo:e.supportsUrlParameters&&j?j:e.logo,directionsFrom:e.supportsUrlParameters&&Q?Q:e.directionsFrom,directionsTo:e.supportsUrlParameters&&q?q:e.directionsTo,tileStyle:e.supportsUrlParameters&&W?W:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&le?le:e.startZoomLevel,pitch:e.supportsUrlParameters&&fe?fe:e.pitch,bearing:e.supportsUrlParameters&&we?we:e.bearing,gmApiKey:e.supportsUrlParameters&&$e?$e:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&me?me:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&ie?"#"+ie:e.primaryColor,appUserRoles:e.supportsUrlParameters&&te?te:e.appUserRoles,externalIDs:e.supportsUrlParameters&&oe?oe:e.externalIDs,gmMapId:e.supportsUrlParameters&&be?be:e.gmMapId,kioskOriginLocationId:e.supportsUrlParameters&&_e?_e:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&Je?Je:e.timeout,language:e.supportsUrlParameters&&nt?nt:e.language,miTransitionLevel:e.supportsUrlParameters&&Ye?Ye:e.miTransitionLevel,category:e.supportsUrlParameters&&xt?xt:e.category,center:e.supportsUrlParameters&&St?St:e.center,devicePosition:e.devicePosition,useKeyboard:bc(e.supportsUrlParameters,_.useKeyboard,e.useKeyboard,Pt),useMapProviderModule:bc(e.supportsUrlParameters,_.useMapProviderModule,e.useMapProviderModule,dt),searchAllVenues:bc(e.supportsUrlParameters,_.searchAllVenues,e.searchAllVenues,Tt),hideNonMatches:bc(e.supportsUrlParameters,_.hideNonMatches,e.hideNonMatches,ci),showRoadNames:bc(e.supportsUrlParameters,_.showRoadNames,e.showRoadNames,wt),showExternalIDs:bc(e.supportsUrlParameters,_.showExternalIDs,e.showExternalIDs,Ot),searchExternalLocations:bc(e.supportsUrlParameters,_.searchExternalLocations,e.searchExternalLocations,$t),supportsUrlParameters:e.supportsUrlParameters,useAppTitle:bc(e.supportsUrlParameters,_.useAppTitle,e.useAppTitle,Ht),showMapMarkers:bc(e.supportsUrlParameters,_.showMapMarkers,e.showMapMarkers,Z),mapboxMapStyle:e.supportsUrlParameters&&ne?ne:e.mapboxMapStyle})},[e]),Oe.jsx(C$,{children:i&&Oe.jsx(az,{...i})})}var cz,uz=_u;cz=uz.createRoot,uz.hydrateRoot;var oq=Object.defineProperty,sq=(e,i,o)=>i in e?oq(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,Ev=(e,i,o)=>(sq(e,typeof i!="symbol"?i+"":i,o),o);const aq={stringify:e=>e,parse:e=>e},lq={stringify:e=>`${e}`,parse:e=>parseFloat(e)},cq={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},uq={stringify:e=>e.name,parse:(e,i,o)=>{const u=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof u=="function"?u.bind(o):void 0}},hq={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},G4={string:aq,number:lq,boolean:cq,function:uq,json:hq};function dq(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,o,u)=>`${o}-${u.toLowerCase()}`)}const Nv=Symbol.for("r2wc.render"),Lv=Symbol.for("r2wc.connected"),Qh=Symbol.for("r2wc.context"),Au=Symbol.for("r2wc.props");function fq(e,i,o){var u,d,_;i.props||(i.props=e.propTypes?Object.keys(e.propTypes):[]);const w=Array.isArray(i.props)?i.props.slice():Object.keys(i.props),a={},E={},j={};for(const q of w){a[q]=Array.isArray(i.props)?"string":i.props[q];const W=dq(q);E[q]=W,j[W]=q}class Q extends HTMLElement{constructor(){super(),Ev(this,u,!0),Ev(this,d),Ev(this,_,{}),Ev(this,"container"),i.shadow?this.container=this.attachShadow({mode:i.shadow}):this.container=this,this[Au].container=this.container;for(const W of w){const le=E[W],fe=this.getAttribute(le),we=a[W],$e=we?G4[we]:null;$e!=null&&$e.parse&&fe&&(this[Au][W]=$e.parse(fe,le,this))}}static get observedAttributes(){return Object.keys(j)}connectedCallback(){this[Lv]=!0,this[Nv]()}disconnectedCallback(){this[Lv]=!1,this[Qh]&&o.unmount(this[Qh]),delete this[Qh]}attributeChangedCallback(W,le,fe){const we=j[W],$e=a[we],me=$e?G4[$e]:null;we in a&&me!=null&&me.parse&&fe&&(this[Au][we]=me.parse(fe,W,this),this[Nv]())}[(u=Lv,d=Qh,_=Au,Nv)](){this[Lv]&&(this[Qh]?o.update(this[Qh],this[Au]):this[Qh]=o.mount(this.container,e,this[Au]))}}for(const q of w){const W=E[q],le=a[q];Object.defineProperty(Q.prototype,q,{enumerable:!0,configurable:!0,get(){return this[Au][q]},set(fe){this[Au][q]=fe;const we=le?G4[le]:null;if(we!=null&&we.stringify){const $e=we.stringify(fe,W,this);this.getAttribute(W)!==$e&&this.setAttribute(W,$e)}else this[Nv]()}})}return Q}function pq(e,i,o){const u=cz(e),d=Cr.createElement(i,o);return u.render(d),{root:u,ReactComponent:i}}function gq({root:e,ReactComponent:i},o){const u=Cr.createElement(i,o);e.render(u)}function mq({root:e}){e.unmount()}function yq(e,i={}){return fq(e,i,{mount:pq,update:gq,unmount:mq})}const hz=yq(lz,{props:{apiKey:"string",gmApiKey:"string",mapboxAccessToken:"string",venue:"string",locationId:"string",primaryColor:"string",logo:"string",appUserRoles:"string",directionsFrom:"string",directionsTo:"string",externalIDs:"json",tileStyle:"string",startZoomLevel:"number",gmMapId:"string",supportsUrlParameters:"boolean",bearing:"number",pitch:"number",kioskOriginLocationId:"string",useMapProviderModule:"boolean",timeout:"number",miTransitionLevel:"number",category:"string",language:"string",searchAllVenues:"boolean",useKeyboard:"boolean",hideNonMatches:"boolean",showExternalIDs:"boolean",showRoadNames:"boolean",searchExternalLocations:"boolean",center:"string",useAppTitle:"boolean",showMapMarkers:"boolean",mapboxMapStyle:"string",devicePosition:"object"}});window.customElements.define("mapsindoors-map",hz);const _q=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Ir(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return _c(this)}}},Symbol.toStringTag,{value:"Module"})),vq=':host{box-sizing:border-box;display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',dz=class{constructor(e){Ir(this,e)}render(){return Xe("slot",null)}};dz.style=vq;const xq=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",fz=class{constructor(e){Ir(this,e),this.inverse=!1}render(){return Xe(ko,null,Xe("div",{class:`spinner ${this.inverse?"inverse":""}`},Xe("div",{class:"bounce1"}),Xe("div",{class:"bounce2"}),Xe("div",{class:"bounce3"})))}};fz.style=xq;const wq=Object.freeze(Object.defineProperty({__proto__:null,mi_card:dz,mi_spinner:fz},Symbol.toStringTag,{value:"Module"})),bq=':root{--z-index-top:999999;--z-index-popup:950;--z-index-modal:900;--z-index-spinner:800;--z-index-overlay:700;--z-index-dropdown:600;--z-index-toast:500;--z-index-header:400;--z-index-sticky:300;--z-index-mask:200;--z-index-masked:100;--z-index-default:1;--z-index-deep:-999999;--transition-slowly:600ms ease;--transition-quickly:300ms ease;--tailwind-colors-rose-900:#881337;--tailwind-colors-rose-800:#9f1239;--tailwind-colors-rose-700:#be123c;--tailwind-colors-rose-600:#e11d48;--tailwind-colors-rose-500:#f43f5e;--tailwind-colors-rose-400:#fb7185;--tailwind-colors-rose-300:#fda4af;--tailwind-colors-rose-200:#fecdd3;--tailwind-colors-rose-100:#ffe4e6;--tailwind-colors-rose-50:#fff1f2;--tailwind-colors-pink-900:#831843;--tailwind-colors-pink-800:#9d174d;--tailwind-colors-pink-700:#be185d;--tailwind-colors-pink-600:#db2777;--tailwind-colors-pink-500:#ec4899;--tailwind-colors-pink-400:#f472b6;--tailwind-colors-pink-300:#f9a8d4;--tailwind-colors-pink-200:#fbcfe8;--tailwind-colors-pink-100:#fce7f3;--tailwind-colors-pink-50:#fdf2f8;--tailwind-colors-fuchsia-900:#701a75;--tailwind-colors-fuchsia-800:#86198f;--tailwind-colors-fuchsia-700:#a21caf;--tailwind-colors-fuchsia-600:#c026d3;--tailwind-colors-fuchsia-500:#d946ef;--tailwind-colors-fuchsia-400:#e879f9;--tailwind-colors-fuchsia-300:#f0abfc;--tailwind-colors-fuchsia-200:#f5d0fe;--tailwind-colors-fuchsia-100:#fae8ff;--tailwind-colors-fuchsia-50:#fdf4ff;--tailwind-colors-purple-900:#581c87;--tailwind-colors-purple-800:#6b21a8;--tailwind-colors-purple-700:#7e22ce;--tailwind-colors-purple-600:#9333ea;--tailwind-colors-purple-500:#a855f7;--tailwind-colors-purple-400:#c084fc;--tailwind-colors-purple-300:#d8b4fe;--tailwind-colors-purple-200:#e9d5ff;--tailwind-colors-purple-100:#f3e8ff;--tailwind-colors-purple-50:#faf5ff;--tailwind-colors-violet-900:#4c1d95;--tailwind-colors-violet-800:#5b21b6;--tailwind-colors-violet-700:#6d28d9;--tailwind-colors-violet-600:#7c3aed;--tailwind-colors-violet-500:#8b5cf6;--tailwind-colors-violet-400:#a78bfa;--tailwind-colors-violet-300:#c4b5fd;--tailwind-colors-violet-200:#ddd6fe;--tailwind-colors-violet-100:#ede9fe;--tailwind-colors-violet-50:#f5f3ff;--tailwind-colors-indigo-900:#312e81;--tailwind-colors-indigo-800:#3730a3;--tailwind-colors-indigo-700:#4338ca;--tailwind-colors-indigo-600:#4f46e5;--tailwind-colors-indigo-500:#6366f1;--tailwind-colors-indigo-400:#818cf8;--tailwind-colors-indigo-300:#a5b4fc;--tailwind-colors-indigo-200:#c7d2fe;--tailwind-colors-indigo-100:#e0e7ff;--tailwind-colors-indigo-50:#eef2ff;--tailwind-colors-blue-900:#1e3a8a;--tailwind-colors-blue-800:#1e40af;--tailwind-colors-blue-700:#1d4ed8;--tailwind-colors-blue-600:#2563eb;--tailwind-colors-blue-500:#3b82f6;--tailwind-colors-blue-400:#60a5fa;--tailwind-colors-blue-300:#93c5fd;--tailwind-colors-blue-200:#bfdbfe;--tailwind-colors-blue-100:#dbeafe;--tailwind-colors-blue-50:#eff6ff;--tailwind-colors-sky-900:#0c4a6e;--tailwind-colors-sky-800:#075985;--tailwind-colors-sky-700:#0369a1;--tailwind-colors-sky-600:#0284c7;--tailwind-colors-sky-500:#0ea5e9;--tailwind-colors-sky-400:#38bdf8;--tailwind-colors-sky-300:#7dd3fc;--tailwind-colors-sky-200:#bae6fd;--tailwind-colors-sky-100:#e0f2fe;--tailwind-colors-sky-50:#f0f9ff;--tailwind-colors-cyan-900:#164e63;--tailwind-colors-cyan-800:#155e75;--tailwind-colors-cyan-700:#0e7490;--tailwind-colors-cyan-600:#0891b2;--tailwind-colors-cyan-500:#06b6d4;--tailwind-colors-cyan-400:#22d3ee;--tailwind-colors-cyan-300:#67e8f9;--tailwind-colors-cyan-200:#a5f3fc;--tailwind-colors-cyan-100:#cffafe;--tailwind-colors-cyan-50:#ecfeff;--tailwind-colors-teal-900:#134e4a;--tailwind-colors-teal-800:#115e59;--tailwind-colors-teal-700:#0f766e;--tailwind-colors-teal-600:#0d9488;--tailwind-colors-teal-500:#14b8a6;--tailwind-colors-teal-400:#2dd4bf;--tailwind-colors-teal-300:#5eead4;--tailwind-colors-teal-200:#99f6e4;--tailwind-colors-teal-100:#ccfbf1;--tailwind-colors-teal-50:#f0fdfa;--tailwind-colors-emerald-900:#064e3b;--tailwind-colors-emerald-800:#065f46;--tailwind-colors-emerald-700:#047857;--tailwind-colors-emerald-600:#059669;--tailwind-colors-emerald-500:#10b981;--tailwind-colors-emerald-400:#34d399;--tailwind-colors-emerald-300:#6ee7b7;--tailwind-colors-emerald-200:#a7f3d0;--tailwind-colors-emerald-100:#d1fae5;--tailwind-colors-emerald-50:#ecfdf5;--tailwind-colors-green-900:#14532d;--tailwind-colors-green-800:#166534;--tailwind-colors-green-700:#15803d;--tailwind-colors-green-600:#16a34a;--tailwind-colors-green-500:#22c55e;--tailwind-colors-green-400:#4ade80;--tailwind-colors-green-300:#86efac;--tailwind-colors-green-200:#bbf7d0;--tailwind-colors-green-100:#dcfce7;--tailwind-colors-green-50:#f0fdf4;--tailwind-colors-lime-900:#365314;--tailwind-colors-lime-800:#3f6212;--tailwind-colors-lime-700:#4d7c0f;--tailwind-colors-lime-600:#65a30d;--tailwind-colors-lime-500:#84cc16;--tailwind-colors-lime-400:#a3e635;--tailwind-colors-lime-300:#bef264;--tailwind-colors-lime-200:#d9f99d;--tailwind-colors-lime-100:#ecfccb;--tailwind-colors-lime-50:#f7fee7;--tailwind-colors-yellow-900:#713f12;--tailwind-colors-yellow-800:#854d0e;--tailwind-colors-yellow-700:#a16207;--tailwind-colors-yellow-600:#ca8a04;--tailwind-colors-yellow-500:#eab308;--tailwind-colors-yellow-400:#facc15;--tailwind-colors-yellow-300:#fde047;--tailwind-colors-yellow-200:#fef08a;--tailwind-colors-yellow-100:#fef9c3;--tailwind-colors-yellow-50:#fefce8;--tailwind-colors-amber-900:#78350f;--tailwind-colors-amber-800:#92400e;--tailwind-colors-amber-700:#b45309;--tailwind-colors-amber-600:#d97706;--tailwind-colors-amber-500:#f59e0b;--tailwind-colors-amber-400:#fbbf24;--tailwind-colors-amber-300:#fcd34d;--tailwind-colors-amber-200:#fde68a;--tailwind-colors-amber-100:#fef3c7;--tailwind-colors-amber-50:#fffbeb;--tailwind-colors-orange-900:#7c2d12;--tailwind-colors-orange-800:#9a3412;--tailwind-colors-orange-700:#c2410c;--tailwind-colors-orange-600:#ea580c;--tailwind-colors-orange-500:#f97316;--tailwind-colors-orange-400:#fb923c;--tailwind-colors-orange-300:#fdba74;--tailwind-colors-orange-200:#fed7aa;--tailwind-colors-orange-100:#ffedd5;--tailwind-colors-orange-50:#fff7ed;--tailwind-colors-red-900:#7f1d1d;--tailwind-colors-red-800:#991b1b;--tailwind-colors-red-700:#b91c1c;--tailwind-colors-red-600:#dc2626;--tailwind-colors-red-500:#ef4444;--tailwind-colors-red-400:#f87171;--tailwind-colors-red-300:#fca5a5;--tailwind-colors-red-200:#fecaca;--tailwind-colors-red-100:#fee2e2;--tailwind-colors-red-50:#fef2f2;--tailwind-colors-stone-900:#1c1917;--tailwind-colors-stone-800:#292524;--tailwind-colors-stone-700:#44403c;--tailwind-colors-stone-600:#57534e;--tailwind-colors-stone-500:#78716c;--tailwind-colors-stone-400:#a8a29e;--tailwind-colors-stone-300:#d6d3d1;--tailwind-colors-stone-200:#e7e5e4;--tailwind-colors-stone-100:#f5f5f4;--tailwind-colors-stone-50:#fafaf9;--tailwind-colors-neutral-900:#171717;--tailwind-colors-neutral-800:#262626;--tailwind-colors-neutral-700:#404040;--tailwind-colors-neutral-600:#525252;--tailwind-colors-neutral-500:#737373;--tailwind-colors-neutral-400:#a3a3a3;--tailwind-colors-neutral-300:#d4d4d4;--tailwind-colors-neutral-200:#e5e5e5;--tailwind-colors-neutral-100:#f5f5f5;--tailwind-colors-neutral-50:#fafafa;--tailwind-colors-zinc-900:#18181b;--tailwind-colors-zinc-800:#27272a;--tailwind-colors-zinc-700:#3f3f46;--tailwind-colors-zinc-600:#52525b;--tailwind-colors-zinc-500:#71717a;--tailwind-colors-zinc-400:#a1a1aa;--tailwind-colors-zinc-300:#d4d4d8;--tailwind-colors-zinc-200:#e4e4e7;--tailwind-colors-zinc-100:#f4f4f5;--tailwind-colors-zinc-50:#fafafa;--tailwind-colors-gray-900:#111827;--tailwind-colors-gray-800:#1f2937;--tailwind-colors-gray-700:#374151;--tailwind-colors-gray-600:#4b5563;--tailwind-colors-gray-500:#6b7280;--tailwind-colors-gray-400:#9ca3af;--tailwind-colors-gray-300:#d1d5db;--tailwind-colors-gray-200:#e5e7eb;--tailwind-colors-gray-100:#f3f4f6;--tailwind-colors-gray-50:#f9fafb;--tailwind-colors-slate-900:#0f172a;--tailwind-colors-slate-800:#1e293b;--tailwind-colors-slate-700:#334155;--tailwind-colors-slate-600:#475569;--tailwind-colors-slate-500:#64748b;--tailwind-colors-slate-400:#94a3b8;--tailwind-colors-slate-300:#cbd5e1;--tailwind-colors-slate-200:#e2e8f0;--tailwind-colors-slate-100:#f1f5f9;--tailwind-colors-slate-50:#f8fafc;--tailwind-colors-black:#000000;--tailwind-colors-white:#ffffff;--spacing-xxxx-large:64px;--spacing-xxx-large:48px;--spacing-xx-large:40px;--spacing-x-large:32px;--spacing-large:24px;--spacing-medium:16px;--spacing-small:12px;--spacing-x-small:8px;--spacing-xx-small:4px;--spacing-xxx-small:2px;--rounding-circle:50%;--rounding-pill:9999px;--rounding-x-large:16px;--rounding-large:8px;--rounding-medium:4px;--rounding-small:2px;--rounding-x-small:1px;--rounding-xx-small:0px;--opacity-xxx-large:1;--opacity-xx-large:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.08;--opacity-xx-small:0;--icon-size-xx-large:64px;--icon-size-x-large:48px;--icon-size-large:32px;--icon-size-medium:24px;--icon-size-small:16px;--font-measure-large:34rem;--font-measure-medium:30rem;--font-measure-small:20rem;--font-tracking-x-large:.25rem;--font-tracking-large:.1rem;--font-tracking-medium:normal;--font-tracking-small:-.05rem;--font-weight-xx-large:700;--font-weight-x-large:600;--font-weight-large:500;--font-weight-medium:400;--font-weight-small:300;--font-size-xxxx-large:4.5rem;--font-size-xxx-large:3rem;--font-size-xx-large:2.25rem;--font-size-x-large:1.5rem;--font-size-large:1.25rem;--font-size-medium:1rem;--font-size-small:0.875rem;--font-size-x-small:0.75rem;--font-family-serif:Georgia, Times, Times New Roman, serif;--font-family-monospace:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large:0px 20px 20px rgba(0, 0, 0, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);--color-transparent-base:rgba(0, 0, 0, 0);--color-white-base:#fcfcfc;--breakpoints-xx-large:only screen and (min-width: 1220px);--breakpoints-x-large:only screen and (min-width: 1025px);--breakpoints-large:only screen and (min-width: 992px);--breakpoints-medium:only screen and (min-width: 768px);--breakpoints-small:only screen and (min-width: 576px);--breakpoints-x-small:only screen and (max-width: 575px);--breakpoints-xx-small:only screen and (max-width: 360px);--brand-colors-black-100:#000000;--brand-colors-black-80:#323232;--brand-colors-black-60:#666666;--brand-colors-black-40:#999999;--brand-colors-black-20:#cccccc;--brand-colors-white-100:#ffffff;--brand-colors-dark-pine-100:#005655;--brand-colors-dark-pine-80:#327676;--brand-colors-dark-pine-60:#669999;--brand-colors-dark-pine-40:#99bbbb;--brand-colors-dark-pine-20:#ccdddd;--brand-colors-sky-blue-100:#abddff;--brand-colors-sky-blue-80:#c3e5ff;--brand-colors-sky-blue-60:#d2ebff;--brand-colors-sky-blue-40:#e1f2ff;--brand-colors-sky-blue-20:#f0f8ff;--brand-colors-sand-100:#ffefd7;--brand-colors-sand-80:#fff2df;--brand-colors-sand-60:#fff5e7;--brand-colors-brand-lime-100:#cdff00;--brand-colors-brand-lime-80:#d7ff32;--brand-colors-brand-lime-60:#e1ff66;--brand-colors-brand-lime-40:#ebff99;--brand-colors-brand-lime-20:#f5ffcc;--brand-colors-electric-purple-100:#7d49f3;--brand-colors-electric-purple-80:#976df5;--brand-colors-electric-purple-60:#b191f7;--brand-colors-electric-purple-40:#cbb6fa;--brand-colors-electric-purple-20:#e5dafc;--font-family-sans-serif:Figtree, var(--font-family-system);--color-dusk-base:var(--tailwind-colors-violet-500);--color-dusk-100:var(--tailwind-colors-violet-900);--color-dusk-90:var(--tailwind-colors-violet-800);--color-dusk-80:var(--tailwind-colors-violet-700);--color-dusk-70:var(--tailwind-colors-violet-600);--color-dusk-60:var(--tailwind-colors-violet-500);--color-dusk-50:var(--tailwind-colors-violet-400);--color-dusk-40:var(--tailwind-colors-violet-300);--color-dusk-30:var(--tailwind-colors-violet-200);--color-dusk-20:var(--tailwind-colors-violet-100);--color-dusk-10:var(--tailwind-colors-violet-50);--color-slate-base:var(--tailwind-colors-slate-500);--color-slate-100:var(--tailwind-colors-slate-900);--color-slate-90:var(--tailwind-colors-slate-800);--color-slate-80:var(--tailwind-colors-slate-700);--color-slate-70:var(--tailwind-colors-slate-600);--color-slate-60:var(--tailwind-colors-slate-500);--color-slate-50:var(--tailwind-colors-slate-400);--color-slate-40:var(--tailwind-colors-slate-300);--color-slate-30:var(--tailwind-colors-slate-200);--color-slate-20:var(--tailwind-colors-slate-100);--color-slate-10:var(--tailwind-colors-slate-50);--color-teal-base:var(--tailwind-colors-teal-500);--color-teal-100:var(--tailwind-colors-teal-900);--color-teal-90:var(--tailwind-colors-teal-800);--color-teal-80:var(--tailwind-colors-teal-700);--color-teal-70:var(--tailwind-colors-teal-600);--color-teal-60:var(--tailwind-colors-teal-500);--color-teal-50:var(--tailwind-colors-teal-400);--color-teal-40:var(--tailwind-colors-teal-300);--color-teal-30:var(--tailwind-colors-teal-200);--color-teal-20:var(--tailwind-colors-teal-100);--color-teal-10:var(--tailwind-colors-teal-50);--color-sky-base:var(--tailwind-colors-sky-500);--color-sky-100:var(--tailwind-colors-sky-900);--color-sky-90:var(--tailwind-colors-sky-800);--color-sky-80:var(--tailwind-colors-sky-700);--color-sky-70:var(--tailwind-colors-sky-600);--color-sky-60:var(--tailwind-colors-sky-500);--color-sky-50:var(--tailwind-colors-sky-400);--color-sky-40:var(--tailwind-colors-sky-300);--color-sky-30:var(--tailwind-colors-sky-200);--color-sky-20:var(--tailwind-colors-sky-100);--color-sky-10:var(--tailwind-colors-sky-50);--color-indigo-base:var(--tailwind-colors-indigo-500);--color-indigo-100:var(--tailwind-colors-indigo-900);--color-indigo-90:var(--tailwind-colors-indigo-800);--color-indigo-80:var(--tailwind-colors-indigo-700);--color-indigo-70:var(--tailwind-colors-indigo-600);--color-indigo-60:var(--tailwind-colors-indigo-500);--color-indigo-50:var(--tailwind-colors-indigo-400);--color-indigo-40:var(--tailwind-colors-indigo-300);--color-indigo-30:var(--tailwind-colors-indigo-200);--color-indigo-20:var(--tailwind-colors-indigo-100);--color-indigo-10:var(--tailwind-colors-indigo-50);--color-magenta-base:var(--tailwind-colors-pink-500);--color-magenta-100:var(--tailwind-colors-pink-900);--color-magenta-90:var(--tailwind-colors-pink-800);--color-magenta-80:var(--tailwind-colors-pink-700);--color-magenta-70:var(--tailwind-colors-pink-600);--color-magenta-60:var(--tailwind-colors-pink-500);--color-magenta-50:var(--tailwind-colors-pink-400);--color-magenta-40:var(--tailwind-colors-pink-300);--color-magenta-30:var(--tailwind-colors-pink-200);--color-magenta-20:var(--tailwind-colors-pink-100);--color-magenta-10:var(--tailwind-colors-pink-50);--color-purple-base:var(--tailwind-colors-purple-500);--color-purple-100:var(--tailwind-colors-purple-900);--color-purple-90:var(--tailwind-colors-purple-800);--color-purple-80:var(--tailwind-colors-purple-700);--color-purple-70:var(--tailwind-colors-purple-600);--color-purple-60:var(--tailwind-colors-purple-500);--color-purple-50:var(--tailwind-colors-purple-400);--color-purple-40:var(--tailwind-colors-purple-300);--color-purple-30:var(--tailwind-colors-purple-200);--color-purple-20:var(--tailwind-colors-purple-100);--color-purple-10:var(--tailwind-colors-purple-50);--color-bronze-base:var(--tailwind-colors-amber-500);--color-bronze-100:var(--tailwind-colors-amber-900);--color-bronze-90:var(--tailwind-colors-amber-800);--color-bronze-80:var(--tailwind-colors-amber-700);--color-bronze-70:var(--tailwind-colors-amber-600);--color-bronze-60:var(--tailwind-colors-amber-500);--color-bronze-50:var(--tailwind-colors-amber-400);--color-bronze-40:var(--tailwind-colors-amber-300);--color-bronze-30:var(--tailwind-colors-amber-200);--color-bronze-20:var(--tailwind-colors-amber-100);--color-bronze-10:var(--tailwind-colors-amber-50);--color-blue-base:var(--tailwind-colors-blue-500);--color-blue-100:var(--tailwind-colors-blue-900);--color-blue-90:var(--tailwind-colors-blue-800);--color-blue-80:var(--tailwind-colors-blue-700);--color-blue-70:var(--tailwind-colors-blue-600);--color-blue-60:var(--tailwind-colors-blue-500);--color-blue-50:var(--tailwind-colors-blue-400);--color-blue-40:var(--tailwind-colors-blue-300);--color-blue-30:var(--tailwind-colors-blue-200);--color-blue-20:var(--tailwind-colors-blue-100);--color-blue-10:var(--tailwind-colors-blue-50);--color-green-base:var(--tailwind-colors-green-500);--color-green-100:var(--tailwind-colors-green-900);--color-green-90:var(--tailwind-colors-green-800);--color-green-80:var(--tailwind-colors-green-700);--color-green-70:var(--tailwind-colors-green-600);--color-green-60:var(--tailwind-colors-green-500);--color-green-50:var(--tailwind-colors-green-400);--color-green-40:var(--tailwind-colors-green-300);--color-green-30:var(--tailwind-colors-green-200);--color-green-20:var(--tailwind-colors-green-100);--color-green-10:var(--tailwind-colors-green-50);--color-red-base:var(--tailwind-colors-red-500);--color-red-100:var(--tailwind-colors-red-900);--color-red-90:var(--tailwind-colors-red-800);--color-red-80:var(--tailwind-colors-red-700);--color-red-70:var(--tailwind-colors-red-600);--color-red-60:var(--tailwind-colors-red-500);--color-red-50:var(--tailwind-colors-red-400);--color-red-40:var(--tailwind-colors-red-300);--color-red-30:var(--tailwind-colors-red-200);--color-red-20:var(--tailwind-colors-red-100);--color-red-10:var(--tailwind-colors-red-50);--color-gray-base:var(--tailwind-colors-gray-500);--color-gray-100:var(--tailwind-colors-gray-900);--color-gray-90:var(--tailwind-colors-gray-800);--color-gray-80:var(--tailwind-colors-gray-700);--color-gray-70:var(--tailwind-colors-gray-600);--color-gray-60:var(--tailwind-colors-gray-500);--color-gray-50:var(--tailwind-colors-gray-400);--color-gray-40:var(--tailwind-colors-gray-300);--color-gray-30:var(--tailwind-colors-gray-200);--color-gray-20:var(--tailwind-colors-gray-100);--color-gray-10:var(--tailwind-colors-gray-50);--color-hotorchid-base:var(--tailwind-colors-pink-500);--color-white-white:var(--tailwind-colors-white);--color-black-black:var(--tailwind-colors-black);--color-black-base:var(--tailwind-colors-stone-900)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',pz=class{constructor(e){Ir(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return Xe("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&Xe("img",{class:"chip__icon",src:this.icon}),Xe("div",{class:"chip__content"},this.content))}};pz.style=bq;const Mq=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:pz},Symbol.toStringTag,{value:"Module"})),Iq=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Ir(this,e),this.clicked=$r(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var Z4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gm(e,i,o){return o={path:i,exports:{},require:function(u,d){return Tq()}},e(o,o.exports),o.exports}function Tq(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var mz=Gm(function(e){((i,o)=>{e.exports?e.exports=o():i.fuzzysort=o()})(Z4,i=>{var o=(Ot,wt)=>{if(Ot=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Ot||!wt)return Pt;var $t=Q(Ot);nt(wt)||(wt=j(wt));var St=$t.bitflags;return(St&wt._bitflags)!==St?Pt:W($t,wt)},u=(Ot,wt,$t)=>{if(Ot=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:wt?wt[0]:Pt}];if(!Ot)return $t&&$t.all?q(Ot,wt,$t):dt;var St=Q(Ot),Ht=St.bitflags,Z=$t&&$t.threshold||xt,ne=$t&&$t.limit||Ye,T=0,k=0,F=wt.length;if($t&&$t.key)for(var U=$t.key,G=0;G<F;++G){var re=wt[G],de=Je(re,U);if(de&&(nt(de)||(de=j(de)),(Ht&de._bitflags)===Ht)){var ue=W(St,de);ue!==Pt&&(ue.score<Z||(ue={target:ue.target,_targetLower:"",_targetLowerCodes:Pt,_nextBeginningIndexes:Pt,_bitflags:0,score:ue.score,_indexes:ue._indexes,obj:re},T<ne?(ci.add(ue),++T):(++k,ue.score>ci.peek().score&&ci.replaceTop(ue))))}}else if($t&&$t.keys)for(var Me=$t.scoreFn||_e,Fe=$t.keys,et=Fe.length,G=0;G<F;++G){for(var re=wt[G],Ue=new Array(et),Ke=0;Ke<et;++Ke){var U=Fe[Ke],de=Je(re,U);if(!de){Ue[Ke]=Pt;continue}nt(de)||(de=j(de)),(Ht&de._bitflags)!==Ht?Ue[Ke]=Pt:Ue[Ke]=W(St,de)}Ue.obj=re;var Ve=Me(Ue);Ve!==Pt&&(Ve<Z||(Ue.score=Ve,T<ne?(ci.add(Ue),++T):(++k,Ve>ci.peek().score&&ci.replaceTop(Ue))))}else for(var G=0;G<F;++G){var de=wt[G];if(de&&(nt(de)||(de=j(de)),(Ht&de._bitflags)===Ht)){var ue=W(St,de);ue!==Pt&&(ue.score<Z||(T<ne?(ci.add(ue),++T):(++k,ue.score>ci.peek().score&&ci.replaceTop(ue))))}}if(T===0)return dt;for(var mt=new Array(T),G=T-1;G>=0;--G)mt[G]=ci.poll();return mt.total=T+k,mt},d=(Ot,wt,$t)=>{if(typeof wt=="function")return _(Ot,wt);if(Ot===Pt)return Pt;wt===void 0&&(wt="<b>"),$t===void 0&&($t="</b>");var St="",Ht=0,Z=!1,ne=Ot.target,T=ne.length,k=Ot._indexes;k=k.slice(0,k.len).sort((G,re)=>G-re);for(var F=0;F<T;++F){var U=ne[F];if(k[Ht]===F){if(++Ht,Z||(Z=!0,St+=wt),Ht===k.length){St+=U+$t+ne.substr(F+1);break}}else Z&&(Z=!1,St+=$t);St+=U}return St},_=(F,wt)=>{if(F===Pt)return Pt;var $t=F.target,St=$t.length,Ht=F._indexes;Ht=Ht.slice(0,Ht.len).sort((re,de)=>re-de);for(var Z="",ne=0,T=0,k=!1,F=[],U=0;U<St;++U){var G=$t[U];if(Ht[T]===U){if(++T,k||(k=!0,F.push(Z),Z=""),T===Ht.length){Z+=G,F.push(wt(Z,ne++)),Z="",F.push($t.substr(U+1));break}}else k&&(k=!1,F.push(wt(Z,ne++)),Z="");Z+=G}return F},w=Ot=>Ot._indexes.slice(0,Ot._indexes.len).sort((wt,$t)=>wt-$t),a=Ot=>{typeof Ot!="string"&&(Ot="");var wt=fe(Ot);return{target:Ot,_targetLower:wt._lower,_targetLowerCodes:wt.lowerCodes,_nextBeginningIndexes:Pt,_bitflags:wt.bitflags,score:Pt,_indexes:[0],obj:Pt}},E=Ot=>{typeof Ot!="string"&&(Ot=""),Ot=Ot.trim();var wt=fe(Ot),$t=[];if(wt.containsSpace){var St=Ot.split(/\s+/);St=[...new Set(St)];for(var Ht=0;Ht<St.length;Ht++)if(St[Ht]!==""){var Z=fe(St[Ht]);$t.push({lowerCodes:Z.lowerCodes,_lower:St[Ht].toLowerCase(),containsSpace:!1})}}return{lowerCodes:wt.lowerCodes,bitflags:wt.bitflags,containsSpace:wt.containsSpace,_lower:wt._lower,spaceSearches:$t}},j=Ot=>{if(Ot.length>999)return a(Ot);var wt=ie.get(Ot);return wt!==void 0||(wt=a(Ot),ie.set(Ot,wt)),wt},Q=Ot=>{if(Ot.length>999)return E(Ot);var wt=te.get(Ot);return wt!==void 0||(wt=E(Ot),te.set(Ot,wt)),wt},q=(Ot,wt,$t)=>{var St=[];St.total=wt.length;var Ht=$t&&$t.limit||Ye;if($t&&$t.key)for(var Z=0;Z<wt.length;Z++){var ne=wt[Z],T=Je(ne,$t.key);if(T){nt(T)||(T=j(T)),T.score=xt,T._indexes.len=0;var k=T;if(k={target:k.target,_targetLower:"",_targetLowerCodes:Pt,_nextBeginningIndexes:Pt,_bitflags:0,score:T.score,_indexes:Pt,obj:ne},St.push(k),St.length>=Ht)return St}}else if($t&&$t.keys)for(var Z=0;Z<wt.length;Z++){for(var ne=wt[Z],F=new Array($t.keys.length),U=$t.keys.length-1;U>=0;--U){var T=Je(ne,$t.keys[U]);if(!T){F[U]=Pt;continue}nt(T)||(T=j(T)),T.score=xt,T._indexes.len=0,F[U]=T}if(F.obj=ne,F.score=xt,St.push(F),St.length>=Ht)return St}else for(var Z=0;Z<wt.length;Z++){var T=wt[Z];if(T&&(nt(T)||(T=j(T)),T.score=xt,T._indexes.len=0,St.push(T),St.length>=Ht))return St}return St},W=(Ot,wt,$t=!1)=>{if($t===!1&&Ot.containsSpace)return le(Ot,wt);for(var St=Ot._lower,Ht=Ot.lowerCodes,Z=Ht[0],ne=wt._targetLowerCodes,T=Ht.length,k=ne.length,re=0,F=0,U=0;;){var G=Z===ne[F];if(G){if(oe[U++]=F,++re,re===T)break;Z=Ht[re]}if(++F,F>=k)return Pt}var re=0,de=!1,ue=0,Me=wt._nextBeginningIndexes;Me===Pt&&(Me=wt._nextBeginningIndexes=$e(wt.target)),F=oe[0]===0?0:Me[oe[0]-1];var Fe=0;if(F!==k)for(;;)if(F>=k){if(re<=0||(++Fe,Fe>200))break;--re;var et=be[--ue];F=Me[et]}else{var G=Ht[re]===ne[F];if(G){if(be[ue++]=F,++re,re===T){de=!0;break}++F}else F=Me[F]}var Ue=wt._targetLower.indexOf(St,oe[0]),Ke=~Ue;if(Ke&&!de)for(var Ve=0;Ve<U;++Ve)oe[Ve]=Ue+Ve;var mt=!1;Ke&&(mt=wt._nextBeginningIndexes[Ue-1]===Ue);{if(de)var yt=be,Mt=ue;else var yt=oe,Mt=U;for(var Et=0,di=0,Ve=1;Ve<T;++Ve)yt[Ve]-yt[Ve-1]!==1&&(Et-=yt[Ve],++di);var qt=yt[T-1]-yt[0]-(T-1);if(Et-=(12+qt)*di,yt[0]!==0&&(Et-=yt[0]*yt[0]*.2),!de)Et*=1e3;else{for(var ui=1,Ve=Me[0];Ve<k;Ve=Me[Ve])++ui;ui>24&&(Et*=(ui-24)*10)}Ke&&(Et/=1+T*T*1),mt&&(Et/=1+T*T*1),Et-=k-T,wt.score=Et;for(var Ve=0;Ve<Mt;++Ve)wt._indexes[Ve]=yt[Ve];return wt._indexes.len=Mt,wt}},le=(Ot,wt)=>{for(var $t=new Set,St=0,Ht=Pt,Z=0,ne=Ot.spaceSearches,U=0;U<ne.length;++U){var T=ne[U];if(Ht=W(T,wt),Ht===Pt)return Pt;St+=Ht.score,Ht._indexes[0]<Z&&(St-=Z-Ht._indexes[0]),Z=Ht._indexes[0];for(var k=0;k<Ht._indexes.len;++k)$t.add(Ht._indexes[k])}var F=W(Ot,wt,!0);if(F!==Pt&&F.score>St)return F;Ht.score=St;var U=0;for(let G of $t)Ht._indexes[U++]=G;return Ht._indexes.len=U,Ht},fe=Ot=>{for(var wt=Ot.length,$t=Ot.toLowerCase(),St=[],Ht=0,Z=!1,ne=0;ne<wt;++ne){var T=St[ne]=$t.charCodeAt(ne);if(T===32){Z=!0;continue}var k=T>=97&&T<=122?T-97:T>=48&&T<=57?26:T<=127?30:31;Ht|=1<<k}return{lowerCodes:St,bitflags:Ht,containsSpace:Z,_lower:$t}},we=Ot=>{for(var wt=Ot.length,$t=[],St=0,Ht=!1,Z=!1,ne=0;ne<wt;++ne){var T=Ot.charCodeAt(ne),k=T>=65&&T<=90,F=k||T>=97&&T<=122||T>=48&&T<=57,U=k&&!Ht||!Z||!F;Ht=k,Z=F,U&&($t[St++]=ne)}return $t},$e=Ot=>{for(var wt=Ot.length,$t=we(Ot),St=[],Ht=$t[0],Z=0,ne=0;ne<wt;++ne)Ht>ne?St[ne]=Ht:(Ht=$t[++Z],St[ne]=Ht===void 0?wt:Ht);return St},me=()=>{ie.clear(),te.clear(),oe=[],be=[]},ie=new Map,te=new Map,oe=[],be=[],_e=Ot=>{for(var wt=xt,$t=Ot.length,St=0;St<$t;++St){var Ht=Ot[St];if(Ht!==Pt){var Z=Ht.score;Z>wt&&(wt=Z)}}return wt===xt?Pt:wt},Je=(Ot,wt)=>{var $t=Ot[wt];if($t!==void 0)return $t;var St=wt;Array.isArray(wt)||(St=wt.split("."));for(var Ht=St.length,Z=-1;Ot&&++Z<Ht;)Ot=Ot[St[Z]];return Ot},nt=Ot=>typeof Ot=="object",Ye=1/0,xt=-Ye,dt=[];dt.total=0;var Pt=null,Tt=Ot=>{var wt=[],$t=0,St={},Ht=Z=>{for(var ne=0,T=wt[ne],k=1;k<$t;){var F=k+1;ne=k,F<$t&&wt[F].score<wt[k].score&&(ne=F),wt[ne-1>>1]=wt[ne],k=1+(ne<<1)}for(var U=ne-1>>1;ne>0&&T.score<wt[U].score;U=(ne=U)-1>>1)wt[ne]=wt[U];wt[ne]=T};return St.add=Z=>{var ne=$t;wt[$t++]=Z;for(var T=ne-1>>1;ne>0&&Z.score<wt[T].score;T=(ne=T)-1>>1)wt[ne]=wt[T];wt[ne]=Z},St.poll=Z=>{if($t!==0){var ne=wt[0];return wt[0]=wt[--$t],Ht(),ne}},St.peek=Z=>{if($t!==0)return wt[0]},St.replaceTop=Z=>{wt[0]=Z,Ht()},St},ci=Tt();return{single:o,go:u,highlight:d,prepare:a,indexes:w,cleanup:me}})}),Uf;(function(e){e.Asc="asc",e.Desc="desc"})(Uf||(Uf={}));const Dq=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var Cl;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(Cl||(Cl={}));const yz=class{constructor(e){Ir(this,e),this.change=$r(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(i=>i.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(Uf).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const i=this.currentItems.findIndex(o=>o.selected);this.currentItemIndex=i>-1?i:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((i,o)=>{i.dataset.index=o.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var i;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(i=this.selected[0])===null||i===void 0?void 0:i.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const i=e.target;(!i||!this.hostElement.contains(i))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",i=>{(i.key===Cl.ArrowDown||i.key===Cl.ArrowUp)&&i.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const i=(e=this.items)===null||e===void 0?void 0:e.findIndex(o=>o.selected);this.selected=[this.items[i>-1?i:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===Cl.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(Cl.ArrowDown||Cl.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case Cl.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case Cl.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===Cl.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,i=!1){var o,u;const d=this.hostElement.shadowRoot.querySelectorAll(".list__item");d.forEach(_=>{_.classList.remove(this.highlightedItemClassName)}),(o=d[e])===null||o===void 0||o.classList.add(this.highlightedItemClassName),i&&((u=d[e])===null||u===void 0||u.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===Uf.Asc?e.sort((i,o)=>(i.text||i.innerText).trimStart().toLowerCase().localeCompare((o.text||o.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((i,o)=>(o.text||o.innerText).trimStart().toLowerCase().localeCompare((i.text||i.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(o=>{o.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,i=this.items.map(w=>w.text||w.innerText),o=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const u={limit:50,allowTypo:!1,threshold:-1e4},_=mz.go(e,i,u).map(w=>this.items.find(a=>(a.text||a.innerText)===w.target));this.currentItems=_,o!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const i=Xe("ul",{class:"list"},this.currentItems.map((o,u)=>this.renderListItem(o,u,this.filterable)));return Xe(ko,{class:{open:this.open}},Xe("input",{type:"text",class:"input",onFocus:o=>this.onClickExists(o),ref:o=>this.filterElement=o,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),Xe("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},Xe("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),Xe("section",{ref:o=>this.listElement=o,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():i))}renderNoResultsTemplate(){return Xe("div",{class:"empty-page"},Xe("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,i,o){let u;const d=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?u=Xe("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):u=Xe("div",{class:"label__item",innerHTML:e.text}),Xe("li",{class:"list__item",title:d,onMouseOver:()=>{this.onMouseOver(i)}},Xe("label",{class:"mi-label label",tabindex:"-1"},Xe("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!o,"mi-input":!0},type:"checkbox",value:i,checked:e.selected,onChange:()=>this.onSelect(e)}),u))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:i}=document.documentElement,o=this.hostElement.getBoundingClientRect(),u=this.listElement.getBoundingClientRect(),d=i-o.bottom,_=o.top,w=580,a=12;e<=u.width||o.right-u.width<0&&u.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):u.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-o.right}px`):(this.listElement.style.left=`${o.left}px`,this.listElement.style.right="unset"),_>d?(this.listElement.style.maxHeight=`${Math.min(_,w)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${i-o.top}px`):(this.listElement.style.top=`${o.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(d-a*2,w)}px`)}get hostElement(){return _c(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};yz.style=Dq;const Sq=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:yz},Symbol.toStringTag,{value:"Module"}));function _z(e){return e!==null&&e>""&&!isNaN(Number(e))}function Aq(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function zv(e){return e==null}function Ov(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function Cq(e){try{return new URL(e),!0}catch{return!1}}function W4(e,i){if(Cq(e)===!1)return;const o=new URL(e),u=o.hostname;if(u==="image.mapsindoors.com"){const d=Math.max(2,window.devicePixelRatio||1),_=i*d,w=i*d;o.searchParams.set("width",_.toString()),o.searchParams.set("height",w.toString()),o.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(u)&&o.searchParams.set("scale","2"),o.toString()}const Eq=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,vz=class{constructor(e){Ir(this,e),this.selectionChanged=$r(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(i=>{const o={alignContent:i.alignContent,monospace:i.monospace,label:zv(i.label)?i.binding:i.label,binding:i.binding||null,sortable:i.sortable,fitContent:!!i.fitContent,template:i.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:i,width:i.width};return i.sort&&!this.sortByColumn&&(this.sortByColumn={column:o,sortOrder:i.sort==="asc"?"asc":"desc"}),o})}columnHeaderClickHandler(e,i){var o,u;if(!zv(i.sortable)){let d="asc";i===((o=this.sortByColumn)===null||o===void 0?void 0:o.column)&&(d=((u=this.sortByColumn)===null||u===void 0?void 0:u.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:i,sortOrder:d}}}sortTableRows(){var e,i,o;if(this.tableRows.length>0&&this.sortByColumn){let u;const d=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,_=(i=this.sortByColumn)===null||i===void 0?void 0:i.sortOrder;if(d&&_)return((o=d.sortable)===null||o===void 0?void 0:o.toLowerCase())==="date"?u=_==="desc"?Oq(d.binding):zq(d.binding):u=_==="desc"?Lq(d.binding):Nq(d.binding),[...this.tableRows.sort(u)]}return this.tableRows}replaceVars(e,i){return e.replace(/\{(.*?)\}/g,(o,u)=>u.split(".").reduce((_,w)=>_?_[w]:null,i))}removeFalseBooleanAttributes(e,i){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(o,u,d)=>i[d]===!1?"":u)}tableRowClicked(e,i){var o;const u=e.target,d=u.closest("td").cellIndex,_=this.selectable?d-1:d;if(u.tagName.toLowerCase()!=="td"&&this.columns[_]){const w={detail:i};(o=this.columns[_])===null||o===void 0||o.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",w))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return Xe(ko,null,Xe("table",{class:"table"},Xe("thead",null,Xe("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var i;const o=e.fitContent?"":e.width||"auto",u=((i=this.sortByColumn)===null||i===void 0?void 0:i.column)===e?this.sortByColumn.sortOrder:null;return Xe("th",{"data-binding":e.binding,style:{width:o,"max-width":o,"min-width":o},onClick:d=>this.columnHeaderClickHandler(d,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${zv(e.sortable)?"table__header-cell--no-sort":""} ${zv(u)?"":u} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),Xe("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return Xe("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},Xe("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return Xe("td",{class:"table__data table__data--align-center"},Xe("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:i=>this.selectOnChangeHandler(i,e)}))}renderTableContent(){let e=this.sortTableRows();return e=_z(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(i=>this.renderTableRow(i))}renderTableRow(e){const i=[];for(const o of this.columns){let u=o.template;u>""?(u=this.removeFalseBooleanAttributes(u,e),u=this.replaceVars(u,e),i.push(u)):i.push(e[o.binding])}return Xe("tr",{class:"table__row",onClick:o=>this.tableRowClicked(o,e)},this.renderSelectRow(e),i.map((o,u)=>Xe("td",{class:`table__data ${this.columns[u].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[u].alignContent||"left"} ${this.columns[u].monospace?"table__data--monospace-font":""}`,innerHTML:o})))}renderEmptyPage(){return Xe("div",{class:"empty-page"},Xe("p",{class:"empty-page__header"},this.emptyPageHeader),Xe("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,i){e.target.checked?this.selected.add(i):this.selected.delete(i),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return _c(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},Nq=e=>(i,o)=>`${i[e]||""}`.localeCompare(`${o[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Lq=e=>(i,o)=>`${o[e]||""}`.localeCompare(`${i[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),zq=e=>(i,o)=>{const u=Date.parse(i[e]),d=Date.parse(o[e]);return u>d?1:u<d?-1:0},Oq=e=>(i,o)=>{const u=Date.parse(o[e]),d=Date.parse(i[e]);return u>d?1:u<d?-1:0};vz.style=Eq;const kq=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:vz},Symbol.toStringTag,{value:"Module"}));var La;(function(e){e.Imperial="imperial",e.Metric="metric"})(La||(La={}));const jq=class{constructor(e){Ir(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?La.Imperial:La.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const u=e*3.28084;return Math.round(u)>0?`${Math.round(u)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return Xe("span",null,this.unit===La.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},Pq=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */