@mappedin/react-sdk 6.0.1-beta.45 → 6.0.1-beta.47

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 (35) hide show
  1. package/THIRD_PARTY_LICENSES.txt +2169 -27784
  2. package/lib/esm/{GLTFExporter-64BG5G32.js → GLTFExporter-7OZO7OAN.js} +1 -1
  3. package/lib/esm/GLTFLoader-BTM3ARCC.js +1 -0
  4. package/lib/esm/{browser-4WZEG5RQ.js → browser-RWOI5BLY.js} +1 -1
  5. package/lib/esm/chunk-3DLWMSMA.js +1 -0
  6. package/lib/esm/{chunk-OFX4UKYI.js → chunk-7WCA75NG.js} +1 -1
  7. package/lib/esm/chunk-MH6J7HN7.js +1 -0
  8. package/lib/esm/chunk-NS37OT4J.js +1 -0
  9. package/lib/esm/chunk-OEBM7FFM.js +1 -0
  10. package/lib/esm/chunk-PEDEW3M6.js +1 -0
  11. package/lib/esm/chunk-SB6JFH4C.js +1 -0
  12. package/lib/esm/index.css +1 -1
  13. package/lib/esm/index.d.ts +319 -128
  14. package/lib/esm/index.js +1 -1
  15. package/lib/esm/inspector-WRNBK432.js +1 -0
  16. package/lib/esm/inspector-WWR77OPX.css +1 -0
  17. package/lib/esm/internal-KFN6TGNE.js +1 -0
  18. package/lib/esm/internal-M7DPGYMI.css +1 -0
  19. package/lib/esm/outdoor-context-v4-T22T5B5J.js +1 -0
  20. package/lib/esm/{roboto-regular-E5TUWU5Q.js → roboto-regular-3HSVPIGX.js} +1 -1
  21. package/lib/esm/text3d-LSJE37UM.js +1 -0
  22. package/package.json +6 -6
  23. package/lib/esm/GLTFLoader-ELXGWZD3.js +0 -1
  24. package/lib/esm/chunk-BYMKRV3A.js +0 -1
  25. package/lib/esm/chunk-FAMEMKII.js +0 -1
  26. package/lib/esm/chunk-FSBH4P52.js +0 -1
  27. package/lib/esm/chunk-GVHB2OJC.js +0 -1
  28. package/lib/esm/chunk-LQS3FVBN.js +0 -1
  29. package/lib/esm/chunk-VVO7QO3Y.js +0 -1
  30. package/lib/esm/inspector-GOK26VAV.css +0 -1
  31. package/lib/esm/inspector-I2YHDXM6.js +0 -1
  32. package/lib/esm/internal-7A3UJNAV.css +0 -1
  33. package/lib/esm/internal-7LLUWCE5.js +0 -1
  34. package/lib/esm/outdoor-context-v4-XU2K4KTH.js +0 -1
  35. package/lib/esm/text3d-OPI6K2SH.js +0 -1
