@arcgis/core 4.27.0-rc.2 → 4.27.0-rc.3

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 (100) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{a8565d1c676f3bfbcebb.js → 002fe1ec63ea33e6972d.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{0610691a0c0d9fbbd6d2.js → 013de5c2955801b329b3.js} +1 -1
  4. package/assets/esri/core/workers/chunks/07163dcbb871f927a580.js +1 -0
  5. package/assets/esri/core/workers/chunks/0e46687004392c493c06.js +1 -0
  6. package/assets/esri/core/workers/chunks/0e65e00173b66c7fec2e.js +1 -0
  7. package/assets/esri/core/workers/chunks/1aa8dd317ecd3c41e0ea.js +1 -0
  8. package/assets/esri/core/workers/chunks/21328f3dd26abe84a10d.js +1 -0
  9. package/assets/esri/core/workers/chunks/28c67c98039503b62e6e.js +1 -0
  10. package/assets/esri/core/workers/chunks/{da57eba2fe25495ea217.js → 2faa8f08f2fdaac3f4af.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{0407bf97ad621c89a734.js → 3160af63b860b52db389.js} +1 -1
  12. package/assets/esri/core/workers/chunks/3767b9e7660873b018c2.js +1 -0
  13. package/assets/esri/core/workers/chunks/39ae4b9b766f674bc6f2.js +1 -0
  14. package/assets/esri/core/workers/chunks/45629ff775e77234b227.js +1 -0
  15. package/assets/esri/core/workers/chunks/4a4f14a3d8da270059c4.js +1 -0
  16. package/assets/esri/core/workers/chunks/{3e239bfad611985e50fb.js → 50f910797c17c3028521.js} +1 -1
  17. package/assets/esri/core/workers/chunks/642c5a93c0a454bdd115.js +1 -0
  18. package/assets/esri/core/workers/chunks/{14145959a3dab1437818.js → 6627f1bc9ee6b620e3aa.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{170bdbdb4e21bf91a17f.js → 6eaa7a51efde2dd4a5a4.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{2bdc63395c7466ce1641.js → 7053c2f5a958d4c8629b.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{4c35c663528f710e8c78.js → 79cb672c85ea29e8484a.js} +1 -1
  22. package/assets/esri/core/workers/chunks/82939ead43848a13f765.js +1 -0
  23. package/assets/esri/core/workers/chunks/89001ee8d3f69fa03cc1.js +1 -0
  24. package/assets/esri/core/workers/chunks/8b6b963230df56850580.js +1 -0
  25. package/assets/esri/core/workers/chunks/9472184ef1432fc55d6b.js +1 -0
  26. package/assets/esri/core/workers/chunks/a6ddf80eb324c35076e1.js +1 -0
  27. package/assets/esri/core/workers/chunks/a80a6267d88246ede5d3.js +1 -0
  28. package/assets/esri/core/workers/chunks/{f505ebd4bd3bfb6c790d.js → b6a55fdfe16795ebf02c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/bf9e1fde9f6b2b4f10c0.js +1 -0
  30. package/assets/esri/core/workers/chunks/cfa3b2b1e184681e9af4.js +1 -0
  31. package/assets/esri/core/workers/chunks/{1f69fb9687de9ebfcf90.js → d4ba894a2583f3930a4f.js} +1 -1
  32. package/assets/esri/core/workers/chunks/d5dfd3d693d5e393a542.js +1 -0
  33. package/assets/esri/core/workers/chunks/{74fd2059ddda9083cbcc.js → dc6c97a43d642eeaf477.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{2154d395f405be3cd3ba.js → eca0c3d57b3a1e3a14ee.js} +1 -1
  35. package/assets/esri/core/workers/chunks/f36697f6aac782007d1a.js +1 -0
  36. package/assets/esri/core/workers/chunks/f52054f27619a98b7bb7.js +1 -0
  37. package/assets/esri/core/workers/chunks/fb7fe307a583b6a22218.js +1 -0
  38. package/assets/esri/core/workers/chunks/fbd3c78ee8e2219a6c7a.js +1 -0
  39. package/assets/esri/core/workers/chunks/ff42585e1b1d0c5497af.js +1 -0
  40. package/assets/esri/images/portal/livestreamvideolayer16.png +0 -0
  41. package/assets/esri/images/portal/{mediaservice16.png → videolayer16.png} +0 -0
  42. package/assets/esri/themes/base/widgets/_FeatureForm.scss +19 -2
  43. package/assets/esri/themes/dark/main.css +1 -1
  44. package/assets/esri/themes/light/main.css +1 -1
  45. package/assets/esri/themes/light/view.css +1 -1
  46. package/geometry/support/DoubleArray.js +1 -1
  47. package/interfaces.d.ts +84 -0
  48. package/kernel.js +1 -1
  49. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  50. package/layers/support/editableLayers.js +1 -1
  51. package/layers/support/layerUtils.js +1 -1
  52. package/package.json +1 -1
  53. package/portal/PortalItem.js +1 -1
  54. package/request.js +1 -1
  55. package/support/requestUtils.js +1 -1
  56. package/support/revision.js +1 -1
  57. package/views/3d/layers/I3SMeshView3D.js +1 -1
  58. package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
  59. package/views/3d/layers/SceneLayerWorker.js +1 -1
  60. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  61. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  62. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -2
  63. package/webmap/initialViewPropertiesUtils.js +1 -1
  64. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  65. package/widgets/Editor/CreateWorkflow.js +1 -1
  66. package/widgets/Editor/EditorViewModel.js +1 -1
  67. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  68. package/widgets/Editor/UpdateWorkflow.js +1 -1
  69. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  70. package/widgets/Editor/workflowUtils.js +1 -1
  71. package/widgets/Feature/support/featureUtils.js +1 -1
  72. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  73. package/widgets/FeatureForm/RelationshipInput.js +1 -1
  74. package/widgets/FeatureForm/css.js +1 -1
  75. package/widgets/FeatureForm.js +1 -1
  76. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  77. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +4 -0
  78. package/widgets/UtilityNetworkValidateTopology.d.ts +4 -0
  79. package/widgets/support/geolocationUtils.js +1 -1
  80. package/assets/esri/core/workers/chunks/0fcb8d408696075338e2.js +0 -1
  81. package/assets/esri/core/workers/chunks/16e459b16bdd6e1a821b.js +0 -1
  82. package/assets/esri/core/workers/chunks/1b8074269800b384ecf6.js +0 -1
  83. package/assets/esri/core/workers/chunks/2b55295590b4a0503749.js +0 -1
  84. package/assets/esri/core/workers/chunks/3ba2fcb9110230f8790c.js +0 -1
  85. package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +0 -1
  86. package/assets/esri/core/workers/chunks/5706edf45402dff279a6.js +0 -1
  87. package/assets/esri/core/workers/chunks/659b7bad7281c0e2aed3.js +0 -1
  88. package/assets/esri/core/workers/chunks/6cd248d065f6d1616294.js +0 -1
  89. package/assets/esri/core/workers/chunks/9326120c750799eb2d28.js +0 -1
  90. package/assets/esri/core/workers/chunks/99e0cec47e3ef72c1de4.js +0 -1
  91. package/assets/esri/core/workers/chunks/9c0e1e87790424f42d7e.js +0 -1
  92. package/assets/esri/core/workers/chunks/9e66af3b1c70cf25fb32.js +0 -1
  93. package/assets/esri/core/workers/chunks/a1c31bb8c12831539328.js +0 -1
  94. package/assets/esri/core/workers/chunks/b0cda39b53ecd6c44cd0.js +0 -1
  95. package/assets/esri/core/workers/chunks/c08e03165043df67c11b.js +0 -1
  96. package/assets/esri/core/workers/chunks/c26148d4bfab3b3dfab2.js +0 -1
  97. package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +0 -1
  98. package/assets/esri/core/workers/chunks/eeaf8010e38b65a101ac.js +0 -1
  99. package/assets/esri/core/workers/chunks/f235392c56063fbf89c6.js +0 -1
  100. package/assets/esri/core/workers/chunks/fdd0d3616c97e408b104.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6704],{46851:(e,r,t)=>{t.d(r,{R:()=>i,a:()=>u,g:()=>o,t:()=>f});let n=1e-6;function o(){return n}const i=Math.random,s=Math.PI/180,a=180/Math.PI;function f(e){return e*s}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,r){return Math.abs(e-r)<=n*Math.max(1,Math.abs(e),Math.abs(r))},getEpsilon:o,setEpsilon:function(e){n=e},toDegree:u,toRadian:f},Symbol.toStringTag,{value:"Module"}))},17896:(e,r,t)=>{t.d(r,{A:()=>d,C:()=>l,D:()=>c,a:()=>f,b:()=>u,c:()=>s,d:()=>m,e:()=>y,f:()=>S,g:()=>h,h:()=>g,i:()=>M,j:()=>v,k:()=>G,l:()=>i,m:()=>w,n:()=>p,p:()=>_,q:()=>C,r:()=>A,s:()=>a,t:()=>b,u:()=>U});var n=t(65617),o=t(46851);function i(e){const r=e[0],t=e[1],n=e[2];return Math.sqrt(r*r+t*t+n*n)}function s(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function a(e,r,t,n){return e[0]=r,e[1]=t,e[2]=n,e}function f(e,r,t){return e[0]=r[0]+t[0],e[1]=r[1]+t[1],e[2]=r[2]+t[2],e}function u(e,r,t){return e[0]=r[0]-t[0],e[1]=r[1]-t[1],e[2]=r[2]-t[2],e}function l(e,r,t){return e[0]=r[0]*t[0],e[1]=r[1]*t[1],e[2]=r[2]*t[2],e}function c(e,r,t){return e[0]=r[0]/t[0],e[1]=r[1]/t[1],e[2]=r[2]/t[2],e}function h(e,r,t){return e[0]=r[0]*t,e[1]=r[1]*t,e[2]=r[2]*t,e}function d(e,r,t,n){return e[0]=r[0]+t[0]*n,e[1]=r[1]+t[1]*n,e[2]=r[2]+t[2]*n,e}function M(e,r){const t=r[0]-e[0],n=r[1]-e[1],o=r[2]-e[2];return Math.sqrt(t*t+n*n+o*o)}function m(e,r){const t=r[0]-e[0],n=r[1]-e[1],o=r[2]-e[2];return t*t+n*n+o*o}function _(e){const r=e[0],t=e[1],n=e[2];return r*r+t*t+n*n}function p(e,r){const t=r[0],n=r[1],o=r[2];let i=t*t+n*n+o*o;return i>0&&(i=1/Math.sqrt(i),e[0]=r[0]*i,e[1]=r[1]*i,e[2]=r[2]*i),e}function y(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]}function S(e,r,t){const n=r[0],o=r[1],i=r[2],s=t[0],a=t[1],f=t[2];return e[0]=o*f-i*a,e[1]=i*s-n*f,e[2]=n*a-o*s,e}function g(e,r,t,n){const o=r[0],i=r[1],s=r[2];return e[0]=o+n*(t[0]-o),e[1]=i+n*(t[1]-i),e[2]=s+n*(t[2]-s),e}function w(e,r,t){const n=r[0],o=r[1],i=r[2];return e[0]=t[0]*n+t[4]*o+t[8]*i+t[12],e[1]=t[1]*n+t[5]*o+t[9]*i+t[13],e[2]=t[2]*n+t[6]*o+t[10]*i+t[14],e}function b(e,r,t){const n=r[0],o=r[1],i=r[2];return e[0]=n*t[0]+o*t[3]+i*t[6],e[1]=n*t[1]+o*t[4]+i*t[7],e[2]=n*t[2]+o*t[5]+i*t[8],e}function C(e,r,t){const n=t[0],o=t[1],i=t[2],s=t[3],a=r[0],f=r[1],u=r[2];let l=o*u-i*f,c=i*a-n*u,h=n*f-o*a,d=o*h-i*c,M=i*l-n*h,m=n*c-o*l;const _=2*s;return l*=_,c*=_,h*=_,d*=2,M*=2,m*=2,e[0]=a+l+d,e[1]=f+c+M,e[2]=u+h+m,e}const R=(0,n.c)(),k=(0,n.c)();function G(e,r){return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]}function A(e,r,t){const n=t[0]-r[0],o=t[1]-r[1],i=t[2]-r[2];let s=n*n+o*o+i*i;return s>0?(s=1/Math.sqrt(s),e[0]=n*s,e[1]=o*s,e[2]=i*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const E=u,x=l,P=c,v=M,O=m,U=i,W=_;Object.freeze(Object.defineProperty({__proto__:null,abs:function(e,r){return e[0]=Math.abs(r[0]),e[1]=Math.abs(r[1]),e[2]=Math.abs(r[2]),e},add:f,angle:function(e,r){s(R,e),s(k,r),p(R,R),p(k,k);const t=y(R,k);return t>1?0:t<-1?Math.PI:Math.acos(t)},bezier:function(e,r,t,n,o,i){const s=1-i,a=s*s,f=i*i,u=a*s,l=3*i*a,c=3*f*s,h=f*i;return e[0]=r[0]*u+t[0]*l+n[0]*c+o[0]*h,e[1]=r[1]*u+t[1]*l+n[1]*c+o[1]*h,e[2]=r[2]*u+t[2]*l+n[2]*c+o[2]*h,e},ceil:function(e,r){return e[0]=Math.ceil(r[0]),e[1]=Math.ceil(r[1]),e[2]=Math.ceil(r[2]),e},copy:s,cross:S,direction:A,dist:v,distance:M,div:P,divide:c,dot:y,equals:function(e,r){if(e===r)return!0;const t=e[0],n=e[1],i=e[2],s=r[0],a=r[1],f=r[2],u=(0,o.g)();return Math.abs(t-s)<=u*Math.max(1,Math.abs(t),Math.abs(s))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-f)<=u*Math.max(1,Math.abs(i),Math.abs(f))},exactEquals:G,floor:function(e,r){return e[0]=Math.floor(r[0]),e[1]=Math.floor(r[1]),e[2]=Math.floor(r[2]),e},hermite:function(e,r,t,n,o,i){const s=i*i,a=s*(2*i-3)+1,f=s*(i-2)+i,u=s*(i-1),l=s*(3-2*i);return e[0]=r[0]*a+t[0]*f+n[0]*u+o[0]*l,e[1]=r[1]*a+t[1]*f+n[1]*u+o[1]*l,e[2]=r[2]*a+t[2]*f+n[2]*u+o[2]*l,e},inverse:function(e,r){return e[0]=1/r[0],e[1]=1/r[1],e[2]=1/r[2],e},len:U,length:i,lerp:g,max:function(e,r,t){return e[0]=Math.max(r[0],t[0]),e[1]=Math.max(r[1],t[1]),e[2]=Math.max(r[2],t[2]),e},min:function(e,r,t){return e[0]=Math.min(r[0],t[0]),e[1]=Math.min(r[1],t[1]),e[2]=Math.min(r[2],t[2]),e},mul:x,multiply:l,negate:function(e,r){return e[0]=-r[0],e[1]=-r[1],e[2]=-r[2],e},normalize:p,random:function(e,r){r=r||1;const t=o.R,n=2*t()*Math.PI,i=2*t()-1,s=Math.sqrt(1-i*i)*r;return e[0]=Math.cos(n)*s,e[1]=Math.sin(n)*s,e[2]=i*r,e},rotateX:function(e,r,t,n){const o=[],i=[];return o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2],i[0]=o[0],i[1]=o[1]*Math.cos(n)-o[2]*Math.sin(n),i[2]=o[1]*Math.sin(n)+o[2]*Math.cos(n),e[0]=i[0]+t[0],e[1]=i[1]+t[1],e[2]=i[2]+t[2],e},rotateY:function(e,r,t,n){const o=[],i=[];return o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2],i[0]=o[2]*Math.sin(n)+o[0]*Math.cos(n),i[1]=o[1],i[2]=o[2]*Math.cos(n)-o[0]*Math.sin(n),e[0]=i[0]+t[0],e[1]=i[1]+t[1],e[2]=i[2]+t[2],e},rotateZ:function(e,r,t,n){const o=[],i=[];return o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2],i[0]=o[0]*Math.cos(n)-o[1]*Math.sin(n),i[1]=o[0]*Math.sin(n)+o[1]*Math.cos(n),i[2]=o[2],e[0]=i[0]+t[0],e[1]=i[1]+t[1],e[2]=i[2]+t[2],e},round:function(e,r){return e[0]=Math.round(r[0]),e[1]=Math.round(r[1]),e[2]=Math.round(r[2]),e},scale:h,scaleAndAdd:d,set:a,sign:function(e,r){return e[0]=Math.sign(r[0]),e[1]=Math.sign(r[1]),e[2]=Math.sign(r[2]),e},sqrDist:O,sqrLen:W,squaredDistance:m,squaredLength:_,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:E,subtract:u,transformMat3:b,transformMat4:w,transformQuat:C},Symbol.toStringTag,{value:"Module"}))},65617:(e,r,t)=>{function n(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function i(e,r,t){return[e,r,t]}function s(e){const r=[0,0,0],t=Math.min(3,e.length);for(let n=0;n<t;++n)r[n]=e[n];return r}function a(e,r){return new Float64Array(e,r,3)}function f(){return i(1,1,1)}function u(){return i(1,0,0)}function l(){return i(0,1,0)}function c(){return i(0,0,1)}t.d(r,{O:()=>d,U:()=>_,Z:()=>h,a:()=>o,b:()=>a,c:()=>n,d:()=>M,e:()=>m,f:()=>i,g:()=>s});const h=[0,0,0],d=f(),M=u(),m=l(),_=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:M,UNIT_Y:m,UNIT_Z:_,ZEROS:h,clone:o,create:n,createView:a,fromArray:s,fromValues:i,ones:f,unitX:u,unitY:l,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},98766:(e,r,t)=>{t.d(r,{a:()=>s,b:()=>l,c:()=>o,d:()=>_,e:()=>d,f:()=>M,g:()=>y,h:()=>S,l:()=>p,n:()=>m,s:()=>i});var n=t(46851);function o(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e}function i(e,r,t,n,o){return e[0]=r,e[1]=t,e[2]=n,e[3]=o,e}function s(e,r,t){return e[0]=r[0]+t[0],e[1]=r[1]+t[1],e[2]=r[2]+t[2],e[3]=r[3]+t[3],e}function a(e,r,t){return e[0]=r[0]-t[0],e[1]=r[1]-t[1],e[2]=r[2]-t[2],e[3]=r[3]-t[3],e}function f(e,r,t){return e[0]=r[0]*t[0],e[1]=r[1]*t[1],e[2]=r[2]*t[2],e[3]=r[3]*t[3],e}function u(e,r,t){return e[0]=r[0]/t[0],e[1]=r[1]/t[1],e[2]=r[2]/t[2],e[3]=r[3]/t[3],e}function l(e,r,t){return e[0]=r[0]*t,e[1]=r[1]*t,e[2]=r[2]*t,e[3]=r[3]*t,e}function c(e,r){const t=r[0]-e[0],n=r[1]-e[1],o=r[2]-e[2],i=r[3]-e[3];return Math.sqrt(t*t+n*n+o*o+i*i)}function h(e,r){const t=r[0]-e[0],n=r[1]-e[1],o=r[2]-e[2],i=r[3]-e[3];return t*t+n*n+o*o+i*i}function d(e){const r=e[0],t=e[1],n=e[2],o=e[3];return Math.sqrt(r*r+t*t+n*n+o*o)}function M(e){const r=e[0],t=e[1],n=e[2],o=e[3];return r*r+t*t+n*n+o*o}function m(e,r){const t=r[0],n=r[1],o=r[2],i=r[3];let s=t*t+n*n+o*o+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t*s,e[1]=n*s,e[2]=o*s,e[3]=i*s),e}function _(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]}function p(e,r,t,n){const o=r[0],i=r[1],s=r[2],a=r[3];return e[0]=o+n*(t[0]-o),e[1]=i+n*(t[1]-i),e[2]=s+n*(t[2]-s),e[3]=a+n*(t[3]-a),e}function y(e,r){return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]}function S(e,r){const t=e[0],o=e[1],i=e[2],s=e[3],a=r[0],f=r[1],u=r[2],l=r[3],c=(0,n.g)();return Math.abs(t-a)<=c*Math.max(1,Math.abs(t),Math.abs(a))&&Math.abs(o-f)<=c*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-l)<=c*Math.max(1,Math.abs(s),Math.abs(l))}const g=a,w=f,b=u,C=c,R=h,k=d,G=M;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,r){return e[0]=Math.ceil(r[0]),e[1]=Math.ceil(r[1]),e[2]=Math.ceil(r[2]),e[3]=Math.ceil(r[3]),e},copy:o,dist:C,distance:c,div:b,divide:u,dot:_,equals:S,exactEquals:y,floor:function(e,r){return e[0]=Math.floor(r[0]),e[1]=Math.floor(r[1]),e[2]=Math.floor(r[2]),e[3]=Math.floor(r[3]),e},inverse:function(e,r){return e[0]=1/r[0],e[1]=1/r[1],e[2]=1/r[2],e[3]=1/r[3],e},len:k,length:d,lerp:p,max:function(e,r,t){return e[0]=Math.max(r[0],t[0]),e[1]=Math.max(r[1],t[1]),e[2]=Math.max(r[2],t[2]),e[3]=Math.max(r[3],t[3]),e},min:function(e,r,t){return e[0]=Math.min(r[0],t[0]),e[1]=Math.min(r[1],t[1]),e[2]=Math.min(r[2],t[2]),e[3]=Math.min(r[3],t[3]),e},mul:w,multiply:f,negate:function(e,r){return e[0]=-r[0],e[1]=-r[1],e[2]=-r[2],e[3]=-r[3],e},normalize:m,random:function(e,r){const t=n.R;let o,i,s,a,f,u;r=r||1;do{o=2*t()-1,i=2*t()-1,f=o*o+i*i}while(f>=1);do{s=2*t()-1,a=2*t()-1,u=s*s+a*a}while(u>=1);const l=Math.sqrt((1-f)/u);return e[0]=r*o,e[1]=r*i,e[2]=r*s*l,e[3]=r*a*l,e},round:function(e,r){return e[0]=Math.round(r[0]),e[1]=Math.round(r[1]),e[2]=Math.round(r[2]),e[3]=Math.round(r[3]),e},scale:l,scaleAndAdd:function(e,r,t,n){return e[0]=r[0]+t[0]*n,e[1]=r[1]+t[1]*n,e[2]=r[2]+t[2]*n,e[3]=r[3]+t[3]*n,e},set:i,sqrDist:R,sqrLen:G,squaredDistance:h,squaredLength:M,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:g,subtract:a,transformMat4:function(e,r,t){const n=r[0],o=r[1],i=r[2],s=r[3];return e[0]=t[0]*n+t[4]*o+t[8]*i+t[12]*s,e[1]=t[1]*n+t[5]*o+t[9]*i+t[13]*s,e[2]=t[2]*n+t[6]*o+t[10]*i+t[14]*s,e[3]=t[3]*n+t[7]*o+t[11]*i+t[15]*s,e},transformQuat:function(e,r,t){const n=r[0],o=r[1],i=r[2],s=t[0],a=t[1],f=t[2],u=t[3],l=u*n+a*i-f*o,c=u*o+f*n-s*i,h=u*i+s*o-a*n,d=-s*n-a*o-f*i;return e[0]=l*u+d*-s+c*-f-h*-a,e[1]=c*u+d*-a+h*-s-l*-f,e[2]=h*u+d*-f+l*-a-c*-s,e[3]=r[3],e}},Symbol.toStringTag,{value:"Module"}))},36030:(e,r,t)=>{t.d(r,{J:()=>i});var n=t(35454),o=t(5600);function i(e,r={}){const t=e instanceof n.X?e:new n.X(e,r),i={type:r?.ignoreUnknown??1?t.apiValues:String,json:{type:t.jsonValues,read:!r?.readOnly&&{reader:t.read},write:{writer:t.write}}};return void 0!==r?.readOnly&&(i.readOnly=!!r.readOnly),void 0!==r?.default&&(i.json.default=r.default),void 0!==r?.name&&(i.json.name=r.name),void 0!==r?.nonNullable&&(i.nonNullable=r.nonNullable),(0,o.Cb)(i)}},71715:(e,r,t)=>{t.d(r,{r:()=>o});var n=t(5600);function o(e,r,t){let o,i;return void 0===r||Array.isArray(r)?(i=e,t=r,o=[void 0]):(i=r,o=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;o.forEach((o=>{const a=(0,n.CJ)(e,o,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=s[r],t&&(a.read.source=(a.read.source||[]).concat(t))}))}}},30556:(e,r,t)=>{t.d(r,{c:()=>o});var n=t(5600);function o(e,r,t){let o,i;return void 0===r?(i=e,o=[void 0]):"string"!=typeof r?(i=e,o=[void 0],t=r):(i=r,o=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;for(const a of o){const o=(0,n.CJ)(e,a,i);o.write&&"object"==typeof o.write||(o.write={}),t&&(o.write.target=t),o.write.writer=s[r]}}}},22021:(e,r,t)=>{t.d(r,{BV:()=>l,Kt:()=>h,Sf:()=>i,Vl:()=>u,ZF:()=>c,_3:()=>g,jE:()=>y,oK:()=>_,oc:()=>S,t7:()=>f,uZ:()=>s,wt:()=>a});var n=t(17896);t(98766);const o=new Float32Array(1);function i(e){--e;for(let r=1;r<32;r<<=1)e|=e>>r;return e+1}function s(e,r,t){return Math.min(Math.max(e,r),t)}function a(e){return 0==(e&e-1)}function f(e,r,t){return e+(r-e)*t}function u(e){return e*Math.PI/180}function l(e){return 180*e/Math.PI}function c(e){return Math.acos(s(e,-1,1))}function h(e){return Math.asin(s(e,-1,1))}function d(e,r,t=1e-6){return e===r||!(!Number.isFinite(e)||!Number.isFinite(r))&&(e>r?e-r:r-e)<=t}const M=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const m=BigInt("1000000");function _(e){return p(Math.max(-g,Math.min(e,g)))}function p(e){return o[0]=e,o[0]}function y(e,r){const t=(0,n.l)(e),o=h(e[2]/t),i=Math.atan2(e[1]/t,e[0]/t);return(0,n.s)(r,t,o,i),r}function S(e){const r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],t=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],n=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(d(r,1)&&d(t,1)&&d(n,1))}!function(e){const r=function(e){return M.setFloat64(0,e),M.getBigInt64(0)}(e=Math.abs(e)),t=function(e){return M.setBigInt64(0,e),M.getFloat64(0)}(r<=m?m:r-m);Math.abs(e-t)}(1);const g=p(34028234663852886e22)},67900:(e,r,t)=>{t.d(r,{$C:()=>C,CN:()=>I,En:()=>w,Jo:()=>T,_R:()=>R,c9:()=>G,cM:()=>k,gV:()=>W,hd:()=>f,qE:()=>P,r6:()=>A,ty:()=>b}),t(80442);var n=t(35454),o=t(2109),i=t(68441),s=t(8744),a=t(58116);const f=39.37,u=i.sv.radius*Math.PI/200,l=/UNIT\[([^\]]+)\]\]$/i,c=a.Z,h=/UNIT\[([^\]]+)\]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),M=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),m=e=>e*e,_=e=>e*e*e,p={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:m(.001)},"square-centimeters":{inBaseUnits:m(.01)},"square-decimeters":{inBaseUnits:m(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:m(1e3)},"square-inches":{inBaseUnits:m(.0254)},"square-feet":{inBaseUnits:m(.3048)},"square-yards":{inBaseUnits:m(.9144)},"square-miles":{inBaseUnits:m(1609.344)},"square-us-feet":{inBaseUnits:m(1200/3937)},acres:{inBaseUnits:.0015625*m(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*_(.001)},"cubic-centimeters":{inBaseUnits:1e3*_(.01)},"cubic-decimeters":{inBaseUnits:1e3*_(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*_(1e3)},"cubic-inches":{inBaseUnits:1e3*_(.0254)},"cubic-feet":{inBaseUnits:1e3*_(.3048)},"cubic-yards":{inBaseUnits:1e3*_(.9144)},"cubic-miles":{inBaseUnits:1e3*_(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},y=(()=>{const e={};for(const r in p)for(const t in p[r].units)e[t]=r;return e})();function S(e){const r=y[e];if(!r)throw new Error("unknown type");return r}function g(e,r=null){return r=r||S(e),p[r].baseUnit===e}function w(e,r,t){if(r===t)return e;const n=S(r);if(n!==S(t))throw new Error("incompatible units");const o=g(r,n)?e:function(e,r,t){return e*p[t].units[r].inBaseUnits}(e,r,n);return g(t,n)?o:function(e,r,t){return e/p[t].units[r].inBaseUnits}(o,t,n)}function b(e,r,t){return w(e,r,"meters")/(t*Math.PI/180)}function C(e){return M.fromJSON(e.toLowerCase())||null}function R(e){if(null!=e&&!(0,s.N$)(e))return 1;const r=G(e);return r>1e5?1:r}function k(e){return G(e)>=(0,o.Iu)(e).metersPerDegree?"meters":P(e)}function G(e,r=i.sv.metersPerDegree){return function(e,r=!1){const t=null!=e?e.wkid:null,n=null!=e?e.wkt:null;let o=null;if(t){if((0,s.o$)(t))return i.yr.metersPerDegree;if((0,s.ME)(t))return i.Z1.metersPerDegree;o=c.values[c[t]],!o&&r&&d.has(t)&&(o=u)}else n&&(O(n)?o=E(l.exec(n),o):v(n)&&(o=E(h.exec(n),o)));return o}(e,!0)??r}function A(e){return e.isGeographic?1:G(e)}function E(e,r){return e&&e[1]?x(e[1]):r}function x(e){return parseFloat(e.split(",")[1])}function P(e){const r=null!=e?e.wkid:null,t=null!=e?e.wkt:null;let n=null;if(r)n=c.units[c[r]];else if(t){const e=O(t)?l:v(t)?h:null;if(e){const r=e.exec(t);r&&r[1]&&(n=function(e){const r=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let t=r&&r[1];if(!t||!c.units.includes(t)){const r=x(e);t=null;const n=c.values;for(let e=0;e<n.length;++e)if(Math.abs(r-n[e])<U){t=c.units[e];break}}return t}(r[1]))}}return null!=n?C(n):null}function v(e){return/^GEOCCS/i.test(e)}function O(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const U=1e-7,W=(0,n.w)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),T=(0,n.w)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),I=(0,n.w)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},9361:(e,r,t)=>{t.d(r,{Z:()=>l});var n=t(43697),o=t(96674),i=t(5600),s=(t(75215),t(67676),t(80442),t(71715)),a=t(52011),f=t(82971);let u=class extends o.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=f.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,r){if(e instanceof f.Z)return e;if(null!=e){const t=new f.Z;return t.read(e,r),t}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,r){this.cache[e]=r}};(0,n._)([(0,i.Cb)()],u.prototype,"type",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,n._)([(0,i.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,n._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,n._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,n._)([(0,i.Cb)({type:f.Z,json:{write:!0},value:f.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,n._)([(0,s.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,n._)([(0,a.j)("esri.geometry.Geometry")],u);const l=u},94139:(e,r,t)=>{t.d(r,{Z:()=>S});var n,o=t(43697),i=t(92604),s=t(5600),a=t(90578),f=(t(67676),t(80442),t(71715)),u=t(52011),l=t(30556),c=t(75215),h=t(9361),d=t(82971),M=t(8744),m=t(40488);const _=[0,0];function p(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let y=n=class extends h.Z{static copy(e,r){r._set("x",e._get("x")),r._set("y",e._get("y")),r._set("z",e._get("z")),r._set("m",e._get("m"));const t=e._get("spatialReference");r._set("spatialReference",Object.isFrozen(t)?t:t.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,r,t,n,o){let s;if(Array.isArray(e))s=e,o=r,e=s[0],r=s[1],t=s[2],n=s[3];else if(e&&"object"==typeof e){if(s=e,e=null!=s.x?s.x:s.longitude,r=null!=s.y?s.y:s.latitude,t=s.z,n=s.m,(o=s.spatialReference)&&"esri.geometry.SpatialReference"!==o.declaredClass&&(o=new d.Z(o)),null!=s.longitude||null!=s.latitude)if(null==s.longitude)i.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==s.latitude)i.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!s.declaredClass&&o&&o.isWebMercator){const t=(0,m.hG)(s.longitude,s.latitude,_);e=t[0],r=t[1]}}else p(t)?(o=t,t=null):p(n)&&(o=n,n=null);const a={x:e,y:r};return null==a.x&&null!=a.y?i.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&i.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=o&&(a.spatialReference=o),null!=t&&(a.z=t),null!=n&&(a.m=n),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){const{spatialReference:e,x:r,y:t}=this;if(e){if(e.isWebMercator)return(0,m.R6)(r,t,_)[1];if(e.isGeographic)return t}return null}set latitude(e){const{spatialReference:r,x:t}=this;null!=e&&r&&(r.isWebMercator?this._set("y",(0,m.hG)(t,e,_)[1]):r.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:r,spatialReference:t}=this;if(t){if(t.isWebMercator)return(0,m.R6)(e,r,_)[0];if(t.isGeographic)return e}return null}set longitude(e){const{y:r,spatialReference:t}=this;null!=e&&t&&(t.isWebMercator?this._set("x",(0,m.hG)(e,r,_)[0]):t.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,r,t){r[t]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new n;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return n.copy(e,this),this}equals(e){if(null==e)return!1;const{x:r,y:t,z:n,m:o,spatialReference:i}=this,{z:s,m:a}=e;let{x:f,y:u,spatialReference:l}=e;if(!i.equals(l))if(i.isWebMercator&&l.isWGS84)[f,u]=(0,m.hG)(f,u),l=i;else{if(!i.isWGS84||!l.isWebMercator)return!1;[f,u]=(0,m.R6)(f,u),l=i}return r===f&&t===u&&n===s&&o===a&&i.wkid===l.wkid}offset(e,r,t){return this.x+=e,this.y+=r,null!=t&&(this.z=(this.z??0)+t),this}normalize(){if(!this.spatialReference)return this;const e=(0,M.C5)(this.spatialReference);if(!e)return this;let r=this.x;const[t,n]=e.valid,o=2*n;let i;return r>n?(i=Math.ceil(Math.abs(r-n)/o),r-=i*o):r<t&&(i=Math.ceil(Math.abs(r-t)/o),r+=i*o),this._set("x",r),this}distance(e){return function(e,r){const t=e.x-r.x,n=e.y-r.y,o=e.hasZ&&r.hasZ?e.z-r.z:0;return Math.sqrt(t*t+n*n+o*o)}(this,e)}toArray(){const e=this.hasZ,r=this.hasM;return e&&r?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:r?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,o._)([(0,s.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,o._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasM",null),(0,o._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],y.prototype,"hasZ",null),(0,o._)([(0,s.Cb)({type:Number})],y.prototype,"latitude",null),(0,o._)([(0,s.Cb)({type:Number})],y.prototype,"longitude",null),(0,o._)([(0,s.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((e=>isNaN(e)?e:(0,c.q9)(e)))],y.prototype,"x",void 0),(0,o._)([(0,l.c)("x")],y.prototype,"writeX",null),(0,o._)([(0,f.r)("x")],y.prototype,"readX",null),(0,o._)([(0,s.Cb)({type:Number,json:{write:!0}})],y.prototype,"y",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],y.prototype,"z",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],y.prototype,"m",void 0),y=n=(0,o._)([(0,u.j)("esri.geometry.Point")],y),y.prototype.toJSON.isDefaultToJSON=!0;const S=y},82971:(e,r,t)=>{t.d(r,{Z:()=>M});var n,o=t(43697),i=t(96674),s=t(22974),a=t(67900),f=t(75215),u=t(5600),l=t(52011),c=t(30556),h=t(8744);let d=n=class extends i.wq{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return n.WebMercator;if(4326===e.wkid)return n.WGS84}const r=new n;return r.read(e),r}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,h.oR)(this)}get isWebMercator(){return(0,h.sS)(this)}get isGeographic(){return(0,h.sT)(this)}get isWrappable(){return(0,h.MP)(this)}get metersPerUnit(){return(0,a.c9)(this)}get unit(){return(0,a.qE)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,r){this.wkid||(r.wkt=e)}clone(){if(this===n.WGS84)return n.WGS84;if(this===n.WebMercator)return n.WebMercator;const e=new n;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):null!=this.wkt&&(e.wkt=this.wkt),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,s.d9)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:r,referenceServiceName:t}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,o=this.imageCoordinateSystem;return null==r||n?JSON.stringify(o)===JSON.stringify(e.imageCoordinateSystem):t?o.id===r&&o.referenceServiceName===t:o.id===r}return(0,h.fS)(this,e)}toJSON(e){return this.write(void 0,e)}};d.GCS_NAD_1927=null,d.WGS84=null,d.WebMercator=null,d.PlateCarree=null,(0,o._)([(0,u.Cb)({readOnly:!0})],d.prototype,"isWGS84",null),(0,o._)([(0,u.Cb)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,o._)([(0,u.Cb)({readOnly:!0})],d.prototype,"isGeographic",null),(0,o._)([(0,u.Cb)({readOnly:!0})],d.prototype,"isWrappable",null),(0,o._)([(0,u.Cb)({type:f.z8,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,o._)([(0,u.Cb)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,o._)([(0,u.Cb)({readOnly:!0})],d.prototype,"unit",null),(0,o._)([(0,u.Cb)({type:f.z8,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,o._)([(0,u.Cb)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,o._)([(0,c.c)("wkt"),(0,c.c)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,o._)([(0,u.Cb)({type:f.z8,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,o._)([(0,u.Cb)({type:f.z8,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,o._)([(0,u.Cb)()],d.prototype,"imageCoordinateSystem",void 0),d=n=(0,o._)([(0,l.j)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),d.WGS84=new d(h.Zn),d.WebMercator=new d(h.R_),d.PlateCarree=new d(h.WR),Object.freeze&&(Object.freeze(d.GCS_NAD_1927),Object.freeze(d.WGS84),Object.freeze(d.WebMercator));const M=d},2109:(e,r,t)=>{t.d(r,{Iu:()=>l,JL:()=>a,e8:()=>c,kU:()=>s,mM:()=>f,pn:()=>u});var n=t(68441),o=t(8744);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(n.sv),a=i(n.yr),f=i(n.Z1),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${n.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`};function l(e){return null!=e&&((0,o.BZ)(e)||(0,o.fS)(e,a))?n.yr:null!=e&&((0,o.V2)(e)||(0,o.fS)(e,f))?n.Z1:n.sv}function c(e){return(0,o.o$)(e)?n.yr:(0,o.ME)(e)?n.Z1:n.sv}},68441:(e,r,t)=>{t.d(r,{Z1:()=>s,sv:()=>o,yr:()=>i});class n{constructor(e,r,t,n){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=t;const o=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*o,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=n||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const o=new n(6378137,1/298.257223563,3e5,.006694379990137799),i=new n(3396190,1/169.8944472236118,23e4),s=new n(1737400,0,0)},56726:(e,r,t)=>{var n;t.d(r,{W:()=>n}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(n||(n={}))},58116:(e,r,t)=>{let n;t.d(r,{Z:()=>o});const o={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5167:0,5168:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2};for(n=2e3;n<=2045;n++)o[n]=0;for(n=2056;n<=2065;n++)o[n]=0;for(n=2067;n<=2135;n++)o[n]=0;for(n=2137;n<=2154;n++)o[n]=0;for(n=2161;n<=2170;n++)o[n]=0;for(n=2172;n<=2193;n++)o[n]=0;for(n=2195;n<=2198;n++)o[n]=0;for(n=2200;n<=2203;n++)o[n]=0;for(n=2205;n<=2217;n++)o[n]=0;for(n=2222;n<=2224;n++)o[n]=1;for(n=2225;n<=2250;n++)o[n]=2;for(n=2251;n<=2253;n++)o[n]=1;for(n=2257;n<=2264;n++)o[n]=2;for(n=2274;n<=2279;n++)o[n]=2;for(n=2280;n<=2282;n++)o[n]=1;for(n=2283;n<=2289;n++)o[n]=2;for(n=2290;n<=2292;n++)o[n]=0;for(n=2308;n<=2313;n++)o[n]=0;for(n=2315;n<=2491;n++)o[n]=0;for(n=2494;n<=2866;n++)o[n]=0;for(n=2867;n<=2869;n++)o[n]=1;for(n=2870;n<=2888;n++)o[n]=2;for(n=2891;n<=2895;n++)o[n]=2;for(n=2896;n<=2898;n++)o[n]=1;for(n=2902;n<=2908;n++)o[n]=2;for(n=2915;n<=2920;n++)o[n]=2;for(n=2921;n<=2923;n++)o[n]=1;for(n=2924;n<=2930;n++)o[n]=2;for(n=2931;n<=2962;n++)o[n]=0;for(n=2964;n<=2968;n++)o[n]=2;for(n=2969;n<=2973;n++)o[n]=0;for(n=2975;n<=2991;n++)o[n]=0;for(n=2995;n<=3051;n++)o[n]=0;for(n=3054;n<=3079;n++)o[n]=0;for(n=3081;n<=3088;n++)o[n]=0;for(n=3092;n<=3101;n++)o[n]=0;for(n=3106;n<=3138;n++)o[n]=0;for(n=3146;n<=3151;n++)o[n]=0;for(n=3153;n<=3166;n++)o[n]=0;for(n=3168;n<=3172;n++)o[n]=0;for(n=3174;n<=3203;n++)o[n]=0;for(n=3294;n<=3358;n++)o[n]=0;for(n=3367;n<=3403;n++)o[n]=0;for(n=3408;n<=3416;n++)o[n]=0;for(n=3417;n<=3438;n++)o[n]=2;for(n=3441;n<=3446;n++)o[n]=2;for(n=3447;n<=3450;n++)o[n]=0;for(n=3451;n<=3459;n++)o[n]=2;for(n=3460;n<=3478;n++)o[n]=0;for(n=3554;n<=3559;n++)o[n]=0;for(n=3560;n<=3570;n++)o[n]=2;for(n=3571;n<=3581;n++)o[n]=0;for(n=3594;n<=3597;n++)o[n]=0;for(n=3601;n<=3604;n++)o[n]=0;for(n=3637;n<=3639;n++)o[n]=0;for(n=3665;n<=3667;n++)o[n]=0;for(n=3693;n<=3695;n++)o[n]=0;for(n=3701;n<=3727;n++)o[n]=0;for(n=3728;n<=3739;n++)o[n]=2;for(n=3740;n<=3751;n++)o[n]=0;for(n=3753;n<=3760;n++)o[n]=2;for(n=3761;n<=3773;n++)o[n]=0;for(n=3775;n<=3777;n++)o[n]=0;for(n=3779;n<=3781;n++)o[n]=0;for(n=3783;n<=3785;n++)o[n]=0;for(n=3788;n<=3791;n++)o[n]=0;for(n=3797;n<=3802;n++)o[n]=0;for(n=3814;n<=3816;n++)o[n]=0;for(n=3825;n<=3829;n++)o[n]=0;for(n=3832;n<=3841;n++)o[n]=0;for(n=3844;n<=3852;n++)o[n]=0;for(n=3873;n<=3885;n++)o[n]=0;for(n=3890;n<=3893;n++)o[n]=0;for(n=3907;n<=3912;n++)o[n]=0;for(n=3942;n<=3950;n++)o[n]=0;for(n=3968;n<=3970;n++)o[n]=0;for(n=3973;n<=3976;n++)o[n]=0;for(n=3986;n<=3989;n++)o[n]=0;for(n=3994;n<=3997;n++)o[n]=0;for(n=4048;n<=4051;n++)o[n]=0;for(n=4056;n<=4063;n++)o[n]=0;for(n=4093;n<=4096;n++)o[n]=0;for(n=4390;n<=4398;n++)o[n]=0;for(n=4399;n<=4413;n++)o[n]=2;for(n=4418;n<=4433;n++)o[n]=2;for(n=4455;n<=4457;n++)o[n]=2;for(n=4484;n<=4489;n++)o[n]=0;for(n=4491;n<=4554;n++)o[n]=0;for(n=4568;n<=4589;n++)o[n]=0;for(n=4652;n<=4656;n++)o[n]=0;for(n=4766;n<=4800;n++)o[n]=0;for(n=5014;n<=5016;n++)o[n]=0;for(n=5069;n<=5072;n++)o[n]=0;for(n=5105;n<=5130;n++)o[n]=0;for(n=5173;n<=5188;n++)o[n]=0;for(n=5253;n<=5259;n++)o[n]=0;for(n=5269;n<=5275;n++)o[n]=0;for(n=5292;n<=5311;n++)o[n]=0;for(n=5329;n<=5331;n++)o[n]=0;for(n=5343;n<=5349;n++)o[n]=0;for(n=5355;n<=5357;n++)o[n]=0;for(n=5387;n<=5389;n++)o[n]=0;for(n=5459;n<=5463;n++)o[n]=0;for(n=5479;n<=5482;n++)o[n]=0;for(n=5518;n<=5520;n++)o[n]=0;for(n=5530;n<=5539;n++)o[n]=0;for(n=5550;n<=5552;n++)o[n]=0;for(n=5562;n<=5583;n++)o[n]=0;for(n=5623;n<=5625;n++)o[n]=2;for(n=5631;n<=5639;n++)o[n]=0;for(n=5649;n<=5653;n++)o[n]=0;for(n=5663;n<=5680;n++)o[n]=0;for(n=5682;n<=5685;n++)o[n]=0;for(n=5875;n<=5877;n++)o[n]=0;for(n=5896;n<=5899;n++)o[n]=0;for(n=5921;n<=5940;n++)o[n]=0;for(n=6050;n<=6125;n++)o[n]=0;for(n=6244;n<=6275;n++)o[n]=0;for(n=6328;n<=6348;n++)o[n]=0;for(n=6350;n<=6356;n++)o[n]=0;for(n=6366;n<=6372;n++)o[n]=0;for(n=6381;n<=6387;n++)o[n]=0;for(n=6393;n<=6404;n++)o[n]=0;for(n=6480;n<=6483;n++)o[n]=0;for(n=6511;n<=6514;n++)o[n]=0;for(n=6579;n<=6581;n++)o[n]=0;for(n=6619;n<=6624;n++)o[n]=0;for(n=6625;n<=6627;n++)o[n]=2;for(n=6628;n<=6632;n++)o[n]=0;for(n=6634;n<=6637;n++)o[n]=0;for(n=6669;n<=6692;n++)o[n]=0;for(n=6707;n<=6709;n++)o[n]=0;for(n=6720;n<=6723;n++)o[n]=0;for(n=6732;n<=6738;n++)o[n]=0;for(n=6931;n<=6933;n++)o[n]=0;for(n=6956;n<=6959;n++)o[n]=0;for(n=7005;n<=7007;n++)o[n]=0;for(n=7057;n<=7070;n++)o[n]=2;for(n=7074;n<=7082;n++)o[n]=0;for(n=7109;n<=7118;n++)o[n]=0;for(n=7119;n<=7127;n++)o[n]=1;for(n=7374;n<=7376;n++)o[n]=0;for(n=7528;n<=7586;n++)o[n]=0;for(n=7587;n<=7645;n++)o[n]=2;for(n=7692;n<=7696;n++)o[n]=0;for(n=7755;n<=7787;n++)o[n]=0;for(n=7791;n<=7795;n++)o[n]=0;for(n=7799;n<=7801;n++)o[n]=0;for(n=7803;n<=7805;n++)o[n]=0;for(n=7825;n<=7831;n++)o[n]=0;for(n=7845;n<=7859;n++)o[n]=0;for(n=8013;n<=8032;n++)o[n]=0;for(n=8065;n<=8068;n++)o[n]=1;for(n=8518;n<=8529;n++)o[n]=2;for(n=8533;n<=8536;n++)o[n]=2;for(n=8538;n<=8540;n++)o[n]=2;for(n=8677;n<=8679;n++)o[n]=0;for(n=8836;n<=8840;n++)o[n]=0;for(n=8857;n<=8859;n++)o[n]=0;for(n=8908;n<=8910;n++)o[n]=0;for(n=9154;n<=9159;n++)o[n]=0;for(n=9205;n<=9218;n++)o[n]=0;for(n=9271;n<=9273;n++)o[n]=0;for(n=9295;n<=9297;n++)o[n]=0;for(n=9356;n<=9360;n++)o[n]=0;for(n=9404;n<=9407;n++)o[n]=0;for(n=9476;n<=9482;n++)o[n]=0;for(n=9487;n<=9494;n++)o[n]=0;for(n=9697;n<=9699;n++)o[n]=0;for(n=9821;n<=9865;n++)o[n]=0;for(n=20002;n<=20032;n++)o[n]=0;for(n=20047;n<=20049;n++)o[n]=0;for(n=20062;n<=20092;n++)o[n]=0;for(n=20135;n<=20138;n++)o[n]=0;for(n=20248;n<=20258;n++)o[n]=0;for(n=20348;n<=20358;n++)o[n]=0;for(n=20436;n<=20440;n++)o[n]=0;for(n=20822;n<=20824;n++)o[n]=0;for(n=20904;n<=20932;n++)o[n]=0;for(n=20934;n<=20936;n++)o[n]=0;for(n=21004;n<=21032;n++)o[n]=0;for(n=21035;n<=21037;n++)o[n]=0;for(n=21095;n<=21097;n++)o[n]=0;for(n=21148;n<=21150;n++)o[n]=0;for(n=21207;n<=21264;n++)o[n]=0;for(n=21307;n<=21364;n++)o[n]=0;for(n=21413;n<=21423;n++)o[n]=0;for(n=21453;n<=21463;n++)o[n]=0;for(n=21473;n<=21483;n++)o[n]=0;for(n=21780;n<=21782;n++)o[n]=0;for(n=21891;n<=21894;n++)o[n]=0;for(n=21896;n<=21899;n++)o[n]=0;for(n=22171;n<=22177;n++)o[n]=0;for(n=22181;n<=22187;n++)o[n]=0;for(n=22191;n<=22197;n++)o[n]=0;for(n=22207;n<=22222;n++)o[n]=0;for(n=22234;n<=22236;n++)o[n]=0;for(n=22243;n<=22250;n++)o[n]=0;for(n=22262;n<=22265;n++)o[n]=0;for(n=22307;n<=22322;n++)o[n]=0;for(n=22348;n<=22357;n++)o[n]=0;for(n=22407;n<=22422;n++)o[n]=0;for(n=22462;n<=22465;n++)o[n]=0;for(n=22521;n<=22525;n++)o[n]=0;for(n=22607;n<=22622;n++)o[n]=0;for(n=22641;n<=22646;n++)o[n]=0;for(n=22648;n<=22657;n++)o[n]=0;for(n=22707;n<=22722;n++)o[n]=0;for(n=22762;n<=22765;n++)o[n]=0;for(n=22991;n<=22994;n++)o[n]=0;for(n=23028;n<=23038;n++)o[n]=0;for(n=23830;n<=23853;n++)o[n]=0;for(n=23866;n<=23872;n++)o[n]=0;for(n=23877;n<=23884;n++)o[n]=0;for(n=23886;n<=23894;n++)o[n]=0;for(n=23946;n<=23948;n++)o[n]=0;for(n=24311;n<=24313;n++)o[n]=0;for(n=24342;n<=24347;n++)o[n]=0;for(n=24370;n<=24374;n++)o[n]=10;for(n=24375;n<=24381;n++)o[n]=0;for(n=24718;n<=24721;n++)o[n]=0;for(n=24817;n<=24821;n++)o[n]=0;for(n=24877;n<=24882;n++)o[n]=0;for(n=24891;n<=24893;n++)o[n]=0;for(n=25391;n<=25395;n++)o[n]=0;for(n=25828;n<=25838;n++)o[n]=0;for(n=26191;n<=26195;n++)o[n]=0;for(n=26391;n<=26393;n++)o[n]=0;for(n=26701;n<=26722;n++)o[n]=0;for(n=26729;n<=26799;n++)o[n]=2;for(n=26801;n<=26803;n++)o[n]=2;for(n=26811;n<=26813;n++)o[n]=2;for(n=26847;n<=26870;n++)o[n]=2;for(n=26891;n<=26899;n++)o[n]=0;for(n=26901;n<=26923;n++)o[n]=0;for(n=26929;n<=26946;n++)o[n]=0;for(n=26948;n<=26998;n++)o[n]=0;for(n=27037;n<=27040;n++)o[n]=0;for(n=27205;n<=27232;n++)o[n]=0;for(n=27258;n<=27260;n++)o[n]=0;for(n=27391;n<=27398;n++)o[n]=0;for(n=27561;n<=27564;n++)o[n]=0;for(n=27571;n<=27574;n++)o[n]=0;for(n=27581;n<=27584;n++)o[n]=0;for(n=27591;n<=27594;n++)o[n]=0;for(n=28191;n<=28193;n++)o[n]=0;for(n=28348;n<=28358;n++)o[n]=0;for(n=28402;n<=28432;n++)o[n]=0;for(n=28462;n<=28492;n++)o[n]=0;for(n=29118;n<=29122;n++)o[n]=0;for(n=29168;n<=29172;n++)o[n]=0;for(n=29177;n<=29185;n++)o[n]=0;for(n=29187;n<=29195;n++)o[n]=0;for(n=29900;n<=29903;n++)o[n]=0;for(n=30161;n<=30179;n++)o[n]=0;for(n=30491;n<=30494;n++)o[n]=0;for(n=30729;n<=30732;n++)o[n]=0;for(n=31251;n<=31259;n++)o[n]=0;for(n=31265;n<=31268;n++)o[n]=0;for(n=31275;n<=31279;n++)o[n]=0;for(n=31281;n<=31297;n++)o[n]=0;for(n=31461;n<=31469;n++)o[n]=0;for(n=31491;n<=31495;n++)o[n]=0;for(n=31917;n<=31922;n++)o[n]=0;for(n=31965;n<=32e3;n++)o[n]=0;for(n=32001;n<=32003;n++)o[n]=2;for(n=32005;n<=32031;n++)o[n]=2;for(n=32033;n<=32060;n++)o[n]=2;for(n=32064;n<=32067;n++)o[n]=2;for(n=32074;n<=32077;n++)o[n]=2;for(n=32081;n<=32086;n++)o[n]=0;for(n=32107;n<=32130;n++)o[n]=0;for(n=32133;n<=32159;n++)o[n]=0;for(n=32164;n<=32167;n++)o[n]=2;for(n=32180;n<=32199;n++)o[n]=0;for(n=32201;n<=32260;n++)o[n]=0;for(n=32301;n<=32360;n++)o[n]=0;for(n=32601;n<=32662;n++)o[n]=0;for(n=32664;n<=32667;n++)o[n]=2;for(n=32701;n<=32761;n++)o[n]=0;for(n=53001;n<=53004;n++)o[n]=0;for(n=53008;n<=53019;n++)o[n]=0;for(n=53021;n<=53032;n++)o[n]=0;for(n=53034;n<=53037;n++)o[n]=0;for(n=53042;n<=53046;n++)o[n]=0;for(n=53074;n<=53080;n++)o[n]=0;for(n=54001;n<=54004;n++)o[n]=0;for(n=54008;n<=54019;n++)o[n]=0;for(n=54021;n<=54032;n++)o[n]=0;for(n=54034;n<=54037;n++)o[n]=0;for(n=54042;n<=54046;n++)o[n]=0;for(n=54048;n<=54053;n++)o[n]=0;for(n=54074;n<=54080;n++)o[n]=0;for(n=54098;n<=54101;n++)o[n]=0;for(n=102001;n<=102040;n++)o[n]=0;for(n=102042;n<=102063;n++)o[n]=0;for(n=102065;n<=102067;n++)o[n]=0;for(n=102070;n<=102117;n++)o[n]=0;for(n=102122;n<=102216;n++)o[n]=0;for(n=102221;n<=102377;n++)o[n]=0;for(n=102382;n<=102388;n++)o[n]=0;for(n=102389;n<=102398;n++)o[n]=2;for(n=102399;n<=102444;n++)o[n]=0;for(n=102445;n<=102447;n++)o[n]=2;for(n=102448;n<=102458;n++)o[n]=0;for(n=102459;n<=102468;n++)o[n]=2;for(n=102469;n<=102499;n++)o[n]=0;for(n=102500;n<=102519;n++)o[n]=1;for(n=102520;n<=102524;n++)o[n]=0;for(n=102525;n<=102529;n++)o[n]=2;for(n=102530;n<=102588;n++)o[n]=0;for(n=102590;n<=102598;n++)o[n]=0;for(n=102601;n<=102603;n++)o[n]=0;for(n=102605;n<=102628;n++)o[n]=0;for(n=102629;n<=102646;n++)o[n]=2;for(n=102648;n<=102700;n++)o[n]=2;for(n=102701;n<=102703;n++)o[n]=0;for(n=102707;n<=102730;n++)o[n]=2;for(n=102733;n<=102758;n++)o[n]=2;for(n=102767;n<=102900;n++)o[n]=0;for(n=102901;n<=102933;n++)o[n]=2;for(n=102934;n<=102950;n++)o[n]=13;for(n=102951;n<=102955;n++)o[n]=0;for(n=102961;n<=102963;n++)o[n]=0;for(n=102965;n<=102969;n++)o[n]=0;for(n=102971;n<=102973;n++)o[n]=0;for(n=102975;n<=102989;n++)o[n]=0;for(n=102990;n<=102992;n++)o[n]=1;for(n=102997;n<=103002;n++)o[n]=0;for(n=103003;n<=103008;n++)o[n]=2;for(n=103009;n<=103011;n++)o[n]=0;for(n=103012;n<=103014;n++)o[n]=2;for(n=103019;n<=103021;n++)o[n]=0;for(n=103022;n<=103024;n++)o[n]=2;for(n=103029;n<=103031;n++)o[n]=0;for(n=103032;n<=103034;n++)o[n]=2;for(n=103065;n<=103068;n++)o[n]=0;for(n=103074;n<=103076;n++)o[n]=0;for(n=103077;n<=103079;n++)o[n]=1;for(n=103080;n<=103082;n++)o[n]=0;for(n=103083;n<=103085;n++)o[n]=2;for(n=103090;n<=103093;n++)o[n]=0;for(n=103097;n<=103099;n++)o[n]=0;for(n=103100;n<=103102;n++)o[n]=2;for(n=103107;n<=103109;n++)o[n]=0;for(n=103110;n<=103112;n++)o[n]=2;for(n=103113;n<=103116;n++)o[n]=0;for(n=103117;n<=103120;n++)o[n]=2;for(n=103153;n<=103157;n++)o[n]=0;for(n=103158;n<=103162;n++)o[n]=2;for(n=103163;n<=103165;n++)o[n]=0;for(n=103166;n<=103168;n++)o[n]=1;for(n=103169;n<=103171;n++)o[n]=2;for(n=103186;n<=103188;n++)o[n]=0;for(n=103189;n<=103191;n++)o[n]=2;for(n=103192;n<=103195;n++)o[n]=0;for(n=103196;n<=103199;n++)o[n]=2;for(n=103200;n<=103224;n++)o[n]=0;for(n=103225;n<=103227;n++)o[n]=1;for(n=103232;n<=103237;n++)o[n]=0;for(n=103238;n<=103243;n++)o[n]=2;for(n=103244;n<=103246;n++)o[n]=0;for(n=103247;n<=103249;n++)o[n]=2;for(n=103254;n<=103256;n++)o[n]=0;for(n=103257;n<=103259;n++)o[n]=2;for(n=103264;n<=103266;n++)o[n]=0;for(n=103267;n<=103269;n++)o[n]=2;for(n=103300;n<=103375;n++)o[n]=0;for(n=103381;n<=103383;n++)o[n]=0;for(n=103384;n<=103386;n++)o[n]=1;for(n=103387;n<=103389;n++)o[n]=0;for(n=103390;n<=103392;n++)o[n]=2;for(n=103397;n<=103399;n++)o[n]=0;for(n=103400;n<=103471;n++)o[n]=2;for(n=103476;n<=103478;n++)o[n]=0;for(n=103479;n<=103481;n++)o[n]=2;for(n=103486;n<=103488;n++)o[n]=0;for(n=103489;n<=103491;n++)o[n]=2;for(n=103492;n<=103495;n++)o[n]=0;for(n=103496;n<=103499;n++)o[n]=2;for(n=103528;n<=103543;n++)o[n]=0;for(n=103544;n<=103548;n++)o[n]=2;for(n=103549;n<=103551;n++)o[n]=0;for(n=103552;n<=103554;n++)o[n]=1;for(n=103555;n<=103557;n++)o[n]=2;for(n=103558;n<=103560;n++)o[n]=0;for(n=103571;n<=103573;n++)o[n]=0;for(n=103574;n<=103576;n++)o[n]=2;for(n=103577;n<=103580;n++)o[n]=0;for(n=103581;n<=103583;n++)o[n]=2;for(n=103595;n<=103694;n++)o[n]=0;for(n=103696;n<=103699;n++)o[n]=0;for(n=103700;n<=103793;n++)o[n]=2;for(n=103794;n<=103890;n++)o[n]=0;for(n=103891;n<=103896;n++)o[n]=2;for(n=103900;n<=103971;n++)o[n]=2;for(n=103972;n<=103977;n++)o[n]=0;for(n=112e3;n<=112101;n++)o[n]=0},8744:(e,r,t)=>{t.d(r,{BZ:()=>w,C5:()=>d,JY:()=>k,ME:()=>b,MP:()=>R,N$:()=>m,QM:()=>S,R_:()=>A,V2:()=>C,WR:()=>E,Zn:()=>G,fS:()=>h,o$:()=>g,oR:()=>_,sS:()=>y,sT:()=>M,yW:()=>p});var n=t(19153),o=t(56726),i=t(58116);const s={102113:!0,102100:!0,3857:!0,3785:!0},a={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},f='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',u=[-20037508.342788905,20037508.342788905],l=[-20037508.342787,20037508.342787],c={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:l,dx:1e-5},102100:{wkTemplate:f,valid:u,origin:l,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:l,dx:1e-5},3857:{wkTemplate:f,valid:u,origin:l,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function h(e,r){return e===r||null!=e&&null!=r&&(null!=e.wkid||null!=r.wkid?e.wkid===r.wkid||y(e)&&y(r)||null!=r.latestWkid&&e.wkid===r.latestWkid||null!=e.latestWkid&&r.wkid===e.latestWkid:!(!e.wkt||!r.wkt)&&e.wkt.toUpperCase()===r.wkt.toUpperCase())}function d(e){return k(e)&&e.wkid&&c[e.wkid]||null}function M(e){return!!k(e)&&(e.wkid?null==i.Z[e.wkid]:!!e.wkt&&!!/^\s*GEOGCS/i.test(e.wkt))}function m(e){return!(w(e)||C(e))}function _(e){return k(e)&&4326===e.wkid}function p(e){return k(e)&&e.wkid===o.W.CGCS2000}function y(e){return k(e)&&null!=e.wkid&&!0===s[e.wkid]}function S(e){return k(e)&&32662===e.wkid}function g(e){return e===o.W.GCSMARS2000||e===o.W.GCSMARS2000_SPHERE}function w(e){return k(e)&&null!=e.wkid&&g(e.wkid)}function b(e){return e===o.W.GCSMOON2000}function C(e){return k(e)&&null!=e.wkid&&b(e.wkid)}function R(e){return k(e)&&null!=e.wkid&&!0===a[e.wkid]}function k(e){return null!=e&&(null!=e.wkid&&e.wkid>=2e3||null!=e.wkt)}const G={wkid:4326,wkt:(0,n.gx)(c[4326].wkTemplate,{Central_Meridian:"0.0"})},A={wkid:102100,latestWkid:3857},E={wkid:32662}},40488:(e,r,t)=>{t.d(r,{$:()=>S,Q8:()=>m,R6:()=>y,Sx:()=>g,hG:()=>p,iV:()=>_,mZ:()=>c});var n=t(22974),o=t(82971),i=t(68441),s=t(8744);const a=57.29577951308232,f=.017453292519943;function u(e){return e*a}function l(e){return e*f}function c(e){return Math.PI/2-2*Math.atan(Math.exp(-e/i.sv.radius))}function h(e){return null!=e.wkid||null!=e.wkt}const d=[0,0];function M(e,r,t,n,o){const i=e,s=o;if(s.spatialReference=t,"x"in i&&"x"in s)[s.x,s.y]=r(i.x,i.y,d,n);else if("xmin"in i&&"xmin"in s)[s.xmin,s.ymin]=r(i.xmin,i.ymin,d,n),[s.xmax,s.ymax]=r(i.xmax,i.ymax,d,n);else if("paths"in i&&"paths"in s||"rings"in i&&"rings"in s){const e="paths"in i?i.paths:i.rings,t=[];let o;for(let i=0;i<e.length;i++){const s=e[i];o=[],t.push(o);for(let e=0;e<s.length;e++)o.push(r(s[e][0],s[e][1],[0,0],n)),s[e].length>2&&o[e].push(s[e][2]),s[e].length>3&&o[e].push(s[e][3])}"paths"in s?s.paths=t:s.rings=t}else if("points"in i&&"points"in s){const e=i.points,t=[];for(let o=0;o<e.length;o++)t[o]=r(e[o][0],e[o][1],[0,0],n),e[o].length>2&&t[o].push(e[o][2]),e[o].length>3&&t[o].push(e[o][3]);s.points=t}return o}function m(e,r){const t=e&&(h(e)?e:e.spatialReference),n=r&&(h(r)?r:r.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||r&&"type"in r&&"mesh"===r.type||!t||!n)&&(!!(0,s.fS)(n,t)||(0,s.sS)(n)&&(0,s.oR)(t)||(0,s.sS)(t)&&(0,s.oR)(n))}function _(e,r){if(null==e)return null;const t=e.spatialReference,i=r&&(h(r)?r:r.spatialReference);return m(t,i)?(0,s.fS)(t,i)?(0,n.d9)(e):(0,s.sS)(i)?M(e,p,o.Z.WebMercator,!1,(0,n.d9)(e)):(0,s.oR)(i)?M(e,y,o.Z.WGS84,!1,(0,n.d9)(e)):null:null}function p(e,r,t=[0,0]){r>89.99999?r=89.99999:r<-89.99999&&(r=-89.99999);const n=l(r);return t[0]=l(e)*i.sv.radius,t[1]=i.sv.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),t}function y(e,r,t=[0,0],n=!1){const o=u(e/i.sv.radius);return t[0]=n?o:o-360*Math.floor((o+180)/360),t[1]=u(Math.PI/2-2*Math.atan(Math.exp(-r/i.sv.radius))),t}function S(e,r=!1,t=(0,n.d9)(e)){return M(e,p,o.Z.WebMercator,r,t)}function g(e,r=!1,t=(0,n.d9)(e)){return M(e,y,o.Z.WGS84,r,t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5642],{55642:(e,t,i)=>{i.d(t,{ElevationQuery:()=>q});var n=i(66643),s=i(20102),l=i(70586),a=i(95330),o=i(67900),r=i(65091),c=i(94139),u=i(58901),h=i(44547),p=i(24470),m=(i(66577),i(80442),i(92604)),f=i(40488);const d=m.Z.getLogger("esri.layers.support.ElevationSampler");class y{queryElevation(e){return function(e,t){const i=T(e,t.spatialReference);if(!i)return null;switch(e.type){case"point":!function(e,t,i){e.z=i.elevationAt(t.x,t.y)}(e,i,t);break;case"polyline":!function(e,t,i){w.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let s=0;s<e.paths.length;s++){const l=e.paths[s],a=t.paths[s];for(let e=0;e<l.length;e++){const t=l[e],s=a[e];w.x=s[0],w.y=s[1],n&&(t[3]=t[2]),t[2]=i.elevationAt(w.x,w.y)}}e.hasZ=!0}(e,i,t);break;case"multipoint":!function(e,t,i){w.spatialReference=t.spatialReference;const n=e.hasM&&!e.hasZ;for(let s=0;s<e.points.length;s++){const l=e.points[s],a=t.points[s];w.x=a[0],w.y=a[1],n&&(l[3]=l[2]),l[2]=i.elevationAt(w.x,w.y)}e.hasZ=!0}(e,i,t)}return e}(e.clone(),this)}on(){return g}projectIfRequired(e,t){return T(e,t)}}class x extends y{get spatialReference(){return this.extent.spatialReference}constructor(e,t,i){super(),this.tile=e,this.noDataValue=i;const n=e.tile.extent;this.extent=(0,p.HH)(n,t.spatialReference),this.extent.zmin=e.zmin,this.extent.zmax=e.zmax,this._aaExtent=n;const s=(0,o.c9)(t.spatialReference),l=t.lodAt(e.tile.level).resolution*s;this.demResolution={min:l,max:l}}contains(e){const t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,p.jE)(this._aaExtent,e,t)}elevationAt(e,t){if(!this.containsAt(e,t)){const i=this.extent,n=`${i.xmin}, ${i.ymin}, ${i.xmax}, ${i.ymax}`;return d.warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler extent (${n})`),this.noDataValue}return this.tile.sample(e,t)??this.noDataValue}}class v extends y{get spatialReference(){return this.extent.spatialReference}constructor(e,t,i){let n;super(),"number"==typeof t?(this.noDataValue=t,n=null):(n=t,this.noDataValue=i),this.samplers=n?e.map((e=>new x(e,n,this.noDataValue))):e;const s=this.samplers[0];if(s){this.extent=s.extent.clone();const{min:e,max:t}=s.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<this.samplers.length;e++){const t=this.samplers[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else this.extent=(0,p.HH)((0,p.Ue)(),n.spatialReference),this.demResolution={min:0,max:0}}elevationAt(e,t){for(const i of this.samplers)if(i.containsAt(e,t))return i.elevationAt(e,t);return d.warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue}}function T(e,t){if(null==e)return null;const i=e.spatialReference;if(i.equals(t))return e;const n=(0,f.iV)(e,t);return n||d.error(`Cannot project geometry spatial reference (wkid:${i.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),n}const w=new c.Z,g={remove(){}};class _{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class R{constructor(e,t=null){if(this.tile=e,null!=t&&null!=e){const i=e.extent;this._samplerData=new _(t,i)}}get zmin(){return null!=this._samplerData?this._samplerData.data.minValue:0}get zmax(){return null!=this._samplerData?this._samplerData.data.maxValue:0}sample(e,t){if(null==this._samplerData)return;const{safeWidth:i,data:n,dx:s,dy:l,y1:a,x0:o}=this._samplerData,{width:r,values:c,noDataValue:u}=n,h=E(l*(a-t),0,i),p=E(s*(e-o),0,i),m=Math.floor(h),f=Math.floor(p),d=m*r+f,y=d+r,x=c[d],v=c[y],T=c[d+1],w=c[y+1];if(x!==u&&v!==u&&T!==u&&w!==u){const e=p-f,t=x+(T-x)*e;return t+(v+(w-v)*e-t)*(h-m)}}}function E(e,t,i){return e<t?t:e>i?i:e}var A=i(43077);class q{async queryAll(e,t,i){if(!(e=i&&i.ignoreInvisibleLayers?e.filter((e=>e.visible)):e.slice()).length)throw new s.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");const n=D.fromGeometry(t);let l=!1;i&&i.returnSampleInfo||(l=!0);const a={...F,...i,returnSampleInfo:!0},o=await this.query(e[e.length-1],n,a),r=await this._queryAllContinue(e,o,a);return r.geometry=r.geometry.export(),l&&delete r.sampleInfo,r}async query(e,t,i){if(!e)throw new s.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof D)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new s.Z("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");const n={...F,...i},l=new z(e,t.spatialReference,n),a=n.signal;return await e.load({signal:a}),await this._createGeometryDescriptor(l,t,a),await this._selectTiles(l,a),await this._populateElevationTiles(l,a),this._sampleGeometryWithElevation(l),this._createQueryResult(l,a)}async createSampler(e,t,i){if(!e)throw new s.Z("elevation-query:invalid-layer","Elevation queries require an elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new s.Z("elevation-query:invalid-extent","Invalid or undefined extent");const n={...F,...i};return this._createSampler(e,t,n)}async createSamplerAll(e,t,i){if(!(e=i&&i.ignoreInvisibleLayers?e.filter((e=>e.visible)):e.slice()).length)throw new s.Z("elevation-query:invalid-layer","Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new s.Z("elevation-query:invalid-extent","Invalid or undefined extent");const n={...F,...i,returnSampleInfo:!0},l=await this._createSampler(e[e.length-1],t,n);return this._createSamplerAllContinue(e,t,l,n)}async _createSampler(e,t,i,n){const s=i.signal;await e.load({signal:s});const l=t.spatialReference,a=e.tileInfo.spatialReference;l.equals(a)||(await(0,h.initializeProjection)([{source:l,dest:a}],{signal:s}),t=(0,h.iV)(t,a));const o=new Z(e,t,i,n);return await this._selectTiles(o,s),await this._populateElevationTiles(o,s),new v(o.elevationTiles,o.layer.tileInfo,o.options.noDataValue)}async _createSamplerAllContinue(e,t,i,n){if(e.pop(),!e.length)return i;const s=i.samplers.map((e=>(0,p.oJ)(e.extent))),l=await this._createSampler(e[e.length-1],t,n,s);if(0===l.samplers.length)return i;const a=i.samplers.concat(l.samplers),o=new v(a,n.noDataValue);return this._createSamplerAllContinue(e,t,o,n)}async _queryAllContinue(e,t,i){const n=e.pop(),s=t.geometry.coordinates,a=t.sampleInfo;(0,l.O3)(a);const o=[],r=[];for(let t=0;t<s.length;t++){const i=a[t];i.demResolution>=0?i.source||(i.source=n):e.length&&(o.push(s[t]),r.push(t))}if(!e.length||0===o.length)return t;const c=t.geometry.clone(o),u=await this.query(e[e.length-1],c,i),h=u.sampleInfo;if(!h)throw new Error("no sampleInfo");return r.forEach(((e,t)=>{s[e].z=u.geometry.coordinates[t].z,a[e].demResolution=h[t].demResolution})),this._queryAllContinue(e,t,i)}async _createQueryResult(e,t){const i=await e.geometry.project(e.outSpatialReference,t);(0,l.O3)(i);const n={geometry:i.export(),noDataValue:e.options.noDataValue};return e.options.returnSampleInfo&&(n.sampleInfo=this._extractSampleInfo(e)),e.geometry.coordinates.forEach((e=>{e.tile=null,e.elevationTile=null})),n}async _createGeometryDescriptor(e,t,i){let n;const l=e.layer.tileInfo.spatialReference;if(t instanceof D?n=await t.project(l,i):(await(0,h.initializeProjection)([{source:t.spatialReference,dest:l}],{signal:i}),n=(0,h.iV)(t,l)),!n)throw new s.Z("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${l.wkid}'`);e.geometry=D.fromGeometry(n)}async _selectTiles(e,t){"geometry"===e.type&&this._preselectOutsideLayerExtent(e);const i=e.options.demResolution;if("number"==typeof i)this._selectTilesClosestResolution(e,i);else if("finest-contiguous"===i)await this._selectTilesFinestContiguous(e,t);else{if("auto"!==i)throw new s.Z("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${i}', expected a number, "finest-contiguous" or "auto"`);await this._selectTilesAuto(e,t)}}_preselectOutsideLayerExtent(e){if(null==e.layer.fullExtent)return;const t=new R(null);t.sample=()=>e.options.noDataValue,e.outsideExtentTile=t;const i=e.layer.fullExtent;e.geometry.coordinates.forEach((e=>{const n=e.x,s=e.y;(n<i.xmin||n>i.xmax||s<i.ymin||s>i.ymax)&&(e.elevationTile=t)}))}_selectTilesClosestResolution(e,t){const i=e.layer.tileInfo,n=this._findNearestDemResolutionLODIndex(i,t);e.selectTilesAtLOD(n)}_findNearestDemResolutionLODIndex(e,t){const i=t/(0,o.c9)(e.spatialReference);let n=e.lods[0],s=0;for(let t=1;t<e.lods.length;t++){const l=e.lods[t];Math.abs(l.resolution-i)<Math.abs(n.resolution-i)&&(n=l,s=t)}return s}async _selectTilesFinestContiguous(e,t){const i=M(e.layer.tileInfo,e.options.minDemResolution);await this._selectTilesFinestContiguousAt(e,i,t)}async _selectTilesFinestContiguousAt(e,t,i){const n=e.layer;if(e.selectTilesAtLOD(t),t<0)return;const l=n.tilemapCache,o=e.getTilesToFetch();try{if(l)await(0,a.Hl)(Promise.all(o.map((e=>l.fetchAvailability(e.level,e.row,e.col,{signal:i})))),i);else if(await this._populateElevationTiles(e,i),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new s.Z("elevation-query:has-unavailable-tiles")}catch(n){(0,a.r9)(n),await this._selectTilesFinestContiguousAt(e,t-1,i)}}async _populateElevationTiles(e,t){const i=e.getTilesToFetch(),n={},s=e.options.cache,l=e.options.noDataValue,o=i.map((async i=>{if(null==i.id)return;const a=`${e.layer.uid}:${i.id}:${l}`,o=null!=s?s.get(a):null,r=null!=o?o:await e.layer.fetchTile(i.level,i.row,i.col,{noDataValue:l,signal:t});null!=s&&s.put(a,r),n[i.id]=new R(i,r)}));await(0,a.Hl)((0,a.as)(o),t),e.populateElevationTiles(n)}async _selectTilesAuto(e,t){this._selectTilesAutoFinest(e),this._reduceTilesForMaximumRequests(e);const i=e.layer.tilemapCache;if(!i)return this._selectTilesAutoPrefetchUpsample(e,t);const s=e.getTilesToFetch(),l={},o=s.map((async e=>{const s=new A.f(null,0,0,0,(0,p.Ue)()),o=await(0,n.q6)(i.fetchAvailabilityUpsample(e.level,e.row,e.col,s,{signal:t}));!1!==o.ok?null!=e.id&&(l[e.id]=s):(0,a.r9)(o.error)}));await(0,a.Hl)(Promise.all(o),t),e.remapTiles(l)}_reduceTilesForMaximumRequests(e){const t=e.layer.tileInfo;let i=0;const n={},s=e=>{null!=e.id&&(e.id in n?n[e.id]++:(n[e.id]=1,i++))},l=e=>{if(null==e.id)return;const t=n[e.id];1===t?(delete n[e.id],i--):n[e.id]=t-1};e.forEachTileToFetch(s,l);let a=!0;for(;a&&(a=!1,e.forEachTileToFetch((n=>{i<=e.options.maximumAutoTileRequests||(l(n),t.upsampleTile(n)&&(a=!0),s(n))}),l),a););}_selectTilesAutoFinest(e){const t=M(e.layer.tileInfo,e.options.minDemResolution);e.selectTilesAtLOD(t,e.options.maximumAutoTileRequests)}async _selectTilesAutoPrefetchUpsample(e,t){const i=e.layer.tileInfo;await this._populateElevationTiles(e,t);let n=!1;e.forEachTileToFetch(((e,t)=>{i.upsampleTile(e)?n=!0:t()})),n&&await this._selectTilesAutoPrefetchUpsample(e,t)}_sampleGeometryWithElevation(e){e.geometry.coordinates.forEach((t=>{const i=t.elevationTile;let n=e.options.noDataValue;if(i){const e=i.sample(t.x,t.y);null!=e?n=e:t.elevationTile=null}t.z=n}))}_extractSampleInfo(e){const t=e.layer.tileInfo,i=(0,o.c9)(t.spatialReference);return e.geometry.coordinates.map((n=>{let s=-1;return n.elevationTile&&n.elevationTile!==e.outsideExtentTile&&(s=t.lodAt(n.elevationTile.tile.level).resolution*i),{demResolution:s}}))}}class D{export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){const t=new D;return t.geometry=this.geometry,t.spatialReference=this.spatialReference,t.coordinates=e||this.coordinates.map((e=>e.clone())),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,h.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});const i=new r.Z({spatialReference:this.spatialReference,points:this.coordinates.map((e=>[e.x,e.y]))}),n=(0,h.iV)(i,e);if(!n)return null;const s=this.coordinates.map(((e,t)=>{const i=e.clone(),s=n.points[t];return i.x=s[0],i.y=s[1],i})),l=this.clone(s);return l.spatialReference=e,l}static fromGeometry(e){const t=new D;if(t.geometry=e,t.spatialReference=e.spatialReference,e instanceof D)t.coordinates=e.coordinates.map((e=>e.clone())),t._exporter=(t,i)=>{const n=e.clone(t);return n.spatialReference=i,n};else switch(e.type){case"point":{const i=e,{hasZ:n,hasM:s}=i;t.coordinates=n&&s?[new I(i.x,i.y,i.z,i.m)]:n?[new I(i.x,i.y,i.z)]:s?[new I(i.x,i.y,null,i.m)]:[new I(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new c.Z(t[0].x,t[0].y,t[0].z,t[0].m,i):new c.Z(t[0].x,t[0].y,t[0].z,i);break}case"multipoint":{const i=e,{hasZ:n,hasM:s}=i;t.coordinates=n&&s?i.points.map((e=>new I(e[0],e[1],e[2],e[3]))):n?i.points.map((e=>new I(e[0],e[1],e[2]))):s?i.points.map((e=>new I(e[0],e[1],null,e[2]))):i.points.map((e=>new I(e[0],e[1]))),t._exporter=(t,i)=>e.hasM?new r.Z({points:t.map((e=>[e.x,e.y,e.z,e.m])),hasZ:!0,hasM:!0,spatiaReference:i}):new r.Z(t.map((e=>[e.x,e.y,e.z])),i);break}case"polyline":{const i=e,n=[],s=[],{hasZ:l,hasM:a}=e;let o=0;for(const e of i.paths)if(s.push([o,o+e.length]),o+=e.length,l&&a)for(const t of e)n.push(new I(t[0],t[1],t[2],t[3]));else if(l)for(const t of e)n.push(new I(t[0],t[1],t[2]));else if(a)for(const t of e)n.push(new I(t[0],t[1],null,t[2]));else for(const t of e)n.push(new I(t[0],t[1]));t.coordinates=n,t._exporter=(t,i)=>{const n=e.hasM?t.map((e=>[e.x,e.y,e.z,e.m])):t.map((e=>[e.x,e.y,e.z])),l=s.map((e=>n.slice(e[0],e[1])));return new u.Z({paths:l,hasM:e.hasM,hasZ:!0,spatialReference:i})};break}}return t}}class I{constructor(e,t,i=null,n=null,s=null,l=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=s,this.elevationTile=l}clone(){return new I(this.x,this.y,this.z,this.m)}}class C{constructor(e,t){this.layer=e,this.options=t}}class z extends C{constructor(e,t,i){super(e,i),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach((e=>e.tile=null));else{const t=this.layer.tileInfo,i=t.lods[e].level;this.geometry.coordinates.forEach((e=>e.tile=t.tileAt(i,e.x,e.y)))}}allElevationTilesFetched(){return!this.geometry.coordinates.some((e=>!e.elevationTile))}clearElevationTiles(){for(const e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(const t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(const t of this.geometry.coordinates){const i=t.tile?.id;t.tile=i?e[i]:null}}getTilesToFetch(){const e={},t=[];for(const i of this.geometry.coordinates){const n=i.tile;if(!n)continue;const s=i.tile?.id;i.elevationTile||!s||e[s]||(e[s]=n,t.push(n))}return t}forEachTileToFetch(e){for(const t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,(()=>{t.tile=null}))}}class Z extends C{constructor(e,t,i,n){super(e,i),this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.intersection(e.fullExtent),this.maskExtents=n}selectTilesAtLOD(e,t){const i=this._maximumLodForRequests(t),n=Math.min(i,e);n<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(n)}_maximumLodForRequests(e){const t=this.layer.tileInfo;if(!e)return t.lods.length-1;const i=this.extent;if(null==i)return-1;for(let n=t.lods.length-1;n>=0;n--){const s=t.lods[n],l=s.resolution*t.size[0],a=s.resolution*t.size[1];if(Math.ceil(i.width/l)*Math.ceil(i.height/a)<=e)return n}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(const t of this._candidateTiles){const i=t.id&&e[t.id];i&&(this._fetchedCandidates.add(t),this.elevationTiles.push(i))}}remapTiles(e){this._candidateTiles=this._uniqueNonOverlappingTiles(this._candidateTiles.map((t=>e[t.id])))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){const i=this._candidateTiles;this._candidateTiles=[],i.forEach((i=>{if(this._fetchedCandidates.has(i))return void(t&&t(i));let n=!1;e(i,(()=>n=!0)),n?t&&t(i):this._candidateTiles.push(i)})),this._candidateTiles=this._uniqueNonOverlappingTiles(this._candidateTiles,t)}_uniqueNonOverlappingTiles(e,t){const i={},n=[];for(const s of e){const e=s.id;e&&!i[e]?(i[e]=s,n.push(s)):t&&t(s)}const s=n.sort(((e,t)=>e.level-t.level));return s.filter(((e,i)=>{for(let n=0;n<i;n++){const i=s[n].extent;if(i&&e.extent&&(0,p.r3)(i,e.extent))return t&&t(e),!1}return!0}))}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;const t=this.extent;if(null==t)return;const i=this.layer.tileInfo,n=i.lods[e],s=i.tileAt(n.level,t.xmin,t.ymin),l=s.extent;if(null==l)return;const a=n.resolution*i.size[0],o=n.resolution*i.size[1],r=Math.ceil((t.xmax-l[0])/a),c=Math.ceil((t.ymax-l[1])/o);for(let e=0;e<c;e++)for(let t=0;t<r;t++){const n=new A.f(null,s.level,s.row-e,s.col+t);i.updateTileInfo(n),this._tileIsMasked(n)||this._candidateTiles.push(n)}}_tileIsMasked(e){return!!this.maskExtents&&this.maskExtents.some((t=>e.extent&&(0,p.r3)(t,e.extent)))}}function M(e,t=0){let i=e.lods.length-1;if(t>0){const n=t/(0,o.c9)(e.spatialReference),s=e.lods.findIndex((e=>e.resolution<n));0===s?i=0:s>0&&(i=s-1)}return i}const F={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1993,5732,661,5234,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>l});var s=n(68773),i=(n(3172),n(20102)),r=n(92604),o=n(81271);const a=r.Z.getLogger("esri.assets");function l(t){if(!s.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new i.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(s.default.assetsPath,t)}},5732:(t,e,n)=>{n.d(e,{c:()=>s,g:()=>i});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},52138:(t,e,n)=>{n.d(e,{A:()=>m,a:()=>l,d:()=>p,e:()=>d,f:()=>f,g:()=>y,h:()=>b,i:()=>o,j:()=>M,k:()=>c,m:()=>h,s:()=>r,t:()=>a,w:()=>u,y:()=>v,z:()=>S});var s=n(65617),i=n(46851);function r(t,e,n,s,i,r,o,a,l,h,u,c,d,f,p,m,g){return t[0]=e,t[1]=n,t[2]=s,t[3]=i,t[4]=r,t[5]=o,t[6]=a,t[7]=l,t[8]=h,t[9]=u,t[10]=c,t[11]=d,t[12]=f,t[13]=p,t[14]=m,t[15]=g,t}function o(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 a(t,e){if(t===e){const n=e[1],s=e[2],i=e[3],r=e[6],o=e[7],a=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]=s,t[9]=r,t[11]=e[14],t[12]=i,t[13]=o,t[14]=a}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){const n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],_=e[15],y=n*a-s*o,x=n*l-i*o,b=n*h-r*o,M=s*l-i*a,S=s*h-r*a,v=i*h-r*l,w=u*m-c*p,I=u*g-d*p,E=u*_-f*p,F=c*g-d*m,z=c*_-f*m,B=d*_-f*g;let N=y*B-x*z+b*F+M*E-S*I+v*w;return N?(N=1/N,t[0]=(a*B-l*z+h*F)*N,t[1]=(i*z-s*B-r*F)*N,t[2]=(m*v-g*S+_*M)*N,t[3]=(d*S-c*v-f*M)*N,t[4]=(l*E-o*B-h*I)*N,t[5]=(n*B-i*E+r*I)*N,t[6]=(g*b-p*v-_*x)*N,t[7]=(u*v-d*b+f*x)*N,t[8]=(o*z-a*E+h*w)*N,t[9]=(s*E-n*z-r*w)*N,t[10]=(p*S-m*b+_*y)*N,t[11]=(c*b-u*S-f*y)*N,t[12]=(a*I-o*F-l*w)*N,t[13]=(n*F-s*I+i*w)*N,t[14]=(m*x-p*M-g*y)*N,t[15]=(u*M-c*x+d*y)*N,t):null}function h(t,e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],m=e[12],g=e[13],_=e[14],y=e[15];let x=n[0],b=n[1],M=n[2],S=n[3];return t[0]=x*s+b*a+M*c+S*m,t[1]=x*i+b*l+M*d+S*g,t[2]=x*r+b*h+M*f+S*_,t[3]=x*o+b*u+M*p+S*y,x=n[4],b=n[5],M=n[6],S=n[7],t[4]=x*s+b*a+M*c+S*m,t[5]=x*i+b*l+M*d+S*g,t[6]=x*r+b*h+M*f+S*_,t[7]=x*o+b*u+M*p+S*y,x=n[8],b=n[9],M=n[10],S=n[11],t[8]=x*s+b*a+M*c+S*m,t[9]=x*i+b*l+M*d+S*g,t[10]=x*r+b*h+M*f+S*_,t[11]=x*o+b*u+M*p+S*y,x=n[12],b=n[13],M=n[14],S=n[15],t[12]=x*s+b*a+M*c+S*m,t[13]=x*i+b*l+M*d+S*g,t[14]=x*r+b*h+M*f+S*_,t[15]=x*o+b*u+M*p+S*y,t}function u(t,e,n){const s=n[0],i=n[1],r=n[2];if(e===t)t[12]=e[0]*s+e[4]*i+e[8]*r+e[12],t[13]=e[1]*s+e[5]*i+e[9]*r+e[13],t[14]=e[2]*s+e[6]*i+e[10]*r+e[14],t[15]=e[3]*s+e[7]*i+e[11]*r+e[15];else{const n=e[0],o=e[1],a=e[2],l=e[3],h=e[4],u=e[5],c=e[6],d=e[7],f=e[8],p=e[9],m=e[10],g=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=l,t[4]=h,t[5]=u,t[6]=c,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=n*s+h*i+f*r+e[12],t[13]=o*s+u*i+p*r+e[13],t[14]=a*s+c*i+m*r+e[14],t[15]=l*s+d*i+g*r+e[15]}return t}function c(t,e,n){const s=n[0],i=n[1],r=n[2];return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t[3]=e[3]*s,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,s){let r,o,a,l,h,u,c,d,f,p,m,g,_,y,x,b,M,S,v,w,I,E,F,z,B=s[0],N=s[1],T=s[2],R=Math.sqrt(B*B+N*N+T*T);return R<(0,i.g)()?null:(R=1/R,B*=R,N*=R,T*=R,r=Math.sin(n),o=Math.cos(n),a=1-o,l=e[0],h=e[1],u=e[2],c=e[3],d=e[4],f=e[5],p=e[6],m=e[7],g=e[8],_=e[9],y=e[10],x=e[11],b=B*B*a+o,M=N*B*a+T*r,S=T*B*a-N*r,v=B*N*a-T*r,w=N*N*a+o,I=T*N*a+B*r,E=B*T*a+N*r,F=N*T*a-B*r,z=T*T*a+o,t[0]=l*b+d*M+g*S,t[1]=h*b+f*M+_*S,t[2]=u*b+p*M+y*S,t[3]=c*b+m*M+x*S,t[4]=l*v+d*w+g*I,t[5]=h*v+f*w+_*I,t[6]=u*v+p*w+y*I,t[7]=c*v+m*w+x*I,t[8]=l*E+d*F+g*z,t[9]=h*E+f*F+_*z,t[10]=u*E+p*F+y*z,t[11]=c*E+m*F+x*z,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function f(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 p(t,e,n){if(0===e)return o(t);let s,r,a,l=n[0],h=n[1],u=n[2],c=Math.sqrt(l*l+h*h+u*u);return c<(0,i.g)()?null:(c=1/c,l*=c,h*=c,u*=c,s=Math.sin(e),r=Math.cos(e),a=1-r,t[0]=l*l*a+r,t[1]=h*l*a+u*s,t[2]=u*l*a-h*s,t[3]=0,t[4]=l*h*a-u*s,t[5]=h*h*a+r,t[6]=u*h*a+l*s,t[7]=0,t[8]=l*u*a+h*s,t[9]=h*u*a-l*s,t[10]=u*u*a+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=s+s,l=i+i,h=r+r,u=s*a,c=s*l,d=s*h,f=i*l,p=i*h,m=r*h,g=o*a,_=o*l,y=o*h;return t[0]=1-(f+m),t[1]=c+y,t[2]=d-_,t[3]=0,t[4]=c-y,t[5]=1-(u+m),t[6]=p+g,t[7]=0,t[8]=d+_,t[9]=p-g,t[10]=1-(u+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const _=(0,s.c)();function y(t,e,n,s){const i=e[0],r=e[1],o=e[2],a=e[3],l=i+i,h=r+r,u=o+o,c=i*l,d=i*h,f=i*u,p=r*h,m=r*u,g=o*u,_=a*l,y=a*h,x=a*u,b=s[0],M=s[1],S=s[2];return t[0]=(1-(p+g))*b,t[1]=(d+x)*b,t[2]=(f-y)*b,t[3]=0,t[4]=(d-x)*M,t[5]=(1-(c+g))*M,t[6]=(m+_)*M,t[7]=0,t[8]=(f+y)*S,t[9]=(m-_)*S,t[10]=(1-(c+p))*S,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function x(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 b(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 M(t,e){if(t===e)return!0;const n=t[0],s=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],u=t[7],c=t[8],d=t[9],f=t[10],p=t[11],m=t[12],g=t[13],_=t[14],y=t[15],x=e[0],b=e[1],M=e[2],S=e[3],v=e[4],w=e[5],I=e[6],E=e[7],F=e[8],z=e[9],B=e[10],N=e[11],T=e[12],R=e[13],Z=e[14],A=e[15],O=(0,i.g)();return Math.abs(n-x)<=O*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(s-b)<=O*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(r-M)<=O*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(o-S)<=O*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(a-v)<=O*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(l-w)<=O*Math.max(1,Math.abs(l),Math.abs(w))&&Math.abs(h-I)<=O*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(u-E)<=O*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-F)<=O*Math.max(1,Math.abs(c),Math.abs(F))&&Math.abs(d-z)<=O*Math.max(1,Math.abs(d),Math.abs(z))&&Math.abs(f-B)<=O*Math.max(1,Math.abs(f),Math.abs(B))&&Math.abs(p-N)<=O*Math.max(1,Math.abs(p),Math.abs(N))&&Math.abs(m-T)<=O*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(g-R)<=O*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(_-Z)<=O*Math.max(1,Math.abs(_),Math.abs(Z))&&Math.abs(y-A)<=O*Math.max(1,Math.abs(y),Math.abs(A))}function S(t){const e=(0,i.g)(),n=t[0],s=t[1],r=t[2],o=t[4],a=t[5],l=t[6],h=t[8],u=t[9],c=t[10];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(s*s+a*a+u*u))<=e&&Math.abs(1-(r*r+l*l+c*c))<=e}function v(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 w=h,I=x;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){const n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],_=e[15];return t[0]=a*(d*_-f*g)-c*(l*_-h*g)+m*(l*f-h*d),t[1]=-(s*(d*_-f*g)-c*(i*_-r*g)+m*(i*f-r*d)),t[2]=s*(l*_-h*g)-a*(i*_-r*g)+m*(i*h-r*l),t[3]=-(s*(l*f-h*d)-a*(i*f-r*d)+c*(i*h-r*l)),t[4]=-(o*(d*_-f*g)-u*(l*_-h*g)+p*(l*f-h*d)),t[5]=n*(d*_-f*g)-u*(i*_-r*g)+p*(i*f-r*d),t[6]=-(n*(l*_-h*g)-o*(i*_-r*g)+p*(i*h-r*l)),t[7]=n*(l*f-h*d)-o*(i*f-r*d)+u*(i*h-r*l),t[8]=o*(c*_-f*m)-u*(a*_-h*m)+p*(a*f-h*c),t[9]=-(n*(c*_-f*m)-u*(s*_-r*m)+p*(s*f-r*c)),t[10]=n*(a*_-h*m)-o*(s*_-r*m)+p*(s*h-r*a),t[11]=-(n*(a*f-h*c)-o*(s*f-r*c)+u*(s*h-r*a)),t[12]=-(o*(c*g-d*m)-u*(a*g-l*m)+p*(a*d-l*c)),t[13]=n*(c*g-d*m)-u*(s*g-i*m)+p*(s*d-i*c),t[14]=-(n*(a*g-l*m)-o*(s*g-i*m)+p*(s*l-i*a)),t[15]=n*(a*d-l*c)-o*(s*d-i*c)+u*(s*l-i*a),t},copy:function(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},determinant:function(t){const e=t[0],n=t[1],s=t[2],i=t[3],r=t[4],o=t[5],a=t[6],l=t[7],h=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*o-n*r)*(c*g-d*m)-(e*a-s*r)*(u*g-d*p)+(e*l-i*r)*(u*m-c*p)+(n*a-s*o)*(h*g-d*f)-(n*l-i*o)*(h*m-c*f)+(s*l-i*a)*(h*p-u*f)},equals:M,exactEquals:b,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){const n=e[0],s=e[1],i=e[2],r=e[3],o=n+n,a=s+s,l=i+i,h=n*o,u=s*o,c=s*a,d=i*o,f=i*a,p=i*l,m=r*o,g=r*a,_=r*l;return t[0]=1-c-p,t[1]=u+_,t[2]=d-g,t[3]=0,t[4]=u-_,t[5]=1-h-p,t[6]=f+m,t[7]=0,t[8]=d+g,t[9]=f-m,t[10]=1-h-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=_,s=-e[0],i=-e[1],r=-e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],c=s*s+i*i+r*r+o*o;return c>0?(n[0]=2*(a*o+u*s+l*r-h*i)/c,n[1]=2*(l*o+u*i+h*s-a*r)/c,n[2]=2*(h*o+u*r+a*i-l*s)/c):(n[0]=2*(a*o+u*s+l*r-h*i),n[1]=2*(l*o+u*i+h*s-a*r),n[2]=2*(h*o+u*r+a*i-l*s)),g(t,e,n),t},fromRotation:p,fromRotationTranslation:g,fromRotationTranslationScale:y,fromRotationTranslationScaleOrigin:function(t,e,n,s,i){const r=e[0],o=e[1],a=e[2],l=e[3],h=r+r,u=o+o,c=a+a,d=r*h,f=r*u,p=r*c,m=o*u,g=o*c,_=a*c,y=l*h,x=l*u,b=l*c,M=s[0],S=s[1],v=s[2],w=i[0],I=i[1],E=i[2],F=(1-(m+_))*M,z=(f+b)*M,B=(p-x)*M,N=(f-b)*S,T=(1-(d+_))*S,R=(g+y)*S,Z=(p+x)*v,A=(g-y)*v,O=(1-(d+m))*v;return t[0]=F,t[1]=z,t[2]=B,t[3]=0,t[4]=N,t[5]=T,t[6]=R,t[7]=0,t[8]=Z,t[9]=A,t[10]=O,t[11]=0,t[12]=n[0]+w-(F*w+N*I+Z*E),t[13]=n[1]+I-(z*w+T*I+A*E),t[14]=n[2]+E-(B*w+R*I+O*E),t[15]=1,t},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:f,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,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]=s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=s,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},frustum:function(t,e,n,s,i,r,o){const a=1/(n-e),l=1/(i-s),h=1/(r-o);return t[0]=2*r*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*r*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+s)*l,t[10]=(o+r)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*r*2*h,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let s=0;return n>0?(s=2*Math.sqrt(n+1),t[3]=.25*s,t[0]=(e[6]-e[9])/s,t[1]=(e[8]-e[2])/s,t[2]=(e[1]-e[4])/s):e[0]>e[5]&&e[0]>e[10]?(s=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/s,t[0]=.25*s,t[1]=(e[1]+e[4])/s,t[2]=(e[8]+e[2])/s):e[5]>e[10]?(s=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/s,t[0]=(e[1]+e[4])/s,t[1]=.25*s,t[2]=(e[6]+e[9])/s):(s=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/s,t[0]=(e[8]+e[2])/s,t[1]=(e[6]+e[9])/s,t[2]=.25*s),t},getScaling:function(t,e){const n=e[0],s=e[1],i=e[2],r=e[4],o=e[5],a=e[6],l=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+s*s+i*i),t[1]=Math.sqrt(r*r+o*o+a*a),t[2]=Math.sqrt(l*l+h*h+u*u),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:v,identity:o,invert:l,invertOrIdentity:function(t,e){return l(t,e)||o(t),t},isOrthoNormal:S,lookAt:function(t,e,n,s){const r=e[0],a=e[1],l=e[2];let h=r-n[0],u=a-n[1],c=l-n[2];const d=(0,i.g)();if(Math.abs(h)<d&&Math.abs(u)<d&&Math.abs(c)<d)return void o(t);let f=1/Math.sqrt(h*h+u*u+c*c);h*=f,u*=f,c*=f;const p=s[0],m=s[1],g=s[2];let _=m*c-g*u,y=g*h-p*c,x=p*u-m*h;f=Math.sqrt(_*_+y*y+x*x),f?(f=1/f,_*=f,y*=f,x*=f):(_=0,y=0,x=0);let b=u*x-c*y,M=c*_-h*x,S=h*y-u*_;f=Math.sqrt(b*b+M*M+S*S),f?(f=1/f,b*=f,M*=f,S*=f):(b=0,M=0,S=0),t[0]=_,t[1]=b,t[2]=h,t[3]=0,t[4]=y,t[5]=M,t[6]=u,t[7]=0,t[8]=x,t[9]=S,t[10]=c,t[11]=0,t[12]=-(_*r+y*a+x*l),t[13]=-(b*r+M*a+S*l),t[14]=-(h*r+u*a+c*l),t[15]=1},mul:w,multiply:h,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,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t[2]=e[2]+n[2]*s,t[3]=e[3]+n[3]*s,t[4]=e[4]+n[4]*s,t[5]=e[5]+n[5]*s,t[6]=e[6]+n[6]*s,t[7]=e[7]+n[7]*s,t[8]=e[8]+n[8]*s,t[9]=e[9]+n[9]*s,t[10]=e[10]+n[10]*s,t[11]=e[11]+n[11]*s,t[12]=e[12]+n[12]*s,t[13]=e[13]+n[13]*s,t[14]=e[14]+n[14]*s,t[15]=e[15]+n[15]*s,t},ortho:function(t,e,n,s,i,r,o){const a=1/(e-n),l=1/(s-i),h=1/(r-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(i+s)*l,t[14]=(o+r)*h,t[15]=1,t},perspective:function(t,e,n,s,i){const r=1/Math.tan(e/2);let o;return t[0]=r/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,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?(o=1/(s-i),t[10]=(i+s)*o,t[14]=2*i*s*o):(t[10]=-1,t[14]=-2*s),t},perspectiveFromFieldOfView:function(t,e,n,s){const i=Math.tan(e.upDegrees*Math.PI/180),r=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+a),h=2/(i+r);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(o-a)*l*.5,t[9]=(i-r)*h*.5,t[10]=s/(n-s),t[11]=-1,t[12]=0,t[13]=0,t[14]=s*n/(n-s),t[15]=0,t},rotate:d,rotateX:function(t,e,n){const s=Math.sin(n),i=Math.cos(n),r=e[4],o=e[5],a=e[6],l=e[7],h=e[8],u=e[9],c=e[10],d=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]=r*i+h*s,t[5]=o*i+u*s,t[6]=a*i+c*s,t[7]=l*i+d*s,t[8]=h*i-r*s,t[9]=u*i-o*s,t[10]=c*i-a*s,t[11]=d*i-l*s,t},rotateY:function(t,e,n){const s=Math.sin(n),i=Math.cos(n),r=e[0],o=e[1],a=e[2],l=e[3],h=e[8],u=e[9],c=e[10],d=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]=r*i-h*s,t[1]=o*i-u*s,t[2]=a*i-c*s,t[3]=l*i-d*s,t[8]=r*s+h*i,t[9]=o*s+u*i,t[10]=a*s+c*i,t[11]=l*s+d*i,t},rotateZ:function(t,e,n){const s=Math.sin(n),i=Math.cos(n),r=e[0],o=e[1],a=e[2],l=e[3],h=e[4],u=e[5],c=e[6],d=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]=r*i+h*s,t[1]=o*i+u*s,t[2]=a*i+c*s,t[3]=l*i+d*s,t[4]=h*i-r*s,t[5]=u*i-o*s,t[6]=c*i-a*s,t[7]=d*i-l*s,t},scale:c,set:r,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:I,subtract:x,targetTo:function(t,e,n,s){const i=e[0],r=e[1],o=e[2],a=s[0],l=s[1],h=s[2];let u=i-n[0],c=r-n[1],d=o-n[2],f=u*u+c*c+d*d;f>0&&(f=1/Math.sqrt(f),u*=f,c*=f,d*=f);let p=l*d-h*c,m=h*u-a*d,g=a*c-l*u;return f=p*p+m*m+g*g,f>0&&(f=1/Math.sqrt(f),p*=f,m*=f,g*=f),t[0]=p,t[1]=m,t[2]=g,t[3]=0,t[4]=c*g-d*m,t[5]=d*p-u*g,t[6]=u*m-c*p,t[7]=0,t[8]=u,t[9]=c,t[10]=d,t[11]=0,t[12]=i,t[13]=r,t[14]=o,t[15]=1,t},translate:u,transpose:a},Symbol.toStringTag,{value:"Module"}))},32448:(t,e,n)=>{n.d(e,{Z:()=>l});var s=n(43697),i=n(92036),r=n(50758),o=n(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}}!function(t){class e{constructor(t=null){this._target=t,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(t,e){const n=this._listenersMap&&this._listenersMap.get(t);if(!n)return!1;const s=this._target||this;return[...n].forEach((t=>{t.call(s,e)})),n.length>0}on(t,e){if(Array.isArray(t)){const n=t.map((t=>this.on(t,e)));return(0,r.AL)(n)}if(t.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const n=this._listenersMap.get(t)||[];return n.push(e),this._listenersMap.set(t,n),{remove:()=>{const n=this._listenersMap&&this._listenersMap.get(t)||[],s=n.indexOf(e);s>=0&&n.splice(s,1)}}}once(t,e){const n=this.on(t,(t=>{n.remove(),e.call(null,t)}));return n}hasEventListener(t){const e=this._listenersMap&&this._listenersMap.get(t);return null!=e&&e.length>0}}t.EventEmitter=e,t.EventedMixin=t=>{let n=class extends t{constructor(){super(...arguments),this._emitter=new e}destroy(){this._emitter.clear()}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}};return n=(0,s._)([(0,o.j)("esri.core.Evented")],n),n};let n=class extends i.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(t,e){return this._emitter.emit(t,e)}on(t,e){return this._emitter.on(t,e)}once(t,e){return this._emitter.once(t,e)}hasEventListener(t){return this._emitter.hasEventListener(t)}};n=(0,s._)([(0,o.j)("esri.core.Evented")],n),t.EventedAccessor=n}(a||(a={}));const l=a},13867:(t,e,n)=>{n.d(e,{z:()=>i});var s=n(69801);class i{constructor(t,e){this._storage=new s.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,n=1){this._storage.put(this,t,e,n,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,n)=>{n.d(e,{WJ:()=>a,Xq:()=>o});var s,i,r=n(44553);(i=s||(s={}))[i.ALL=0]="ALL",i[i.SOME=1]="SOME";class o{constructor(t,e,n){this.name=t,this._storage=e,this.id=l+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),n&&(this._storage.registerRemoveFunc(this.id,n),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,n,s=0){this._storage.put(this,t,e,n,s)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,n){this._storage.updateSize(this,t,e,n)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class a{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,n,i,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==n&&this._notifyRemove(e,o.entry,s.ALL)),i>this._maxSize)return void this._notifyRemove(e,n,s.ALL);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return void console.warn("Refusing to cache entry with invalid size "+i);const a=1+Math.max(r,-3)- -3;this._db.set(e,{entry:n,size:i,lifetime:a,lives:a}),this._size+=i,t.size+=i,this._checkSizeLimits()}updateSize(t,e,n,i){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===n){for(this._size-=r.size,t.size-=r.size;i>this._maxSize;){const t=this._notifyRemove(e,n,s.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}r.size=i,this._size+=i,t.size+=i,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const n=this._db.get(e);if(n)return this._size-=n.size,t.size-=n.size,this._db.delete(e),++this._hit,n.entry;++this._miss}get(t,e){e=t.id+e;const n=this._db.get(e);if(void 0!==n)return this._db.delete(e),n.lives=n.lifetime,this._db.set(e,n),++this._hit,n.entry;++this._miss}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},n=new Array;this._db.forEach(((t,s)=>{const i=t.lifetime;n[i]=(n[i]||0)+t.size,this._users.forAll((n=>{const{id:i,name:r}=n;if(s.startsWith(i)){const n=e[r]||0;e[r]=n+t.size}}))}));const s={};this._users.forAll((t=>{const n=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const i=e[n]||0;e[n]=i,s[n]=Math.round(100*t.hitRate)+"%"}else s[n]="0%"}));const i=Object.keys(e);i.sort(((t,n)=>e[n]-e[t])),i.forEach((n=>t[n]=Math.round(e[n]/2**20)+"MB / "+s[n]));for(let e=n.length-1;e>=0;--e){const s=n[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,n)=>{n.startsWith(e)&&(this._size-=t.size,this._db.delete(n),this._notifyRemove(n,t.entry,s.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,s.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n){let s;return this._removeFuncs.some((i=>{if(t.startsWith(i[0])){const t=i[1](e,n);return"number"==typeof t&&(s=t),!0}return!1})),s}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,n]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,n,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,n=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,n&&(n.size-=e.size);const i=this._notifyRemove(t,e.entry,s.SOME);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let l=0},10661:(t,e,n)=>{n.d(e,{s:()=>i});var s=n(42100);class i extends s.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},66643:(t,e,n)=>{n.d(e,{Ed:()=>h,UI:()=>u,mt:()=>p,q6:()=>f,vr:()=>m});var s=n(43697),i=n(92036),r=n(70586),o=n(95330),a=n(5600),l=n(52011);function h(t,e,n){return(0,o.as)(t.map(((t,s)=>e.apply(n,[t,s]))))}async function u(t,e,n){return(await(0,o.as)(t.map(((t,s)=>e.apply(n,[t,s]))))).map((t=>t.value))}function c(t){return{ok:!0,value:t}}function d(t){return{ok:!1,error:t}}async function f(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return d(t)}}async function p(t){try{return c(await t)}catch(t){return(0,o.r9)(t),d(t)}}function m(t,e){return new g(t,e)}let g=class extends i.Z{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=t(n),this.promise.then((t=>{this._result=c(t),this._cleanup()}),(t=>{this._result=d(t),this._cleanup()})),this._abortHandle=(0,o.fu)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.hw)(this._abortHandle),this._abortController=null}};(0,s._)([(0,a.Cb)()],g.prototype,"value",null),(0,s._)([(0,a.Cb)()],g.prototype,"error",null),(0,s._)([(0,a.Cb)()],g.prototype,"finished",null),(0,s._)([(0,a.Cb)()],g.prototype,"promise",void 0),(0,s._)([(0,a.Cb)()],g.prototype,"_result",void 0),g=(0,s._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],g)},24133:(t,e,n)=>{n.d(e,{Q:()=>a});var s=n(67676),i=n(70586),r=n(44553),o=n(88764);class a{constructor(t=9,e){this._compareMinX=c,this._compareMinY=d,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(),b.prune(),M.prune(),S.prune(),v.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const s=this._toBBox;if(y(t,n))for(b.clear();n;){for(let i=0,r=n.children.length;i<r;i++){const r=n.children[i],o=n.leaf?s(r):r;y(t,o)&&(n.leaf?e(r):_(t,o)?this._all(r,e):b.push(r))}n=b.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!y(t,e))return!1;for(b.clear();e;){for(let s=0,i=e.children.length;s<i;s++){const i=e.children[s],r=e.leaf?n(i):i;if(y(t,r)){if(e.leaf||_(t,r))return!0;b.push(i)}}e=b.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),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){const 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 E([]),this}remove(t){if(!t)return this;let e,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(t);for(S.clear(),v.clear();n||S.length>0;){if(n||(n=(0,i.j0)(S.pop()),r=S.data[S.length-1],o=v.pop()??0,a=!0),n.leaf&&(e=(0,s.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),S.push(n),this._condense(S),this;a||n.leaf||!_(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(S.push(n),v.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(M.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else M.pushArray(n.children);n=M.pop()??null}}_build(t,e,n,s){const i=n-e+1;let r=this._maxEntries;if(i<=r){const s=new E(t.slice(e,n+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(i)/Math.log(r)),r=Math.ceil(i/r**(s-1)));const o=new F([]);o.height=s;const a=Math.ceil(i/r),h=a*Math.ceil(Math.sqrt(r));x(t,e,n,h,this._compareMinX);for(let i=e;i<=n;i+=h){const e=Math.min(i+h-1,n);x(t,i,e,a,this._compareMinY);for(let n=i;n<=e;n+=a){const i=Math.min(n+a-1,e);o.children.push(this._build(t,n,i,s-1))}}return l(o,this._toBBox),o}_chooseSubtree(t,e,n,s){for(;s.push(e),!0!==e.leaf&&s.length-1!==n;){let n,s=1/0,i=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=f(o),l=m(t,o)-a;l<i?(i=l,s=a<s?a:s,n=o):l===i&&a<s&&(s=a,n=o)}e=n||e.children[0]}return e}_insert(t,e,n){const s=this._toBBox,i=n?t:s(t);S.clear();const r=this._chooseSubtree(i,this._data,e,S);for(r.children.push(t),u(r,i);e>=0&&S.data[e].children.length>this._maxEntries;)this._split(S,e),e--;this._adjustParentBBoxes(i,S,e)}_split(t,e){const n=t.data[e],s=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,s);const r=this._chooseSplitIndex(n,i,s);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=n.children.splice(r,n.children.length-r),a=n.leaf?new E(o):new F(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new F([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let s,i,r;s=i=1/0;for(let o=e;o<=n-e;o++){const e=h(t,0,o,this._toBBox),a=h(t,o,n,this._toBBox),l=g(e,a),u=f(e)+f(a);l<s?(s=l,r=o,i=u<i?u:i):l===s&&u<i&&(i=u,r=o)}return r}_chooseSplitAxis(t,e,n){const s=t.leaf?this._compareMinX:c,i=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,n,s)<this._allDistMargin(t,e,n,i)&&t.children.sort(s)}_allDistMargin(t,e,n,s){t.children.sort(s);const i=this._toBBox,r=h(t,0,e,i),o=h(t,n-e,n,i);let a=p(r)+p(o);for(let s=e;s<n-e;s++){const e=t.children[s];u(r,t.leaf?i(e):e),a+=p(r)}for(let s=n-e-1;s>=e;s--){const e=t.children[s];u(o,t.leaf?i(e):e),a+=p(o)}return a}_adjustParentBBoxes(t,e,n){for(let s=n;s>=0;s--)u(e.data[s],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],r=i.children;r.splice((0,s.cq)(r,n,r.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,s,i){i||(i=new E([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let r,o=e;o<n;o++)r=t.children[o],u(i,t.leaf?s(r):r);return i}function u(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 c(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(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){const n=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,r-s)}function _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,s,r){const a=[e,n];for(;a.length;){const e=(0,i.j0)(a.pop()),n=(0,i.j0)(a.pop());if(e-n<=s)continue;const l=n+Math.ceil((e-n)/s/2)*s;(0,o.q)(t,l,n,e,r),a.push(n,l,l,e)}}const b=new r.Z,M=new r.Z,S=new r.Z,v=new r.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class I extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class E extends I{constructor(t){super(),this.children=t,this.leaf=!0}}class F extends I{constructor(t){super(),this.children=t,this.leaf=!1}}},14808:(t,e,n)=>{n.d(e,{Qc:()=>u,WU:()=>a,lt:()=>h});var s=n(19153),i=n(70171);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(t=(0,i.Kd)()){let e=(t=t.toLowerCase())in r;if(!e){const n=t.split("-");n.length>1&&n[0]in r&&(t=n[0],e=!0),e||(t="en")}const[n,s,o="#,##0.###"]=r[t];return{decimal:n,group:s,pattern:o}}function a(t,e){const n=o((e={...e}).locale);e.customs=n;const s=e.pattern||n.pattern;return isNaN(t)||Math.abs(t)===1/0?null:function(t,e,n){const s=(n=n||{}).customs.group,i=n.customs.decimal,r=e.split(";"),o=r[0];if((e=r[t<0?1:0]||"-"+o).includes("%"))t*=100;else if(e.includes("‰"))t*=1e3;else{if(e.includes("¤"))throw new Error("currency notation not supported");if(e.includes("E"))throw new Error("exponential notation not supported")}const a=l,h=o.match(a);if(!h)throw new Error("unable to find a number expression in pattern: "+e);return!1===n.fractional&&(n.places=0),e.replace(a,function(t,e,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const s=e.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let r=n.places;i?r=n.places.substring(i+1):+r>=0||(r=(s[1]||[]).length),n.round<0||(t=Number(t.toFixed(Number(r))));const o=String(Math.abs(t)).split("."),a=o[1]||"";if(s[1]||n.places){i&&(n.places=n.places.substring(0,i));const t=void 0!==n.places?n.places:s[1]&&s[1].lastIndexOf("0")+1;+t>a.length&&(o[1]=a.padEnd(Number(t),"0")),+r<a.length&&(o[1]=a.substr(0,Number(r)))}else o[1]&&o.pop();const l=s[0].replace(",","");let h=l.indexOf("0");-1!==h&&(h=l.length-h,h>o[0].length&&(o[0]=o[0].padStart(h,"0")),l.includes("#")||(o[0]=o[0].substr(o[0].length-h)));let u,c,d=s[0].lastIndexOf(",");if(-1!==d){u=s[0].length-d-1;const t=s[0].substr(0,d);d=t.lastIndexOf(","),-1!==d&&(c=t.length-d-1)}const f=[];for(let t=o[0];t;){const e=t.length-u;f.push(e>0?t.substr(e):t),t=e>0?t.slice(0,e):"",c&&(u=c,c=void 0)}return o[0]=f.reverse().join(n.group||","),o.join(n.decimal||".")}(t,h[0],{decimal:i,group:s,places:n.places,round:n.round}))}(t,s,e)}const l=/[#0,]*[#0](?:\.0*#*)?/;function h(t){const e=o((t=t||{}).locale),n=t.pattern||e.pattern,i=e.group,r=e.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const h=n.split(";");1===h.length&&h.push("-"+h[0]);const u=d(h,(e=>(e="(?:"+(0,s.Qs)(e,".")+")").replace(l,(e=>{const n={signed:!1,separator:t.strict?i:[i,""],fractional:t.fractional,decimal:r,exponent:!1},s=e.split(".");let o=t.places;1===s.length&&1!==a&&(s[1]="###"),1===s.length||0===o?n.fractional=!1:(void 0===o&&(o=t.pattern?s[1].lastIndexOf("0")+1:1/0),o&&null==t.fractional&&(n.fractional=!0),!t.places&&+o<s[1].length&&(o+=","+s[1].length),n.places=o);const l=s[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(t){"places"in(t=t||{})||(t.places=1/0),"string"!=typeof t.decimal&&(t.decimal="."),"fractional"in t&&!/^0/.test(String(t.places))||(t.fractional=[!0,!1]),"exponent"in t||(t.exponent=[!0,!1]),"eSigned"in t||(t.eSigned=[!0,!1]);const e=c(t),n=d(t.fractional,(e=>{let n="";return e&&0!==t.places&&(n="\\"+t.decimal,t.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+t.places+"}"),n}),!0);let s=e+n;return n&&(s="(?:(?:"+s+")|(?:"+n+"))"),s+d(t.exponent,(e=>e?"([eE]"+c({signed:t.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:u.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:r,factor:a}}function u(t,e){const n=h(e),s=new RegExp("^"+n.regexp+"$").exec(t);if(!s)return NaN;let i=s[1];if(!s[1]){if(!s[2])return NaN;i=s[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function c(t){return"signed"in(t=t||{})||(t.signed=[!0,!1]),"separator"in t?"groupSize"in t||(t.groupSize=3):t.separator="",d(t.signed,(t=>t?"[-+]":""),!0)+d(t.separator,(e=>{if(!e)return"(?:\\d+)";" "===(e=(0,s.Qs)(e))?e="\\s":" "===e&&(e="\\s\\xa0");const n=t.groupSize,i=t.groupSize2;if(i){const t="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+e+"]\\d{"+i+"})*["+e+"]\\d{"+n+"})";return n-i>0?"(?:"+t+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":t}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+e+"]\\d{"+n+"})*)"}),!0)}const d=(t,e,n)=>{if(!(t instanceof Array))return e(t);const s=[];for(let n=0;n<t.length;n++)s.push(e(t[n]));return f(s.join("|"),Boolean(n))},f=(t,e)=>"("+(e?"?:":"")+t+")"},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>m,gx:()=>h,nn:()=>g,on:()=>c,tX:()=>_});var s=n(91460),i=n(50758),r=n(70586),o=n(95330),a=n(26258);function l(t,e,n={}){return u(t,e,n,f)}function h(t,e,n={}){return u(t,e,n,p)}function u(t,e,n={},s){let i=null;const o=n.once?(t,n)=>{s(t)&&((0,r.hw)(i),e(t,n))}:(t,n)=>{s(t)&&e(t,n)};if(i=(0,a.aQ)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return i}function c(t,e,n,o={}){let a=null,h=null,u=null;function c(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(t){o.once&&o.once&&(0,r.hw)(u),n(t)}const f=l(t,((t,n)=>{c(),(0,s.vT)(t)&&(a=t,h=(0,s.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return u=(0,i.kB)((()=>{f.remove(),c()})),u}function d(t,e){return function(t,e,n){if((0,o.Hc)(n))return Promise.reject((0,o.zE)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((s,r)=>{a=(0,i.AL)([(0,o.fu)(n,(()=>{l(),r((0,o.zE)())})),u(t,(t=>{l(),s(t)}),{sync:!1,once:!0},e??f)])}))}(t,p,e)}function f(t){return!0}function p(t){return!!t}n(87538);const m={sync:!0},g={initial:!0},_={sync:!0,initial:!0}},16306:(t,e,n)=>{n.d(e,{aX:()=>S});var s=n(68773),i=n(20102),r=n(92604),o=n(38913),a=n(58901),l=n(73913),h=n(8744),u=n(40488),c=(n(66577),n(3172)),d=n(33955),f=n(11282),p=n(81271);async function m(t,e,n){const s="string"==typeof t?(0,p.mN)(t):t,i=e[0].spatialReference,r=(0,d.Ji)(e[0]),o={...n,query:{...s.query,f:"json",sr:i.wkid??JSON.stringify(i),geometries:JSON.stringify((l=e,{geometryType:(0,d.Ji)(l[0]),geometries:l.map((t=>t.toJSON()))}))}},{data:a}=await(0,c.default)(s.path+"/simplify",o);var l;return function(t,e,n){const s=(0,d.q9)(e);return t.map((t=>{const e=s.fromJSON(t);return e.spatialReference=n,e}))}(a.geometries,r,i)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function _(t){return"polygon"===t[0].type}function y(t){return"polyline"===t[0].type}function x(t,e,n){if(e){const e=function(t,e){if(!(t instanceof a.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new i.Z(t)}const n=(0,l.x3)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const i=t[s][0],r=t[s][1],o=t[s+1][0],a=t[s+1][1],l=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r)),h=(a-r)/l,u=(o-i)/l,c=l/e;if(c>1){for(let t=1;t<=c-1;t++){const s=t*e,o=u*s+i,a=h*s+r;n.push([o,a])}const t=(l+Math.floor(c-1)*e)/2,s=u*t+i,o=h*t+r;n.push([s,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:s,spatialReference:t.spatialReference}):new a.Z({paths:s,spatialReference:t.spatialReference})}(t,1e6);t=(0,u.Sx)(e,!0)}return n&&(t=(0,l.Sy)(t,n)),t}function b(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,l.XZ)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,l.XZ)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,l.XZ)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,l.XZ)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function M(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const i=e.cutIndexes[s],r=e.geometries[s],o=(0,l.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,l.XZ)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(s,0))}return!0}}))}if(i===n){if(_(t))for(const e of(0,l.x3)(r))t[i]=t[i].addRing(e);else if(y(t))for(const e of(0,l.x3)(r))t[i]=t[i].addPath(e)}else n=i,t[i]=r}return t}async function S(t,e,n){if(!Array.isArray(t))return S([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof e?e:e?.url??s.default.geometryServiceUrl;let r,p,_,y,v,w,I,E,F=0;const z=[],B=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,p=(0,h.C5)(r),_=r.isWebMercator,w=_?102100:4326,y=l.UZ[w].maxX,v=l.UZ[w].minX,I=l.UZ[w].plus180Line,E=l.UZ[w].minus180Line),p)if("mesh"===e.type)B.push(e);else if("point"===e.type)B.push(b(e.clone(),y,v));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>b(t,y,v))),B.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,p);B.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,n=(0,l.XZ)(t.xmin,v)*(2*y);let s=0===n?e.clone():(0,l.Sy)(e.clone(),n);t.offset(n,0),t.intersects(I)&&t.xmax!==y?(F=t.xmax>F?t.xmax:F,s=x(s,_),z.push(s),B.push("cut")):t.intersects(E)&&t.xmin!==v?(F=t.xmax*(2*y)>F?t.xmax*(2*y):F,s=x(s,_,360),z.push(s),B.push("cut")):B.push(s)}else B.push(e.clone());else B.push(e);else B.push(e);let N=(0,l.XZ)(F,y),T=-90;const R=N,Z=new a.Z;for(;N>0;){const t=360*N-180;Z.addPath([[t,T],[t,-1*T]]),T*=-1,N--}if(z.length>0&&R>0){const e=M(z,await async function(t,e,n,s){const i=(0,f.en)(t),r=e[0].spatialReference,o={...s,query:{...i.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,d.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,c.default)(i.path+"/cut",o),{cutIndexes:l,geometries:h=[]}=a.data;return{cutIndexes:l,geometries:h.map((t=>{const e=(0,d.im)(t);return e.spatialReference=r,e}))}}(i,z,Z,n)),s=[],r=[];for(let n=0;n<B.length;n++){const i=B[n];if("cut"!==i)r.push(i);else{const i=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&i.rings.length>=o.rings.length?(s.push(i),r.push("simplify")):r.push(_?(0,u.$)(i):i)}}if(!s.length)return r;const o=await m(i,s,n),a=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?a.push(e):a.push(_?(0,u.$)(o.shift()):o.shift())}return a}const A=[];for(let t=0;t<B.length;t++){const e=B[t];if("cut"!==e)A.push(e);else{const t=z.shift();A.push(!0===_?(0,u.$)(t):t)}}return A}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>o,XZ:()=>a,x3:()=>h});var s=n(58901),i=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:i.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:i.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=h(t);for(const t of n)for(const n of t)n[0]+=e;return t}function h(t){return(0,r.oU)(t)?t.rings:t.paths}},70171:(t,e,n)=>{let s;n.d(e,{Kd:()=>o,Ze:()=>u,qe:()=>l});const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function r(){return i??globalThis.navigator?.language??"en"}function o(){return void 0===s&&(s=r()),s}const a=[];function l(t){return a.push(t),{remove(){a.splice(a.indexOf(t),1)}}}const h=[];function u(t){return h.push(t),{remove(){a.splice(h.indexOf(t),1)}}}globalThis.addEventListener?.("languagechange",(function(){const t=r();s!==t&&(s=t,[...h].forEach((e=>{e.call(null,t)})),[...a].forEach((e=>{e.call(null,t)})))}))},37549:(t,e,n)=>{n.d(e,{H:()=>a});var s=n(80442),i=n(24133),r=n(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.Q(9,(0,s.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,s)=>{t[e++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(t,e,n)=>{n.d(e,{Z:()=>g});var s=n(20102),i=n(32448),r=n(92604),o=n(60437),a=n(24470),l=n(98732),h=n(37549),u=n(29730),c=n(70272),d=n(5428);const f={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new c.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=(0,u.Y)(new d.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)};var p=n(11490);const m=(0,o.Ue)();class g{constructor(t){this.geometryInfo=t,this._boundsStore=new h.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new i.Z,this.featureAdapter=f}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,n,s,i]=this.fullBounds;return{xmin:e,ymin:n,xmax:s,ymax:i,spatialReference:(0,p.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const n of t){const t=this._boundsStore.get(n.objectId);t&&e((0,o.JR)(m,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,n)=>{this._markedIds.has(n)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void r.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const n=this._featuresById.get(e);let i;if(this._markedIds.add(e),n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),null==t.geometry||!t.geometry.coords||!t.geometry.coords.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,l.$)(null!=i?i:(0,a.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t)}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},27793:(t,e,n)=>{n.r(e),n.d(e,{default:()=>H}),n(66577);var s=n(3172),i=n(66643),r=n(20102),o=n(92604),a=n(95330),l=n(81271),h=n(44547),u=n(37455),c=n(8744),d=n(40488),f=n(70272),p=n(5428),m=n(57191),g=n(37427),_=n(66202),y=n(14808),x=n(35671);const b=/^\s*"([\S\s]*)"\s*$/,M=/""/g,S="\n",v=[","," ",";","|","\t"];function*w(t,e,n){let s=0;for(;s<=t.length;){const i=t.indexOf(e,s),r=t.substring(s,i>-1?i:void 0);s+=r.length+e.length,n&&!r.trim()||(yield r)}}function I(t){const e=t.includes("\r\n")?"\r\n":S;return w(t,e,!0)}function E(t,e){return w(t,e,!1)}function F(t,e,n){t=t.trim(),e=e?.trim();const s=[],i=Array.from(new Set([n?.delimiter,...v])).filter((t=>null!=t));for(const n of i){const i=N(t,n).length,r=N(e,n).length??i;i>1&&s.push({weight:Math.min(i,r),delimiter:n})}const r=s.sort((({weight:t},{weight:e})=>e-t)).map((({delimiter:t})=>t));for(const e of r){const s=R(B(t,e).names,n?.longitudeField,n?.latitudeField);if(s.longitudeFieldName&&s.latitudeFieldName)return{delimiter:e,locationInfo:s}}return{delimiter:r[0],locationInfo:null}}function*z(t,e,n,s=(()=>Object.create(null))){const i=I(t);i.next();let r="",o="",a=0,l=s(),h=0;t:for(const t of i){const i=E(t,n);for(const t of i)if(r+=o+t,o="",a+=T(t),a%2==0){if(a>0){const t=b.exec(r);if(!t){l=s(),h=0,r="",a=0;continue t}l[e[h]]=t[1].replaceAll(M,'"'),h++}else l[e[h]]=r,h++;r="",a=0}else o=n;0===a?(yield l,l=s(),h=0):o=S}}function B(t,e){const n=N(t,e).filter((t=>null!=t)),s=n.map((t=>(0,x.q6)(t)));for(let t=s.length-1;t>=0;t--)s[t]||(s.splice(t,1),n.splice(t,1));return{names:s,aliases:n}}function N(t,e){if(!t?.length)return[];const n=[];let s="",i="",r=0;const o=E(t,e);for(const t of o)if(s+=i+t,i="",r+=T(t),r%2==0){if(r>0){const t=b.exec(s);t&&n.push(t[1].replaceAll(M,'"'))}else n.push(s);s="",r=0}else i=e;return n}function T(t){let e=0,n=0;for(n=t.indexOf('"',n);n>=0;)e++,n=t.indexOf('"',n+1);return e}function R(t,e,n){e=(0,x.q6)(e)?.toLowerCase(),n=(0,x.q6)(n)?.toLowerCase();const s=t.map((t=>t.toLowerCase())),i=e?t[s.indexOf(e)]:null,r=n?t[s.indexOf(n)]:null;return{longitudeFieldName:i||t[s.indexOf(j.find((t=>s.includes(t))))],latitudeFieldName:r||t[s.indexOf(X.find((t=>s.includes(t))))]}}function Z(t,e,n,s,i){const r=[],o=z(t,n,e),a=[];for(const t of o){if(10===a.length)break;a.push(t)}for(let t=0;t<n.length;t++){const e=n[t],o=s[t];if(e===i.longitudeFieldName||e===i.latitudeFieldName)r.push({name:e,type:"esriFieldTypeDouble",alias:o});else{let t,n;switch(A(a.map((t=>t[e])))){case"integer":t="esriFieldTypeInteger";break;case"double":t="esriFieldTypeDouble";break;case"date":t="esriFieldTypeDate",n=36;break;default:t="esriFieldTypeString",n=255}r.push({name:e,type:t,alias:o,length:n})}}return r}function A(t){if(!t.length)return"string";const e=/[^+-.,0-9]/;return t.map((t=>{let n=!1;if(""!==t){if(e.test(t))n=!0;else{let e=q(t);if(!isNaN(e))return/[.,]/.test(t)||!Number.isInteger(e)||e>214783647||e<-214783648?"double":"integer";if(t.includes("E")){if(e=Number(t),!isNaN(e))return"double";if(t.includes(",")){if(t=t.replace(",","."),e=Number(t),!isNaN(e))return"double";n=!0}else n=!0}else n=!0}return n?/^[-]?\d*[.,]?\d*$/.test(t)?"string":O(new Date(t),t)?"date":"string":"string"}})).reduce(((t,e)=>void 0===t?e:void 0===e?t:t===e?e:"string"===t||"string"===e?"string":"double"===t||"double"===e?"double":void 0))}function O(t,e){if(!t||"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))return!1;let n=!0;if(!C&&/\d+\W*$/.test(e)){const t=e.match(/[a-zA-Z]{2,}/);if(t){let e=!1,s=0;for(;!e&&s<=t.length;)e=!L.test(t[s]),s++;n=!e}}return n}const q=function(){const t=(0,y.lt)(),e=new RegExp("^"+t.regexp+"$"),n=new RegExp("["+t.group+"\\s\\xa0]","g"),s=t.factor;return i=>{const r=e.exec(i);if(t.factor=s,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],t.factor*=-1}return o=o.replace(n,"").replace(t.decimal,"."),+o*t.factor}}(),L=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,C=Number.isNaN(new Date("technology 10").getTime()),X=["lat","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],j=["lon","lng","long","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];var Y=n(25278),k=n(99514),P=n(82971);const D=(0,Y.bU)("esriGeometryPoint"),U=["csv"],J=[0,0];class ${constructor(t,e){this.x=t,this.y=e}}class H{constructor(){this._queryEngine=null,this._snapshotFeatures=async t=>{const e=await this._fetch(t);return this._createFeatures(e)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(t,e={}){this._loadOptions=t;const[n]=await Promise.all([this._fetch(e.signal),this._checkProjection(t?.parsingOptions?.spatialReference)]),s=function(t,e){const n=e.parsingOptions||{},s={delimiter:n.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:n.latitudeField,longitudeFieldName:n.longitudeField}},i=s.layerDefinition={name:(0,l.vt)(e.url,U)||"csv",drawingInfo:D,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:n.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:n.spatialReference||{wkid:4326}}},o=I(t),a=o.next().value?.trim(),h=o.next().value?.trim();if(!a)throw new r.Z("csv-layer:empty-csv","CSV is empty",{csv:t});const{delimiter:u,locationInfo:c}=F(a,h,n);if(!u)throw new r.Z("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:h,parsingOptions:n});if(!c)throw new r.Z("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:h,parsingOptions:n});s.locationInfo=c,s.delimiter=u;const{names:d,aliases:f}=B(a,u),p=Z(t,s.delimiter,d,f,s.locationInfo);if(n.fields?.length){const t=new k.Z(n.fields);for(const e of p){const n=t.get(e.name);n&&Object.assign(e,n)}}if(!p.some((t=>"esriFieldTypeOID"===t.type&&(i.objectIdField=t.name,!0)))){const t={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};i.objectIdField=t.name,p.unshift(t)}i.fields=p;const m=new k.Z(i.fields);if(s.locationInfo&&(s.locationInfo.latitudeFieldName=m.get(s.locationInfo.latitudeFieldName).name,s.locationInfo.longitudeFieldName=m.get(s.locationInfo.longitudeFieldName).name),i.timeInfo){const t=i.timeInfo;if(t.startTimeField){const e=m.get(t.startTimeField);e?(t.startTimeField=e.name,e.type="esriFieldTypeDate"):t.startTimeField=null}if(t.endTimeField){const e=m.get(t.endTimeField);e?(t.endTimeField=e.name,e.type="esriFieldTypeDate"):t.endTimeField=null}if(t.trackIdField){const e=m.get(t.trackIdField);t.trackIdField=e?e.name:null}t.startTimeField||t.endTimeField||(i.timeInfo=null)}return s}(n,t);this._locationInfo=s.locationInfo,this._delimiter=s.delimiter,this._queryEngine=this._createQueryEngine(s);const i=await this._createFeatures(n);this._queryEngine.featureStore.addMany(i);const{fullExtent:o,timeExtent:a}=await this._queryEngine.fetchRecomputedExtents();if(s.layerDefinition.extent=o,a){const{start:t,end:e}=a;s.layerDefinition.timeInfo.timeExtent=[t,e]}return s}async applyEdits(){throw new r.Z("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(t={},e={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(t,e.signal)}async queryFeatureCount(t={},e={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(t,e.signal)}async queryObjectIds(t={},e={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(t,e.signal)}async queryExtent(t={},e={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(t,e.signal)}async querySnapping(t,e={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(t,e.signal)}async refresh(t){this._loadOptions.customParameters=t,this._snapshotTask?.abort(),this._snapshotTask=(0,i.vr)(this._snapshotFeatures),this._snapshotTask.promise.then((t=>{this._queryEngine.featureStore.clear(),t&&this._queryEngine.featureStore.addMany(t)}),(t=>{this._queryEngine.featureStore.clear(),(0,a.D_)(t)||o.Z.getLogger("esri.layers.CSVLayer").error(new r.Z("csv-layer:refresh","An error occurred during refresh",{error:t}))})),await this._waitSnapshotComplete();const{fullExtent:e,timeExtent:n}=await this._queryEngine.fetchRecomputedExtents();return{extent:e,timeExtent:n}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(t){const{url:e,customParameters:n}=this._loadOptions;if(!e)throw new r.Z("csv-layer:invalid-source","url not defined");const i=(0,l.mN)(e);return(await(0,s.default)(i.path,{query:{...i.query,...n},responseType:"text",signal:t})).data}_createQueryEngine(t){const{objectIdField:e,fields:n,extent:s,timeInfo:i}=t.layerDefinition,r=new m.Z({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new _.q({fields:n,geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:i,objectIdField:e,spatialReference:s.spatialReference||{wkid:4326},cacheSpatialQueries:!0,featureStore:r})}async _createFeatures(t){const{latitudeFieldName:e,longitudeFieldName:n}=this._locationInfo,{objectIdField:s,fieldsIndex:i,spatialReference:r}=this._queryEngine;let o=[];const a=[],l=i.fields.filter((t=>t.name!==s)).map((t=>t.name));let m=0;const g={};for(const t of i.fields)if("esriFieldTypeOID"!==t.type&&"esriFieldTypeGlobalID"!==t.type){const e=(0,x.os)(t);void 0!==e&&(g[t.name]=e)}const _=z(t,l,this._delimiter,(0,Y.Dm)(g,s));for(const t of _){const r=this._parseCoordinateValue(t[e]),l=this._parseCoordinateValue(t[n]);if(null!=l&&null!=r&&!isNaN(r)&&!isNaN(l)){t[e]=r,t[n]=l;for(const s in t)if(s!==e&&s!==n)if(i.isDateField(s)){const e=new Date(t[s]);t[s]=O(e,t[s])?e.getTime():null}else if(i.isNumericField(s)){const e=q(t[s]);isNaN(e)?t[s]=null:t[s]=e}t[s]=m,m++,o.push(new $(l,r)),a.push(t)}}if(!(0,c.fS)({wkid:4326},r))if((0,c.sS)(r))for(const t of o)[t.x,t.y]=(0,d.hG)(t.x,t.y,J);else o=(0,h.oj)(u.N,o,P.Z.WGS84,r,null,null);const y=[];for(let t=0;t<o.length;t++){const{x:e,y:n}=o[t],i=a[t];i[s]=t+1,y.push(new f.u_(new p.Z([],[e,n]),i,null,i[s]))}return y}_parseCoordinateValue(t){if(null==t||""===t)return null;let e=q(t);return(isNaN(e)||Math.abs(e)>181)&&(e=parseFloat(t)),e}async _checkProjection(t){try{await(0,g._W)(c.Zn,t)}catch{throw new r.Z("csv-layer:projection-not-supported","Projection not supported")}}}},25278:(t,e,n)=>{n.d(e,{Dm:()=>u,Hq:()=>c,MS:()=>d,bU:()=>a});var s=n(80442),i=n(22974),r=n(61159),o=n(58333);function a(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?o.I4:"esriGeometryPolyline"===t?o.ET:o.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let h=1;function u(t,e){if((0,s.Z)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let n=`this.${e} = null;`;for(const e in t)n+=`this${l.test(e)?`.${e}`:`["${e}"]`} = ${JSON.stringify(t[e])};`;const s=new Function(`\n return class AttributesClass$${h++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new s}catch(n){return()=>({[e]:null,...t})}}function c(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.d9)(t)}}]}function d(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0},query:r.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},11282:(t,e,n)=>{n.d(e,{cv:()=>a,en:()=>o,lA:()=>r}),n(68773),n(40330);var s=n(22974),i=n(81271);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,i.mN)(t):(0,s.d9)(t)}function a(t,e,n){const s={};for(const i in t){if("declaredClass"===i)continue;const r=t[i];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){s[i]=[];for(let t=0;t<r.length;t++)s[i][t]=a(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(n&&n[i]);s[i]=e?t:JSON.stringify(t)}else s[i]=e?r:JSON.stringify(r);else s[i]=r}return s}n(71058)},58333:(t,e,n)=>{n.d(e,{ET:()=>r,I4:()=>i,eG:()=>l,lF:()=>o,lj:()=>u,qP:()=>a,wW:()=>h});const s=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},h={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -28,8 +28,19 @@
28
28
  text-align: center;
29
29
  }
30
30
 
31
- &__related-record-list {
32
- min-height: 40px;
31
+ &__related-records {
32
+ &_header {
33
+ display: flex;
34
+
35
+ span {
36
+ flex-grow: 1;
37
+ }
38
+ }
39
+
40
+ &_list {
41
+ margin-bottom: $cap-spacing;
42
+ min-height: 40px;
43
+ }
33
44
  }
34
45
  }
35
46
 
@@ -47,6 +58,12 @@
47
58
  }
48
59
  }
49
60
 
61
+ .esri-feature-form__relationship-label {
62
+ calcite-notice {
63
+ margin-bottom: $cap-spacing;
64
+ }
65
+ }
66
+
50
67
  .esri-feature-form__form-header {
51
68
  margin-bottom: $cap-spacing;
52
69
  .esri-feature-form__description-text ~ .esri-widget__heading {