@arcgis/core 5.2.0-next.119 → 5.2.0-next.120

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 (114) hide show
  1. package/arcade/ArcadeDate.js +1 -1
  2. package/arcgisGlobal.d.ts +1 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/090c9c2dbf92f2cac0b8.js +1 -0
  5. package/assets/esri/core/workers/chunks/2cf571d968118b6bdde0.js +1 -0
  6. package/assets/esri/core/workers/chunks/{be4de7111bc21bc69de1.js → 2e999b05ce179dd9fa08.js} +1 -1
  7. package/assets/esri/core/workers/chunks/39985c51465b79ff0910.js +1 -0
  8. package/assets/esri/core/workers/chunks/4165eb86471ea3bbf364.js +1 -0
  9. package/assets/esri/core/workers/chunks/{731ec5de16753e10b963.js → 46388b86d1b10e6121bd.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{bdcca906fdfb8e179abb.js → 4efe5827a5c61db3b19d.js} +2 -2
  11. package/assets/esri/core/workers/chunks/50ae209237f104735a30.js +1 -0
  12. package/assets/esri/core/workers/chunks/519ed8e6edd0f0014686.js +1 -0
  13. package/assets/esri/core/workers/chunks/{3c3e5e952fd6740bb234.js → 54f9062526c2002b7fd7.js} +1 -1
  14. package/assets/esri/core/workers/chunks/56b7ac280bf0be938c14.js +1 -0
  15. package/assets/esri/core/workers/chunks/61bcbafd676804ce3e1d.js +1 -0
  16. package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +1 -0
  17. package/assets/esri/core/workers/chunks/75410a4de76e67ed5da4.js +1 -0
  18. package/assets/esri/core/workers/chunks/85780f4fa4b5509f864e.js +1 -0
  19. package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +1 -0
  20. package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +1 -0
  21. package/assets/esri/core/workers/chunks/8ce14dd209462f88b163.js +1 -0
  22. package/assets/esri/core/workers/chunks/ab3d19c77e81fe3a099d.js +1 -0
  23. package/assets/esri/core/workers/chunks/bdf0b4653ee455e72f04.js +1 -0
  24. package/assets/esri/core/workers/chunks/c118b88a7c4359e68d9b.js +1 -0
  25. package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +1 -0
  26. package/assets/esri/core/workers/chunks/ceda1e08c9ff26248db0.js +1 -0
  27. package/assets/esri/core/workers/chunks/{06e7411c5bed0a414031.js → d6130cd8a20d24dd9d3c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{49c6dc487714f9cd55c7.js → ddb5d29a8998d0a76fd4.js} +1 -1
  29. package/assets/esri/core/workers/chunks/e9f8325a4cf89ae816cc.js +1 -0
  30. package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +1 -0
  31. package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +1 -0
  32. package/assets/esri/core/workers/chunks/f75e57d3e02f9828b049.js +1 -0
  33. package/chunks/ColorMaterial.glsl.js +8 -8
  34. package/chunks/GaussianSplat.glsl.js +13 -8
  35. package/chunks/GaussianSplatShadow.glsl.js +33 -4
  36. package/chunks/languageUtils.js +1 -1
  37. package/config.js +1 -1
  38. package/core/has.js +1 -1
  39. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  40. package/kernel.js +1 -1
  41. package/layers/support/NumericRange.d.ts +41 -0
  42. package/layers/support/fieldUtils.d.ts +9 -0
  43. package/linkChart/LinkChartProperties.js +1 -1
  44. package/package.json +4 -4
  45. package/support/revision.js +1 -1
  46. package/time/ianaZone.js +2 -0
  47. package/time/timeZoneUtils.js +1 -1
  48. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
  49. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  50. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  51. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
  52. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  53. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  54. package/views/3d/analysis/LineOfSight/types.d.ts +1 -0
  55. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementVisualization.js +1 -1
  56. package/views/3d/focusAreaUtils.js +1 -1
  57. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  58. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  59. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  60. package/views/3d/layers/graphics/extrudePolygon.js +2 -0
  61. package/views/3d/navigation/Navigation3D.js +1 -1
  62. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  63. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  64. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  65. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  66. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  67. package/views/3d/webgl-engine/lib/GaussianSplatDepthRenderer.js +1 -1
  68. package/views/3d/webgl-engine/lib/GaussianSplatPrepassDepthRenderer.js +2 -0
  69. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  70. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  71. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  72. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  73. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  74. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  75. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  76. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +38 -27
  77. package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
  78. package/views/SceneView.d.ts +1 -1
  79. package/views/SceneView.js +1 -1
  80. package/views/draw/plugins/PolygonPlugin.js +1 -1
  81. package/webmap/utils.js +1 -1
  82. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  83. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +43 -2
  84. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  85. package/widgets/BatchAttributeForm/inputs/support/inputUtils.d.ts +11 -0
  86. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  87. package/widgets/BatchAttributeForm/inputs/types.d.ts +8 -0
  88. package/widgets/OrientedImageryViewer.js +1 -1
  89. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  90. package/assets/esri/core/workers/chunks/2c21f4744e19b925a6ae.js +0 -1
  91. package/assets/esri/core/workers/chunks/2c9783e3b44986e86797.js +0 -1
  92. package/assets/esri/core/workers/chunks/45858d1c6487f4a98e40.js +0 -1
  93. package/assets/esri/core/workers/chunks/497c5a9c95e9a89ac217.js +0 -1
  94. package/assets/esri/core/workers/chunks/515fe302743c0b46f7e0.js +0 -1
  95. package/assets/esri/core/workers/chunks/54f3bc940cea15fce2c7.js +0 -1
  96. package/assets/esri/core/workers/chunks/5f79ba5639067f734791.js +0 -1
  97. package/assets/esri/core/workers/chunks/61ea3493b477ddc442e6.js +0 -1
  98. package/assets/esri/core/workers/chunks/6b9d29ca568590358478.js +0 -1
  99. package/assets/esri/core/workers/chunks/7243d5721bb6a7329055.js +0 -1
  100. package/assets/esri/core/workers/chunks/7adff63fd66fab505ae6.js +0 -1
  101. package/assets/esri/core/workers/chunks/84b89c523d3e16a5ee46.js +0 -1
  102. package/assets/esri/core/workers/chunks/85c876ee9e63d5732937.js +0 -1
  103. package/assets/esri/core/workers/chunks/8cc95d827f460909d442.js +0 -1
  104. package/assets/esri/core/workers/chunks/97fea852f8e93e1286e4.js +0 -1
  105. package/assets/esri/core/workers/chunks/a5466c864c3ead9aac5a.js +0 -1
  106. package/assets/esri/core/workers/chunks/a774006be107e449bc29.js +0 -1
  107. package/assets/esri/core/workers/chunks/bb56ab53c5a10c9518a6.js +0 -1
  108. package/assets/esri/core/workers/chunks/d5defba320f2e49a377f.js +0 -1
  109. package/assets/esri/core/workers/chunks/e5f0c47957a4e9663720.js +0 -1
  110. package/assets/esri/core/workers/chunks/ebe7ba2557b50e18e547.js +0 -1
  111. package/assets/esri/core/workers/chunks/edd36e98355f1655e5c8.js +0 -1
  112. package/assets/esri/core/workers/chunks/f66e597e524b26e61cd3.js +0 -1
  113. package/views/3d/layers/graphics/extrudeUtils.js +0 -2
  114. /package/assets/esri/core/workers/chunks/{bdcca906fdfb8e179abb.js.LICENSE.txt → 4efe5827a5c61db3b19d.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4250],{32198(t,n,e){function r(t,n,e,r){var o,a=arguments.length,u=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(n,e,u):o(n,e))||u);return a>3&&u&&Object.defineProperty(n,e,u),u}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function u(t){function n(n){t.error=t.hasError?new a(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var a=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(a).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,e){var r=e(32198),o=e(69622),a=(e(44208),e(4718)),u=(e(53966),e(97768)),i=e(88620),c=e(64108);const s=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=s}clone(t){const n=(0,i.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},c=new Map;for(const n in e){const u=e[n],i=r?.originOf(n),s=u.clonable;if(u.readOnly||!1===s||7!==i&&0!==i&&5!==i&&4!==i)continue;const l=this[n];let f=null;if("function"==typeof s)f=s(l,t);else if("reference"===s)f=l;else if(f=(0,a.TU)(l,t),null!=l&&null==f)continue;0===i?c.set(n,f):o[n]=f}const s=new(0,Object.getPrototypeOf(this).constructor)(o);if(c.size){const t=(0,i.oY)(s)?.store;if(t)for(const[n,e]of c)t.set(n,e,0)}return s}};return o=(0,r.Cg)([(0,c.$)("esri.core.Clonable")],o),o},f=l(o.A);e.d(n,["OU",0,l,"Pw",0,f])},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,i,c){return[t,n,e,r,o,a,u,i,c]}e.d(n,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,n,e,r,o,a,u,i,c,s,l,f,h,d,M,b){return[t,n,e,r,o,a,u,i,c,s,l,f,h,d,M,b]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function u(t,n,e){return[t,n,e]}function i(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function c(){return a(1,1,1)}function s(){return a(1,0,0)}function l(){return a(0,1,0)}function f(){return a(0,0,1)}e.d(n,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],d=c(),M=s(),b=l(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:M,UNIT_Y:b,UNIT_Z:p,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:c,unitX:s,unitY:l,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,p,"Cw",0,M,"JP",0,b,"Un",0,d,"uY",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function s(){return o(0,0,0,1)}e.d(n,{_Y:()=>s,fA:()=>o,vt:()=>r});const l=[0,0,0,0],f=a(),h=u(),d=i(),M=c(),b=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:d,UNIT_Z:M,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitW:s,unitX:u,unitY:i,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,l,"v7",0,b])},34304(t,n,e){e.d(n,{DF:()=>c,FD:()=>o,ct:()=>s});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function c(t){return t*u}function s(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:s,toRadian:c},Symbol.toStringTag,{value:"Module"})),e.d(n,["Ov",0,a])},77690(t,n,e){e.d(n,{B8:()=>i,Ge:()=>d,I0:()=>h,KC:()=>c,a4:()=>s,hZ:()=>a,hs:()=>f,lw:()=>l,mg:()=>u,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,i,c,s){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=c,t[8]=s,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function i(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],c=n[6],s=n[7],l=n[8],f=l*u-i*s,h=-l*a+i*c,d=s*a-u*c;let M=e*f+r*h+o*d;return M?(M=1/M,t[0]=f*M,t[1]=(-l*r+o*s)*M,t[2]=(i*r-o*u)*M,t[3]=h*M,t[4]=(l*e-o*c)*M,t[5]=(-i*e+o*a)*M,t[6]=d*M,t[7]=(-s*e+r*c)*M,t[8]=(u*e-r*a)*M,t):null}function c(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],c=n[6],s=n[7],l=n[8];return t[0]=u*l-i*s,t[1]=o*s-r*l,t[2]=r*i-o*u,t[3]=i*c-a*l,t[4]=e*l-o*c,t[5]=o*a-e*i,t[6]=a*s-u*c,t[7]=r*c-e*s,t[8]=e*u-r*a,t}function s(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],c=t[7],s=t[8];return n*(s*a-u*c)+e*(-s*o+u*i)+r*(c*o-a*i)}function l(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],c=n[5],s=n[6],l=n[7],f=n[8],h=e[0],d=e[1],M=e[2],b=e[3],p=e[4],m=e[5],g=e[6],y=e[7],w=e[8];return t[0]=h*r+d*u+M*s,t[1]=h*o+d*i+M*l,t[2]=h*a+d*c+M*f,t[3]=b*r+p*u+m*s,t[4]=b*o+p*i+m*l,t[5]=b*a+p*c+m*f,t[6]=g*r+y*u+w*s,t[7]=g*o+y*i+w*l,t[8]=g*a+y*c+w*f,t}function f(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function h(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,i=r+r,c=o+o,s=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*c,b=a*u,p=a*i,m=a*c;return t[0]=1-f-M,t[3]=l-m,t[6]=h+p,t[1]=l+m,t[4]=1-s-M,t[7]=d-b,t[2]=h-p,t[5]=d+b,t[8]=1-s-f,t}function d(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],c=n[6],s=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],g=e*i-r*u,y=e*c-o*u,w=e*s-a*u,v=r*c-o*i,A=r*s-a*i,I=o*s-a*c,S=l*b-f*M,C=l*p-h*M,O=l*m-d*M,T=f*p-h*b,U=f*m-d*b,x=h*m-d*p;let E=g*x-y*U+w*T+v*O-A*C+I*S;return E?(E=1/E,t[0]=(i*x-c*U+s*T)*E,t[1]=(c*O-u*x-s*C)*E,t[2]=(u*U-i*O+s*S)*E,t[3]=(o*U-r*x-a*T)*E,t[4]=(e*x-o*O+a*C)*E,t[5]=(r*O-e*U-a*S)*E,t[6]=(b*I-p*A+m*v)*E,t[7]=(p*w-M*I-m*y)*E,t[8]=(M*A-b*w+m*g)*E,t):null}function M(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const b=l,p=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:s,equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],c=t[5],s=t[6],l=t[7],f=t[8],h=n[0],d=n[1],M=n[2],b=n[3],p=n[4],m=n[5],g=n[6],y=n[7],w=n[8],v=(0,r.FD)();return Math.abs(e-h)<=v*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=v*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-M)<=v*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(c-m)<=v*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(s-g)<=v*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=v*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},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)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],c=t[5],s=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+s*s))<=n&&Math.abs(1-(o*o+i*i+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n},mul:b,multiply:l,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],c=n[8],s=n[9],l=n[10],f=l*u-i*s,h=-l*a+i*c,d=s*a-u*c,M=e*f+r*h+o*d;if(!M)return null;const b=1/M;return t[0]=f*b,t[1]=(-l*r+o*s)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(l*e-o*c)*b,t[5]=(-i*e+o*a)*b,t[6]=d*b,t[7]=(-s*e+r*c)*b,t[8]=(u*e-r*a)*b,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],c=n[5],s=n[6],l=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*u,t[1]=d*o+h*i,t[2]=d*a+h*c,t[3]=d*u-h*r,t[4]=d*i-h*o,t[5]=d*c-h*a,t[6]=s,t[7]=l,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:M,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],c=n[5],s=n[6],l=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=c,t[6]=h*r+d*u+s,t[7]=h*o+d*i+l,t[8]=h*a+d*c+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>m,$h:()=>T,B8:()=>l,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>s,Tl:()=>h,X_:()=>I,e$:()=>M,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>d,kN:()=>p,l:()=>S,lw:()=>f,mg:()=>c,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>U,tZ:()=>P,ut:()=>F});var r=e(51850),o=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,e,r,o,a,u,i,c,s,l,f,h,d,M,b,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=c,t[8]=s,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=M,t[14]=b,t[15]=p,t}function i(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 c(t,n){if(t===n){const e=n[1],r=n[2],o=n[3],a=n[6],u=n[7],i=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=a,t[11]=n[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function s(t,n){return l(t,n)||i(t),t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],c=n[6],s=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],g=e*i-r*u,y=e*c-o*u,w=e*s-a*u,v=r*c-o*i,A=r*s-a*i,I=o*s-a*c,S=l*b-f*M,C=l*p-h*M,O=l*m-d*M,T=f*p-h*b,U=f*m-d*b,x=h*m-d*p;let E=g*x-y*U+w*T+v*O-A*C+I*S;return E?(E=1/E,t[0]=(i*x-c*U+s*T)*E,t[1]=(o*U-r*x-a*T)*E,t[2]=(b*I-p*A+m*v)*E,t[3]=(h*A-f*I-d*v)*E,t[4]=(c*O-u*x-s*C)*E,t[5]=(e*x-o*O+a*C)*E,t[6]=(p*w-M*I-m*y)*E,t[7]=(l*I-h*w+d*y)*E,t[8]=(u*U-i*O+s*S)*E,t[9]=(r*O-e*U-a*S)*E,t[10]=(M*A-b*w+m*g)*E,t[11]=(f*w-l*A-d*g)*E,t[12]=(i*C-u*T-c*S)*E,t[13]=(e*T-r*C+o*S)*E,t[14]=(b*y-M*v-p*g)*E,t[15]=(l*v-f*y+h*g)*E,t):null}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],c=n[5],s=n[6],l=n[7],f=n[8],h=n[9],d=n[10],M=n[11],b=n[12],p=n[13],m=n[14],g=n[15];let y=e[0],w=e[1],v=e[2],A=e[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*c+v*h+A*p,t[2]=y*a+w*s+v*d+A*m,t[3]=y*u+w*l+v*M+A*g,y=e[4],w=e[5],v=e[6],A=e[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*c+v*h+A*p,t[6]=y*a+w*s+v*d+A*m,t[7]=y*u+w*l+v*M+A*g,y=e[8],w=e[9],v=e[10],A=e[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*c+v*h+A*p,t[10]=y*a+w*s+v*d+A*m,t[11]=y*u+w*l+v*M+A*g,y=e[12],w=e[13],v=e[14],A=e[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*c+v*h+A*p,t[14]=y*a+w*s+v*d+A*m,t[15]=y*u+w*l+v*M+A*g,t}function h(t,n,e){const r=e[0],o=e[1],a=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*a+n[12],t[13]=n[1]*r+n[5]*o+n[9]*a+n[13],t[14]=n[2]*r+n[6]*o+n[10]*a+n[14],t[15]=n[3]*r+n[7]*o+n[11]*a+n[15];else{const e=n[0],u=n[1],i=n[2],c=n[3],s=n[4],l=n[5],f=n[6],h=n[7],d=n[8],M=n[9],b=n[10],p=n[11];t[0]=e,t[1]=u,t[2]=i,t[3]=c,t[4]=s,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=M,t[10]=b,t[11]=p,t[12]=e*r+s*o+d*a+n[12],t[13]=u*r+l*o+M*a+n[13],t[14]=i*r+f*o+b*a+n[14],t[15]=c*r+h*o+p*a+n[15]}return t}function d(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let u=r[0],i=r[1],c=r[2],s=Math.sqrt(u*u+i*i+c*c);if(s<=(0,o.FD)())return void a(t,n);s=1/s,u*=s,i*=s,c*=s;const l=Math.sin(e),f=Math.cos(e),h=1-f,d=n[0],M=n[1],b=n[2],p=n[3],m=n[4],g=n[5],y=n[6],w=n[7],v=n[8],A=n[9],I=n[10],S=n[11],C=u*u*h+f,O=i*u*h+c*l,T=c*u*h-i*l,U=u*i*h-c*l,x=i*i*h+f,E=c*i*h+u*l,F=u*c*h+i*l,P=i*c*h-u*l,R=c*c*h+f;t[0]=d*C+m*O+v*T,t[1]=M*C+g*O+A*T,t[2]=b*C+y*O+I*T,t[3]=p*C+w*O+S*T,t[4]=d*U+m*x+v*E,t[5]=M*U+g*x+A*E,t[6]=b*U+y*x+I*E,t[7]=p*U+w*x+S*E,t[8]=d*F+m*P+v*R,t[9]=M*F+g*P+A*R,t[10]=b*F+y*P+I*R,t[11]=p*F+w*P+S*R,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[4],u=n[5],i=n[6],c=n[7],s=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=a*o+s*r,t[5]=u*o+l*r,t[6]=i*o+f*r,t[7]=c*o+h*r,t[8]=s*o-a*r,t[9]=l*o-u*r,t[10]=f*o-i*r,t[11]=h*o-c*r,t}function p(t,n){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]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function m(t,n,e){if(0===n)return i(t);let r=e[0],a=e[1],u=e[2],c=Math.sqrt(r*r+a*a+u*u);if(c<=(0,o.FD)())return null;c=1/c,r*=c,a*=c,u*=c;const s=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=r*r*f+l,t[1]=a*r*f+u*s,t[2]=u*r*f-a*s,t[3]=0,t[4]=r*a*f-u*s,t[5]=a*a*f+l,t[6]=u*a*f+r*s,t[7]=0,t[8]=r*u*f+a*s,t[9]=a*u*f-r*s,t[10]=u*u*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=r+r,c=o+o,s=a+a,l=r*i,f=r*c,h=r*s,d=o*c,M=o*s,b=a*s,p=u*i,m=u*c,g=u*s;return t[0]=1-(d+b),t[1]=f+g,t[2]=h-m,t[3]=0,t[4]=f-g,t[5]=1-(l+b),t[6]=M+p,t[7]=0,t[8]=h+m,t[9]=M-p,t[10]=1-(l+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function A(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function I(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],c=n[8],s=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(c*c+s*s+l*l),t}function S(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function C(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3],c=o+o,s=a+a,l=u+u,f=o*c,h=o*s,d=o*l,M=a*s,b=a*l,p=u*l,m=i*c,g=i*s,y=i*l,w=r[0],v=r[1],A=r[2];return t[0]=(1-(M+p))*w,t[1]=(h+y)*w,t[2]=(d-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+p))*v,t[6]=(b+m)*v,t[7]=0,t[8]=(d+g)*A,t[9]=(b-m)*A,t[10]=(1-(f+M))*A,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function O(t,n,e,r,o){const a=n[0],u=n[1],i=n[2],c=n[3],s=a+a,l=u+u,f=i+i,h=a*s,d=a*l,M=a*f,b=u*l,p=u*f,m=i*f,g=c*s,y=c*l,w=c*f,v=r[0],A=r[1],I=r[2],S=o[0],C=o[1],O=o[2],T=(1-(b+m))*v,U=(d+w)*v,x=(M-y)*v,E=(d-w)*A,F=(1-(h+m))*A,P=(p+g)*A,R=(M+y)*I,q=(p-g)*I,D=(1-(h+b))*I;return t[0]=T,t[1]=U,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=P,t[7]=0,t[8]=R,t[9]=q,t[10]=D,t[11]=0,t[12]=e[0]+S-(T*S+E*C+R*O),t[13]=e[1]+C-(U*S+F*C+q*O),t[14]=e[2]+O-(x*S+P*C+D*O),t[15]=1,t}function T(t,n,e,r,o,a,u){const i=1/(e-n),c=1/(o-r),s=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*c,t[6]=0,t[7]=0,t[8]=(e+n)*i,t[9]=(o+r)*c,t[10]=(u+a)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*s,t[15]=0,t}function U(t,n,e,r){const a=n[0],u=n[1],c=n[2];let s=a-e[0],l=u-e[1],f=c-e[2];const h=(0,o.FD)();if(Math.abs(s)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(t);let d=1/Math.sqrt(s*s+l*l+f*f);s*=d,l*=d,f*=d;const M=r[0],b=r[1],p=r[2];let m=b*f-p*l,g=p*s-M*f,y=M*l-b*s;d=Math.sqrt(m*m+g*g+y*y),d?(d=1/d,m*=d,g*=d,y*=d):(m=0,g=0,y=0);let w=l*y-f*g,v=f*m-s*y,A=s*g-l*m;d=Math.sqrt(w*w+v*v+A*A),d?(d=1/d,w*=d,v*=d,A*=d):(w=0,v=0,A=0),t[0]=m,t[1]=w,t[2]=s,t[3]=0,t[4]=g,t[5]=v,t[6]=l,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(m*a+g*u+y*c),t[13]=-(w*a+v*u+A*c),t[14]=-(s*a+l*u+f*c),t[15]=1}function x(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function F(t){const n=(0,o.FD)(),e=t[0],r=t[1],a=t[2],u=t[4],i=t[5],c=t[6],s=t[8],l=t[9],f=t[10];return Math.abs(1-(e*e+u*u+s*s))<=n&&Math.abs(1-(r*r+i*i+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}function P(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 R=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],c=n[6],s=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15];return t[0]=i*(h*m-d*p)-f*(c*m-s*p)+b*(c*d-s*h),t[1]=-(r*(h*m-d*p)-f*(o*m-a*p)+b*(o*d-a*h)),t[2]=r*(c*m-s*p)-i*(o*m-a*p)+b*(o*s-a*c),t[3]=-(r*(c*d-s*h)-i*(o*d-a*h)+f*(o*s-a*c)),t[4]=-(u*(h*m-d*p)-l*(c*m-s*p)+M*(c*d-s*h)),t[5]=e*(h*m-d*p)-l*(o*m-a*p)+M*(o*d-a*h),t[6]=-(e*(c*m-s*p)-u*(o*m-a*p)+M*(o*s-a*c)),t[7]=e*(c*d-s*h)-u*(o*d-a*h)+l*(o*s-a*c),t[8]=u*(f*m-d*b)-l*(i*m-s*b)+M*(i*d-s*f),t[9]=-(e*(f*m-d*b)-l*(r*m-a*b)+M*(r*d-a*f)),t[10]=e*(i*m-s*b)-u*(r*m-a*b)+M*(r*s-a*i),t[11]=-(e*(i*d-s*f)-u*(r*d-a*f)+l*(r*s-a*i)),t[12]=-(u*(f*p-h*b)-l*(i*p-c*b)+M*(i*h-c*f)),t[13]=e*(f*p-h*b)-l*(r*p-o*b)+M*(r*h-o*f),t[14]=-(e*(i*p-c*b)-u*(r*p-o*b)+M*(r*c-o*i)),t[15]=e*(i*h-c*f)-u*(r*h-o*f)+l*(r*c-o*i),t},copy:a,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],c=t[7],s=t[8],l=t[9],f=t[10],h=t[11],d=t[12],M=t[13],b=t[14],p=t[15];return(n*u-e*a)*(f*p-h*b)-(n*i-r*a)*(l*p-h*M)+(n*c-o*a)*(l*b-f*M)+(e*i-r*u)*(s*p-h*d)-(e*c-o*u)*(s*b-f*d)+(r*c-o*i)*(s*M-l*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=t[3],i=t[4],c=t[5],s=t[6],l=t[7],f=t[8],h=t[9],d=t[10],M=t[11],b=t[12],p=t[13],m=t[14],g=t[15],y=n[0],w=n[1],v=n[2],A=n[3],I=n[4],S=n[5],C=n[6],O=n[7],T=n[8],U=n[9],x=n[10],E=n[11],F=n[12],P=n[13],R=n[14],q=n[15],D=(0,o.FD)();return Math.abs(e-y)<=D*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-I)<=D*Math.max(1,Math.abs(i),Math.abs(I))&&Math.abs(c-S)<=D*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(s-C)<=D*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-O)<=D*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-T)<=D*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(h-U)<=D*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(d-x)<=D*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(M-E)<=D*Math.max(1,Math.abs(M),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(m-R)<=D*Math.max(1,Math.abs(m),Math.abs(R))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,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,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,i=r+r,c=o+o,s=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*c,b=a*u,p=a*i,m=a*c;return t[0]=1-f-M,t[1]=l+m,t[2]=h-p,t[3]=0,t[4]=l-m,t[5]=1-s-M,t[6]=d+b,t[7]=0,t[8]=h+p,t[9]=d-b,t[10]=1-s-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],o=-n[1],a=-n[2],u=n[3],i=n[4],c=n[5],s=n[6],l=n[7],f=r*r+o*o+a*a+u*u;return f>0?(e[0]=2*(i*u+l*r+c*a-s*o)/f,e[1]=2*(c*u+l*o+s*r-i*a)/f,e[2]=2*(s*u+l*a+i*o-c*r)/f):(e[0]=2*(i*u+l*r+c*a-s*o),e[1]=2*(c*u+l*o+s*r-i*a),e[2]=2*(s*u+l*a+i*o-c*r)),w(t,n,e),t},fromRotation:m,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:p,fromXRotation:g,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:T,getRotation:S,getScale:I,getTranslation:A,hasIdentityRotation:P,identity:i,invert:l,invertOrIdentity:s,isOrthoNormal:F,lookAt:U,mul:R,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,o,a,u){const i=1/(n-e),c=1/(r-o),s=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*s,t[11]=0,t[12]=(n+e)*i,t[13]=(o+r)*c,t[14]=(u+a)*s,t[15]=1,t},perspective:function(t,n,e,r,o){const a=1/Math.tan(n/2);let u;return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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!=o&&o!==1/0?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),i=Math.tan(n.rightDegrees*Math.PI/180),c=2/(u+i),s=2/(o+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=-(u-i)*c*.5,t[9]=(o-a)*s*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:M,rotateX:b,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],c=n[3],s=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=a*o-s*r,t[1]=u*o-l*r,t[2]=i*o-f*r,t[3]=c*o-h*r,t[8]=a*r+s*o,t[9]=u*r+l*o,t[10]=i*r+f*o,t[11]=c*r+h*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],c=n[3],s=n[4],l=n[5],f=n[6],h=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=a*o+s*r,t[1]=u*o+l*r,t[2]=i*o+f*r,t[3]=c*o+h*r,t[4]=s*o-a*r,t[5]=l*o-u*r,t[6]=f*o-i*r,t[7]=h*o-c*r,t},scale:d,set:u,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:q,subtract:x,targetTo:function(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=r[0],c=r[1],s=r[2];let l=o-e[0],f=a-e[1],h=u-e[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let M=c*h-s*f,b=s*l-i*h,p=i*f-c*l;return d=M*M+b*b+p*p,d>0&&(d=1/Math.sqrt(d),M*=d,b*=d,p*=d),t[0]=M,t[1]=b,t[2]=p,t[3]=0,t[4]=f*p-h*b,t[5]=h*M-l*p,t[6]=l*b-f*M,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:c},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>m,Om:()=>S,Qr:()=>f,Re:()=>s,S8:()=>I,T9:()=>b,WQ:()=>c,Z0:()=>T,_S:()=>d,aI:()=>q,ei:()=>U,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>p,jk:()=>M,lw:()=>l,m3:()=>w,oW:()=>D,t2:()=>R,tn:()=>h,ze:()=>v});var r=e(51850),o=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function b(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function m(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function I(t,n){const e=n[0],r=n[1],o=n[2];let a=e*e+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function C(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],c=e[2];return t[0]=o*c-a*i,t[1]=a*u-r*c,t[2]=r*i-o*u,t}function O(t,n,e,r){const o=n[0],a=n[1],u=n[2];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t}function T(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12],t[1]=e[1]*r+e[5]*o+e[9]*a+e[13],t[2]=e[2]*r+e[6]*o+e[10]*a+e[14],t}function U(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0]+o*e[3]+a*e[6],t[1]=r*e[1]+o*e[4]+a*e[7],t[2]=r*e[2]+o*e[5]+a*e[8],t}function x(t,n,e){return E(t,n,e[0],e[1],e[2],e[3])}function E(t,n,e,r,o,a){const u=n[0],i=n[1],c=n[2],s=r*c-o*i,l=o*u-e*c,f=e*i-r*u,h=r*f-o*l,d=o*s-e*f,M=e*l-r*s,b=2*a;return t[0]=u+s*b+2*h,t[1]=i+l*b+2*d,t[2]=c+f*b+2*M,t}const F=(0,r.vt)(),P=(0,r.vt)();function R(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function q(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=n[0],i=n[1],c=n[2],s=(0,o.FD)();return Math.abs(e-u)<=s*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(r-i)<=s*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-c)<=s*Math.max(1,Math.abs(a),Math.abs(c))}function D(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2];let u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const _=s,k=l,j=f,z=g,B=y,L=a,N=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:c,angle:function(t,n){I(F,t),I(P,n);const e=S(F,P);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,a){const u=1-a,i=u*u,c=a*a,s=i*u,l=3*a*i,f=3*c*u,h=c*a;return t[0]=n[0]*s+e[0]*l+r[0]*f+o[0]*h,t[1]=n[1]*s+e[1]*l+r[1]*f+o[1]*h,t[2]=n[2]*s+e[2]*l+r[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:u,cross:C,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],c=e[2],s=o*c-a*i,l=a*u-r*c,f=r*i-o*u,h=Math.sqrt(s*s+l*l+f*f);return t[0]=s/h,t[1]=l/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:j,divide:f,dot:S,equals:q,exactEquals:R,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,a){const u=a*a,i=u*(2*a-3)+1,c=u*(a-2)+a,s=u*(a-1),l=u*(3-2*a);return t[0]=n[0]*i+e[0]*c+r[0]*s+o[0]*l,t[1]=n[1]*i+e[1]*c+r[1]*s+o[1]*l,t[2]=n[2]*i+e[2]*c+r[2]*s+o[2]*l,t},inverse:A,len:L,length:a,lerp:O,max:b,min:M,mul:k,multiply:l,negate:v,normalize:I,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,a=2*e()-1,u=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*n,t},rotateX:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:m,scaleTo:function(t,n){return p(t,t,n/L(t))},set:i,sign:d,sqrDist:B,sqrLen:N,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:_,subtract:s,transformMat3:U,transformMat4:T,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,L,"jb",0,_,"lo",0,B,"uE",0,N])},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>I,hG:()=>b,hZ:()=>a,hs:()=>d,jk:()=>l,m3:()=>m,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function a(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function i(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function s(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function f(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function d(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return e*e+r*r+o*o+a*a}function p(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function m(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function g(t,n){const e=n[0],r=n[1],o=n[2],a=n[3];let u=e*e+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=e*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t[3]=i+r*(e[3]-i),t}function v(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12]*u,t[1]=e[1]*r+e[5]*o+e[9]*a+e[13]*u,t[2]=e[2]*r+e[6]*o+e[10]*a+e[14]*u,t[3]=e[3]*r+e[7]*o+e[11]*a+e[15]*u,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=n[0],c=n[1],s=n[2],l=n[3],f=(0,r.FD)();return Math.abs(e-i)<=f*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(o-c)<=f*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-s)<=f*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const S=i,C=c,O=s,T=M,U=b,x=p,E=m;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:T,distance:M,div:O,divide:s,dot:y,equals:I,exactEquals:A,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:x,length:p,lerp:w,max:f,min:l,mul:C,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n=1){const e=r.Ov;let o,a,u,i,c,s;do{o=2*e()-1,a=2*e()-1,c=o*o+a*a}while(c>=1);do{u=2*e()-1,i=2*e()-1,s=u*u+i*i}while(s>=1);const l=Math.sqrt((1-c)/s);return t[0]=n*o,t[1]=n*a,t[2]=n*u*l,t[3]=n*i*l,t},round:h,scale:d,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:a,sqrDist:U,sqrLen:E,squaredDistance:b,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:S,subtract:i,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],c=e[2],s=e[3],l=s*r+i*a-c*o,f=s*o+c*r-u*a,h=s*a+u*o-i*r,d=-u*r-i*o-c*a;return t[0]=l*s+d*-u+f*-c-h*-i,t[1]=f*s+d*-i+h*-u-l*-c,t[2]=h*s+d*-c+l*-i-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,e){e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(49208);function o(t,n,e,o,a,u,i=Math.floor(t.length/3)){const c=(0,r.jd)(n,a);if(null==c)return!1;if(c===r.pO){if(t===o&&e===u)return!0;const n=e+3*i;for(let r=e,a=u;r<n;r++,a++)o[a]=t[r]??0;return!0}const s=e+3*i;for(let n=e,r=u;n<s;n+=3,r+=3)c(t,n,o,r);return!0}},49208(t,n,e){e.d(n,{Tp:()=>f,jd:()=>l,pO:()=>M,s7:()=>g,wy:()=>h});var r=e(34727),o=e(86211),a=e(73941),u=e(79258),i=e(34403),c=e(21325);const s={2:{5:M,7:null,9:null,10:M,1:C,6:null,8:null,0:null,3:g,11:y,2:M,4:P},5:{5:M,7:null,9:null,10:M,1:C,6:null,8:null,0:null,3:g,11:y,2:M,4:P},7:{5:null,7:M,9:null,10:M,1:null,6:S,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:M,10:M,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:p,6:null,8:null,0:null,3:M,11:v,2:b,4:m},4:{5:R,7:null,9:null,10:R,1:q,6:null,8:null,0:null,3:D,11:function(t,n,e,r){R(t,n,e,r),y(e,r,e,r)},2:R,4:M},1:{5:x,7:null,9:null,10:x,1:M,6:null,8:null,0:null,3:E,11:function(t,n,e,r){x(t,n,e,r),y(e,r,e,r)},2:x,4:F},6:{5:null,7:U,9:null,10:U,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:M,3:null,11:null,2:null,4:null},10:{5:M,7:M,9:M,10:M,1:C,6:S,8:I,0:null,3:g,11:y,2:M,4:P},11:{5:w,7:null,9:null,10:w,1:function(t,n,e,r){w(t,n,e,r),C(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){w(t,n,e,r),g(e,r,e,r)},11:M,2:w,4:function(t,n,e,r){w(t,n,e,r),P(e,r,e,r)}}};function l(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(_.source.spatialReference===t&&_.dest.spatialReference===n)return _;const e=d(t,_.source),r=d(n,_.dest);return 0===e&&0===r?(0,c.aI)(t,n)?_.projector=M:_.projector=null:_.projector=s[e][r],_}function h(t,n){switch(l(t,n)){case M:return"copy3";case C:return"wgs84ToSphericalECEF";case g:return"wgs84ToWebMercator";case y:return"wgs84ToPlateCarree";case P:return"wgs84ToWGS84ECEF";case b:return"webMercatorToWGS84";case p:return"webMercatorToSphericalECEF";case m:return"webMercatorToWGS84ECEF";case v:return"webMercatorToPlateCarree";case R:return"wgs84ECEFToWGS84";case q:return"wgs84ECEFToSphericalECEF";case D:return"wgs84ECEFToWebMercator";case x:return"sphericalECEFToWGS84";case E:return"sphericalECEFToWebMercator";case U:return"sphericalMarsPCPFToMars2000";case T:return"sphericalMoonPCPFToMoon2000";case F:return"sphericalECEFToWGS84ECEF";case S:return"mars2000ToSphericalPCPF";case I:return"moon2000ToSphericalPCPF";default:return null}}function d(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?n.spatialReferenceId=1:(0,c.oT)(t)?n.spatialReferenceId=2:(0,c.K8)(t)?n.spatialReferenceId=3:(0,c.r1)(t)?n.spatialReferenceId=11:t.wkt===a.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===a.FY.wkt?n.spatialReferenceId=6:t.wkt===a.LJ.wkt?n.spatialReferenceId=8:(0,a.q8)(t)?n.spatialReferenceId=7:(0,a.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function M(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n]??0)}function b(t,n,e,r){e[r]=j*(t[n]/B),e[r+1]=j*(z-2*Math.atan(Math.exp(-t[n+1]/B))),e[r+2]=t[n+2]??0}function p(t,n,e,r){const o=t[n]/B,a=z-2*Math.atan(Math.exp(-t[n+1]/B)),u=B+(t[n+2]??0),i=Math.cos(a)*u;e[r]=Math.cos(o)*i,e[r+1]=Math.sin(o)*i,e[r+2]=Math.sin(a)*u}function m(t,n,e,r){b(t,n,e,r),P(e,r,e,r)}function g(t,n,e,o){!function(t,n,e,o,a){const u=.4999999*Math.PI,i=(0,r.qE)(k*t[n+1],-u,u),c=Math.sin(i);e[o++]=k*t[n]*a.radius,e[o++]=a.halfSemiMajorAxis*Math.log((1+c)/(1-c)),e[o]=t[n+2]??0}(t,n,e,o,u.$O)}function y(t,n,e,r){e[r]=t[n]*L,e[r+1]=t[n+1]*L,e[r+2]=t[n+2]??0}function w(t,n,e,r){e[r]=t[n]*N,e[r+1]=t[n+1]*N,e[r+2]=t[n+2]??0}function v(t,n,e,r){b(t,n,e,r),y(e,r,e,r)}function A(t,n,e,r,o){const a=o+(t[n+2]??0),u=k*t[n],i=k*t[n+1],c=Math.cos(i)*a;e[r]=Math.cos(u)*c,e[r+1]=Math.sin(u)*c,e[r+2]=Math.sin(i)*a}function I(t,n,e,r){A(t,n,e,r,u.Sw.radius)}function S(t,n,e,r){A(t,n,e,r,u.sH.radius)}function C(t,n,e,r){A(t,n,e,r,u.$O.radius)}function O(t,n,e,o,a){const u=t[n],i=t[n+1],c=t[n+2]??0,s=Math.sqrt(u*u+i*i+c*c),l=(0,r.YN)(c/(0===s?1:s)),f=Math.atan2(i,u);e[o++]=j*f,e[o++]=j*l,e[o]=s-a}function T(t,n,e,r){O(t,n,e,r,u.Sw.radius)}function U(t,n,e,r){O(t,n,e,r,u.sH.radius)}function x(t,n,e,r){O(t,n,e,r,u.$O.radius)}function E(t,n,e,r){x(t,n,e,r),g(e,r,e,r)}function F(t,n,e,r){x(t,n,e,r),P(e,r,e,r)}function P(t,n,e,r){!function(t,n,e,r,o){const a=k*t[n],u=k*t[n+1],i=t[n+2]??0,c=Math.sin(u),s=Math.cos(u),l=o.radius/Math.sqrt(1-o.eccentricitySquared*c*c);e[r++]=(l+i)*s*Math.cos(a),e[r++]=(l+i)*s*Math.sin(a),e[r++]=(l*(1-o.eccentricitySquared)+i)*c}(t,n,e,r,u.$O)}function R(t,n,e,r){const o=i.TP,a=t[n],c=t[n+1],s=t[n+2]??0;let l,f,h,d,M,b,p,m,g,y,w,v,A,I,S,C,O,T,U,x,E;l=Math.abs(s),f=a*a+c*c,h=Math.sqrt(f),d=f+s*s,M=Math.sqrt(d),x=Math.atan2(c,a),b=s*s/d,p=f/d,I=o.a2/M,S=o.a3-o.a4/M,p>.3?(m=l/M*(1+p*(o.a1+I+b*S)/M),U=Math.asin(m),y=m*m,g=Math.sqrt(1-y)):(g=h/M*(1-b*(o.a5-I-p*S)/M),U=Math.acos(g),y=1-g*g,m=Math.sqrt(y)),w=1-u.$O.eccentricitySquared*y,v=u.$O.radius/Math.sqrt(w),A=o.a6*v,I=h-v*g,S=l-A*m,O=g*I+m*S,C=g*S-m*I,T=C/(A/w+O),U+=T,E=O+C*T/2,s<0&&(U=-U),e[r++]=j*x,e[r++]=j*U,e[r]=E}function q(t,n,e,r){R(t,n,e,r),C(e,r,e,r)}function D(t,n,e,r){R(t,n,e,r),g(e,r,e,r)}const _={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:M},k=(0,r.kU)(1),j=(0,r.KJ)(1),z=.5*Math.PI,B=u.$O.radius,L=B*Math.PI/180,N=180/(B*Math.PI);e.d(n,["w5",0,s])},98764(t,n,e){e.d(n,{lO:()=>l});var r=e(73941),o=e(16930),a=e(21325);const u=new o.A(r.fv),i=new o.A(r.FY),c=new o.A(r.LJ),s=new o.A(r.Ro);function l(t){const n=f.get(t);if(n)return n;let e=u;if(t)if(t===i)e=i;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?e=i:((0,a.ZL)(n)||(0,a.ZL)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=i:t===d&&(e=c)}}}return f.set(t,e),e}const f=new Map,h=i.wkt.toUpperCase(),d=c.wkt.toUpperCase();e.d(n,["GD",0,u,"Y0",0,s])},34403(t,n,e){var r=e(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,e.d(n,["TP",0,u])},64798(t,n,e){e.r(n),e.d(n,{default:()=>D});var r=e(4576),o=e(34275),a=e(82534),u=e(35522);function i(){return new Float32Array(3)}function c(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function s(t,n,e){const r=new Float32Array(3);return r[0]=t,r[1]=n,r[2]=e,r}function l(){return i()}function f(){return s(1,1,1)}function h(){return s(1,0,0)}function d(){return s(0,1,0)}function M(){return s(0,0,1)}const b=l(),p=f(),m=h(),g=d(),y=M();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:c,create:i,fromValues:s,ones:f,unitX:h,unitY:d,unitZ:M,zeros:l},Symbol.toStringTag,{value:"Module"}));var w=e(51850),v=e(16930),A=e(9762),I=e(63531),S=e(69846),C=e(48425),O=e(59418),T=e(37203);function U(t,n,e){return t?.attributeInfo.useElevation?n?function(t,n){const e=new Float64Array(n);for(let r=0;r<n;r++)e[r]=t[3*r+2];return e}(n,e):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,e,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let n=0;for(const e of t||[])n|=1<<e;return n}var F=e(57005);class P{transform(t){const n=this._transform(t),e=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&e.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&e.push(t.values.buffer);return Promise.resolve({result:n,transferList:e})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const e=(0,O.wH)(n,t);if(null==e.vertexAttributes.position)return;const r=(0,O.MA)(n,e.vertexAttributes.position),o=e.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,c=new Float64Array(3*i);for(let t=0;t<i;t++)c[3*t]=r[3*t]*u[0]+a[0],c[3*t+1]=r[3*t+1]*u[1]+a[1],c[3*t+2]=r[3*t+2]*u[2]+a[2];return c}if("lepcc-xyz"===t.encoding)return(0,T.Me)(n).result}(t.schema,t.geometryBuffer);let e=n.length/3,o=null;const a=new Array,u=U(t.primaryAttributeData,n,e);null!=t.primaryAttributeData&&u&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const i=U(t.modulationAttributeData,n,e);null!=t.modulationAttributeData&&i&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:i});let c=function(t,n,e,r){const{rendererJSON:o,isRGBRenderer:a}=t;let u=null,i=null;if(n&&a)u=n;else if(n&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);const t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);const e=x(i.fieldTransformType);for(let o=0;o<r;o++){const r=(e?e(n[o]):n[o])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(r)){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===o?.type){i=S.A.fromJSON(o);const t=i.stops;u=new Uint8Array(3*r);const e=x(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let n=1;n<t.length;n++)if(r<t[n].value){const e=(r-t[n-1].value)/(t[n].value-t[n-1].value);u[3*o]=t[n].color.r*e+t[n-1].color.r*(1-e),u[3*o+1]=t[n].color.g*e+t[n-1].color.g*(1-e),u[3*o+2]=t[n].color.b*e+t[n-1].color.b*(1-e);break}}}else if(n&&"pointCloudClassBreaksRenderer"===o?.type){i=I.A.fromJSON(o);const t=i.colorClassBreakInfos;u=new Uint8Array(3*r);const e=x(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o];for(let n=0;n<t.length;n++)if(r>=t[n].minValue&&r<=t[n].maxValue){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(e&&i?.colorModulation){const t=i.colorModulation.minValue,n=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){const r=e[a],i=r>=n?1:r<=t?o:o+(1-o)*(r-t)/(n-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,u,i,e);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(r.Ru).map(t=>{const r=U(t,n,e),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(e),e=function(t,n,e,r,o){const a=t.length/3,u=function(t){return t.map(t=>{const{filterJSON:n}=t;switch(n.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(n.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(n.requiredClearBits),requiredMask:E(n.requiredSetBits)};default:return t}})}(r);let i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){const{clearMask:n,filterJSON:e,requiredMask:i,valuesSet:c}=u[t],s=o[t].values[r];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;c.has(s)===t&&(a=!1);break}case"pointCloudBitfieldFilter":(s&i)===i&&0===(s&n)||(a=!1);break;case"pointCloudReturnFilter":{const t=15&s,n=s>>>4&15,r=n>1,o=1===t,u=t===n;let i=!1;for(const t of e.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(e[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],n[3*i]=n[3*r],n[3*i+1]=n[3*r+1],n[3*i+2]=n[3*r+2],i++)}return i}(n,c,o,t.filterInfo,u)}for(const r of t.userAttributesData){const t=U(r,n,e);a.push({attributeInfo:r.attributeInfo,values:t})}3*e<c.length&&(c=c.slice(0,3*e)),function(t,n,e){if(0!==e)for(let r=0;r<n;r++)t[3*r+2]+=e}(n,e,t.elevationOffset);const s=R(n,e,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:s,rgb:c,attributes:a,pointIdFilterMap:o}}}function R(t,n,e,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,n))throw new Error("Can't reproject");const a=c(e.getCenter((0,w.vt)())),l=i(),f=i(),h=s(e.halfSizeX,e.halfSizeY,e.halfSizeZ);e.getQuaternionConjugate(q);const d=new Float32Array(3*n);for(let e=0;e<n;e++){let n=3*e;l[0]=t[n]-a[0],l[1]=t[n+1]-a[1],l[2]=t[n+2]-a[2],(0,u.gL)(f,l,q),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),d[n++]=l[0],d[n++]=l[1],d[n]=l[2]}return e.setHalfSize(h),d}const q=(0,a.vt)();function D(){return new P}},59418(t,n,e){e.d(n,{qs:()=>p,wH:()=>b,MA:()=>h,E5:()=>d,m0:()=>g});var r=e(49186),o=e(4718),a=e(53966),u=e(34275),i=e(37203);const c=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function s(t,n,e){let o="",a=0;for(;a<e;){const u=t[n+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const i=(31&u)<<6|63&t[n+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(15&u)<<12|(63&t[n+a+1])<<6|63&t[n+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(7&u)<<18|(63&t[n+a+1])<<12|(63&t[n+a+2])<<6|63&t[n+a+3];if(i>=65536){const t=55296+(i-65536>>10),n=56320+(1023&i);o+=String.fromCharCode(t,n)}else o+=String.fromCharCode(i);a+=4}}}return o}function l(t,n){const e={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<n.length;o++){const a=n[o],u=a.valueType||a.type,i=w[u];e.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return e.byteCount=r,e}function f(t,n,e){const o=[];let a,u,i=0;for(u=0;u<t;u+=1){if(a=n[u],a>0){if(o.push(s(e,i,a-1)),0!==e[i+a-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);i+=a}return o}function h(t,n){return new(0,y[n.valueType])(t,n.byteOffset,n.count*n.valuesPerElement)}function d(t,n){if(!t)return null;const e=t[n];return(0,u.IY)(t)?-32768===e?null:e:(0,u._G)(t)?e===u.h2?null:e:e!=e?null:e}function M(t,n,e){if(n!==t&&c().error(`Invalid ${e} buffer size\n expected: ${t}, actual: ${n})`),n<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:n})}function b(t,n){const e=l(t,n&&n.header);let r=e.byteCount;const o={isDraco:!1,header:e,byteOffset:e.byteCount,byteCount:0,vertexAttributes:{}},a=e.fields,u=null!=a.vertexCount?a.vertexCount:a.count;for(const t of n.ordering){if(!n.vertexAttributes[t])continue;const e={...n.vertexAttributes[t],byteOffset:r,count:u},a=m[t]||"_"+t;o.vertexAttributes[a]=e,r+=A(e.valueType)*e.valuesPerElement*u}const i=a.faceCount;if(n.faces&&i){o.faces={};for(const t of n.ordering){if(!n.faces[t])continue;const e={...n.faces[t],byteOffset:r,count:i};o.faces[t]=e,r+=A(e.valueType)*e.valuesPerElement*i}}const c=a.featureCount;if(n.featureAttributes&&n.featureAttributeOrder&&c){o.featureAttributes={};for(const t of n.featureAttributeOrder){if(!n.featureAttributes[t])continue;const e={...n.featureAttributes[t],byteOffset:r,count:c};o.featureAttributes[t]=e,r+=("UInt64"===e.valueType?8:A(e.valueType))*e.valuesPerElement*c}}return M(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function p(t,n){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){const n={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(const e of t)switch(e){case"position":break;case"normal":n.normal=!0;break;case"uv0":n.uv0=!0;break;case"color":n.color=!0;break;case"uv-region":n.uvRegion=!0;break;case"feature-index":n.featureIndex=!0}return n}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){const n={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(const e of t.ordering)if(t.vertexAttributes[e])switch(e){case"position":break;case"normal":n.normal=!0;break;case"color":n.color=!0;break;case"uv0":n.uv0=!0;break;case"region":n.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(n.featureIndex=!0),n}(n)}const m={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,n,e,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(n));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(n));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const u=function(t,n,e){const a=null!=n.header?l(t,n.header):{byteOffset:0,byteCount:0,fields:{count:e}},u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let i=a.byteCount;for(let t=0;t<n.ordering.length;t++){const e=n.ordering[t],c=(0,o.o8)(n[e]);if(c.count=a.fields.count??0,"String"===c.valueType){if(c.byteOffset=i,c.byteCount=a.fields[e+"ByteCount"],"UTF-8"!==c.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!v(c.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const t=A(c.valueType);i+=i%t!==0?t-i%t:0,c.byteOffset=i,c.byteCount=t*c.valuesPerElement*c.count}}i+=c.byteCount??0,u.entries[e]=c}return u.byteCount=i-u.byteOffset,u}(n,t,e);M(u.byteOffset+u.byteCount,n.byteLength,"attribute");const s=u.entries.attributeValues||u.entries.objectIds;if(s){if("String"===s.valueType){const t=u.entries.attributeByteCounts,e=h(n,t),r=function(t,n){return new Uint8Array(t,n.byteOffset,n.byteCount)}(n,s);return s.timeEncoding?function(t,n,e){return f(t,n,e).map(t=>{const n=t?Date.parse(t):null;return null==n||Number.isNaN(n)?null:n})}(t.count,e,r):f(t.count,e,r)}return a?h(n,s):function(t,n){const e=h(t,n);if(e.length>=1024)return e;const r=new Array;return e.forEach((t,n)=>r.push(d(e,n))),r}(n,s)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,n)=>new DataView(t,0).getFloat32(n,!0),Float64:(t,n)=>new DataView(t,0).getFloat64(n,!0),UInt8:(t,n)=>new DataView(t,0).getUint8(n),Int8:(t,n)=>new DataView(t,0).getInt8(n),UInt16:(t,n)=>new DataView(t,0).getUint16(n,!0),Int16:(t,n)=>new DataView(t,0).getInt16(n,!0),UInt32:(t,n)=>new DataView(t,0).getUint32(n,!0),Int32:(t,n)=>new DataView(t,0).getInt32(n,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,n,e){e.d(n,{Ax:()=>d,Me:()=>i,mb:()=>f});var r=e(49186);const o=!0;function a(t,n,e){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,e+0,10)),version:n.getUint16(e+10,o),checksum:n.getUint32(e+12,o)}}function u(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),minX:t.getFloat64(n+8,o),minY:t.getFloat64(n+16,o),minZ:t.getFloat64(n+24,o),maxX:t.getFloat64(n+32,o),maxY:t.getFloat64(n+40,o),maxZ:t.getFloat64(n+48,o),errorX:t.getFloat64(n+56,o),errorY:t.getFloat64(n+64,o),errorZ:t.getFloat64(n+72,o),count:t.getUint32(n+80,o),reserved:t.getUint32(n+84,o)}}function i(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:i}=a(t,n,e);if(e+=16,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");const s=u(n,e);if(e+=88,s.sizeHi*2**32+s.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Float64Array(3*s.count),f=[],h=[],d=[],M=[];if(e=c(t,e,f),e=c(t,e,h),e=c(t,e,d),e=c(t,e,M),e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let b=0,p=0;for(let t=0;t<f.length;t++){p+=f[t];let n=0;for(let e=0;e<h[t];e++){n+=d[b];const t=M[b];l[3*b]=Math.min(s.maxX,s.minX+2*s.errorX*n),l[3*b+1]=Math.min(s.maxY,s.minY+2*s.errorY*p),l[3*b+2]=Math.min(s.maxZ,s.minZ+2*s.errorZ*t),b++}}return{errorX:s.errorX,errorY:s.errorY,errorZ:s.errorZ,result:l}}function c(t,n,e){const r=[];n=s(t,n,r);const o=[];for(let a=0;a<r.length;a++){o.length=0,n=s(t,n,o);for(let t=0;t<o.length;t++)e.push(o[t]+r[a])}return n}function s(t,n,e){const a=new DataView(t,n),u=a.getUint8(0),i=31&u,c=!!(32&u),s=(192&u)>>6;let l=0;if(0===s)l=a.getUint32(1,o),n+=5;else if(1===s)l=a.getUint16(1,o),n+=3;else{if(2!==s)throw new r.A("lepcc-decode-error","Bad count type");l=a.getUint8(1),n+=2}if(c)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(l*i/8),h=new Uint8Array(t,n,f);let d=0,M=0,b=0;const p=-1>>>32-i;for(let t=0;t<l;t++){for(;M<i;)d|=h[b]<<M,M+=8,b+=1;e[t]=d&p,d>>>=i,M-=i,M+i>32&&(d|=h[b-1]>>8-M)}return n+b}function l(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),colorMapCount:t.getUint16(n+12,o),lookupMethod:t.getUint8(n+14),compressionMethod:t.getUint8(n+15)}}function f(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=l(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+e!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const n=new Uint8Array(t,e,3*i.colorMapCount),o=new Uint8Array(t,e+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){const e=o[t];a[3*t]=n[3*e],a[3*t+1]=n[3*e+1],a[3*t+2]=n[3*e+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+e!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,e).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(e+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=n.getUint8(e),a=n.getUint8(e+1),u=n.getUint8(e+2),c=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)c[3*t]=o,c[3*t+1]=a,c[3*t+2]=u;return c}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function h(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),scaleFactor:t.getUint16(n+12,o),bitsPerPoint:t.getUint8(n+14),reserved:t.getUint8(n+15)}}function d(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=h(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const c=new Uint16Array(i.count);if(8===i.bitsPerPoint){if(i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint8Array(t,e,i.count);for(let t=0;t<i.count;t++)c[t]=n[t]*i.scaleFactor}else if(16===i.bitsPerPoint){if(2*i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint16Array(t,e,i.count);for(let t=0;t<i.count;t++)c[t]=n[t]*i.scaleFactor}else{const n=[];if(s(t,e,n)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<i.count;t++)c[t]=n[t]*i.scaleFactor}return c}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6467,8768],{60999(t,e,r){r.d(e,{DZ:()=>f,Ke:()=>d,QA:()=>g,Tj:()=>h,UT:()=>m,aD:()=>v,jJ:()=>u});var i=r(32198),n=r(69622),s=r(97768),a=r(17676),o=r(10107),l=r(64108);function u(t,e,r){return(0,a.Lx)(t.map((t,i)=>e.apply(r,[t,i])))}async function h(t,e,r){return(await(0,a.Lx)(t.map((t,i)=>e.apply(r,[t,i])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function d(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function f(t){try{return c(await t)}catch(t){return(0,a.QP)(t),p(t)}}function g(t){if(!0===t.ok)return t.value;throw t.error}function m(t,e){return new y(t,e)}let y=class extends n.A{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,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,a.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,o.MZ)()],y.prototype,"value",null),(0,i.Cg)([(0,o.MZ)()],y.prototype,"error",null),(0,i.Cg)([(0,o.MZ)()],y.prototype,"finished",null),(0,i.Cg)([(0,o.MZ)()],y.prototype,"promise",void 0),(0,i.Cg)([(0,o.MZ)()],y.prototype,"_result",void 0),y=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class v{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}}},35522(t,e,r){r.d(e,{$A:()=>C,Bw:()=>s,C:()=>a,Cc:()=>_,DI:()=>S,Io:()=>v,Ln:()=>y,Om:()=>R,Qr:()=>c,Re:()=>u,S8:()=>b,T9:()=>g,WQ:()=>l,Z0:()=>P,_S:()=>d,aI:()=>L,ei:()=>x,fw:()=>E,gL:()=>I,hG:()=>M,hZ:()=>o,hs:()=>m,jk:()=>f,lw:()=>h,m3:()=>w,oW:()=>O,t2:()=>Z,tn:()=>p,ze:()=>A});var i=r(51850),n=r(34304);function s(t){const e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,i){return t[0]=e,t[1]=r,t[2]=i,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function h(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function g(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function y(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t[2]=e[2]+r[2]*i,t}function v(t,e){const r=e[0]-t[0],i=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+i*i+n*n)}function M(t,e){const r=e[0]-t[0],i=e[1]-t[1],n=e[2]-t[2];return r*r+i*i+n*n}function w(t){const e=t[0],r=t[1],i=t[2];return e*e+r*r+i*i}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const r=e[0],i=e[1],n=e[2];let s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function R(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,r){const i=e[0],n=e[1],s=e[2],a=r[0],o=r[1],l=r[2];return t[0]=n*l-s*o,t[1]=s*a-i*l,t[2]=i*o-n*a,t}function _(t,e,r,i){const n=e[0],s=e[1],a=e[2];return t[0]=n+i*(r[0]-n),t[1]=s+i*(r[1]-s),t[2]=a+i*(r[2]-a),t}function P(t,e,r){const i=e[0],n=e[1],s=e[2];return t[0]=r[0]*i+r[4]*n+r[8]*s+r[12],t[1]=r[1]*i+r[5]*n+r[9]*s+r[13],t[2]=r[2]*i+r[6]*n+r[10]*s+r[14],t}function x(t,e,r){const i=e[0],n=e[1],s=e[2];return t[0]=i*r[0]+n*r[3]+s*r[6],t[1]=i*r[1]+n*r[4]+s*r[7],t[2]=i*r[2]+n*r[5]+s*r[8],t}function I(t,e,r){return E(t,e,r[0],r[1],r[2],r[3])}function E(t,e,r,i,n,s){const a=e[0],o=e[1],l=e[2],u=i*l-n*o,h=n*a-r*l,c=r*o-i*a,p=i*c-n*h,d=n*u-r*c,f=r*h-i*u,g=2*s;return t[0]=a+u*g+2*p,t[1]=o+h*g+2*d,t[2]=l+c*g+2*f,t}const U=(0,i.vt)(),k=(0,i.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const r=t[0],i=t[1],s=t[2],a=e[0],o=e[1],l=e[2],u=(0,n.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-o)<=u*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function O(t,e,r){const i=r[0]-e[0],n=r[1]-e[1],s=r[2]-e[2];let a=i*i+n*n+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=i*a,t[1]=n*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,j=h,H=c,G=v,W=M,N=s,q=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){b(U,t),b(k,e);const r=R(U,k);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,i,n,s){const a=1-s,o=a*a,l=s*s,u=o*a,h=3*s*o,c=3*l*a,p=l*s;return t[0]=e[0]*u+r[0]*h+i[0]*c+n[0]*p,t[1]=e[1]*u+r[1]*h+i[1]*c+n[1]*p,t[2]=e[2]*u+r[2]*h+i[2]*c+n[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:a,cross:C,crossAndNormalize:function(t,e,r){const i=e[0],n=e[1],s=e[2],a=r[0],o=r[1],l=r[2],u=n*l-s*o,h=s*a-i*l,c=i*o-n*a,p=Math.sqrt(u*u+h*h+c*c);return t[0]=u/p,t[1]=h/p,t[2]=c/p,t},direction:O,dist:G,distance:v,div:H,divide:c,dot:R,equals:L,exactEquals:Z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,i,n,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),h=a*(3-2*s);return t[0]=e[0]*o+r[0]*l+i[0]*u+n[0]*h,t[1]=e[1]*o+r[1]*l+i[1]*u+n[1]*h,t[2]=e[2]*o+r[2]*l+i[2]*u+n[2]*h,t},inverse:S,len:N,length:s,lerp:_,max:g,min:f,mul:j,multiply:h,negate:A,normalize:b,random:function(t,e=1){const r=n.Ov,i=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(i)*a,t[1]=Math.sin(i)*a,t[2]=s*e,t},rotateX:function(t,e,r,i){const n=[],s=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,i){const n=[],s=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,i){const n=[],s=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:y,scaleTo:function(t,e){return m(t,t,e/N(t))},set:o,sign:d,sqrDist:W,sqrLen:q,squaredDistance:M,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:x,transformMat4:P,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:I,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,N,"jb",0,T,"lo",0,W,"uE",0,q])},54239(t,e,r){r.d(e,{A:()=>y});var i,n=r(32198),s=r(4576),a=r(66552),o=r(25482),l=r(86211),u=r(67076),h=r(91429),c=r(97348),p=r(43937),d=r(36005);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,s.Xy)(g,"orthometric");const m=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=i=class extends o.o{constructor(t){super(t),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(t,e,r){return f.write(t,e,r)}readHeightModel(t,e,r){return f.read(t)||(r?.messages&&r.messages.push(function(t,e){return new u.A("height-model:unsupported",`Height model of value '${t}' is not supported`,e)}(t,{context:r})),null)}readHeightUnit(t,e,r){return m.read(t)||(r?.messages&&r.messages.push(v(t,{context:r})),null)}readHeightUnitService(t,e,r){return(0,l.LA)(t)||m.read(t)||(r?.messages&&r.messages.push(v(t,{context:r})),null)}readVertCRS(t,e){return e.vertCRS||e.ellipsoid||e.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(t){return!!t&&(this===t||this.heightModel===t.heightModel&&this.heightUnit===t.heightUnit&&this.vertCRS===t.vertCRS)}static deriveUnitFromSR(t,e){const r=(0,l.k1)(e);return new i({heightModel:t.heightModel,heightUnit:r??void 0,vertCRS:t.vertCRS})}static fromSpatialReference(t){const{latestVcsWkid:e,vcsWkid:r}=t;if(!r)return null;const n=(null!=e?c.B.get(e):null)??c.B.get(r);return n?new i({heightModel:0===n.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(n.unit.name),vertCRS:n.datum}):null}write(t,e){return e={origin:"web-scene",...e},super.write(t,e)}static fromJSON(t){if(!t)return null;const e=new i;return e.read(t,{origin:"web-scene"}),e}};function v(t,e){return new u.A("height-unit:unsupported",`Height unit of value '${t}' is not supported`,e)}(0,n.Cg)([(0,h.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,n.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,n.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,n.Cg)([(0,h.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,n.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,n.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,n.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,n.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=i=(0,n.Cg)([(0,h.$K)("esri.geometry.HeightModelInfo")],y)},48526(t,e,r){r.d(e,{A:()=>m});var i,n=r(32198),s=r(4576),a=r(4718),o=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),p=r(90634),d=r(47610),f=r(56993),g=r(43937);let m=i=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:i,spatialReference:n}=t;switch(e??=[],e?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=c.A.WGS84,{...t,hasM:r,hasZ:i,points:e,spatialReference:n}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:r,hasZ:n}=this;return new i({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:n})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,r=t.spatialReference;return null!=e==(null!=r)&&!(null!=e&&null!=r&&!e.equals(r))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,f.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(r.z=e[2],i=3),this.hasM&&(r.m=e[i]),new h.A(r)}removePoint(t){if(!this._validateInputs(t))return null;const e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,n.Cg)([(0,g.K)("points")],m.prototype,"writePoints",null),m=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>f});var i,n=r(32198),s=r(4718),a=r(91429),o=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),p=r(56993),d=r(43937);let f=i=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:i,spatialReference:n}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=h.A.WGS84,{...t,hasM:r,hasZ:i,paths:e,spatialReference:n}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let e=0,r=t.length;e<r;e++)i[e]=t[e].toArray();e[r]=i}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const r=this.paths[t][e],i=this.hasZ,n=this.hasM;return i&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)?((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],r=this.spatialReference,i=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),i}removePoint(t,e){if(!this._validateInputs(t,e))return null;const r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)?((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths"),this):this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const i=this.paths[t];if(r&&(e<0||e>i.length))return!1;if(!r&&(e<0||e>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,d.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,d.K)("paths")],f.prototype,"writePaths",null),f=i=(0,n.Cg)([(0,a.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},60408(t,e,r){function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function n(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?s(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":i(t)?"esriGeometryEnvelope":n(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>o,Pv:()=>h,Rg:()=>a,U9:()=>n,W0:()=>c,ZC:()=>i,fT:()=>s,uW:()=>l})},18768(t,e,r){var i=r(32198),n=r(53966),s=r(91429),a=r(60694);r.d(e,["b",0,t=>{const e=t;let r=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,a.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,a.Jf)(t,n.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(t,e,r){var i=r(32198),n=r(91429);r.d(e,["d",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(t,e,r){var i=r(32198),n=r(92602),s=r(70333),a=r(56507),o=r(60999),l=r(49186),u=r(36563),h=r(53966),c=r(97768),p=r(17676),d=r(84952),f=r(91429),g=r(77548),m=r(20655),y=r(80812),v=r(41318),M=r(10407),w=r(36005),A=r(43937);const S={credential:null,user:null};r.d(e,["A",0,t=>{const e=t;let b=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new y.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(()=>r(41204));return(0,p.Te)(e),await i({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t,e){if(!this.loaded||!this.portalItem?.id)return!1;const i=e?.signal?null:new AbortController;try{const{reload:n}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await n({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e?.signal?e:{signal:i.signal})}catch(t){throw(0,p.zf)(t)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!s.id?.findCredential(this.url),n=t===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let a,o;if(n)a=r.portal.url;else try{a=await(0,g.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!a||!(0,d.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const l=!0,u=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:h}};try{if(n?await r.reload():(r=new y.default({id:t,portal:{url:a}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,p.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,M.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=S.credential===e?S.user:await this._fetchEditingUser(t);return S.credential=e,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=m.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=t?t.signal:null,h=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?v.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:y.default})],b.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,i.Cg)([(0,A.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,i.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],b),b}])},25036(t,e,r){var i=r(32198),n=r(91429);r.d(e,["j",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},88546(t,e,r){r.d(e,{_8:()=>m,uB:()=>y});var i=r(34727),n=r(35522),s=r(51850),a=r(73941),o=r(5443),l=r(54239),u=r(16930),h=r(9762);const c=new u.A({wkid:4326,vcsWkid:115700}),p=new o.A(-180,-90,180,90,c);function d(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const f=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(t,e=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,c=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,c=!0;else if(!l)return new o.A(-180,-90,180,90,r);if(l.box){const t=l?.box;if(t[3]>f&&t[7]>f&&t[11]>f)return new o.A({...g,spatialReference:r})}const m=(0,s.vt)();if(!c&&l.region&&d(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),n=(0,i.KJ)(t[1]),s=t[4],a=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),h=t[5];return new o.A({xmin:e,ymin:n,zmin:s,xmax:a,ymax:u,zmax:h,spatialReference:r})}if(l.sphere&&d(l.sphere,4)){const t=l.sphere,e=(0,s.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),f=(0,s.vt)();(0,n.Re)(f,e,(0,s.fA)(i,i,i));const g=(0,s.vt)();if((0,n.WQ)(g,e,(0,s.fA)(i,i,i)),p&&d(p,16)){const t=p;(0,n.Z0)(m,f,t),(0,n.C)(f,m),(0,n.Z0)(m,g,t),(0,n.C)(g,m)}c||((0,h.projectBuffer)(f,a.Ro,0,f,u.A.WGS84,0),(0,h.projectBuffer)(g,a.Ro,0,g,u.A.WGS84,0));const y=(0,s.vt)(),v=(0,s.vt)();return(0,n.jk)(y,f,g),(0,n.T9)(v,f,g),new o.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:v[0],ymax:v[1],zmax:v[2],spatialReference:r})}if(l.box&&d(l.box,12)){const t=l.box,e=(0,s.fA)(t[0],t[1],t[2]),i=(0,s.fA)(t[3],t[4],t[5]),f=(0,s.fA)(t[6],t[7],t[8]),g=(0,s.fA)(t[9],t[10],t[11]),m=[];for(let t=0;t<8;++t)m.push((0,s.vt)());if((0,n.WQ)(m[0],e,i),(0,n.WQ)(m[0],m[0],f),(0,n.WQ)(m[0],m[0],g),(0,n.jb)(m[1],e,i),(0,n.WQ)(m[1],m[1],f),(0,n.WQ)(m[1],m[1],g),(0,n.WQ)(m[2],e,i),(0,n.jb)(m[2],m[2],f),(0,n.WQ)(m[2],m[2],g),(0,n.jb)(m[3],e,i),(0,n.jb)(m[3],m[3],f),(0,n.WQ)(m[3],m[3],g),(0,n.WQ)(m[4],e,i),(0,n.WQ)(m[4],m[4],f),(0,n.jb)(m[4],m[4],g),(0,n.jb)(m[5],e,i),(0,n.WQ)(m[5],m[5],f),(0,n.jb)(m[5],m[5],g),(0,n.WQ)(m[6],e,i),(0,n.jb)(m[6],m[6],f),(0,n.jb)(m[6],m[6],g),(0,n.jb)(m[7],e,i),(0,n.jb)(m[7],m[7],f),(0,n.jb)(m[7],m[7],g),p&&d(p,16)){const t=p;for(let e=0;e<8;++e)(0,n.Z0)(m[e],m[e],t)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),v=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)c||(0,h.projectBuffer)(m[t],a.Ro,0,m[t],u.A.WGS84,0),(0,n.jk)(v,v,m[t]),(0,n.T9)(y,y,m[t]);return new o.A({xmin:v[0],ymin:v[1],zmin:v[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new o.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]),r.d(e,["Zx",0,c,"zq",0,p])},10407(t,e,r){r.d(e,{It:()=>d,LG:()=>a,OM:()=>u,Sm:()=>h,Y:()=>o,bK:()=>l,sQ:()=>c});var i=r(99917),n=r(16930),s=r(28735);function a(t,e){if(!o(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return o(t,p.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function h(t,e,r){r?a(t,e):u(t,e)}async function c(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,s.ci)(t);const r=n.A.WGS84;return await(0,i.initializeProjection)(e,r),(0,i.project)(t,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(t){const{portal:e,isOrgItem:r,itemControl:i}=t,n=e.user?.privileges;let s=!n||n.includes("features:user:edit"),a=!!r&&!!n?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}r.d(e,["mm",0,p])},78553(t,e,r){r.d(e,{D:()=>s,p:()=>n});var i=r(78888);function n(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8964],{66131(e,t,n){n.d(t,{lY:()=>m,mT:()=>d});var s=n(59534),r=n(799),o=n(3330),i=n(34747);const a={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class c extends Error{constructor(e,t){super((0,r.HC)(a[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,c)}}function u(e,t,n){return e<t?e-t:e>n?e-n:0}function l(e,t,n){return e<t?t:e>n?n:e}class m{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,n=1,s=0,r=0,o=0,a=0,c){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(s)||isNaN(r)||isNaN(o)||isNaN(a))return null;const h=i.c9.local(e,t).daysInMonth;let f=i.c9.fromObject({day:l(n,1,h),year:e,month:l(t,1,12),hour:l(s,0,23),minute:l(r,0,59),second:l(o,0,59),millisecond:l(a,0,999)},{zone:d(c)});return f=f.plus({months:u(t,1,12),days:u(n,1,h),hours:u(s,0,23),minutes:u(r,0,59),seconds:u(o,0,59),milliseconds:u(a,0,999)}),new m(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const n=d(t);return e.isUnknownTimeZone||n===o.GB.instance?m.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new m(e._date.setZone(n))}static dateJSToArcadeDate(e){return new m(i.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const n=d(t);return new m(i.c9.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new m(i.c9.fromMillis(e,{zone:o.GB.instance}))}static unknownDateJSToArcadeDate(e){return new m(i.c9.fromMillis(e.getTime(),{zone:o.GB.instance}))}static epochToArcadeDate(e,t="system"){const n=d(t);return new m(i.c9.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new m(e)}clone(){return new m(this._date)}changeTimeZone(e){const t=d(e);return m.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const n=d(t);return e.zone===o.GB.instance||n===o.GB.instance?m.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new m(e.setZone(n))}static nowToArcadeDate(e){const t=d(e);return new m(i.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new m(i.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===m.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===o.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new m(this._date.plus(e))}diff(e,t){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new m(this._date.toUTC())}toLocal(){return new m(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=i.c9.fromISO(e,{setZone:!0});return new m(t)}}function d(e,t=!0){if(e instanceof i.bo)return e;switch((0,s.B)(e)){case"system":return"system";case"utc":return"UTC";case"unknown":return o.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(e)){const t=i.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const n=i.oh.create(e);if(!n.isValid){if(t)throw new c("TimeZoneNotRecognized");return null}return n}},59534(e,t,n){n.d(t,{B:()=>r,b:()=>o});var s=n(85935);function r(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class o{constructor(e,t){const n=new Map;for(const t of e){const e=r(t);if(n.has(e))throw new Error(`${t} already added as ${n.get(e)}`);n.set(e,t)}if(null!=t)for(const[e,s]of t){const t=r(e);if(n.has(t))throw new Error(`${e} already associated with ${n.get(t)}`);n.set(t,s)}this._enumMap=n}lookup(e){return this._enumMap.get(r(e))}get(e){const t=this.lookup(e);if(null==t)throw new s.D$("InvalidParameter",null);return t}}},85935(e,t,n){n.d(t,{D$:()=>a,O$:()=>l,i2:()=>m,mT:()=>u,ps:()=>h});var s=n(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function o(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class i extends Error{constructor(e,t){super(c(t)+("object"==typeof e&&null!=e&&"message"in e?e.message:""),{cause:e}),this.loc=t?.loc??null}}class a extends Error{constructor(e,t,n){super("Execution error - "+c(t)+(0,s.HC)(r[e],n)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=t?.loc??null}}function c(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,t,n){super("Compilation error - "+c(t)+(0,s.HC)(r[e],n)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=t?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function m(e,t){return!function(e){if(e instanceof Error&&"loc"in e){const t=e.loc;return null==t||"object"==typeof t&&"start"in t&&null!=t.start&&o(t.start)&&(!("end"in t)||null==t.end||o(t.end))}return!1}(e)||null==e.loc&&null!=t?.loc?new i(e,t):e}const d={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class h extends Error{constructor(e,t){super((0,s.HC)(d[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},8964(e,t,n){n.r(t),n.d(t,{ImplicitResult:()=>o.I,ReturnResult:()=>o.R,absRound:()=>o.V,arcadeVersion:()=>"1.36",autoCastFeatureToGeometry:()=>o.H,binaryOperator:()=>o.A,breakResult:()=>o.C,castAsJson:()=>o.a,castAsJsonAsync:()=>o.e,castRecordToText:()=>o.c,continueResult:()=>o.D,defaultTimeZone:()=>o.S,defaultUndefined:()=>o.N,equalityTest:()=>o.z,featureDomainCodeLookup:()=>o.X,featureDomainValueLookup:()=>o.Y,featureFullDomain:()=>o.W,featureSchema:()=>o.Z,featureSubtypes:()=>o._,getDomain:()=>o.a6,getDomainCode:()=>o.a8,getDomainValue:()=>o.a7,getType:()=>o.Q,greaterThanLessThan:()=>o.y,isArray:()=>s.cy,isAttachment:()=>o.m,isBoolean:()=>s.Lm,isDate:()=>o.f,isDateOnly:()=>o.q,isDictionary:()=>o.l,isDictionaryLike:()=>o.B,isEmpty:()=>o.O,isExtent:()=>o.J,isFeature:()=>o.h,isFeatureSet:()=>o.k,isFeatureSetCollection:()=>o.j,isFunctionParameter:()=>o.i,isGeometry:()=>o.d,isGraphic:()=>r.D,isImmutableArray:()=>o.g,isInteger:()=>s.Fq,isJsDate:()=>s.$P,isKnowledgeGraph:()=>o.o,isModule:()=>o.p,isMultipoint:()=>o.a0,isNumber:()=>s.Et,isPixel:()=>o.F,isPoint:()=>o.L,isPolygon:()=>o.$,isPolyline:()=>o.K,isPortal:()=>o.n,isSimpleType:()=>o.b,isString:()=>s.Kg,isSubtypeGrouplayer:()=>o.a9,isSubtypeSublayer:()=>o.a4,isTime:()=>o.r,isVoid:()=>o.u,isVoxel:()=>o.G,multiReplace:()=>o.a1,pcCheck:()=>o.E,standardiseDateFormat:()=>o.U,tick:()=>o.a5,toBoolean:()=>o.M,toDate:()=>o.T,toNumber:()=>o.v,toNumberArray:()=>o.a3,toString:()=>o.w,toStringArray:()=>o.P,toStringExplicit:()=>o.t,voidOperation:()=>o.x}),n(66131),n(85935),n(92400),n(93818),n(33325),n(14607),n(44729),n(15032),n(73444);var s=n(54218),r=n(94128),o=n(78878)},44729(e,t,n){n.d(t,{n:()=>c});var s=n(66131),r=n(73444),o=n(34747);function i(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const s of e.match(n)||[])switch(s){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=s;break;default:s.length>=2&&s.startsWith("[")&&s.endsWith("]")?t+=`'${s.slice(1,-1)}'`:t+=`'${s}'`}return t}const a="esri.core.sql.dateonly";class c{constructor(e,t,n){this._year=e,this._month=t,this._day=n,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return c.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}compare(e){return this.year===e.year?this.month===e.month?this.day-e.day:this.month-e.month:this.year-e.year}clone(){return new c(this._year,this._month,this._day)}toDateTime(e){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,s.mT)(e)})}toDateTimeLuxon(e){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,s.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=i(e)),!e)return"";const n=this.toDateTime("unknown");return s.lY.dateTimeToArcadeDate(n).toFormat(e,{locale:(0,r.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return s.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return c.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return o.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=o.c9.fromMillis(e,{zone:o.mQ.utcInstance});return t.isValid?c.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=o.c9.fromSeconds(e,{zone:o.mQ.utcInstance});return t.isValid?c.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.indexOf("-");if(t<0)return null;const n=e.indexOf("-",t+1);return n<0?null:new c(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,n),10),parseInt(e.slice(n+1),10))}static fromParts(e,t,n){const s=new c(e,t,n);return!1===s.isValid?null:s}static fromDateJS(e){return c.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return c.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];if(t)(t=i(t))&&n.push(t);else if(null===t||""===t){const t=o.c9.fromISO(e,{setZone:!0});return t.isValid?c.fromParts(t.year,t.month,t.day):null}for(const s of n){const n=o.c9.fromFormat(e,t??s);if(n.isValid)return new c(n.year,n.month,n.day)}return null}static fromNow(e="system"){const t=o.c9.fromJSDate(new Date).setZone((0,s.mT)(e));return new c(t.year,t.month,t.day)}}},15032(e,t,n){n.d(t,{k:()=>c});var s=n(73444),r=n(54218),o=n(34747);function i(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let n="";for(const s of e.match(t)||[])switch(s){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":n+=s;break;case"A":case"a":n+="a";break;default:n+=`'${s}'`}return n}const a="esri.core.sql.timeonly";class c{constructor(e,t,n,s){this._hour=e,this._minute=t,this._second=n,this._millisecond=s,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return c.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new c(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,r.Fq)(this.hour)&&(0,r.Fq)(this.minute)&&(0,r.Fq)(this.second)&&(0,r.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=i(e))?o.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,s.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,n,s){const r=new c(e,t,n,s);return r.isValid()?r:null}static fromReader(e){if(!e)return null;const t=e.indexOf(":");if(t<0)return null;const n=e.indexOf(":",t+1);return n<0?null:new c(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,n),10),parseInt(e.slice(n+1),10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),s=Math.floor(e/36e5%24),r=Math.floor(e%1e3);return new c(s,n,t,r)}static fromDateJS(e){return new c(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new c(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];t?(t=i(t))&&n.push(t):null!==t&&""!==t||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(const t of n){const n=o.c9.fromFormat(e,t);if(n.isValid)return new c(n.hour,n.minute,n.second,n.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return c.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return o.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},94128(e,t,n){n.d(t,{D:()=>r});const s=Symbol("GraphicInstance");function r(e){return null!=e&&"object"==typeof e&&s in e}n.d(t,["Z",0,s])}}]);
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{copy as o,normalize as t,set as e,subtract as n,cross as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as l}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{newDoubleArray as s}from"../../../../geometry/support/DoubleArray.js";import{newIndexArray as r}from"../../../../geometry/support/Indices.js";function u(e,n){const{worldUp:i,height:l,spherical:u,requireElevation:m,requireNormals:p,requireSizes:f}=n;if(m&&!("mapPositions"in e))return null;const{positions:a,polygonIndices:d,outline:g}=e,h="mapPositions"in e?e.mapPositions:a;if("tessellated-indices"!==g.output)return null;let v=0;for(let o=0;o<d.length;++o)v=Math.max(v,d[o]+1);const C=e.vertexCount,b=e.outlineSegmentCount,j=2*C+4*b,q=3*j,P=s(q),z=r(6*b+e.polygonIndexCount,j),S=r(e.polygonIndexCount,j);o(x,i);const w=m?s(q):void 0,A=p?s(q):void 0,D=f?s(q):void 0,E=d.length/3,M=l>0?1:-1;let N=0,U=0,V=C;for(let o=0;o<C;++o){const o=a[N],e=a[N+1],n=a[N+2];u&&(x[0]=o,x[1]=e,x[2]=n,t(x,x));const i=3*U;P[i+0]=o,P[i+1]=e,P[i+2]=n;const s=h[N+0],r=h[N+1],c=h[N+2];null!=w&&(w[i+0]=s,w[i+1]=r,w[i+2]=c),null!=A&&(A[i+0]=-M*x[0],A[i+1]=-M*x[1],A[i+2]=-M*x[2]),null!=D&&(D[U]=0);const m=3*V;P[m+0]=o+l*x[0],P[m+1]=e+l*x[1],P[m+2]=n+l*x[2],null!=w&&(w[m+0]=s,w[m+1]=r,w[m+2]=c),null!=D&&(D[V]=l),N+=3,U+=1,V+=1}let k=2*C,B=0;for(let o=0;o<g.outlineIndices.length;++o){const t=g.outlineIndices[o],e=t.length-1;e<=0||(c(P,w,D,A,t,e,C,k,z,B,l),k+=4*e,B+=2*e)}let F=0,G=0,H=3*B;const J=l<0?I:y,K=l<0?y:I;for(let o=0;o<E;++o)S[G]=d[F+J[0]],S[G+1]=d[F+J[1]],S[G+2]=d[F+J[2]],z[H]=d[F+K[0]]+C,z[H+1]=d[F+K[1]]+C,z[H+2]=d[F+K[2]]+C,G+=3,H+=3,F+=3;return{vertices:P,indices:z,bottomIndices:S,polygonVertexCount:v,elevation:w,normals:A,sizes:D}}function c(o,t,e,n,i,l,s,r,u,c,a){t??=[],e??=[],n??=[];let d=r,g=r+1,h=r+2*l,v=r+2*l+1,x=3*c;for(let y=0;y<l;++y){const l=i[y],r=i[y+1],c=l+s,I=r+s;let C=l,b=r,j=c,q=I;a<0&&(C=I,b=r,j=c,q=l),m(o,C,b,j,f),p(o,t,n,e,f,d,C),p(o,t,n,e,f,g,b),p(o,t,n,e,f,h,j),p(o,t,n,e,f,v,q),u[x]=d,u[x+1]=h,u[x+2]=v,u[x+3]=d,u[x+4]=v,u[x+5]=g,x+=6,d+=2,g+=2,h+=2,v+=2}}function m(o,l,s,r,u){l*=3,s*=3,r*=3,e(a,o[l++],o[l++],o[l++]),e(d,o[s++],o[s++],o[s++]),e(g,o[r++],o[r++],o[r++]),n(h,d,a),n(v,g,a),i(u,v,h),t(u,u)}function p(o,t,e,n,i,l,s){n[l]=n[s],s*=3,o[l*=3]=o[s],o[l+1]=o[s+1],o[l+2]=o[s+2],t[l]=t[s],t[l+1]=t[s+1],t[l+2]=t[s+2],e[l]=i[0],e[l+1]=i[1],e[l+2]=i[2]}const f=l(),a=l(),d=l(),g=l(),h=l(),v=l(),x=l(),y=[0,2,1],I=[0,1,2];export{u as extrudePolygon};