@arcgis/core 5.2.0-next.144 → 5.2.0-next.145

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 (95) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  4. package/arcgisGlobal.d.ts +5 -5
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  8. package/assets/esri/core/workers/chunks/18f20fd43ec9ce03cef1.js +1 -0
  9. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  10. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  11. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  12. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  13. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  14. package/assets/esri/core/workers/chunks/{5b3cfe95314a75a735c1.js → 588e677f33df86a595bf.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{1c0975c2dd1d0e2710bb.js → 6883a5c6883eccaddf64.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{f74e32d2ffe81778826b.js → 6c1d5577a17a5c8ccf39.js} +1 -1
  17. package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +1 -0
  18. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  19. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  20. package/assets/esri/core/workers/chunks/77ebacfdf8e57f2e03f1.js +1118 -0
  21. package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +1 -0
  22. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  23. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  24. package/assets/esri/core/workers/chunks/{402a82c77420254831bc.js → b7d77dd2abb255fd2e5a.js} +1 -1
  25. package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +1 -0
  26. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  27. package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +1 -0
  28. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  29. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  30. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  31. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  32. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  33. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  34. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  35. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  36. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  37. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  38. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  39. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  40. package/config.js +1 -1
  41. package/kernel.js +1 -1
  42. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  43. package/layers/graphics/transferFeatures.js +1 -1
  44. package/package.json +2 -2
  45. package/symbols/cim/cimAnalyzer.js +1 -1
  46. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  47. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  48. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  49. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  50. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  51. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  52. package/views/3d/layers/support/FeatureMemory.js +1 -1
  53. package/views/3d/layers/support/FeatureTile.js +1 -1
  54. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  55. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  56. package/views/3d/support/PBFDecoder.js +1 -1
  57. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  58. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  59. package/views/SceneView.d.ts +4 -10
  60. package/views/View.d.ts +4 -12
  61. package/views/interactive/options/SnappingOptions.d.ts +28 -12
  62. package/views/interactive/options/TooltipOptions.d.ts +8 -1
  63. package/views/interactive/options/ValueOptions.d.ts +9 -2
  64. package/views/interactive/options/ViewOptions.d.ts +81 -6
  65. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  66. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  67. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  68. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  69. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  70. package/widgets/BasemapGallery/types.d.ts +3 -3
  71. package/widgets/BatchAttributeForm.js +1 -1
  72. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  73. package/widgets/Editor.d.ts +9 -9
  74. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  75. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  76. package/widgets/Sketch.d.ts +9 -9
  77. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  78. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  79. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  80. package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
  81. package/assets/esri/core/workers/chunks/4097edb2ad522dff50ce.js +0 -1
  82. package/assets/esri/core/workers/chunks/4a0216ee6382d9276f1c.js +0 -1
  83. package/assets/esri/core/workers/chunks/55766692b578e60dd70e.js +0 -1742
  84. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  85. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  86. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  87. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  88. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  89. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  90. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  91. package/assets/esri/core/workers/chunks/de24fc414a3f243d675e.js +0 -1
  92. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  93. package/assets/esri/core/workers/chunks/ea746d9bbea170719a1c.js +0 -1
  94. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  95. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2013],{42013(e,l,a){a.r(l),a.d(l,{GlobalIlluminationBlurDrawParameters:()=>t.G,build:()=>t.b}),a(48163),a(82048),a(52540),a(72885),a(34845),a(32976),a(68259),a(20304),a(31821),a(15976),a(63761),a(94046),a(72458),a(65786),a(14113);var t=a(52516)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,t){t.r(e),t.d(e,{GlobalIlluminationPassParameters:()=>l.G,build:()=>l.c,defaultColorBleedWeight:()=>0,defaultEmissionBoostFactor:()=>2.5,defaultFactorDaylightDirectional:()=>.8,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),t(82048),t(92573),t(65261),t(98619),t(70893),t(34845),t(45324),t(33094),t(20304),t(31821),t(58029),t(12791),t(63761),t(94046),t(72458),t(18519),t(63907),t(65786),t(14113);var l=t(587)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(54154),l(9169),l(12696),l(72233),l(18e3),l(98619),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(47630),l(14113);var s=l(57323)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5051],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split("."),a=/^\s*\d+\s*$/;if(!r?.match||!a.test(r)){let r=t&&t+":";throw new n.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!a.test(o)){let r=t&&t+":";throw new n.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new i(parseInt(r,10),parseInt(o,10),t)}}},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function s(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>i,vt:()=>n});const u=[0,0,0,0],f=o(),d=a(),m=l(),h=s(),M=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:M,UNIT_X:d,UNIT_Y:m,UNIT_Z:h,ZEROS:u,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:function(e,t,r,n){return[e,t,r,n]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:o,unitW:c,unitX:a,unitY:l,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,u,"v7",0,M])},78955(e,t,r){r.d(t,{Bw:()=>p,C:()=>i,Cc:()=>C,LI:()=>d,Om:()=>g,S8:()=>b,T9:()=>f,WQ:()=>a,Z0:()=>I,aI:()=>w,hG:()=>M,hZ:()=>o,hs:()=>m,jk:()=>u,m3:()=>y,t2:()=>S});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function a(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function l(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function u(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function M(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function p(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function y(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function b(e,t){let r=t[0],n=t[1],i=t[2],o=t[3],a=r*r+n*n+i*i+o*o;return a>0&&(a=1/Math.sqrt(a),e[0]=r*a,e[1]=n*a,e[2]=i*a,e[3]=o*a),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function C(e,t,r,n){let i=t[0],o=t[1],a=t[2],l=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=a+n*(r[2]-a),e[3]=l+n*(r[3]-l),e}function I(e,t,r){let n=t[0],i=t[1],o=t[2],a=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*a,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*a,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*a,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*a,e}function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function w(e,t){let r=e[0],i=e[1],o=e[2],a=e[3],l=t[0],s=t[1],c=t[2],u=t[3],f=(0,n.FD)();return Math.abs(r-l)<=f*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-s)<=f*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-c)<=f*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-u)<=f*Math.max(1,Math.abs(a),Math.abs(u))}const _=l,k=s,v=c,x=h,T=M,A=p,P=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:x,distance:h,div:v,divide:c,dot:g,equals:w,exactEquals:S,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:A,length:p,lerp:C,max:f,min:u,mul:k,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){let r,i,o,a,l,s,c=n.Ov;do{r=2*c()-1,i=2*c()-1,l=r*r+i*i}while(l>=1);do{o=2*c()-1,a=2*c()-1,s=o*o+a*a}while(s>=1);let u=Math.sqrt((1-l)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*o*u,e[3]=t*a*u,e},round:d,scale:m,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:T,sqrLen:P,squaredDistance:M,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:_,subtract:l,transformMat4:I,transformQuat:function(e,t,r){let n=t[0],i=t[1],o=t[2],a=r[0],l=r[1],s=r[2],c=r[3],u=c*n+l*o-s*i,f=c*i+s*n-a*o,d=c*o+a*i-l*n,m=-a*n-l*i-s*o;return e[0]=u*c+m*-a+f*-s-d*-l,e[1]=f*c+m*-l+d*-a-u*-s,e[2]=d*c+m*-s+u*-l-f*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},73681(e,t,r){r.d(t,{n:()=>s});var n=r(49186),i=r(53966),o=r(46140),a=r(95466),l=r(55674);class s{static async from(e,t,r){let a=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),f={};if(t)for(let e in t)f[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)f.hasOwnProperty(t.name)||(f[t.name]=t.value);let d=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});let m=await(0,l.xR)(e.expression,null,f);if(!m)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!a||!a.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:a});let M=new c(r,h);return new s(h,u,m,M)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new a.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new a.A(t)}}class c extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},55674(e,t,r){r.d(t,{Ad:()=>h,Gj:()=>y,QY:()=>m,lL:()=>b,xR:()=>M});var n=r(66131),i=r(19334),o=r(36983),a=r(49186),l=(r(44208),r(44729)),s=r(15032),c=r(95466),u=r(43668),f=r(98623);const d=["geometry","scale","timeProperties"];function m(e,t){if(null!=t)for(let r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return p.create(e,t,null,["$feature","$view"])}function M(e,t,r){return p.create(e,t,r,["$feature","$view","$config"])}class p{static async create(e,t,r,n){let i,{arcade:o,Dictionary:l}=await(0,u.l)();try{i=o.parseScript(e)}catch(t){throw new a.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}let s=o.scriptUsesGeometryEngine(i);s&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,i,null,!1,s);let c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},f=o.compileScript(i,c),d=null;null!=r&&(d=new l(r),d.immutable=!0);let m=new l;return m.immutable=!1,m.setField("scale",0),new p(e,o,i,f,t,m,d,l)}constructor(e,t,r,n,i,o,a,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=a,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){let r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){let{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({__proto__:null,currentStart:null==i?void 0:null==r?n.lY.unknownEpochToArcadeDate(i):n.lY.epochToArcadeDate(i,r),currentEnd:null==o?void 0:null==r?n.lY.unknownEpochToArcadeDate(o):n.lY.epochToArcadeDate(o,r),startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){let n=t??new c.A(b(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){let e=this._boundTarget.geometry;if(null==e)return null;if("fromJSON"in e)return(0,i.e)(e);if(!this._boundSchema.spatialReference)throw Error("InternalError: Expected spatial reference to be defined");return(0,o.R)(e,this._boundSchema.spatialReference)}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===f.L}field(e,t=!0){let r=this._getField(e);if(r){let t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return l.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??"system");default:return t}}if(t)throw Error(`Field ${e} does not exist`);return null}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}function b(e){let t=[];for(let r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},28076(e,t,r){var n=r(13337);const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,i])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>S,DW:()=>b,FM:()=>l,Kn:()=>y,Kq:()=>z,MM:()=>f,Nl:()=>w,O2:()=>_,YC:()=>T,YF:()=>k,_1:()=>C,_h:()=>a,bs:()=>x,e6:()=>c,gQ:()=>o,jn:()=>m,lW:()=>u,ll:()=>F,mA:()=>d,oI:()=>j,pM:()=>g,pV:()=>p,pk:()=>P,rB:()=>E,xo:()=>I,yX:()=>O,zb:()=>v,zr:()=>h});var n=r(28076);function i(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function o(e,t){let r=[],n=0,o=-1;do{if(o=e.indexOf("[",n),o>=n){if(o>n){let t=e.slice(n,o);r.push([t,null,i(t)])}if(n=o+1,o=e.indexOf("]",n),o>=n){if(o>n){let i=t[e.slice(n,o)];i&&r.push([null,i,!1])}n=o+1}}}while(-1!==o);if(n<e.length){let t=e.slice(n);r.push([t,null,i(t)])}return r}function a(e,t,r){let n="",i=null;for(let r of t){let[t,o,a]=r;if(null!=t&&""!==t)a?i=t:(null!=i&&(n+=i,i=null),n+=t);else{let t=e.readAttribute(o);null!=t&&""!==t&&(null!==i&&(n+=i,i=null),n+=t)}}return s(n,r)}function l(e,t,r,n){let i="",o=null;for(let n of t){let[t,a,l]=n;if(null!=t&&""!==t)l?o=t:(null!=o&&(i+=o,o=null),i+=t);else{let t=a;null!=r&&(t=A(a,r));let n=e.attributes[t];null!=n&&""!==n&&(null!=o&&(i+=o,o=null),i+=n)}}return s(i,n)}function s(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function c(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function u(e){return e.data?.symbol??null}function f(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function d(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function m(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const M=(e,t=0)=>null==e||isNaN(e)?t:e;function p(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function y(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function b(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function g(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=g(t);if(null!=e)return e}break;case"CIMTextSymbol":return g(e.symbol);case"CIMSolidFill":return e.color}return null}function C(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{let t=e.symbolLayers;if(t)for(let e of t){let t=C(e);if(null!=t)return t}break}case"CIMTextSymbol":return C(e.symbol);case"CIMSolidStroke":return e.color}}function I(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=I(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return I(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function S(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function w(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function _(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function k(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function v(e,t,r,n,i,o,a=!0){let{infos:l}=o,s=1,c=0,u=0,f=0,d=1;for(let{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:n,size:i,frameHeight:o,rotateClockWise:m,scaleSymbolsProportionally:h}of l)d=e?1:s,u=L(t,r,c,d,u),f=D(t,r,c,d,f),o&&(h||a)&&(s*=i/o),c=R(n,m,c);let m=L(n,i,c,d,u),h=D(n,i,c,d,f);return{size:e*s,rotation:R(t,r,c),offsetX:m,offsetY:h}}function x(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=e.symbolLayers;if(!t)return"Normal";for(let e of t)if("CIMVectorMarker"===e.type)return x(e)}break;case"CIMVectorMarker":{let t=e.markerGraphics;if(!t)return"Normal";for(let e of t)if(e.symbol)return x(e.symbol)}}return"Normal"}function T(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{let e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{let e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){let e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{let e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function A(e,t){if(null!==t){let r=t.get(e);return r?r.name:e}return e}function P(e){return e.map(e=>({...e,propertyName:k(e.propertyName)}))}function E(e){let t={};for(let r in e){let n=e[r];t[k(r)]=n}return t}function F(e){if(!e)return 0;let t=0;for(let r of e)t+=G(r);return t}function G(e){if(!e)return 0;if(z(e))return e.inflateSize??256;if(function(e){return"CIMSimpleLineCallout"===e.type||"CIMBackgroundCallout"===e.type||"CIMBalloonCallout"===e.type||"CIMPointSymbolCallout"===e.type}(e))return Math.abs(e.inflateSize);switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectCircularSector":return Math.abs(e.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(M(e.offsetX)),Math.abs(M(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function D(e,t,r,n,i){let o=r*Math.PI/180;if(o){let r=Math.cos(o);return(Math.sin(o)*e+r*t)*n+i}return t*n+i}function L(e,t,r,n,i){let o=r*Math.PI/180;return o?(Math.cos(o)*e-Math.sin(o)*t)*n+i:e*n+i}function R(e,t,r){return t?r-e:r+e}function O(e,t){return Math.max(Math.min((e??t)/100,1),0)}function z(e){return e.type.startsWith("Private")}function j(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,M,"UE",0,e=>e.includes("data:image/svg+xml")])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4548,8846],{73354(t,e,r){r.d(e,{a:()=>c,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>f,n:()=>p,t:()=>i}),r(44208);var n=r(72727);function o(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[4],p=r[5],d=r[6],y=r[8],h=r[9],m=r[10],v=r[12],b=r[13],M=r[14],w=0,A=0;for(let r=0;r<a;r++){let r=e[w],n=e[w+1],u=e[w+2];t[A]=f*r+g*n+y*u+v,t[A+1]=s*r+p*n+h*u+b,t[A+2]=c*r+d*n+m*u+M,w+=i,A+=o}return t}function u(t,e,r){l(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function l(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[3],p=r[4],d=r[5],y=r[6],h=r[7],m=r[8],v=0,b=0;for(let r=0;r<a;r++){let r=e[v],n=e[v+1],u=e[v+2];t[b]=f*r+g*n+y*u,t[b+1]=s*r+p*n+h*u,t[b+2]=c*r+d*n+m*u,v+=i,b+=o}}function a(t,e,r,n=3,o=n){let i=Math.min(t.length/n,e.length/o),u=0,l=0;for(let a=0;a<i;a++)t[l]=r*e[u],t[l+1]=r*e[u+1],t[l+2]=r*e[u+2],u+=o,l+=n;return t}function f(t,e,r,n){s(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,r,n,o=3,i=o){let u=Math.min(t.length/o,e.length/i),l=0,a=0,f=1/2.2;for(let s=0;s<u;s++)t[a]=n*(r*e[l])**f,t[a+1]=n*(r*e[l+1])**f,t[a+2]=n*(r*e[l+2])**f,l+=i,a+=o}function c(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=0,s=0;for(let n=0;n<a;n++)t[s]=e[f]+r[0],t[s+1]=e[f+1]+r[1],t[s+2]=e[f+2]+r[2],f+=i,s+=o;return t}function g(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,r=3,n=r){let o=Math.min(t.length/r,e.length/n),i=0,u=0;for(let l=0;l<o;l++){let o=e[i],l=e[i+1],a=e[i+2],f=o*o+l*l+a*a;if(f>0){let e=1/Math.sqrt(f);t[u]=e*o,t[u+1]=e*l,t[u+2]=e*a}i+=n,u+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:f,normalize:p,normalizeView:g,scale:a,scaleView:function(t,e,r){a(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){let n=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,l=e.typedBufferStride,a=0,f=0;for(let t=0;t<n;t++)o[f]=u[a]>>r,o[f+1]=u[a+1]>>r,o[f+2]=u[a+2]>>r,a+=l,f+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:c},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>o,vt:()=>n});const s=u(),c=l(),g=a(),p=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,c,"Un",0,s])},91829(t,e,r){function n(){return[0,0,0,0]}function o(t,e,r,n){return[t,e,r,n]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>o,vt:()=>n});const s=[0,0,0,0],c=i(),g=u(),p=l(),d=a(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:y,UNIT_X:g,UNIT_Y:p,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){let r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:o,ones:i,unitW:f,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,s,"v7",0,y])},48353(t,e,r){r.d(e,{l:()=>f});var n=r(34727),o=r(58083),i=r(51850);function u(t,e,r){let n=Math.sin(t),o=Math.cos(t),i=Math.sin(e),u=Math.cos(e),l=r;return l[0]=-n,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*n,l[9]=u*n,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=r(49208),a=r(21325);function f(t,e,r,n){let i=(0,l.Tp)(t,n);if(null==i)return!1;let f=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(f===d&&!s(d)&&(0!==f||(0,a.aI)(t,n)))return(0,o.kN)(r,e),!0;if(s(d)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),u(c*g[0],c*g[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}let y=s(f);if((3===d||11===d||2===d||5===d)&&(2===f||y||3===f||5===f)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),y?function(t,e,r){u(t,e,r),(0,o.mg)(r,r)}(c*g[0],c*g[1],r):(0,o.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,r){r.d(e,{g:()=>u});var n=r(51850),o=r(99917),i=r(9762);function u(t,e,r,n){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,e,r,0);let u=(0,o.tryProject)(t,r,n);return!!u&&(e[0]=u.x,e[1]=u.y,e[2]=u.z??0,!0)}const l=(0,n.vt)()},1193(t,e,r){r.r(e),r.d(e,{default:()=>c});var n,o=r(32198),i=r(69540),u=r(25482),l=r(4718),a=r(53966),f=r(91429),s=r(31199);let c=n=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){let t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new n(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"color",void 0),(0,o.Cg)([(0,f.wg)("color")],c.prototype,"castColor",null),(0,o.Cg)([(0,f.MZ)({nonNullable:!0,json:{write:s.B}})],c.prototype,"position",void 0),(0,o.Cg)([(0,f.wg)("position")],c.prototype,"castPosition",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"uv",void 0),(0,o.Cg)([(0,f.wg)("uv")],c.prototype,"castUv",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"normal",void 0),(0,o.Cg)([(0,f.wg)("normal")],c.prototype,"castNormal",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"tangent",void 0),(0,o.Cg)([(0,f.wg)("tangent")],c.prototype,"castTangent",null),c=n=(0,o.Cg)([(0,f.$K)("esri.geometry.support.MeshVertexAttributes")],c)},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;let n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},31199(t,e,r){function n(t,e,r,n){let{loggerTag:o,stride:i}=e;return t.length%i===0?t:(n.error(o,`Invalid array length, expected a multiple of ${i}`),new r([]))}function o(t,e,r,o,i){if(!t)return t;if(t instanceof e)return n(t,o,e,i);for(let u of r)if(t instanceof u)return n(new e(t),o,e,i);if(Array.isArray(t))return n(new e(t),o,e,i);{let n=r.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${n}, but got ${t.constructor.name}`),new e([])}}function i(t,e,r){e[r]=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r];return e}(t)}r.d(e,{B:()=>i,b:()=>o})},28846(t,e,r){r.d(e,{convertMeshVertexSpace:()=>f});var n=r(49186),o=r(4718),i=r(17676),u=r(1193),l=r(66895),a=r(72258);async function f(t,e,r){await Promise.resolve(),(0,i.Te)(r);let f=(0,a.UR)(t,e,{useEllipsoid:r?.useEllipsoid});if(!f)throw new n.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...f,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:e,transform:null}))}},66895(t,e,r){r.d(e,{$N:()=>s,Lz:()=>i,QN:()=>c,WO:()=>a,hz:()=>l,o2:()=>o});const n=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&n in t?t[n]:void 0}function i(t,e){let r=o(t);return{...t,[n]:{...r,...e}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){if(l(t)?.materialMap)return t;let e={materialMap:new Map};return{...t,[u]:e}}const f=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&f in t?t[f]:void 0}function c(t){if(s(t)?.textureMap)return t;let e={textureMap:new Map};return{...t,[f]:e}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7499],{68197(t,e,r){r.d(e,{A:()=>h});var i=r(40876),a=r(4576),n=r(34727),s=r(78888);function o(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function l(t,e){let r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function u(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class h{static blendColors(t,e,r,i=new h){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){let r=(0,i.lT)(t);return r?h.fromArray(r,e):null}static fromHex(t,e=new h){let r=(0,i.oW)(t);return r?h.fromArray(r,e):null}static fromArray(t,e=new h){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let r=(0,i.Eq)(t);return r?h.fromArray(r,e):null}static fromJSON(t){return null==t?void 0:new h([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let r=t instanceof h?t:new h(t),i=u(this),a=u(r);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)<e}setColor(t){if("string"==typeof t)h.fromString(t,this);else if((0,a.yc)(t))h.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,a=4===r||8===r,n=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${a?l(Math.round(255*this.a),i):""}`;return e?n.toUpperCase():n}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>y,G1:()=>m,Q6:()=>_,TS:()=>n,V6:()=>a,Vm:()=>f,ay:()=>l,c1:()=>g,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(t){return!!i[t]||!!i[t.toLowerCase()]}function n(t){return i[t]??i[t.toLowerCase()]}function s(t){return[...n(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){let a=(t%360+360)%360/360,n=r<=.5?r*(e+1):r+e-r*e,s=2*r-n;return[Math.round(255*o(s,n,a+1/3)),Math.round(255*o(s,n,a)),Math.round(255*o(s,n,a-1/3)),i]}function u(t){let e=t.length>5,r=e?8:4,i=(1<<r)-1,a=e?1:17,n=e?9===t.length:5===t.length,s=Number("0x"+t.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return n&&(o=s&i,s>>=r,l[3]=a*o/255),o=s&i,s>>=r,l[2]=a*o,o=s&i,s>>=r,l[1]=a*o,o=s&i,s>>=r,l[0]=a*o,l}function h(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),a=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(a+16*a)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),p(e)}return p(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function p(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function y(t){let e=a(t)?n(t):null;return e??=c(t),e??=h(t),e}function f(t){let e=y(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function m(t){return d(t,0,1)}function g(t){return Math.round(d(t,0,255))}function d(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const b=1/2.2;function _(t){return t**2.2}function v(t){return t**b}r.d(e,["iw",0,b])},91829(t,e,r){function i(){return[0,0,0,0]}function a(t,e,r,i){return[t,e,r,i]}function n(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function o(){return a(0,1,0,0)}function l(){return a(0,0,1,0)}function u(){return a(0,0,0,1)}r.d(e,{_Y:()=>u,fA:()=>a,vt:()=>i});const h=[0,0,0,0],c=n(),p=s(),y=o(),f=l(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:f,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:i,freeze:function(t,e,r,i){return[t,e,r,i]},fromArray:function(t,e=[0,0,0,0]){let r=Math.min(4,t.length);for(let i=0;i<r;++i)e[i]=t[i];return e},fromValues:a,ones:n,unitW:u,unitX:s,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,h,"v7",0,m])},78955(t,e,r){r.d(e,{Bw:()=>g,C:()=>a,Cc:()=>v,LI:()=>p,Om:()=>_,S8:()=>b,T9:()=>c,WQ:()=>s,Z0:()=>x,aI:()=>T,hG:()=>m,hZ:()=>n,hs:()=>y,jk:()=>h,m3:()=>d,t2:()=>w});var i=r(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function n(t,e,r,i,a){return t[0]=e,t[1]=r,t[2]=i,t[3]=a,t}function s(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function l(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function h(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function c(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function p(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function f(t,e){let r=e[0]-t[0],i=e[1]-t[1],a=e[2]-t[2],n=e[3]-t[3];return Math.sqrt(r*r+i*i+a*a+n*n)}function m(t,e){let r=e[0]-t[0],i=e[1]-t[1],a=e[2]-t[2],n=e[3]-t[3];return r*r+i*i+a*a+n*n}function g(t){let e=t[0],r=t[1],i=t[2],a=t[3];return Math.sqrt(e*e+r*r+i*i+a*a)}function d(t){let e=t[0],r=t[1],i=t[2],a=t[3];return e*e+r*r+i*i+a*a}function b(t,e){let r=e[0],i=e[1],a=e[2],n=e[3],s=r*r+i*i+a*a+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=a*s,t[3]=n*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function v(t,e,r,i){let a=e[0],n=e[1],s=e[2],o=e[3];return t[0]=a+i*(r[0]-a),t[1]=n+i*(r[1]-n),t[2]=s+i*(r[2]-s),t[3]=o+i*(r[3]-o),t}function x(t,e,r){let i=e[0],a=e[1],n=e[2],s=e[3];return t[0]=r[0]*i+r[4]*a+r[8]*n+r[12]*s,t[1]=r[1]*i+r[5]*a+r[9]*n+r[13]*s,t[2]=r[2]*i+r[6]*a+r[10]*n+r[14]*s,t[3]=r[3]*i+r[7]*a+r[11]*n+r[15]*s,t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){let r=t[0],a=t[1],n=t[2],s=t[3],o=e[0],l=e[1],u=e[2],h=e[3],c=(0,i.FD)();return Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}const I=o,E=l,P=u,D=f,L=m,A=g,k=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:a,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:D,distance:f,div:P,divide:u,dot:_,equals:T,exactEquals:w,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:A,length:g,lerp:v,max:c,min:h,mul:E,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:b,random:function(t,e=1){let r,a,n,s,o,l,u=i.Ov;do{r=2*u()-1,a=2*u()-1,o=r*r+a*a}while(o>=1);do{n=2*u()-1,s=2*u()-1,l=n*n+s*s}while(l>=1);let h=Math.sqrt((1-o)/l);return t[0]=e*r,t[1]=e*a,t[2]=e*n*h,t[3]=e*s*h,t},round:p,scale:y,scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t[2]=e[2]+r[2]*i,t[3]=e[3]+r[3]*i,t},set:n,sqrDist:L,sqrLen:k,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:o,transformMat4:x,transformQuat:function(t,e,r){let i=e[0],a=e[1],n=e[2],s=r[0],o=r[1],l=r[2],u=r[3],h=u*i+o*n-l*a,c=u*a+l*i-s*n,p=u*n+s*a-o*i,y=-s*i-o*a-l*n;return t[0]=h*u+y*-s+c*-l-p*-o,t[1]=c*u+y*-o+p*-s-h*-l,t[2]=p*u+y*-l+h*-o-c*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>a});var i=r(34275);function a(t){if(!t)return 0;let e=u;for(let r in t)t.hasOwnProperty(r)&&(e+=s(t[r],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=h;for(let i=0;i<e;i++)r+=s(t[i]);return r}(t);let e=u;for(let r in t)t.hasOwnProperty(r)&&(e+=s(t[r]));return e}function s(t,e=!0){switch(typeof t){case"object":return e?n(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return h+t.length*e}const u=32,h=16,c=145},4264(t,e,r){r.d(e,{lf:()=>St,L:()=>Rt,A4:()=>Mt,aR:()=>zt,tU:()=>Ot,V1:()=>Nt,uU:()=>Ut});var i=r(19419),a=r(12176),n=r(13195),s=r(89518),o=r(68572),l=r(63907),u=r(85079),h=r(74038);class c{constructor(t){this._precisionFactors={},this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(t,e,r,i){let a=this.propertyInfos,n=this.getEncodingInfos(),s=[],o=Math.ceil(this._ddStrideInBytes/4);for(let t=0;t<o;t++)s.push(0);for(let o of Object.keys(n)){let l=n[o],{type:u,precisionFactor:h,isLayout:c}=a[o],p=c?r.getLayoutProperty(o):r.getPaintProperty(o),y=p.interpolator?.getInterpolationRange(e),f=0;for(let r of l){let{offset:a}=r,n=Math.floor(a/4),o=a%4*8,l=null==i||11!==u&&12!==u?p.getValue(y?y[f]:e,t):i,c=h||1;switch(u){case 0:case 1:s[n]|=this._encodeByte(l*c,0)<<o;break;case 2:case 3:s[n]|=this._encodeShort(l*c,0)<<o;break;case 4:case 5:{let t=this._encodeByte(l*c,0),e=this._encodeByte(l*c,8);s[n]|=t<<o,s[n]|=e<<o}break;case 6:case 7:s[n]|=this._encodeShort(l*c,0),s[n]|=this._encodeShort(l*c,16);break;case 8:case 9:s[n]|=this._encodeByte(l*c,0),s[n]|=this._encodeByte(l*c,8),s[n]|=this._encodeByte(l*c,16),s[n]|=this._encodeByte(l*c,24);break;case 10:s[n]=this._encodeColor(l);break;case 11:case 12:this._encodePattern(n,s,l);break;default:throw Error("Unsupported encoding type")}f++}}return s}getAtributeState(t){let e=0,r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}static{this._encodingInfo={0:{dataType:l.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:l.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:l.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:l.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:l.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(t,e,r){let i=r[t],a=i.name,{count:n,dataType:s,normalized:o}=c._encodingInfo[i.type],{attribueIdx:l,precisionFactor:u}=i,h=u||1,p=[{location:l[0],name:a,propertyName:t,count:n,type:s,normalized:o,precisionFactor:h}];if(this._precisionFactors[a]=h,2===e){let e=`${a}To`;p.push({location:l[1],name:e,propertyName:t,count:n,type:s,normalized:o,precisionFactor:h}),this._precisionFactors[e]=h}return p}_buildMaterialInfo(){let t=[];this._propertyEncodingInfo={};let e={},r=this.properties,i=this.propertyInfos,a=-1;for(let n of r){a++;let r=i[n].name;e[r]=!1,e[`${r}To`]=!1;let s=this.getAtributeState(a);if(0===s||3===s)continue;let o=this._getLayoutElementsForPropertyState(n,s,i);t.push(...o)}for(let r of t)e[r.name]=!0;let n=function(t){let e=(0,o.H)(t),r=[],i=0;for(let t of e)r.push({...t,offset:i}),i+=p(t.type)*t.count;return r}(t);this._buildLayout(n),this._buildShaderUniforms(),this._usedAttributes=e}_buildLayout(t){this._locations=this.opacityLayout?(0,u._u)([this.baseGeometryLayout,this.opacityLayout]):(0,u.Xk)(this.baseGeometryLayout);let e=this.baseGeometryLayout,r=e[0].stride,i=[],a=0;for(let e of t)a+=p(e.type)*e.count;r=y(r+a);for(let t of e)i.push(new h._(t.name,t.count,t.type,t.offset,r,t.normalized));let n=0;for(let a of t)i.push(new h._(a.name,a.count,a.type,e[0].stride+n,r,a.normalized)),void 0===this._propertyEncodingInfo[a.propertyName]&&(this._propertyEncodingInfo[a.propertyName]=[]),this._propertyEncodingInfo[a.propertyName].push({offset:n}),n+=p(a.type)*a.count;this._ddStrideInBytes=n,this._geometryLayout=i;let s=this._locations;for(let e of t)s.set(e.name,e.location);this._stride=r}_buildShaderUniforms(){let t=[],e=this.properties,r=this.propertyInfos,i=-1;for(let a of e){i++;let{name:e,type:n,isLayout:s}=r[a];switch(this.getAtributeState(i)){case 0:t.push({name:e,getValue:(t,e,r,i)=>{let o=s?t.getLayoutValue(a,e):t.getPaintValue(a,e);switch(n){case 11:{let r=t.getDashKey(o,t.getLayoutValue("line-cap",e)),a=i.getMosaicItemPosition(r,!1);if(null==a)return null;let{tl:n,br:s}=a;return[n[0],s[1],s[0],n[1]]}case 12:{let t=i.getMosaicItemPosition(o,!a.includes("line-"));if(null==t)return null;let{tl:e,br:r}=t;return[e[0],r[1],r[0],e[1]]}case 10:{let t=o[3];return[t*o[0],t*o[1],t*o[2],t]}default:return o}}});break;case 2:{let r=`${e}Mix`;t.push({name:r,getValue:(t,e,r,i)=>(s?t.getLayoutProperty(a):t.getPaintProperty(a)).interpolator.interpolationUniformValue(r,e)})}}}this._uniforms=t}_bit(t){return(this._key&1<<t)>>t}_encodeColor(t){let e=255*t[3];return(0,s.Ss)(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r?.rect)return;let i=r.rect,a=r.width,n=r.height;e[t]=this._encodeShort(i.x+2,0),e[t]|=this._encodeShort(i.y+2+n,16),e[t+1]=this._encodeShort(i.x+2+a,0),e[t+1]|=this._encodeShort(i.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const p=t=>{switch(t){case l.pe.FLOAT:case l.pe.INT:case l.pe.UNSIGNED_INT:return 4;case l.pe.SHORT:case l.pe.UNSIGNED_SHORT:case l.pe.HALF_FLOAT:return 2;case l.pe.BYTE:case l.pe.UNSIGNED_BYTE:return 1}},y=t=>t+3&-4;class f extends c{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.properties=f.ATTRIBUTES,this.propertyInfos=f.ATTRIBUTES_INFO}}class m extends c{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1,attribueIdx:[1,8]},"circle-color":{name:"color",type:10,attribueIdx:[2,9]},"circle-opacity":{name:"opacity",type:1,attribueIdx:[3,10],precisionFactor:100},"circle-stroke-width":{name:"strokeWidth",type:1,attribueIdx:[4,11],precisionFactor:4},"circle-stroke-color":{name:"strokeColor",type:10,attribueIdx:[5,12]},"circle-stroke-opacity":{name:"strokeOpacity",type:1,attribueIdx:[6,13],precisionFactor:100},"circle-blur":{name:"blur",type:1,attribueIdx:[7,14],precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.properties=m.ATTRIBUTES,this.propertyInfos=m.ATTRIBUTES_INFO}}class g extends c{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10,attribueIdx:[1,4]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[2,5]},"fill-pattern":{name:"tlbr",type:12,isOptional:!0,attribueIdx:[3,3]}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.properties=g.ATTRIBUTES,this.propertyInfos=g.ATTRIBUTES_INFO}}class d extends c{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,8),new h._("offset",2,l.pe.BYTE,4,8),new h._("normal",2,l.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}constructor(t,e){super(t),this.baseGeometryLayout=d.GEOMETRY_LAYOUT,this.properties=e?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.propertyInfos=e?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE}}class b extends c{static{this.ATTRIBUTES=["line-color","line-width","line-opacity","line-blur","line-offset","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,16),new h._("extrudeOffset",4,l.pe.BYTE,4,16),new h._("directionNormal",4,l.pe.BYTE,8,16),new h._("accumulatedDistance",2,l.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-color":{name:"color",type:10,attribueIdx:[4,10]},"line-width":{name:"width",type:1,attribueIdx:[5,11],precisionFactor:2},"line-opacity":{name:"opacity",type:1,attribueIdx:[6,12],precisionFactor:100},"line-blur":{name:"blur",type:1,attribueIdx:[7,13],precisionFactor:4},"line-offset":{name:"offset",type:0,attribueIdx:[8,14],precisionFactor:2},"line-pattern":{name:"tlbr",type:12,attribueIdx:[9,9],isOptional:!0},"line-dasharray":{name:"tlbr",type:11,attribueIdx:[9,9],isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=b.GEOMETRY_LAYOUT,this.properties=b.ATTRIBUTES,this.propertyInfos=b.ATTRIBUTES_INFO}}const _=[new h._("positionAndOffset",4,l.pe.SHORT,0,16),new h._("iconInfo",4,l.pe.UNSIGNED_SHORT,8,16)],v=[new h._("opacityInfo",1,l.pe.UNSIGNED_BYTE,0,1)];class x extends c{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10,attribueIdx:[2,8]},"icon-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"icon-halo-color":{name:"haloColor",type:10,attribueIdx:[4,10]},"icon-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[5,11]},"icon-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[6,12]},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0,attribueIdx:[7,13]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=v,this.properties=x.ATTRIBUTES,this.propertyInfos=x.ATTRIBUTES_INFO}}class w extends c{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10,attribueIdx:[4,10]},"text-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"text-halo-color":{name:"haloColor",type:10,attribueIdx:[5,11]},"text-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[6,12]},"text-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[7,13]},"text-size":{name:"size",type:1,isLayout:!0,attribueIdx:[2,8]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=v,this.properties=w.ATTRIBUTES,this.propertyInfos=w.ATTRIBUTES_INFO}}var T=r(68197),I=r(85334);function E(t,e,r,i){let a=3*t,n=3*(r-t)-a,s=1-a-n,o=3*e,l=3*(i-e)-o,u=1-o-l;function h(t){return((s*t+n)*t+a)*t}function c(t){return(3*s*t+2*n)*t+a}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let r,i,a,n,s,o;for(a=t,o=0;o<8;o++){if(n=h(a)-t,Math.abs(n)<e)return a;if(s=c(a),Math.abs(s)<1e-6)break;a-=n/s}if(r=0,i=1,a=t,a<r)return r;if(a>i)return i;for(;r<i;){if(n=h(a),Math.abs(n-t)<e)return a;t>n?r=a:i=a,a=.5*(i-r)+r}return a}(t,e))}}const P={ease:E(.25,.1,.25,1),linear:E(0,0,1,1),easeIn:E(.42,0,1,1),easeOut:E(0,0,.58,1),easeInOut:E(.42,0,.58,1)};P["ease-in"]=P.easeIn,P["ease-out"]=P.easeOut,P["ease-in-out"]=P.easeInOut;const D={kind:"null"},L={kind:"number"},A={kind:"string"},k={kind:"boolean"},S={kind:"color"},M={kind:"object"},O={kind:"value"};function N(t,e){return{kind:"array",itemType:t,n:e}}const R=[D,L,A,k,S,M,N(O)];function z(t){if("array"===t.kind){let e=z(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return D;if("string"==typeof t)return A;if("boolean"==typeof t)return k;if("number"==typeof t)return L;if(t instanceof T.A)return S;if(Array.isArray(t)){let e;for(let r of t){let t=U(r);if(e){if(e!==t){e=O;break}}else e=t}return N(e||O,t.length)}return"object"==typeof t?M:O}function B(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||B(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(let e of R)if(B(t,e))return!0;return e.kind===t.kind}function V(t){if(null===t)return"";let e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof T.A?t.toString():JSON.stringify(t)}class F{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}function G(t){if(!Array.isArray(t)||0===t.length)return!1;let e=t[0];if("literal"===e)return!1;if("accumulated"===e||"feature-state"===e||"geometry-type"===e||"id"===e||"line-progress"===e||"properties"===e||"has-id"===e||("get"===e||"has"===e)&&2===t.length)return!0;for(let e=1;e<t.length;e++)if(G(t[e]))return!0;return!1}class ${constructor(){this.type=O}static parse(t){if(t.length>1)throw Error('"id" does not expect arguments');return new $}evaluate(t,e){return t?.id}}class C{constructor(){this.type=A}static parse(t){if(t.length>1)throw Error('"geometry-type" does not expect arguments');return new C}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class Y{constructor(){this.type=M}static parse(t){if(t.length>1)throw Error('"properties" does not expect arguments');return new Y}evaluate(t,e){return t?.values}}class q{constructor(){this.type=L}static parse(t){if(t.length>1)throw Error('"zoom" does not expect arguments');return new q}evaluate(t,e){return e}}class j{constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=k}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw Error(`"${t[0]}" collator not supported`);return new j(It(t[1],e),It(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class H{constructor(t){this._arg=t,this.type=k}static parse(t,e){if(2!==t.length)throw Error('"!" expects 1 argument');return new H(It(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class W{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new W(r)}evaluate(t,e){for(let r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class Z{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new Z(r)}evaluate(t,e){for(let r of this._args)if(r.evaluate(t,e))return!0;return!1}}class K{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new K(r)}evaluate(t,e){for(let r of this._args)if(r.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,r){this.type=t,this._args=e,this._fallback=r}static parse(t,e,r){if(t.length<4)throw Error('"case" expects at least 3 arguments');if(t.length%2==1)throw Error('"case" expects an odd number of arguments');let i,a=[];for(let n=1;n<t.length-1;n+=2){let s=It(t[n],e),o=It(t[n+1],e,r);i||=o.type,a.push({condition:s,output:o})}let n=It(t[t.length-1],e,r);return i||=n.type,new X(i,a,n)}evaluate(t,e){for(let r of this._args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class Q{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw Error('"coalesce" expects at least 1 argument');let r,i=[];for(let a=1;a<t.length;a++){let n=It(t[a],e);r||=n.type,i.push(n)}return new Q(r,i)}evaluate(t,e){for(let r of this._args){let i=r.evaluate(t,e);if(null!==i)return i}return null}}class J{constructor(t,e,r,i,a){this.type=t,this._input=e,this._labels=r,this._outputs=i,this._fallback=a}static parse(t,e){if(t.length<3)throw Error('"match" expects at least 3 arguments');if(t.length%2==0)throw Error('"case" expects an even number of arguments');let r,i,a=It(t[1],e),n=[],s={};for(let a=2;a<t.length-1;a+=2){let o=t[a];Array.isArray(o)||(o=[o]);for(let t of o){let e=typeof t;if("string"!==e&&"number"!==e)throw Error('"match" requires string or number literal as labels');if(i){if(e!==i)throw Error('"match" requires labels to have the same type')}else i=e;s[t]=n.length}let l=It(t[a+1],e);r||=l.type,n.push(l)}return new J(r,a,s,n,It(t[t.length-1],e))}evaluate(t,e){let r=this._input.evaluate(t,e);return(this._outputs[this._labels[r]]||this._fallback).evaluate(t,e)}}class tt{constructor(t,e,r,i,a){this._operator=t,this.type=e,this.interpolation=r,this.input=i,this._stops=a}static parse(t,e,r){let i=t[0];if(t.length<5)throw Error(`"${i}" expects at least 4 arguments`);let a=t[1];if(!Array.isArray(a)||0===a.length)throw Error(`"${a}" is not a valid interpolation`);switch(a[0]){case"linear":if(1!==a.length)throw Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==a.length||"number"!=typeof a[1])throw Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==a.length)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){let e=a[t];if("number"!=typeof e||e<0||e>1)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw Error(`"${t[0]}" unknown interpolation type "${a[0]}"`)}if(t.length%2!=1)throw Error(`"${i}" expects an even number of arguments`);let n,s=It(t[2],e,L);"interpolate-hcl"===i||"interpolate-lab"===i?n=S:r&&"value"!==r.kind&&(n=r);let o=[];for(let r=3;r<t.length;r+=2){let a=t[r];if("number"!=typeof a)throw Error(`"${i}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=a)throw Error(`"${i}" requires strictly ascending stop inputs`);let s=It(t[r+1],e,n);n||=s.type,o.push([a,s])}if(n&&n!==S&&n!==L&&("array"!==n.kind||n.itemType!==L))throw Error(`"${i}" cannot interpolate type ${z(n)}`);return new tt(i,n,a,s,o)}evaluate(t,e){let r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);let i=this.input.evaluate(t,e);if(i<=r[0][0])return r[0][1].evaluate(t,e);if(i>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(i<r[a][0]););let s=r[a-1][0],o=r[a][0],l=tt.interpolationRatio(this.interpolation,i,s,o),u=r[a-1][1].evaluate(t,e),h=r[a][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,n.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof T.A&&h instanceof T.A){let t=new T.A(u),e=new T.A(h);return new T.A([(0,n.GW)(t.r,e.r,l),(0,n.GW)(t.g,e.g,l),(0,n.GW)(t.b,e.b,l),(0,n.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,n.GW)(u,h,l);throw Error(`"${this._operator}" cannot interpolate type ${z(this.type)}`)}if("interpolate-hcl"===this._operator){let t=(0,I.RH)(u),e=(0,I.RH)(h),r=e.h-t.h,i=(0,I.$)({h:t.h+l*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,n.GW)(t.c,e.c,l),l:(0,n.GW)(t.l,e.l,l)});return new T.A({a:(0,n.GW)(u.a,h.a,l),...i})}if("interpolate-lab"===this._operator){let t=(0,I.ZD)(u),e=(0,I.ZD)(h),r=(0,I.$)({l:(0,n.GW)(t.l,e.l,l),a:(0,n.GW)(t.a,e.a,l),b:(0,n.GW)(t.b,e.b,l)});return new T.A({a:(0,n.GW)(u.a,h.a,l),...r})}throw Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){let r=this._stops;if(1===r.length||t>=r[r.length-1][0])return 0;let i=0;for(;++i<r.length&&!(t<r[i][0]););let a=r[i-1][0],n=r[i][0];return tt.interpolationRatio(this.interpolation,e,a,n)}getInterpolationRange(t){let e=this._stops;if(1===e.length){let t=e[0][0];return[t,t]}let r=e[e.length-1][0];if(t>=r)return[r,r];let i=0;for(;++i<e.length&&!(t<e[i][0]););return[e[i-1][0],e[i][0]]}static interpolationRatio(t,e,r,i){let a=0;return"linear"===t[0]?a=tt._exponentialInterpolationRatio(e,1,r,i):"exponential"===t[0]?a=tt._exponentialInterpolationRatio(e,t[1],r,i):"cubic-bezier"===t[0]&&(a=E(t[1],t[2],t[3],t[4])(tt._exponentialInterpolationRatio(e,1,r,i),1e-5)),a<0?a=0:a>1&&(a=1),a}static _exponentialInterpolationRatio(t,e,r,i){let a=i-r;if(0===a)return 0;let n=t-r;return 1===e?n/a:(e**n-1)/(e**a-1)}}class et{constructor(t,e,r){this.type=t,this._input=e,this._stops=r}static parse(t,e){if(t.length<5)throw Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw Error('"step" expects an even number of arguments');let r,i=It(t[1],e,L),a=[];a.push([-1/0,It(t[2],e)]);for(let i=3;i<t.length;i+=2){let n=t[i];if("number"!=typeof n)throw Error('"step" requires stop inputs as literal numbers');if(a.length&&a[a.length-1][0]>=n)throw Error('"step" requires strictly ascending stop inputs');let s=It(t[i+1],e);r||=s.type,a.push([n,s])}return new et(r,i,a)}evaluate(t,e){let r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);let i=this._input.evaluate(t,e),a=0;for(;++a<r.length&&!(i<r[a][0]););return this._stops[a-1][1].evaluate(t,e)}}class rt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,r){if(t.length<4)throw Error('"let" expects at least 3 arguments');if(t.length%2==1)throw Error('"let" expects an odd number of arguments');let i=new F(e);for(let r=1;r<t.length-1;r+=2){let a=t[r];if("string"!=typeof a)throw Error(`"let" requires a string to define variable names - found ${a}`);i.add(a,It(t[r+1],e))}let a=It(t[t.length-1],i,r);return new rt(a.type,a)}evaluate(t,e){return this._output.evaluate(t,e)}}class it{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(2!==t.length||"string"!=typeof t[1])throw Error('"var" requires just one literal string argument');let i=e.get(t[1]);if(!i)throw Error(`${t[1]} must be defined before being used in a "var" expression`);return new it(r||O,i)}evaluate(t,e){return this.output.evaluate(t,e)}}class at{constructor(t,e,r){this.type=t,this._index=e,this._array=r}static parse(t,e){if(3!==t.length)throw Error('"at" expects 2 arguments');let r=It(t[1],e,L),i=It(t[2],e);return new at(i.type.itemType,r,i)}evaluate(t,e){let r=this._index.evaluate(t,e),i=this._array.evaluate(t,e);if(r<0||r>=i.length)throw Error('"at" index out of bounds');if(r!==Math.floor(r))throw Error('"at" index must be an integer');return i[r]}}class nt{constructor(t){this._args=t,this.type=O}static parse(t,e){let r=t.slice(1).map(t=>Array.isArray(t)?It(t,e):t);return new nt(r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r&&r.evaluate?r.evaluate(t,e):r)),!r||r.length<2&&r.length%2==1?"":(t=>Array.from({length:t.length/2},(e,r)=>(t=>t)(t[2*r],t[2*r+1])))(r).join()}}class st{constructor(t,e){this._key=t,this._obj=e,this.type=O}static parse(t,e){let r,i;switch(t.length){case 2:return r=It(t[1],e),new st(r);case 3:return r=It(t[1],e),i=It(t[2],e),new st(r,i);default:throw Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){let r=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[r]:t?.values[r]}}class ot{constructor(t,e){this._key=t,this._obj=e,this.type=k}static parse(t,e){let r,i;switch(t.length){case 2:return r=It(t[1],e),new ot(r);case 3:return r=It(t[1],e),i=It(t[2],e),new ot(r,i);default:throw Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){let r=this._key.evaluate(t,e);return this._obj?r in this._obj.evaluate(t,e):!!t?.values[r]}}class lt{constructor(t,e){this._key=t,this._vals=e,this.type=k}static parse(t,e){if(3!==t.length)throw Error('"in" expects 2 arguments');return new lt(It(t[1],e),It(t[2],e))}evaluate(t,e){let r=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(r)}}class ut{constructor(t,e,r){this._item=t,this._array=e,this._from=r,this.type=L}static parse(t,e){if(t.length<3||t.length>4)throw Error('"index-of" expects 3 or 4 arguments');let r=It(t[1],e),i=It(t[2],e);if(4===t.length){let a=It(t[3],e,L);return new ut(r,i,a)}return new ut(r,i)}evaluate(t,e){let r=this._item.evaluate(t,e),i=this._array.evaluate(t,e);if(this._from){let a=this._from.evaluate(t,e);if(a!==Math.floor(a))throw Error('"index-of" index must be an integer');return i.indexOf(r,a)}return i.indexOf(r)}}class ht{constructor(t){this._arg=t,this.type=L}static parse(t,e){if(2!==t.length)throw Error('"length" expects 2 arguments');let r=It(t[1],e);return new ht(r)}evaluate(t,e){let r=this._arg.evaluate(t,e);if("string"==typeof r||Array.isArray(r))return r.length;throw Error('"length" expects string or array')}}class ct{constructor(t,e,r,i){this.type=t,this._array=e,this._from=r,this._to=i}static parse(t,e){if(t.length<3||t.length>4)throw Error('"slice" expects 2 or 3 arguments');let r=It(t[1],e),i=It(t[2],e,L);if(i.type!==L)throw Error('"slice" index must return a number');if(4===t.length){let a=It(t[3],e,L);if(a.type!==L)throw Error('"slice" index must return a number');return new ct(r.type,r,i,a)}return new ct(r.type,r,i)}evaluate(t,e){let r=this._array.evaluate(t,e);if(!Array.isArray(r)&&"string"!=typeof r)throw Error('"slice" input must be an array or a string');let i=this._from.evaluate(t,e);if(i<0||i>=r.length)throw Error('"slice" index out of bounds');if(i!==Math.floor(i))throw Error('"slice" index must be an integer');if(this._to){let a=this._to.evaluate(t,e);if(a<0||a>=r.length)throw Error('"slice" index out of bounds');if(a!==Math.floor(a))throw Error('"slice" index must be an integer');return r.slice(i,a)}return r.slice(i)}}class pt{constructor(){this.type=k}static parse(t){if(1!==t.length)throw Error('"has-id" expects no arguments');return new pt}evaluate(t,e){return void 0!==t?.id}}class yt{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static parse(t,e,r){let i=t.slice(1).map(t=>It(t,e));return new yt(i,r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class ft{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){let r=t.slice(1).map(t=>It(t,e));return new ft(r,ft.ops[t[0]])}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class mt{constructor(t){this._args=t,this.type=A}static parse(t,e){return new mt(t.slice(1).map(t=>It(t,e)))}evaluate(t,e){return this._args.map(r=>r.evaluate(t,e)).join("")}}class gt{constructor(t,e){this._arg=t,this._calculate=e,this.type=A}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw Error(`${t[0]} expects 1 argument`);let r=It(t[1],e);return new gt(r,gt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class dt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw Error('"rgb" expects 3 arguments');let r=t.slice(1).map(t=>It(t,e));return new dt(r)}evaluate(t,e){let r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e));return new T.A({r,g:i,b:a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw Error(`${t}: invalid color component`);return Math.round(t)}}class bt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw Error('"rgba" expects 4 arguments');let r=t.slice(1).map(t=>It(t,e));return new bt(r)}evaluate(t,e){let r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e)),n=this._validateAlpha(this._args[3].evaluate(t,e));return new T.A({r,g:i,b:a,a:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw Error(`${t}: invalid alpha color component`);return t}}class _t{constructor(t){this._color=t,this.type=N(L,4)}static parse(t,e){if(2!==t.length)throw Error('"to-rgba" expects 1 argument');let r=It(t[1],e);return new _t(r)}evaluate(t,e){return new T.A(this._color.evaluate(t,e)).toRgba()}}class vt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){let r=t[0];if(t.length<2)throw Error(`${r} expects at least one argument`);let i,a=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;default:throw Error('"array" type argument must be string, number or boolean')}a++}else i=O;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw Error('"array" length argument must be a positive integer literal');a++}i=N(i,e)}else switch(r){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;case"object":i=M}let n=[];for(;a<t.length;a++){let r=It(t[a],e);n.push(r)}return new vt(i,n)}evaluate(t,e){let r;for(let i of this._args){let a=i.evaluate(t,e);if(r=U(a),B(r,this.type))return a}throw Error(`Expected ${z(this.type)} but got ${z(r)}`)}}class xt{static{this.types={"to-boolean":k,"to-color":S,"to-number":L,"to-string":A}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){let r=t[0],i=xt.types[r];if(i===k||i===A){if(2!==t.length)throw Error(`${r} expects one argument`)}else if(t.length<2)throw Error(`${r} expects at least one argument`);let a=[];for(let r=1;r<t.length;r++){let i=It(t[r],e);a.push(i)}return new xt(i,a)}evaluate(t,e){if(this.type===k)return!!this._args[0].evaluate(t,e);if(this.type===A)return V(this._args[0].evaluate(t,e));if(this.type===L){for(let r of this._args){let i=Number(r.evaluate(t,e));if(!isNaN(i))return i}return null}if(this.type===S){for(let r of this._args)try{let i=xt.toColor(r.evaluate(t,e));if(i instanceof T.A)return i}catch{}return null}}static toBoolean(t){return!!t}static toString(t){return V(t)}static toNumber(t){let e=Number(t);if(isNaN(e))throw Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof T.A)return t;if("string"==typeof t){let e=T.A.fromString(t);if(e)return e;throw Error(`"${t}" is not a color`)}if(Array.isArray(t))return T.A.fromArray(t);throw Error(`"${t}" is not a color`)}}class wt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw Error('"literal" expects 1 argument');return new wt(t[1])}evaluate(t,e){return this._val}}class Tt{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw Error('"typeof" expects 1 argument');return new Tt(It(t[1],e))}evaluate(t,e){return z(U(this._arg.evaluate(t,e)))}}function It(t,e,r){let i=typeof t;if("string"===i||"boolean"===i||"number"===i||null===t){if(r)switch(r.kind){case"string":"string"!==i&&(t=xt.toString(t));break;case"number":"number"!==i&&(t=xt.toNumber(t));break;case"color":t=xt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw Error("Expression must be a non empty array");let a=t[0];if("string"!=typeof a)throw Error("First element of expression must be a string");let n=Et[a];if(void 0===n)throw Error(`Invalid expression operator "${a}"`);if(!n)throw Error(`Unimplemented expression operator "${a}"`);return n.parse(t,e,r)}const Et={array:vt,boolean:vt,collator:null,format:nt,image:null,literal:wt,number:vt,"number-format":null,object:vt,string:vt,"to-boolean":xt,"to-color":xt,"to-number":xt,"to-string":xt,typeof:Tt,accumulated:null,"feature-state":null,"geometry-type":C,id:$,"line-progress":null,properties:Y,at,get:st,has:ot,in:lt,"index-of":ut,length:ht,slice:ct,"!":H,"!=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t!==e)}},"<":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t<e)}},"<=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t<=e)}},"==":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t===e)}},">":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t>e)}},">=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t>=e)}},all:W,any:Z,case:X,coalesce:Q,match:J,within:null,interpolate:tt,"interpolate-hcl":tt,"interpolate-lab":tt,step:et,let:rt,var:it,concat:mt,downcase:gt,"is-supported-script":null,"resolved-locale":null,upcase:gt,rgb:dt,rgba:bt,"to-rgba":_t,"-":class extends yt{static parse(t,e){switch(t.length){case 2:return yt.parse(t,e,t=>-t[0]);case 3:return yt.parse(t,e,t=>t[0]-t[1]);default:throw Error('"-" expects 1 or 2 arguments')}}},"*":class extends yt{static parse(t,e){return yt.parse(t,e,t=>{let e=1;for(let r of t)e*=r;return e})}},"/":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]/t[1]);throw Error('"/" expects 2 arguments')}},"%":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]%t[1]);throw Error('"%" expects 2 arguments')}},"^":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]**t[1]);throw Error('"^" expects 1 or 2 arguments')}},"+":class extends yt{static parse(t,e){return yt.parse(t,e,t=>{let e=0;for(let r of t)e+=r;return e})}},abs:ft,acos:ft,asin:ft,atan:ft,ceil:ft,cos:ft,e:ft,floor:ft,ln:ft,ln2:ft,log10:ft,log2:ft,max:ft,min:ft,pi:ft,round:ft,sin:ft,sqrt:ft,tan:ft,zoom:q,"heatmap-density":null,"has-id":pt,none:K};class Pt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{let e=It(t,null,k);return new Pt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;let e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Pt.convertComparison("==",t[1],t[2]);case"!=":return Pt.negate(Pt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Pt.convertComparison(e,t[1],t[2]);case"in":return Pt.convertIn(t[1],t.slice(2));case"!in":return Pt.negate(Pt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Pt.convertCombining(e,t.slice(1));case"has":return Pt.convertHas(t[1]);case"!has":return Pt.negate(Pt.convertHas(t[1]));default:throw Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Dt{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var Lt=r(40876);class At{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r="number"===t.value;break;default:r=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&Et[e[0]]){let r={number:L,color:S,string:A,boolean:k,enum:A};try{let i=It(e,null,"array"===t.type?N(r[t.value]||O,t.length):r[t.type]);this.getValue=this._buildExpression(i,t),this.isDataDriven=G(e),this.isDataDriven&&i instanceof tt&&i.input instanceof q&&(this.interpolator=i)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);let i=e?.stops&&e.stops.length>0;if(i)for(let r of e.stops)r[1]=this._validate(r[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),i)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else i?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=At._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=V(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,i)=>{try{let a=t.evaluate(i,r);return void 0===a?e.default:this._validate(a,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),void 0!==a&&(a=this._validate(a,e)),a??(void 0===t.default?e.default:t.default)}}_buildCategorical(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),a=this._categorical(a,t.stops),void 0===a?void 0===t.default?e.default:t.default:a}}_buildInterval(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interval(a,t.stops):void 0===t.default?e.default:t.default}}_buildInterpolate(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interpolate(a,t.stops,t.base||1):void 0===t.default?e.default:t.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){let r=e.length;for(let i=0;i<r;i++)if(e[i][0]===t)return e[i][1]}_interval(t,e){let r=e.length,i=0;for(let a=0;a<r&&e[a][0]<=t;a++)i=a;return e[i][1]}_interpolate(t,e,r){let i,a,s=e.length;for(let r=0;r<s;r++){let n=e[r];if(!(n[0]<=t)){a=n;break}i=n}if(i&&a){let e=a[0]-i[0],s=t-i[0],o=1===r?s/e:(r**s-1)/(r**e-1);if(Array.isArray(i[1])){let t=i[1],e=a[1],r=[];for(let i=0;i<t.length;i++)r.push((0,n.GW)(t[i],e[i],o));return r}return(0,n.GW)(i[1],a[1],o)}return i?i[1]:a?a[1]:void 0}static _isEmpty(t){for(let e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,Lt.Vm)(t)??void 0:t instanceof T.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}class kt{constructor(t,e,r,i,a=null){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"]??e.source,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=i,this.sourceType=a,t){case 0:this._layoutDefinition=Dt.backgroundLayoutDefinition,this._paintDefinition=Dt.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Dt.fillLayoutDefinition,this._paintDefinition=Dt.fillPaintDefinition;break;case 2:this._layoutDefinition=Dt.lineLayoutDefinition,this._paintDefinition=Dt.linePaintDefinition;break;case 3:this._layoutDefinition=Dt.symbolLayoutDefinition,this._paintDefinition=Dt.symbolPaintDefinition;break;case 4:this._layoutDefinition=Dt.circleLayoutDefinition,this._paintDefinition=Dt.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0===this._featureFilter?this._featureFilter=Pt.createFilter(this.filter):this._featureFilter}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let i,a=this._layoutProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._layoutDefinition[t].default),i}getPaintValue(t,e,r){let i,a=this._paintProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._paintDefinition[t].default),i}isPainterDataDriven(){let t=this._paintProperties;if(t)for(let e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,r,i,a,n,s,o){return!1}getFeatureInflatedBounds(t,e,r,i){return null}_parseLayout(t){let e={};for(let r in t){let i=this._layoutDefinition[r];i&&(e[r]=new At(i,t[r]))}return e}_parsePaint(t){let e={};for(let r in t){let i=this._paintDefinition[r];i&&(e[r]=new At(i,t[r]))}return e}computeAttributesKey(t,e,r,i){let a=0,n=0;for(let t of e){let e=3;if(t&&t!==i){let{isLayout:i,isOptional:a}=r[t],n=i?this.getLayoutProperty(t):this.getPaintProperty(t);e=n?.interpolator?2:n?.isDataDriven?1:a&&!n?3:0}n|=e<<a,a+=2}return n<<3|t}}class St extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.backgroundMaterial=new f(this.computeAttributesKey(0,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}}class Mt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a);let n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),o=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||o?.isDataDriven;let l=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!l,this.hasDataDrivenOutlineColor=l?.isDataDriven,this.hasDataDrivenOutline=l?l.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(l?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new g(this.computeAttributesKey(1,g.ATTRIBUTES,g.ATTRIBUTES_INFO)),this.outlineMaterial=new d(this.computeAttributesKey(2,this.outlineUsesFillColor?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("fill-translate",e,t),s=i*Math.max(n[0],n[1]);return a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=[...h.map(t=>t.map(t=>[t.x,t.y]))],p=8/l.normalizationRatio,y=p/o,f=(0,n.yM)(this.getPaintValue("fill-translate",i,r),this.getPaintValue("fill-translate-anchor",i,r),s,y);if("point"===u){let[r,i]=t[0];return r=r/l.normalizationRatio+l.normalizationOffsetX,i=i/l.normalizationRatio+l.normalizationOffsetY,r-=p*f.x,i-=p*f.y,!!(0,a.s3)([r,i],c)||(0,a.VK)([r,i],c,e)}let m=[];for(let e of t){let[t,r]=e;t=t/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,t-=p*f.x,r-=p*f.y,m.push([t,r])}return(0,a.M5)(m,c)}}class Ot extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a);let n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new b(this.computeAttributesKey(3,b.ATTRIBUTES,b.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){let t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<1.05){let t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){case 0:default:r="Butt";break;case 1:r="Round";break;case 2:r="Square"}return`dasharray-[${t.toString()}]-${r}`}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("line-translate",e,t),s=i*Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;let o=i*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=this.getPaintValue("line-width",e,t)/2*i;return a[0]-=o+l,a[1]-=o+l,a[2]+=o+l,a[3]+=o+l,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=8/l.normalizationRatio,p=c/o,y=(0,n.yM)(this.getPaintValue("line-translate",i,r),this.getPaintValue("line-translate-anchor",i,r),s,p);if("point"===u){let[n,s]=t[0];n=n/l.normalizationRatio+l.normalizationOffsetX,s=s/l.normalizationRatio+l.normalizationOffsetY,n-=c*y.x,s-=c*y.y;let o=this.getPaintValue("line-width",i,r)/2*p+e,u=[...h.map(t=>t.map(t=>[t.x,t.y]))];return(0,a.VK)([n,s],u,o)}let f=[];for(let e of t){let[t,r]=e;t=t/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,t-=c*y.x,r-=c*y.y,f.push([t,r])}let m=p*this.getPaintValue("line-offset",i,r)||0;0!==m&&(h=(0,n.cP)(h,-m));let g=[...h.map(t=>t.map(t=>[t.x,t.y]))];return(0,a.M5)(f,g)}}class Nt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.iconMaterial=new x(this.computeAttributesKey(4,x.ATTRIBUTES,x.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Rt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.circleMaterial=new m(this.computeAttributesKey(5,m.ATTRIBUTES,m.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("circle-translate",e,t),s=Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;let o=8*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2*i;return a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=8/l.normalizationRatio/o,p=(0,n.yM)(this.getPaintValue("circle-translate",i,r),this.getPaintValue("circle-translate-anchor",i,r),s,c),y=8*(this.getPaintValue("circle-radius",i,r)+this.getPaintValue("circle-stroke-width",i,r));if("point"===u){let r,i,[a,n]=t[0];a=a/l.normalizationRatio+l.normalizationOffsetX,n=n/l.normalizationRatio+l.normalizationOffsetY;for(let t of h)if(t)for(let s of t){r=s.x+p.x,i=s.y+p.y;let t=Math.sqrt((a-r)*(a-r)+(n-i)*(n-i))-e;if(t<=0||t<=y)return!0}}let f=t.map(t=>{let[e,r]=t;return e=e/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,[e,r]});for(let t of h)if(t)for(let e of t){let t=e.x+p.x,r=e.y+p.y,i=[[t-y,r-y],[t-y,r+y],[t+y,r+y],[t+y,r-y],[t-y,r-y]];if((0,a.M5)(f,[i]))return!0}return!1}}class zt{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=+!r),i=t.getLayoutProperty("icon-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("icon-anchor",e),i=t.getLayoutProperty("icon-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("icon-offset",e),i=t.getLayoutProperty("icon-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("icon-padding",e),i=t.getLayoutProperty("icon-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("icon-rotate",e),i=t.getLayoutProperty("icon-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Ut{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=+!r),i=t.getLayoutProperty("text-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("text-anchor",e),i=t.getLayoutProperty("text-justify"),i?.isDataDriven?this._justifyProp=i:this.justify=t.getLayoutValue("text-justify",e),i=t.getLayoutProperty("text-letter-spacing"),i?.isDataDriven?this._letterSpacingProp=i:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),i=t.getLayoutProperty("text-line-height"),i?.isDataDriven?this._lineHeightProp=i:this.lineHeight=t.getLayoutValue("text-line-height",e),i=t.getLayoutProperty("text-max-angle"),i?.isDataDriven?this._maxAngleProp=i:this.maxAngle=t.getLayoutValue("text-max-angle",e),i=t.getLayoutProperty("text-max-width"),i?.isDataDriven?this._maxWidthProp=i:this.maxWidth=t.getLayoutValue("text-max-width",e),i=t.getLayoutProperty("text-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("text-offset",e),i=t.getLayoutProperty("text-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("text-padding",e),i=t.getLayoutProperty("text-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("text-rotate",e),i=t.getLayoutProperty("text-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("text-size",e),i=t.getLayoutProperty("text-writing-mode"),i?.isDataDriven?this._writingModeProp=i:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Bt(t){let e=t?.getGeometry();if(null==e)return null;let r=1/0,a=1/0,n=-1/0,s=-1/0;for(let t of e)if(t)for(let e of t)r=Math.min(r,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),s=Math.max(s,e.y);return(0,i.fA)(r,a,n,s)}},45013(t,e,r){r.d(e,{A:()=>n});var i=r(4718),a=r(4264);class n{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,i.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,r)=>this._create(t,e,r)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){let e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){let r=this.getStyleLayerByUID(t),i=0!==r?.getLayoutValue("symbol-placement",e),a=r?.getLayoutValue("icon-rotation-alignment",e);2===a&&(a=+!i);let n=r?.getLayoutValue("text-rotation-alignment",e);2===n&&(n=+!i);let s=r?.getPaintValue("icon-translate",e),o=r?.getPaintValue("icon-translate-anchor",e),l=r?.getPaintValue("text-translate",e),u=r?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:r?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:r?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:r?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:r?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:a,textRotationAlignment:n,iconTranslateAnchor:o,iconTranslate:s,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){let e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){let e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;let r=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let i,a=!0,s=this._layerByName[t.id];if(s){let o=this.layers.indexOf(s);e||=o,e===o?(a=!1,i=n._recreateLayer(t,s,this._getSourceType(t.source)),this.layers[e]=i,r.layers[e]=t):(this.layers.splice(o,1),r.layers.splice(o,1),i=this._create(t,e,this.layers),this.layers.splice(e,0,i),r.layers.splice(e,0,t))}else i=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(i),r.layers.push(t)):(this.layers.splice(e,0,i),r.layers.splice(e,0,t));this._layerByName[t.id]=i,this._uidToLayer.set(i.uid,i),a&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){let e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){let e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);let r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){let e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){let e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){let r=this._layerByName[t];if(!r)return;let i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},a=n._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].paint=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setLayoutProperties(t,e){let r=this._layerByName[t];if(!r)return;let i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},a=n._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].layout=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setStyleLayerVisibility(t,e){let r=this._layerByName[t];if(!r)return;let i=r.layout||{};i.visibility=e;let a={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:i,paint:r.paint},s=n._recreateLayer(a,r,r.sourceType),o=this.layers.indexOf(r);this.layers[o]=s,this._style.layers[o].layout=i,this._layerByName[r.id]=s,this._uidToLayer.set(r.uid,s)}getStyleLayerVisibility(t){let e="string"==typeof t?this._layerByName[t]:this._uidToLayer.get(t);if(!e)return!1;let r=e.getLayoutProperty("visibility");return!(r&&1===r.getValue())}_recomputeZValues(){let t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){let t=[],e=[],r=0;for(let i of this.layers){let a=i.layout;if(1===i.type){let e=i,n=i.source+"|"+i.sourceLayer;n+="|"+(a?.visibility??""),n+="|"+i.minzoom,n+="|"+i.maxzoom,n+="|"+JSON.stringify(i.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(n+="|"+r),t.push({key:n,layer:i})}else if(2===i.type){let t=i,n=i.paint,s=null!=n&&(null!=n["line-pattern"]||null!=n["line-dasharray"]),o=i.source+"|"+i.sourceLayer;o+="|"+(a?.visibility??""),o+="|"+i.minzoom,o+="|"+i.maxzoom,o+="|"+JSON.stringify(i.filter),o+="|"+(void 0===a?"":a["line-cap"]),o+="|"+(void 0===a?"":a["line-join"]),(t.hasDataDrivenLine||s)&&(o+="|"+r),e.push({key:o,layer:i})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){t.sort((t,e)=>t.key<e.key?-1:+(t.key>e.key));let e,r,i=t.length;for(let a=0;a<i;a++){let n=t[a];if(n.key===e)n.layer.refLayerId=r;else if(e=n.key,r=n.layer.id,1===n.layer.type){if(!n.layer.getPaintProperty("fill-outline-color"))for(let s=a+1;s<i;s++){let i=t[s];if(i.key!==e)break;if(i.layer.getPaintProperty("fill-outline-color")){t[a]=i,t[s]=n,r=i.layer.id;break}}}else if(2===n.layer.type){let s=n.layer;for(let o=a+1;o<i;o++){let i=t[o];if(i.key!==e)break;let l=i.layer;(s.canUseThinTessellation&&!l.canUseThinTessellation||!s.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(s=l,t[a]=i,t[o]=n,r=i.layer.id)}}}}_create(t,e,r){let i=1-(1+e)*(1/(r.length+1)),n=this._runningId++,s=this._getSourceType(t.source);switch(t.type){case"background":return new a.lf(0,t,i,n,s);case"fill":return new a.A4(1,t,i,n,s);case"line":return new a.tU(2,t,i,n,s);case"symbol":return new a.V1(3,t,i,n,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,i,n,s)}return null}_getSourceType(t){return this._style.sources?.[t]?.type??null}static _recreateLayer(t,e,r){switch(t.type){case"background":return new a.lf(0,t,e.z,e.uid,r);case"fill":return new a.A4(1,t,e.z,e.uid,r);case"line":return new a.tU(2,t,e.z,e.uid,r);case"symbol":return new a.V1(3,t,e.z,e.uid,r);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,e.z,e.uid,r)}return null}}},85079(t,e,r){r.d(e,{Sk:()=>s,Xk:()=>a,_u:()=>n});var i=r(21818);function a(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{let i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function n(t){let e=new Map,r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function s(t){return n(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,a,n=!1,s=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=a,this.normalized=n,this.divisor=s,this.integer=o}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7891],{37891(e,l,a){a.r(l),a.d(l,{GlobalIlluminationUpscaleDrawParameters:()=>t.G,build:()=>t.b}),a(82048),a(52540),a(72885),a(34845),a(20304),a(31821),a(15976),a(63761),a(94046),a(65786),a(14113);var t=a(50704)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[481,3354],{32198(t,e,n){function r(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,a){i(t,e,n||0,r||t.length-1,a||o)}function i(t,e,n,r,o){for(;r>n;){if(r-n>600){var s=r-n+1,u=e-n+1,l=Math.log(s),h=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*h*(s-h)/s)*(u-s/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-u*h/s+c)),Math.min(r,Math.floor(e+(s-u)*h/s+c)),o)}var f=t[e],p=n,M=r;for(a(t,n,e),o(t[r],f)>0&&a(t,n,r);p<M;){for(a(t,p,M),p++,M--;o(t[p],f)<0;)p++;for(;o(t[M],f)>0;)M--}0===o(t[n],f)?a(t,n,M):a(t,++M,r),M<=e&&(n=M+1),e<=M&&(r=M-1)}}function a(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e){return t<e?-1:+(t>e)}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>c,b:()=>s,c:()=>i,d:()=>o,e:()=>f,f:()=>h,l:()=>l,n:()=>p,t:()=>a}),n(44208);var r=n(72727);function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=n[0],h=n[1],c=n[2],f=n[4],p=n[5],M=n[6],m=n[8],d=n[9],g=n[10],y=n[12],b=n[13],x=n[14],v=0,_=0;for(let n=0;n<u;n++){let n=e[v],r=e[v+1],o=e[v+2];t[_]=l*n+f*r+m*o+y,t[_+1]=h*n+p*r+d*o+b,t[_+2]=c*n+M*r+g*o+x,v+=a,_+=i}return t}function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=n[0],h=n[1],c=n[2],f=n[3],p=n[4],M=n[5],m=n[6],d=n[7],g=n[8],y=0,b=0;for(let n=0;n<u;n++){let n=e[y],r=e[y+1],o=e[y+2];t[b]=l*n+f*r+m*o,t[b+1]=h*n+p*r+d*o,t[b+2]=c*n+M*r+g*o,y+=a,b+=i}}function u(t,e,n,r=3,i=r){let a=Math.min(t.length/r,e.length/i),o=0,s=0;for(let u=0;u<a;u++)t[s]=n*e[o],t[s+1]=n*e[o+1],t[s+2]=n*e[o+2],o+=i,s+=r;return t}function l(t,e,n,r){h(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n,r,i=3,a=i){let o=Math.min(t.length/i,e.length/a),s=0,u=0,l=1/2.2;for(let h=0;h<o;h++)t[u]=r*(n*e[s])**l,t[u+1]=r*(n*e[s+1])**l,t[u+2]=r*(n*e[s+2])**l,s+=a,u+=i}function c(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=0,h=0;for(let r=0;r<u;r++)t[h]=e[l]+n[0],t[h+1]=e[l+1]+n[1],t[h+2]=e[l+2]+n[2],l+=a,h+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),a=0,o=0;for(let s=0;s<i;s++){let i=e[a],s=e[a+1],u=e[a+2],l=i*i+s*s+u*u;if(l>0){let e=1/Math.sqrt(l);t[o]=e*i,t[o+1]=e*s,t[o+2]=e*u}a+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:h,linearToSRGBView:l,normalize:p,normalizeView:f,scale:u,scaleView:function(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,a=t.typedBufferStride,o=e.typedBuffer,s=e.typedBufferStride,u=0,l=0;for(let t=0;t<r;t++)i[l]=o[u]>>n,i[l+1]=o[u+1]>>n,i[l+2]=o[u+2]>>n,u+=s,l+=a},transformMat3:s,transformMat3View:o,transformMat4:a,transformMat4View:i,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),a=(n(44208),n(4718)),o=(n(53966),n(97768)),s=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),h=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){let e=(0,s.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},u=new Map;for(let e in n){let o=n[e],s=r?.originOf(e),l=o.clonable;if(o.readOnly||!1===l||7!==s&&0!==s&&5!==s&&4!==s)continue;let h=this[e],c=null;if("function"==typeof l)c=l(h,t);else if("reference"===l)c=h;else if(c=(0,a.TU)(h,t),null!=h&&null==c)continue;0===s?u.set(e,c):i[e]=c}let l=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){let t=(0,s.oY)(l)?.store;if(t)for(let[e,n]of u)t.set(e,n,0)}return l}};return i=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],i),i},c=h(i.A);n.d(e,["OU",0,h,"Pw",0,c])},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:r,fromValues:function(t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m){return[t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function o(){return a(1,1)}function s(){return a(-1,-1)}function u(){return a(1,0)}function l(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>i,vt:()=>r});const h=o(),c=s(),f=u(),p=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,negativeOnes:s,ones:o,unitX:u,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,c,"Un",0,h])},51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function s(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return a(1,1,1)}function l(){return a(1,0,0)}function h(){return a(0,1,0)}function c(){return a(0,0,1)}n.d(e,{CN:()=>o,ci:()=>s,fA:()=>a,o8:()=>i,vt:()=>r});const f=[0,0,0],p=u(),M=l(),m=h(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:M,UNIT_Y:m,UNIT_Z:d,ZEROS:f,clone:i,create:r,freeze:o,fromArray:s,fromValues:a,ones:u,unitX:l,unitY:h,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,d,"Cw",0,M,"JP",0,m,"Un",0,p,"uY",0,f])},91829(t,e,n){function r(){return[0,0,0,0]}function i(t,e,n,r){return[t,e,n,r]}function a(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function s(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}n.d(e,{_Y:()=>l,fA:()=>i,vt:()=>r});const h=[0,0,0,0],c=a(),f=o(),p=s(),M=u(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:M,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:a,unitW:l,unitX:o,unitY:s,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,c,"uY",0,h,"v7",0,m])},34304(t,e,n){n.d(e,{DF:()=>u,FD:()=>i,ct:()=>l});let r=1e-6;function i(){return r}const a=Math.random,o=Math.PI/180,s=180/Math.PI;function u(t){return t*o}function l(t){return t*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:l,toRadian:u},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>O,B8:()=>h,C:()=>a,D_:()=>s,N9:()=>b,O7:()=>P,Qw:()=>l,Tl:()=>f,X_:()=>w,e$:()=>M,eL:()=>m,hM:()=>y,hZ:()=>o,hs:()=>p,kN:()=>d,l:()=>S,lw:()=>c,mg:()=>u,o1:()=>A,sC:()=>_,t2:()=>Y,t5:()=>R,tZ:()=>X,ut:()=>q});var r=n(51850),i=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m,d){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t[9]=h,t[10]=c,t[11]=f,t[12]=p,t[13]=M,t[14]=m,t[15]=d,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){return h(t,e)||s(t),t}function h(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],h=e[8],c=e[9],f=e[10],p=e[11],M=e[12],m=e[13],d=e[14],g=e[15],y=n*s-r*o,b=n*u-i*o,x=n*l-a*o,v=r*u-i*s,_=r*l-a*s,w=i*l-a*u,S=h*m-c*M,A=h*d-f*M,P=h*g-p*M,O=c*d-f*m,R=c*g-p*m,B=f*g-p*d,Y=y*B-b*R+x*O+v*P-_*A+w*S;return Y?(Y=1/Y,t[0]=(s*B-u*R+l*O)*Y,t[1]=(i*R-r*B-a*O)*Y,t[2]=(m*w-d*_+g*v)*Y,t[3]=(f*_-c*w-p*v)*Y,t[4]=(u*P-o*B-l*A)*Y,t[5]=(n*B-i*P+a*A)*Y,t[6]=(d*x-M*w-g*b)*Y,t[7]=(h*w-f*x+p*b)*Y,t[8]=(o*R-s*P+l*S)*Y,t[9]=(r*P-n*R-a*S)*Y,t[10]=(M*_-m*x+g*y)*Y,t[11]=(c*x-h*_-p*y)*Y,t[12]=(s*A-o*O-u*S)*Y,t[13]=(n*O-r*A+i*S)*Y,t[14]=(m*b-M*v-d*y)*Y,t[15]=(h*v-c*b+f*y)*Y,t):null}function c(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],h=e[7],c=e[8],f=e[9],p=e[10],M=e[11],m=e[12],d=e[13],g=e[14],y=e[15],b=n[0],x=n[1],v=n[2],_=n[3];return t[0]=b*r+x*s+v*c+_*m,t[1]=b*i+x*u+v*f+_*d,t[2]=b*a+x*l+v*p+_*g,t[3]=b*o+x*h+v*M+_*y,b=n[4],x=n[5],v=n[6],_=n[7],t[4]=b*r+x*s+v*c+_*m,t[5]=b*i+x*u+v*f+_*d,t[6]=b*a+x*l+v*p+_*g,t[7]=b*o+x*h+v*M+_*y,b=n[8],x=n[9],v=n[10],_=n[11],t[8]=b*r+x*s+v*c+_*m,t[9]=b*i+x*u+v*f+_*d,t[10]=b*a+x*l+v*p+_*g,t[11]=b*o+x*h+v*M+_*y,b=n[12],x=n[13],v=n[14],_=n[15],t[12]=b*r+x*s+v*c+_*m,t[13]=b*i+x*u+v*f+_*d,t[14]=b*a+x*l+v*p+_*g,t[15]=b*o+x*h+v*M+_*y,t}function f(t,e,n){let r=n[0],i=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15];else{let n=e[0],o=e[1],s=e[2],u=e[3],l=e[4],h=e[5],c=e[6],f=e[7],p=e[8],M=e[9],m=e[10],d=e[11];t[0]=n,t[1]=o,t[2]=s,t[3]=u,t[4]=l,t[5]=h,t[6]=c,t[7]=f,t[8]=p,t[9]=M,t[10]=m,t[11]=d,t[12]=n*r+l*i+p*a+e[12],t[13]=o*r+h*i+M*a+e[13],t[14]=s*r+c*i+m*a+e[14],t[15]=u*r+f*i+d*a+e[15]}return t}function p(t,e,n){let r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function M(t,e,n,r){let o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);if(l<=(0,i.FD)())return void a(t,e);l=1/l,o*=l,s*=l,u*=l;let h=Math.sin(n),c=Math.cos(n),f=1-c,p=e[0],M=e[1],m=e[2],d=e[3],g=e[4],y=e[5],b=e[6],x=e[7],v=e[8],_=e[9],w=e[10],S=e[11],A=o*o*f+c,P=s*o*f+u*h,O=u*o*f-s*h,R=o*s*f-u*h,B=s*s*f+c,Y=u*s*f+o*h,q=o*u*f+s*h,X=s*u*f-o*h,I=u*u*f+c;t[0]=p*A+g*P+v*O,t[1]=M*A+y*P+_*O,t[2]=m*A+b*P+w*O,t[3]=d*A+x*P+S*O,t[4]=p*R+g*B+v*Y,t[5]=M*R+y*B+_*Y,t[6]=m*R+b*B+w*Y,t[7]=d*R+x*B+S*Y,t[8]=p*q+g*X+v*I,t[9]=M*q+y*X+_*I,t[10]=m*q+b*X+w*I,t[11]=d*q+x*X+S*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function m(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],h=e[9],c=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+l*r,t[5]=o*i+h*r,t[6]=s*i+c*r,t[7]=u*i+f*r,t[8]=l*i-a*r,t[9]=h*i-o*r,t[10]=c*i-s*r,t[11]=f*i-u*r,t}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return s(t);let r=n[0],a=n[1],o=n[2],u=Math.sqrt(r*r+a*a+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,a*=u,o*=u;let l=Math.sin(e),h=Math.cos(e),c=1-h;return t[0]=r*r*c+h,t[1]=a*r*c+o*l,t[2]=o*r*c-a*l,t[3]=0,t[4]=r*a*c-o*l,t[5]=a*a*c+h,t[6]=o*a*c+r*l,t[7]=0,t[8]=r*o*c+a*l,t[9]=a*o*c-r*l,t[10]=o*o*c+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,u=i+i,l=a+a,h=r*s,c=r*u,f=r*l,p=i*u,M=i*l,m=a*l,d=o*s,g=o*u,y=o*l;return t[0]=1-(p+m),t[1]=c+y,t[2]=f-g,t[3]=0,t[4]=c-y,t[5]=1-(h+m),t[6]=M+d,t[7]=0,t[8]=f+g,t[9]=M-d,t[10]=1-(h+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function _(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function w(t,e){let n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],u=e[8],l=e[9],h=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(a*a+o*o+s*s),t[2]=Math.sqrt(u*u+l*l+h*h),t}function S(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,h=o+o,c=i*u,f=i*l,p=i*h,M=a*l,m=a*h,d=o*h,g=s*u,y=s*l,b=s*h,x=r[0],v=r[1],_=r[2];return t[0]=(1-(M+d))*x,t[1]=(f+b)*x,t[2]=(p-y)*x,t[3]=0,t[4]=(f-b)*v,t[5]=(1-(c+d))*v,t[6]=(m+g)*v,t[7]=0,t[8]=(p+y)*_,t[9]=(m-g)*_,t[10]=(1-(c+M))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function P(t,e,n,r,i){let a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,h=o+o,c=s+s,f=a*l,p=a*h,M=a*c,m=o*h,d=o*c,g=s*c,y=u*l,b=u*h,x=u*c,v=r[0],_=r[1],w=r[2],S=i[0],A=i[1],P=i[2],O=(1-(m+g))*v,R=(p+x)*v,B=(M-b)*v,Y=(p-x)*_,q=(1-(f+g))*_,X=(d+y)*_,I=(M+b)*w,C=(d-y)*w,T=(1-(f+m))*w;return t[0]=O,t[1]=R,t[2]=B,t[3]=0,t[4]=Y,t[5]=q,t[6]=X,t[7]=0,t[8]=I,t[9]=C,t[10]=T,t[11]=0,t[12]=n[0]+S-(O*S+Y*A+I*P),t[13]=n[1]+A-(R*S+q*A+C*P),t[14]=n[2]+P-(B*S+X*A+T*P),t[15]=1,t}function O(t,e,n,r,i,a,o){let s=1/(n-e),u=1/(i-r),l=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function R(t,e,n,r){let a=e[0],o=e[1],u=e[2],l=a-n[0],h=o-n[1],c=u-n[2],f=(0,i.FD)();if(Math.abs(l)<f&&Math.abs(h)<f&&Math.abs(c)<f)return void s(t);let p=1/Math.sqrt(l*l+h*h+c*c);l*=p,h*=p,c*=p;let M=r[0],m=r[1],d=r[2],g=m*c-d*h,y=d*l-M*c,b=M*h-m*l;p=Math.sqrt(g*g+y*y+b*b),p?(p=1/p,g*=p,y*=p,b*=p):(g=0,y=0,b=0);let x=h*b-c*y,v=c*g-l*b,_=l*y-h*g;p=Math.sqrt(x*x+v*v+_*_),p?(p=1/p,x*=p,v*=p,_*=p):(x=0,v=0,_=0),t[0]=g,t[1]=x,t[2]=l,t[3]=0,t[4]=y,t[5]=v,t[6]=h,t[7]=0,t[8]=b,t[9]=_,t[10]=c,t[11]=0,t[12]=-(g*a+y*o+b*u),t[13]=-(x*a+v*o+_*u),t[14]=-(l*a+h*o+c*u),t[15]=1}function B(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function q(t){let e=(0,i.FD)(),n=t[0],r=t[1],a=t[2],o=t[4],s=t[5],u=t[6],l=t[8],h=t[9],c=t[10];return Math.abs(1-(n*n+o*o+l*l))<=e&&Math.abs(1-(r*r+s*s+h*h))<=e&&Math.abs(1-(a*a+u*u+c*c))<=e}function X(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const I=c,C=B;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],h=e[8],c=e[9],f=e[10],p=e[11],M=e[12],m=e[13],d=e[14],g=e[15];return t[0]=s*(f*g-p*d)-c*(u*g-l*d)+m*(u*p-l*f),t[1]=-(r*(f*g-p*d)-c*(i*g-a*d)+m*(i*p-a*f)),t[2]=r*(u*g-l*d)-s*(i*g-a*d)+m*(i*l-a*u),t[3]=-(r*(u*p-l*f)-s*(i*p-a*f)+c*(i*l-a*u)),t[4]=-(o*(f*g-p*d)-h*(u*g-l*d)+M*(u*p-l*f)),t[5]=n*(f*g-p*d)-h*(i*g-a*d)+M*(i*p-a*f),t[6]=-(n*(u*g-l*d)-o*(i*g-a*d)+M*(i*l-a*u)),t[7]=n*(u*p-l*f)-o*(i*p-a*f)+h*(i*l-a*u),t[8]=o*(c*g-p*m)-h*(s*g-l*m)+M*(s*p-l*c),t[9]=-(n*(c*g-p*m)-h*(r*g-a*m)+M*(r*p-a*c)),t[10]=n*(s*g-l*m)-o*(r*g-a*m)+M*(r*l-a*s),t[11]=-(n*(s*p-l*c)-o*(r*p-a*c)+h*(r*l-a*s)),t[12]=-(o*(c*d-f*m)-h*(s*d-u*m)+M*(s*f-u*c)),t[13]=n*(c*d-f*m)-h*(r*d-i*m)+M*(r*f-i*c),t[14]=-(n*(s*d-u*m)-o*(r*d-i*m)+M*(r*u-i*s)),t[15]=n*(s*f-u*c)-o*(r*f-i*c)+h*(r*u-i*s),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],h=t[9],c=t[10],f=t[11],p=t[12],M=t[13],m=t[14],d=t[15];return(e*o-n*a)*(c*d-f*m)-(e*s-r*a)*(h*d-f*M)+(e*u-i*a)*(h*m-c*M)+(n*s-r*o)*(l*d-f*p)-(n*u-i*o)*(l*m-c*p)+(r*u-i*s)*(l*M-h*p)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],h=t[7],c=t[8],f=t[9],p=t[10],M=t[11],m=t[12],d=t[13],g=t[14],y=t[15],b=e[0],x=e[1],v=e[2],_=e[3],w=e[4],S=e[5],A=e[6],P=e[7],O=e[8],R=e[9],B=e[10],Y=e[11],q=e[12],X=e[13],I=e[14],C=e[15],T=(0,i.FD)();return Math.abs(n-b)<=T*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-x)<=T*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(a-v)<=T*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(o-_)<=T*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(s-w)<=T*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-S)<=T*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-A)<=T*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-P)<=T*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(c-O)<=T*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-B)<=T*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(M-Y)<=T*Math.max(1,Math.abs(M),Math.abs(Y))&&Math.abs(m-q)<=T*Math.max(1,Math.abs(m),Math.abs(q))&&Math.abs(d-X)<=T*Math.max(1,Math.abs(d),Math.abs(X))&&Math.abs(g-I)<=T*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-C)<=T*Math.max(1,Math.abs(y),Math.abs(C))},exactEquals:Y,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,h=r*o,c=r*s,f=i*o,p=i*s,M=i*u,m=a*o,d=a*s,g=a*u;return t[0]=1-c-M,t[1]=h+g,t[2]=f-d,t[3]=0,t[4]=h-g,t[5]=1-l-M,t[6]=p+m,t[7]=0,t[8]=f+d,t[9]=p-m,t[10]=1-l-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],u=e[5],l=e[6],h=e[7],c=r*r+i*i+a*a+o*o;return c>0?(n[0]=2*(s*o+h*r+u*a-l*i)/c,n[1]=2*(u*o+h*i+l*r-s*a)/c,n[2]=2*(l*o+h*a+s*i-u*r)/c):(n[0]=2*(s*o+h*r+u*a-l*i),n[1]=2*(u*o+h*i+l*r-s*a),n[2]=2*(l*o+h*a+s*i-u*r)),x(t,e,n),t},fromRotation:g,fromRotationTranslation:x,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:P,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:y,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:O,getRotation:S,getScale:w,getTranslation:_,hasIdentityRotation:X,identity:s,invert:h,invertOrIdentity:l,isOrthoNormal:q,lookAt:R,mul:I,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,a,o){let s=1/(e-n),u=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(o+a)*l,t[15]=1,t},perspective:function(t,e,n,r,i){let a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:M,rotateX:m,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[8],h=e[9],c=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-l*r,t[1]=o*i-h*r,t[2]=s*i-c*r,t[3]=u*i-f*r,t[8]=a*r+l*i,t[9]=o*r+h*i,t[10]=s*r+c*i,t[11]=u*r+f*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[4],h=e[5],c=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+l*r,t[1]=o*i+h*r,t[2]=s*i+c*r,t[3]=u*i+f*r,t[4]=l*i-a*r,t[5]=h*i-o*r,t[6]=c*i-s*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:C,subtract:B,targetTo:function(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=r[0],u=r[1],l=r[2],h=i-n[0],c=a-n[1],f=o-n[2],p=h*h+c*c+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,c*=p,f*=p);let M=u*f-l*c,m=l*h-s*f,d=s*c-u*h;return p=M*M+m*m+d*d,p>0&&(p=1/Math.sqrt(p),M*=p,m*=p,d*=p),t[0]=M,t[1]=m,t[2]=d,t[3]=0,t[4]=c*d-f*m,t[5]=f*M-h*d,t[6]=h*m-c*M,t[7]=0,t[8]=h,t[9]=c,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>A,Bw:()=>a,C:()=>o,Cc:()=>P,DI:()=>_,Io:()=>y,Ln:()=>g,Om:()=>S,Qr:()=>c,Re:()=>l,S8:()=>w,T9:()=>m,WQ:()=>u,Z0:()=>O,_S:()=>p,aI:()=>C,ei:()=>R,fw:()=>Y,gL:()=>B,hG:()=>b,hZ:()=>s,hs:()=>d,jk:()=>M,lw:()=>h,m3:()=>x,oW:()=>T,t2:()=>I,tn:()=>f,ze:()=>v});var r=n(51850),i=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function M(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e=t){let n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function P(t,e,n,r){let i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function O(t,e,n){let r=e[0],i=e[1],a=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12],t[1]=n[1]*r+n[5]*i+n[9]*a+n[13],t[2]=n[2]*r+n[6]*i+n[10]*a+n[14],t}function R(t,e,n){let r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function B(t,e,n){return Y(t,e,n[0],n[1],n[2],n[3])}function Y(t,e,n,r,i,a){let o=e[0],s=e[1],u=e[2],l=r*u-i*s,h=i*o-n*u,c=n*s-r*o,f=r*c-i*h,p=i*l-n*c,M=n*h-r*l,m=2*a;return t[0]=o+l*m+2*f,t[1]=s+h*m+2*p,t[2]=u+c*m+2*M,t}const q=(0,r.vt)(),X=(0,r.vt)();function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2],l=(0,i.FD)();return Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=l*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=l*Math.max(1,Math.abs(a),Math.abs(u))}function T(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],a=n[2]-e[2],o=r*r+i*i+a*a;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=a*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=l,Z=h,N=c,E=y,z=b,D=a,k=x;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,e){w(q,t),w(X,e);let n=S(q,X);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,a){let o=1-a,s=o*o,u=a*a,l=s*o,h=3*a*s,c=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*h+r[0]*c+i[0]*f,t[1]=e[1]*l+n[1]*h+r[1]*c+i[1]*f,t[2]=e[2]*l+n[2]*h+r[2]*c+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:A,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=i*u-a*s,h=a*o-r*u,c=r*s-i*o,f=Math.sqrt(l*l+h*h+c*c);return t[0]=l/f,t[1]=h/f,t[2]=c/f,t},direction:T,dist:E,distance:y,div:N,divide:c,dot:S,equals:C,exactEquals:I,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,a){let o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*h,t},inverse:_,len:D,length:a,lerp:P,max:m,min:M,mul:Z,multiply:h,negate:v,normalize:w,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,a=2*n()-1,o=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=a*e,t},rotateX:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:g,scaleTo:function(t,e){return d(t,t,e/D(t))},set:s,sign:p,sqrDist:z,sqrLen:k,squaredDistance:b,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:l,transformMat3:R,transformMat4:O,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:B,transformQuatValues:Y},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,D,"jb",0,j,"lo",0,z,"uE",0,k])},78955(t,e,n){n.d(e,{Bw:()=>d,C:()=>i,Cc:()=>x,LI:()=>f,Om:()=>b,S8:()=>y,T9:()=>c,WQ:()=>o,Z0:()=>v,aI:()=>w,hG:()=>m,hZ:()=>a,hs:()=>p,jk:()=>h,m3:()=>g,t2:()=>_});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function h(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function c(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function f(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+a*a)}function m(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function d(t){let e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function g(t){let e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function y(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function x(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t}function v(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function w(t,e){let n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],h=e[3],c=(0,r.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-h)<=c*Math.max(1,Math.abs(o),Math.abs(h))}const S=s,A=u,P=l,O=M,R=m,B=d,Y=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:O,distance:M,div:P,divide:l,dot:b,equals:w,exactEquals:_,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:B,length:d,lerp:x,max:c,min:h,mul:A,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:y,random:function(t,e=1){let n,i,a,o,s,u,l=r.Ov;do{n=2*l()-1,i=2*l()-1,s=n*n+i*i}while(s>=1);do{a=2*l()-1,o=2*l()-1,u=a*a+o*o}while(u>=1);let h=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*a*h,t[3]=e*o*h,t},round:f,scale:p,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:R,sqrLen:Y,squaredDistance:m,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:S,subtract:s,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=n[3],h=l*r+s*a-u*i,c=l*i+u*r-o*a,f=l*a+o*i-s*r,p=-o*r-s*i-u*a;return t[0]=h*l+p*-o+c*-u-f*-s,t[1]=c*l+p*-s+f*-o-h*-u,t[2]=f*l+p*-u+h*-s-c*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>s});var r=n(4576),i=n(21818),a=(n(44208),n(15142)),o=n(11006);class s{constructor(t=9,e){this._compareMinX=f,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),v.prune(),_.prune(),w.prune(),S.prune()}all(t){u(this._data,t)}search(t,e){let n=this._data,r=this._toBBox;if(b(t,n))for(v.clear();n;){for(let i=0,a=n.children.length;i<a;i++){let a=n.children[i],o=n.leaf?r(a):a;b(t,o)&&(n.leaf?e(a):y(t,o)?u(a,e):v.push(a))}n=v.pop()}}collides(t){let e=this._data,n=this._toBBox;if(!b(t,e))return!1;for(v.clear();e;){for(let r=0,i=e.children.length;r<i;r++){let i=e.children[r],a=e.leaf?n(i):i;if(b(t,a)){if(e.leaf||y(t,a))return!0;v.push(i)}}e=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new O([]),this}remove(t){if(!t)return this;let e,n=this._data,a=null,o=0,s=!1,u=this._toBBox(t);for(w.clear(),S.clear();n||w.length>0;){if(n||(n=w.pop(),a=w.data[w.length-1],o=S.pop()??0,s=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;s||n.leaf||!y(n,u)?a?(o++,n=a.children[o],s=!1):n=null:(w.push(n),S.push(o),o=0,a=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){let i=n-e+1,a=this._maxEntries;if(i<=a){let r=new O(t.slice(e,n+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/a**(r-1)));let o=new R([]);o.height=r;let s=Math.ceil(i/a),u=s*Math.ceil(Math.sqrt(a));x(t,e,n,u,this._compareMinX);for(let i=e;i<=n;i+=u){let e=Math.min(i+u-1,n);x(t,i,e,s,this._compareMinY);for(let n=i;n<=e;n+=s){let i=Math.min(n+s-1,e);o.children.push(this._build(t,n,i,r-1))}}return l(o,this._toBBox),o}_insert(t,e,n){let r=this._toBBox,i=n?t:r(t);w.clear();let a=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let a=0,o=e.children.length;a<o;a++){let o=e.children[a],s=M(o),u=d(t,o)-s;u<i?(i=u,r=s<r?s:r,n=o):u===i&&s<r&&(r=s,n=o)}e=n||e.children[0]}return e}(i,this._data,e,w);for(a.children.push(t),c(a,i);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)c(e.data[r],t)}(i,w,e)}_split(t,e){let n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);let a=this._chooseSplitIndex(n,i,r);if(!a)return;let o=n.children.splice(a,n.children.length-a),s=n.leaf?new O(o):new R(o);s.height=n.height,l(n,this._toBBox),l(s,this._toBBox),e?t.data[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,a;r=i=1/0;for(let o=e;o<=n-e;o++){let e=h(t,0,o,this._toBBox),s=h(t,o,n,this._toBBox),u=g(e,s),l=M(e)+M(s);u<r?(r=u,a=o,i=l<i?l:i):u===r&&l<i&&(i=l,a=o)}return a}_chooseSplitAxis(t,e,n){let r=t.leaf?this._compareMinX:f,i=t.leaf?this._compareMinY:p;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);let i=this._toBBox,a=h(t,0,e,i),o=h(t,n-e,n,i),s=m(a)+m(o);for(let r=e;r<n-e;r++){let e=t.children[r];c(a,t.leaf?i(e):e),s+=m(a)}for(let r=n-e-1;r>=e;r--){let e=t.children[r];c(o,t.leaf?i(e):e),s+=m(o)}return s}_condense(t){for(let e=t.length-1;e>=0;e--){let n=t.data[e];if(0===n.children.length)if(e>0){let i=t.data[e-1],a=i.children;a.splice((0,r.qh)(a,n,a.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function u(t,e){let n=t;for(_.clear();n;){if(!0===n.leaf)for(let t of n.children)e((0,i.z)(t));else _.pushArray(n.children);n=_.pop()??null}}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,r,i){i||=new O([]),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a,o=e;o<n;o++)a=t.children[o],c(i,t.leaf?r(a):a);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function p(t,e){return t.minY-e.minY}function M(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){let n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,a-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,i){let a=[e,n];for(;a.length;){let e=a.pop(),n=a.pop();if(e-n<=r)continue;let s=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,s,n,e,i),a.push(n,s,s,e)}}const v=new a.A,_=new a.A,w=new a.A,S=new a.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class O extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),a=n(4576),o=n(4718),s=n(91429),u=n(5443),l=n(91075),h=n(86738),c=n(16930),f=n(90634),p=n(47610),M=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,a.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,M.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new h.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,M.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],d.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],d.prototype,"writePoints",null),d=r=(0,i.Cg)([(0,s.$K)("esri.geometry.Multipoint")],d),d.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>M});var r,i=n(32198),a=n(4718),o=n(91429),s=n(5443),u=n(91075),l=n(86738),h=n(16930),c=n(90634),f=n(56993),p=n(43937);let M=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,a.o8)(t)}get extent(){let t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new s.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,a.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,a.o8)(this.paths),t.curvePaths=(0,a.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new l.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],M.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],M.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],M.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],M.prototype,"writePaths",null),M=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],M),M.prototype.toJSON.isDefaultToJSON=!0},48353(t,e,n){n.d(e,{l:()=>l});var r=n(34727),i=n(58083),a=n(51850);function o(t,e,n){let r=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e),s=n;return s[0]=-r,s[4]=-a*i,s[8]=o*i,s[12]=0,s[1]=i,s[5]=-a*r,s[9]=o*r,s[13]=0,s[2]=0,s[6]=o,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=n(49208),u=n(21325);function l(t,e,n,r){let a=(0,s.Tp)(t,r);if(null==a)return!1;let l=a.source.spatialReferenceId,M=a.dest.spatialReferenceId;if(l===M&&!h(M)&&(0!==l||(0,u.aI)(t,r)))return(0,i.kN)(n,e),!0;if(h(M)){let t=s.w5[l][10],r=s.w5[10][M];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,p,0),o(c*f[0],c*f[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}let m=h(l);if((3===M||11===M||2===M||5===M)&&(2===l||m||3===l||5===l)){let t=s.w5[l][10],r=s.w5[10][M];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,p,0),m?function(t,e,n){o(t,e,n),(0,i.mg)(n,n)}(c*f[0],c*f[1],n):(0,i.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const c=(0,r.kU)(1),f=(0,a.vt)(),p=(0,a.vt)()},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),i=n(99917),a=n(9762);function o(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return s[0]=t.x,s[1]=t.y,s[2]=t.z??0,(0,a.projectBuffer)(s,t.spatialReference,0,e,n,0);let o=(0,i.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const s=(0,r.vt)()},95696(t,e,n){n.d(e,{A:()=>l});var r,i=n(32198),a=n(69540),o=n(25482),s=n(91429),u=n(93223);let l=class extends((0,a.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=r=(0,i.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,n){n.d(e,{A:()=>l});var r=n(32198),i=n(69540),a=n(25482),o=n(91429),s=n(51850),u=n(93223);let l=class extends((0,i.OU)(a.o)){constructor(t){super(t),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},52006(t,e,n){function r(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function a(t){return"b"in t}function o(t){return"c"in t}function s(t){return Array.isArray(t)}function u(t){return"a"in t}function l(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function c(t,e){return i(t).flat().some(t=>function(t,e){return!(s(t)||(a(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!l(t)&&!h(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return s(t)?t:a(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function p(t){if(a(t)){let[e,n,r]=t.b;return{b:[[...e],[...n],[...r]]}}if(o(t)){let[e,n]=t.c;return{c:[[...e],[...n]]}}if(s(t))return[...t];if(l(t)){let[e,n,r,i]=t.a;return{a:[[...e],[...n],r,i]}}if(h(t)){let[e,n,r,i,a,o,s]=t.a;return{a:[[...e],[...n],r,i,a,o,s]}}return t}n.d(e,{DA:()=>l,Ed:()=>r,FD:()=>i,FG:()=>u,V8:()=>c,Xq:()=>s,aO:()=>o,n1:()=>a,tk:()=>p,wY:()=>h,yP:()=>f}),n(4576)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?a(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>l,Bi:()=>s,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>c,ZC:()=>r,fT:()=>a,uW:()=>u})},38419(t,e,n){n.r(e),n.d(e,{default:()=>s});var r=n(44208),i=n(75503),a=n(95696),o=n(72258);class s{async createIndex(t,e){if(!t.vertexAttributes?.position)return new i.wq;let n=function(t){let{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i}=t,s=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i},a.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),r=null==e?this.createIndexThread(n).result:await e.invoke("createIndexThread",n,{transferList:[]});return u().fromJSON(r)}createIndexThread(t){let e=u();if(!t)return{result:e.toJSON()};let n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(let t of n)r+=t.length/3;let i=Array(r),a=0;for(let t of n)for(let n=0;n<t.length;n+=3)i[a++]=l(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(i),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){let n=Array(e.length/9),r=0;for(let t=0;t<e.length;t+=9)n[r++]=l(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function u(){return new i.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function l(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},27615(t,e,n){n.d(e,{CK:()=>u,Hq:()=>s,MW:()=>l,TE:()=>h,yJ:()=>c});var r=n(35522),i=n(86738),a=n(95696),o=n(18251);function s(t){return null!=t.origin}function u(t){return s(t.vertexSpace)}function l(t,e){if(!s(t))return null;let[n,r,a]=t.origin;return new i.A({x:n,y:r,z:a,spatialReference:e})}function h(t,e){let{x:n,y:r,z:i,spatialReference:s}=t,u=[n,r,i??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new o.A({origin:u}):new a.A({origin:u})}function c(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}}}]);