@arcgis/core 4.34.0-next.55 → 4.34.0-next.56
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.
- package/WebScene.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0a4586e596413ef7a4b5.js +1 -0
- package/assets/esri/core/workers/chunks/{62ade6f18b375795ddfd.js → 10b46438885916d18425.js} +1 -1
- package/assets/esri/core/workers/chunks/1166ed298cf5ca7ad444.js +1 -0
- package/assets/esri/core/workers/chunks/13797036850dcc3671c3.js +1 -0
- package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js → 3490d47cac7c8dec70cd.js} +2 -2
- package/assets/esri/core/workers/chunks/43a56c8fa4e5be18c12a.js +1 -0
- package/assets/esri/core/workers/chunks/4b58da6cb91f7bf6af8b.js +1 -0
- package/assets/esri/core/workers/chunks/{cac060a187f3a27a19ba.js → 4d5abcf57a6ded4750ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0bf1fc6e3c198bc565d.js → 57486b18421a3c9690d0.js} +1 -1
- package/assets/esri/core/workers/chunks/5f518931a660b3c4f519.js +1 -0
- package/assets/esri/core/workers/chunks/66f3659ba18f92cd623e.js +1 -0
- package/assets/esri/core/workers/chunks/67355372ac5fd8a15d18.js +1 -0
- package/assets/esri/core/workers/chunks/{5691d504ffe5592bc40f.js → 6dc0009889f2b7cc8cff.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d2473e680324dc17cfa.js → 853b9f29b4d62fa621b9.js} +1 -1
- package/assets/esri/core/workers/chunks/855f25ce748aaef44b1a.js +1 -0
- package/assets/esri/core/workers/chunks/{71acded1b3c0057917a1.js → 862fe2f96d4b777ff5b8.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe5c37c69da3ec1e56ac.js → 8fa50cac57b6e1ecec76.js} +1 -1
- package/assets/esri/core/workers/chunks/9307108821d82c131654.js +1 -0
- package/assets/esri/core/workers/chunks/9b10e70f28873cff44f5.js +1 -0
- package/assets/esri/core/workers/chunks/{3b51b61a7b8a1ef87c9b.js → adf11d31f95481f89a55.js} +1 -1
- package/assets/esri/core/workers/chunks/af4412e79275c5a87539.js +1 -0
- package/assets/esri/core/workers/chunks/{7a8d740d1226719a578a.js → b457b7dd907f06278bee.js} +1 -1
- package/assets/esri/core/workers/chunks/{81e518dd62bd95611d00.js → b47688e3263099540873.js} +1 -1
- package/assets/esri/core/workers/chunks/c91217d977a6baaee74a.js +1 -0
- package/assets/esri/core/workers/chunks/{e1b25b1ce3bd4f0f2cda.js → cb57cdff976d2d4b0b41.js} +1 -1
- package/assets/esri/core/workers/chunks/{9fef330b241f958b55df.js → d0124b0dd62b331afe58.js} +1 -1
- package/assets/esri/core/workers/chunks/d3a7747f23e91d1f1b5e.js +1 -0
- package/assets/esri/core/workers/chunks/d3ae88fcde2d7fb3e2e2.js +1 -0
- package/assets/esri/core/workers/chunks/{b6a201e86f9caef45ff0.js → d42fd0effc560eefb14b.js} +1 -1
- package/assets/esri/core/workers/chunks/{4f8dab492331c9a2d67a.js → d87fdc64a5cc6be4bd69.js} +1 -1
- package/assets/esri/core/workers/chunks/db5d3feeb61ccb5ede98.js +1 -0
- package/assets/esri/core/workers/chunks/{aab349d4624b78ef429f.js → e6bf4f3f6868dc9028e3.js} +1 -1
- package/assets/esri/core/workers/chunks/f74b0cdc1c2b56bac5f0.js +1 -0
- package/assets/esri/core/workers/chunks/f807e7fc90e0e7ce6b67.js +1 -0
- package/assets/esri/core/workers/chunks/{fae6030a81cb91a91b69.js → faf4002f9547a0cc4e33.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe55833c80cf59df9c2b.js → ff42b24b48019a03d841.js} +1 -1
- package/assets/esri/core/workers/chunks/{e10c5405f956b2cc59e4.js → ff4e15a872de94d2b438.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff7962063d132c1ec814.js → ff8a4bf1bceb362d67ab.js} +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/geometry/Multipoint.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/graphic/KMLGraphicOrigin.js +5 -0
- package/graphic/isKMLGraphicOrigin.js +5 -0
- package/interfaces.d.ts +6 -3
- package/kernel.js +1 -1
- package/layers/KMLLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/KMLSublayer.js +1 -1
- package/layers/support/featureReductionUtils.js +1 -1
- package/layers/support/kmlUtils.js +1 -1
- package/package.json +1 -1
- package/renderers/support/colorRampUtils.js +1 -1
- package/support/requestUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/KMLLayerView2D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
- package/views/3d/analysis/Viewshed/{ArrowManipulator.js → ViewshedArrowManipulator.js} +1 -1
- package/views/3d/analysis/Viewshed/{FieldOfViewManipulation.js → ViewshedFieldOfViewManipulation.js} +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +5 -0
- package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +5 -0
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +5 -0
- package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/MultipointDrawAction.js +1 -1
- package/views/draw/PointDrawAction.js +1 -1
- package/views/draw/PolygonDrawAction.js +1 -1
- package/views/draw/PolylineDrawAction.js +1 -1
- package/views/draw/SegmentDrawAction.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/drawUtils.js +1 -1
- package/views/draw/support/reshapeTooltipUtils.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
- package/views/interactive/editGeometry/operations/AppendVertex.js +1 -1
- package/views/interactive/tooltip/infos/SelectedVertexTooltipInfo.js +1 -1
- package/webscene/spec-certification/api.js +1 -1
- package/webscene/spec-certification/compare.js +1 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/widgets/ElevationProfile/support/profileUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/sketchUtils.js +1 -1
- package/assets/esri/core/workers/chunks/02902303e5585a16ebea.js +0 -1
- package/assets/esri/core/workers/chunks/0445de3a8968c0734c91.js +0 -1
- package/assets/esri/core/workers/chunks/09268dc856c3d5ce178f.js +0 -1
- package/assets/esri/core/workers/chunks/0f51e51db83f303ce5a6.js +0 -1
- package/assets/esri/core/workers/chunks/17776d9d3558d45ea7b5.js +0 -1
- package/assets/esri/core/workers/chunks/1cbd59918c60a1a21494.js +0 -1
- package/assets/esri/core/workers/chunks/252ee00fd6c4ae0ee7fa.js +0 -1
- package/assets/esri/core/workers/chunks/3800764932a1c32cb29f.js +0 -1
- package/assets/esri/core/workers/chunks/3c57b2e13628b5c1f6de.js +0 -1
- package/assets/esri/core/workers/chunks/772e81e9162e2240a7a6.js +0 -1
- package/assets/esri/core/workers/chunks/8c81156b1605a16acc29.js +0 -1
- package/assets/esri/core/workers/chunks/8f6ff09e7d2f01b79faf.js +0 -1
- package/assets/esri/core/workers/chunks/998c38974372720b1c52.js +0 -1
- package/assets/esri/core/workers/chunks/a7530dcb08b43e37bbb2.js +0 -1
- package/assets/esri/core/workers/chunks/c51e2a048df152abd901.js +0 -1
- package/assets/esri/core/workers/chunks/d1842745a7699879a1e1.js +0 -1
- package/assets/esri/core/workers/chunks/d578c3880eaf2dd62324.js +0 -1
- package/assets/esri/core/workers/chunks/de499e33035b56b6697d.js +0 -1
- package/assets/esri/core/workers/chunks/e04951ee32f041faaeca.js +0 -1
- package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +0 -5
- package/views/3d/analysis/Viewshed/ViewshedAnalysisVisualization.js +0 -5
- package/views/3d/interactive/visualElements/ViewshedShapeVisualElement.js +0 -5
- /package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js.LICENSE.txt → 3490d47cac7c8dec70cd.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5845],{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,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,a,l,s,u,c,f,h,d,p,m){return[t,n,e,r,o,i,a,l,s,u,c,f,h,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(t,n,e)=>{e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(37539);function o(t,n,e,o,i,a,l=Math.floor(t.length/3)){const s=(0,r.jd)(n,i);if(null==s)return!1;if(s===r.pO){if(t===o&&e===a)return!0;const n=e+3*l;for(let r=e,i=a;r<n;r++,i++)o[i]=t[r];return!0}const u=e+3*l;for(let n=e,r=a;n<u;n+=3,r+=3)s(t,n,o,r);return!0}},11006:(t,n,e)=>{function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||a)}function o(t,n,e,r,a){for(;r>e;){if(r-e>600){var l=r-e+1,s=n-e+1,u=Math.log(l),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(l-c)/l)*(s-l/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-s*c/l+f)),Math.min(r,Math.floor(n+(l-s)*c/l+f)),a)}var h=t[n],d=e,p=r;for(i(t,e,n),a(t[r],h)>0&&i(t,e,r);d<p;){for(i(t,d,p),d++,p--;a(t[d],h)<0;)d++;for(;a(t[p],h)>0;)p--}0===a(t[e],h)?i(t,e,p):i(t,++p,r),p<=n&&(e=p+1),n<=p&&(r=p-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function a(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},18251:(t,n,e)=>{e.d(n,{A:()=>c});var r=e(31635),o=e(69540),i=e(25482),a=e(10107),l=(e(44208),e(53966),e(87811),e(93223)),s=e(40608),u=e(51850);let c=class extends((0,o.O)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,s.$)("esri.geometry.support.MeshLocalVertexSpace")],c)},22141:(t,n,e)=>{e.d(n,{$5:()=>v,CN:()=>M,JP:()=>y,KM:()=>S,Mv:()=>k,X4:()=>w,gr:()=>b,qs:()=>_,si:()=>x,xA:()=>B});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),l=e(9093),s=e(38954),u=e(51850),c=e(48353),f=e(9762),h=(e(79258),e(21325)),d=e(28735),p=e(13030),m=e(73354),g=e(65686);const y="Projection may be possible after calling projection.load().";function M(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function w(t,n,e,r,o,i){return R(0,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i))?i:null}function x(t,n,e,r,o,i){return R(1,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i))?i:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function _(t,n,e){return(0,o.Ge)(O,e),(0,m.b)(n,t,O),(0,r.or)(O)&&(0,m.n)(n,n),n}function S(t,n,e){return(0,o.z0)(O,e),(0,g.t)(n,t,O),(0,r.or)(O)&&(0,m.n)(n,n,4),n}function B(t,n,e,r,o,i){if(!R(0,p.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function k(t,n,e,r,o,i){if(!R(1,p.xs.fromTypedArray(t,16),1,p.Xm.fromTypedArray(n),e,p.Xm.fromTypedArray(r),o,p.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function A(t,n,e,r,i){switch((0,c.l)(r,e,T,r),1===t&&(0,a.B8)(T,T),n){case 0:return(0,o.Ge)(i,T);case 1:return(0,o.z0)(i,T)}}function R(t,n,e,r,o,i,a,l){if(!n)return;const u=r.count;if(function(t){return t.isWGS84||(0,h.x1)(t)||(0,h.q8)(t)||(0,h.KQ)(t)}(o))for(let r=0;r<u;r++)i.getVec(r,j),n.getVec(r,I),(0,s.o)(I,I,A(t,e,j,a,O)),l.setVec(r,I);else for(let o=0;o<u;o++){i.getVec(o,j),n.getVec(o,I);const u=(0,d.jg)(r.get(o,1));let c=Math.cos(u);1===e!=(0===t)&&(c=1/c),A(t,e,j,a,O),0===t?(O[0]*=c,O[1]*=c,O[2]*=c,O[3]*=c,O[4]*=c,O[5]*=c):(O[0]*=c,O[3]*=c,O[6]*=c,O[1]*=c,O[4]*=c,O[7]*=c),(0,s.o)(I,I,O),(0,s.n)(I,I),l.setVec(o,I)}return l}const j=(0,u.vt)(),I=(0,u.vt)(),T=(0,l.vt)(),O=(0,i.vt)()},27615:(t,n,e)=>{e.d(n,{CK:()=>s,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var r=e(38954),o=e(86738),i=e(95696),a=e(18251);function l(t){return null!=t.origin}function s(t){return l(t.vertexSpace)}function u(t,n){if(!l(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function c(t,n){const{x:e,y:r,z:o,spatialReference:l}=t,s=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(l))?new a.A({origin:s}):new i.A({origin:s})}function f(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.q)(t.origin,n.origin))}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,a,l,s){return[t,n,e,r,o,i,a,l,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,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"}))},31635:(t,n,e)=>{function r(t,n,e,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}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:()=>a,mS:()=>o}),Object.create,Object.create;var i="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 a(t){function n(n){t.error=t.hasError?new i(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 i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).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}()}},37539:(t,n,e)=>{e.d(n,{pO:()=>m,jd:()=>h,Tp:()=>d,w5:()=>f});var r=e(34727),o=e(83047),i=e(73941),a=e(79258);Math.PI;const l=a.$O.radius,s=a.$O.eccentricitySquared,u={a1:l*s,a2:l*s*l*s,a3:l*s*s/2,a4:l*s*l*s*2.5,a5:l*s+l*s*s/2,a6:1-s};a.$O.radius,a.$O.flattening,a.Sw.radius,a.Sw.flattening,a.sH.radius,a.sH.flattening,a.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:R},5:{5:m,7:null,9:null,10:m,1:_,6:null,8:null,0:null,3:y,11:M,2:m,4:R},7:{5:null,7:m,9:null,10:m,1:null,6:v,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:b,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,n,e,r){const o=t[n]/P,i=q-2*Math.atan(Math.exp(-t[n+1]/P)),a=P+t[n+2],l=Math.cos(i)*a;e[r]=Math.cos(o)*l,e[r+1]=Math.sin(o)*l,e[r+2]=Math.sin(i)*a},6:null,8:null,0:null,3:m,11:function(t,n,e,r){g(t,n,e,r),M(e,r,e,r)},2:g,4:function(t,n,e,r){g(t,n,e,r),R(e,r,e,r)}},4:{5:j,7:null,9:null,10:j,1:function(t,n,e,r){j(t,n,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){j(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){j(t,n,e,r),M(e,r,e,r)},2:j,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(t,n,e,r){A(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){A(t,n,e,r),M(e,r,e,r)},2:A,4:function(t,n,e,r){A(t,n,e,r),R(e,r,e,r)}},6:{5:null,7:k,9:null,10:k,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:B,10:B,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:_,6:v,8:b,0:null,3:y,11:M,2:m,4:R},11:{5:w,7:null,9:null,10:w,1:function(t,n,e,r){w(t,n,e,r),_(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){w(t,n,e,r),y(e,r,e,r)},11:m,2:w,4:function(t,n,e,r){w(t,n,e,r),R(e,r,e,r)}}};function h(t,n){return d(t,n)?.projector}function d(t,n){if(null==t||null==n)return null;if(I.source.spatialReference===t&&I.dest.spatialReference===n)return I;const e=p(t,I.source),r=p(n,I.dest);return 0===e&&0===r?(0,c.aI)(t,n)?I.projector=m:I.projector=null:I.projector=f[e][r],I}function p(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,i.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===i.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===i.FY.wkt?n.spatialReferenceId=6:t.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(t)?n.spatialReferenceId=7:(0,c.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])}function g(t,n,e,r){e[r]=O*(t[n]/P),e[r+1]=O*(q-2*Math.atan(Math.exp(-t[n+1]/P))),e[r+2]=t[n+2]}function y(t,n,e,o){!function(t,n,e,o,i){const a=.4999999*Math.PI,l=(0,r.qE)(T*t[n+1],-a,a),s=Math.sin(l);e[o++]=T*t[n]*i.radius,e[o++]=i.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=t[n+2]}(t,n,e,o,a.$O)}function M(t,n,e,r){e[r]=t[n]*X,e[r+1]=t[n+1]*X,e[r+2]=t[n+2]}function w(t,n,e,r){e[r]=t[n]*Y,e[r+1]=t[n+1]*Y,e[r+2]=t[n+2]}function x(t,n,e,r,o){const i=o+t[n+2],a=T*t[n+1],l=T*t[n],s=Math.cos(a)*i;e[r]=Math.cos(l)*s,e[r+1]=Math.sin(l)*s,e[r+2]=Math.sin(a)*i}function b(t,n,e,r){x(t,n,e,r,a.Sw.radius)}function v(t,n,e,r){x(t,n,e,r,a.sH.radius)}function _(t,n,e,r){x(t,n,e,r,a.$O.radius)}function S(t,n,e,o,i){const a=t[n],l=t[n+1],s=t[n+2],u=Math.sqrt(a*a+l*l+s*s),c=(0,r.YN)(s/(0===u?1:u)),f=Math.atan2(l,a);e[o++]=O*f,e[o++]=O*c,e[o]=u-i}function B(t,n,e,r){S(t,n,e,r,a.Sw.radius)}function k(t,n,e,r){S(t,n,e,r,a.sH.radius)}function A(t,n,e,r){S(t,n,e,r,a.$O.radius)}function R(t,n,e,r){!function(t,n,e,r,o){const i=T*t[n],a=T*t[n+1],l=t[n+2],s=Math.sin(a),u=Math.cos(a),c=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(c+l)*u*Math.cos(i),e[r++]=(c+l)*u*Math.sin(i),e[r++]=(c*(1-o.eccentricitySquared)+l)*s}(t,n,e,r,a.$O)}function j(t,n,e,r){const o=u,i=t[n],l=t[n+1],s=t[n+2];let c,f,h,d,p,m,g,y,M,w,x,b,v,_,S,B,k,A,R,j,I;c=Math.abs(s),f=i*i+l*l,h=Math.sqrt(f),d=f+s*s,p=Math.sqrt(d),j=Math.atan2(l,i),m=s*s/d,g=f/d,_=o.a2/p,S=o.a3-o.a4/p,g>.3?(y=c/p*(1+g*(o.a1+_+m*S)/p),R=Math.asin(y),w=y*y,M=Math.sqrt(1-w)):(M=h/p*(1-m*(o.a5-_-g*S)/p),R=Math.acos(M),w=1-M*M,y=Math.sqrt(w)),x=1-a.$O.eccentricitySquared*w,b=a.$O.radius/Math.sqrt(x),v=o.a6*b,_=h-b*M,S=c-v*y,k=M*_+y*S,B=M*S-y*_,A=B/(v/x+k),R+=A,I=k+B*A/2,s<0&&(R=-R),e[r++]=O*j,e[r++]=O*R,e[r]=I}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},T=(0,r.kU)(1),O=(0,r.KJ)(1),q=.5*Math.PI,P=a.$O.radius,X=P*Math.PI/180,Y=180/(P*Math.PI)},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>l});var r=e(44208),o=e(75503),i=e(95696),a=e(72258);class l{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.wq;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,l=(0,a.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return l?!t.components||t.components.some(t=>!t.faces)?{position:l.buffer}:{position:l.buffer,components:t.components.map(t=>t.faces)}:null}(t),l=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return s().fromJSON(l)}createIndexThread(t){const n=s();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=u(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map(t=>new Uint32Array(t))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=u(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function s(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function u(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},38954:(t,n,e)=>{e.d(n,{A:()=>p,B:()=>d,C:()=>c,D:()=>f,E:()=>q,F:()=>E,H:()=>z,a:()=>P,b:()=>y,c:()=>a,d:()=>u,e:()=>S,f:()=>s,g:()=>g,h:()=>B,i:()=>l,j:()=>M,k:()=>x,l:()=>i,m:()=>k,n:()=>_,o:()=>R,q:()=>O,r:()=>v,s:()=>w,t:()=>A,u:()=>b,v:()=>j,w:()=>h,x:()=>N,y:()=>C,z:()=>m});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function l(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,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 u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],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 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 p(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 m(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 g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(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 M(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 w(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 x(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function b(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function v(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function _(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function B(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],l=e[1],s=e[2];return t[0]=o*s-i*l,t[1]=i*a-r*s,t[2]=r*l-o*a,t}function k(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function A(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function R(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function j(t,n,e){const r=e[0],o=e[1],i=e[2],a=e[3],l=n[0],s=n[1],u=n[2],c=o*u-i*s,f=i*l-r*u,h=r*s-o*l,d=o*h-i*f,p=i*c-r*h,m=r*f-o*c,g=2*a;return t[0]=l+c*g+2*d,t[1]=s+f*g+2*p,t[2]=u+h*g+2*m,t}const I=(0,r.vt)(),T=(0,r.vt)();function O(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function q(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=u,X=c,Y=f,E=M,N=w,z=i,C=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,n){_(I,t),_(T,n);const e=S(I,T);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,l=a*a,s=i*i,u=l*a,c=3*i*l,f=3*s*a,h=s*i;return t[0]=n[0]*u+e[0]*c+r[0]*f+o[0]*h,t[1]=n[1]*u+e[1]*c+r[1]*f+o[1]*h,t[2]=n[2]*u+e[2]*c+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:a,cross:B,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],l=e[1],s=e[2],u=o*s-i*l,c=i*a-r*s,f=r*l-o*a,h=Math.sqrt(u*u+c*c+f*f);return t[0]=u/h,t[1]=c/h,t[2]=f/h,t},direction:q,dist:E,distance:M,div:Y,divide:f,dot:S,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],l=n[1],s=n[2],u=(0,o.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-s)<=u*Math.max(1,Math.abs(i),Math.abs(s))},exactEquals:O,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,i){const a=i*i,l=a*(2*i-3)+1,s=a*(i-2)+i,u=a*(i-1),c=a*(3-2*i);return t[0]=n[0]*l+e[0]*s+r[0]*u+o[0]*c,t[1]=n[1]*l+e[1]*s+r[1]*u+o[1]*c,t[2]=n[2]*l+e[2]*s+r[2]*u+o[2]*c,t},inverse:v,len:z,length:i,lerp:k,max:m,min:p,mul:X,multiply:c,negate:b,normalize:_,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[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:g,scaleAndAdd:y,set:l,sign:d,sqrDist:N,sqrLen:C,squaredDistance:w,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:u,transformMat3:R,transformMat4:A,transformQuat:j},Symbol.toStringTag,{value:"Module"}))},40876:(t,n,e)=>{e.d(n,{Eq:()=>d,G1:()=>m,TS:()=>i,Tf:()=>M,V6:()=>o,Vm:()=>p,ay:()=>s,c1:()=>g,c4:()=>a,j5:()=>u,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...i(t)]}function l(t,n,e){e<0&&++e,e>1&&--e;const r=6*e;return r<1?t+(n-t)*r:2*e<1?n:3*e<2?t+(n-t)*(2/3-e)*6:t}function s(t,n,e,r=1){const o=(t%360+360)%360/360,i=e<=.5?e*(n+1):e+n-e*n,a=2*e-i;return[Math.round(255*l(a,i,o+1/3)),Math.round(255*l(a,i,o)),Math.round(255*l(a,i,o-1/3)),r]}function u(t){const n=t.length>5,e=n?8:4,r=(1<<e)-1,o=n?1:17,i=n?9===t.length:5===t.length;let a=Number("0x"+t.slice(1));if(isNaN(a))return null;const l=[0,0,0,1];let s;return i&&(s=a&r,a>>=e,l[3]=o*s/255),s=a&r,a>>=e,l[2]=o*s,s=a&r,a>>=e,l[1]=o*s,s=a&r,a>>=e,l[0]=o*s,l}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.slice(1,2),16),e=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[n+16*n,e+16*e,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),e=n[1];if("rgb"===e&&3===t.length||"rgba"===e&&4===t.length){if(t[0].endsWith("%")){const n=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(n[3]=parseFloat(t[3])),h(n)}return h(t.map(t=>parseFloat(t)))}if("hsl"===e&&3===t.length||"hsla"===e&&4===t.length)return s(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function d(t){let n=o(t)?i(t):null;return n??=f(t),n??=c(t),n}function p(t){const n=d(t);return null!=n?[n[0]/255,n[1]/255,n[2]/255,n[3]]:null}function m(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,n,e){return t=Number(t),isNaN(t)?e:t<n?n:t>e?e:t}const M=2.2},48163:(t,n,e)=>{function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function l(){return i(1,0)}function s(){return i(0,1)}e.d(n,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=a(),c=l(),f=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:a,unitX:l,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=a*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=a*r,l[13]=0,l[2]=0,l[6]=a,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(37539),s=e(21325);function u(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const u=i.source.spatialReferenceId,p=i.dest.spatialReferenceId;if(u===p&&!c(p)&&(0!==u||(0,s.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(p)){const t=l.w5[u][10],r=l.w5[10][p];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),a(f*h[0],f*h[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=c(u);if((3===p||11===p||2===p||5===p)&&(2===u||m||3===u||5===u)){const t=l.w5[u][10],r=l.w5[10][p];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),m?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),d=(0,i.vt)()},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function l(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 s(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}e.d(n,{CN:()=>a,Cb:()=>g,Cw:()=>p,JP:()=>m,Un:()=>d,ci:()=>l,fA:()=>i,o8:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0],d=s(),p=u(),m=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:m,UNIT_Z:g,ZEROS:h,clone:o,create:r,freeze:a,fromArray:l,fromValues:i,ones:s,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},62815:(t,n,e)=>{e.d(n,{N:()=>a});var r=e(83047),o=e(73941),i=e(21325);function a(t,n,e){if(null==n||null==e||e.vcsWkid||(0,i.aI)(n,e)||(0,o.xP)(n)||(0,o.xP)(e))return null;const a=(0,r.G9)(n)/(0,r.G9)(e);if(1===a)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,n){null!=t?.z&&(t.z*=n)}(t,a);case"polyline":case"esriGeometryPolyline":return t=>function(t,n){if(t)for(const e of t.paths)for(const t of e)t.length>2&&(t[2]*=n)}(t,a);case"polygon":case"esriGeometryPolygon":return t=>function(t,n){if(t)for(const e of t.rings)for(const t of e)t.length>2&&(t[2]*=n)}(t,a);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,n){if(t)for(const e of t.points)e.length>2&&(e[2]*=n)}(t,a);case"extent":case"esriGeometryEnvelope":return t=>function(t,n){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=n,t.zmax*=n)}(t,a);default:return null}}},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>u,n:()=>l,t:()=>a});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,a=e[0],l=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],d=e[7],p=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2],M=n[m+3];t[g]=a*e+u*i+h*y,t[g+1]=l*e+c*i+d*y,t[g+2]=s*e+f*i+p*y,t[g+3]=M,m+=o,g+=r}}function l(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,l=i[e],s=i[e+1],u=i[e+2],c=l*l+s*s+u*u;if(c>0){const t=1/Math.sqrt(c);r[n]=t*l,r[n+1]=t*s,r[n+2]=t*u}}}function s(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let l=0,s=0;for(let n=0;n<o;n++)t[s]=e*i[l],t[s+1]=e*i[l+1],t[s+2]=e*i[l+2],t[s+3]=e*i[l+3],l+=a,s+=r}function u(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const a=Math.min(t.length/i,n.count),l=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;const f=1/r.Tf;for(let n=0;n<a;n++)t[c]=o*(e*l[u])**f,t[c+1]=o*(e*l[u+1])**f,t[c+2]=o*(e*l[u+2])**f,t[c+3]=o*e*l[u+3],u+=s,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:l,scale:s,scaleView:function(t,n,e){s(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:a,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/r,l=e[0],s=e[1],u=e[2],c=e[3],f=e[4],h=e[5],d=e[6],p=e[7],m=e[8],g=e[9],y=e[10],M=e[11],w=e[12],x=e[13],b=e[14],v=e[15];let _=0,S=0;for(let e=0;e<a;e++){const e=n[_],o=n[_+1],a=n[_+2],B=n[_+3];t[S]=l*e+f*o+m*a+w*B,t[S+1]=s*e+h*o+g*a+x*B,t[S+2]=u*e+d*o+y*a+b*B,t[S+3]=c*e+p*o+M*a+v*B,_+=i,S+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],l=e[3],s=e[4],u=e[5],c=e[6],f=e[7],h=e[8],d=e[9],p=e[10],m=e[11],g=e[12],y=e[13],M=e[14],w=e[15],x=t.typedBuffer,b=t.typedBufferStride,v=n.typedBuffer,_=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*b,e=t*_,r=v[e],S=v[e+1],B=v[e+2],k=v[e+3];x[n]=o*r+s*S+h*B+g*k,x[n+1]=i*r+u*S+d*B+y*k,x[n+2]=a*r+c*S+p*B+M*k,x[n+3]=l*r+f*S+m*B+w*k}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(98988),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){l[0]=t.x,l[1]=t.y;const o=t.z;return l[2]=o??r??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const l=(0,r.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>b,p5:()=>x,xK:()=>A});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),l=e(29242),s=e(58083),u=e(9093),c=e(38954),f=e(51850),h=e(98764),d=e(48353),p=e(65806),m=e(27615),g=e(21325),y=e(73354),M=e(22141);const w=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,p.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,p.g)(n,i,o))return!1;const{origin:a}=e,l=O;if(!(0,d.l)(r,a,l,o))return!1;const u=(0,s.B8)(O,l);return null!=u&&((0,c.t)(t,i,u),!0)}function b(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=B(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,s.t2)(l.localMatrix,u.zK))&&k(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=v(n,i);if(!(0,d.l)(n,r,R,a))return(0,M.CN)(w(),n,a),null;if(e&&(0,s.lw)(R,R,e.localMatrix),!(0,d.l)(n,o,j,a))return(0,M.CN)(w(),a,n),null;(0,s.B8)(j,j);const l=(0,s.lw)(R,j,R);return S(l,n,i,3),_(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=v(t,i);if(!(0,d.l)(t,r,R,a))return(0,M.CN)(w(),t,a),null;e&&(0,s.lw)(R,R,e.localMatrix),S(R,t,i,1);const l=new Float64Array(n.position.length),u=function(t,n,e,r,o){(0,y.t)(r,t,n);const i=new Float64Array(t.length);return(0,M.$5)(r,o,i,e)?i:((0,M.CN)(w(),o,e),null)}(n.position,R,t,l,a);if(!u)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,M.qs)(o,a,i),(0,M.si)(a,t,n,e,r,a)?a:((0,M.CN)(w(),r,n),null)}(u,t,l,a,n.normal,R);if(n.normal&&!f)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,M.KM)(o,a,i),(0,M.Mv)(a,t,n,e,r,a)?a:((0,M.CN)(w(),r,n),null)}(u,t,l,a,n.tangent,R);if(n.tangent&&!h)return null;if(o){const t=(0,c.u)(T,o);(0,y.a)(u,u,t)}return{position:u,normal:f,tangent:h}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=v(n,i);if(!(0,d.l)(n,o,R,l))return(0,M.CN)(w(),n,l),null;const u=1/B(n,i,2);(0,s.hs)(R,R,[u,u,u]);const c=(0,s.B8)(j,R),{position:f,normal:h,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,y.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=_(t,e.localMatrix);return(0,y.a)(r.position,r.position,n),r}(t,r,e),m=new Float64Array(f.length),g=function(t,n,e,r,o){const i=(0,M.gr)(t,n,r,o);if(!i)return(0,M.CN)(w(),n,o),null;const a=new Float64Array(i.length);return(0,y.t)(a,i,e),a}(f,n,c,m,l);if(!g)return null;const x=(0,a.Ge)(I,c),b=function(t,n,e,r,o,i,a){if(null==t)return null;const l=a??new Float32Array(t.length);return(0,M.X4)(t,n,e,r,o,l)?((0,y.b)(l,l,i),l):((0,M.CN)(w(),e,o),null)}(h,f,n,m,l,x,h!==t.normal?h:void 0);if(!b&&h)return null;const S=function(t,n,e,r,o,i,a){if(null==t)return null;const l=a??new Float32Array(t.length);return(0,M.xA)(t,n,e,r,o,l)?((0,y.b)(l,l,i,4),l):((0,M.CN)(w(),e,o),null)}(p,f,n,m,l,x,p!==t.tangent?p:void 0);return!S&&p?null:{position:g,normal:b,tangent:S}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=B(e,i,3),l=r||!k(a)?(0,s.C)(R,n?.localMatrix??u.zK):null;l&&S(l,e,i,3);const{position:f,normal:h,tangent:d}=l?_(t,l):t,p=i?.allowBufferReuse,m=p?f:new Float64Array(f.length);let g=f;if(r&&(g=(0,y.a)(m,g,r)),o){const t=(0,c.u)(T,o);g=(0,y.a)(m,g,t)}return{position:g!==t.position||p?g:g.slice(),normal:h!==t.normal||p?h:h?.slice(),tangent:d!==t.tangent||p?d:d?.slice()}}(t,t.vertexSpace,n.origin,e)}}function v(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?h.Y0:(0,h.lO)(t)}function _(t,n){const e=new Float64Array(t.position.length);(0,y.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,n),o&&t.tangent&&(0,M.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function S(t,n,e,r){const o=B(n,e,r);k(o)||(0,s.hs)(t,t,[o,o,o])}function B(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let l=A(i,t);r||!i||k(l)||(w().warn("source unit conversion not supported"),l=1);let s=1/A(a,t);return o||!a||k(s)||(w().warn("target unit conversion not supported"),s=1),l*s}function k(t){return(0,o.Io)(t,1)}function A(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const R=(0,u.vt)(),j=(0,u.vt)(),I=(0,l.vt)(),T=(0,f.vt)(),O=(0,u.vt)()},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>l,c:()=>a,d:()=>o,e:()=>h,f:()=>c,l:()=>u,n:()=>d,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],l=e[1],s=e[2],u=e[4],c=e[5],f=e[6],h=e[8],d=e[9],p=e[10],m=e[12],g=e[13],y=e[14];let M=0,w=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],x=n[M+2];t[w]=a*e+u*i+h*x+m,t[w+1]=l*e+c*i+d*x+g,t[w+2]=s*e+f*i+p*x+y,M+=o,w+=r}return t}function a(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],l=e[1],s=e[2],u=e[3],c=e[4],f=e[5],h=e[6],d=e[7],p=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2];t[g]=a*e+u*i+h*y,t[g+1]=l*e+c*i+d*y,t[g+2]=s*e+f*i+p*y,m+=o,g+=r}}function s(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,l=0;for(let s=0;s<i;s++)t[l]=e*n[a],t[l+1]=e*n[a+1],t[l+2]=e*n[a+2],a+=o,l+=r;return t}function u(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,a=i){const l=Math.min(t.length/i,n.length/a);let s=0,u=0;const c=1/r.Tf;for(let r=0;r<l;r++)t[u]=o*(e*n[s])**c,t[u+1]=o*(e*n[s+1])**c,t[u+2]=o*(e*n[s+2])**c,s+=a,u+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,l=0;for(let s=0;s<i;s++)t[l]=n[a]+e[0],t[l+1]=n[a+1]+e[1],t[l+2]=n[a+2]+e[2],a+=o,l+=r;return t}function h(t,n){d(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function d(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],s=n[i+2],u=o*o+l*l+s*s;if(u>0){const n=1/Math.sqrt(u);t[a]=n*o,t[a+1]=n*l,t[a+2]=n*s}i+=r,a+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:d,normalizeView:h,scale:s,scaleView:function(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,l=n.typedBufferStride;let s=0,u=0;for(let t=0;t<r;t++)o[u]=a[s]>>e,o[u+1]=a[s+1]>>e,o[u+2]=a[s+2]>>e,s+=l,u+=i},transformMat3:l,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{EC:()=>B,wq:()=>l});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),a=e(11006);class l{constructor(t=9,n){this._compareMinX=h,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),b.prune(),v.prune(),_.prune(),S.prune()}all(t){s(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(w(t,e))for(b.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],a=e.leaf?r(i):i;w(t,a)&&(e.leaf?n(i):M(t,a)?s(i,n):b.push(i))}e=b.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!w(t,n))return!1;for(b.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(w(t,i)){if(n.leaf||M(t,i))return!0;b.push(o)}}n=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let n,e=this._data,i=null,a=0,l=!1;const s=this._toBBox(t);for(_.clear(),S.clear();e||_.length>0;){if(e||(e=_.pop(),i=_.data[_.length-1],a=S.pop()??0,l=!0),e.leaf&&(n=(0,r.qh)(e.children,(0,o.zI)(t),e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),_.push(e),this._condense(_),this;l||e.leaf||!M(e,s)?i?(a++,e=i.children[a],l=!1):e=null:(_.push(e),S.push(a),a=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new A(t.slice(n,e+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new R([]);a.height=r;const l=Math.ceil(o/i),s=l*Math.ceil(Math.sqrt(i));x(t,n,e,s,this._compareMinX);for(let o=n;o<=e;o+=s){const n=Math.min(o+s-1,e);x(t,o,n,l,this._compareMinY);for(let e=o;e<=n;e+=l){const o=Math.min(e+l-1,n);a.children.push(this._build(t,e,o,r-1))}}return u(a,this._toBBox),a}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);_.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],l=p(a),s=g(t,a)-l;s<o?(o=s,r=l<r?l:r,e=a):s===o&&l<r&&(r=l,e=a)}n=e||n.children[0]}return n}(o,this._data,n,_);for(i.children.push(t),f(i,o);n>=0&&_.data[n].children.length>this._maxEntries;)this._split(_,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)f(n.data[r],t)}(o,_,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const a=e.children.splice(i,e.children.length-i),l=e.leaf?new A(a):new R(a);l.height=e.height,u(e,this._toBBox),u(l,this._toBBox),n?t.data[n-1].children.push(l):this._splitRoot(e,l)}_splitRoot(t,n){this._data=new R([t,n]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let a=n;a<=e-n;a++){const n=c(t,0,a,this._toBBox),l=c(t,a,e,this._toBBox),s=y(n,l),u=p(n)+p(l);s<r?(r=s,i=a,o=u<o?u:o):s===r&&u<o&&(o=u,i=a)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:h,o=t.leaf?this._compareMinY:d;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,n,o),a=c(t,e-n,e,o);let l=m(i)+m(a);for(let r=n;r<e-n;r++){const n=t.children[r];f(i,t.leaf?o(n):n),l+=m(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];f(a,t.leaf?o(n):n),l+=m(a)}return l}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else u(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,n){let e=t;for(v.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.zI)(t));else v.pushArray(e.children);e=v.pop()??null}}function u(t,n){c(t,0,t.children.length,n,t)}function c(t,n,e,r,o){o||(o=new A([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=n;a<e;a++)i=t.children[a],f(o,t.leaf?r(i):i);return o}function f(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function h(t,n){return t.minX-n.minX}function d(t,n){return t.minY-n.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function y(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function M(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function w(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function x(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const l=e+Math.ceil((n-e)/r/2)*r;(0,a.q)(t,l,e,n,o),i.push(e,l,l,n)}}const b=new i.A,v=new i.A,_=new i.A,S=new i.A({deallocator:void 0});class B{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class k extends B{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends k{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends k{constructor(t){super(),this.children=t,this.leaf=!1}}},77690:(t,n,e)=>{e.d(n,{B8:()=>l,Ge:()=>h,I0:()=>f,KC:()=>s,hZ:()=>i,hs:()=>c,lw:()=>u,mg:()=>a,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 i(t,n,e,r,o,i,a,l,s,u){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=l,t[7]=s,t[8]=u,t}function a(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 l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],u=n[7],c=n[8],f=c*a-l*u,h=-c*i+l*s,d=u*i-a*s;let p=e*f+r*h+o*d;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+o*u)*p,t[2]=(l*r-o*a)*p,t[3]=h*p,t[4]=(c*e-o*s)*p,t[5]=(-l*e+o*i)*p,t[6]=d*p,t[7]=(-u*e+r*s)*p,t[8]=(a*e-r*i)*p,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],u=n[7],c=n[8];return t[0]=a*c-l*u,t[1]=o*u-r*c,t[2]=r*l-o*a,t[3]=l*s-i*c,t[4]=e*c-o*s,t[5]=o*i-e*l,t[6]=i*u-a*s,t[7]=r*s-e*u,t[8]=e*a-r*i,t}function u(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=e[0],d=e[1],p=e[2],m=e[3],g=e[4],y=e[5],M=e[6],w=e[7],x=e[8];return t[0]=h*r+d*a+p*u,t[1]=h*o+d*l+p*c,t[2]=h*i+d*s+p*f,t[3]=m*r+g*a+y*u,t[4]=m*o+g*l+y*c,t[5]=m*i+g*s+y*f,t[6]=M*r+w*a+x*u,t[7]=M*o+w*l+x*c,t[8]=M*i+w*s+x*f,t}function c(t,n,e){const r=e[0],o=e[1],i=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]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,l=r+r,s=o+o,u=e*a,c=r*a,f=r*l,h=o*a,d=o*l,p=o*s,m=i*a,g=i*l,y=i*s;return t[0]=1-f-p,t[3]=c-y,t[6]=h+g,t[1]=c+y,t[4]=1-u-p,t[7]=d-m,t[2]=h-g,t[5]=d+m,t[8]=1-u-f,t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],l=n[5],s=n[6],u=n[7],c=n[8],f=n[9],h=n[10],d=n[11],p=n[12],m=n[13],g=n[14],y=n[15],M=e*l-r*a,w=e*s-o*a,x=e*u-i*a,b=r*s-o*l,v=r*u-i*l,_=o*u-i*s,S=c*m-f*p,B=c*g-h*p,k=c*y-d*p,A=f*g-h*m,R=f*y-d*m,j=h*y-d*g;let I=M*j-w*R+x*A+b*k-v*B+_*S;return I?(I=1/I,t[0]=(l*j-s*R+u*A)*I,t[1]=(s*k-a*j-u*B)*I,t[2]=(a*R-l*k+u*S)*I,t[3]=(o*R-r*j-i*A)*I,t[4]=(e*j-o*k+i*B)*I,t[5]=(r*k-e*R-i*S)*I,t[6]=(m*_-g*v+y*b)*I,t[7]=(g*x-p*_-y*w)*I,t[8]=(p*v-m*x+y*M)*I,t):null}function d(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 p=u,m=d;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:s,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:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],l=t[6],s=t[7],u=t[8];return n*(u*i-a*s)+e*(-u*o+a*l)+r*(s*o-i*l)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],h=n[0],d=n[1],p=n[2],m=n[3],g=n[4],y=n[5],M=n[6],w=n[7],x=n[8],b=(0,r.FD)();return Math.abs(e-h)<=b*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=b*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-m)<=b*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(s-y)<=b*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-M)<=b*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-w)<=b*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(f-x)<=b*Math.max(1,Math.abs(f),Math.abs(x))},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:f,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:l,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+a*a+u*u))<=n&&Math.abs(1-(o*o+l*l+c*c))<=n&&Math.abs(1-(i*i+s*s+f*f))<=n},mul:p,multiply:u,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:h,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],l=n[6],s=n[8],u=n[9],c=n[10],f=c*a-l*u,h=-c*i+l*s,d=u*i-a*s,p=e*f+r*h+o*d;if(!p)return null;const m=1/p;return t[0]=f*m,t[1]=(-c*r+o*u)*m,t[2]=(l*r-o*a)*m,t[3]=h*m,t[4]=(c*e-o*s)*m,t[5]=(-l*e+o*i)*m,t[6]=d*m,t[7]=(-u*e+r*s)*m,t[8]=(a*e-r*i)*m,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],i=n[2],a=n[3],l=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*a,t[1]=d*o+h*l,t[2]=d*i+h*s,t[3]=d*a-h*r,t[4]=d*l-h*o,t[5]=d*s-h*i,t[6]=u,t[7]=c,t[8]=f,t},scale:c,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:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],u=n[6],c=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=l,t[5]=s,t[6]=h*r+d*a+u,t[7]=h*o+d*l+c,t[8]=h*i+d*s+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},93223:(t,n,e)=>{e.d(n,{e:()=>i});var r=e(66552),o=e(10107);function i(t,n={}){const e=t instanceof r.J?t:new r.J(t,n),{alwaysWriteDefaults:i,default:a,ignoreUnknown:l=!0,name:s,nonNullable:u,readOnly:c=!1}=n;return(0,o.MZ)({type:l?e.apiValues:String,json:{type:e.jsonValues,default:a,name:s,read:!c&&{reader:e.read},write:{writer:e.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},95696:(t,n,e)=>{e.d(n,{A:()=>c});var r,o=e(31635),i=e(69540),a=e(25482),l=e(10107),s=(e(44208),e(53966),e(87811),e(93223)),u=e(40608);let c=class extends((0,i.O)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,s.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),l=new o.A(r.FY),s=new o.A(r.LJ),u=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===l)e=l;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=l:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=l:t===d&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=l.wkt.toUpperCase(),d=s.wkt.toUpperCase()},98988:(t,n,e)=>{e.r(n),e.d(n,{canProjectWithoutEngine:()=>K,getTransformation:()=>C,getTransformations:()=>F,initializeProjection:()=>$,isEqualBaseGCS:()=>W,isLoaded:()=>T,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>q,load:()=>X,project:()=>Y,projectExtent:()=>it,projectMany:()=>E,projectMultipoint:()=>Q,projectOrLoad:()=>N,projectOrLoadMany:()=>z,projectPoint:()=>J,projectPolygon:()=>rt,projectPolyline:()=>nt,projectWithZConversion:()=>Z,projectWithoutEngine:()=>D,requiresLoad:()=>P,test:()=>L,tryProjectWithZConversion:()=>U,unload:()=>V});var r=e(49186),o=e(74887),i=e(62788),a=e(95488),l=e(51850),s=e(21276),u=e(73941),c=e(5443),f=e(48526),h=e(83290),d=e(86738),p=e(39829),m=e(82799),g=e(16930),y=e(9762),M=e(37539);function w(t,n,e,r,o,i){return x[0]=t,x[1]=n,x[2]=e,(0,y.projectBuffer)(x,r,0,o,i,0)}const x=(0,l.vt)();let b=0;class v{static fromGE(t){const n=new v;return n._wkt=t.wkt,n._wkid=t.wkid,n._isInverse=t.isInverse,n}constructor(t){this.uid=b++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=b++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=b++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=b++}getInverse(){const t=new v;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class _{static cacheKey(t,n){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}static fromGE(t){const n=new _;let e="";for(const r of t.steps){const t=v.fromGE(r);n.steps.push(t),e+=t.uid.toString()+","}return n._cachedProjection={},n._gtlistentry=null,n._chain=e,n}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const n of t.steps)n instanceof v?this.steps.push(n):this.steps.push(new v({wkid:n.wkid,wkt:n.wkt,isInverse:n.isInverse}))}getInverse(){const t=new _;t.steps=[];for(let n=this.steps.length-1;n>=0;n--){const e=this.steps[n];t.steps.push(e.getInverse())}return t}getGTListEntry(){let t="";for(const n of this.steps)t+=n.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,n,e){this._cachedProjection[_.cacheKey(t,n)]=e}getCachedGeTransformation(t,n){let e="";for(const t of this.steps)e+=t.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const r=this._cachedProjection[_.cacheKey(t,n)];return void 0===r?null:r}}var S=e(21325),B=e(62815);let k=null,A=null,R=null,j={};const I=new a.I;function T(){return!!k&&(0,h.i)()}function O(){return!!T()||((0,i.gc)(I),X(),!1)}function q(t,n){return!t||!n||K(t,n)||O()}function P(t,n){return!K(t,n)&&!T()}function X(t){return null==R&&(R=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(t=>t.g),e.e(2731).then(e.bind(e,12731))])),R.then(([,n,{hydratedAdapter:e}])=>{(0,o.Te)(t),A=e,k=n.default,k._enableProjection(h.p),I.notify()})}function Y(t,n,e=null,r=null){return Array.isArray(t)?0===t.length?[]:((0,s.H)(t),E(A,t,t[0].spatialReference,n,e,r)):((0,s.f)(t),E(A,[t],t.spatialReference,n,e,r)[0])}function E(t,n,e,r,o=null,i=null){if(null==e||null==r)return n;if(K(e,r,o))return n.map(t=>D(t,e,r));if(null==o&&(0,u.jA)(e))return n.map(t=>D(t,e,g.A.WGS84)).map(t=>U(t,r));if(null==o&&(0,u.jA)(r))return n.map(t=>U(t,g.A.WGS84)).map(t=>D(t,g.A.WGS84,r));if(null==o){const t=_.cacheKey(e,r);void 0!==j[t]?o=j[t]:(null==(o=C(e,r,void 0))&&(o=new _),j[t]=o)}if(null==k||null==t)throw new G;return null!=i?k._project(t,n,e,r,o,i):k._project(t,n,e,r,o)}function N(t,n){const e=z([t],n);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function z(t,n){if(!T())for(const e of t)if(null!=e&&!(0,S.aI)(e.spatialReference,n)&&(0,S.fn)(e.spatialReference)&&(0,S.fn)(n)&&!K(e.spatialReference,n))return(0,i.gc)(I),{pending:X(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,S.aI)(t.spatialReference,n)?t:(0,S.fn)(t.spatialReference)&&(0,S.fn)(n)?U(t,n):null)}}function C(t,n,e=null){if(null==t||null==n)return null;if(null==k||null==A)throw new G;const r=k._getTransformation(A,t,n,e,e?.spatialReference);return null!==r?_.fromGE(r):null}function F(t,n,e=null){if(null==k||null==A)throw new G;const r=k._getTransformationBySuitability(A,t,n,e,e?.spatialReference);if(null!==r){const t=[];for(const n of r)t.push(_.fromGE(n));return t}return[]}class G extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function V(){k=null,A=null,R=null,j={}}const L={get loadPromise(){return R}};function U(t,n){try{const e=Y(t,n);if(null==e)return null;"xmin"in t&&"xmin"in e&&(e.zmin=t.zmin,e.zmax=t.zmax);const r=(0,B.N)(e.type,t.spatialReference,n);return null!=r&&r(e),e}catch(t){if(!(t instanceof G))throw t;return null}}async function Z(t,n,e){const r=t.spatialReference;return null!=r&&null!=n&&await $(r,n,null,e),U(t,n)}function K(t,n,e){return!e&&(!!(0,S.aI)(t,n)||(0,S.fn)(t)&&(0,S.fn)(n)&&!!(0,M.jd)(t,n))}function W(t,n){if((0,S.aI)(t,n))return!0;if(!(0,S.fn)(t)||!(0,S.fn)(n))return!1;const e=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t),r=(0,S.oT)(n)||(0,S.K8)(n)||(0,S.x1)(n);return e&&r}async function $(t,n,e,r){if(T())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:n,dest:e,geographicTransformation:o}of t)if(n&&e&&!K(n,e,o))return X(r)}else if(t&&n&&!K(t,n,e))return X(r);return(0,o.NO)(r)}function D(t,n,e){return t?"x"in t?H(t,n,new d.A,e,0):"xmin"in t?at(t,n,new c.A,e,0):"rings"in t?ot(t,n,new p.A,e,0):"paths"in t?et(t,n,new m.A,e,0):"points"in t?tt(t,n,new f.A,e,0):null:null}function J(t,n,e=n.spatialReference,r=0){return null!=e&&null!=t.spatialReference&&null!=H(t,t.spatialReference,n,e,r)}function H(t,n,e,r,o){st[0]=t.x,st[1]=t.y;const i=t.z;return st[2]=void 0!==i?i:o,(0,y.projectBuffer)(st,n,0,st,r,0)?(e.x=st[0],e.y=st[1],e.spatialReference=r,void 0!==i||(0,u.xP)(r)?(e.z=st[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===t.m?(e.m=void 0,e.hasM=!1):(e.m=t.m,e.hasM=!0),e):null}function Q(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=tt(t,t.spatialReference,n,e,r)}function tt(t,n,e,r,o){const{points:i,hasZ:a,hasM:l}=t,s=[],c=i.length,f=[];for(const t of i)f.push(t[0],t[1],a?t[2]:o);if(!(0,y.projectBuffer)(f,n,0,f,r,0,c))return null;const h=a||(0,u.xP)(r);for(let t=0;t<c;++t){const n=3*t,e=f[n],r=f[n+1];h&&l?s.push([e,r,f[n+2],i[t][3]]):h?s.push([e,r,f[n+2]]):l?s.push([e,r,i[t][2]]):s.push([e,r])}return e.points=s,e.spatialReference=r,e.hasZ=a,e.hasM=l,e}function nt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=et(t,t.spatialReference,n,e,r)}function et(t,n,e,r,o){const{paths:i,hasZ:a,hasM:l}=t,s=[];if(!lt(i,a??!1,l??!1,n,s,r,o))return null;const c=a||(0,u.xP)(r);return e.paths=s,e.spatialReference=r,e.hasZ=c,e.hasM=l,e}function rt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=ot(t,t.spatialReference,n,e,r)}function ot(t,n,e,r,o){const{rings:i,hasZ:a,hasM:l}=t,s=[];if(!lt(i,a??!1,l??!1,n,s,r,o))return null;const c=a||(0,u.xP)(r);return e.rings=s,e.spatialReference=r,e.hasZ=c,e.hasM=l,e}function it(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=at(t,t.spatialReference,n,e,r)}function at(t,n,e,r,o){const{xmin:i,ymin:a,xmax:l,ymax:s,hasZ:c,hasM:f}=t;if(!w(i,a,c?t.zmin:o,n,st,r))return null;const h=c||(0,u.xP)(r);return e.xmin=st[0],e.ymin=st[1],h&&(e.zmin=st[2]),w(l,s,c?t.zmax:o,n,st,r)?(e.xmax=st[0],e.ymax=st[1],h&&(e.zmax=st[2]),f&&(e.mmin=t.mmin,e.mmax=t.mmax),e.spatialReference=r,e):null}function lt(t,n,e,r,o,i,a=0){const l=new Array;for(const e of t)for(const t of e)l.push(t[0],t[1],n?t[2]:a);if(!(0,y.projectBuffer)(l,r,0,l,i,0))return!1;let s=0;o.length=0;const c=n||(0,u.xP)(i);for(const n of t){const t=new Array;for(const r of n)c&&e?t.push([l[s++],l[s++],l[s++],r[3]]):c?t.push([l[s++],l[s++],l[s++]]):e?(t.push([l[s++],l[s++],r[2]]),s++):(t.push([l[s++],l[s++]]),s++);o.push(t)}return!0}const st=(0,l.vt)()}}]);
|