@@ -1 +0,0 @@
1
- import{h as ae,i as ke,j as Ge}from"./chunk-FSBH4P52.js";import{$a as Ae,M as x,N as ne,P as ie,R as L,S as oe,ma as Oe}from"./chunk-FAMEMKII.js";import{a as u,b as d}from"./chunk-GVHB2OJC.js";import{a as o,f as i,g as h,h as S,i as y}from"./chunk-BYMKRV3A.js";u();function wt(r,e,t=!1){let n=null,a=0;return function(...s){a++,a===1&&t===!0&&r(...s);let l=o(()=>{(!t||a>1)&&r(...s),n=null,a=0},"later");clearTimeout(n),n=setTimeout(l,e)}}o(wt,"debounce");u();u();var se="[MappedinJS]",et=(a=>(a[a.LOG=0]="LOG",a[a.WARN=1]="WARN",a[a.ERROR=2]="ERROR",a[a.SILENT=3]="SILENT",a))(et||{});function Ot(r){0<=r&&r<=3&&(Fe.logState=r)}o(Ot,"setLoggerLevel");var Fe={logState:d.env.NODE_ENV==="test"?3:0,log(...r){this.logState<=0&&console.log(se,...r)},warn(...r){this.logState<=1&&console.warn(se,...r)},error(...r){this.logState<=2&&console.error(se,...r)},assert(...r){console.assert(...r)},time(r){console.time(r)},timeEnd(r){console.timeEnd(r)}},ue=Fe;u();u();var le=class le extends Error{};o(le,"InvalidTokenError");var R=le;R.prototype.name="InvalidTokenError";function tt(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}o(tt,"b64DecodeUnicode");function rt(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return tt(e)}catch{return atob(e)}}o(rt,"base64UrlDecode");function Ne(r,e){if(typeof r!="string")throw new R("Invalid token specified: must be a string");e||(e={});let t=e.header===!0?0:1,n=r.split(".")[t];if(typeof n!="string")throw new R("Invalid token specified: missing part #".concat(t+1));let a;try{a=rt(n)}catch(s){throw new R("Invalid token specified: invalid base64 for part #".concat(t+1," (").concat(s.message,")"))}try{return JSON.parse(a)}catch(s){throw new R("Invalid token specified: invalid json for part #".concat(t+1," (").concat(s.message,")"))}}o(Ne,"jwtDecode");u();var _=63710088e-1;function zt(r){var t,n;let e=Ne(r);if(e.sub==null)throw new Error("Access token is missing sub claim.");return{sub:e.sub,aud:typeof e.aud=="string"?[e.aud]:(t=e.aud)!=null?t:[],capabilities:(n=e.capabilities)!=null?n:{}}}o(zt,"decodeAccessToken");function O(r){return r*(Math.PI/180)}o(O,"toRadians");function nt(r){return r*(180/Math.PI)}o(nt,"toDegrees");function Wt(r,e){let t=Math.pow(10,e);return Math.sign(r)*Math.round(Math.abs(r)*t)/t}o(Wt,"round");function Re(r,e){return(r%e+e)%e}o(Re,"euclideanModulo");function Jt([r,e],[t,n]){let a=O(n-e),s=O(t-r),l=O(e),c=O(n),m=Math.sin(a/2)*Math.sin(a/2)+Math.sin(s/2)*Math.sin(s/2)*Math.cos(l)*Math.cos(c),p=2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m));return _*p}o(Jt,"haversineDistance");function qt([r,e],[t,n]){let a=O(e),s=O(r),l=O(n),m=O(t)-s,p=Math.sin(m)*Math.cos(l),g=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(m);return nt((Math.atan2(p,g)+Math.PI*2)%(Math.PI*2))}o(qt,"getForwardBearing");function Yt(r,e){let t=Re(r,Math.PI*2),n=Re(e,Math.PI*2),a=n-t,s=n+(a>Math.PI?-Math.PI*2:a<-Math.PI?Math.PI*2:0);return{start:t,end:s}}o(Yt,"shortestTweenRotation");function it(r){return r instanceof Ae?Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y):Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y)&&Number.isFinite(r.min.z)&&Number.isFinite(r.max.z)}o(it,"isFiniteBox");function $t(r,e,t,n){return(r<e||r>t)&&ue.warn(n),Math.min(t,Math.max(e,r))}o($t,"clampWithWarning");function Kt(r,e){if(r==null||e==null)return r===e;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}o(Kt,"arraysEqual");u();var $=class $ extends Error{constructor(t){super(t);i(this,"name","AssertionError");Error.captureStackTrace&&Error.captureStackTrace(this,$)}};o($,"AssertionError");var ce=$;function _e(r,e){if(r==null){let t;if(e!=null&&e.customMessage)t=e.customMessage;else{let s=e!=null&&e.valueName?"'".concat(e.valueName,"'"):"value";t="Expected ".concat(s," to be defined, but received ").concat(r)}let n=(e==null?void 0:e.errorClass)||ce,a=new n(t);throw(e==null?void 0:e.captureStackTrace)!==!1&&Error.captureStackTrace&&Error.captureStackTrace(a,_e),a}}o(_e,"assertExists");function er(r,e,t){if(_e(r),(r==null?void 0:r.type)!==e){let n="Expected type ".concat(e," but got ").concat(r==null?void 0:r.type);throw new Error(t!=null?t:n)}}o(er,"assertType");u();var me=[0,4,6,8,10],v=o(()=>{let r=new Array(16).fill(0),e=Math.random()*4294967296;for(let n=0;n<r.length;n++)n>0&&(n&3)===0&&(e=Math.random()*4294967296),r[n]=e>>>((n&3)<<3)&255;let t=r.map(n=>n.toString(16).padStart(2,"0"));return t[6]="4"+t[6][1],t[8]=["8","9","a","b"].includes(t[7][0])?t[7]:"a"+t[7][1],me.map((n,a)=>t.slice(n,a===me.length-1?void 0:me[a+1]).join("")).join("-")},"randomId");u();var pe=class pe{constructor(){i(this,"_subscribers",{})}publish(e,t){!this._subscribers||!this._subscribers[e]||this._subscribers[e].forEach(function(n){typeof n=="function"&&n(t)})}on(e,t){this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(t)}off(e,t){if(!this._subscribers||this._subscribers[e]==null)return;let n=this._subscribers[e].indexOf(t);n!==-1&&this._subscribers[e].splice(n,1)}destroy(){this._subscribers={}}};o(pe,"PubSub");var de=pe;u();var Be="mi-session-data",Ve="mi-local-data",B,T,M,U=class U{constructor(){S(this,T);S(this,M);try{let e=sessionStorage.getItem(Be);e?y(this,T,JSON.parse(e)):y(this,T,{id:v()})}catch{y(this,T,{id:v()})}try{let e=localStorage.getItem(Ve);e?y(this,M,JSON.parse(e)):y(this,M,{deviceId:v()})}catch{y(this,M,{deviceId:v()})}h(this,T).id||(h(this,T).id=v()),h(this,M).deviceId||(h(this,M).deviceId=v())}static getInstance(){return h(this,B)||y(this,B,new U),h(this,B)}static ___clearInstance(){y(this,B,void 0)}saveSessionData(e,t){h(this,T)[e]=t;try{return sessionStorage.setItem(Be,JSON.stringify(h(this,T))),!0}catch{return!1}}loadSessionData(e){let t=h(this,T)[e];if(t!=null)return t}saveLocalData(e,t){h(this,M)[e]=t;try{return localStorage.setItem(Ve,JSON.stringify(h(this,M))),!0}catch{return!1}}loadLocalData(e){let t=h(this,M)[e];if(t!=null)return t}};B=new WeakMap,T=new WeakMap,M=new WeakMap,o(U,"SafeStorage"),S(U,B);var fe=U;u();function ot(r){return(r%(2*Math.PI)+2*Math.PI)%(2*Math.PI)}o(ot,"normalizeAngle");u();u();u();u();u();u();u();u();var b=63710088e-1,Ue={centimeters:b*100,centimetres:b*100,degrees:b/111325,feet:b*3.28084,inches:b*39.37,kilometers:b/1e3,kilometres:b/1e3,meters:b,metres:b,miles:b/1609.344,millimeters:b*1e3,millimetres:b*1e3,nauticalmiles:b/1852,radians:1,yards:b*1.0936},Pr={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/b,yards:1.0936133};function A(r,e,t){t===void 0&&(t={});var n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}o(A,"feature");function at(r,e,t){if(t===void 0&&(t={}),!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!je(r[0])||!je(r[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:r};return A(n,e,t)}o(at,"point");function wr(r,e,t){t===void 0&&(t={});for(var n=0,a=r;n<a.length;n++){var s=a[n];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<s[s.length-1].length;l++)if(s[s.length-1][l]!==s[0][l])throw new Error("First and last Position are not equivalent.")}var c={type:"Polygon",coordinates:r};return A(c,e,t)}o(wr,"polygon");function He(r,e,t){if(t===void 0&&(t={}),r.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:r};return A(n,e,t)}o(He,"lineString");function Cr(r,e){e===void 0&&(e={});var t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=r,t}o(Cr,"featureCollection");function Ir(r,e,t){t===void 0&&(t={});var n={type:"MultiLineString",coordinates:r};return A(n,e,t)}o(Ir,"multiLineString");function Lr(r,e,t){t===void 0&&(t={});var n={type:"MultiPolygon",coordinates:r};return A(n,e,t)}o(Lr,"multiPolygon");function Or(r,e){e===void 0&&(e="kilometers");var t=Ue[e];if(!t)throw new Error(e+" units is invalid");return r*t}o(Or,"radiansToLength");function Ar(r,e){e===void 0&&(e="kilometers");var t=Ue[e];if(!t)throw new Error(e+" units is invalid");return r/t}o(Ar,"lengthToRadians");function kr(r){var e=r%(2*Math.PI);return e*180/Math.PI}o(kr,"radiansToDegrees");function Gr(r){var e=r%360;return e*Math.PI/180}o(Gr,"degreesToRadians");function je(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}o(je,"isNumber");function K(r,e,t){if(r!==null)for(var n,a,s,l,c,m,p,g=0,f=0,w,C=r.type,D=C==="FeatureCollection",G=C==="Feature",te=D?r.features.length:1,F=0;F<te;F++){p=D?r.features[F].geometry:G?r.geometry:r,w=p?p.type==="GeometryCollection":!1,c=w?p.geometries.length:1;for(var re=0;re<c;re++){var E=0,N=0;if(l=w?p.geometries[re]:p,l!==null){m=l.coordinates;var I=l.type;switch(g=t&&(I==="Polygon"||I==="MultiPolygon")?1:0,I){case null:break;case"Point":if(e(m,f,F,E,N)===!1)return!1;f++,E++;break;case"LineString":case"MultiPoint":for(n=0;n<m.length;n++){if(e(m[n],f,F,E,N)===!1)return!1;f++,I==="MultiPoint"&&E++}I==="LineString"&&E++;break;case"Polygon":case"MultiLineString":for(n=0;n<m.length;n++){for(a=0;a<m[n].length-g;a++){if(e(m[n][a],f,F,E,N)===!1)return!1;f++}I==="MultiLineString"&&E++,I==="Polygon"&&N++}I==="Polygon"&&E++;break;case"MultiPolygon":for(n=0;n<m.length;n++){for(N=0,a=0;a<m[n].length;a++){for(s=0;s<m[n][a].length-g;s++){if(e(m[n][a][s],f,F,E,N)===!1)return!1;f++}N++}E++}break;case"GeometryCollection":for(n=0;n<l.geometries.length;n++)if(K(l.geometries[n],e,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}o(K,"coordEach");function Vr(r,e){if(r.type==="Feature")e(r,0);else if(r.type==="FeatureCollection")for(var t=0;t<r.features.length&&e(r.features[t],t)!==!1;t++);}o(Vr,"featureEach");function st(r,e){var t,n,a,s,l,c,m,p,g,f,w=0,C=r.type==="FeatureCollection",D=r.type==="Feature",G=C?r.features.length:1;for(t=0;t<G;t++){for(c=C?r.features[t].geometry:D?r.geometry:r,p=C?r.features[t].properties:D?r.properties:{},g=C?r.features[t].bbox:D?r.bbox:void 0,f=C?r.features[t].id:D?r.id:void 0,m=c?c.type==="GeometryCollection":!1,l=m?c.geometries.length:1,a=0;a<l;a++){if(s=m?c.geometries[a]:c,s===null){if(e(null,w,p,g,f)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,w,p,g,f)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,p,g,f)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}o(st,"geomEach");function ut(r,e){st(r,function(t,n,a,s,l){var c=t===null?null:t.type;switch(c){case null:case"Point":case"LineString":case"Polygon":return e(A(t,a,{bbox:s,id:l}),n,0)===!1?!1:void 0}var m;switch(c){case"MultiPoint":m="Point";break;case"MultiLineString":m="LineString";break;case"MultiPolygon":m="Polygon";break}for(var p=0;p<t.coordinates.length;p++){var g=t.coordinates[p],f={type:m,coordinates:g};if(e(A(f,a),n,p)===!1)return!1}})}o(ut,"flattenEach");function lt(r,e){ut(r,function(t,n,a){var s=0;if(t.geometry){var l=t.geometry.type;if(!(l==="Point"||l==="MultiPoint")){var c,m=0,p=0,g=0;if(K(t,function(f,w,C,D,G){if(c===void 0||n>m||D>p||G>g){c=f,m=n,p=D,g=G,s=0;return}var te=He([c,f],t.properties);if(e(te,n,a,G,s)===!1)return!1;s++,c=f})===!1)return!1}}})}o(lt,"segmentEach");function jr(r,e,t){var n=t,a=!1;return lt(r,function(s,l,c,m,p){a===!1&&t===void 0?n=s:n=e(n,s,l,c,m,p),a=!0}),n}o(jr,"segmentReduce");function he(r){var e=[1/0,1/0,-1/0,-1/0];return K(r,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}o(he,"bbox");he.default=he;var ze=he;function We(r){return ze(r)}o(We,"getBoundingBoxFromFeature");u();var ge="#ffffff";var be=class be{constructor(e={}){i(this,"initialColor",ge);i(this,"color",ge);i(this,"initialTopColor");i(this,"topColor");i(this,"topTexture");i(this,"texture");i(this,"hoverColor");i(this,"dirty",!0);i(this,"visible",!0);i(this,"opacity",1);i(this,"width",.1);i(this,"height",.1);i(this,"initialHeight",.1);i(this,"altitude",0);i(this,"join","round");i(this,"cap","round");i(this,"showImage",!0);i(this,"flipImageToFaceCamera",!0);i(this,"url");i(this,"side","double");i(this,"renderOrder",0);this.color=(e==null?void 0:e.color)!==void 0?e.color:this.color,this.initialColor=this.color,this.width=(e==null?void 0:e.width)!==void 0?e.width:this.width,this.opacity=(e==null?void 0:e.opacity)!==void 0?e.opacity:this.opacity,this.visible=(e==null?void 0:e.visible)!==void 0?e.visible:this.visible,this.height=(e==null?void 0:e.height)!==void 0?e.height:this.height,this.initialHeight=this.height,this.altitude=(e==null?void 0:e.altitude)!==void 0?e.altitude:this.altitude,this.join=(e==null?void 0:e.join)!==void 0?e.join:this.join,this.cap=(e==null?void 0:e.cap)!==void 0?e.cap:this.cap,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.texture=e==null?void 0:e.texture,this.topTexture=e==null?void 0:e.topTexture,this.showImage=(e==null?void 0:e.showImage)!==void 0?e.showImage:this.showImage,this.flipImageToFaceCamera=(e==null?void 0:e.flipImageToFaceCamera)!==void 0?e.flipImageToFaceCamera:this.flipImageToFaceCamera,this.url=e==null?void 0:e.url,this.side=(e==null?void 0:e.side)!==void 0?e.side:this.side,this.renderOrder=(e==null?void 0:e.renderOrder)!==void 0?e.renderOrder:this.renderOrder}};o(be,"StyleComponent");var ye=be;var xe=class xe extends Oe{constructor(){super(...arguments);i(this,"type","entityBatchedMesh");i(this,"userData",{entities:{}})}};o(xe,"EntityBatchedMesh");var X=xe,H,z,V,ve=class ve{constructor(e){i(this,"mesh");i(this,"focusMesh");i(this,"imageMesh");i(this,"textMesh");i(this,"textEntityId");i(this,"type","geometry");i(this,"dirty",!0);i(this,"detached",!1);i(this,"instanceIndex",-1);i(this,"geometry");i(this,"material");i(this,"feature");i(this,"currentHeight",.1);i(this,"focusable",!1);i(this,"color",new oe);i(this,"topColor",new oe);i(this,"position",new x);S(this,H,0);S(this,z,1);S(this,V);i(this,"texturesVisible",!1);this.feature=e}get visible(){return this.mesh&&this.instanceIndex!==-1?this.mesh.getVisibleAt(this.instanceIndex):!1}set visible(e){this.mesh&&this.instanceIndex!==-1&&this.mesh.setVisibleAt(this.instanceIndex,e)}get renderOrder(){return this.mesh?this.mesh.renderOrder:0}set renderOrder(e){this.mesh&&(this.mesh.renderOrder=e)}setColor(e,t){this.color.set(e),this.topColor.set(t),this.material&&this.material.setColor(this.instanceIndex,this.color,this.topColor)}getColor(){var e;return(e=this.material)==null?void 0:e.getColor(this.instanceIndex)}get altitude(){return h(this,H)}set altitude(e){this.mesh&&(this.mesh.position.z=e,y(this,H,e))}get opacity(){return h(this,z)}set opacity(e){if(this.material&&(this.material.opacity=e,this.material.transparent=e<1,this.material.needsUpdate=!0),this.imageMesh){let t=Array.isArray(this.imageMesh.material)?this.imageMesh.material:[this.imageMesh.material];for(let n of t)n.opacity=e,n.needsUpdate=!0}y(this,z,e)}get texture(){var e,t;return(t=(e=this.material)==null?void 0:e.texture)==null?void 0:t.image.src}set texture(e){this.material&&(this.material.texture=e)}get textureInstance(){var e;return(e=this.material)==null?void 0:e.texture}set topTexture(e){this.material&&(this.material.topTexture=e)}get topTexture(){var e,t;return(t=(e=this.material)==null?void 0:e.topTexture)==null?void 0:t.image.src}get topTextureInstance(){var e;return(e=this.material)==null?void 0:e.topTexture}set blendTexture(e){this.material&&(this.material.blendTexture=e)}get featureBbox(){return h(this,V)?h(this,V):(y(this,V,We(this.feature)),h(this,V))}showTextures(){this.material&&(this.material.showTextures(this.instanceIndex),this.texturesVisible=!0)}hideTextures(){this.material&&(this.material.hideTextures(this.instanceIndex),this.texturesVisible=!1)}removeSideTexture(){this.material&&this.material.removeSideTexture(this.instanceIndex)}removeTopTexture(){this.material&&this.material.removeTopTexture(this.instanceIndex)}};H=new WeakMap,z=new WeakMap,V=new WeakMap,o(ve,"MeshComponent");var Je=ve;u();var qe="#ffffff",k,Te=class Te{constructor(e={}){i(this,"color",qe);i(this,"initialColor",qe);i(this,"topColor");i(this,"initialTopColor");i(this,"opacity",1);i(this,"height");S(this,k);i(this,"outline",!0);i(this,"texture");i(this,"topTexture");i(this,"dirty",!0);var t,n;this.color=(t=e==null?void 0:e.color)!=null?t:this.color,this.initialColor=this.color,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.opacity=(n=e==null?void 0:e.opacity)!=null?n:this.opacity,this.height=e==null?void 0:e.height,this.shading=e==null?void 0:e.shading,this.outline=(e==null?void 0:e.outline)!==void 0?!!e.outline:this.outline}get shading(){return h(this,k)}set shading(e){var t;if(!e){y(this,k,void 0);return}y(this,k,(t=h(this,k))!=null?t:{start:0,end:0,intensity:0}),Object.assign(h(this,k),e)}};k=new WeakMap,o(Te,"GeometryGroupStyleComponent");var Z=Te;var Me=class Me extends L{constructor(t,n=new Z){super();i(this,"visible",!0);i(this,"type","geometry-group");i(this,"components");i(this,"userData",{entityId:"",entities3D:new Set,opacity:1,dirty:!0,shadingDirty:!0});this.components=[n],this.userData.entityId=t}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}getOpacity(){return this.userData.opacity}setOpacity(t){this.userData.opacity=t}removeEntity(){this.dispatchEvent({type:"childremoved",child:this})}getfirstChildEntityId(){let t;for(let a of this.children)if(!a.userData.detached){t=a;break}return t instanceof X?Object.values(t.userData.entities)[0]:void 0}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}};o(Me,"GeometryGroupObject3D");var P=Me;u();var De=class De extends L{};o(De,"Geometry2DObject3D");var j=De,Ee=class Ee{constructor(e,t,n=0){i(this,"id");i(this,"verticalOffset");i(this,"positionDirty",!0);i(this,"occluderId");i(this,"object3d",new j);i(this,"components");i(this,"disposed",!1);i(this,"worldPosition",new x);this.id=e.id||v(),this.components=[e],this.verticalOffset=n,this.object3d=new j,this.object3d.position.set(t.x,t.y,t.z+n),this.object3d.userData.entityId=this.id,this.object3d.userData.type=this.type}get type(){return this.components[0].type}get parentObject3D(){return this.object3d.parent}get attachedTo(){return this.object3d.userData.attachedEntityId}get position(){return this.object3d.getWorldPosition(this.worldPosition),this.worldPosition}setAltitude(e){this.object3d.position.z=e}};o(Ee,"Geometry2D");var W=Ee;u();var Se=class Se extends L{constructor(){super(...arguments);i(this,"type","geometry");i(this,"userData",{entityId:"",type:"geometry"})}raycast(t,n){this.userData.type==="model"&&this.children[0]&&t.intersectObject(this.children[0],!0).forEach(a=>{n.push(a)})}};o(Se,"Geometry3DObject3D");var Q=Se,Pe=class Pe{constructor(e,t){i(this,"id",v());i(this,"components");i(this,"entities2D",new Map);this.components=[e,t]}get object3d(){return this.components[0].mesh}get parentObject3D(){var e;return(e=this.components[0].mesh)==null?void 0:e.parent}get type(){return this.components[0].type}attach(e){this.parentObject3D instanceof P?e.object3d.userData.attachedEntityId=this.id:this.entities2D.set(e.id,e)}detach(e){this.parentObject3D instanceof P&&(e.object3d.userData.parentEntityId=void 0),this.entities2D.delete(e.id)}removeAllEntities(){for(let e of this.entities2D.values())this.detach(e)}};o(Pe,"Geometry3D");var J=Pe;var q=class q extends L{constructor(t){super();i(this,"childrenIds",new Set);i(this,"children",[]);i(this,"type","group-container");i(this,"userData",{entityId:"",entities2D:new Set,dirty:!0,occluderDirty:!1,opacity:1,computedOpacity:1});i(this,"components",[]);this.userData.entityId=t}addOccluderFeature(t,n){this.userData.occluderFeature=t,this.userData.occluderId=n,this.userData.occluderDirty=!0}addEntity(t){t instanceof q?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof W?(this.childrenIds.add(t.id),this.add(t.object3d),this.userData.entities2D.add(t.id)):t instanceof P?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof J&&t.object3d&&(this.childrenIds.add(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childadded",child:this})}removeEntity(t){t instanceof q?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof W?(this.childrenIds.delete(t.id),this.userData.entities2D.delete(t.id),this.remove(t.object3d)):t instanceof P?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof J&&t.object3d&&(this.childrenIds.delete(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childremoved",child:this})}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}setOpacity(t){this.userData.opacity=t}get opacity(){return this.userData.opacity}};o(q,"GroupContainerObject3D");var Y=q;u();var Nn={top:0,bottom:0,left:0,right:0,type:"pixel"},Ye="mappedin";var Rn=250;u();function mt(r){let e=r.min,t=r.max,n=new x(e.x,e.y,e.z),a=new x(t.x,e.y,e.z),s=new x(e.x,t.y,e.z),l=new x(t.x,t.y,e.z);return[n,a,s,l]}o(mt,"getCornersOfBoundingBox");u();function $e(r,e){let t;return typeof e=="string"||typeof e=="number"?(t=r.geometry2DMap.get(e),t==null&&(t=r.geometry3DMap.get(e))):typeof(e==null?void 0:e.id)=="string"||typeof(e==null?void 0:e.id)=="number"?(t=r.geometry2DMap.get(e.id),t==null&&(t=r.geometry3DMap.get(e.id))):t=e,t}o($e,"getGeometryByGeometryId");function Wn(r,e,t=[],n=new ne,a){(r.getSystems().renderSystem.threeDdirty||r.getSystems().renderSystem.twoDdirty)&&r.renderSync();let s=$e(r.getInternalState(),e);return Ke(s,t,n,a),t}o(Wn,"getVerticesOfEntity");var ee=new x;function Ke(r,e=[],t=new ne,n){if(r.visible){if(r.isMesh||r.isLine||r.isPoints){let a=r.geometry;if(a.isBufferGeometry){let s=a.attributes.position;for(let l=0;l<s.count;l++)ee.fromBufferAttribute(s,l),n!==void 0&&(ee.z=n),e.push(ee.clone()),t.expandByPoint(ee)}}for(let a of r.children)Ke(a,e,t,n)}}o(Ke,"traverse");u();function dt(){return typeof window>"u"?1:Math.min(window.devicePixelRatio,2)}o(dt,"getPixelRatio");u();function pt(r,e,t=!1){let n=null,a=0;return function(...s){a++,a===1&&t===!0&&r(...s);let l=o(()=>{(!t||a>1)&&r(...s),n=null,a=0},"later");clearTimeout(n),n=setTimeout(l,e)}}o(pt,"debounce");u();var ft=(()=>{let r;return{getDeviceType(){if(r)return r;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,a=/(iphone|ipod|ipad)/i.test(e),s=t==="iPad"||t.indexOf("Mac")===0&&n>0&&!window.MSStream,l=/android/i.test(e);return r={isIpad:s,isMobile:l||a||s,isSafari12:/Version\/12.+Safari/.test(e),isFirefox:/Firefox/.test(e),isWindows:/windows/i.test(e)},r},_reset(){r=void 0}}})(),Xe=ft.getDeviceType,Ze=(()=>{let r,e,t;function n(){if(e!==void 0)return e;r||(r=document.createElement("canvas"));let s=r.getContext("webgl")||r.getContext("experimental-webgl");if(!s)return e;try{let l=Xe().isFirefox?null:s.getExtension("WEBGL_debug_renderer_info");return e=l?s.getParameter(l.UNMASKED_RENDERER_WEBGL):s.getParameter(s.RENDERER),e}catch{let c=new Error("Failed getting device info");throw c.name="FailedGettingDeviceInfo",c}}o(n,"getInfo");function a(){var l,c;if(!Xe().isWindows)return!1;if(t!==void 0)return t;let s=(c=(l=ht())==null?void 0:l.toLowerCase())!=null?c:"";return t=s.includes("intel")&&(s.includes("uhd")||s.includes("iris")),t}return o(a,"shouldDisableOffscreenCanvas"),{getInfo:n,shouldDisableOffscreenCanvas:a,_setCanvas(s){r=s,e=void 0,t=void 0}}})(),ht=Ze.getInfo,gt=Ze.shouldDisableOffscreenCanvas;u();function yt(r,e){let t={};for(let n=0;n<e.length;n++){let a=e[n];a in r&&(t[a]=r[a])}return t}o(yt,"pick");function bt(r){return Object.keys(r).length===0}o(bt,"isEmpty");u();var xt=o(r=>e=>{if(!e.includes("mappedin")){let t={};for(let n in r){let a=r[n];e.includes("mappedin")||(r[n]=a)}return{url:e,headers:t}}return{url:e,headers:r}},"transformRequest");function xi(r,e,t,n){let a=r*(Math.PI/180),s=n/_,l=r+s*180/Math.PI,c=t/_/Math.cos(a),m=e+c*180/Math.PI;return{lat:l,lon:m}}o(xi,"cartesianToGeographic");function vi(r,e,t,n){let a=t*(Math.PI/180),s=n*(Math.PI/180),l=r*(Math.PI/180),c=e*(Math.PI/180),m=a-l,p=s-c,g=_*p*Math.cos(l),f=_*m;return{x:g,y:f}}o(vi,"geographicToCartesian");var vt=o((r,e)=>{var t;if(r.children&&r.visible)for(let n of r.children){if(n.visible&&n.type)if("entities3D"in n.userData&&((t=n.userData)!=null&&t.entities3D)&&n.type==="geometry-group"){e.add(n.userData.entityId);for(let a of n.userData.entities3D.values())e.add(a)}else(n.type==="group-container"||n.type==="custom-geometry"||n instanceof Q)&&e.add(n.userData.entityId);vt(n,e)}return e},"populateGeometry3DIdsInScene"),Tt=o((r,e)=>{var t;if(r.children&&r.visible&&!((t=r.userData)!=null&&t.hidden))for(let n of r.children)n.visible&&n instanceof j&&e.add(n.userData.entityId),Tt(n,e);return e},"populateGeometry2DIdsInScene");function Mt(r,e){for(let t in e){if(e[t]==null){r[t]=void 0;continue}typeof e[t]=="object"?Mt(r[t],e[t]):r[t]=e[t]}return r}o(Mt,"mergeObjects");function Ti(r,e,t,n){let a={translateX:r.x,translateY:r.y,translateZ:r.z,scale:r.meterInMercatorCoordinateUnits()},s=new ie,l=new x(a.scale,-a.scale,a.scale),c=new ie().makeTranslation(a.translateX,a.translateY,a.translateZ).scale(l),m=t.elevation;return{id:Ye,type:"custom",renderingMode:"3d",render:o((p,g)=>{if(s.fromArray(g),m!==t.elevation){let f=Ge.fromLngLat(r.toLngLat(),t.elevation);c.makeTranslation(a.translateX,a.translateY,-f.z).scale(l)}e.projectionMatrix=s.multiply(c),m=t.elevation,n()},"render")}}o(Ti,"createCustomLayer");function Dt(r){return fetch(r,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"client_credentials"})})}o(Dt,"fetchToken");async function Mi(r){let e=await Dt(r),{access_token:t}=await e.json();return{"x-mappedin-tiles-key":t}}o(Mi,"getRequestHeaders");function Di(r,e=0){let t=3735928559^e,n=1103547991^e;for(let a=0,s;a<r.length;a++)s=r.charCodeAt(a),t=Math.imul(t^s,2654435761),n=Math.imul(n^s,1597334677);return t=Math.imul(t^t>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(t^t>>>13,3266489909),4294967296*(2097151&n)+(t>>>0)}o(Di,"cyrb53");var Et=o(r=>r,"linearEase");var Ei=o(r=>1-Math.cos(r*Math.PI/2),"easeIn");function Si(r,e,t,n,a,s=Et){r=Math.max(e,Math.min(r,t));let l=(r-Math.min(e,t))/Math.abs(t-e),c=s(l);return n+c*(a-n)}o(Si,"interpolate");function Pi(r,e,t){let n=r*(Math.PI/180)/2,a=e/2;return t*Math.tan(n)/a}o(Pi,"getProjectionScaleFactor");function wi(r){return new ke(new ae(r[0][0],r[0][1]),new ae(r[1][0],r[1][1])).getCenter().toArray()}o(wi,"getBoundingBoxCenter");function Ci(r,e){return r<e||e<=12}o(Ci,"shouldExpandZoomLevel");function Ii(r){let e=1;return r.type==="geometry-group"&&r.parent!=null&&r.parent instanceof Y?e=r.parent.userData.computedOpacity:(r.type==="geometry"||r.type==="custom-geometry"||r.type==="model")&&r.parentObject3D!=null&&r.parentObject3D instanceof P&&r.parentObject3D.parent!=null&&r.parentObject3D.parent instanceof Y&&(e=r.parentObject3D.parent.userData.computedOpacity),e}o(Ii,"getGroupContainerOpacity");u();var Ce=class Ce{constructor(e){i(this,"visible");i(this,"altitude");i(this,"color");i(this,"dirty",!0);i(this,"maxWidth");i(this,"maxHeight");i(this,"hoverByPolygon");i(this,"flipToFaceCamera",Qe.flipToFaceCamera);i(this,"font");i(this,"fillOpacity");i(this,"fontSize");i(this,"margin");i(this,"outlineWidth");i(this,"outlineBlur");i(this,"outlineOffsetX");i(this,"strokeColor");i(this,"strokeOpacity");i(this,"strokeWidth");i(this,"hoverColor");i(this,"outlineOffsetY");i(this,"outlineColor");i(this,"outlineOpacity");e&&Object.assign(this,e)}getState(e=!1){let t={};for(let n in this)!e&&n==="dirty"||this[n]!==void 0&&(t[n]=this[n]);return t}};o(Ce,"Text3DStyleComponent");var we=Ce,Qe=Object.freeze({visible:!0,color:"black",flipToFaceCamera:!0,fillOpacity:1,font:void 0,fontSize:2,margin:[.2,1,.2,1.5],outlineColor:"black",outlineOpacity:1,outlineWidth:0,outlineOffsetX:0,outlineOffsetY:0,outlineBlur:0,strokeOpacity:1,strokeWidth:0,maxWidth:void 0,maxHeight:void 0,strokeColor:"black",hoverColor:void 0});u();u();var Le=class Le{constructor(e){i(this,"dirty",!0);i(this,"visible",!0);i(this,"opacity",1);i(this,"verticalOffset",0);i(this,"interactive",!1);i(this,"color");i(this,"material");i(this,"rotation");i(this,"scale");e&&Object.assign(this,e)}};o(Le,"ModelStyleComponnet");var Ie=Le;u();var St=[1,1,1],Pt=[0,0,0];export{se as a,et as b,Ot as c,ue as d,_ as e,zt as f,O as g,Wt as h,Jt as i,qt as j,Yt as k,it as l,$t as m,Kt as n,wt as o,er as p,v as q,de as r,fe as s,A as t,at as u,wr as v,He as w,Cr as x,Ir as y,Lr as z,Or as A,Ar as B,kr as C,Gr as D,K as E,Vr as F,ut as G,jr as H,ze as I,ge as J,ye as K,X as L,Je as M,Z as N,P as O,j as P,W as Q,Q as R,J as S,Y as T,Nn as U,Ye as V,Rn as W,mt as X,$e as Y,Wn as Z,dt as _,pt as $,gt as aa,yt as ba,bt as ca,xt as da,ot as ea,xi as fa,vi as ga,vt as ha,Tt as ia,Mt as ja,Ti as ka,Mi as la,Di as ma,Et as na,Ei as oa,Si as pa,Pi as qa,wi as ra,Ci as sa,Ii as ta,we as ua,Qe as va,Ie as wa,St as xa,Pt as ya};
@@ -1 +0,0 @@
1
- .mappedin__smart-collision-engine__container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;transform-style:preserve-3d;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin__smart-collision-engine-debug__container{position:absolute;left:0;top:0;bottom:0;right:0;transition:opacity .3s ease-in-out;pointer-events:none;will-change:opacity}.mappedin__smart-collision-engine-debug__container.interacting{opacity:.2}.mappedin-map .mappedin-interactive{cursor:grab}.mappedin-map .mappedin-interactive:active{cursor:grabbing}.mappedin-map .mappedin-interactive.mappedin-interaction-hover{cursor:pointer}.mappedin-marker{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;top:0;transition:transform .3s linear;position:absolute;font-weight:700;color:#000;display:flex;flex-direction:row;will-change:transform,opacity;transition:opacity .15s ease-in-out;justify-content:center;opacity:0}.mappedin-marker[data-anchor=low-priority-pin]{font-size:0;line-height:0}.mappedin-marker[data-anchor=low-priority-pin]>*{visibility:hidden}.mappedin-marker[data-anchor=low-priority-pin]:before{content:"";display:block;border-radius:50%;position:relative;width:var(--mappedin-pin-size, 2px);height:var(--mappedin-pin-size, 2px);background-color:var(--pin-color, #666)}.mappedin-map .mappedin-control-container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{position:absolute;pointer-events:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left{top:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right{top:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left{bottom:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{bottom:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib{display:block;position:relative;pointer-events:auto;font:9px/11px InterUI-Regular,Helvetica,Arial,sans-serif;padding:3px 5px 1px;background-color:#ffffff80;margin:0;min-width:11px;min-height:11px;-webkit-user-select:none;user-select:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button::-webkit-details-marker{display:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show .mappedin-ctrl-attrib-inner{display:inline-block}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact{background-color:transparent}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show{min-width:15px;min-height:15px;box-sizing:border-box;background-color:#ffffff80}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left{float:left;border-bottom-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-right{float:right;border-bottom-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{float:left;border-top-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-right{float:right;border-top-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{padding:3px 5px 1px 20px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner{display:inline-block;margin-right:12px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a{color:#000000bf;text-decoration:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold a{font-weight:700}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a:hover{color:#017ef1;text-decoration:underline;cursor:pointer}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;top:0;right:2px;border:1px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left .mappedin-ctrl-attrib-button{left:2px}.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0 / 0%)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast: active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}@media (-ms-high-contrast: active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #333)}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #fff)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg")}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #fff)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #333)}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{@svg-load ctrl-compass-white url(svg/maplibregl-ctrl-compass.svg){fill: #fff; #south {fill: #999;}}background-image:svg-inline(ctrl-compass-white)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #000)}}@svg-load ctrl-terrain url(svg/maplibregl-ctrl-terrain.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-terrain-enabled url(svg/maplibregl-ctrl-terrain.svg){fill: #33b5e5; #stroke {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain)}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain-enabled)}@svg-load ctrl-geolocate url(svg/maplibregl-ctrl-geolocate.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-geolocate-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #fff; #stroke {display: none;}}@svg-load ctrl-geolocate-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #000; #stroke {display: none;}}@svg-load ctrl-geolocate-disabled url(svg/maplibregl-ctrl-geolocate.svg){fill: #aaa; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #999; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #666; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-active url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;}}@svg-load ctrl-geolocate-active-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e58978; #stroke {display: none;}}@svg-load ctrl-geolocate-background url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;} #dot {display: none;}}@svg-load ctrl-geolocate-background-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e54e33; #stroke {display: none;} #dot {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s infinite linear}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-black)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-black)}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:svg-load("svg/maplibregl-ctrl-logo.svg")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast: active){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-white url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1;} #fill {opacity: 1;}}background-color:transparent;background-image:svg-inline(ctrl-logo-white)}}@media (-ms-high-contrast: black-on-white){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-black url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1; fill: #fff; stroke: #fff;} #fill {opacity: 1; fill: #000;}}background-image:svg-inline(ctrl-logo-black)}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:#ffffff7f;margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:svg-load("svg/maplibregl-ctrl-attrib.svg");background-color:#ffffff7f;width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast: active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg",fill=#fff)}}@media screen and (-ms-high-contrast: black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;font-size:10px;border-width:medium 2px 2px;border-style:none solid solid;border-color:#333;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-user-location-dot{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{background-color:#1da1f2;content:"";width:15px;height:15px;border-radius:50%;position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px #00000059}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:#0006;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover: none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}:root{--pin-shadow-hover-scale: .9;--pin-shadow-width: 12px;--pin-shadow-height: 5px;--pin-shadow-opacity: .35;--pin-drop-animation-duration-ms: .25s}@keyframes drop-pin{0%{transform:translateY(-200%)}to{transform:translateY(0)}}@keyframes pin-shadow{0%{transform:scale(var(--pin-shadow-hover-scale))}to{transform:scale(1)}}.mappedin-dropped-pin-wrapper{position:relative;width:fit-content;height:fit-content;width:36px;height:42px}.mappedin-dropped-pin-wrapper svg{position:absolute;left:calc(50% - var(--pin-shadow-width));animation:drop-pin var(--pin-drop-animation-duration-ms) ease-in}.mappedin-dropped-pin-wrapper>.pin-shadow{position:absolute;left:calc(50% - var(--pin-shadow-width) / 2);bottom:0;height:var(--pin-shadow-height);width:var(--pin-shadow-width);border-radius:100%;opacity:var(--pin-shadow-opacity);animation:pin-shadow .25s ease-in}@keyframes bounce{0%{transform:translateY(-10px);opacity:0}12.5%{transform:translateY(0);opacity:1}25%{transform:translateY(0)}37.5%{transform:translateY(-10px)}50%{transform:translateY(0)}62.5%{transform:translateY(-10px)}75%{transform:translateY(0)}87.5%{transform:translateY(-10px)}to{transform:translateY(0)}}.mappedin-connection-marker{position:relative;display:flex}.mappedin-connection-marker .bouncey{animation:bounce 2.5s linear}.mappedin-connection-marker .arrow--down{transform:rotate(180deg)}.mappedin-connection-marker .connection-circle{display:flex;box-sizing:border-box;justify-content:center;align-items:center;border-radius:50%;border:2px solid white;box-shadow:0 2px 8px #00000026;background:#595959}.mappedin-js-inspector .list-items{max-height:600px;overflow-y:scroll;scroll-behavior:smooth}.mappedin-js-inspector .children:focus{border:1px solid blue}.mappedin-js-inspector #interactionPanel{position:absolute;right:0}.mappedin-js-inspector #mainPanel{position:absolute;left:0}.mappedin-js-inspector .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@@ -1 +0,0 @@
1
- import{a as Me,c as J,f as P,g as W,j as Ee}from"./chunk-LQS3FVBN.js";import{r as U}from"./chunk-VVO7QO3Y.js";import"./chunk-FSBH4P52.js";import"./chunk-OFX4UKYI.js";import{S as ke}from"./chunk-FAMEMKII.js";import{a as C}from"./chunk-GVHB2OJC.js";import{a as r,f as D,g as x,h as T,i as Ae,j as G}from"./chunk-BYMKRV3A.js";C();C();C();C();var B=class B{constructor(e,o,t,n,a="div"){this.parent=e,this.object=o,this.property=t,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement(a),this.domElement.classList.add("controller"),this.domElement.classList.add(n),this.$name=document.createElement("div"),this.$name.classList.add("name"),B.nextNameID=B.nextNameID||0,this.$name.id="lil-gui-name-".concat(++B.nextNameID),this.$widget=document.createElement("div"),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.domElement.addEventListener("keydown",s=>s.stopPropagation()),this.domElement.addEventListener("keyup",s=>s.stopPropagation()),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(t)}name(e){return this._name=e,this.$name.textContent=e,this}onChange(e){return this._onChange=e,this}_callOnChange(){this.parent._callOnChange(this),this._onChange!==void 0&&this._onChange.call(this,this.getValue()),this._changed=!0}onFinishChange(e){return this._onFinishChange=e,this}_callOnFinishChange(){this._changed&&(this.parent._callOnFinishChange(this),this._onFinishChange!==void 0&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}reset(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}enable(e=!0){return this.disable(!e)}disable(e=!0){return e===this._disabled?this:(this._disabled=e,this.domElement.classList.toggle("disabled",e),this.$disable.toggleAttribute("disabled",e),this)}show(e=!0){return this._hidden=!e,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}options(e){let o=this.parent.add(this.object,this.property,e);return o.name(this._name),this.destroy(),o}min(e){return this}max(e){return this}step(e){return this}decimals(e){return this}listen(e=!0){return this._listening=e,this._listenCallbackID!==void 0&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}_listenCallback(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);let e=this.save();e!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=e}getValue(){return this.object[this.property]}setValue(e){return this.getValue()!==e&&(this.object[this.property]=e,this._callOnChange(),this.updateDisplay()),this}updateDisplay(){return this}load(e){return this.setValue(e),this._callOnFinishChange(),this}save(){return this.getValue()}destroy(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}};r(B,"Controller");var L=B,re=class re extends L{constructor(e,o,t){super(e,o,t,"boolean","label"),this.$input=document.createElement("input"),this.$input.setAttribute("type","checkbox"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$input.addEventListener("change",()=>{this.setValue(this.$input.checked),this._callOnFinishChange()}),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}};r(re,"BooleanController");var V=re;function ee(i){let e,o;return(e=i.match(/(#|0x)?([a-f0-9]{6})/i))?o=e[2]:(e=i.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?o=parseInt(e[1]).toString(16).padStart(2,0)+parseInt(e[2]).toString(16).padStart(2,0)+parseInt(e[3]).toString(16).padStart(2,0):(e=i.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(o=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),o?"#"+o:!1}r(ee,"normalizeColorString");var Je={isPrimitive:!0,match:r(i=>typeof i=="string","match"),fromHexString:ee,toHexString:ee},j={isPrimitive:!0,match:r(i=>typeof i=="number","match"),fromHexString:r(i=>parseInt(i.substring(1),16),"fromHexString"),toHexString:r(i=>"#"+i.toString(16).padStart(6,0),"toHexString")},We={isPrimitive:!1,match:r(i=>Array.isArray(i),"match"),fromHexString(i,e,o=1){let t=j.fromHexString(i);e[0]=(t>>16&255)/255*o,e[1]=(t>>8&255)/255*o,e[2]=(t&255)/255*o},toHexString([i,e,o],t=1){t=255/t;let n=i*t<<16^e*t<<8^o*t<<0;return j.toHexString(n)}},Xe={isPrimitive:!1,match:r(i=>Object(i)===i,"match"),fromHexString(i,e,o=1){let t=j.fromHexString(i);e.r=(t>>16&255)/255*o,e.g=(t>>8&255)/255*o,e.b=(t&255)/255*o},toHexString({r:i,g:e,b:o},t=1){t=255/t;let n=i*t<<16^e*t<<8^o*t<<0;return j.toHexString(n)}},Ke=[Je,j,We,Xe];function Ze(i){return Ke.find(e=>e.match(i))}r(Ze,"getColorFormat");var se=class se extends L{constructor(e,o,t,n){super(e,o,t,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=Ze(this.initialValue),this._rgbScale=n,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",()=>{this._setValueFromHexString(this.$input.value)}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$text.addEventListener("input",()=>{let a=ee(this.$text.value);a&&this._setValueFromHexString(a)}),this.$text.addEventListener("focus",()=>{this._textFocused=!0,this.$text.select()}),this.$text.addEventListener("blur",()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()}),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(e){if(this._format.isPrimitive){let o=this._format.fromHexString(e);this.setValue(o)}else this._format.fromHexString(e,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(e){return this._setValueFromHexString(e),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}};r(se,"ColorController");var te=se,ae=class ae extends L{constructor(e,o,t){super(e,o,t,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",n=>{n.preventDefault(),this.getValue().call(this.object),this._callOnChange()}),this.$button.addEventListener("touchstart",()=>{},{passive:!0}),this.$disable=this.$button}};r(ae,"FunctionController");var H=ae,le=class le extends L{constructor(e,o,t,n,a,s){super(e,o,t,"number"),this._initInput(),this.min(n),this.max(a);let l=s!==void 0;this.step(l?s:this._getImplicitStep(),l),this.updateDisplay()}decimals(e){return this._decimals=e,this.updateDisplay(),this}min(e){return this._min=e,this._onUpdateMinMax(),this}max(e){return this._max=e,this._onUpdateMinMax(),this}step(e,o=!0){return this._step=e,this._stepExplicit=o,this}updateDisplay(){let e=this.getValue();if(this._hasSlider){let o=(e-this._min)/(this._max-this._min);o=Math.max(0,Math.min(o,1)),this.$fill.style.width=o*100+"%"}return this._inputFocused||(this.$input.value=this._decimals===void 0?e:e.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),window.matchMedia("(pointer: coarse)").matches&&(this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any")),this.$widget.appendChild(this.$input),this.$disable=this.$input;let o=r(()=>{let v=parseFloat(this.$input.value);isNaN(v)||(this._stepExplicit&&(v=this._snap(v)),this.setValue(this._clamp(v)))},"onInput"),t=r(v=>{let k=parseFloat(this.$input.value);isNaN(k)||(this._snapClampSetValue(k+v),this.$input.value=this.getValue())},"increment"),n=r(v=>{v.key==="Enter"&&this.$input.blur(),v.code==="ArrowUp"&&(v.preventDefault(),t(this._step*this._arrowKeyMultiplier(v))),v.code==="ArrowDown"&&(v.preventDefault(),t(this._step*this._arrowKeyMultiplier(v)*-1))},"onKeyDown"),a=r(v=>{this._inputFocused&&(v.preventDefault(),t(this._step*this._normalizeMouseWheel(v)))},"onWheel"),s=!1,l,d,g,h,p,f=5,c=r(v=>{l=v.clientX,d=g=v.clientY,s=!0,h=this.getValue(),p=0,window.addEventListener("mousemove",u),window.addEventListener("mouseup",b)},"onMouseDown"),u=r(v=>{if(s){let k=v.clientX-l,O=v.clientY-d;Math.abs(O)>f?(v.preventDefault(),this.$input.blur(),s=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(k)>f&&b()}if(!s){let k=v.clientY-g;p-=k*this._step*this._arrowKeyMultiplier(v),h+p>this._max?p=this._max-h:h+p<this._min&&(p=this._min-h),this._snapClampSetValue(h+p)}g=v.clientY},"onMouseMove"),b=r(()=>{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",b)},"onMouseUp"),y=r(()=>{this._inputFocused=!0},"onFocus"),m=r(()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()},"onBlur");this.$input.addEventListener("input",o),this.$input.addEventListener("keydown",n),this.$input.addEventListener("wheel",a,{passive:!1}),this.$input.addEventListener("mousedown",c),this.$input.addEventListener("focus",y),this.$input.addEventListener("blur",m)}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");let e=r((m,v,k,O,R)=>(m-v)/(k-v)*(R-O)+O,"map"),o=r(m=>{let v=this.$slider.getBoundingClientRect(),k=e(m,v.left,v.right,this._min,this._max);this._snapClampSetValue(k)},"setValueFromX"),t=r(m=>{this._setDraggingStyle(!0),o(m.clientX),window.addEventListener("mousemove",n),window.addEventListener("mouseup",a)},"mouseDown"),n=r(m=>{o(m.clientX)},"mouseMove"),a=r(()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",a)},"mouseUp"),s=!1,l,d,g=r(m=>{m.preventDefault(),this._setDraggingStyle(!0),o(m.touches[0].clientX),s=!1},"beginTouchDrag"),h=r(m=>{m.touches.length>1||(this._hasScrollBar?(l=m.touches[0].clientX,d=m.touches[0].clientY,s=!0):g(m),window.addEventListener("touchmove",p,{passive:!1}),window.addEventListener("touchend",f))},"onTouchStart"),p=r(m=>{if(s){let v=m.touches[0].clientX-l,k=m.touches[0].clientY-d;Math.abs(v)>Math.abs(k)?g(m):(window.removeEventListener("touchmove",p),window.removeEventListener("touchend",f))}else m.preventDefault(),o(m.touches[0].clientX)},"onTouchMove"),f=r(()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",f)},"onTouchEnd"),c=this._callOnFinishChange.bind(this),u=400,b,y=r(m=>{if(Math.abs(m.deltaX)<Math.abs(m.deltaY)&&this._hasScrollBar)return;m.preventDefault();let k=this._normalizeMouseWheel(m)*this._step;this._snapClampSetValue(this.getValue()+k),this.$input.value=this.getValue(),clearTimeout(b),b=setTimeout(c,u)},"onWheel");this.$slider.addEventListener("mousedown",t),this.$slider.addEventListener("touchstart",h,{passive:!1}),this.$slider.addEventListener("wheel",y,{passive:!1})}_setDraggingStyle(e,o="horizontal"){this.$slider&&this.$slider.classList.toggle("active",e),document.body.classList.toggle("lil-gui-dragging",e),document.body.classList.toggle("lil-gui-".concat(o),e)}_getImplicitStep(){return this._hasMin&&this._hasMax?(this._max-this._min)/1e3:.1}_onUpdateMinMax(){!this._hasSlider&&this._hasMin&&this._hasMax&&(this._stepExplicit||this.step(this._getImplicitStep(),!1),this._initSlider(),this.updateDisplay())}_normalizeMouseWheel(e){let{deltaX:o,deltaY:t}=e;return Math.floor(e.deltaY)!==e.deltaY&&e.wheelDelta&&(o=0,t=-e.wheelDelta/120,t*=this._stepExplicit?1:10),o+-t}_arrowKeyMultiplier(e){let o=this._stepExplicit?1:10;return e.shiftKey?o*=10:e.altKey&&(o/=10),o}_snap(e){let o=Math.round(e/this._step)*this._step;return parseFloat(o.toPrecision(15))}_clamp(e){return e<this._min&&(e=this._min),e>this._max&&(e=this._max),e}_snapClampSetValue(e){this.setValue(this._clamp(this._snap(e)))}get _hasScrollBar(){let e=this.parent.root.$children;return e.scrollHeight>e.clientHeight}get _hasMin(){return this._min!==void 0}get _hasMax(){return this._max!==void 0}};r(le,"NumberController");var ie=le,de=class de extends L{constructor(e,o,t,n){super(e,o,t,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$select.addEventListener("change",()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()}),this.$select.addEventListener("focus",()=>{this.$display.classList.add("focus")}),this.$select.addEventListener("blur",()=>{this.$display.classList.remove("focus")}),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.options(n)}options(e){return this._values=Array.isArray(e)?e:Object.values(e),this._names=Array.isArray(e)?e:Object.keys(e),this.$select.replaceChildren(),this._names.forEach(o=>{let t=document.createElement("option");t.textContent=o,this.$select.appendChild(t)}),this.updateDisplay(),this}updateDisplay(){let e=this.getValue(),o=this._values.indexOf(e);return this.$select.selectedIndex=o,this.$display.textContent=o===-1?e:this._names[o],this}};r(de,"OptionController");var oe=de,ce=class ce extends L{constructor(e,o,t){super(e,o,t,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("spellcheck","false"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",()=>{this.setValue(this.$input.value)}),this.$input.addEventListener("keydown",n=>{n.code==="Enter"&&this.$input.blur()}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}};r(ce,"StringController");var ne=ce,Qe='.lil-gui {\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: 1;\n font-weight: normal;\n font-style: normal;\n text-align: left;\n color: var(--text-color);\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n --background-color: #1f1f1f;\n --text-color: #ebebeb;\n --title-background-color: #111111;\n --title-text-color: #ebebeb;\n --widget-color: #424242;\n --hover-color: #4f4f4f;\n --focus-color: #595959;\n --number-color: #2cc9ff;\n --string-color: #a2db3c;\n --font-size: 11px;\n --input-font-size: 11px;\n --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;\n --font-family-mono: Menlo, Monaco, Consolas, "Droid Sans Mono", monospace;\n --padding: 4px;\n --spacing: 4px;\n --widget-height: 20px;\n --title-height: calc(var(--widget-height) + var(--spacing) * 1.25);\n --name-width: 45%;\n --slider-knob-width: 2px;\n --slider-input-width: 27%;\n --color-input-width: 27%;\n --slider-input-min-width: 45px;\n --color-input-min-width: 45px;\n --folder-indent: 7px;\n --widget-padding: 0 0 0 3px;\n --widget-border-radius: 2px;\n --checkbox-size: calc(0.75 * var(--widget-height));\n --scrollbar-width: 5px;\n}\n.lil-gui, .lil-gui * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n.lil-gui.root {\n width: var(--width, 245px);\n display: flex;\n flex-direction: column;\n background: var(--background-color);\n}\n.lil-gui.root > .title {\n background: var(--title-background-color);\n color: var(--title-text-color);\n}\n.lil-gui.root > .children {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.lil-gui.root > .children::-webkit-scrollbar {\n width: var(--scrollbar-width);\n height: var(--scrollbar-width);\n background: var(--background-color);\n}\n.lil-gui.root > .children::-webkit-scrollbar-thumb {\n border-radius: var(--scrollbar-width);\n background: var(--focus-color);\n}\n@media (pointer: coarse) {\n .lil-gui.allow-touch-styles, .lil-gui.allow-touch-styles .lil-gui {\n --widget-height: 28px;\n --padding: 6px;\n --spacing: 6px;\n --font-size: 13px;\n --input-font-size: 16px;\n --folder-indent: 10px;\n --scrollbar-width: 7px;\n --slider-input-min-width: 50px;\n --color-input-min-width: 65px;\n }\n}\n.lil-gui.force-touch-styles, .lil-gui.force-touch-styles .lil-gui {\n --widget-height: 28px;\n --padding: 6px;\n --spacing: 6px;\n --font-size: 13px;\n --input-font-size: 16px;\n --folder-indent: 10px;\n --scrollbar-width: 7px;\n --slider-input-min-width: 50px;\n --color-input-min-width: 65px;\n}\n.lil-gui.autoPlace {\n max-height: 100%;\n position: fixed;\n top: 0;\n right: 15px;\n z-index: 1001;\n}\n\n.lil-gui .controller {\n display: flex;\n align-items: center;\n padding: 0 var(--padding);\n margin: var(--spacing) 0;\n}\n.lil-gui .controller.disabled {\n opacity: 0.5;\n}\n.lil-gui .controller.disabled, .lil-gui .controller.disabled * {\n pointer-events: none !important;\n}\n.lil-gui .controller > .name {\n min-width: var(--name-width);\n flex-shrink: 0;\n white-space: pre;\n padding-right: var(--spacing);\n line-height: var(--widget-height);\n}\n.lil-gui .controller .widget {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n min-height: var(--widget-height);\n}\n.lil-gui .controller.string input {\n color: var(--string-color);\n}\n.lil-gui .controller.boolean {\n cursor: pointer;\n}\n.lil-gui .controller.color .display {\n width: 100%;\n height: var(--widget-height);\n border-radius: var(--widget-border-radius);\n position: relative;\n}\n@media (hover: hover) {\n .lil-gui .controller.color .display:hover:before {\n content: " ";\n display: block;\n position: absolute;\n border-radius: var(--widget-border-radius);\n border: 1px solid #fff9;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n}\n.lil-gui .controller.color input[type=color] {\n opacity: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n.lil-gui .controller.color input[type=text] {\n margin-left: var(--spacing);\n font-family: var(--font-family-mono);\n min-width: var(--color-input-min-width);\n width: var(--color-input-width);\n flex-shrink: 0;\n}\n.lil-gui .controller.option select {\n opacity: 0;\n position: absolute;\n width: 100%;\n max-width: 100%;\n}\n.lil-gui .controller.option .display {\n position: relative;\n pointer-events: none;\n border-radius: var(--widget-border-radius);\n height: var(--widget-height);\n line-height: var(--widget-height);\n max-width: 100%;\n overflow: hidden;\n word-break: break-all;\n padding-left: 0.55em;\n padding-right: 1.75em;\n background: var(--widget-color);\n}\n@media (hover: hover) {\n .lil-gui .controller.option .display.focus {\n background: var(--focus-color);\n }\n}\n.lil-gui .controller.option .display.active {\n background: var(--focus-color);\n}\n.lil-gui .controller.option .display:after {\n font-family: "lil-gui";\n content: "\u2195";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n padding-right: 0.375em;\n}\n.lil-gui .controller.option .widget,\n.lil-gui .controller.option select {\n cursor: pointer;\n}\n@media (hover: hover) {\n .lil-gui .controller.option .widget:hover .display {\n background: var(--hover-color);\n }\n}\n.lil-gui .controller.number input {\n color: var(--number-color);\n}\n.lil-gui .controller.number.hasSlider input {\n margin-left: var(--spacing);\n width: var(--slider-input-width);\n min-width: var(--slider-input-min-width);\n flex-shrink: 0;\n}\n.lil-gui .controller.number .slider {\n width: 100%;\n height: var(--widget-height);\n background: var(--widget-color);\n border-radius: var(--widget-border-radius);\n padding-right: var(--slider-knob-width);\n overflow: hidden;\n cursor: ew-resize;\n touch-action: pan-y;\n}\n@media (hover: hover) {\n .lil-gui .controller.number .slider:hover {\n background: var(--hover-color);\n }\n}\n.lil-gui .controller.number .slider.active {\n background: var(--focus-color);\n}\n.lil-gui .controller.number .slider.active .fill {\n opacity: 0.95;\n}\n.lil-gui .controller.number .fill {\n height: 100%;\n border-right: var(--slider-knob-width) solid var(--number-color);\n box-sizing: content-box;\n}\n\n.lil-gui-dragging .lil-gui {\n --hover-color: var(--widget-color);\n}\n.lil-gui-dragging * {\n cursor: ew-resize !important;\n}\n\n.lil-gui-dragging.lil-gui-vertical * {\n cursor: ns-resize !important;\n}\n\n.lil-gui .title {\n height: var(--title-height);\n line-height: calc(var(--title-height) - 4px);\n font-weight: 600;\n padding: 0 var(--padding);\n -webkit-tap-highlight-color: transparent;\n cursor: pointer;\n outline: none;\n text-decoration-skip: objects;\n}\n.lil-gui .title:before {\n font-family: "lil-gui";\n content: "\u25BE";\n padding-right: 2px;\n display: inline-block;\n}\n.lil-gui .title:active {\n background: var(--title-background-color);\n opacity: 0.75;\n}\n@media (hover: hover) {\n body:not(.lil-gui-dragging) .lil-gui .title:hover {\n background: var(--title-background-color);\n opacity: 0.85;\n }\n .lil-gui .title:focus {\n text-decoration: underline var(--focus-color);\n }\n}\n.lil-gui.root > .title:focus {\n text-decoration: none !important;\n}\n.lil-gui.closed > .title:before {\n content: "\u25B8";\n}\n.lil-gui.closed > .children {\n transform: translateY(-7px);\n opacity: 0;\n}\n.lil-gui.closed:not(.transition) > .children {\n display: none;\n}\n.lil-gui.transition > .children {\n transition-duration: 300ms;\n transition-property: height, opacity, transform;\n transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);\n overflow: hidden;\n pointer-events: none;\n}\n.lil-gui .children:empty:before {\n content: "Empty";\n padding: 0 var(--padding);\n margin: var(--spacing) 0;\n display: block;\n height: var(--widget-height);\n font-style: italic;\n line-height: var(--widget-height);\n opacity: 0.5;\n}\n.lil-gui.root > .children > .lil-gui > .title {\n border: 0 solid var(--widget-color);\n border-width: 1px 0;\n transition: border-color 300ms;\n}\n.lil-gui.root > .children > .lil-gui.closed > .title {\n border-bottom-color: transparent;\n}\n.lil-gui + .controller {\n border-top: 1px solid var(--widget-color);\n margin-top: 0;\n padding-top: var(--spacing);\n}\n.lil-gui .lil-gui .lil-gui > .title {\n border: none;\n}\n.lil-gui .lil-gui .lil-gui > .children {\n border: none;\n margin-left: var(--folder-indent);\n border-left: 2px solid var(--widget-color);\n}\n.lil-gui .lil-gui .controller {\n border: none;\n}\n\n.lil-gui label, .lil-gui input, .lil-gui button {\n -webkit-tap-highlight-color: transparent;\n}\n.lil-gui input {\n border: 0;\n outline: none;\n font-family: var(--font-family);\n font-size: var(--input-font-size);\n border-radius: var(--widget-border-radius);\n height: var(--widget-height);\n background: var(--widget-color);\n color: var(--text-color);\n width: 100%;\n}\n@media (hover: hover) {\n .lil-gui input:hover {\n background: var(--hover-color);\n }\n .lil-gui input:active {\n background: var(--focus-color);\n }\n}\n.lil-gui input:disabled {\n opacity: 1;\n}\n.lil-gui input[type=text],\n.lil-gui input[type=number] {\n padding: var(--widget-padding);\n -moz-appearance: textfield;\n}\n.lil-gui input[type=text]:focus,\n.lil-gui input[type=number]:focus {\n background: var(--focus-color);\n}\n.lil-gui input[type=checkbox] {\n appearance: none;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n border-radius: var(--widget-border-radius);\n text-align: center;\n cursor: pointer;\n}\n.lil-gui input[type=checkbox]:checked:before {\n font-family: "lil-gui";\n content: "\u2713";\n font-size: var(--checkbox-size);\n line-height: var(--checkbox-size);\n}\n@media (hover: hover) {\n .lil-gui input[type=checkbox]:focus {\n box-shadow: inset 0 0 0 1px var(--focus-color);\n }\n}\n.lil-gui button {\n outline: none;\n cursor: pointer;\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--text-color);\n width: 100%;\n height: var(--widget-height);\n text-transform: none;\n background: var(--widget-color);\n border-radius: var(--widget-border-radius);\n border: none;\n}\n@media (hover: hover) {\n .lil-gui button:hover {\n background: var(--hover-color);\n }\n .lil-gui button:focus {\n box-shadow: inset 0 0 0 1px var(--focus-color);\n }\n}\n.lil-gui button:active {\n background: var(--focus-color);\n}\n\n@font-face {\n font-family: "lil-gui";\n src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff");\n}';function qe(i){let e=document.createElement("style");e.innerHTML=i;let o=document.querySelector("head link[rel=stylesheet], head style");o?document.head.insertBefore(e,o):document.head.appendChild(e)}r(qe,"_injectStyles");var we=!1,X=class X{constructor({parent:e,autoPlace:o=e===void 0,container:t,width:n,title:a="Controls",closeFolders:s=!1,injectStyles:l=!0,touchStyles:d=!0}={}){if(this.parent=e,this.root=e?e.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",()=>this.openAnimated(this._closed)),this.$title.addEventListener("keydown",g=>{(g.code==="Enter"||g.code==="Space")&&(g.preventDefault(),this.$title.click())}),this.$title.addEventListener("touchstart",()=>{},{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(a),this.parent){this.parent.children.push(this),this.parent.folders.push(this),this.parent.$children.appendChild(this.domElement);return}this.domElement.classList.add("root"),d&&this.domElement.classList.add("allow-touch-styles"),!we&&l&&(qe(Qe),we=!0),t?t.appendChild(this.domElement):o&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),n&&this.domElement.style.setProperty("--width",n+"px"),this._closeFolders=s}add(e,o,t,n,a){if(Object(t)===t)return new oe(this,e,o,t);let s=e[o];switch(typeof s){case"number":return new ie(this,e,o,t,n,a);case"boolean":return new V(this,e,o);case"string":return new ne(this,e,o);case"function":return new H(this,e,o)}console.error("gui.add failed\n property:",o,"\n object:",e,"\n value:",s)}addColor(e,o,t=1){return new te(this,e,o,t)}addFolder(e){let o=new X({parent:this,title:e});return this.root._closeFolders&&o.close(),o}load(e,o=!0){return e.controllers&&this.controllers.forEach(t=>{t instanceof H||t._name in e.controllers&&t.load(e.controllers[t._name])}),o&&e.folders&&this.folders.forEach(t=>{t._title in e.folders&&t.load(e.folders[t._title])}),this}save(e=!0){let o={controllers:{},folders:{}};return this.controllers.forEach(t=>{if(!(t instanceof H)){if(t._name in o.controllers)throw new Error('Cannot save GUI with duplicate property "'.concat(t._name,'"'));o.controllers[t._name]=t.save()}}),e&&this.folders.forEach(t=>{if(t._title in o.folders)throw new Error('Cannot save GUI with duplicate folder "'.concat(t._title,'"'));o.folders[t._title]=t.save()}),o}open(e=!0){return this._setClosed(!e),this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}_setClosed(e){this._closed!==e&&(this._closed=e,this._callOnOpenClose(this))}show(e=!0){return this._hidden=!e,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(e=!0){return this._setClosed(!e),this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame(()=>{let o=this.$children.clientHeight;this.$children.style.height=o+"px",this.domElement.classList.add("transition");let t=r(a=>{a.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",t))},"onTransitionEnd");this.$children.addEventListener("transitionend",t);let n=e?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!e),requestAnimationFrame(()=>{this.$children.style.height=n+"px"})}),this}title(e){return this._title=e,this.$title.textContent=e,this}reset(e=!0){return(e?this.controllersRecursive():this.controllers).forEach(t=>t.reset()),this}onChange(e){return this._onChange=e,this}_callOnChange(e){this.parent&&this.parent._callOnChange(e),this._onChange!==void 0&&this._onChange.call(this,{object:e.object,property:e.property,value:e.getValue(),controller:e})}onFinishChange(e){return this._onFinishChange=e,this}_callOnFinishChange(e){this.parent&&this.parent._callOnFinishChange(e),this._onFinishChange!==void 0&&this._onFinishChange.call(this,{object:e.object,property:e.property,value:e.getValue(),controller:e})}onOpenClose(e){return this._onOpenClose=e,this}_callOnOpenClose(e){this.parent&&this.parent._callOnOpenClose(e),this._onOpenClose!==void 0&&this._onOpenClose.call(this,e)}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach(e=>e.destroy())}controllersRecursive(){let e=Array.from(this.controllers);return this.folders.forEach(o=>{e=e.concat(o.controllersRecursive())}),e}foldersRecursive(){let e=Array.from(this.folders);return this.folders.forEach(o=>{e=e.concat(o.foldersRecursive())}),e}};r(X,"GUI");var z=X,K=z;C();C();var _=(()=>{let i=new ke;return r(function(o){return i.set(o),"#".concat(i.getHexString())},"normalize")})();function _e(i){let e;for(e of i)e()}r(_e,"runAll");function he(i,e){let o=window.location.href,t=new URL(o),n=new URLSearchParams(t.search);for(let a in i)if(i.hasOwnProperty(a)){let s="".concat(e,".").concat(a);n.set(s,i[a])}t.search=n.toString(),history.pushState({path:t.toString()},"",t.toString())}r(he,"updateCurrentUrlParamsWithNamespace");function ue(i,e){let o=new URLSearchParams(window.location.search),t={};for(let[n,a]of o)if(n.startsWith("".concat(i,"."))){let s=n.slice(i.length+1);a==="true"||a==="false"?t[s]=a==="true":typeof(e==null?void 0:e[s])=="number"?t[s]=Number(a):t[s]=a}return{namespace:i,params:t}}r(ue,"getUrlParamsWithNamespace");var Ve=["interactive"];function Z(i,e,o){var n,a;let t=o.addFolder("".concat(e.type,"-").concat(e.id));for(let s in e){if(s==="visible"&&t.add(e,s).onChange(l=>{i.updateState(e.id,{[s]:l})}),s==="color"||s==="hoverColor"){e[s]=_(e[s]),t.addColor(e,s).onChange(l=>{i.updateState(e.id,{[s]:l})});continue}if(s==="height"){t.add(e,s,0,20,1).onChange(l=>{i.updateState(e.id,{[s]:l})});continue}if(s==="texture"&&e.texture){(n=t.addFolder("Texture - side").add(e,"texture"))==null||n.onChange(d=>{i.updateState(e.id,{texture:{url:d}})});continue}if(s==="topTexture"&&e.topTexture){(a=t.addFolder("Texture - top").add(e,"topTexture"))==null||a.onChange(d=>{i.updateState(e.id,{topTexture:{url:d}})});continue}if(s==="opacity"){t.add(e,s,0,1,.1).onChange(l=>{i.updateState(e.id,{[s]:l})});continue}Ve.includes(s)&&t.add(e,s).onChange(l=>{i.updateState(e.id,{[s]:l})})}return e.isInView&&(t.add(e,"isInView").listen().disable(),t.add(e,"isInViewCheck")),{cleanup(){t.destroy()}}}r(Z,"renderByProp");C();C();function et(){let i=[];function e(n,a){var d;let s=Object.values(n.getMapData())[0],l=a;if(l&&J.is(l)){let g=(d=s.getByType("enterprise-location"))==null?void 0:d.find(h=>h.spaces.some(p=>p.id===l.id));g&&(l=g)}return l}r(e,"getHighlightTarget");async function o(n,a){return a instanceof W?n.Camera.focusOn(a.locations.flatMap(s=>s.spaces),Y):a instanceof P?n.Camera.focusOn(a.spaces,Y):n.Camera.focusOn(a,Y)}r(o,"focusOn");function t(n,a,{focus:s=!1}={}){if(!window.enableHighlightCard)return()=>{};let l=e(n,a),d=document.createElement("div");if(d.style.cssText="\n position: absolute;\n top: 20px;\n left: 20px;\n background-color: rgba(30, 30, 30, 0.95);\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);\n border-radius: 12px;\n padding: 24px;\n max-width: 320px;\n z-index: 1000;\n font-family: 'Arial', sans-serif;\n transition: all 0.3s ease;\n color: #e0e0e0;\n ","name"in l){let h=document.createElement("h3");h.textContent=l.name,h.style.cssText="\n margin: 0 0 16px;\n font-size: 22px;\n font-weight: 600;\n color: #ffffff;\n letter-spacing: -0.5px;\n ",d.appendChild(h)}if(l instanceof P){if(l.description){let h=document.createElement("p");h.textContent=l.description,h.style.cssText="\n margin: 0 0 16px;\n font-size: 14px;\n color: #b0b0b0;\n line-height: 1.5;\n ",d.appendChild(h)}if(l.tags&&l.tags.length>0){let h=document.createElement("div");h.style.cssText="\n display: flex;\n flex-wrap: nowrap;\n gap: 8px;\n margin-bottom: 16px;\n overflow-x: hidden;\n max-height: 30px; /* Adjust this value based on your font size and padding */\n ",l.tags.forEach(p=>{let f=document.createElement("span");f.textContent=p,f.style.cssText="\n background-color: #3a3a3a;\n color: #e0e0e0;\n padding: 6px 12px;\n border-radius: 16px;\n font-size: 12px;\n font-weight: 500;\n text-transform: uppercase;\n white-space: nowrap;\n ",h.appendChild(f)}),d.appendChild(h)}}let g;if(!(a instanceof W)){let h=new K({autoPlace:!1});h.domElement.style.cssText="\n position: relative;\n overflow-y: auto;\n margin-top: 16px;\n border-top: 1px solid #444;\n padding-top: 16px;\n ";let p=n.getState(a);p&&(Z(n,{id:a.id,...p},h),d.appendChild(h.domElement)),g=h}return document.body.appendChild(d),s&&o(n,l),()=>{d.style.opacity="0",d.style.transform="translateY(-10px)",setTimeout(()=>d.remove(),300),g==null||g.destroy()}}return r(t,"highlightCard"),{highlightCard:t,highlight:r((n,a,{focus:s=!0}={})=>{i.length>0&&i.forEach(d=>n.Markers.remove(d));let l=e(n,a);if(l instanceof P)s&&n.Camera.focusOn(l.spaces,Y),i.push(...l.spaces.map(d=>n.Markers.add(d,'<div style="padding: 15px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); max-width: 250px; position: relative;">\n <h3 style="margin: 0 0 10px; color: #333; font-size: 16px; font-weight: 600;">'.concat(l.name,"</h3>\n ").concat(l.description?'<p style="margin: 0 0 10px; color: #666; font-size: 14px; font-weight: 400;">'.concat(l.description,"</p>"):"","\n ").concat(l.tags?l.tags.map(g=>'<span style="display: inline-block; padding: 3px 8px; background-color: #e0f2f1; color: #00796b; border-radius: 12px; font-size: 12px;">'.concat(g,"</span>")).join(" "):"",'\n <div style="position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #ffffff;"></div>\n </div>'),{rank:"always-visible",anchor:"top"})));else if(l instanceof W){s&&n.Camera.focusOn(l.locations.flatMap(h=>h.spaces),Y);let d=new Map,g=new Set;l.locations.forEach(h=>{d.has(h.name)||(h.spaces.forEach(p=>{i.push(n.Markers.add(p,'<div style="padding: 12px; background-color: rgba(0, 153, 51, 0.95); border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.3); transform: translateY(-4px); transition: all 0.3s ease;">\n <span style="font-weight: 600; color: #FFFFFF; font-size: 16px; text-shadow: 1px 1px 2px rgba(0,0,0,0.2);">'.concat(h.name,"</span>\n </div>"),{rank:"always-visible"}))}),d.set(h.name,!0))}),l.locations.forEach(h=>{h.coordinates.forEach(p=>{let f="".concat(p.latitude,",").concat(p.longitude);if(!g.has(f)&&!d.has(h.name)){let c=n.Markers.add(p,'<div style="padding: 10px; background-color: rgba(51, 102, 204, 0.9); border-radius: 6px; box-shadow: 0 3px 6px rgba(0,0,0,0.2);">\n <span style="font-weight: 500; color: #FFFFFF; font-size: 16px;">'.concat(h.name,'</span>\n <br>\n <span style="color: #FFFFFF; font-size: 12px; font-weight: 400;">Node</span>\n </div>'),{rank:"always-visible"});g.add(f),i.push(c)}})})}return()=>{i.forEach(d=>n.Markers.remove(d))}},"highlight")}}r(et,"createHighlightControl");var Y={duration:300,easing:"ease-in-out"},Q=et();C();var w={search:"",results:void 0,options:{places:{fields:{name:!0,description:!0,link:!0,category:!0},limit:5},locations:{fields:{name:!0,tag:!0,description:!0},limit:5},categories:{fields:{name:!0},limit:5}}};function tt(i){i.add(w.options.places.fields,"name").name("Places: Name"),i.add(w.options.places.fields,"description").name("Places: Description"),i.add(w.options.places.fields,"link").name("Places: Link"),i.add(w.options.places.fields,"category").name("Places: Category"),i.add(w.options.places,"limit"),i.add(w.options.locations.fields,"name").name("Locations: Name"),i.add(w.options.locations.fields,"tag").name("Locations: Tag"),i.add(w.options.locations.fields,"description").name("Locations: Description"),i.add(w.options.places,"limit"),i.add(w.options.categories.fields,"name").name("Categories: Name")}r(tt,"createAdvancedSettings");function Fe(i,e,o){var h;let t=new U,n=o.addFolder("Search");n.open();let a=n.add(w,"search").onChange(async p=>{let f=await e.Search.query(p,w.options);f&&(w.results=f,l(f,t))}),s=document.createElement("div");s.style.marginLeft="10px",(h=a.domElement.parentElement)==null||h.appendChild(s);let{renderSearch:l,close:d}=it(i,e,s,a.$input),g=n.addFolder("Advanced");return g.close(),tt(g),document.addEventListener("keydown",p=>{(p.metaKey||p.ctrlKey)&&p.key==="k"?(p.preventDefault(),n._closed&&n.open(),a.$input.focus()):p.key==="Escape"&&(d(),t.publish("highlight",void 0))}),{pubsub:t}}r(Fe,"createSearchControl");function it(i,e,o,t){let n,a;t.addEventListener("input",async l=>{l instanceof InputEvent&&(l.inputType==="insertText"||l.inputType==="insertCompositionText")&&(clearTimeout(n),n=setTimeout(async()=>{var g;let d=await e.Search.suggest(t.value);d&&d.length>0&&s((g=d[0])==null?void 0:g.suggestion)},100))});function s(l){if(!l){t.placeholder="";return}let d=t.value;t.value=l,t.setSelectionRange(d.length,l.length)}return r(s,"renderSuggestion"),{renderSearch(l,d){var g,h;if(l.places.length===0&&((g=l.enterpriseCategories)==null?void 0:g.length)===0&&((h=l.enterpriseLocations)==null?void 0:h.length)===0){o.textContent="No results found.";return}a=ot(o,l,i,d)},close(){a.destroy()}}}r(it,"mount");function ot(i,e,o,t){i.innerHTML="";let n=document.createElement("div");Object.assign(n.style,q.dropdownContainer);let a=document.createElement("ul");a.className="options-list",Object.assign(a.style,q.optionsList),a.style.display="block";let s=[],l=r((f,c)=>{if(c&&c.length>0){let u=document.createElement("li");u.textContent=f,Object.assign(u.style,q.sectionHeader),a.appendChild(u),c.forEach((b,y)=>{let m=document.createElement("li");m.textContent="".concat("name"in b.item?b.item.name:""," (").concat(b.type,")"),Object.assign(m.style,q.option),m.tabIndex=0,m.addEventListener("focus",()=>{g(s.indexOf(m))}),m.addEventListener("mouseover",()=>{m.style.backgroundColor="#f0f0f0"}),m.addEventListener("mouseout",()=>{m.style.backgroundColor=""}),m.addEventListener("click",()=>{}),m.setAttribute("data-type",f),m.setAttribute("data-index",y.toString()),a.appendChild(m),s.push(m)})}},"addSection");l("enterpriseLocations",e.enterpriseLocations),l("enterpriseCategories",e.enterpriseCategories),l("Places",e.places),n.appendChild(a),i.appendChild(n);let d=[],g=r(f=>{d.forEach(m=>m()),d=[],s.forEach((m,v)=>{v===f?m.style.backgroundColor="#e0e0e0":m.style.backgroundColor=""});let c=s[f],u=c.getAttribute("data-type"),b=parseInt(c.getAttribute("data-index")||"0",10);if(!u)return;let{item:y}=e[u.toLowerCase()][b];t.publish("highlight",y)},"highlightOption"),h=r(f=>{!n.contains(f.target)&&f.target!==i&&p()},"handleClickOutside");document.addEventListener("click",h);let p=r(()=>{i.innerHTML="",document.removeEventListener("click",h)},"destroy");return{destroy(){i.innerHTML="",t.publish("highlight",void 0)}}}r(ot,"createCustomDropdown");var q={dropdownContainer:{position:"absolute",color:"#202020"},optionsList:{display:"block",zIndex:"1002",position:"relative",maxHeight:"200px",overflowY:"auto",border:"1px solid #ccc",backgroundColor:"#fff",listStyleType:"none",margin:"0",padding:"0"},sectionHeader:{fontWeight:"bold",padding:"5px",backgroundColor:"#f0f0f0"},option:{padding:"5px",cursor:"pointer"}};function Se(i,e,o){o.domElement.id="interactionPanel";let t=[],{pubsub:n}=Fe(i,e,o);n.on("highlight",h=>{if(h){t.forEach(f=>f()),t=[];let p=h instanceof P?h.spaces[0]:h;if(i.Camera.focusOn(h),p&&!J.is(p))return;t.push(Q.highlightCard(i,p,{focus:!0}))}else t.forEach(p=>p()),t=[]});let a=o.addFolder("Click \u{1F447}").close(),{sub:s}=nt(i,a);s.on("click",h=>{t.forEach(p=>p()),t=[],h.spaces[0]&&(t=[Q.highlightCard(i,h.spaces[0])])});let l=o.addFolder("Hover \u{1F681}").close(),{sub:d}=rt(i,l),g;d.on("hover",h=>{h.spaces[0]?(g==null||g(),t.length===0&&(g=Q.highlightCard(i,h.spaces[0]))):(g==null||g(),g=void 0)})}r(Se,"createInteractionControls");function nt(i,e){let o=new U,t={position:"",hoverColor:_(i.getHoverColor())},n=e.add(t,"position").disable(),a=[];function s(){a.forEach(d=>d()),a.length=0}r(s,"reset");let l=0;return i.on("click",d=>{var u;let{labels:g,markers:h,coordinate:p}=d;s(),o.publish("click",d),clearInterval(l),n.load(JSON.stringify([p.longitude,p.latitude]));let f=g[0]||h[0];if(f){let b=ge(i,f,e);if(!b)return;a.push(b.destroy),b.labelItemFolder.openAnimated()}let c=(u=d.spaces[0])!=null?u:d.objects[0];if(c){let b={id:c.id,...i.getState(c.id),type:c.type,isInView:!1,isInViewCheck:pe(i,c.id)},{cleanup:y}=Z(i,b,e);l=setInterval(()=>{b.isInView=i.isInView(f||c)},500),a.push(y)}}),{sub:o}}r(nt,"createClickControls");function rt(i,e){let o=new U;i.setHoverColor("#1f3a7a");let t={position:"",hoverColor:_(i.getHoverColor()),intersected:"",type:"",id:""},n=e.add(t,"position").disable();e.add(t,"id").disable().listen(),e.add(t,"type").disable().listen(),e.addColor(t,"hoverColor").onChange(l=>{i.setHoverColor(l)});let a=[];function s(){a.forEach(l=>l()),a.length=0}return r(s,"reset"),i.on("hover",l=>{var b,y,m;let{coordinate:d,spaces:g,objects:h,markers:p,labels:f}=l;s(),o.publish("hover",l),n.load(JSON.stringify([d.longitude,d.latitude]));let c=(m=(y=(b=g[0])!=null?b:h[0])!=null?y:p[0])!=null?m:f[0];if(!c)return;let u=i.getState(c);u&&(t.type=u.type,t.id=c.id)}),{sub:o}}r(rt,"createHoverControls");function pe(i,e){return r(function(){console.log("isInView",i.isInView(e))},"isInView")}r(pe,"createIsInViewHandler");function Le(i,e,o){let t={labels:{},all(){o.Labels.all().forEach(c=>{this.labels[c.id]=c}),d()},removeAllLabels(){o.Labels.removeAll().forEach(c=>{delete this.labels[c.id]}),d()}},{addLabel:n,destroy:a}=st(i,o);i.add(t,"all"),i.add(t,"removeAllLabels");let s=i.addFolder("Label List");i.close();let l=new Map,{rerender:d}=g();function g(){function f(b){var y;delete t.labels[b.id],(y=l.get(b.id))==null||y.destroy()}r(f,"remove");function c(b){let y=ge(o,b,s,{onRemove:r(v=>{f(v)},"onRemove")});if(!y)return;let{labelItemFolder:m}=y;l.set(b.id,m)}r(c,"add");function u(){s.destroy(),s=i.addFolder("Label");for(let b in t.labels){let y=t.labels[b];c(y)}}return r(u,"rerender"),{rerender:u,add:c,remove:f}}r(g,"createLabelControls"),i.domElement.classList.add("list-items");let h;o.on("click",({labels:f,coordinate:c})=>{if(!i._closed)if(f[0]){h==null||h.close();let u=l.get(f[0].id);if(i.open(),!u)return;u==null||u.open(),u==null||u.domElement.scrollIntoView({block:"start"}),u==null||u.domElement.focus(),h=u}else n(c)});function p(f){for(let c of f)t.labels[c.id]=c;d()}return r(p,"populatelabels"),{populatelabels:p,destroy(){a()}}}r(Le,"createLabelControls");function ge(i,e,o,{onRemove:t}={}){var g,h,p,f;let n=o.addFolder("".concat((g=e.text)==null?void 0:g.substring(0,12)));n.onChange(c=>{i.updateState(e,{appearance:d.appearance,interactive:d.interactive})}),n.close();let a=i.getState(e);if((a==null?void 0:a.type)!=="label")throw new Error("error getting state for label: ".concat(e.id));let{appearance:s,interactive:l}=a;if(!s||s.margin==null||l==null)throw new Error("incomplte label state");let d={text:e.text,interactive:l,appearance:{...s,margin:s.margin||0,marker:{foregroundColor:(p=(h=s.marker)==null?void 0:h.foregroundColor)!=null&&p.active?_((f=s.marker.foregroundColor)==null?void 0:f.active):"black"},text:{foregroundColor:_(s.text.foregroundColor)}},remove(){i.Labels.remove(e),t==null||t(e),n.destroy()},isInView:pe(i,e.id)};return n.add(d.appearance,"margin",0,20).name("margin"),n.add(d,"text"),n.add(d,"interactive"),n.addColor(d.appearance.marker,"foregroundColor").name("marker foreground"),n.addColor(d.appearance.text,"foregroundColor").name("text forground"),n.add(d,"isInView"),n.add(d,"remove"),{labelItemFolder:n,destroy(){n.destroy()}}}r(ge,"addLabelControlToFolder");function st(i,e){let o=i.addFolder("Add"),t={onClick:!1,margin:0,text:"New Label!",interactive:!0,marginForegroundColor:_("skyblue"),marginBackgroundColor:_("coral"),textForegroundColor:_("slategray"),textBackgroundColor:_("white")};return o.add(t,"onClick"),o.add(t,"margin"),o.add(t,"interactive"),o.add(t,"text"),o.addColor(t,"marginForegroundColor"),o.addColor(t,"marginBackgroundColor"),o.addColor(t,"textForegroundColor"),o.addColor(t,"textBackgroundColor"),{destroy(){o.destroy()},addLabel(n){return o._closed||!t.onClick?void 0:e.Labels.add(n,t.text,{appearance:{margin:t.margin,marker:{foregroundColor:{active:t.marginForegroundColor,inactive:t.marginForegroundColor},backgroundColor:{active:t.marginBackgroundColor,inactive:t.marginBackgroundColor}},text:{foregroundColor:t.textForegroundColor,backgroundColor:t.marginBackgroundColor}},interactive:t.interactive})}}}r(st,"createAddControl");var $e={};C();var Ie="camera-ui";function Oe(i,e,o){var R,Ce;let t=i.addFolder("Camera \u{1F4F7}").onOpenClose(A=>{he({opened:!A._closed},Ie)}),{params:n}=ue(Ie);n.opened||t.close();let a=e.Camera.center.toJSON(),s=document.createElement("div");Object.assign(s.style,{display:"none",position:"absolute",left:"0px",zIndex:999,top:"0px",bottom:"0px",right:"0px",backgroundColor:"aqua",pointerEvents:"none",opacity:.5}),e.__core.container.appendChild(s);let{innerHeight:l,innerWidth:d}=window,[g,h,p,f]=(R=o==null?void 0:o.padding)!=null?R:[e.Camera.screenOffsets.top,e.Camera.screenOffsets.right,e.Camera.screenOffsets.bottom,e.Camera.screenOffsets.left],c={center_lat:a.latitude,center_lon:a.longitude,zoomLevel:e.Camera.zoomLevel,pitch:e.Camera.pitch,bearing:e.Camera.bearing,minZoomLevel:e.Camera.minZoomLevel,maxZoomLevel:e.Camera.maxZoomLevel,inset_type:o!=null&&o.padding?"pixel":e.Camera.screenOffsets.type,inset_top:g!=null?g:0,inset_left:f!=null?f:0,inset_right:h!=null?h:0,inset_bottom:p!=null?p:0,animateOnLoad:!0,persist:r(()=>{he(t.save().controllers,"camera"),navigator.clipboard.writeText(window.location.href)},"persist"),visualizeInset:!!(g||h||p||f),"Focus on click":(Ce=o==null?void 0:o.focusOnClick)!=null?Ce:!0,"Focus on current floor":r(()=>{e.Camera.focusOn([e.currentFloor],{screenOffsets:{top:20,left:20,right:20,bottom:20}})},"Focus on current floor")};function u(){c.inset_type=e.Camera.screenOffsets.type,c.inset_left=e.Camera.screenOffsets.left,c.inset_top=e.Camera.screenOffsets.top,c.inset_right=e.Camera.screenOffsets.right,c.inset_bottom=e.Camera.screenOffsets.bottom,c.inset_type==="portion"?Object.assign(s.style,{left:c.inset_left*d+"px",top:c.inset_top*l+"px",bottom:c.inset_bottom*l+"px",right:c.inset_right*d+"px"}):Object.assign(s.style,{left:c.inset_left+"px",top:c.inset_top+"px",bottom:c.inset_bottom+"px",right:c.inset_right+"px"})}r(u,"updateInsetVisualizer"),t.add(c,"center_lat").listen().disable(),t.add(c,"center_lon").listen().disable(),t.add(c,"zoomLevel",16,22,.5).listen().disable(),t.add(c,"pitch").listen().disable(),t.add(c,"bearing").listen().disable(),t.add(c,"minZoomLevel",5,22,.5).onChange(A=>{e.Camera.setMinZoomLevel(A)}),t.add(c,"maxZoomLevel",10,22,.5).onChange(A=>{e.Camera.setMaxZoomLevel(A)}),t.add(c,"animateOnLoad"),t.add(c,"visualizeInset").onChange(O),O(c.visualizeInset),t.add(c,"inset_type",["pixel","portion"]).onChange(k),t.add(c,"inset_top",0,l).onChange(k),t.add(c,"inset_bottom",0,l).onChange(k),t.add(c,"inset_left",0,d).onChange(k),t.add(c,"inset_right",0,d).onChange(k);let b=lt(e);t.add(c,"Focus on click").onChange(A=>{A?e.on("click",b):e.off("click",b)}),c["Focus on click"]&&e.on("click",b),t.add(c,"persist"),t.add(c,"Focus on current floor");let y=r(A=>{t._closed||(c.center_lat=A.center.latitude,c.center_lon=A.center.longitude,c.zoomLevel=A.zoomLevel,c.bearing=A.bearing,c.pitch=A.pitch)},"onCameraChanged");e.on("camera-change",y);let{params:m}=ue("camera",c);if(Object.keys(m).length>0){let A=m;e.Camera.setScreenOffsets({top:A.inset_top,left:A.inset_left,right:A.inset_right,bottom:A.inset_bottom,type:A.inset_type});let xe={pitch:A.pitch,center:new Me(A.center_lat,A.center_lon),bearing:A.bearing,zoomLevel:A.zoomLevel};A.animateOnLoad?e.Camera.animateTo(xe):e.Camera.set(xe),t.load({controllers:A,folders:{}}),u()}let v=[()=>{e.off("camera-change",y)}];function k(){e.Camera.setScreenOffsets({top:c.inset_top,left:c.inset_left,right:c.inset_right,bottom:c.inset_bottom,type:c.inset_type}),u()}r(k,"updateInset"),(c.inset_top||c.inset_right||c.inset_bottom||c.inset_left)&&k();function O(A){u(),A?s.style.display="block":s.style.display="none"}return r(O,"visualizeInsetUpdated"),()=>({destroy(){t.destroy(),_e(v)}})}r(Oe,"createCameraControls");function lt(i){return r(function(o){var s;let{spaces:t,objects:n}=o,a=(s=t[0])!=null?s:n[0];a&&i.Camera.focusOn(a)},"handler")}r(lt,"createHandler");C();function De(i,e,o){let t={markers:{},removeAllMarkers(){o.Markers.removeAll().forEach(c=>{delete this.markers[c.id]}),d()}},{addMarker:n,destroy:a}=ct(i,o);i.add(t,"removeAllMarkers");let s=i.addFolder("Marker List");i.close();let l=new Map,{rerender:d}=g();function g(){function f(b){var y;delete t.markers[b.id],(y=l.get(b.id))==null||y.destroy()}r(f,"remove");function c(b){let y=dt(o,b,s,{onRemove:r(v=>{f(v)},"onRemove")});if(!y)return;let{markerItemFolder:m}=y;l.set(b.id,m)}r(c,"add");function u(){s.destroy(),s=i.addFolder("marker");for(let b in t.markers){let y=t.markers[b];c(y)}}return r(u,"rerender"),{rerender:u,add:c,remove:f}}r(g,"createMarkerControls"),i.domElement.classList.add("list-items");let h;o.on("click",({markers:f,coordinate:c})=>{if(!i._closed)if(f[0]){h==null||h.close();let u=l.get(f[0].id);if(i.open(),!u)return;u==null||u.open(),u==null||u.domElement.scrollIntoView({block:"start"}),u==null||u.domElement.focus(),h=u}else n(c)});function p(f){for(let c of f)t.markers[c.id]=c;d()}return r(p,"populateMarkers"),{populateMarkers:p,destroy(){a()}}}r(De,"createMarkerControls");function dt(i,e,o,{onRemove:t}={}){let n=o.addFolder("".concat(e.id.toString().substring(0,8)));n.onChange(d=>{i.updateState(e,{interactive:l.interactive})}),n.close();let a=i.getState(e);if((a==null?void 0:a.type)!=="marker")throw new Error("error getting state for marker: ".concat(e.id));let{interactive:s}=a;if(s==null)throw new Error("incomplte label state");let l={interactive:s,remove(){i.Markers.remove(e),t==null||t(e),n.destroy()}};return n.add(l,"interactive"),n.add(l,"remove"),{markerItemFolder:n,destroy(){n.destroy()}}}r(dt,"addMarkerControlToFolder");function ct(i,e){let o=i.addFolder("Add"),t={onClick:!1,interactive:!0};return o.add(t,"onClick"),o.add(t,"interactive"),{destroy(){o.destroy()},addMarker(n){return o._closed||!t.onClick?void 0:e.Markers.add(n,"<div>New Marker</div>",{interactive:t.interactive})}}}r(ct,"createAddControl");C();function Te(i,e){let o=i.addFolder("Walls").close(),t={visible:!0,topColor:"#b1fa87",color:"#e8e8e8",texture:{url:""},topTexture:{url:""}};o.add(t,"visible").onChange(s=>{e.updateState("walls",{visible:s})}),o.addColor(t,"topColor").onChange(s=>{e.updateState("walls",{topColor:s})}),o.addColor(t,"color").onChange(s=>{e.updateState("walls",{color:s})}),o.addFolder("Texture - side").add(t.texture,"url").onFinishChange(s=>{e.updateState("walls",{texture:{url:s}})}),o.addFolder("Texture - top").add(t.topTexture,"url").onFinishChange(s=>{e.updateState("walls",{topTexture:{url:s}})}),e.updateState("walls",{topColor:t.topColor}),e.updateState("walls",{color:t.color})}r(Te,"createGeometryControl");C();function Pe(i,e,o){var a,s;i.close();let t={language:(s=(a=o.currentLanguage)==null?void 0:a.code)!=null?s:"en"},n=o.getByType("enterprise-venue");i.add(t,"language",n==null?void 0:n.languages.map(l=>l.code)).onChange(l=>{o.changeLanguage(l)})}r(Pe,"createMiscControl");C();function Be(i,e,o){let t=i.addFolder("Debug");t.close();let n=e.Debug.state,a={showPolygonLabelTextAreaMesh:n.showPolygonLabelTextAreaMesh,showCollisionBoxes:n.showCollisionBoxes,showEnvMap:n.showEnvMap};t.add(a,"showPolygonLabelTextAreaMesh").onChange(s=>{e.Debug.update({showPolygonLabelTextAreaMesh:s})}).name("Show Flat Label Text Area Mesh"),t.add(a,"showCollisionBoxes").onChange(s=>{e.Debug.update({showCollisionBoxes:s})}).name("Show Collision Boxes"),t.add(a,"showEnvMap").onChange(s=>{e.Debug.update({showEnvMap:s})}).name("Show Environment Map"),e.Debug.update(a)}r(Be,"createDebugControl");C();function ze(i,e,o){let t=i.addFolder("Text3D").close(),n={all:r(()=>{e.Text3D.labelAll()},"all"),removeAll:r(()=>{e.Text3D.removeAll()},"removeAll")};t.add(n,"all").name("Show All"),t.add(n,"removeAll").name("Remove All")}r(ze,"createText3DControl");C();C();C();var F,N,$,M,I,S,Ge,me,Ue,be=class be{constructor(e=new z({autoPlace:!0})){T(this,S);T(this,F);T(this,N,[]);T(this,$,{});T(this,M,{});T(this,I,{});Ae(this,F,e),x(this,F).domElement.style.left="0"}add(e,o,t){if(x(this,M)[e])throw new Error("Control ".concat(e," already exists"));x(this,$)[e]=o,x(this,I)[e]=o.default,G(this,S,Ge).call(this,e,o,t),this.show()}addColor(e,o,t){if(x(this,M)[e])throw new Error("Control ".concat(e," already exists"));x(this,$)[e]=o,x(this,I)[e]=o.default,G(this,S,Ue).call(this,e,o,t),this.show()}update(e,o){if(!x(this,M)[e])throw new Error("Control ".concat(e," does not exist"));x(this,M)[e].setValue(o),x(this,$)[e].onChange&&x(this,$)[e].onChange(o,e)}replace(e,o,t){if(!x(this,M)[e]){this.add(e,o,t);return}o.args&&x(this,M)[e].options(o.args),o.default&&x(this,M)[e].setValue(o.default),o.onChange&&x(this,M)[e].onChange(n=>{o.onChange(n,e)})}remove(e){if(!x(this,M)[e])throw new Error("Control ".concat(e," does not exist"));x(this,M)[e].destroy(),x(this,M)[e].parent.children.length===0&&x(this,M)[e].parent.hide(),delete x(this,M)[e],delete x(this,$)[e],delete x(this,I)[e]}show(){x(this,F).show()}hide(){x(this,F).hide()}removeAll(){for(let e in x(this,M))this.remove(e)}destroy(){x(this,F).destroy()}};F=new WeakMap,N=new WeakMap,$=new WeakMap,M=new WeakMap,I=new WeakMap,S=new WeakSet,Ge=r(function(e,o,t){let a=G(this,S,me).call(this,t).add(x(this,I),e,o.args,o.max,o.step);o.onChange&&a.onChange(s=>{o.onChange(s,e)}),o.onAdd&&o.onAdd(o.default,e),x(this,M)[e]=a},"#addControl"),me=r(function(e){if(!e)return x(this,F);let o=x(this,N).find(t=>t._title===e);return o?(o.show(),o):(o=x(this,F).addFolder(e),x(this,N).push(o),o)},"#getFolder"),Ue=r(function(e,o,t){let a=G(this,S,me).call(this,t).addColor(x(this,I),e);o.onChange&&a.onChange(s=>{o.onChange(s,e)}),x(this,M)[e]=a},"#addColorControl"),r(be,"GUI");var fe=be;function ht(i,e,o){var l;let t={},n=i.getByType("floor"),a=i.getByType("floor-stack");a.length>1&&(t.FloorStack={default:e.currentFloorStack.id,args:a.reduce((d,{id:g,name:h})=>({...d,[h]:g}),{}),onChange:r(d=>{d!==e.currentFloorStack.id&&(e.setFloorStack(d),o.replace("Floor",{default:e.currentFloor.id,args:e.currentFloorStack.floors.reduce((g,{id:h,name:p})=>({...g,[p]:h}),{})}))},"onChange")}),n.length>1&&(t.Floor={default:e.currentFloor.id,args:e.currentFloorStack.floors.reduce((d,{id:g,name:h})=>({...d,[h]:g}),{}),onChange:r(d=>{d!==e.currentFloor.id&&e.setFloor(d)},"onChange"),onAdd:r(()=>{e.on("floor-change",d=>{d!=null&&d.floor.id&&(a.length>1&&o.replace("FloorStack",{default:e.currentFloorStack.id}),o.replace("Floor",{default:e.currentFloor.id,args:e.currentFloorStack.floors.reduce((h,{id:p,name:f})=>({...h,[f]:p}),{})}))})},"onAdd")});let s=i.getByType("enterprise-venue");return s&&s.languages.length>1&&(t.Language={default:((l=i.currentLanguage)==null?void 0:l.code)||s.languages[0].code,args:s.languages.reduce((d,{code:g,name:h})=>({...d,[h]:g}),{}),onChange:r(d=>{i.changeLanguage(d)},"onChange")}),t}r(ht,"createDefaultControls");function He(i,e,o=new z){let t=new fe(o),n=ht(i,e,t);Object.keys(n).length||t.hide();for(let a in n)t.add(a,n[a]);return t}r(He,"createGUI");async function je(i,e,{initialfloorsInStack:o,root:t,floorsInDirections:n,showLabelsPerFloor:a=!0}){async function s(u){i.StackedMaps.changeFloorOnElevationChanges(!1),i.Outdoor.setOpacity(.15),i.StackedMaps.setFloorVisiblityMode("only-current-floor"),i.Camera.setPanMode("default"),await i.Camera.focusOn(u,{pitch:10})}r(s,"zoomToFloor");async function l(){i.Outdoor.setOpacity(.25),i.StackedMaps.changeFloorOnElevationChanges(!0),i.Camera.setPanMode("elevation"),i.StackedMaps.setFloorVisiblityMode("all-floors"),await i.Camera.focusOn(i.currentFloor,{axisAlignedPadding:{vertical:i.StackedMaps.distanceBetweenFloors},pitch:90})}r(l,"showCurrentFloorWithPadding");async function d(u){await i.Camera.animateElevation(u.elevation*i.StackedMaps.distanceBetweenFloors)}r(d,"scrollToFloor");let g=i.currentFloor;i.on("floor-change",async u=>{i.StackedMaps.expanded&&u.reason!=="stacked-maps-elevation-change"&&(i.StackedMaps.changeFloorOnElevationChanges(!1),i.StackedMaps.setFloorVisiblityMode("all-floors"),await i.Camera.focusOn(g,{axisAlignedPadding:{vertical:i.StackedMaps.distanceBetweenFloors},pitch:90,duration:500}),i.StackedMaps.changeFloorOnElevationChanges(!0),await d(i.currentFloor),await s(i.currentFloor),i.StackedMaps.setFloorVisiblityMode("only-current-floor")),g=i.currentFloor}),i.on("stacked-maps-state-change",({state:u})=>{console.log("stacked-maps-state-change",u)});let h=e.getByType("space");if(a){let u=h.reduce((b,y)=>(b.has(y.floor)||b.set(y.floor,[]),y.name&&y.name!==""&&b.get(y.floor).push(i.Labels.add(y,y.name)),b),new Map);i.on("floor-change",()=>{u.forEach((b,y)=>{b.forEach(m=>{i.updateState(m,{enabled:i.currentFloor===y})})})})}let p=He(e,i,t),f=o!=null?o:[];async function c(){i.Outdoor.setOpacity(.25),f=e.getByType("floor"),await i.Camera.animateTo({pitch:90}),await i.StackedMaps.collapse(),i.StackedMaps.clearCachedFloorSeparationDistance(),await i.StackedMaps.expand({distanceBetweenFloors:"auto"})}return r(c,"expandAll"),p.add("Expand - All",{default:r(async()=>{await c()},"default")},"Stack Maps"),n&&p.add("Expand - Only Navigation",{default:r(async()=>{i.Outdoor.setOpacity(.25),f=n,await i.StackedMaps.collapse(),i.setFloor(n[0]),await i.StackedMaps.expand({includedFloors:n,distanceBetweenFloors:"auto"})},"default")},"Stack Maps"),p.add("Show All Floors",{default:r(async()=>{f=e.getByType("floor"),i.Outdoor.setOpacity(.25),i.StackedMaps.setFloorVisiblityMode("all-floors"),i.StackedMaps.changeFloorOnElevationChanges(!1),i.Camera.setPanMode("elevation"),i.Camera.focusOn(f,{pitch:90})},"default")},"Stack Maps"),p.add("Show Current Floor with padding",{default:r(async()=>{await l()},"default")},"Stack Maps"),p.add("Zoom to Current Floor",{default:r(async()=>{s(i.currentFloor)},"default")},"Stack Maps"),p.add("Collapse",{default:r(()=>{i.Outdoor.setOpacity("initial"),i.StackedMaps.collapse()},"default")},"Stack Maps"),p.add("Default",{default:r(async()=>{i.Camera.setPanMode("default")},"default")},"Camera Pan Mode"),p.add("Elevation",{default:r(async()=>{i.Camera.setPanMode("elevation")},"default")},"Camera Pan Mode"),p.add("zoom in to floor 2",{default:r(async()=>{i.Outdoor.setOpacity(.25),console.log(i.currentFloor.name),await i.Camera.focusOn(i.currentFloor,{axisAlignedPadding:{vertical:i.StackedMaps.distanceBetweenFloors},pitch:90}),i.StackedMaps.expanded||await i.StackedMaps.expand({distanceBetweenFloors:i.StackedMaps.distanceBetweenFloors});let u=i.StackedMaps.includedFloors[2],b=f.findIndex(y=>y.id===u.id);i.StackedMaps.changeFloorOnElevationChanges(!0),i.Camera.setPanMode("elevation"),i.StackedMaps.setFloorVisiblityMode("all-floors"),await i.Camera.animateElevation(b*i.StackedMaps.distanceBetweenFloors),i.Outdoor.setOpacity(.15),console.log("focusing on",u.name),await i.Camera.focusOn(u,{pitch:10}),i.StackedMaps.setFloorVisiblityMode("only-current-floor"),i.Camera.setPanMode("default"),i.StackedMaps.changeFloorOnElevationChanges(!1)},"default")},"Camera Pan Mode"),p.add("All Floors",{default:r(async()=>{i.StackedMaps.setFloorVisiblityMode("all-floors")},"default")},"Visibility Mode"),p.add("Only Active Floor",{default:r(async()=>{i.StackedMaps.setFloorVisiblityMode("only-current-floor")},"default")},"Visibility Mode"),p.add("Up",{default:r(async()=>{let u=f.find(b=>b.elevation===i.currentFloor.elevation+1);u&&await d(u)},"default")},"Floors Up/Down"),p.add("Down",{default:r(async()=>{let u=f.find(b=>b.elevation===i.currentFloor.elevation-1);u&&await d(u)},"default")},"Floors Up/Down"),{zoomToFloor:s,expandAll:c}}r(je,"createStackMapsControl");function Ye(i,e,o){let t=i.addFolder("StackedMaps");t.close(),je(e,o,{root:t,showLabelsPerFloor:!1})}r(Ye,"createStackmapsControl");function Re(i,e,o){ut();let t=new K({title:"SDK Controls"});t.domElement.classList.add("mappedin-js-inspector"),Se(e,i,t),Oe(t,e,o==null?void 0:o.camera);let n=t.addFolder("Levels").close(),a=t.addFolder("Scene Controls");a.close();let s=t.addFolder("Labels");ze(t,e,i);let l=t.addFolder("Markers");Te(t,e),Ye(t,e,i);let d=t.addFolder("misc");Be(t,e,i),Pe(d,e,i);let g={level:e.currentFloor.id},{populatelabels:h}=Le(s,i,e),{populateMarkers:p}=De(l,i,e),f=i.getByType("floor").reduce((u,b)=>(u[b.name]=b.id,u),{}),c=n.add(g,"level",f).onChange(u=>{e.setFloor(u),g.level=e.currentFloor.id,c.updateDisplay()});return e.on("floor-change-start",u=>{n.controllers[0].setValue(u.floor.id)}),i.getByType("space").forEach(u=>{e.updateState(u,{interactive:!0})}),i.getByType("object").forEach(u=>{e.updateState(u,{interactive:!0})}),i.getByType("object").forEach(u=>{e.updateState(u,{interactive:!0})}),e.setHoverColor("#a2b7e6"),e.Camera.setMaxZoomLevel(20),{populatelabels:h,sceneFolder:a,populateMarkers:p}}r(Re,"createUi");var Ne="mappedin-sdk-debug-css";function ut(){if(document.getElementById(Ne))return;let i=document.createElement("style");i.id=Ne,i.textContent=$e,document.head.appendChild(i)}r(ut,"injectCss");var ye=class ye{constructor(e,o){D(this,"_enabled",!1);D(this,"mv");D(this,"api");D(this,"mapData");D(this,"scenegraphVisualizerMounted",!1);D(this,"storeStateToLocalStorageEnabled",!1);this.mv=e,this.api=o,this.mapData=this.api.getMapData()}setMapData(e){this.mapData=e}async enable(e={}){var t;if(this._enabled)return;if(this._enabled=!0,!this.mapData)throw new Error("Please set mapData before enable debug.");let{sceneFolder:o}=Re(this.mapData,this.mv,e);o.onOpenClose(n=>{n===o&&!n._closed&&!this.scenegraphVisualizerMounted&&(this.scenegraphVisualizerMounted=!0,Ee(this.api.core,o))}),(t=this.api.getMapDataInternal())==null||t.spaces.forEach(n=>{this.mv.updateState(n.id,{interactive:!0})})}get enabled(){return this._enabled}};r(ye,"Inspector");var ve=ye;export{ve as Inspector};
@@ -1 +0,0 @@
1
- .mappedin__smart-collision-engine__container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;transform-style:preserve-3d;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin__smart-collision-engine-debug__container{position:absolute;left:0;top:0;bottom:0;right:0;transition:opacity .3s ease-in-out;pointer-events:none;will-change:opacity}.mappedin__smart-collision-engine-debug__container.interacting{opacity:.2}.mappedin-map .mappedin-interactive{cursor:grab}.mappedin-map .mappedin-interactive:active{cursor:grabbing}.mappedin-map .mappedin-interactive.mappedin-interaction-hover{cursor:pointer}.mappedin-marker{font-family:InterUI-Regular,Helvetica,Arial,sans-serif;font-weight:400;top:0;transition:transform .3s linear;position:absolute;font-weight:700;color:#000;display:flex;flex-direction:row;will-change:transform,opacity;transition:opacity .15s ease-in-out;justify-content:center;opacity:0}.mappedin-marker[data-anchor=low-priority-pin]{font-size:0;line-height:0}.mappedin-marker[data-anchor=low-priority-pin]>*{visibility:hidden}.mappedin-marker[data-anchor=low-priority-pin]:before{content:"";display:block;border-radius:50%;position:relative;width:var(--mappedin-pin-size, 2px);height:var(--mappedin-pin-size, 2px);background-color:var(--pin-color, #666)}.mappedin-map .mappedin-control-container{position:absolute;left:0;top:0;bottom:0;right:0;pointer-events:none;font-family:InterUI-Regular,Helvetica,Arial,sans-serif}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{position:absolute;pointer-events:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-left{top:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-top-right{top:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-left{bottom:0;left:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-bottom-right{bottom:0;right:0}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib{display:block;position:relative;pointer-events:auto;font:9px/11px InterUI-Regular,Helvetica,Arial,sans-serif;padding:3px 5px 1px;background-color:#ffffff80;margin:0;min-width:11px;min-height:11px;-webkit-user-select:none;user-select:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib summary.mappedin-ctrl-attrib-button::-webkit-details-marker{display:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show .mappedin-ctrl-attrib-inner{display:inline-block}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact{background-color:transparent}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib.mappedin-compact-show{min-width:15px;min-height:15px;box-sizing:border-box;background-color:#ffffff80}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left{float:left;border-bottom-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-right{float:right;border-bottom-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{float:left;border-top-right-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-right{float:right;border-top-left-radius:4px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left{padding:3px 5px 1px 20px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner{display:inline-block;margin-right:12px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a{color:#000000bf;text-decoration:none}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner-bold a{font-weight:700}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-inner a:hover{color:#017ef1;text-decoration:underline;cursor:pointer}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;top:0;right:2px;border:1px}.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-top-left .mappedin-ctrl-attrib-button,.mappedin-map .mappedin-control-container .mappedin-ctrl-attrib-bottom-left .mappedin-ctrl-attrib-button{left:2px}.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0 / 0%)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast: active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}@media (-ms-high-contrast: active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #333)}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #fff)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-out.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-zoom-in.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #333)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg")}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #fff)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #fff)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-fullscreen.svg",fill: #000)}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-shrink.svg",fill: #000)}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #333)}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{@svg-load ctrl-compass-white url(svg/maplibregl-ctrl-compass.svg){fill: #fff; #south {fill: #999;}}background-image:svg-inline(ctrl-compass-white)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:svg-load("svg/maplibregl-ctrl-compass.svg",fill: #000)}}@svg-load ctrl-terrain url(svg/maplibregl-ctrl-terrain.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-terrain-enabled url(svg/maplibregl-ctrl-terrain.svg){fill: #33b5e5; #stroke {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain)}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-terrain-enabled)}@svg-load ctrl-geolocate url(svg/maplibregl-ctrl-geolocate.svg){fill: #333; #stroke {display: none;}}@svg-load ctrl-geolocate-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #fff; #stroke {display: none;}}@svg-load ctrl-geolocate-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #000; #stroke {display: none;}}@svg-load ctrl-geolocate-disabled url(svg/maplibregl-ctrl-geolocate.svg){fill: #aaa; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-white url(svg/maplibregl-ctrl-geolocate.svg){fill: #999; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-disabled-black url(svg/maplibregl-ctrl-geolocate.svg){fill: #666; #stroke {fill: #f00;}}@svg-load ctrl-geolocate-active url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;}}@svg-load ctrl-geolocate-active-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e58978; #stroke {display: none;}}@svg-load ctrl-geolocate-background url(svg/maplibregl-ctrl-geolocate.svg){fill: #33b5e5; #stroke {display: none;} #dot {display: none;}}@svg-load ctrl-geolocate-background-error url(svg/maplibregl-ctrl-geolocate.svg){fill: #e54e33; #stroke {display: none;} #dot {display: none;}}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s infinite linear}@media (-ms-high-contrast: active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-white)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-active-error)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-background-error)}}@media (-ms-high-contrast: black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-black)}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:svg-inline(ctrl-geolocate-disabled-black)}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:svg-load("svg/maplibregl-ctrl-logo.svg")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast: active){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-white url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1;} #fill {opacity: 1;}}background-color:transparent;background-image:svg-inline(ctrl-logo-white)}}@media (-ms-high-contrast: black-on-white){a.maplibregl-ctrl-logo{@svg-load ctrl-logo-black url(svg/maplibregl-ctrl-logo.svg){#outline {opacity: 1; fill: #fff; stroke: #fff;} #fill {opacity: 1; fill: #000;}}background-image:svg-inline(ctrl-logo-black)}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:#ffffff7f;margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:svg-load("svg/maplibregl-ctrl-attrib.svg");background-color:#ffffff7f;width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast: active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg",fill=#fff)}}@media screen and (-ms-high-contrast: black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:svg-load("svg/maplibregl-ctrl-attrib.svg")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;font-size:10px;border-width:medium 2px 2px;border-style:none solid solid;border-color:#333;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-user-location-dot{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{background-color:#1da1f2;content:"";width:15px;height:15px;border-radius:50%;position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px #00000059}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:#0006;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover: none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}:root{--pin-shadow-hover-scale: .9;--pin-shadow-width: 12px;--pin-shadow-height: 5px;--pin-shadow-opacity: .35;--pin-drop-animation-duration-ms: .25s}@keyframes drop-pin{0%{transform:translateY(-200%)}to{transform:translateY(0)}}@keyframes pin-shadow{0%{transform:scale(var(--pin-shadow-hover-scale))}to{transform:scale(1)}}.mappedin-dropped-pin-wrapper{position:relative;width:fit-content;height:fit-content;width:36px;height:42px}.mappedin-dropped-pin-wrapper svg{position:absolute;left:calc(50% - var(--pin-shadow-width));animation:drop-pin var(--pin-drop-animation-duration-ms) ease-in}.mappedin-dropped-pin-wrapper>.pin-shadow{position:absolute;left:calc(50% - var(--pin-shadow-width) / 2);bottom:0;height:var(--pin-shadow-height);width:var(--pin-shadow-width);border-radius:100%;opacity:var(--pin-shadow-opacity);animation:pin-shadow .25s ease-in}@keyframes bounce{0%{transform:translateY(-10px);opacity:0}12.5%{transform:translateY(0);opacity:1}25%{transform:translateY(0)}37.5%{transform:translateY(-10px)}50%{transform:translateY(0)}62.5%{transform:translateY(-10px)}75%{transform:translateY(0)}87.5%{transform:translateY(-10px)}to{transform:translateY(0)}}.mappedin-connection-marker{position:relative;display:flex}.mappedin-connection-marker .bouncey{animation:bounce 2.5s linear}.mappedin-connection-marker .arrow--down{transform:rotate(180deg)}.mappedin-connection-marker .connection-circle{display:flex;box-sizing:border-box;justify-content:center;align-items:center;border-radius:50%;border:2px solid white;box-shadow:0 2px 8px #00000026;background:#595959}.mappedin-js-inspector .list-items{max-height:600px;overflow-y:scroll;scroll-behavior:smooth}.mappedin-js-inspector .children:focus{border:1px solid blue}.mappedin-js-inspector #interactionPanel{position:absolute;right:0}.mappedin-js-inspector #mainPanel{position:absolute;left:0}.mappedin-js-inspector .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@@ -1 +0,0 @@
1
- import{b as ne,d as oe,e as re,f as ce,g as ae,h as _,i as ve}from"./chunk-LQS3FVBN.js";import{o as ie}from"./chunk-VVO7QO3Y.js";import"./chunk-FSBH4P52.js";import"./chunk-OFX4UKYI.js";import"./chunk-FAMEMKII.js";import{a as E}from"./chunk-GVHB2OJC.js";import{a as l,e as Oe,f as A,g as ee,h as B,i as te,j as se}from"./chunk-BYMKRV3A.js";E();E();function V(r,e,t,s){function i(n){return n instanceof t?n:new t(function(o){o(n)})}return l(i,"adopt"),new(t||(t=Promise))(function(n,o){function c(u){try{d(s.next(u))}catch(f){o(f)}}l(c,"fulfilled");function a(u){try{d(s.throw(u))}catch(f){o(f)}}l(a,"rejected");function d(u){u.done?n(u.value):i(u.value).then(c,a)}l(d,"step"),d((s=s.apply(r,e||[])).next())})}l(V,"__awaiter");var Fe="ENTRIES",fe="KEYS",pe="VALUES",b="",Z=class Z{constructor(e,t){let s=e._tree,i=Array.from(s.keys());this.set=e,this._type=t,this._path=i.length>0?[{node:s,keys:i}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=v(this._path);if(v(t)===b)return{done:!1,value:this.result()};let s=e.get(v(t));return this._path.push({node:s,keys:Array.from(s.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=v(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>v(e)).filter(e=>e!==b).join("")}value(){return v(this._path).node.get(b)}result(){switch(this._type){case pe:return this.value();case fe:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}};l(Z,"TreeIterator");var M=Z,v=l(r=>r[r.length-1],"last$1"),Me=l((r,e,t)=>{let s=new Map;if(e===void 0)return s;let i=e.length+1,n=i+t,o=new Uint8Array(n*i).fill(t+1);for(let c=0;c<i;++c)o[c]=c;for(let c=1;c<n;++c)o[c*i]=c;return me(r,e,t,s,o,1,i,""),s},"fuzzySearch"),me=l((r,e,t,s,i,n,o,c)=>{let a=n*o;e:for(let d of r.keys())if(d===b){let u=i[a-1];u<=t&&s.set(c,[r.get(d),u])}else{let u=n;for(let f=0;f<d.length;++f,++u){let h=d[f],m=o*u,y=m-o,p=i[m],g=Math.max(0,u-t-1),w=Math.min(o-1,u+t);for(let S=g;S<w;++S){let P=h!==e[S],W=i[y+S]+ +P,k=i[y+S+1]+1,x=i[m+S]+1,F=i[m+S+1]=Math.min(W,k,x);F<p&&(p=F)}if(p>t)continue e}me(r.get(d),e,t,s,i,u,o,c+d)}},"recurse"),z=class z{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");let[t,s]=R(this._tree,e.slice(this._prefix.length));if(t===void 0){let[i,n]=K(s);for(let o of i.keys())if(o!==b&&o.startsWith(n)){let c=new Map;return c.set(o.slice(n.length),i.get(o)),new z(c,e)}}return new z(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Ce(this._tree,e)}entries(){return new M(this,Fe)}forEach(e){for(let[t,s]of this)e(t,s,this)}fuzzyGet(e,t){return Me(this._tree,e,t)}get(e){let t=Q(this._tree,e);return t!==void 0?t.get(b):void 0}has(e){let t=Q(this._tree,e);return t!==void 0&&t.has(b)}keys(){return new M(this,fe)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,N(this._tree,e).set(b,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let s=N(this._tree,e);return s.set(b,t(s.get(b))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let s=N(this._tree,e),i=s.get(b);return i===void 0&&s.set(b,i=t()),i}values(){return new M(this,pe)}[Symbol.iterator](){return this.entries()}static from(e){let t=new z;for(let[s,i]of e)t.set(s,i);return t}static fromObject(e){return z.from(Object.entries(e))}};l(z,"SearchableMap");var C=z,R=l((r,e,t=[])=>{if(e.length===0||r==null)return[r,t];for(let s of r.keys())if(s!==b&&e.startsWith(s))return t.push([r,s]),R(r.get(s),e.slice(s.length),t);return t.push([r,e]),R(void 0,"",t)},"trackDown"),Q=l((r,e)=>{if(e.length===0||r==null)return r;for(let t of r.keys())if(t!==b&&e.startsWith(t))return Q(r.get(t),e.slice(t.length))},"lookup"),N=l((r,e)=>{let t=e.length;e:for(let s=0;r&&s<t;){for(let n of r.keys())if(n!==b&&e[s]===n[0]){let o=Math.min(t-s,n.length),c=1;for(;c<o&&e[s+c]===n[c];)++c;let a=r.get(n);if(c===n.length)r=a;else{let d=new Map;d.set(n.slice(c),a),r.set(e.slice(s,s+c),d),r.delete(n),r=d}s+=c;continue e}let i=new Map;return r.set(e.slice(s),i),i}return r},"createPath"),Ce=l((r,e)=>{let[t,s]=R(r,e);if(t!==void 0){if(t.delete(b),t.size===0)ge(s);else if(t.size===1){let[i,n]=t.entries().next().value;_e(s,i,n)}}},"remove"),ge=l(r=>{if(r.length===0)return;let[e,t]=K(r);if(e.delete(t),e.size===0)ge(r.slice(0,-1));else if(e.size===1){let[s,i]=e.entries().next().value;s!==b&&_e(r.slice(0,-1),s,i)}},"cleanup"),_e=l((r,e,t)=>{if(r.length===0)return;let[s,i]=K(r);s.set(i+e,t),s.delete(i)},"merge"),K=l(r=>r[r.length-1],"last"),Y="or",ye="and",Le="and_not",I=class I{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');let t=e.autoVacuum==null||e.autoVacuum===!0?q:e.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},J),e),{autoVacuum:t,searchOptions:Object.assign(Object.assign({},ue),e.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Te),e.autoSuggestOptions||{})}),this._index=new C,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=G,this.addFields(this._options.fields)}add(e){let{extractField:t,tokenize:s,processTerm:i,fields:n,idField:o}=this._options,c=t(e,o);if(c==null)throw new Error('MiniSearch: document does not have ID field "'.concat(o,'"'));if(this._idToShortId.has(c))throw new Error("MiniSearch: duplicate ID ".concat(c));let a=this.addDocumentId(c);this.saveStoredFields(a,e);for(let d of n){let u=t(e,d);if(u==null)continue;let f=s(u.toString(),d),h=this._fieldIds[d],m=new Set(f).size;this.addFieldLength(a,h,this._documentCount-1,m);for(let y of f){let p=i(y,d);if(Array.isArray(p))for(let g of p)this.addTerm(h,a,g);else p&&this.addTerm(h,a,p)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:s=10}=t,i={chunk:[],promise:Promise.resolve()},{chunk:n,promise:o}=e.reduce(({chunk:c,promise:a},d,u)=>(c.push(d),(u+1)%s===0?{chunk:[],promise:a.then(()=>new Promise(f=>setTimeout(f,0))).then(()=>this.addAll(c))}:{chunk:c,promise:a}),i);return o.then(()=>this.addAll(n))}remove(e){let{tokenize:t,processTerm:s,extractField:i,fields:n,idField:o}=this._options,c=i(e,o);if(c==null)throw new Error('MiniSearch: document does not have ID field "'.concat(o,'"'));let a=this._idToShortId.get(c);if(a==null)throw new Error("MiniSearch: cannot remove document with ID ".concat(c,": it is not in the index"));for(let d of n){let u=i(e,d);if(u==null)continue;let f=t(u.toString(),d),h=this._fieldIds[d],m=new Set(f).size;this.removeFieldLength(a,h,this._documentCount,m);for(let y of f){let p=s(y,d);if(Array.isArray(p))for(let g of p)this.removeTerm(h,a,g);else p&&this.removeTerm(h,a,p)}}this._storedFields.delete(a),this._documentIds.delete(a),this._idToShortId.delete(c),this._fieldLength.delete(a),this._documentCount-=1}removeAll(e){if(e)for(let t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new C,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){let t=this._idToShortId.get(e);if(t==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(e,": it is not in the index"));this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((s,i)=>{this.removeFieldLength(t,i,this._documentCount,s)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:s,batchWait:i}=this._options.autoVacuum;this.conditionalVacuum({batchSize:s,batchWait:i},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let s of e)this.discard(s)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:s}=this._options,i=s(e,t);this.discard(i),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let s=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=G,this.performVacuuming(e,s)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}performVacuuming(e,t){return V(this,void 0,void 0,function*(){let s=this._dirtCount;if(this.vacuumConditionsMet(t)){let i=e.batchSize||U.batchSize,n=e.batchWait||U.batchWait,o=1;for(let[c,a]of this._index){for(let[d,u]of a)for(let[f]of u)this._documentIds.has(f)||(u.size<=1?a.delete(d):u.delete(f));this._index.get(c).size===0&&this._index.delete(c),o%i===0&&(yield new Promise(d=>setTimeout(d,n))),o+=1}this._dirtCount-=s}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:s}=e;return t=t||q.minDirtCount,s=s||q.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=s}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){let s=this.executeQuery(e,t),i=[];for(let[n,{score:o,terms:c,match:a}]of s){let d=c.length||1,u={id:this._documentIds.get(n),score:o*d,terms:Object.keys(a),queryTerms:c,match:a};Object.assign(u,this._storedFields.get(n)),(t.filter==null||t.filter(u))&&i.push(u)}return e===I.wildcard&&t.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(le),i}autoSuggest(e,t={}){t=Object.assign(Object.assign({},this._options.autoSuggestOptions),t);let s=new Map;for(let{score:n,terms:o}of this.search(e,t)){let c=o.join(" "),a=s.get(c);a!=null?(a.score+=n,a.count+=1):s.set(c,{score:n,terms:o,count:1})}let i=[];for(let[n,{score:o,terms:c,count:a}]of s)i.push({suggestion:n,terms:c,score:o/a});return i.sort(le),i}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static loadJSONAsync(e,t){return V(this,void 0,void 0,function*(){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)})}static getDefault(e){if(J.hasOwnProperty(e))return $(J,e);throw new Error('MiniSearch: unknown option "'.concat(e,'"'))}static loadJS(e,t){let{index:s,documentIds:i,fieldLength:n,storedFields:o,serializationVersion:c}=e,a=this.instantiateMiniSearch(e,t);a._documentIds=j(i),a._fieldLength=j(n),a._storedFields=j(o);for(let[d,u]of a._documentIds)a._idToShortId.set(u,d);for(let[d,u]of s){let f=new Map;for(let h of Object.keys(u)){let m=u[h];c===1&&(m=m.ds),f.set(parseInt(h,10),j(m))}a._index.set(d,f)}return a}static loadJSAsync(e,t){return V(this,void 0,void 0,function*(){let{index:s,documentIds:i,fieldLength:n,storedFields:o,serializationVersion:c}=e,a=this.instantiateMiniSearch(e,t);a._documentIds=yield T(i),a._fieldLength=yield T(n),a._storedFields=yield T(o);for(let[u,f]of a._documentIds)a._idToShortId.set(f,u);let d=0;for(let[u,f]of s){let h=new Map;for(let m of Object.keys(f)){let y=f[m];c===1&&(y=y.ds),h.set(parseInt(m,10),yield T(y))}++d%1e3===0&&(yield be(0)),a._index.set(u,h)}return a})}static instantiateMiniSearch(e,t){let{documentCount:s,nextId:i,fieldIds:n,averageFieldLength:o,dirtCount:c,serializationVersion:a}=e;if(a!==1&&a!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let d=new I(t);return d._documentCount=s,d._nextId=i,d._idToShortId=new Map,d._fieldIds=n,d._avgFieldLength=o,d._dirtCount=c||0,d._index=new C,d}executeQuery(e,t={}){if(e===I.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){let h=Object.assign(Object.assign(Object.assign({},t),e),{queries:void 0}),m=e.queries.map(y=>this.executeQuery(y,h));return this.combineResults(m,h.combineWith)}let{tokenize:s,processTerm:i,searchOptions:n}=this._options,o=Object.assign(Object.assign({tokenize:s,processTerm:i},n),t),{tokenize:c,processTerm:a}=o,f=c(e).flatMap(h=>a(h)).filter(h=>!!h).map(je(o)).map(h=>this.executeQuerySpec(h,o));return this.combineResults(f,o.combineWith)}executeQuerySpec(e,t){let s=Object.assign(Object.assign({},this._options.searchOptions),t),i=(s.fields||this._options.fields).reduce((p,g)=>Object.assign(Object.assign({},p),{[g]:$(s.boost,g)||1}),{}),{boostDocument:n,weights:o,maxFuzzy:c,bm25:a}=s,{fuzzy:d,prefix:u}=Object.assign(Object.assign({},ue.weights),o),f=this._index.get(e.term),h=this.termResults(e.term,e.term,1,e.termBoost,f,i,n,a),m,y;if(e.prefix&&(m=this._index.atPrefix(e.term)),e.fuzzy){let p=e.fuzzy===!0?.2:e.fuzzy,g=p<1?Math.min(c,Math.round(e.term.length*p)):p;g&&(y=this._index.fuzzyGet(e.term,g))}if(m)for(let[p,g]of m){let w=p.length-e.term.length;if(!w)continue;y==null||y.delete(p);let S=u*p.length/(p.length+.3*w);this.termResults(e.term,p,S,e.termBoost,g,i,n,a,h)}if(y)for(let p of y.keys()){let[g,w]=y.get(p);if(!w)continue;let S=d*p.length/(p.length+w);this.termResults(e.term,p,S,e.termBoost,g,i,n,a,h)}return h}executeWildcardQuery(e){let t=new Map,s=Object.assign(Object.assign({},this._options.searchOptions),e);for(let[i,n]of this._documentIds){let o=s.boostDocument?s.boostDocument(n,"",this._storedFields.get(i)):1;t.set(i,{score:o,terms:[],match:{}})}return t}combineResults(e,t=Y){if(e.length===0)return new Map;let s=t.toLowerCase(),i=ke[s];if(!i)throw new Error("Invalid combination operator: ".concat(t));return e.reduce(i)||new Map}toJSON(){let e=[];for(let[t,s]of this._index){let i={};for(let[n,o]of s)i[n]=Object.fromEntries(o);e.push([t,i])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,s,i,n,o,c,a,d=new Map){if(n==null)return d;for(let u of Object.keys(o)){let f=o[u],h=this._fieldIds[u],m=n.get(h);if(m==null)continue;let y=m.size,p=this._avgFieldLength[h];for(let g of m.keys()){if(!this._documentIds.has(g)){this.removeTerm(h,g,t),y-=1;continue}let w=c?c(this._documentIds.get(g),t,this._storedFields.get(g)):1;if(!w)continue;let S=m.get(g),P=this._fieldLength.get(g)[h],W=Ee(S,y,this._documentCount,P,p,a),k=s*i*f*w*W,x=d.get(g);if(x){x.score+=k,Ve(x.terms,e);let F=$(x.match,t);F?F.push(u):x.match[t]=[u]}else d.set(g,{score:k,terms:[e],match:{[t]:[u]}})}}return d}addTerm(e,t,s){let i=this._index.fetch(s,he),n=i.get(e);if(n==null)n=new Map,n.set(t,1),i.set(e,n);else{let o=n.get(t);n.set(t,(o||0)+1)}}removeTerm(e,t,s){if(!this._index.has(s)){this.warnDocumentChanged(t,e,s);return}let i=this._index.fetch(s,he),n=i.get(e);n==null||n.get(t)==null?this.warnDocumentChanged(t,e,s):n.get(t)<=1?n.size<=1?i.delete(e):n.delete(t):n.set(t,n.get(t)-1),this._index.get(s).size===0&&this._index.delete(s)}warnDocumentChanged(e,t,s){for(let i of Object.keys(this._fieldIds))if(this._fieldIds[i]===t){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(e),' has changed before removal: term "').concat(s,'" was not present in field "').concat(i,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}addDocumentId(e){let t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,s,i){let n=this._fieldLength.get(e);n==null&&this._fieldLength.set(e,n=[]),n[t]=i;let c=(this._avgFieldLength[t]||0)*s+i;this._avgFieldLength[t]=c/(s+1)}removeFieldLength(e,t,s,i){if(s===1){this._avgFieldLength[t]=0;return}let n=this._avgFieldLength[t]*s-i;this._avgFieldLength[t]=n/(s-1)}saveStoredFields(e,t){let{storeFields:s,extractField:i}=this._options;if(s==null||s.length===0)return;let n=this._storedFields.get(e);n==null&&this._storedFields.set(e,n={});for(let o of s){let c=i(t,o);c!==void 0&&(n[o]=c)}}};l(I,"MiniSearch");var O=I;O.wildcard=Symbol("*");var $=l((r,e)=>Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,"getOwnProperty"),ke={[Y]:(r,e)=>{for(let t of e.keys()){let s=r.get(t);if(s==null)r.set(t,e.get(t));else{let{score:i,terms:n,match:o}=e.get(t);s.score=s.score+i,s.match=Object.assign(s.match,o),de(s.terms,n)}}return r},[ye]:(r,e)=>{let t=new Map;for(let s of e.keys()){let i=r.get(s);if(i==null)continue;let{score:n,terms:o,match:c}=e.get(s);de(i.terms,o),t.set(s,{score:i.score+n,terms:i.terms,match:Object.assign(i.match,c)})}return t},[Le]:(r,e)=>{for(let t of e.keys())r.delete(t);return r}},Ae={k:1.2,b:.7,d:.5},Ee=l((r,e,t,s,i,n)=>{let{k:o,b:c,d:a}=n;return Math.log(1+(t-e+.5)/(e+.5))*(a+r*(o+1)/(r+o*(1-c+c*s/i)))},"calcBM25Score"),je=l(r=>(e,t,s)=>{let i=typeof r.fuzzy=="function"?r.fuzzy(e,t,s):r.fuzzy||!1,n=typeof r.prefix=="function"?r.prefix(e,t,s):r.prefix===!0,o=typeof r.boostTerm=="function"?r.boostTerm(e,t,s):1;return{term:e,fuzzy:i,prefix:n,termBoost:o}},"termToQuerySpec"),J={idField:"id",extractField:l((r,e)=>r[e],"extractField"),tokenize:l(r=>r.split(Re),"tokenize"),processTerm:l(r=>r.toLowerCase(),"processTerm"),fields:void 0,searchOptions:void 0,storeFields:[],logger:l((r,e)=>{typeof(console==null?void 0:console[r])=="function"&&console[r](e)},"logger"),autoVacuum:!0},ue={combineWith:Y,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:Ae},Te={combineWith:ye,prefix:l((r,e,t)=>e===t.length-1,"prefix")},U={batchSize:1e3,batchWait:10},G={minDirtFactor:.1,minDirtCount:20},q=Object.assign(Object.assign({},U),G),Ve=l((r,e)=>{r.includes(e)||r.push(e)},"assignUniqueTerm"),de=l((r,e)=>{for(let t of e)r.includes(t)||r.push(t)},"assignUniqueTerms"),le=l(({score:r},{score:e})=>e-r,"byScore"),he=l(()=>new Map,"createMap"),j=l(r=>{let e=new Map;for(let t of Object.keys(r))e.set(parseInt(t,10),r[t]);return e},"objectToNumericMap"),T=l(r=>V(void 0,void 0,void 0,function*(){let e=new Map,t=0;for(let s of Object.keys(r))e.set(parseInt(s,10),r[s]),++t%1e3===0&&(yield be(0));return e}),"objectToNumericMapAsync"),be=l(r=>new Promise(e=>setTimeout(e,r)),"wait"),Re=/[\n\r\p{Z}\p{P}]+/u;var xe=Oe(ve(),1);var L,D,ze,X=class X{constructor(e){B(this,D);A(this,"mapData");A(this,"indexes");A(this,"ready");B(this,L);this.mapData=e,this.indexes=We(e),this.ready=this.populate(),te(this,L,ie(se(this,D,ze).bind(this),2e3))}async populate(){let{places:e,enterpriseLocations:t,enterpriseCategories:s}=this.indexes,i=this.mapData,n=[];return e.removeAll(),n=n.concat([e.addAllAsync(i.getByType("space")),e.addAllAsync(i.getByType("point-of-interest")),e.addAllAsync(i.getByType("connection")),e.addAllAsync(i.getByType("floor")),e.addAllAsync(i.getByType("door")),e.addAllAsync(i.getByType("annotation")),e.addAllAsync(i.getByType("area"))]),t&&(t==null||t.removeAll(),n.push(t.addAllAsync(i.getByType("enterprise-location")))),s&&(s==null||s.removeAll(),n.push(s.addAllAsync(i.getByType("enterprise-category")))),Promise.all(n)}async search(e,t={}){var a,d;await this.ready,Be.parse(t);let s=(0,xe.default)({},t,Pe),i=this.indexes.places.search(e,{fields:Object.keys(s.places.fields).filter(u=>s.places.fields[u])});s.places.limit&&(i=i.slice(0,s.places.limit));let n=(a=this.indexes.enterpriseLocations)==null?void 0:a.search(e,{fields:Object.keys(s.enterpriseLocations.fields).filter(u=>s.enterpriseLocations.fields[u])});n&&s.enterpriseLocations.limit&&(n=n.slice(0,s.enterpriseLocations.limit));let o=(d=this.indexes.enterpriseCategories)==null?void 0:d.search(e,{fields:Object.keys(s.enterpriseCategories.fields).filter(u=>s.enterpriseCategories.fields[u])});o&&s.enterpriseCategories.limit&&(o=o.slice(0,s.enterpriseCategories.limit));let c=De(this.mapData,{placesResult:i,locationsResult:n,categoriesResult:o});return ee(this,L).call(this,e),c}async suggest(e,t={}){await this.ready,Ne.parse(t);let s=[],{places:{enabled:i=!0}={},enterpriseLocations:{enabled:n=!0}={}}=t;return n&&this.indexes.enterpriseLocations&&this.indexes.enterpriseLocations.autoSuggest(e,{fields:["name","tags"],combineWith:"AND",prefix:!0,boost:{name:2,tags:1}}).forEach(o=>s.push(o)),i&&this.indexes.places.autoSuggest(e,{fields:["name"],combineWith:"AND",prefix:!0}).forEach(o=>s.push(o)),s.sort((o,c)=>c.score-o.score),this.mapData.Analytics.capture("$query-suggest",{query:e,suggestions:s.map(o=>o.suggestion)}),s}};L=new WeakMap,D=new WeakSet,ze=l(function(e){this.mapData.Analytics.capture("$query-search",{query:e})},"#trackSearch"),l(X,"InternalSearch");var Se=X;function De(r,{placesResult:e,locationsResult:t,categoriesResult:s}){let i=e.reduce((c,{id:a,match:d,score:u,__type:f})=>{let h=r.getById(f,a);return h!=null&&!ne.is(h)&&!oe.is(h)&&!re.is(h)&&!ce.is(h)&&!ae.is(h)&&c.push({type:h.__type,match:d,score:u,item:h}),c},[]),n;if(t){n=[];for(let{id:c,match:a,score:d}of t){let u=r.getById("enterprise-location",c);u&&n.push({type:u.__type,match:a,score:d,item:u})}}let o;if(s){o=[];for(let{id:c,match:a,score:d}of s){let u=r.getById("enterprise-category",c);u&&o.push({type:u.__type,match:a,score:d,item:u})}}return{places:i,enterpriseLocations:n,enterpriseCategories:o}}l(De,"processSearchResult");var Pe={places:{fields:{name:!0,description:!0}},enterpriseCategories:{fields:{name:!0,description:!1,"locations.name":!0}},enterpriseLocations:{fields:{name:!0,tags:!0,description:!0}}};function H(r){return r.normalize("NFD").replace(/[\u0300-\u036f|\u2019|\u0027|\']/g,"").toLowerCase()}l(H,"removeAccents");function We(r){let e=new O({fields:["name","description"],storeFields:["id","__type"],searchOptions:{fuzzy:.2,prefix:!0,boost:{name:2},combineWith:"AND"},extractField:l((o,c)=>{let a=o[c];return typeof a=="string"?H(a):o[c]},"extractField"),processTerm:l(o=>$e.has(o)?"":o.toLowerCase(),"processTerm")}),t=r.getByType("enterprise-location"),s;t&&(s=new O({fields:["name","tags","description"],storeFields:["id","__type"],searchOptions:{combineWith:"OR",prefix:!0,fuzzy:.2,boost:{name:3,tags:2,description:1}},extractField:l((o,c)=>Array.isArray(o[c])?o[c].join(" "):typeof o[c]=="string"?H(o[c]):o[c],"extractField")}));let i=r.getByType("enterprise-category"),n;return i&&(n=new O({fields:["name","description","locations.name"],storeFields:["id","__type"],extractField(o,c){return c==="locations.name"?o.locations.reduce((d,u)=>d+" ".concat(we," ")+u.name,"")+" ".concat(we):typeof o[c]=="string"?H(o[c]):o[c]},searchOptions:{combineWith:"OR",prefix:!0,fuzzy:.2,boost:{name:2,"locations.name":2}}})),{enterpriseCategories:n,enterpriseLocations:s,places:e}}l(We,"buildIndexes");var Be=_.object({places:_.object({fields:_.object({name:_.boolean().optional(),description:_.boolean().optional()}).optional(),limit:_.number().positive().optional()}).optional(),enterpriseCategories:_.object({fields:_.object({name:_.boolean().optional(),description:_.boolean().optional(),"locations.name":_.boolean().optional()}).optional(),limit:_.number().positive().optional()}).optional(),enterpriseLocations:_.object({fields:_.object({name:_.boolean().optional(),tags:_.boolean().optional(),description:_.boolean().optional()}).optional(),limit:_.number().positive().optional()}).optional()}),Ne=_.object({places:_.object({enabled:_.boolean().optional()}).optional(),enterpriseLocations:_.object({enabled:_.boolean().optional()}).optional()}),$e=new Set(["the","an","and","or","of","in","on","at","to","from","with","by","for"]),we="";export{Se as InternalSearch,H as removeAccents};
@@ -1 +0,0 @@
1
- import{$ as _,A as z,B as A,C as B,D as C,E as D,F as E,G as F,H as G,I as H,J as I,K as J,L as K,M as L,N as M,O as N,P as O,Q as P,R as Q,S as R,T as S,U as T,V as U,W as V,X as W,Y as X,Z as Y,_ as Z,a,aa as $,b,ba as aa,c,ca as ba,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,v as u,w as v,x as w,y as x,z as y}from"./chunk-FSBH4P52.js";import"./chunk-GVHB2OJC.js";import"./chunk-BYMKRV3A.js";var export_Point=T.default;export{d as AJAXError,J as AttributionControl,y as BoxZoomHandler,q as CanvasSource,I as CooperativeGesturesHandler,E as DoubleClickZoomHandler,F as DragPanHandler,G as DragRotateHandler,t as EdgeInsets,e as Evented,Q as FullscreenControl,n as GeoJSONSource,O as GeolocateControl,u as Hash,o as ImageSource,C as KeyboardHandler,h as LngLat,i as LngLatBounds,K as LogoControl,L as Map,v as MapMouseEvent,w as MapTouchEvent,x as MapWheelEvent,N as Marker,j as MercatorCoordinate,M as NavigationControl,export_Point as Point,S as Popup,m as RasterDEMTileSource,l as RasterTileSource,P as ScaleControl,D as ScrollZoomHandler,s as Style,R as TerrainControl,B as TwoFingersTouchPitchHandler,A as TwoFingersTouchRotateHandler,z as TwoFingersTouchZoomHandler,H as TwoFingersTouchZoomRotateHandler,k as VectorTileSource,p as VideoSource,b as addProtocol,r as addSourceType,g as clearPrewarmedResources,a as config,Z as getMaxParallelImageRequests,V as getRTLTextPluginStatus,W as getVersion,X as getWorkerCount,$ as getWorkerUrl,ba as importScriptInWorkers,f as prewarm,c as removeProtocol,_ as setMaxParallelImageRequests,U as setRTLTextPlugin,Y as setWorkerCount,aa as setWorkerUrl};