@arcgis/core 6.0.0-next.6 → 6.0.0-next.7
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/arcade/functions/knowledgegraph.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{f09c9d9a554c33a753b4.js → 02253bdffbd580af22d8.js} +1 -1
- package/assets/esri/core/workers/chunks/{83589144eeeb08f45557.js → 2aeb5cc32284dd3e4d22.js} +1 -1
- package/assets/esri/core/workers/chunks/3ffda5bf0b91700dc308.js +1 -0
- package/assets/esri/core/workers/chunks/{1317ecdfd0cfa683a493.js → 42323093827adffe56d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{f46a0d7cf588ba1b4157.js → 518e8883b6ed613bf451.js} +1 -1
- package/assets/esri/core/workers/chunks/{67ac6b326bf80fc3d33d.js → 53be85d04cd2da4f391d.js} +1 -1
- package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +1 -0
- package/assets/esri/core/workers/chunks/{3ac9dcbb0571a2580236.js → 62c8c9ad09e0166207fd.js} +1 -1
- package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +1 -0
- package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +1 -0
- package/assets/esri/core/workers/chunks/7038ead1fa1674416ab3.js +1 -0
- package/assets/esri/core/workers/chunks/70cc2d79653d66e85b58.js +1 -0
- package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 7165d6f6a5078768bebb.js} +1 -1
- package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
- package/assets/esri/core/workers/chunks/801e9e66edb4961461eb.js +1 -0
- package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +1 -0
- package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +1 -0
- package/assets/esri/core/workers/chunks/{250d3be6d3849d71fed8.js → c29c474c4b1049352d3e.js} +1 -1
- package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +1 -0
- package/assets/esri/core/workers/chunks/ecaac39dde7ec4213264.js +1 -0
- package/assets/esri/core/workers/chunks/fb444954be74c1962ced.js +1 -0
- package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → fd0a5c243f3426f2a0b5.js} +1 -1
- package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +1 -0
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +1 -1
- package/assets/esri/themes/base/widgets/_Features.scss +1 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +5 -9
- package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +2 -4
- package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
- package/chunks/GlobalIllumination.glsl.js +4 -2
- package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
- package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
- package/config.js +1 -1
- package/core/colorUtils.js +1 -1
- package/core/has.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/geometry/projectionUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/graphics/data/FeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/geometryUtils.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/knowledgeGraph/layerUtils.js +1 -1
- package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/package.json +2 -2
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
- package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
- package/views/3d/support/elevationUpdateUtils.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
- package/views/draw/Draw.d.ts +1 -1
- package/views/draw/support/InteractiveHandle.js +1 -1
- package/views/interactive/options/SnappingOptions.d.ts +1 -0
- package/views/interactive/options/TooltipOptions.d.ts +1 -0
- package/views/interactive/options/ViewOptions.d.ts +1 -0
- package/views/interactive/support/Units.d.ts +1 -0
- package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
- package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
- package/views/support/projectionUtils.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/DirectionalPad.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesDrillIn.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
- package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
- package/widgets/PanoramicVideoViewer.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/Search/SearchResultRenderer.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
- package/widgets/Sketch.d.ts +1 -1
- package/widgets/Track/TrackViewModel.d.ts +1 -1
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
- package/widgets/UtilityNetworkTrace/types.d.ts +2 -2
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/ValuePicker.js +1 -1
- package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
- package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
- package/widgets/support/GridControls.js +1 -1
- package/widgets/support/PluginSettingsControls.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/widgets/support/componentsUtils.js +1 -1
- package/assets/esri/core/workers/chunks/02d4f91652a79d2b637e.js +0 -1
- package/assets/esri/core/workers/chunks/107b025dc5b09465a78f.js +0 -1
- package/assets/esri/core/workers/chunks/1f43e06dcfe56229bb0f.js +0 -1
- package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
- package/assets/esri/core/workers/chunks/3880d2c7fb14955d7f93.js +0 -1
- package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +0 -1
- package/assets/esri/core/workers/chunks/5f3ab77a79c408423fde.js +0 -1
- package/assets/esri/core/workers/chunks/65654e481cce9ae40e54.js +0 -1
- package/assets/esri/core/workers/chunks/8b54589f173259c1ba55.js +0 -1
- package/assets/esri/core/workers/chunks/bff767ec5bb4c0d6b324.js +0 -1
- package/assets/esri/core/workers/chunks/c906f984b2b6e7578c06.js +0 -1
- package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
- package/assets/esri/core/workers/chunks/e5943f3a4bbc12c06c4d.js +0 -1
- package/assets/esri/core/workers/chunks/f0aaa646b17ffdbdcefa.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7237],{11006(t,e,i){function n(t,e,i,n,s){r(t,e,i||0,n||t.length-1,s||o)}function r(t,e,i,n,o){for(;n>i;){if(n-i>600){var l=n-i+1,h=e-i+1,a=Math.log(l),u=.5*Math.exp(2*a/3),f=.5*Math.sqrt(a*u*(l-u)/l)*(h-l/2<0?-1:1);r(t,e,Math.max(i,Math.floor(e-h*u/l+f)),Math.min(n,Math.floor(e+(l-h)*u/l+f)),o)}var c=t[e],d=i,y=n;for(s(t,i,e),o(t[n],c)>0&&s(t,i,n);d<y;){for(s(t,d,y),d++,y--;o(t[d],c)<0;)d++;for(;o(t[y],c)>0;)y--}0===o(t[i],c)?s(t,i,y):s(t,++y,n),y<=e&&(i=y+1),e<=y&&(n=y-1)}}function s(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function o(t,e){return t<e?-1:+(t>e)}i.d(e,{q:()=>n})},69540(t,e,i){var n=i(32198),r=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(88620),h=i(64108);const a=Symbol("ClonableMixin"),u=t=>{var e;let i=t,r=class extends i{constructor(){super(...arguments),this[e]=!0}static{e=a}clone(t){let e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let i=e.metadata,n=e.store,r={},h=new Map;for(let e in i){let o=i[e],l=n?.originOf(e),a=o.clonable;if(o.readOnly||!1===a||7!==l&&0!==l&&5!==l&&4!==l)continue;let u=this[e],f=null;if("function"==typeof a)f=a(u,t);else if("reference"===a)f=u;else if(f=(0,s.TU)(u,t),null!=u&&null==f)continue;0===l?h.set(e,f):r[e]=f}let a=new(0,Object.getPrototypeOf(this).constructor)(r);if(h.size){let t=(0,l.oY)(a)?.store;if(t)for(let[e,i]of h)t.set(e,i,0)}return a}};return r=(0,n.Cg)([(0,h.$)("esri.core.Clonable")],r),r},f=u(r.A);i.d(e,["OU",0,u,"Pw",0,f])},67482(t,e,i){function n(t){return null!==r(t)}function r(t){return function(t){let e=s.exec(t);if(!e?.groups)return null;let i=e.groups,n=+i.year,r=i.month-1,o=+i.day,l=+(i.hours??"0"),h=+(i.minutes??"0"),a=+(i.seconds??"0");if(l>23||h>59||a>59)return null;let u,f=i.ms??"0",c=f?+f.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)u=Date.UTC(n,r,o,l,h,a,c);else{let t=+i.offsetHours,e=+i.offsetMinutes;u=6e4*("+"===i.offsetSign?-1:1)*(60*t+e)+Date.UTC(n,r,o,l,h,a,c)}return Number.isNaN(u)?null:u}(t)??function(t){let e=new Date(t),i=e.getTime();return Number.isNaN(i)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?i:null}(t)??function(t){if(!o.test(t))return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}i.d(e,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(t,e,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(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]]}i.d(e,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(t,e,i,n,r,s,o,l,h,a,u,f,c,d,y,m){return[t,e,i,n,r,s,o,l,h,a,u,f,c,d,y,m]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>T,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>b,Io:()=>_,Ln:()=>g,Om:()=>I,Qr:()=>f,Re:()=>a,S8:()=>v,T9:()=>m,WQ:()=>h,Z0:()=>A,_S:()=>d,aI:()=>G,ei:()=>B,fw:()=>F,gL:()=>S,hG:()=>x,hZ:()=>l,hs:()=>p,jk:()=>y,lw:()=>u,m3:()=>M,oW:()=>O,t2:()=>Z,tn:()=>c,ze:()=>w});var n=i(51850),r=i(34304);function s(t){let e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t}function h(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function a(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function f(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function c(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 y(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function m(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function p(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function g(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function _(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(i*i+n*n+r*r)}function x(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return i*i+n*n+r*r}function M(t){let e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e=t){let i=e[0],n=e[1],r=e[2],s=i*i+n*n+r*r;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 I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function T(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2];return t[0]=r*h-s*l,t[1]=s*o-n*h,t[2]=n*l-r*o,t}function P(t,e,i,n){let r=e[0],s=e[1],o=e[2];return t[0]=r+n*(i[0]-r),t[1]=s+n*(i[1]-s),t[2]=o+n*(i[2]-o),t}function A(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=i[0]*n+i[4]*r+i[8]*s+i[12],t[1]=i[1]*n+i[5]*r+i[9]*s+i[13],t[2]=i[2]*n+i[6]*r+i[10]*s+i[14],t}function B(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=n*i[0]+r*i[3]+s*i[6],t[1]=n*i[1]+r*i[4]+s*i[7],t[2]=n*i[2]+r*i[5]+s*i[8],t}function S(t,e,i){return F(t,e,i[0],i[1],i[2],i[3])}function F(t,e,i,n,r,s){let o=e[0],l=e[1],h=e[2],a=n*h-r*l,u=r*o-i*h,f=i*l-n*o,c=n*f-r*u,d=r*a-i*f,y=i*u-n*a,m=2*s;return t[0]=o+a*m+2*c,t[1]=l+u*m+2*d,t[2]=h+f*m+2*y,t}const C=(0,n.vt)(),R=(0,n.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){if(t===e)return!0;let i=t[0],n=t[1],s=t[2],o=e[0],l=e[1],h=e[2],a=(0,r.FD)();return Math.abs(i-o)<=a*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-l)<=a*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-h)<=a*Math.max(1,Math.abs(s),Math.abs(h))}function O(t,e,i){let n=i[0]-e[0],r=i[1]-e[1],s=i[2]-e[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=a,N=u,q=f,Y=_,L=x,X=s,k=M;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:h,angle:function(t,e){v(C,t),v(R,e);let i=I(C,R);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(t,e,i,n,r,s){let o=1-s,l=o*o,h=s*s,a=l*o,u=3*s*l,f=3*h*o,c=h*s;return t[0]=e[0]*a+i[0]*u+n[0]*f+r[0]*c,t[1]=e[1]*a+i[1]*u+n[1]*f+r[1]*c,t[2]=e[2]*a+i[2]*u+n[2]*f+r[2]*c,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,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:o,cross:T,crossAndNormalize:function(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2],a=r*h-s*l,u=s*o-n*h,f=n*l-r*o,c=Math.sqrt(a*a+u*u+f*f);return t[0]=a/c,t[1]=u/c,t[2]=f/c,t},direction:O,dist:Y,distance:_,div:q,divide:f,dot:I,equals:G,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,i,n,r,s){let o=s*s,l=o*(2*s-3)+1,h=o*(s-2)+s,a=o*(s-1),u=o*(3-2*s);return t[0]=e[0]*l+i[0]*h+n[0]*a+r[0]*u,t[1]=e[1]*l+i[1]*h+n[1]*a+r[1]*u,t[2]=e[2]*l+i[2]*h+n[2]*a+r[2]*u,t},inverse:b,len:X,length:s,lerp:P,max:m,min:y,mul:N,multiply:u,negate:w,normalize:v,random:function(t,e=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=s*e,t},rotateX:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[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:p,scaleAndAdd:g,scaleTo:function(t,e){return p(t,t,e/X(t))},set:l,sign:d,sqrDist:L,sqrLen:k,squaredDistance:x,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:a,transformMat3:B,transformMat4:A,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:S,transformQuatValues:F},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,X,"jb",0,j,"lo",0,L,"uE",0,k])},75503(t,e,i){i.d(e,{wq:()=>l});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class l{constructor(t=9,e){this._compareMinX=c,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),b.prune(),v.prune(),I.prune()}all(t){h(this._data,t)}search(t,e){let i=this._data,n=this._toBBox;if(x(t,i))for(w.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;x(t,o)&&(i.leaf?e(s):_(t,o)?h(s,e):w.push(s))}i=w.pop()}}collides(t){let e=this._data,i=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],s=e.leaf?i(r):r;if(x(t,s)){if(e.leaf||_(t,s))return!0;w.push(r)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let e,i=this._data,s=null,o=0,l=!1,h=this._toBBox(t);for(v.clear(),I.clear();i||v.length>0;){if(i||(i=v.pop(),s=v.data[v.length-1],o=I.pop()??0,l=!0),i.leaf&&(e=(0,n.qh)(i.children,(0,r.z)(t),i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;l||i.leaf||!_(i,h)?s?(o++,i=s.children[o],l=!1):i=null:(v.push(i),I.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,i,n){let r=i-e+1,s=this._maxEntries;if(r<=s){let n=new A(t.slice(e,i+1));return a(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new B([]);o.height=n;let l=Math.ceil(r/s),h=l*Math.ceil(Math.sqrt(s));M(t,e,i,h,this._compareMinX);for(let r=e;r<=i;r+=h){let e=Math.min(r+h-1,i);M(t,r,e,l,this._compareMinY);for(let i=r;i<=e;i+=l){let r=Math.min(i+l-1,e);o.children.push(this._build(t,i,r,n-1))}}return a(o,this._toBBox),o}_insert(t,e,i){let n=this._toBBox,r=i?t:n(t);v.clear();let s=function(t,e,i,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=e.children.length;s<o;s++){let o=e.children[s],l=y(o),h=p(t,o)-l;h<r?(r=h,n=l<n?l:n,i=o):h===r&&l<n&&(n=l,i=o)}e=i||e.children[0]}return e}(r,this._data,e,v);for(s.children.push(t),f(s,r);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,i){for(let n=i;n>=0;n--)f(e.data[n],t)}(r,v,e)}_split(t,e){let i=t.data[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),l=i.leaf?new A(o):new B(o);l.height=i.height,a(i,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(i,l)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let n,r,s;n=r=1/0;for(let o=e;o<=i-e;o++){let e=u(t,0,o,this._toBBox),l=u(t,o,i,this._toBBox),h=g(e,l),a=y(e)+y(l);h<n?(n=h,s=o,r=a<r?a:r):h===n&&a<r&&(r=a,s=o)}return s}_chooseSplitAxis(t,e,i){let n=t.leaf?this._compareMinX:c,r=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);let r=this._toBBox,s=u(t,0,e,r),o=u(t,i-e,i,r),l=m(s)+m(o);for(let n=e;n<i-e;n++){let e=t.children[n];f(s,t.leaf?r(e):e),l+=m(s)}for(let n=i-e-1;n>=e;n--){let e=t.children[n];f(o,t.leaf?r(e):e),l+=m(o)}return l}_condense(t){for(let e=t.length-1;e>=0;e--){let i=t.data[e];if(0===i.children.length)if(e>0){let r=t.data[e-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else a(i,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){let i=t;for(b.clear();i;){if(!0===i.leaf)for(let t of i.children)e((0,r.z)(t));else b.pushArray(i.children);i=b.pop()??null}}function a(t,e){u(t,0,t.children.length,e,t)}function u(t,e,i,n,r){r||=new A([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=e;o<i;o++)s=t.children[o],f(r,t.leaf?n(s):s);return r}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function y(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function g(t,e){let i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function _(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,i,n,r){let s=[e,i];for(;s.length;){let e=s.pop(),i=s.pop();if(e-i<=n)continue;let l=i+Math.ceil((e-i)/n/2)*n;(0,o.q)(t,l,i,e,r),s.push(i,l,l,e)}}const w=new s.A,b=new s.A,v=new s.A,I=new s.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,i){i.d(e,{Qf:()=>l,Qh:()=>s,lM:()=>r});var n=i(34275);function r(t){if(!t)return 0;let e=a;for(let i in t)t.hasOwnProperty(i)&&(e+=o(t[i],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=u;for(let n=0;n<e;n++)i+=o(t[n]);return i}(t);let e=a;for(let i in t)t.hasOwnProperty(i)&&(e+=o(t[i]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?s(t):a;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return u+t.length*e}const a=32,u=16,f=145},48526(t,e,i){i.d(e,{A:()=>p});var n,r=i(32198),s=i(4576),o=i(4718),l=i(91429),h=i(5443),a=i(91075),u=i(86738),f=i(16930),c=i(90634),d=i(47610),y=i(56993),m=i(43937);let p=n=class extends a.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=f.A.WGS84,{...t,hasM:i,hasZ:n,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,i=t.spatialReference;return!(null!=e!=(null!=i)||null!=e&&null!=i&&!e.equals(i))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,y.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=e[2],n=3),this.hasM&&(i.m=e[n]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,y.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],p.prototype,"points",void 0),(0,r.Cg)([(0,m.K)("points")],p.prototype,"writePoints",null),p=n=(0,r.Cg)([(0,l.$K)("esri.geometry.Multipoint")],p),p.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>y});var n,r=i(32198),s=i(4718),o=i(91429),l=i(5443),h=i(91075),a=i(86738),u=i(16930),f=i(90634),c=i(56993),d=i(43937);let y=n=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:n,paths:e,spatialReference:r}}(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(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new l.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let n=[];for(let e=0,i=t.length;e<i;e++)n[e]=t[e].toArray();e[i]=n}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new n;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;let i=this.paths[t][e],n=this.hasZ,r=this.hasM;return n&&!r?new a.A(i[0],i[1],i[2],void 0,this.spatialReference):r&&!n?new a.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&r?new a.A(i[0],i[1],i[2],i[3],this.spatialReference):new a.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],i=this.spatialReference,n=e.map(t=>new a.A(t,i));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;let i=new a.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths")),this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let n=this.paths[t];if(i&&(e<0||e>n.length)||!i&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],y.prototype,"curvePaths",void 0),(0,r.Cg)([(0,d.K)("curvePaths")],y.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],y.prototype,"paths",void 0),(0,r.Cg)([(0,d.K)("paths")],y.prototype,"writePaths",null),y=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],y),y.prototype.toJSON.isDefaultToJSON=!0},4197(t,e,i){i.d(e,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,yH:()=>h});var n=i(34275),r=i(9093);function s(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function l(t,e,i){return Array.isArray(t)?t.slice(e,e+i):t.subarray(e,e+i)}function h(t,e){if(0===e.length)return o(t);if(0===t.length)return o(e);let i=s(t.length+e.length);for(let e=0;e<t.length;++e)i[e]=t[e];for(let n=0;n<e.length;++n)i[t.length+n]=e[n];return i}function a(t){return[...t]}function u(t){let e=(0,r.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},6774(t,e,i){i.d(e,{O3:()=>s,Ox:()=>o,bR:()=>n});class n{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new n(t[0],t[1])}clone(){return new n(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){let t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){let i=this.x,n=this.y;return this.x=i*t-n*e,this.y=i*e+n*t,this}rotateReverse(t,e){let i=this.x,n=this.y;return this.x=i*t+n*e,this.y=-i*e+n*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){let i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}static add(t,e){return new n(t.x+e.x,t.y+e.y)}static sub(t,e){return new n(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,n=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=r,this._tileSize=512*n,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;let i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new n(t,e),this._firstPt=new n(t,e),this._dist=0}lineTo(t,e){let i,s,o,l,h,a,u,f,c=this._isIn(t,e),d=new n(t,e),y=n.distance(this._prevPt,d);if(c)this._prevIsIn?this._lineTo(t,e,!0):(i=this._prevPt,s=d,o=this._intersect(s,i),this._start=this._dist+y*(1-this._r),this._lineTo(o.x,o.y,!0),this._lineTo(s.x,s.y,!0));else if(this._prevIsIn)s=this._prevPt,i=d,o=this._intersect(s,i),this._lineTo(o.x,o.y,!0),this._lineTo(i.x,i.y,!1);else{let t=this._prevPt,e=d;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{let i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(l=(this._xmin-t.x)/(e.x-t.x),f=t.y+l*(e.y-t.y),f<=this._ymin?a=!1:f>=this._ymax?a=!0:i.push(new r(l,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(l=(this._xmax-t.x)/(e.x-t.x),f=t.y+l*(e.y-t.y),f<=this._ymin?a=!1:f>=this._ymax?a=!0:i.push(new r(l,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(l=(this._ymin-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(l=(this._ymax-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymax))),0===i.length)h?a?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):a?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+y*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+y*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=y,this._prevIsIn=c,this._prevPt=d}close(){if(this._line.length>2){let t=this._firstPt,e=this._prevPt;(t.x!==e.x||t.y!==e.y)&&this.lineTo(t.x,t.y);let i=this._line,n=i.length;for(;n>=4&&(i[0].x===i[1].x&&i[0].x===i[n-2].x||i[0].y===i[1].y&&i[0].y===i[n-2].y);)i.pop(),i[0].x=i[n-2].x,i[0].y=i[n-2].y,--n}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&l.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,e=t.length;if(0===e)return null;let i=[];for(let n=0;n<e;n++)i.push({line:t[n],start:this._starts[n]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,s;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,s=(r-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),r=t.y+s*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;let n=(i-t.x)/(e.x-t.x),o=(r-t.y)/(e.y-t.y);n<o?(s=n,r=t.y+n*(e.y-t.y)):(s=o,i=t.x+o*(e.x-t.x))}return this._r=s,new n(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3===this._type?(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)),this._isH=!1,this._isV=!1):i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)))}_lineTo(t,e,i){let r,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new n(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];let i=r.x===t,o=r.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(r.x=t,r.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new n(t,e)),this._isH=i,this._isV=o)}else this._line.push(new n(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];let i=this._ratio;this._line.push(new n(t*i,e*i))}lineTo(t,e){let i=this._ratio;this._line.push(new n(t*i,e*i))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class l{static simplify(t,e,i){if(!i)return;let n=-e,r=t+e,s=-e,o=t+e,h=[],a=[],u=i.length;for(let t=0;t<u;++t){let e=i[t];if(!e||e.length<2)continue;let l,u=e[0],f=e.length;for(let i=1;i<f;++i)l=e[i],u.x===l.x&&(u.x<=n&&(u.y>l.y?(h.push(t),h.push(i),h.push(0),h.push(-1)):(a.push(t),a.push(i),a.push(0),a.push(-1))),u.x>=r&&(u.y<l.y?(h.push(t),h.push(i),h.push(1),h.push(-1)):(a.push(t),a.push(i),a.push(1),a.push(-1)))),u.y===l.y&&(u.y<=s&&(u.x<l.x?(h.push(t),h.push(i),h.push(2),h.push(-1)):(a.push(t),a.push(i),a.push(2),a.push(-1))),u.y>=o&&(u.x>l.x?(h.push(t),h.push(i),h.push(3),h.push(-1)):(a.push(t),a.push(i),a.push(3),a.push(-1)))),u=l}if(0===h.length||0===a.length)return;l.fillParent(i,a,h),l.fillParent(i,h,a);let f=[];l.calcDeltas(f,a,h),l.calcDeltas(f,h,a),l.addDeltas(f,i)}static fillParent(t,e,i){let n=i.length,r=e.length;for(let s=0;s<r;s+=4){let r=e[s],o=e[s+1],l=e[s+2],a=t[r][o-1],u=t[r][o],f=8092,c=-1;for(let e=0;e<n;e+=4){if(i[e+2]!==l)continue;let n=i[e],r=i[e+1],s=t[n][r-1],o=t[n][r];switch(l){case 0:case 1:if(h(a.y,s.y,o.y)&&h(u.y,s.y,o.y)){let t=Math.abs(o.y-s.y);t<f&&(f=t,c=e)}break;case 2:case 3:if(h(a.x,s.x,o.x)&&h(u.x,s.x,o.x)){let t=Math.abs(o.x-s.x);t<f&&(f=t,c=e)}}}e[s+3]=c}}static calcDeltas(t,e,i){let n=e.length;for(let r=0;r<n;r+=4){let n=l.calcDelta(r,e,i,[]);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,n){let r=e[t+3];if(-1===r)return 0;let s=n.length;return s>1&&n[s-2]===r?0:(n.push(r),l.calcDelta(r,i,e,n)+1)}static addDeltas(t,e){let i=t.length,n=0;for(let e=0;e<i;e+=4){let i=t[e+3];i>n&&(n=i)}for(let r=0;r<i;r+=4){let i=e[t[r]],s=t[r+1],o=n-t[r+3];switch(t[r+2]){case 0:i[s-1].x-=o,i[s].x-=o,1===s&&(i[i.length-1].x-=o),s===i.length-1&&(i[0].x-=o);break;case 1:i[s-1].x+=o,i[s].x+=o,1===s&&(i[i.length-1].x+=o),s===i.length-1&&(i[0].x+=o);break;case 2:i[s-1].y-=o,i[s].y-=o,1===s&&(i[i.length-1].y-=o),s===i.length-1&&(i[0].y-=o);break;case 3:i[s-1].y+=o,i[s].y+=o,1===s&&(i[i.length-1].y+=o),s===i.length-1&&(i[0].y+=o)}}}}const h=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},70328(t,e,i){i.d(e,{BI:()=>A,C:()=>o,DC:()=>c,Ej:()=>x,Ie:()=>T,Jt:()=>P,Lu:()=>w,Ne:()=>b,RF:()=>f,TF:()=>g,VL:()=>y,aI:()=>S,fA:()=>l,gE:()=>a,gX:()=>_,hZ:()=>I,iT:()=>d,is:()=>B,pg:()=>M,uJ:()=>p,vI:()=>v,vY:()=>h,vt:()=>s,w1:()=>u,yr:()=>m}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function l(t,e,i,n,r,o,l=s()){return l[0]=t,l[1]=e,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function h(t,e=s()){return function(t,e,i,n=s()){return I(n,F),function(t,e,i=0,n=e.length/3){let r=t[0],s=t[1],o=t[2],l=t[3],h=t[4],a=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),o=Math.min(o,e[i+3*t+2]),l=Math.max(l,e[i+3*t]),h=Math.max(h,e[i+3*t+1]),a=Math.max(a,e[i+3*t+2]);t[0]=r,t[1]=s,t[2]=o,t[3]=l,t[4]=h,t[5]=a}(n,t,e,i),n}(t,0,t.length/3,e)}function a(t,e=(0,r.jh)(24)){let[i,n,s,o,l,h]=t;return e[0]=i,e[1]=n,e[2]=s,e[3]=i,e[4]=n,e[5]=h,e[6]=i,e[7]=l,e[8]=s,e[9]=i,e[10]=l,e[11]=h,e[12]=o,e[13]=n,e[14]=s,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=l,e[20]=s,e[21]=o,e[22]=l,e[23]=h,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function f(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,i,n]){!function(t,e,i,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],n)}(t,e,i,n)}function y(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=y(t),i=p(t),n=m(t);return e*e+i*i+n*n}function _(t,e=[0,0,0]){return e[0]=t[0]+y(t)/2,e[1]=t[1]+m(t)/2,e[2]=t[2]+p(t)/2,e}function x(t,e=[0,0,0]){return e[0]=y(t),e[1]=m(t),e[2]=p(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function w(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function b(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function v(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function I(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function T(t){return t?I(t,F):s(F)}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function A(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=n,t[4]=r,t[5]=1/0,t}function B(t){return 6===t.length}function S(t,e,i){if(null==t||null==e)return t===e;if(!B(t)||!B(e))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const F=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),i.d(e,["qv",0,F,"v_",0,C])},60408(t,e,i){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function l(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function a(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":l(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":r(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}i.d(e,{$B:()=>a,Bi:()=>l,Pv:()=>u,Rg:()=>o,U9:()=>r,W0:()=>f,ZC:()=>n,fT:()=>s,uW:()=>h})},65864(t,e,i){i.d(e,{rS:()=>u,xD:()=>c});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),l=i(39829),h=i(82799),a=i(60408);function u(t){return null==t?null:t instanceof r.A?t:(0,a.fT)(t)?o.A.fromJSON(t):(0,a.Rg)(t)?h.A.fromJSON(t):(0,a.Bi)(t)?l.A.fromJSON(t):(0,a.U9)(t)?s.A.fromJSON(t):(0,a.ZC)(t)?n.A.fromJSON(t):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function c(t){return t&&f[t]||null}},43334(t,e,i){i.d(e,{N3:()=>l,Om:()=>o});var n=i(69397),r=i(27647),s=i(92722);class o{constructor(t,e,i,n,r=0,s=null,o=null){this.geometry=t,this.attributes=e,this.centroid=i,this.objectId=n,this.displayId=r,this.distance=s,this.vertexCount=o}static fromJSON(t){let e=t.geometry?s.A.fromJSON(t.geometry):null,i=t.centroid?s.A.fromJSON(t.centroid):null,n=t.objectId;return new o(e,t.attributes,i,n,void 0,t.distance,t.vertexCount)}weakClone(){return new o(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new o(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(t){return this.centroid??=(0,r.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,n.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function l(t){return!!t.geometry?.coords?.length}},58512(t,e,i){i.d(e,{A:()=>n});class n{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){let t=new n;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},92722(t,e,i){i.d(e,{A:()=>r});var n=i(69397);class r{constructor(t=[],e=[],i=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:n}){return new r(t,e,i||!1,n||!1)}static fromRect([t,e,i,n]){let s=i-t,o=n-e;return new r([5],[t,e,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let i of this.lengths){if(i<3)continue;let{stride:n}=this,r=this.coords[n*e],s=this.coords[n*e+1];for(let o=1;o<i;o+=1){let i=n*(e+o),l=this.coords[i],h=this.coords[i+1];t+=-.5*(l-r)*(h+s),r=l,s=h}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:i}=this;for(let n of this.lengths){for(let r=0;r<n;r++){let n=i*(e+r);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){let t=this.clone(),{coords:e,lengths:i}=t,n=0,{stride:r}=this;for(let t of i){for(let i=1;i<t;i++){let t=r*(n+i);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}n+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:i,size:n}=this,s=this.coords.slice(0,n*i);return t?(t.set(s),new r(e,t,this.hasZ,this.hasM)):new r(e,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let i=Array(e*t);for(let e=0,n=0;e<i.length;e+=t)i[n++]=this.coords[e],i[n++]=this.coords[e+1];return new r(this.lengths,i,!1,!1)}}},27647(t,e,i){i.d(e,{Q:()=>s});var n=i(92722);function r(t,e){return t?e?4:3:e?3:2}function s(t){if(null==t||!t?.lengths.length)return null;let{lengths:e,coords:i,stride:r,hasZ:s,hasM:h}=t,a=new n.A([],[],s,!1),u=a.coords,f=[],c=s?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0],d=0;for(let t of e){let e=o(c,i,d,t,s,h);e&&f.push(e),d+=t*r}if(f.sort((t,e)=>{let i=t[2]-e[2];return 0===i&&s&&(i=t[4]-e[4]),i}),f.length){let t=6*f[0][2];u[0]=f[0][0]/t,u[1]=f[0][1]/t,s&&(t=6*f[0][4],u[2]=0===t?0:f[0][3]/t),(u[0]<c[0]||u[0]>c[1]||u[1]<c[2]||u[1]>c[3]||s&&(u[2]<c[4]||u[2]>c[5]))&&(u.length=0)}if(!u.length){let n=t.lengths[0]?l(i,0,e[0],s,h):null;if(!n)return null;u[0]=n[0],u[1]=n[1],s&&(u[2]=n[2]??0)}return a}function o(t,e,i,n,s,o){let l=r(s,o),h=i,a=i+l,u=0,f=0,c=0,d=0,y=0;for(let i=0,r=n-1;i<r;i++,h+=l,a+=l){let i=e[h],n=e[h+1],r=e[h+2],o=e[a],l=e[a+1],m=e[a+2],p=i*l-o*n;d+=p,u+=(i+o)*p,f+=(n+l)*p,s&&(p=i*m-o*r,c+=(r+m)*p,y+=p),i<t[0]&&(t[0]=i),i>t[1]&&(t[1]=i),n<t[2]&&(t[2]=n),n>t[3]&&(t[3]=n),s&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(d>0&&(d*=-1),y>0&&(y*=-1),!d)return null;let m=[u,f,.5*d];return s&&(m[3]=c,m[4]=.5*y),m}function l(t,e,i,n,s){let o=r(n,s),l=e,c=e+o,d=0,y=0,m=0,p=0;for(let e=0,r=i-1;e<r;e++,l+=o,c+=o){let e=t[l],i=t[l+1],r=t[l+2],s=t[c],o=t[c+1],g=t[c+2],_=n?a(e,i,r,s,o,g):h(e,i,s,o);if(_)if(d+=_,n){let t=f(e,i,r,s,o,g);y+=_*t[0],m+=_*t[1],p+=_*t[2]}else{let t=u(e,i,s,o);y+=_*t[0],m+=_*t[1]}}return d>0?n?[y/d,m/d,p/d]:[y/d,m/d]:i>0?n?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function h(t,e,i,n){let r=i-t,s=n-e;return Math.sqrt(r*r+s*s)}function a(t,e,i,n,r,s){let o=n-t,l=r-e,h=s-i;return Math.sqrt(o*o+l*l+h*h)}function u(t,e,i,n){return[t+.5*(i-t),e+.5*(n-e)]}function f(t,e,i,n,r,s){return[t+.5*(n-t),e+.5*(r-e),i+.5*(s-i)]}},6518(t,e,i){i.d(e,{F:()=>l});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class l{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let t=Array(this._idByBounds.size),e=0;this._idByBounds.forEach((i,n)=>{t[e++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let t=(0,s.Ie)();for(let e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){let e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){let e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,i){i.d(e,{A:()=>d});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),l=i(70328),h=i(19419),a=i(90708),u=i(6518),f=i(37730);const c=(0,l.vt)();class d{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=f.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;let[e,i,n,r]=this.fullBounds;return{xmin:e,ymin:i,xmax:n,ymax:r,spatialReference:t}}add(t){this._add(t),this._emitChanged()}addMany(t){for(let e of t)this._add(e);this._emitChanged()}upsertMany(t){let e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){let e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(let e of t){let t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(let i of t){let t=this._boundsStore.get(i.objectId);t&&e((0,l.Jt)(c,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;let e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t}));let i,n=this._featuresById.get(e);n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),t.geometry?.coords?.length?(i=(0,a.jQ)(i??(0,h.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0):(this._boundsStore.set(e,null),this._featuresById.set(e,t))}_upsert(t){let e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;let i=this._featuresById.get(e);if(!i)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=t;for(let t in s)i.attributes[t]=s[t];return n&&(i.geometry=n,this._boundsStore.set(e,(0,a.jQ)((0,h.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);let e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},54339(t,e,i){function n(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{let i=[];for(let n of e.fieldNames)i.push(t.attributes[n]??null);return JSON.stringify(i)}}}function r(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];let i=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(i)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}i.d(e,{W:()=>n,r:()=>r})},37730(t,e,i){var n=i(43334);const r={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,i)=>new n.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};i.d(e,["T",0,r])},31464(t,e,i){i.d(e,{Cv:()=>d,Nk:()=>c,lK:()=>m});var n=i(4576),r=i(99917),s=i(60408),o=i(21325),l=i(28735);const h=[0,0];function a(t,e){let i=(0,o.K8)(t)?l.je:l.tD;if((0,s.fT)(e)){let t={x:0,y:0};return[t.x,t.y]=i(e.x,e.y,h),null!=e.z&&(t.z=e.z),null!=e.m&&(t.m=e.m),t}if((0,s.ZC)(e)){let t={xmin:0,ymin:0,xmax:0,ymax:0};return[t.xmin,t.ymin]=i(e.xmin,e.ymin,h),[t.xmax,t.ymax]=i(e.xmax,e.ymax,h),e.hasZ&&(t.zmin=e.zmin,t.zmax=e.zmax,t.hasZ=!0),e.hasM&&(t.mmin=e.mmin,t.mmax=e.mmax,t.hasM=!0),t}if((0,s.Bi)(e))return{rings:u(e.rings,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.Rg)(e))return{paths:u(e.paths,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.U9)(e))return{points:f(e.points,i),hasM:e.hasM,hasZ:e.hasZ};throw Error()}function u(t,e){let i=[];for(let n of t)i.push(f(n,e));return i}function f(t,e){let i=[];for(let n of t){let t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function c(t,e){if(!t||!e)return;let i=Array.isArray(t)?t.map(t=>null==t.geometry?null:t.geometry.spatialReference).filter(n.Ru):[t];await(0,r.initializeProjection)(i.map(t=>({source:t,dest:e})))}function d(t,e,i,n){if(!t)return null;if(i||(i=e,e=t.spatialReference),!(0,o.fn)(e)||!(0,o.fn)(i)||(0,o.aI)(e,i))return t;if((0,l.y7)(e,i)){let e=a(i,t);return e.spatialReference=i,e}let[s]=(0,r.projectMany)([t],e,i,n);return s}const y=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,o.aI)(e,i))return t;let r={geometries:t,inSpatialReference:e,outSpatialReference:i,options:n,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;let t=this._jobs.shift();if(!t)return;let e,{geometries:i,inSpatialReference:n,outSpatialReference:s,resolve:o,options:h}=t,u=i.filter(t=>null!=t);e=(0,l.y7)(n,s)&&null==h?.extendedParams?u.map(t=>a(s,t)):(0,r.projectMany)(u,n,s,h);let f=0,c=i.map(t=>null==t?null:e[f++]);o.resolve(c),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(t,e,i,n){return y.push(t,e,i,n)}},90708(t,e,i){i.d(e,{Ap:()=>A,B2:()=>p,DF:()=>b,Di:()=>Z,E2:()=>R,IE:()=>m,Nl:()=>X,PR:()=>T,Rk:()=>U,Ux:()=>O,Ye:()=>S,ZF:()=>q,aQ:()=>V,jH:()=>L,jQ:()=>D,kz:()=>k,oN:()=>G,q3:()=>Y,qN:()=>v,zv:()=>j});var n=i(49186),r=i(53966),s=i(97768),o=i(70328),l=i(19419),h=i(60408),a=i(43334),u=i(58512),f=i(92722),c=i(54339);const d=()=>r.A.getLogger("esri.layers.graphics.featureConversionUtils"),y={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function m({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function p({scale:t,translate:e},i){return Math.round((e[1]-i)/t[1])}function g({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function _({scale:t,translate:e},i){return Math.round((i-e[1])/t[1])}function x({scale:t,translate:e},i,n){return i*t[n]+e[n]}function M(t,e,i){return e&&(t.hasZ=!0),i&&(t.hasM=!0),t}function w(t,e,i,n){if(e&&n&&t!==i)return(e,i,n,r)=>{n[r++]=e[i++],n[r++]=e[i++],t?i++:n[r++]=0,n[r++]=e[i++]??0};let r=+!!i+2+ +!!n,s=r-((!t&&i?1:0)+(!e&&n?1:0));return(t,e,i,n)=>{for(let o=0;o<r;++o)i[n++]=o<s?t[e++]??0:0}}function b(t,e,i){if(!t)return null;let{coords:n,hasZ:r,hasM:s}=t,[o,l]=n,h=r?n[2]:0,a=s?n[+!!r+2]:0;return{x:o,y:l,z:e?h:void 0,m:i?a:void 0}}function v(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{x:n,y:r,z:s,m:o}=t,l=[n,r];return e&&l.push(s??0),i&&l.push(o??0),new f.A([],l,e,i)}function I(t,e,i){if(null==t)return null;let{coords:n,stride:r,hasZ:s,hasM:o}=t,l=w(s,o,e,i),h=[];for(let t=0;t<n.length;t+=r){let e=[];l(n,t,e,0),h.push(e)}return M({points:h},e,i)}function T(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{points:n,hasZ:r,hasM:s}=t,o=new f.A([n.length],[],e,i),{coords:l,stride:a}=o,u=0,c=w(r??!1,s??!1,e,i);for(let t of n)c(t,0,l,u),u+=a;return o}function P(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=w(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({paths:u},e,i)}function A(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{paths:n,hasZ:r,hasM:s}=t,o=w(r??!1,s??!1,e,i),l=new f.A([],[],e,i),{lengths:a,coords:u,stride:c}=l,d=0;for(let t of n){for(let e of t)o(e,0,u,d),d+=c;a.push(t.length)}return l}function B(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=w(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({rings:u},e,i)}function S(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{rings:n,hasZ:r,hasM:s}=t,o=new f.A([],[],e,i),{lengths:l,coords:a,stride:u}=o,c=0,d=w(r??!1,s??!1,e,i);for(let t of n){for(let e of t)d(e,0,a,c),c+=u;l.push(t.length)}return o}const F=[],C=[];function R(t,e,i,n,r){F[0]=t;let[s]=Z(C,F,e,i,n,r);return W(F),W(C),s}function Z(t,e,i,r,s,o){if(W(t),!i){for(let i of e){let e=(0,c.W)(i,o);t.push(new a.Om(null,i.attributes,null,e,void 0,i.distance,i.vertexCount))}return t}switch(i){case"esriGeometryPoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?v(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryMultipoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o}=s,l=(0,h.Pv)(e),u=(0,h.W0)(e);t.push(new a.Om(e?T(e,i&&l,n&&u):null,o,null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolyline":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?A(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),f=(0,h.W0)(e);t.push(new a.Om(e?S(e,i&&u,n&&f):null,o,l?v(l,!1,!1):null,(0,c.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`)),W(t)}return t}function G(t,e,i,n){C[0]=t,N(F,C,e,i,n);let r=F[0];return W(F),W(C),r}function O(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){return null==t?null:(0,h.fT)(t)?v(t,e,i):(0,h.Bi)(t)?S(t,e,i):(0,h.Rg)(t)?A(t,e,i):(0,h.U9)(t)?T(t,e,i):void d().error("convertFromGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function j(t,e,i,r){if(null==t)return null;let s="coords"in t?t:t.geometry;if(null==s)return null;switch(e){case"esriGeometryPoint":return b(s,i,r);case"esriGeometryMultipoint":return I(s,i,r);case"esriGeometryPolyline":return P(s,i,r);case"esriGeometryPolygon":return B(s,i,r);default:return d().error("convertToGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function N(t,e,i,r,s){if(W(t),null==i)return function(t,e){for(let i of e)t.push({attributes:i.attributes});return t}(t,e);switch(i){case"esriGeometryPoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({attributes:s,geometry:b(r,i,n)});return t}(t,e,r,s);case"esriGeometryMultipoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&I(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolyline":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&P(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolygon":return function(t,e,i,n){for(let{geometry:r,attributes:s,centroid:o}of e){let e=B(r,i,n),l=b(o,!1,!1);t.push(o?{geometry:e,attributes:s,centroid:l}:{geometry:e,attributes:s})}return t}(t,e,r,s);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`))}return t}function q(t){let{spatialReference:e,transform:i,fields:n,hasM:r,hasZ:s,features:o,geometryType:l,exceededTransferLimit:h,queryGeometry:a,queryGeometryType:u}=t,f={features:N([],o,l,s,r),fields:n,geometryType:l,spatialReference:e,queryGeometry:j(a,u,s,r)};return i&&(f.transform=i),h&&(f.exceededTransferLimit=h),r&&(f.hasM=r),s&&(f.hasZ=s),f}function Y(t,e){let i=new u.A,{hasM:n,hasZ:r,features:s,spatialReference:o,geometryType:l,exceededTransferLimit:h,transform:a,fields:f,globalIdFieldName:c}=t;return f&&(i.fields=f),i.geometryType=l??null,i.spatialReference=o??null,s&&Z(i.features,s,l,r,n,e),h&&(i.exceededTransferLimit=h),n&&(i.hasM=n),r&&(i.hasZ=r),a&&(i.transform=a),c&&(i.globalIdFieldName=c),i}function L(t,e){let{geometryType:i,features:n}=e;if(!t)return e;for(let e=0;e<n.length;e++){let r=n[e],s=r.weakClone();s.geometry=X(r.geometry,i,t),s.centroid=X(r.centroid,"esriGeometryPoint",t),n[e]=s}return e.transform=t,e}function X(t,e,i,n,r,s=!1){if(null==t||!t?.coords.length)return null;let o=y[e],{coords:l,lengths:h,stride:a,hasZ:u,hasM:c}=t;n??=u,r??=c;let d=new f.A([],[],n,r),x=d.stride,M=w(u,c,n,r),b=0,v=[0,0,0,0].slice(x),I=s?g:m,T=s?_:p;function P(){M(l,b,v,0),b+=a,v[0]=I(i,v[0]),v[1]=T(i,v[1])}if(t.isPoint)return P(),d.coords.push(...v),d;let A=0;for(let t of h){if(t<o)continue;let e=1;P(),d.coords.push(...v);let[i,n]=v;for(let r=1;r<t;r++){P();let[t,r]=v;(i!==t||n!==r)&&(s||(v[0]-=i,v[1]-=n),d.coords.push(...v),i=t,n=r,e++)}e>=o?(d.lengths.push(e),A=d.coords.length):W(d.coords,A)}return W(d.coords,A),d.coords.length?d:null}function k(t,e,i,n=t.hasZ,r=t.hasM){if(!t.coords.length)return null;let s=y[e],{coords:o,lengths:l,stride:h,hasZ:a,hasM:u}=t,c=new f.A([],[],n,r),d=c.stride,m=w(a,u,n,r);if(t.isPoint)return m(o,0,c.coords,0),c;let p=0,g=i*i;for(let t of l){if(t<s){p+=t*h;continue}let e=c.coords.length/d,i=p,n=p+(t-1)*h;m(o,i,c.coords,c.coords.length),E(c.coords,o,h,g,m,i,n),m(o,n,c.coords,c.coords.length);let r=c.coords.length/d-e;r>=s?c.lengths.push(r):W(c.coords,e*d),p+=t*h}return c.coords.length?c:null}function z(t,e,i,n){let r=t[e],s=t[e+1],o=t[i],l=t[i+1],h=t[n],a=t[n+1],u=o,f=l,c=h-u,d=a-f;if(0!==c||0!==d){let t=((r-u)*c+(s-f)*d)/(c*c+d*d);t>1?(u=h,f=a):t>0&&(u+=c*t,f+=d*t)}return c=r-u,d=s-f,c*c+d*d}function E(t,e,i,n,r,s,o){let l,h=n,a=0;for(let t=s+i;t<o;t+=i)l=z(e,t,s,o),l>h&&(a=t,h=l);h>n&&(a-s>i&&E(t,e,i,n,r,s,a),r(e,a,t,t.length),o-a>i&&E(t,e,i,n,r,a,o))}function D(t,e){if(!e?.coords?.length)return null;let i=1/0,n=1/0,r=-1/0,s=-1/0,{coords:h,stride:a}=e;for(let t=0;t<h.length;t+=a){let e=h[t],o=h[t+1];i=Math.min(i,e),r=Math.max(r,e),n=Math.min(n,o),s=Math.max(s,o)}return(0,o.is)(t)?(0,o.BI)(t,i,n,r,s):(0,l.fA)(i,n,r,s,t),t}function V(t,e){let{coords:i,lengths:n,stride:r,hasZ:o,hasM:l}=t;if(!i.length)return void(n.length=0);(0,s.Lw)(e);let{originPosition:h,scale:a,translate:u}=e,f=$;f.originPosition=h;let c=f.scale;c[0]=a[0]??1,c[1]=-(a[1]??1),c[2]=a[2]??1,c[3]=a[3]??1;let d=f.translate;if(d[0]=u[0]??0,d[1]=u[1]??0,d[2]=u[2]??0,d[3]=u[3]??0,l&&!o&&(c[2]=c[3],d[2]=d[3]),!n.length){for(let t=0;t<r;++t)i[t]=x(f,i[t],t);return void(n.length=0)}let y=0;for(let t=0;t<n.length;t++){let e=n[t];n[t]=e;for(let t=0;t<r;++t)i[y+t]=x(f,i[y+t],t);let s=i[y],o=i[y+1];y+=r;for(let t=1;t<e;t++,y+=r){s+=i[y]*c[0],o+=i[y+1]*c[1],i[y]=s,i[y+1]=o;for(let t=2;t<r;++t)i[y+t]=x(f,i[y+t],t)}}}function J(t,e,i,n){let r=0,s=t[n*e],o=t[n*(e+1)];for(let l=1;l<i;l++){let i=s+t[n*(e+l)],h=o+t[n*(e+l)+1],a=(i-s)*(h+o);s=i,o=h,r+=a}return.5*r}function U(t,e){let{coords:i,lengths:n}=t,r=0,s=0;for(let t=0;t<n.length;t++){let o=n[t];s+=J(i,r,o,e),r+=o}return Math.abs(s)}function W(t,e=0){t.length!==e&&(t.length=e)}const $={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},85113(t,e,i){i.d(e,{BM:()=>T,bd:()=>P,sO:()=>I,xD:()=>f});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),l=i(43334),h=i(92722),a=i(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function f(t){return u[t]}function*c(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(let e of t.features)e&&(yield e)}}function*d(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(let e of t.coordinates)yield*e;break;case"MultiPolygon":for(let e of t.coordinates)for(let t of e)yield*t}}function y(t){for(let e of t)if(e.length>2)return!0;return!1}function m(t){let e=0;for(let i=0;i<t.length;i++){let n=t[i],r=t[(i+1)%t.length];e+=n[0]*r[1]-r[0]*n[1]}return e<=0}function p(t){let e=t[0],i=t[t.length-1];(e[0]!==i[0]||e[1]!==i[1]||e[2]!==i[2])&&t.push(e)}function g(t,e){let{coordinates:i,type:n}=t,r=e.hasZ??!1;switch(n){case"Point":return new h.A([],[...i],r,!1);case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let t=new h.A([],[],r,!1);for(let e of"Polygon"===n?[i]:i){_(t,e[0],r);for(let i=1;i<e.length;i++)x(t,e[i],r)}return t}}}function _(t,e,i){p(e),function(t){return!m(t)}(e)?w(t,e,i):M(t,e,i)}function x(t,e,i){p(e),function(t){return m(t)}(e)?w(t,e,i):M(t,e,i)}function M(t,e,i){for(let n of e)b(t,n,i);t.lengths.push(e.length)}function w(t,e,i){for(let n=e.length-1;n>=0;n--)b(t,e[n],i);t.lengths.push(e.length)}function b(t,[e,i,n],r){t.coords.push(e,i),r&&t.coords.push(n||0)}function v(t){switch(typeof t){case"string":return(0,n.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(t,e=4326){if(!t)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});let{crs:i}=t;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:e})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${e})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function T(t,e={}){let i,n=[],r=new Set,s=new Set,o=!1,l=null,h=!1,{geometryType:u=null}=e;for(let e of c(t)){let{geometry:t,properties:c,id:m}=e;if((!t||(u||=f(t.type),f(t.type)===u))&&(o||=y(d(t)),h||(h=null!=m,h&&(i=typeof m,c&&(l=Object.keys(c).filter(t=>c[t]===m)))),c&&l&&h&&null!=m&&(l.length>1?l=l.filter(t=>c[t]===m):1===l.length&&(l=c[l[0]]===m?l:[])),c))for(let t in c){if(r.has(t))continue;let e=v(c[t]);if("unknown"===e){s.add(t);continue}s.delete(t),r.add(t);let i=(0,a.rS)(t);i&&n.push({name:i,alias:t,type:e})}}let m=(0,a.rS)(1===l?.length&&l[0]||null)??void 0;if(m)for(let t of n)if(t.name===m&&(0,a.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:n,geometryType:u,hasZ:o,objectIdFieldName:m,objectIdFieldType:i,unknownFields:Array.from(s)}}function P(t,e){return Array.from(function*(t,e={}){let{geometryType:i,objectIdField:n}=e;for(let r of t){let{geometry:t,properties:s,id:o}=r;if(t&&f(t.type)!==i)continue;let h,a=s||{};n&&(h=a[n],null!=o&&!h&&(a[n]=h=o)),yield new l.Om(t&&g(t,e),a,null,h)}}(c(t),e))}},14289(t,e,i){i.r(e),i.d(e,{default:()=>B});var n=i(56507),r=i(17676),s=i(19419),o=i(21325),l=i(6774),h=i(90708),a=i(92722),u=i(83221),f=i(31464),c=i(85113);const d=new TextEncoder;class y{constructor(){this._bytes=[]}finish(){return new Uint8Array(this._bytes)}writeBooleanField(t,e){this._writeTag(t,0),this.writeVarint(+!!e)}writeDoubleField(t,e){this._writeTag(t,1);let i=new ArrayBuffer(8);new DataView(i).setFloat64(0,e,!0),this._writeBytes(new Uint8Array(i))}writeMessage(t,e,i){this._writeTag(t,2);let n=this._bytes.length;for(let t=0;t<5;t++)this._bytes.push(0);let r=this._bytes.length;e(i,this),this._writeMessageLength(n,this._bytes.length-r)}writeStringField(t,e){let i=d.encode(e);this._writeTag(t,2),this.writeVarint(i.byteLength),this._writeBytes(i)}writeSVarintField(t,e){this._writeTag(t,0),this.writeVarint(e<0?2*-e-1:2*e)}writeVarint(t){for(;t>127;)this._bytes.push(127&t|128),t=Math.floor(t/128);this._bytes.push(t)}writeVarintField(t,e){this._writeTag(t,0),this.writeVarint(e)}_writeBytes(t){for(let e of t)this._bytes.push(e)}_writeMessageLength(t,e){let i=0;for(;e>127;)this._bytes[t+i++]=127&e|128,e=Math.floor(e/128);this._bytes[t+i++]=e,this._bytes.splice(t+i,5-i)}_writeTag(t,e){this.writeVarint(t<<3|e)}}function m(t,e,i){let n=new y;return n.writeMessage(3,p,{cursor:e,extent:i,keyIndices:new Map,keys:[],name:t,valueIndices:new Map,values:[]}),Uint8Array.from(n.finish()).buffer}function p(t,e){for(e.writeVarintField(15,1),e.writeStringField(1,t.name),e.writeVarintField(5,t.extent);t.cursor.next();)e.writeMessage(2,g,t);for(let i of t.keys)e.writeStringField(3,i);for(let i of t.values)e.writeMessage(4,M,i)}function g(t,e){let i=t.cursor.getId();"number"==typeof i&&e.writeVarintField(1,i),e.writeMessage(2,_,t),e.writeVarintField(3,t.cursor.getType()),e.writeMessage(4,x,t.cursor)}function _(t,e){let i=t.cursor.getAttributes();if(i)for(let n of Object.keys(i)){let r=w(i[n]);if(null==r)continue;let s=t.keyIndices.get(n);s??(s=t.keys.length,t.keyIndices.set(n,s),t.keys.push(n));let o=`${typeof r}:${r}`,l=t.valueIndices.get(o);l??(l=t.values.length,t.valueIndices.set(o,l),t.values.push(r)),e.writeVarint(s),e.writeVarint(l)}}function x(t,e){let i=t.getType(),n=0,r=0;for(let s=0;s<t.getPathCount();s++){let o=t.getPathLength(s),l=1===i?o:1;e.writeVarint(b(1,l));let h=3===i?o-1:o;for(let o=0;o<h;o++){1===o&&1!==i&&e.writeVarint(b(2,h-1));let l=t.getX(s,o),a=t.getY(s,o);e.writeVarint(v(l-n)),e.writeVarint(v(a-r)),n=l,r=a}3===i&&e.writeVarint(b(7,1))}}function M(t,e){"string"==typeof t?e.writeStringField(1,t):"boolean"==typeof t?e.writeBooleanField(7,t):Number.isInteger(t)?t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t):e.writeDoubleField(3,t)}function w(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t?t:null==t?null:JSON.stringify(t)??null}function b(t,e){return(e<<3)+(7&t)}function v(t){return t<<1^t>>31}const I=4096,T=20037508.342787,P=2*T,A=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class B{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._tolerance=.375}destroy(){for(let{store:t}of this._stores)t.clear();this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:i},s={}){if(null==t.data)throw Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw Error("GeoJSON promoteId and generateId cannot be used together.");let o="string"==typeof t.data?(await(0,n.A)(t.data,{...i,responseType:"json",signal:s.signal})).data:t.data;(0,r.Te)(s),(0,c.sO)(o),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let l=0;for(let{geometryType:e,vectorTileGeometryType:i}of A){let n=(0,c.bd)(o,{geometryType:e,hasZ:!1}),r=S(o,e,t);if(0===n.length)continue;let s=new u.A({geometryType:e,hasM:!1,hasZ:!1}),h=[],a=0;for(let t of n){let i=F(t.geometry,e);i&&(t.objectId=l++,t.geometry=i,this._featureIds.set(t.objectId,r[a++]??null),h.push(t))}h.length>0&&(s.addMany(h),this._stores.push({geometryType:e,store:s,vectorTileGeometryType:i}))}return(0,r.Te)(s),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile({col:t,level:e,row:i},n={}){(0,r.Te)(n);let s=this._getTileFeatures(e,i,t),o=s.length>0?m(this._name,new R(s),I):new ArrayBuffer(0);return(0,r.Te)(n),{result:o,transferList:[o]}}_getTileFeatures(t,e,i){let n=P/2**t,r=i*n-20037508.342787,o=T-e*n,l=n/I,h=this._buffer*l,a=this._tolerance*l,u=[];for(let t of[-40075016.685574,0,P]){let e=(0,s.fA)(r-h-t,o-n-h,r+n+h-t,o+h),i={scale:[l,-l,1,1],translate:[r-t,o,0,0]};for(let{geometryType:t,store:n,vectorTileGeometryType:r}of this._stores)n.forEachInBounds(e,e=>{let n=C(e,t,r,i,a,this._buffer);n&&u.push({attributes:e.attributes,geometry:n,id:this._featureIds.get(e.objectId),type:r})})}return u}}function S(t,e,i){let n=[],r="FeatureCollection"===t.type?t.features:[t];for(let t=0;t<r.length;t++){let s=r[t];if(!s.geometry||(0,c.xD)(s.geometry.type)!==e)continue;let o=i.promoteId?s.properties?.[i.promoteId]:!0===i.generateId?t:s.id;n.push("number"==typeof o||"string"==typeof o?o:null)}return n}function F(t,e){return t?(0,h.Ux)((0,f.Cv)((0,h.zv)(t,e,!1,!1),o.KK,o.ch))??null:null}function C(t,e,i,n,r,s){if(!t.geometry)return null;let o=r>0?(0,h.kz)(t.geometry,e,r,!1,!1):t.geometry;return function(t,e,i){if(!t)return null;let n=new l.O3(0,0,0,8,i/8);if(n.setExtent(I),n.reset(e),1===e)for(let e=0;e<t.size;e++){let i=e*t.stride;n.moveTo(t.coords[i],t.coords[i+1])}else{let i=0;for(let r of t.lengths){n.moveTo(t.coords[i],t.coords[i+1]);for(let e=1;e<r;e++){let r=i+e*t.stride;n.lineTo(t.coords[r],t.coords[r+1])}3===e&&n.close(),i+=r*t.stride}}let r=n.result();if(!r)return null;let s=1===e?[r.length]:r.map(t=>t.length),o=[];for(let t of r)for(let e of t)o.push(e.x,e.y);return new a.A(s,o)}((0,h.Nl)(o,e,n,!1,!1,!0),i,s)}class R{constructor(t){this._features=t,this._index=-1,this._pathOffsets=[]}get _feature(){return this._features[this._index]}destroy(){}getAttributes(){return this._feature.attributes}getId(){return this._feature.id}getPathCount(){return 1===this._feature.type?1:this._feature.geometry.lengths.length}getPathLength(t){return 1===this._feature.type?this._feature.geometry.size:this._feature.geometry.lengths[t]}getType(){return this._feature.type}getX(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)]}getY(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)+1]}next(){return!(++this._index>=this._features.length||(this._pathOffsets=function(t){let e=Array(t.lengths.length),i=0;for(let n=0;n<t.lengths.length;n++)e[n]=i,i+=t.lengths[n];return e}(this._feature.geometry),0))}_getCoordinateIndex(t,e){return(1===this._feature.type?e:this._pathOffsets[t]+e)*this._feature.geometry.stride}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,6707],{73354(t,e,n){n.d(e,{a:()=>f,b:()=>a,c:()=>i,d:()=>s,e:()=>c,f:()=>u,l:()=>h,n:()=>m,t:()=>o}),n(44208);var r=n(72727);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=n[0],u=n[1],f=n[2],c=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],_=n[12],M=n[13],b=n[14],v=0,x=0;for(let n=0;n<l;n++){let n=e[v],r=e[v+1],s=e[v+2];t[x]=h*n+c*r+p*s+_,t[x+1]=u*n+m*r+y*s+M,t[x+2]=f*n+d*r+g*s+b,v+=o,x+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=n[0],u=n[1],f=n[2],c=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8],_=0,M=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],s=e[_+2];t[M]=h*n+c*r+p*s,t[M+1]=u*n+m*r+y*s,t[M+2]=f*n+d*r+g*s,_+=o,M+=i}}function l(t,e,n,r=3,i=r){let o=Math.min(t.length/r,e.length/i),s=0,a=0;for(let l=0;l<o;l++)t[a]=n*e[s],t[a+1]=n*e[s+1],t[a+2]=n*e[s+2],s+=i,a+=r;return t}function h(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,i=3,o=i){let s=Math.min(t.length/i,e.length/o),a=0,l=0,h=1/2.2;for(let u=0;u<s;u++)t[l]=r*(n*e[a])**h,t[l+1]=r*(n*e[a+1])**h,t[l+2]=r*(n*e[a+2])**h,a+=o,l+=i}function f(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=0,u=0;for(let r=0;r<l;r++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=o,u+=i;return t}function c(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),o=0,s=0;for(let a=0;a<i;a++){let i=e[o],a=e[o+1],l=e[o+2],h=i*i+a*a+l*l;if(h>0){let e=1/Math.sqrt(h);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*l}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:m,normalizeView:c,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride,l=0,h=0;for(let t=0;t<r;t++)i[h]=s[l]>>n,i[h+1]=s[l+1]>>n,i[h+2]=s[l+2]>>n,l+=a,h+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(64108);const h=Symbol("ClonableMixin"),u=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=h}clone(t){let e=(0,a.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},l=new Map;for(let e in n){let s=n[e],a=r?.originOf(e),h=s.clonable;if(s.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;let u=this[e],f=null;if("function"==typeof h)f=h(u,t);else if("reference"===h)f=u;else if(f=(0,o.TU)(u,t),null!=u&&null==f)continue;0===a?l.set(e,f):i[e]=f}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let t=(0,a.oY)(h)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return h}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},f=u(i.A);n.d(e,["OU",0,u,"Pw",0,f])},9775(t,e,n){n.d(e,{A:()=>o});var r=n(62788),i=n(95488);class o{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p){return[t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function s(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return o(1,1,1)}function h(){return o(1,0,0)}function u(){return o(0,1,0)}function f(){return o(0,0,1)}n.d(e,{CN:()=>s,ci:()=>a,fA:()=>o,o8:()=>i,vt:()=>r});const c=[0,0,0],m=l(),d=h(),p=u(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:c,clone:i,create:r,freeze:s,fromArray:a,fromValues:o,ones:l,unitX:h,unitY:u,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,c])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>i,ct:()=>h});let r=1e-6;function i(){return r}const o=Math.random,s=Math.PI/180,a=180/Math.PI;function l(t){return t*s}function h(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:h,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,o])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>o,D_:()=>a,N9:()=>M,O7:()=>w,Qw:()=>h,Tl:()=>c,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>_,hZ:()=>s,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>f,mg:()=>l,o1:()=>R,sC:()=>x,t2:()=>I,t5:()=>C,tZ:()=>P,ut:()=>O});var r=n(51850),i=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=h,t[9]=u,t[10]=f,t[11]=c,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(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 l(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return u(t,e)||a(t),t}function u(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],_=n*a-r*s,M=n*l-i*s,b=n*h-o*s,v=r*l-i*a,x=r*h-o*a,S=i*h-o*l,A=u*p-f*d,R=u*y-c*d,w=u*g-m*d,T=f*y-c*p,C=f*g-m*p,E=c*g-m*y,I=_*E-M*C+b*T+v*w-x*R+S*A;return I?(I=1/I,t[0]=(a*E-l*C+h*T)*I,t[1]=(i*C-r*E-o*T)*I,t[2]=(p*S-y*x+g*v)*I,t[3]=(c*x-f*S-m*v)*I,t[4]=(l*w-s*E-h*R)*I,t[5]=(n*E-i*w+o*R)*I,t[6]=(y*b-d*S-g*M)*I,t[7]=(u*S-c*b+m*M)*I,t[8]=(s*C-a*w+h*A)*I,t[9]=(r*w-n*C-o*A)*I,t[10]=(d*x-p*b+g*_)*I,t[11]=(f*b-u*x-m*_)*I,t[12]=(a*R-s*T-l*A)*I,t[13]=(n*T-r*R+i*A)*I,t[14]=(p*M-d*v-y*_)*I,t[15]=(u*v-f*M+c*_)*I,t):null}function f(t,e,n){let r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=e[8],c=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],_=e[15],M=n[0],b=n[1],v=n[2],x=n[3];return t[0]=M*r+b*a+v*f+x*p,t[1]=M*i+b*l+v*c+x*y,t[2]=M*o+b*h+v*m+x*g,t[3]=M*s+b*u+v*d+x*_,M=n[4],b=n[5],v=n[6],x=n[7],t[4]=M*r+b*a+v*f+x*p,t[5]=M*i+b*l+v*c+x*y,t[6]=M*o+b*h+v*m+x*g,t[7]=M*s+b*u+v*d+x*_,M=n[8],b=n[9],v=n[10],x=n[11],t[8]=M*r+b*a+v*f+x*p,t[9]=M*i+b*l+v*c+x*y,t[10]=M*o+b*h+v*m+x*g,t[11]=M*s+b*u+v*d+x*_,M=n[12],b=n[13],v=n[14],x=n[15],t[12]=M*r+b*a+v*f+x*p,t[13]=M*i+b*l+v*c+x*y,t[14]=M*o+b*h+v*m+x*g,t[15]=M*s+b*u+v*d+x*_,t}function c(t,e,n){let r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{let n=e[0],s=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=l,t[4]=h,t[5]=u,t[6]=f,t[7]=c,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+h*i+m*o+e[12],t[13]=s*r+u*i+d*o+e[13],t[14]=a*r+f*i+p*o+e[14],t[15]=l*r+c*i+y*o+e[15]}return t}function m(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let s=r[0],a=r[1],l=r[2],h=Math.sqrt(s*s+a*a+l*l);if(h<=(0,i.FD)())return void o(t,e);h=1/h,s*=h,a*=h,l*=h;let u=Math.sin(n),f=Math.cos(n),c=1-f,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],_=e[5],M=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=s*s*c+f,w=a*s*c+l*u,T=l*s*c-a*u,C=s*a*c-l*u,E=a*a*c+f,I=l*a*c+s*u,O=s*l*c+a*u,P=a*l*c-s*u,N=l*l*c+f;t[0]=m*R+g*w+v*T,t[1]=d*R+_*w+x*T,t[2]=p*R+M*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+v*I,t[5]=d*C+_*E+x*I,t[6]=p*C+M*E+S*I,t[7]=y*C+b*E+A*I,t[8]=m*O+g*P+v*N,t[9]=d*O+_*P+x*N,t[10]=p*O+M*P+S*N,t[11]=y*O+b*P+A*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],l=e[7],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+h*r,t[5]=s*i+u*r,t[6]=a*i+f*r,t[7]=l*i+c*r,t[8]=h*i-o*r,t[9]=u*i-s*r,t[10]=f*i-a*r,t[11]=c*i-l*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],o=n[1],s=n[2],l=Math.sqrt(r*r+o*o+s*s);if(l<=(0,i.FD)())return null;l=1/l,r*=l,o*=l,s*=l;let h=Math.sin(e),u=Math.cos(e),f=1-u;return t[0]=r*r*f+u,t[1]=o*r*f+s*h,t[2]=s*r*f-o*h,t[3]=0,t[4]=r*o*f-s*h,t[5]=o*o*f+u,t[6]=s*o*f+r*h,t[7]=0,t[8]=r*s*f+o*h,t[9]=o*s*f-r*h,t[10]=s*s*f+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){let r=e[0],i=e[1],o=e[2],s=e[3],a=r+r,l=i+i,h=o+o,u=r*a,f=r*l,c=r*h,m=i*l,d=i*h,p=o*h,y=s*a,g=s*l,_=s*h;return t[0]=1-(m+p),t[1]=f+_,t[2]=c-g,t[3]=0,t[4]=f-_,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=c+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],l=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+s*s+a*a),t[2]=Math.sqrt(l*l+h*h+u*u),t}function A(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){let i=e[0],o=e[1],s=e[2],a=e[3],l=i+i,h=o+o,u=s+s,f=i*l,c=i*h,m=i*u,d=o*h,p=o*u,y=s*u,g=a*l,_=a*h,M=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(c+M)*b,t[2]=(m-_)*b,t[3]=0,t[4]=(c-M)*v,t[5]=(1-(f+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+_)*x,t[9]=(p-g)*x,t[10]=(1-(f+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,i){let o=e[0],s=e[1],a=e[2],l=e[3],h=o+o,u=s+s,f=a+a,c=o*h,m=o*u,d=o*f,p=s*u,y=s*f,g=a*f,_=l*h,M=l*u,b=l*f,v=r[0],x=r[1],S=r[2],A=i[0],R=i[1],w=i[2],T=(1-(p+g))*v,C=(m+b)*v,E=(d-M)*v,I=(m-b)*x,O=(1-(c+g))*x,P=(y+_)*x,N=(d+M)*S,L=(y-_)*S,D=(1-(c+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=I,t[5]=O,t[6]=P,t[7]=0,t[8]=N,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+A-(T*A+I*R+N*w),t[13]=n[1]+R-(C*A+O*R+L*w),t[14]=n[2]+w-(E*A+P*R+D*w),t[15]=1,t}function T(t,e,n,r,i,o,s){let a=1/(n-e),l=1/(i-r),h=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*l,t[10]=(s+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*h,t[15]=0,t}function C(t,e,n,r){let o=e[0],s=e[1],l=e[2],h=o-n[0],u=s-n[1],f=l-n[2],c=(0,i.FD)();if(Math.abs(h)<c&&Math.abs(u)<c&&Math.abs(f)<c)return void a(t);let m=1/Math.sqrt(h*h+u*u+f*f);h*=m,u*=m,f*=m;let d=r[0],p=r[1],y=r[2],g=p*f-y*u,_=y*h-d*f,M=d*u-p*h;m=Math.sqrt(g*g+_*_+M*M),m?(m=1/m,g*=m,_*=m,M*=m):(g=0,_=0,M=0);let b=u*M-f*_,v=f*g-h*M,x=h*_-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=h,t[3]=0,t[4]=_,t[5]=v,t[6]=u,t[7]=0,t[8]=M,t[9]=x,t[10]=f,t[11]=0,t[12]=-(g*o+_*s+M*l),t[13]=-(b*o+v*s+x*l),t[14]=-(h*o+u*s+f*l),t[15]=1}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){let e=(0,i.FD)(),n=t[0],r=t[1],o=t[2],s=t[4],a=t[5],l=t[6],h=t[8],u=t[9],f=t[10];return Math.abs(1-(n*n+s*s+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(o*o+l*l+f*f))<=e}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 N=f,L=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(c*g-m*y)-f*(l*g-h*y)+p*(l*m-h*c),t[1]=-(r*(c*g-m*y)-f*(i*g-o*y)+p*(i*m-o*c)),t[2]=r*(l*g-h*y)-a*(i*g-o*y)+p*(i*h-o*l),t[3]=-(r*(l*m-h*c)-a*(i*m-o*c)+f*(i*h-o*l)),t[4]=-(s*(c*g-m*y)-u*(l*g-h*y)+d*(l*m-h*c)),t[5]=n*(c*g-m*y)-u*(i*g-o*y)+d*(i*m-o*c),t[6]=-(n*(l*g-h*y)-s*(i*g-o*y)+d*(i*h-o*l)),t[7]=n*(l*m-h*c)-s*(i*m-o*c)+u*(i*h-o*l),t[8]=s*(f*g-m*p)-u*(a*g-h*p)+d*(a*m-h*f),t[9]=-(n*(f*g-m*p)-u*(r*g-o*p)+d*(r*m-o*f)),t[10]=n*(a*g-h*p)-s*(r*g-o*p)+d*(r*h-o*a),t[11]=-(n*(a*m-h*f)-s*(r*m-o*f)+u*(r*h-o*a)),t[12]=-(s*(f*y-c*p)-u*(a*y-l*p)+d*(a*c-l*f)),t[13]=n*(f*y-c*p)-u*(r*y-i*p)+d*(r*c-i*f),t[14]=-(n*(a*y-l*p)-s*(r*y-i*p)+d*(r*l-i*a)),t[15]=n*(a*c-l*f)-s*(r*c-i*f)+u*(r*l-i*a),t},copy:o,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],h=t[8],u=t[9],f=t[10],c=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*s-n*o)*(f*y-c*p)-(e*a-r*o)*(u*y-c*d)+(e*l-i*o)*(u*p-f*d)+(n*a-r*s)*(h*y-c*m)-(n*l-i*s)*(h*p-f*m)+(r*l-i*a)*(h*d-u*m)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],f=t[8],c=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],_=t[15],M=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],I=e[11],O=e[12],P=e[13],N=e[14],L=e[15],D=(0,i.FD)();return Math.abs(n-M)<=D*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-b)<=D*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(o-v)<=D*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-x)<=D*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(a-S)<=D*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-A)<=D*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-R)<=D*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-w)<=D*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(f-T)<=D*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(m-E)<=D*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-I)<=D*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-P)<=D*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(g-N)<=D*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(_-L)<=D*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:I,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,l=i+i,h=n*s,u=r*s,f=r*a,c=i*s,m=i*a,d=i*l,p=o*s,y=o*a,g=o*l;return t[0]=1-f-d,t[1]=u+g,t[2]=c-y,t[3]=0,t[4]=u-g,t[5]=1-h-d,t[6]=m+p,t[7]=0,t[8]=c+y,t[9]=m-p,t[10]=1-h-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],i=-e[1],o=-e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=r*r+i*i+o*o+s*s;return f>0?(n[0]=2*(a*s+u*r+l*o-h*i)/f,n[1]=2*(l*s+u*i+h*r-a*o)/f,n[2]=2*(h*s+u*o+a*i-l*r)/f):(n[0]=2*(a*s+u*r+l*o-h*i),n[1]=2*(l*s+u*i+h*r-a*o),n[2]=2*(h*s+u*o+a*i-l*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:P,identity:a,invert:u,invertOrIdentity:h,isOrthoNormal:O,lookAt:C,mul:N,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,s){let a=1/(e-n),l=1/(r-i),h=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*l,t[14]=(s+o)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+a),h=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(s-a)*l*.5,t[9]=(i-o)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],l=e[3],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-h*r,t[1]=s*i-u*r,t[2]=a*i-f*r,t[3]=l*i-c*r,t[8]=o*r+h*i,t[9]=s*r+u*i,t[10]=a*r+f*i,t[11]=l*r+c*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+h*r,t[1]=s*i+u*r,t[2]=a*i+f*r,t[3]=l*i+c*r,t[4]=h*i-o*r,t[5]=u*i-s*r,t[6]=f*i-a*r,t[7]=c*i-l*r,t},scale:m,set:s,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:L,subtract:E,targetTo:function(t,e,n,r){let i=e[0],o=e[1],s=e[2],a=r[0],l=r[1],h=r[2],u=i-n[0],f=o-n[1],c=s-n[2],m=u*u+f*f+c*c;m>0&&(m=1/Math.sqrt(m),u*=m,f*=m,c*=m);let d=l*c-h*f,p=h*u-a*c,y=a*f-l*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=f*y-c*p,t[5]=c*d-u*y,t[6]=u*p-f*d,t[7]=0,t[8]=u,t[9]=f,t[10]=c,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},translate:c,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>o,C:()=>s,Cc:()=>w,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>A,Qr:()=>f,Re:()=>h,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>I,gL:()=>E,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>D,t2:()=>N,tn:()=>c,ze:()=>v});var r=n(51850),i=n(34304);function o(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function _(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){let r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function w(t,e,n,r){let i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function T(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function C(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,i,o){let s=e[0],a=e[1],l=e[2],h=r*l-i*a,u=i*s-n*l,f=n*a-r*s,c=r*f-i*u,m=i*h-n*f,d=n*u-r*h,p=2*o;return t[0]=s+h*p+2*c,t[1]=a+u*p+2*m,t[2]=l+f*p+2*d,t}const O=(0,r.vt)(),P=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],h=(0,i.FD)();return Math.abs(n-s)<=h*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2],s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=h,G=u,U=f,F=_,j=M,k=o,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(t,e){S(O,t),S(P,e);let n=A(O,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){let s=1-o,a=s*s,l=o*o,h=a*s,u=3*o*a,f=3*l*s,c=l*o;return t[0]=e[0]*h+n[0]*u+r[0]*f+i[0]*c,t[1]=e[1]*h+n[1]*u+r[1]*f+i[1]*c,t[2]=e[2]*h+n[2]*u+r[2]*f+i[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:R,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],h=i*l-o*a,u=o*s-r*l,f=r*a-i*s,c=Math.sqrt(h*h+u*u+f*f);return t[0]=h/c,t[1]=u/c,t[2]=f/c,t},direction:D,dist:F,distance:_,div:U,divide:f,dot:A,equals:L,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){let s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,h=s*(o-1),u=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*h+i[0]*u,t[1]=e[1]*a+n[1]*l+r[1]*h+i[1]*u,t[2]=e[2]*a+n[2]*l+r[2]*h+i[2]*u,t},inverse:x,len:k,length:o,lerp:w,max:p,min:d,mul:G,multiply:u,negate:v,normalize:S,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/k(t))},set:a,sign:m,sqrDist:j,sqrLen:Z,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:h,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,k,"jb",0,B,"lo",0,j,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),i=n(71511),o=n(36563),s=n(53966),a=n(97768),l=n(17676),h=n(83027);class u{constructor(t,e,n,r,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(t,{...i,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(let e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){let n=new f(t,e);return this._listeners.push(n),this._connectListener(n),(0,o.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){let i=this._transferLists[t],o=i?i(e):[];return this._thread.invoke(t,e,{transferList:o,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(c):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class f{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function c(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,i=n(32198),o=n(4576),s=n(4718),a=n(91429),l=n(5443),h=n(91075),u=n(86738),f=n(16930),c=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,s.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,s.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,o.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),o=n(4718),s=n(91429),a=n(5443),l=n(91075),h=n(86738),u=n(16930),f=n(90634),c=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,o.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,o.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,o.o8)(this.paths),t.curvePaths=(0,o.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new h.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new h.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new h.A(n[0],n[1],n[2],n[3],this.spatialReference):new h.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)&&((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new h.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)&&((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths")),this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,s.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>s});var r=n(51850),i=n(99917),o=n(9762);function s(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);let s=(0,i.tryProject)(t,n,r);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),i=n(16930),o=n(9762),s=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,o.projectBuffer)(t,e,0,n,i,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,i)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>h,jh:()=>o,l5:()=>a,yH:()=>l});var r=n(34275),i=n(9093);function o(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function l(t,e){if(0===e.length)return s(t);if(0===t.length)return s(e);let n=o(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function u(t){let e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>h});var r,i=n(32198),o=n(69540),s=n(25482),a=n(91429),l=n(93223);let h=class extends((0,o.OU)(s.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],h.prototype,"origin",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],h)},18251(t,e,n){n.d(e,{A:()=>h});var r=n(32198),i=n(69540),o=n(25482),s=n(91429),a=n(51850),l=n(93223);let h=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],h)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},52006(t,e,n){function r(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function o(t){return"b"in t}function s(t){return"c"in t}function a(t){return Array.isArray(t)}function l(t){return"a"in t}function h(t){return"a"in t&&4===t.a.length}function u(t){return"a"in t&&7===t.a.length}function f(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(o(t)?e.has("cubic-bezier"):s(t)?e.has("circular-arc"):!h(t)&&!u(t)||e.has("elliptic-arc")))}(t,e))}function c(t){return a(t)?t:o(t)?t.b[0]:s(t)?t.c[0]:t.a[0]}function m(t){if(o(t)){let[e,n,r]=t.b;return{b:[[...e],[...n],[...r]]}}if(s(t)){let[e,n]=t.c;return{c:[[...e],[...n]]}}if(a(t))return[...t];if(h(t)){let[e,n,r,i]=t.a;return{a:[[...e],[...n],r,i]}}if(u(t)){let[e,n,r,i,o,s,a]=t.a;return{a:[[...e],[...n],r,i,o,s,a]}}return t}n.d(e,{DA:()=>h,Ed:()=>r,FD:()=>i,FG:()=>l,V8:()=>f,Xq:()=>a,aO:()=>s,n1:()=>o,tk:()=>m,wY:()=>u,yP:()=>c}),n(4576)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function o(t){return void 0!==t.x&&void 0!==t.y}function s(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?o(t)?"esriGeometryPoint":s(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>s,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>o,uW:()=>l})},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>l});var r=n(82799),i=n(16930),o=n(60408),s=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,s.Ed)(t))for(let n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(let t of n)if((0,s.aO)(t)){let[n,r]=t.c;n[0]+=e,r[0]+=e}else if((0,s.FG)(t)){let[n,r]=t.a;n[0]+=e,r[0]+=e}else if((0,s.n1)(t)){let[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e}else t[0]+=e;for(let n of function(t){return(0,o.Bi)(t)?t.rings:t.paths}(t))for(let t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>f,jZ:()=>u});var r=n(12195),i=n(19419),o=n(537),s=n(95108),a=n(60408),l=n(80754),h=n(21325);function u(t){return c(t,!0)}function f(t){return c(t,!1)}function c(t,e){if(null==t)return null;let n=t.spatialReference,i=(0,h.Vp)(n),s=(0,r.W)(t)?t.toJSON():t;if(!i)return s;let u=(0,h.K8)(n)?102100:4326,f=l.j7[u].maxX,c=l.j7[u].minX;if((0,a.fT)(s))return d(s,f,c);if((0,a.U9)(s))return s.points=s.points.map(t=>d(t,f,c)),s;if((0,a.ZC)(s))return m(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){let t=(0,o.Rg)(b,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,c),i=2*f*r,a=0===i?s:(0,l.kS)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>f?_(a,f,e):n.xmin<c?_(a,c,e):a}return s}function m(t,e){if(!e)return t;let n=function(t,e){let n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:u,frameId:f}=p(t.xmin,e),{x:c,frameId:m}=p(t.xmax,e),d=u===c&&a>0;if(a>2*h){let t={xmin:o<s?u:c,ymin:r,xmax:h,ymax:i},e={xmin:l,ymin:r,xmax:o<s?c:u,ymax:i},a={xmin:0,ymin:r,xmax:h,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},p=[],g=[];y(t,a)&&p.push(f),y(t,d)&&g.push(f),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=f+1;t<m;t++)p.push(t),g.push(t);n.push(new M(t,[f]),new M(e,[m]),new M(a,p),new M(d,g))}else u>c||d?n.push(new M({xmin:u,ymin:r,xmax:h,ymax:i},[f]),new M({xmin:l,ymin:r,xmax:c,ymax:i},[m])):n.push(new M({xmin:u,ymin:r,xmax:c,ymax:i},[f]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){let r=t[0];if(r>e){let n=(0,l.kd)(r,e);t[0]=r+-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t[0]=r+-2*n*e}}else{let r=t.x;if(r>e){let n=(0,l.kd)(r,e);t.x+=-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t.x+=-2*n*e}}return t}function p(t,e){let n,[r,i]=e.valid,o=2*i,s=0;return t>i?(n=Math.ceil(Math.abs(t-i)/o),t-=n*o,s=n):t<r&&(n=Math.ceil(Math.abs(t-r)/o),t+=n*o,s=-n),{x:t,frameId:s}}function y(t,e){let{xmin:n,ymin:r,xmax:i,ymax:o}=e;return g(t,n,r)&&g(t,n,o)&&g(t,i,o)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){let r=!(0,a.Rg)(t);if(r&&(0,s.m3)(t),n)return(new v).cut(t,e);let i=r?t.rings:t.paths,o=r?4:2,l=i.length,h=-2*e;for(let t=0;t<l;t++){let e=i[t];if(e&&e.length>=o){let t=[];for(let[n,...r]of e)t.push([n+h,...r]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class M{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,i.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(let t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(let n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);let r=-2*this._xCut;for(let t of this._linesOut)if(t&&t.length>=this._minPts){for(let e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){let e=this._side(t[0]);if(e*this._prevSide===-1){let n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){let t=this._firstPt,e=this._prevPt;(t[0]!==e[0]||t[1]!==e[1])&&this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){let e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:+(t>this._xCut)}_intersect(t,e){let n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let o=2;o<i;o++)r.push(t[o]+n*(e[o]-t[o]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){let n=t.slice();return n[0]=e,n}function S(t,e,n){let r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>I,F8:()=>E,J2:()=>R,Yq:()=>T,_m:()=>w,iS:()=>C,wj:()=>O});var r=n(66552),i=n(73444),o=n(98623),s=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},_={...p,...y},M={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...d},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...p},"long-month-day-year-long-time-24":{...f,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...d},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let t=(0,i.lR)();return(t&&v[t])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:t})=>"month"===t)?.value.toLowerCase()&&(v.bs="sr-Latn-CS");let S=new WeakMap;const A=M["short-date-short-time"];function R(t){return M[t]}function w(t){let{dateStyle:e,timeStyle:n,hour12:r,year:i,month:o}=t,s={};return e?s.dateStyle=e:i&&(s.year=i,s.month=o||void 0),n&&!s.year&&(s.timeStyle=n,s.hour12="auto"===r?void 0:"always"===r),s}function T(t,e=A){return function(t){let e=S.get(t);if(!e){let n=x(),r=O(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),S.set(t,e)}return e}(e).format(t)}function C(t,e=A){return T(new Date(t),{...e,...h,...l})}function E(t,e=A){return T(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function I(t,e=A){let n=s.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return T(n.toJSDate(),e);let r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:x()})}function O(t){switch(t){case"system":return o.N;case o.L:return"UTC";default:return t}}(0,i.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>f,lR:()=>u,oQ:()=>d});var r=n(36563);let i;n(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){let t=s?.getAttribute("lang"),e=globalThis.navigator?.language;return o??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=l()){return c(t)?.language}function f(t=l()){let e=c(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function c(t=l()){return h.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){let t=a();i!==t&&([...p].forEach(e=>e(t)),i=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),s&&new MutationObserver(()=>{g()}).observe(s,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>f,MU:()=>u,yf:()=>m});var r=n(35522),i=n(51850),o=n(10614),s=n(63907),a=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class h{constructor(t,e,n,r,i){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=i}}function u(t,e,n,h,u){return!h||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,s){let a=new l(t.slice().buffer,e);if(!s)return a;let h=n[0].stride,u=a.data.byteLength/h;for(let t of n)if("normalCompressed"===t.name){let{offset:e}=t,n=new Int16Array(a.data),l=(0,i.vt)();for(let t=0;t<u;++t)(0,o.Tz)(l,n,t,h/2,e/2),(0,r.ei)(l,l,s),(0,o.aT)(n,t,l[0],l[1],l[2],h/2,e/2)}else if("normal"===t.name){let{offset:e}=t,n=new Float32Array(a.data),o=(0,i.vt)();for(let t=0;t<u;++t){let i=(t*h+e)/4;o[0]=n[i],o[1]=n[i+1],o[2]=n[i+2],(0,r.ei)(o,o,s),n[i]=o[0],n[i+1]=o[1],n[i+2]=o[2]}}return a}(t,e,n,u):function(t,e,n,r){let i=n[0].stride,o=i/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),h=t.byteLength/i,u=1<n.length?n[1].offset/4:o,m=i+4;return n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,s.pe.SHORT,12,m,!0)),c(l,h,u,i,m,f(e,l,o,r))}(t,e,n,u)}function f(t,e,n,r){let i=t.length/3,o=e.length/n,{faceNormals:s,faceAreas:a,faceEdges:l,edgeFaces:h,vertexFaces:u,vertexFaceCountAndOffset:f}=function(t,e,n,r,i,o){let s=new Float32Array(3*i),a=new Float32Array(i),l=new Uint32Array(3*i),h=new Int32Array(2*(3*i)),u=3*i,f=new Uint32Array(u),c=new Uint32Array(2*n);for(let t=0;t<i;++t){let e=3*t;for(let t=0;t<3;++t)++c[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){let n=2*e;c[n+1]=t,t+=c[n]}for(let t=0;t<i;++t){let e=3*t;for(let n=0;n<3;++n)f[c[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)c[2*t+1]-=c[2*t]}let m=0,d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){let e=2*t,n=4*c[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){let r=Math.min(t,e),i=Math.max(t,e),o=t<e?0:1,s=2*r,a=p[s],l=p[s+1],u=-1;for(let t=a;t<l;t+=2)if(d[t]===i){u=d[t+1];break}return-1===u&&(u=m++,d[l]=i,d[l+1]=u,p[s+1]=l+2,h[2*u+(1-o)]=-1),h[2*u+o]=n,u}for(let n=0;n<r.length;n+=3){let i=r[n],h=i*e,u=t[h],f=t[h+1],c=t[h+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],_=t[d+2],M=r[n+2],b=M*e,v=u-p,x=f-g,S=c-_,A=u-t[b],R=f-t[b+1],w=c-t[b+2],T=x*w-S*R,C=S*A-v*w,E=v*R-x*A,I=Math.sqrt(T*T+C*C+E*E)||1,O=n/3;a[O]=.5*I;let P=1/I;if(o){let t=o[0]*T+o[3]*C+o[6]*E,e=o[1]*T+o[4]*C+o[7]*E,n=o[2]*T+o[5]*C+o[8]*E;s[3*O]=t*P,s[3*O+1]=e*P,s[3*O+2]=n*P}else s[3*O]=T*P,s[3*O+1]=C*P,s[3*O+2]=E*P;let N=y(i,m,O),L=y(m,M,O),D=y(M,i,O);l[3*O]=N,l[3*O+1]=L,l[3*O+2]=D}return{faceNormals:s,faceAreas:a,faceEdges:l,vertexFaces:f,vertexFaceCountAndOffset:c,edgeFaces:h}}(e,n,o,t,i,r);return function(t,e,n,r,i,o){let s=new Uint8Array(e),a=new Uint32Array(e),l=new Uint32Array(3*e),h=0,u=new Uint32Array(e),f=0;for(let e=0;e<t.length;e+=3){let t=e/3;if(1===s[t])continue;s[t]=1;let c=n[3*t],m=n[3*t+1],d=n[3*t+2];for(f=0,u[f++]=t,l[0]=i[3*t],l[1]=i[3*t+1],l[2]=i[3*t+2],h=3,a[t]=t+1;h>0;){let e=l[--h];for(let r=0;r<2;++r){let y=o[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;let g=n[3*y],_=n[3*y+1],M=n[3*y+2];if(Math.abs(1-(c*g+m*_+d*M))<p){u[f++]=y,s[y]=1;for(let t=0;t<3;++t){let n=i[3*y+t];n!==e&&(l[h++]=n)}}}}if(f>1){let t=0,e=0,i=0,o=0;for(let s=0;s<f;++s){let a=u[s],l=r[a];t+=l,e+=n[3*a]*l,i+=n[3*a+1]*l,o+=n[3*a+2]*l}let s=Math.sqrt(e*e+i*i+o*o)||1;e/=s,i/=s,o/=s;for(let s=0;s<f;++s){let a=u[s];n[3*a]=e,n[3*a+1]=i,n[3*a+2]=o,r[a]=t}}}}(t,i,s,a,l,h),d(i,o,t,s,a,u,f)}function c(t,e,n,r,i,o){let s=r/4,a=i/4,h=o.outputVertexCount,u=new Float32Array(h*a),f=new Uint32Array(u.buffer),c=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,i,o,s){for(let a=0;a<o;++a){let o=a*i,l=a*e;for(let e=0;e<n;++e)t[l+e]=r[o+e];t[l+n]=s[a];for(let e=n;e<i;++e)t[l+e+1]=r[o+e]}}(f,a,n,c,s,e,o.packedNormals),m(f,a,n,c,s,e,h,o.appendedVertexToOriginal,o.packedNormals,!0),new l(u.buffer,o.indices)}function m(t,e,n,r,i,o,s,a,l,h){for(let u=o;u<s;++u){let s=a[u-o]*i,f=u*e;for(let e=0;e<i;++e)t[f+e+(h&&e>=n?1:0)]=r[s+e];t[f+n]=l[u]}}function d(t,e,n,r,i,o,s){let a=3*t,l=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n),u=e,f=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),c=new ArrayBuffer(4*a),m=new Int16Array(c),d=new Uint32Array(c),p=0,g=0,_=new Uint32Array(t),M=0,b=1-y;for(let t=0;t<e;++t){p=s[2*t+1],g=p+s[2*t];let n=t;for(;p<g;){{let t=o[--g],e=3*t,s=r[e],a=r[e+1],l=r[e+2];M=0,_[M++]=t;let h=p;for(;h<g;){let t=o[h],e=3*t;if(s*r[e]+a*r[e+1]+l*r[e+2]>b){_[M++]=t;let e=--g;if(h<e){o[h]=o[e];continue}}++h}let u=0,f=0,c=0;if(1===M)u=s,f=a,c=l;else{for(let t=0;t<M;++t){let e=_[t],n=i[e],o=3*e;u+=r[o]*n,f+=r[o+1]*n,c+=r[o+2]*n}let t=Math.sqrt(u*u+f*f+c*c)||1;u/=t,f/=t,c/=t}{let t=1/(Math.abs(u)+Math.abs(f)+Math.abs(c)),e=u*t,r=f*t,i=e,o=r;c<=0&&(i=(e>=0?1:-1)*(1-Math.abs(r)),o=(r>=0?1:-1)*(1-Math.abs(e)));let s=2*n,a=Math.round(32767*i),l=Math.round(32767*o);m[s]=a<-32767?-32767:a>32767?32767:a,m[s+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<M;++e){let r=3*_[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(p>=g)break;n=u++,f[n-e]=t}}return new h(l,d,f,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>R,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>I,initialize:()=>N,interpretObbModificationResults:()=>E,process:()=>_,project:()=>S,setLegacySchema:()=>x,setModifications:()=>v,setModificationsSync:()=>T,test:()=>D,transformNormals:()=>A});var r=n(34727),i=n(77690),o=n(29242),s=n(58083),a=n(9093),l=n(16930),h=n(4197),u=n(95696),f=n(18251),c=n(73354),m=n(2741);function d(){p=null}let p;var y=n(89606),g=n(98697);async function _(t){w=await L();let e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();let e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=w._malloc(r),o=new Uint8Array(w.HEAPU8.buffer,i,r);o.set(new Uint8Array(n));let s=w.dracoDecompressPointCloudData(i,o.byteLength);if(w._free(i),s.error.length>0)throw Error(`i3s.wasm: ${s.error}`);let a=s.featureIds?.length>0?s.featureIds.slice():null,l=s.positions.slice();return a&&e.push(a.buffer),e.push(l.buffer),{result:{positions:l,featureIds:a},transferList:e}}async function b(t){await L(),I(t);let e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function v(t){await L(),T(t)}async function x(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function S(t){let e,{localMatrix:r,origin:i,positions:o,vertexSpace:s}=t,a=l.A.fromJSON(t.inSpatialReference),c=l.A.fromJSON(t.outSpatialReference),m=r?(0,h.Vj)(r):void 0,d=(0,h.cj)(i),[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(a,c);let g=[0,0,0];if(!p(d,a,0,g,c,0))throw Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(e=new Float64Array(o.length),!p(o,a,0,e,c,0,e.length/3))throw Error("Failed to project")}else{let t="georeferenced"===s.type?u.A.fromJSON(s):f.A.fromJSON(s),{projectMeshVertexPositions:r}=await Promise.all([n.e(2258),n.e(2346)]).then(()=>n(74594)),i=r({vertexAttributes:{position:o},transform:m?{localMatrix:m}:void 0,vertexSpace:t,spatialReference:a},c);if(!i)throw Error("Failed to project");e=i}let _=e.length,[M,b,v]=g;for(let t=0;t<_;t+=3)e[t]-=M,e[t+1]-=b,e[t+2]-=v;return{result:{projected:e,original:o,projectedOrigin:g},transferList:[e.buffer,o.buffer]}}async function A({normalMatrix:t,normals:e}){let n=new Float32Array(e.length);return(0,c.b)(n,e,t),(0,r.or)(t)&&(0,c.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function R(t){O(t)}let w;function T(t){if(!w)return;let e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){let{context:r,globalTrafo:l,geometryElevationOffset:h,mbs:u,obbData:f,layouts:c,needNormals:m,computeNormals:d,elevationOffset:p,planetRadiusInGlobalMode:_,geometryBuffer:M,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(M.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,M.byteLength);T.set(new Uint8Array(M));let C=new Float64Array(t.HEAPU8.buffer,w,33);P(C,[NaN,NaN,NaN],0);let E=3;P(C,l,E),E+=16,P(C,u.center,E),E+=3,C[E++]=u.radius,f&&P(C,f,E++);let I={isDraco:!1,isLegacy:!1,color:c.some(t=>t.some(t=>"color"===t.name)),normal:m&&c.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:c.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:c.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!f,R,T.byteLength,b,I,w,p,x,S,A);if(t._free(w),t._free(R),O.error.length>0)throw Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;let N=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,D=O.anchorIds.length>0?Array.from(O.anchorIds):null,B=O.anchors.length>0?Array.from(O.anchors):null,G=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=c[0].slice(),F=(0,i.z0)((0,o.vt)(),l),j=(0,y.MU)(O.interleavedVertedData,G,U,d&&!I.normal,F),k=O.positions.slice(),Z=function(t,e,n,r,i){let o=n?(0,a.o8)(n):(0,a.vt)();(0,s.lw)(o,e,o);let l=o[0],h=o[1],u=o[2],f=o[4],c=o[5],m=o[6],d=o[8],p=o[9],y=o[10],g=o[12],_=o[13],M=o[14],b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){let n=t[e],o=t[e+1],s=t[e+2],a=n*u+o*m+s*y+M,x=0;if(r>0){let t=n*l+o*f+s*d+g,e=n*h+o*c+s*p+_;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=i,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(k,l,v?.geometries[0]?.transformation,_,h),{buffer:q,byteOffset:H,byteLength:z}=O.positionIndices,Y=1===O.positionIndicesType?new Uint16Array(q,H,z/2).slice():new Uint32Array(q,H,z/4).slice(),V=new g._b(U,j.data,j.indices,O.hasColors,O.hasModifications,{data:k,indices:Y});return L&&n.push(L.buffer),N&&n.push(N.buffer),n.push(j.data),n.push(j.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new g.sQ(N,L,D,B,V,l,O.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;let{context:e,buffer:n}=t,r=w._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,o=new Float64Array(w.HEAPU8.buffer,r,i),s=new Float64Array(n);o.set(s),w.filterOBBs(e,r,i),s.set(o),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,d())}function P(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function N(){w||await L()}async function L(){return w??=await(p??=(async()=>{try{return await(await n.e(2980).then(()=>n(82980))).default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})}catch(t){throw d(),t}})(),p),w}const D={transform:(t,e)=>w&&C(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>M,Ir:()=>y,_b:()=>f,sQ:()=>c});var r=n(53966),i=n(15142),o=n(51850),s=n(35982),a=n(39829),l=n(99917),h=n(27993),u=n(89056);class f{constructor(t,e,n,r,i,o){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=i,this.positionData=o}}class c{constructor(t,e,n,r,i,o,s,a,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=i,this.globalTrafo=o,this.obb=s,this.geometryMinElevation=a,this.geometryMaxElevation=l}}class m extends s.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(let[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(let e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){let r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){let n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new i.A({deallocator:null}),p=(0,o.vt)();function y(t,e,n,i=!1){d.clear();let o=1/0,s=1/0,h=-1/0,f=-1/0,c=!1;for(let t of e){let e="clip"===t.type?2:+("mask"===t.type),m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,l.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){let t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}let M=y;if(i){let t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}let b=1===M.length&&y.length>1?[...y.map(t=>[t]),M]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!_(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{c||=1===e;for(let t of b){d.push(e),d.push(t.length);for(let e of t){d.push(e.length);for(let t of e){let e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),o=Math.min(o,t[0]),s=Math.min(s,t[1]),h=Math.max(h,t[0]),f=Math.max(f,t[1])}}}}}if(null!=t)if(c){let e=1e-4;d.push(2),d.push(2),d.push(4),d.push(o-e),d.push(s-e),d.push(0),d.push(h+e),d.push(s-e),d.push(0),d.push(h+e),d.push(f+e),d.push(0),d.push(o-e),d.push(f+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);let m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){let r=[];for(let i of t){let t=[];for(let r of i){if(!(0,h.F)(r,e,p,n)||!_(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function _(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(let r of e){let e=r.geometry,i=e.rings.length,o=e.rings.some(t=>t.length<3);if(0!==i&&!o){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){let i=e.rings[r];n+=1;for(let o=0;o<i.length;++o){let i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,o,i)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>s,aT:()=>o});var r=n(34727),i=n(35522);function o(t,e,n,r,i,o=2,s=0){let l=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),h=n*l,u=r*l,f=i<=0?(h>=0?1:-1)*(1-Math.abs(u)):h,c=i<=0?(u>=0?1:-1)*(1-Math.abs(h)):u,m=e*o+s;t[m]=a(f),t[m+1]=a(c)}function s(t,e,n,r=2,o=0){let s=n*r+o,a=l(e[s]),h=l(e[s+1]),u=1-Math.abs(a)-Math.abs(h);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(h)),t[1]=(h>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=h),(0,i.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,o=!1,s=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=o,this.divisor=s,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(i),s={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,o,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,s,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,7201],{73354(t,e,n){n.d(e,{a:()=>f,b:()=>a,c:()=>i,d:()=>s,e:()=>c,f:()=>u,l:()=>h,n:()=>m,t:()=>o}),n(44208);var r=n(72727);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=n[0],u=n[1],f=n[2],c=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],_=n[12],M=n[13],b=n[14],v=0,x=0;for(let n=0;n<l;n++){let n=e[v],r=e[v+1],s=e[v+2];t[x]=h*n+c*r+p*s+_,t[x+1]=u*n+m*r+y*s+M,t[x+2]=f*n+d*r+g*s+b,v+=o,x+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=n[0],u=n[1],f=n[2],c=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8],_=0,M=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],s=e[_+2];t[M]=h*n+c*r+p*s,t[M+1]=u*n+m*r+y*s,t[M+2]=f*n+d*r+g*s,_+=o,M+=i}}function l(t,e,n,r=3,i=r){let o=Math.min(t.length/r,e.length/i),s=0,a=0;for(let l=0;l<o;l++)t[a]=n*e[s],t[a+1]=n*e[s+1],t[a+2]=n*e[s+2],s+=i,a+=r;return t}function h(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,i=3,o=i){let s=Math.min(t.length/i,e.length/o),a=0,l=0,h=1/2.2;for(let u=0;u<s;u++)t[l]=r*(n*e[a])**h,t[l+1]=r*(n*e[a+1])**h,t[l+2]=r*(n*e[a+2])**h,a+=o,l+=i}function f(t,e,n,i=3,o=i){let s=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,o,3),l=Math.min(s,a),h=0,u=0;for(let r=0;r<l;r++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=o,u+=i;return t}function c(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),o=0,s=0;for(let a=0;a<i;a++){let i=e[o],a=e[o+1],l=e[o+2],h=i*i+a*a+l*l;if(h>0){let e=1/Math.sqrt(h);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*l}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:m,normalizeView:c,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride,l=0,h=0;for(let t=0;t<r;t++)i[h]=s[l]>>n,i[h+1]=s[l+1]>>n,i[h+2]=s[l+2]>>n,l+=a,h+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),o=(n(44208),n(4718)),s=(n(53966),n(97768)),a=n(88620),l=n(64108);const h=Symbol("ClonableMixin"),u=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=h}clone(t){let e=(0,a.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},l=new Map;for(let e in n){let s=n[e],a=r?.originOf(e),h=s.clonable;if(s.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;let u=this[e],f=null;if("function"==typeof h)f=h(u,t);else if("reference"===h)f=u;else if(f=(0,o.TU)(u,t),null!=u&&null==f)continue;0===a?l.set(e,f):i[e]=f}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let t=(0,a.oY)(h)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return h}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},f=u(i.A);n.d(e,["OU",0,u,"Pw",0,f])},9775(t,e,n){n.d(e,{A:()=>o});var r=n(62788),i=n(95488);class o{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p){return[t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function s(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return o(1,1,1)}function h(){return o(1,0,0)}function u(){return o(0,1,0)}function f(){return o(0,0,1)}n.d(e,{CN:()=>s,ci:()=>a,fA:()=>o,o8:()=>i,vt:()=>r});const c=[0,0,0],m=l(),d=h(),p=u(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:c,clone:i,create:r,freeze:s,fromArray:a,fromValues:o,ones:l,unitX:h,unitY:u,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,c])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>i,ct:()=>h});let r=1e-6;function i(){return r}const o=Math.random,s=Math.PI/180,a=180/Math.PI;function l(t){return t*s}function h(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:h,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,o])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>o,D_:()=>a,N9:()=>M,O7:()=>w,Qw:()=>h,Tl:()=>c,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>_,hZ:()=>s,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>f,mg:()=>l,o1:()=>R,sC:()=>x,t2:()=>O,t5:()=>C,tZ:()=>P,ut:()=>I});var r=n(51850),i=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(t,e,n,r,i,o,s,a,l,h,u,f,c,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=h,t[9]=u,t[10]=f,t[11]=c,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(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 l(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return u(t,e)||a(t),t}function u(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],_=n*a-r*s,M=n*l-i*s,b=n*h-o*s,v=r*l-i*a,x=r*h-o*a,S=i*h-o*l,A=u*p-f*d,R=u*y-c*d,w=u*g-m*d,T=f*y-c*p,C=f*g-m*p,E=c*g-m*y,O=_*E-M*C+b*T+v*w-x*R+S*A;return O?(O=1/O,t[0]=(a*E-l*C+h*T)*O,t[1]=(i*C-r*E-o*T)*O,t[2]=(p*S-y*x+g*v)*O,t[3]=(c*x-f*S-m*v)*O,t[4]=(l*w-s*E-h*R)*O,t[5]=(n*E-i*w+o*R)*O,t[6]=(y*b-d*S-g*M)*O,t[7]=(u*S-c*b+m*M)*O,t[8]=(s*C-a*w+h*A)*O,t[9]=(r*w-n*C-o*A)*O,t[10]=(d*x-p*b+g*_)*O,t[11]=(f*b-u*x-m*_)*O,t[12]=(a*R-s*T-l*A)*O,t[13]=(n*T-r*R+i*A)*O,t[14]=(p*M-d*v-y*_)*O,t[15]=(u*v-f*M+c*_)*O,t):null}function f(t,e,n){let r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=e[8],c=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],_=e[15],M=n[0],b=n[1],v=n[2],x=n[3];return t[0]=M*r+b*a+v*f+x*p,t[1]=M*i+b*l+v*c+x*y,t[2]=M*o+b*h+v*m+x*g,t[3]=M*s+b*u+v*d+x*_,M=n[4],b=n[5],v=n[6],x=n[7],t[4]=M*r+b*a+v*f+x*p,t[5]=M*i+b*l+v*c+x*y,t[6]=M*o+b*h+v*m+x*g,t[7]=M*s+b*u+v*d+x*_,M=n[8],b=n[9],v=n[10],x=n[11],t[8]=M*r+b*a+v*f+x*p,t[9]=M*i+b*l+v*c+x*y,t[10]=M*o+b*h+v*m+x*g,t[11]=M*s+b*u+v*d+x*_,M=n[12],b=n[13],v=n[14],x=n[15],t[12]=M*r+b*a+v*f+x*p,t[13]=M*i+b*l+v*c+x*y,t[14]=M*o+b*h+v*m+x*g,t[15]=M*s+b*u+v*d+x*_,t}function c(t,e,n){let r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{let n=e[0],s=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=l,t[4]=h,t[5]=u,t[6]=f,t[7]=c,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+h*i+m*o+e[12],t[13]=s*r+u*i+d*o+e[13],t[14]=a*r+f*i+p*o+e[14],t[15]=l*r+c*i+y*o+e[15]}return t}function m(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let s=r[0],a=r[1],l=r[2],h=Math.sqrt(s*s+a*a+l*l);if(h<=(0,i.FD)())return void o(t,e);h=1/h,s*=h,a*=h,l*=h;let u=Math.sin(n),f=Math.cos(n),c=1-f,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],_=e[5],M=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=s*s*c+f,w=a*s*c+l*u,T=l*s*c-a*u,C=s*a*c-l*u,E=a*a*c+f,O=l*a*c+s*u,I=s*l*c+a*u,P=a*l*c-s*u,N=l*l*c+f;t[0]=m*R+g*w+v*T,t[1]=d*R+_*w+x*T,t[2]=p*R+M*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+v*O,t[5]=d*C+_*E+x*O,t[6]=p*C+M*E+S*O,t[7]=y*C+b*E+A*O,t[8]=m*I+g*P+v*N,t[9]=d*I+_*P+x*N,t[10]=p*I+M*P+S*N,t[11]=y*I+b*P+A*N,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],l=e[7],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+h*r,t[5]=s*i+u*r,t[6]=a*i+f*r,t[7]=l*i+c*r,t[8]=h*i-o*r,t[9]=u*i-s*r,t[10]=f*i-a*r,t[11]=c*i-l*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],o=n[1],s=n[2],l=Math.sqrt(r*r+o*o+s*s);if(l<=(0,i.FD)())return null;l=1/l,r*=l,o*=l,s*=l;let h=Math.sin(e),u=Math.cos(e),f=1-u;return t[0]=r*r*f+u,t[1]=o*r*f+s*h,t[2]=s*r*f-o*h,t[3]=0,t[4]=r*o*f-s*h,t[5]=o*o*f+u,t[6]=s*o*f+r*h,t[7]=0,t[8]=r*s*f+o*h,t[9]=o*s*f-r*h,t[10]=s*s*f+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){let r=e[0],i=e[1],o=e[2],s=e[3],a=r+r,l=i+i,h=o+o,u=r*a,f=r*l,c=r*h,m=i*l,d=i*h,p=o*h,y=s*a,g=s*l,_=s*h;return t[0]=1-(m+p),t[1]=f+_,t[2]=c-g,t[3]=0,t[4]=f-_,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=c+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],l=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+s*s+a*a),t[2]=Math.sqrt(l*l+h*h+u*u),t}function A(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){let i=e[0],o=e[1],s=e[2],a=e[3],l=i+i,h=o+o,u=s+s,f=i*l,c=i*h,m=i*u,d=o*h,p=o*u,y=s*u,g=a*l,_=a*h,M=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(c+M)*b,t[2]=(m-_)*b,t[3]=0,t[4]=(c-M)*v,t[5]=(1-(f+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+_)*x,t[9]=(p-g)*x,t[10]=(1-(f+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,i){let o=e[0],s=e[1],a=e[2],l=e[3],h=o+o,u=s+s,f=a+a,c=o*h,m=o*u,d=o*f,p=s*u,y=s*f,g=a*f,_=l*h,M=l*u,b=l*f,v=r[0],x=r[1],S=r[2],A=i[0],R=i[1],w=i[2],T=(1-(p+g))*v,C=(m+b)*v,E=(d-M)*v,O=(m-b)*x,I=(1-(c+g))*x,P=(y+_)*x,N=(d+M)*S,L=(y-_)*S,D=(1-(c+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=O,t[5]=I,t[6]=P,t[7]=0,t[8]=N,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+A-(T*A+O*R+N*w),t[13]=n[1]+R-(C*A+I*R+L*w),t[14]=n[2]+w-(E*A+P*R+D*w),t[15]=1,t}function T(t,e,n,r,i,o,s){let a=1/(n-e),l=1/(i-r),h=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*l,t[10]=(s+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*h,t[15]=0,t}function C(t,e,n,r){let o=e[0],s=e[1],l=e[2],h=o-n[0],u=s-n[1],f=l-n[2],c=(0,i.FD)();if(Math.abs(h)<c&&Math.abs(u)<c&&Math.abs(f)<c)return void a(t);let m=1/Math.sqrt(h*h+u*u+f*f);h*=m,u*=m,f*=m;let d=r[0],p=r[1],y=r[2],g=p*f-y*u,_=y*h-d*f,M=d*u-p*h;m=Math.sqrt(g*g+_*_+M*M),m?(m=1/m,g*=m,_*=m,M*=m):(g=0,_=0,M=0);let b=u*M-f*_,v=f*g-h*M,x=h*_-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=h,t[3]=0,t[4]=_,t[5]=v,t[6]=u,t[7]=0,t[8]=M,t[9]=x,t[10]=f,t[11]=0,t[12]=-(g*o+_*s+M*l),t[13]=-(b*o+v*s+x*l),t[14]=-(h*o+u*s+f*l),t[15]=1}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function O(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function I(t){let e=(0,i.FD)(),n=t[0],r=t[1],o=t[2],s=t[4],a=t[5],l=t[6],h=t[8],u=t[9],f=t[10];return Math.abs(1-(n*n+s*s+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(o*o+l*l+f*f))<=e}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 N=f,L=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(c*g-m*y)-f*(l*g-h*y)+p*(l*m-h*c),t[1]=-(r*(c*g-m*y)-f*(i*g-o*y)+p*(i*m-o*c)),t[2]=r*(l*g-h*y)-a*(i*g-o*y)+p*(i*h-o*l),t[3]=-(r*(l*m-h*c)-a*(i*m-o*c)+f*(i*h-o*l)),t[4]=-(s*(c*g-m*y)-u*(l*g-h*y)+d*(l*m-h*c)),t[5]=n*(c*g-m*y)-u*(i*g-o*y)+d*(i*m-o*c),t[6]=-(n*(l*g-h*y)-s*(i*g-o*y)+d*(i*h-o*l)),t[7]=n*(l*m-h*c)-s*(i*m-o*c)+u*(i*h-o*l),t[8]=s*(f*g-m*p)-u*(a*g-h*p)+d*(a*m-h*f),t[9]=-(n*(f*g-m*p)-u*(r*g-o*p)+d*(r*m-o*f)),t[10]=n*(a*g-h*p)-s*(r*g-o*p)+d*(r*h-o*a),t[11]=-(n*(a*m-h*f)-s*(r*m-o*f)+u*(r*h-o*a)),t[12]=-(s*(f*y-c*p)-u*(a*y-l*p)+d*(a*c-l*f)),t[13]=n*(f*y-c*p)-u*(r*y-i*p)+d*(r*c-i*f),t[14]=-(n*(a*y-l*p)-s*(r*y-i*p)+d*(r*l-i*a)),t[15]=n*(a*c-l*f)-s*(r*c-i*f)+u*(r*l-i*a),t},copy:o,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],h=t[8],u=t[9],f=t[10],c=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*s-n*o)*(f*y-c*p)-(e*a-r*o)*(u*y-c*d)+(e*l-i*o)*(u*p-f*d)+(n*a-r*s)*(h*y-c*m)-(n*l-i*s)*(h*p-f*m)+(r*l-i*a)*(h*d-u*m)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],f=t[8],c=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],_=t[15],M=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],O=e[11],I=e[12],P=e[13],N=e[14],L=e[15],D=(0,i.FD)();return Math.abs(n-M)<=D*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-b)<=D*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(o-v)<=D*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-x)<=D*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(a-S)<=D*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-A)<=D*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-R)<=D*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-w)<=D*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(f-T)<=D*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(m-E)<=D*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-O)<=D*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-I)<=D*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(y-P)<=D*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(g-N)<=D*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(_-L)<=D*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:O,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,l=i+i,h=n*s,u=r*s,f=r*a,c=i*s,m=i*a,d=i*l,p=o*s,y=o*a,g=o*l;return t[0]=1-f-d,t[1]=u+g,t[2]=c-y,t[3]=0,t[4]=u-g,t[5]=1-h-d,t[6]=m+p,t[7]=0,t[8]=c+y,t[9]=m-p,t[10]=1-h-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],i=-e[1],o=-e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=r*r+i*i+o*o+s*s;return f>0?(n[0]=2*(a*s+u*r+l*o-h*i)/f,n[1]=2*(l*s+u*i+h*r-a*o)/f,n[2]=2*(h*s+u*o+a*i-l*r)/f):(n[0]=2*(a*s+u*r+l*o-h*i),n[1]=2*(l*s+u*i+h*r-a*o),n[2]=2*(h*s+u*o+a*i-l*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:P,identity:a,invert:u,invertOrIdentity:h,isOrthoNormal:I,lookAt:C,mul:N,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,s){let a=1/(e-n),l=1/(r-i),h=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*l,t[14]=(s+o)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+a),h=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(s-a)*l*.5,t[9]=(i-o)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],l=e[3],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-h*r,t[1]=s*i-u*r,t[2]=a*i-f*r,t[3]=l*i-c*r,t[8]=o*r+h*i,t[9]=s*r+u*i,t[10]=a*r+f*i,t[11]=l*r+c*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+h*r,t[1]=s*i+u*r,t[2]=a*i+f*r,t[3]=l*i+c*r,t[4]=h*i-o*r,t[5]=u*i-s*r,t[6]=f*i-a*r,t[7]=c*i-l*r,t},scale:m,set:s,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:L,subtract:E,targetTo:function(t,e,n,r){let i=e[0],o=e[1],s=e[2],a=r[0],l=r[1],h=r[2],u=i-n[0],f=o-n[1],c=s-n[2],m=u*u+f*f+c*c;m>0&&(m=1/Math.sqrt(m),u*=m,f*=m,c*=m);let d=l*c-h*f,p=h*u-a*c,y=a*f-l*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=f*y-c*p,t[5]=c*d-u*y,t[6]=u*p-f*d,t[7]=0,t[8]=u,t[9]=f,t[10]=c,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},translate:c,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>o,C:()=>s,Cc:()=>w,DI:()=>x,Io:()=>_,Ln:()=>g,Om:()=>A,Qr:()=>f,Re:()=>h,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>O,gL:()=>E,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>D,t2:()=>N,tn:()=>c,ze:()=>v});var r=n(51850),i=n(34304);function o(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function _(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){let r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function w(t,e,n,r){let i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function T(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function C(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){return O(t,e,n[0],n[1],n[2],n[3])}function O(t,e,n,r,i,o){let s=e[0],a=e[1],l=e[2],h=r*l-i*a,u=i*s-n*l,f=n*a-r*s,c=r*f-i*u,m=i*h-n*f,d=n*u-r*h,p=2*o;return t[0]=s+h*p+2*c,t[1]=a+u*p+2*m,t[2]=l+f*p+2*d,t}const I=(0,r.vt)(),P=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],h=(0,i.FD)();return Math.abs(n-s)<=h*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2],s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=h,G=u,U=f,F=_,j=M,k=o,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(t,e){S(I,t),S(P,e);let n=A(I,P);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){let s=1-o,a=s*s,l=o*o,h=a*s,u=3*o*a,f=3*l*s,c=l*o;return t[0]=e[0]*h+n[0]*u+r[0]*f+i[0]*c,t[1]=e[1]*h+n[1]*u+r[1]*f+i[1]*c,t[2]=e[2]*h+n[2]*u+r[2]*f+i[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:R,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],h=i*l-o*a,u=o*s-r*l,f=r*a-i*s,c=Math.sqrt(h*h+u*u+f*f);return t[0]=h/c,t[1]=u/c,t[2]=f/c,t},direction:D,dist:F,distance:_,div:U,divide:f,dot:A,equals:L,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){let s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,h=s*(o-1),u=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*h+i[0]*u,t[1]=e[1]*a+n[1]*l+r[1]*h+i[1]*u,t[2]=e[2]*a+n[2]*l+r[2]*h+i[2]*u,t},inverse:x,len:k,length:o,lerp:w,max:p,min:d,mul:G,multiply:u,negate:v,normalize:S,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/k(t))},set:a,sign:m,sqrDist:j,sqrLen:Z,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:h,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:O},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,k,"jb",0,B,"lo",0,j,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),i=n(71511),o=n(36563),s=n(53966),a=n(97768),l=n(17676),h=n(83027);class u{constructor(t,e,n,r,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(t,{...i,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(let e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){let n=new f(t,e);return this._listeners.push(n),this._connectListener(n),(0,o.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){let i=this._transferLists[t],o=i?i(e):[];return this._thread.invoke(t,e,{transferList:o,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(c):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class f{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function c(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,i=n(32198),o=n(4576),s=n(4718),a=n(91429),l=n(5443),h=n(91075),u=n(86738),f=n(16930),c=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,s.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,s.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,o.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),o=n(4718),s=n(91429),a=n(5443),l=n(91075),h=n(86738),u=n(16930),f=n(90634),c=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,o.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,o.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,o.o8)(this.paths),t.curvePaths=(0,o.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new h.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new h.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new h.A(n[0],n[1],n[2],n[3],this.spatialReference):new h.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)&&((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new h.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new h.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)&&((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths")),this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,s.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>s});var r=n(51850),i=n(99917),o=n(9762);function s(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);let s=(0,i.tryProject)(t,n,r);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),i=n(16930),o=n(9762),s=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,o.projectBuffer)(t,e,0,n,i,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,i)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>h,jh:()=>o,l5:()=>a,yH:()=>l});var r=n(34275),i=n(9093);function o(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function l(t,e){if(0===e.length)return s(t);if(0===t.length)return s(e);let n=o(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function u(t){let e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>h});var r,i=n(32198),o=n(69540),s=n(25482),a=n(91429),l=n(93223);let h=class extends((0,o.OU)(s.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],h.prototype,"origin",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],h)},18251(t,e,n){n.d(e,{A:()=>h});var r=n(32198),i=n(69540),o=n(25482),s=n(91429),a=n(51850),l=n(93223);let h=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],h)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},52006(t,e,n){function r(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function o(t){return"b"in t}function s(t){return"c"in t}function a(t){return Array.isArray(t)}function l(t){return"a"in t}function h(t){return"a"in t&&4===t.a.length}function u(t){return"a"in t&&7===t.a.length}function f(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(o(t)?e.has("cubic-bezier"):s(t)?e.has("circular-arc"):!h(t)&&!u(t)||e.has("elliptic-arc")))}(t,e))}function c(t){return a(t)?t:o(t)?t.b[0]:s(t)?t.c[0]:t.a[0]}function m(t){if(o(t)){let[e,n,r]=t.b;return{b:[[...e],[...n],[...r]]}}if(s(t)){let[e,n]=t.c;return{c:[[...e],[...n]]}}if(a(t))return[...t];if(h(t)){let[e,n,r,i]=t.a;return{a:[[...e],[...n],r,i]}}if(u(t)){let[e,n,r,i,o,s,a]=t.a;return{a:[[...e],[...n],r,i,o,s,a]}}return t}n.d(e,{DA:()=>h,Ed:()=>r,FD:()=>i,FG:()=>l,V8:()=>f,Xq:()=>a,aO:()=>s,n1:()=>o,tk:()=>m,wY:()=>u,yP:()=>c}),n(4576)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function o(t){return void 0!==t.x&&void 0!==t.y}function s(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?o(t)?"esriGeometryPoint":s(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>s,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>o,uW:()=>l})},65864(t,e,n){n.d(e,{rS:()=>u,xD:()=>c});var r=n(5443),i=n(91075),o=n(48526),s=n(86738),a=n(39829),l=n(82799),h=n(60408);function u(t){return null==t?null:t instanceof i.A?t:(0,h.fT)(t)?s.A.fromJSON(t):(0,h.Rg)(t)?l.A.fromJSON(t):(0,h.Bi)(t)?a.A.fromJSON(t):(0,h.U9)(t)?o.A.fromJSON(t):(0,h.ZC)(t)?r.A.fromJSON(t):null}const f={esriGeometryPoint:s.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:o.A,esriGeometryMultiPatch:a.A};function c(t){return t&&f[t]||null}},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>l});var r=n(82799),i=n(16930),o=n(60408),s=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,s.Ed)(t))for(let n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(let t of n)if((0,s.aO)(t)){let[n,r]=t.c;n[0]+=e,r[0]+=e}else if((0,s.FG)(t)){let[n,r]=t.a;n[0]+=e,r[0]+=e}else if((0,s.n1)(t)){let[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e}else t[0]+=e;for(let n of function(t){return(0,o.Bi)(t)?t.rings:t.paths}(t))for(let t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>f,jZ:()=>u});var r=n(12195),i=n(19419),o=n(537),s=n(95108),a=n(60408),l=n(80754),h=n(21325);function u(t){return c(t,!0)}function f(t){return c(t,!1)}function c(t,e){if(null==t)return null;let n=t.spatialReference,i=(0,h.Vp)(n),s=(0,r.W)(t)?t.toJSON():t;if(!i)return s;let u=(0,h.K8)(n)?102100:4326,f=l.j7[u].maxX,c=l.j7[u].minX;if((0,a.fT)(s))return d(s,f,c);if((0,a.U9)(s))return s.points=s.points.map(t=>d(t,f,c)),s;if((0,a.ZC)(s))return m(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){let t=(0,o.Rg)(b,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,c),i=2*f*r,a=0===i?s:(0,l.kS)(s,i);return n.xmin+=i,n.xmax+=i,n.xmax>f?_(a,f,e):n.xmin<c?_(a,c,e):a}return s}function m(t,e){if(!e)return t;let n=function(t,e){let n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:u,frameId:f}=p(t.xmin,e),{x:c,frameId:m}=p(t.xmax,e),d=u===c&&a>0;if(a>2*h){let t={xmin:o<s?u:c,ymin:r,xmax:h,ymax:i},e={xmin:l,ymin:r,xmax:o<s?c:u,ymax:i},a={xmin:0,ymin:r,xmax:h,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},p=[],g=[];y(t,a)&&p.push(f),y(t,d)&&g.push(f),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=f+1;t<m;t++)p.push(t),g.push(t);n.push(new M(t,[f]),new M(e,[m]),new M(a,p),new M(d,g))}else u>c||d?n.push(new M({xmin:u,ymin:r,xmax:h,ymax:i},[f]),new M({xmin:l,ymin:r,xmax:c,ymax:i},[m])):n.push(new M({xmin:u,ymin:r,xmax:c,ymax:i},[f]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){let r=t[0];if(r>e){let n=(0,l.kd)(r,e);t[0]=r+-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t[0]=r+-2*n*e}}else{let r=t.x;if(r>e){let n=(0,l.kd)(r,e);t.x+=-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t.x+=-2*n*e}}return t}function p(t,e){let n,[r,i]=e.valid,o=2*i,s=0;return t>i?(n=Math.ceil(Math.abs(t-i)/o),t-=n*o,s=n):t<r&&(n=Math.ceil(Math.abs(t-r)/o),t+=n*o,s=-n),{x:t,frameId:s}}function y(t,e){let{xmin:n,ymin:r,xmax:i,ymax:o}=e;return g(t,n,r)&&g(t,n,o)&&g(t,i,o)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){let r=!(0,a.Rg)(t);if(r&&(0,s.m3)(t),n)return(new v).cut(t,e);let i=r?t.rings:t.paths,o=r?4:2,l=i.length,h=-2*e;for(let t=0;t<l;t++){let e=i[t];if(e&&e.length>=o){let t=[];for(let[n,...r]of e)t.push([n+h,...r]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class M{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,i.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(let t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(let n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);let r=-2*this._xCut;for(let t of this._linesOut)if(t&&t.length>=this._minPts){for(let e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){let e=this._side(t[0]);if(e*this._prevSide===-1){let n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){let t=this._firstPt,e=this._prevPt;(t[0]!==e[0]||t[1]!==e[1])&&this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){let e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:+(t>this._xCut)}_intersect(t,e){let n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let o=2;o<i;o++)r.push(t[o]+n*(e[o]-t[o]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){let n=t.slice();return n[0]=e,n}function S(t,e,n){let r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>O,F8:()=>E,J2:()=>R,Yq:()=>T,_m:()=>w,iS:()=>C,wj:()=>I});var r=n(66552),i=n(73444),o=n(98623),s=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},_={...p,...y},M={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...d},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...p},"long-month-day-year-long-time-24":{...f,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...d},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function x(){let t=(0,i.lR)();return(t&&v[t])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:t})=>"month"===t)?.value.toLowerCase()&&(v.bs="sr-Latn-CS");let S=new WeakMap;const A=M["short-date-short-time"];function R(t){return M[t]}function w(t){let{dateStyle:e,timeStyle:n,hour12:r,year:i,month:o}=t,s={};return e?s.dateStyle=e:i&&(s.year=i,s.month=o||void 0),n&&!s.year&&(s.timeStyle=n,s.hour12="auto"===r?void 0:"always"===r),s}function T(t,e=A){return function(t){let e=S.get(t);if(!e){let n=x(),r=I(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),S.set(t,e)}return e}(e).format(t)}function C(t,e=A){return T(new Date(t),{...e,...h,...l})}function E(t,e=A){return T(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function O(t,e=A){let n=s.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return T(n.toJSDate(),e);let r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:x()})}function I(t){switch(t){case"system":return o.N;case o.L:return"UTC";default:return t}}(0,i.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>f,lR:()=>u,oQ:()=>d});var r=n(36563);let i;n(44208);const o=globalThis.esriConfig?.locale,s=globalThis.document?.documentElement;function a(){let t=s?.getAttribute("lang"),e=globalThis.navigator?.language;return o??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=l()){return c(t)?.language}function f(t=l()){let e=c(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function c(t=l()){return h.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){let t=a();i!==t&&([...p].forEach(e=>e(t)),i=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),s&&new MutationObserver(()=>{g()}).observe(s,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>f,MU:()=>u,yf:()=>m});var r=n(35522),i=n(51850),o=n(10614),s=n(63907),a=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class h{constructor(t,e,n,r,i){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=i}}function u(t,e,n,h,u){return!h||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,s){let a=new l(t.slice().buffer,e);if(!s)return a;let h=n[0].stride,u=a.data.byteLength/h;for(let t of n)if("normalCompressed"===t.name){let{offset:e}=t,n=new Int16Array(a.data),l=(0,i.vt)();for(let t=0;t<u;++t)(0,o.Tz)(l,n,t,h/2,e/2),(0,r.ei)(l,l,s),(0,o.aT)(n,t,l[0],l[1],l[2],h/2,e/2)}else if("normal"===t.name){let{offset:e}=t,n=new Float32Array(a.data),o=(0,i.vt)();for(let t=0;t<u;++t){let i=(t*h+e)/4;o[0]=n[i],o[1]=n[i+1],o[2]=n[i+2],(0,r.ei)(o,o,s),n[i]=o[0],n[i+1]=o[1],n[i+2]=o[2]}}return a}(t,e,n,u):function(t,e,n,r){let i=n[0].stride,o=i/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),h=t.byteLength/i,u=1<n.length?n[1].offset/4:o,m=i+4;return n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,s.pe.SHORT,12,m,!0)),c(l,h,u,i,m,f(e,l,o,r))}(t,e,n,u)}function f(t,e,n,r){let i=t.length/3,o=e.length/n,{faceNormals:s,faceAreas:a,faceEdges:l,edgeFaces:h,vertexFaces:u,vertexFaceCountAndOffset:f}=function(t,e,n,r,i,o){let s=new Float32Array(3*i),a=new Float32Array(i),l=new Uint32Array(3*i),h=new Int32Array(2*(3*i)),u=3*i,f=new Uint32Array(u),c=new Uint32Array(2*n);for(let t=0;t<i;++t){let e=3*t;for(let t=0;t<3;++t)++c[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){let n=2*e;c[n+1]=t,t+=c[n]}for(let t=0;t<i;++t){let e=3*t;for(let n=0;n<3;++n)f[c[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)c[2*t+1]-=c[2*t]}let m=0,d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){let e=2*t,n=4*c[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){let r=Math.min(t,e),i=Math.max(t,e),o=t<e?0:1,s=2*r,a=p[s],l=p[s+1],u=-1;for(let t=a;t<l;t+=2)if(d[t]===i){u=d[t+1];break}return-1===u&&(u=m++,d[l]=i,d[l+1]=u,p[s+1]=l+2,h[2*u+(1-o)]=-1),h[2*u+o]=n,u}for(let n=0;n<r.length;n+=3){let i=r[n],h=i*e,u=t[h],f=t[h+1],c=t[h+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],_=t[d+2],M=r[n+2],b=M*e,v=u-p,x=f-g,S=c-_,A=u-t[b],R=f-t[b+1],w=c-t[b+2],T=x*w-S*R,C=S*A-v*w,E=v*R-x*A,O=Math.sqrt(T*T+C*C+E*E)||1,I=n/3;a[I]=.5*O;let P=1/O;if(o){let t=o[0]*T+o[3]*C+o[6]*E,e=o[1]*T+o[4]*C+o[7]*E,n=o[2]*T+o[5]*C+o[8]*E;s[3*I]=t*P,s[3*I+1]=e*P,s[3*I+2]=n*P}else s[3*I]=T*P,s[3*I+1]=C*P,s[3*I+2]=E*P;let N=y(i,m,I),L=y(m,M,I),D=y(M,i,I);l[3*I]=N,l[3*I+1]=L,l[3*I+2]=D}return{faceNormals:s,faceAreas:a,faceEdges:l,vertexFaces:f,vertexFaceCountAndOffset:c,edgeFaces:h}}(e,n,o,t,i,r);return function(t,e,n,r,i,o){let s=new Uint8Array(e),a=new Uint32Array(e),l=new Uint32Array(3*e),h=0,u=new Uint32Array(e),f=0;for(let e=0;e<t.length;e+=3){let t=e/3;if(1===s[t])continue;s[t]=1;let c=n[3*t],m=n[3*t+1],d=n[3*t+2];for(f=0,u[f++]=t,l[0]=i[3*t],l[1]=i[3*t+1],l[2]=i[3*t+2],h=3,a[t]=t+1;h>0;){let e=l[--h];for(let r=0;r<2;++r){let y=o[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;let g=n[3*y],_=n[3*y+1],M=n[3*y+2];if(Math.abs(1-(c*g+m*_+d*M))<p){u[f++]=y,s[y]=1;for(let t=0;t<3;++t){let n=i[3*y+t];n!==e&&(l[h++]=n)}}}}if(f>1){let t=0,e=0,i=0,o=0;for(let s=0;s<f;++s){let a=u[s],l=r[a];t+=l,e+=n[3*a]*l,i+=n[3*a+1]*l,o+=n[3*a+2]*l}let s=Math.sqrt(e*e+i*i+o*o)||1;e/=s,i/=s,o/=s;for(let s=0;s<f;++s){let a=u[s];n[3*a]=e,n[3*a+1]=i,n[3*a+2]=o,r[a]=t}}}}(t,i,s,a,l,h),d(i,o,t,s,a,u,f)}function c(t,e,n,r,i,o){let s=r/4,a=i/4,h=o.outputVertexCount,u=new Float32Array(h*a),f=new Uint32Array(u.buffer),c=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,i,o,s){for(let a=0;a<o;++a){let o=a*i,l=a*e;for(let e=0;e<n;++e)t[l+e]=r[o+e];t[l+n]=s[a];for(let e=n;e<i;++e)t[l+e+1]=r[o+e]}}(f,a,n,c,s,e,o.packedNormals),m(f,a,n,c,s,e,h,o.appendedVertexToOriginal,o.packedNormals,!0),new l(u.buffer,o.indices)}function m(t,e,n,r,i,o,s,a,l,h){for(let u=o;u<s;++u){let s=a[u-o]*i,f=u*e;for(let e=0;e<i;++e)t[f+e+(h&&e>=n?1:0)]=r[s+e];t[f+n]=l[u]}}function d(t,e,n,r,i,o,s){let a=3*t,l=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n),u=e,f=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),c=new ArrayBuffer(4*a),m=new Int16Array(c),d=new Uint32Array(c),p=0,g=0,_=new Uint32Array(t),M=0,b=1-y;for(let t=0;t<e;++t){p=s[2*t+1],g=p+s[2*t];let n=t;for(;p<g;){{let t=o[--g],e=3*t,s=r[e],a=r[e+1],l=r[e+2];M=0,_[M++]=t;let h=p;for(;h<g;){let t=o[h],e=3*t;if(s*r[e]+a*r[e+1]+l*r[e+2]>b){_[M++]=t;let e=--g;if(h<e){o[h]=o[e];continue}}++h}let u=0,f=0,c=0;if(1===M)u=s,f=a,c=l;else{for(let t=0;t<M;++t){let e=_[t],n=i[e],o=3*e;u+=r[o]*n,f+=r[o+1]*n,c+=r[o+2]*n}let t=Math.sqrt(u*u+f*f+c*c)||1;u/=t,f/=t,c/=t}{let t=1/(Math.abs(u)+Math.abs(f)+Math.abs(c)),e=u*t,r=f*t,i=e,o=r;c<=0&&(i=(e>=0?1:-1)*(1-Math.abs(r)),o=(r>=0?1:-1)*(1-Math.abs(e)));let s=2*n,a=Math.round(32767*i),l=Math.round(32767*o);m[s]=a<-32767?-32767:a>32767?32767:a,m[s+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<M;++e){let r=3*_[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(p>=g)break;n=u++,f[n-e]=t}}return new h(l,d,f,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>R,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>O,initialize:()=>N,interpretObbModificationResults:()=>E,process:()=>_,project:()=>S,setLegacySchema:()=>x,setModifications:()=>v,setModificationsSync:()=>T,test:()=>D,transformNormals:()=>A});var r=n(34727),i=n(77690),o=n(29242),s=n(58083),a=n(9093),l=n(16930),h=n(4197),u=n(95696),f=n(18251),c=n(73354),m=n(2741);function d(){p=null}let p;var y=n(89606),g=n(98697);async function _(t){w=await L();let e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();let e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=w._malloc(r),o=new Uint8Array(w.HEAPU8.buffer,i,r);o.set(new Uint8Array(n));let s=w.dracoDecompressPointCloudData(i,o.byteLength);if(w._free(i),s.error.length>0)throw Error(`i3s.wasm: ${s.error}`);let a=s.featureIds?.length>0?s.featureIds.slice():null,l=s.positions.slice();return a&&e.push(a.buffer),e.push(l.buffer),{result:{positions:l,featureIds:a},transferList:e}}async function b(t){await L(),O(t);let e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function v(t){await L(),T(t)}async function x(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function S(t){let e,{localMatrix:r,origin:i,positions:o,vertexSpace:s}=t,a=l.A.fromJSON(t.inSpatialReference),c=l.A.fromJSON(t.outSpatialReference),m=r?(0,h.Vj)(r):void 0,d=(0,h.cj)(i),[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(a,c);let g=[0,0,0];if(!p(d,a,0,g,c,0))throw Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(e=new Float64Array(o.length),!p(o,a,0,e,c,0,e.length/3))throw Error("Failed to project")}else{let t="georeferenced"===s.type?u.A.fromJSON(s):f.A.fromJSON(s),{projectMeshVertexPositions:r}=await Promise.all([n.e(2258),n.e(2346)]).then(()=>n(74594)),i=r({vertexAttributes:{position:o},transform:m?{localMatrix:m}:void 0,vertexSpace:t,spatialReference:a},c);if(!i)throw Error("Failed to project");e=i}let _=e.length,[M,b,v]=g;for(let t=0;t<_;t+=3)e[t]-=M,e[t+1]-=b,e[t+2]-=v;return{result:{projected:e,original:o,projectedOrigin:g},transferList:[e.buffer,o.buffer]}}async function A({normalMatrix:t,normals:e}){let n=new Float32Array(e.length);return(0,c.b)(n,e,t),(0,r.or)(t)&&(0,c.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function R(t){I(t)}let w;function T(t){if(!w)return;let e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){let{context:r,globalTrafo:l,geometryElevationOffset:h,mbs:u,obbData:f,layouts:c,needNormals:m,computeNormals:d,elevationOffset:p,planetRadiusInGlobalMode:_,geometryBuffer:M,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(M.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,M.byteLength);T.set(new Uint8Array(M));let C=new Float64Array(t.HEAPU8.buffer,w,33);P(C,[NaN,NaN,NaN],0);let E=3;P(C,l,E),E+=16,P(C,u.center,E),E+=3,C[E++]=u.radius,f&&P(C,f,E++);let O={isDraco:!1,isLegacy:!1,color:c.some(t=>t.some(t=>"color"===t.name)),normal:m&&c.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:c.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:c.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},I=t.process(r,!!f,R,T.byteLength,b,O,w,p,x,S,A);if(t._free(w),t._free(R),I.error.length>0)throw Error(`i3s.wasm: ${I.error}`);if(I.discarded)return null;let N=I.componentOffsets.length>0?I.componentOffsets.slice():null,L=I.featureIds.length>0?I.featureIds.slice():null,D=I.anchorIds.length>0?Array.from(I.anchorIds):null,B=I.anchors.length>0?Array.from(I.anchors):null,G=1===I.indicesType?new Uint16Array(I.indices.buffer,I.indices.byteOffset,I.indices.byteLength/2).slice():new Uint32Array(I.indices.buffer,I.indices.byteOffset,I.indices.byteLength/4).slice(),U=c[0].slice(),F=(0,i.z0)((0,o.vt)(),l),j=(0,y.MU)(I.interleavedVertedData,G,U,d&&!O.normal,F),k=I.positions.slice(),Z=function(t,e,n,r,i){let o=n?(0,a.o8)(n):(0,a.vt)();(0,s.lw)(o,e,o);let l=o[0],h=o[1],u=o[2],f=o[4],c=o[5],m=o[6],d=o[8],p=o[9],y=o[10],g=o[12],_=o[13],M=o[14],b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){let n=t[e],o=t[e+1],s=t[e+2],a=n*u+o*m+s*y+M,x=0;if(r>0){let t=n*l+o*f+s*d+g,e=n*h+o*c+s*p+_;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=i,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(k,l,v?.geometries[0]?.transformation,_,h),{buffer:q,byteOffset:H,byteLength:z}=I.positionIndices,Y=1===I.positionIndicesType?new Uint16Array(q,H,z/2).slice():new Uint32Array(q,H,z/4).slice(),V=new g._b(U,j.data,j.indices,I.hasColors,I.hasModifications,{data:k,indices:Y});return L&&n.push(L.buffer),N&&n.push(N.buffer),n.push(j.data),n.push(j.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new g.sQ(N,L,D,B,V,l,I.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function O(t){if(!w)return;let{context:e,buffer:n}=t,r=w._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,o=new Float64Array(w.HEAPU8.buffer,r,i),s=new Float64Array(n);o.set(s),w.filterOBBs(e,r,i),s.set(o),w._free(r)}function I(t){0===w?.destroy(t)&&(w=null,d())}function P(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function N(){w||await L()}async function L(){return w??=await(p??=(async()=>{try{return await(await n.e(2980).then(()=>n(82980))).default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})}catch(t){throw d(),t}})(),p),w}const D={transform:(t,e)=>w&&C(w,t,e),destroy:I}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>M,Ir:()=>y,_b:()=>f,sQ:()=>c});var r=n(53966),i=n(15142),o=n(51850),s=n(35982),a=n(39829),l=n(99917),h=n(27993),u=n(89056);class f{constructor(t,e,n,r,i,o){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=i,this.positionData=o}}class c{constructor(t,e,n,r,i,o,s,a,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=i,this.globalTrafo=o,this.obb=s,this.geometryMinElevation=a,this.geometryMaxElevation=l}}class m extends s.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(let[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(let e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){let r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){let n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new i.A({deallocator:null}),p=(0,o.vt)();function y(t,e,n,i=!1){d.clear();let o=1/0,s=1/0,h=-1/0,f=-1/0,c=!1;for(let t of e){let e="clip"===t.type?2:+("mask"===t.type),m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,l.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){let t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}let M=y;if(i){let t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}let b=1===M.length&&y.length>1?[...y.map(t=>[t]),M]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!_(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{c||=1===e;for(let t of b){d.push(e),d.push(t.length);for(let e of t){d.push(e.length);for(let t of e){let e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),o=Math.min(o,t[0]),s=Math.min(s,t[1]),h=Math.max(h,t[0]),f=Math.max(f,t[1])}}}}}if(null!=t)if(c){let e=1e-4;d.push(2),d.push(2),d.push(4),d.push(o-e),d.push(s-e),d.push(0),d.push(h+e),d.push(s-e),d.push(0),d.push(h+e),d.push(f+e),d.push(0),d.push(o-e),d.push(f+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);let m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){let r=[];for(let i of t){let t=[];for(let r of i){if(!(0,h.F)(r,e,p,n)||!_(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function _(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(let r of e){let e=r.geometry,i=e.rings.length,o=e.rings.some(t=>t.length<3);if(0!==i&&!o){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){let i=e.rings[r];n+=1;for(let o=0;o<i.length;++o){let i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,o,i)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>s,aT:()=>o});var r=n(34727),i=n(35522);function o(t,e,n,r,i,o=2,s=0){let l=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),h=n*l,u=r*l,f=i<=0?(h>=0?1:-1)*(1-Math.abs(u)):h,c=i<=0?(u>=0?1:-1)*(1-Math.abs(h)):u,m=e*o+s;t[m]=a(f),t[m+1]=a(c)}function s(t,e,n,r=2,o=0){let s=n*r+o,a=l(e[s]),h=l(e[s+1]),u=1-Math.abs(a)-Math.abs(h);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(h)),t[1]=(h>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=h),(0,i.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,o=!1,s=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=o,this.divisor=s,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(i),s={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,o,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,s,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575,6956],{69052(e,t,i){i.d(t,{hr:()=>n});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return s(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+o(this.range,e-t,i)}minimalMonotonic(e,t,i){return s(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function s(e,t,i,r,n=0,s=!1){return(r-=n)<t?r+=o(e,t-r):r>i&&(r-=o(e,r-i)),s&&r===i&&(r=t),r+n}function o(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360));i.d(t,["ie",0,l,"uC",0,a])},18370(e,t,i){i.d(t,{z:()=>n});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function n(e){return new r(e)}},52039(e,t,i){i.d(t,{O7:()=>d,el:()=>p});var r=i(69052),n=(i(49186),i(18370)),s=i(17676),o=(i(5443),i(39829)),a=(i(82799),i(16930)),l=(i(80754),i(21325));async function p(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let n=(0,l.Vp)(r);if(!n)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(n);return["xmin"in t?t:new o.A(t)]}let[a,p]=n.valid,d=!1;for(let t of e){if(!t)continue;if("point"===t.type){d||=t.x>=p,d||=t.x<=a;continue}let{extent:e}=t;if(null==e){d=!0;break}d||=e.xmin>=p,d||=e.xmin<=a,d||=e.xmax>=p,d||=e.xmax<=a}if(!d)return e;let[{foldInto360Range:y},c]=await(0,s.qr)(Promise.all([u.getImportPromise(),m.getImportPromise()]),i),h=c.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=c.fromGeometry(e),i=c.toGeometry(y(t,h),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const u=(0,n.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),m=(0,n.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function d(e,t,i){let r=(0,l.Vp)(i);if(null==r)return e;let[n,s]=r.valid,o=2*s,a=0,p=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o)),e>s?p=Math.ceil(Math.abs(e-s)/o):e<n&&(p=-Math.ceil(Math.abs(e-n)/o));let u=e+(a-p)*o,m=u-t;return m>s?u-=o:m<n&&(u+=o),u}function y(e){let t=(0,l.Vp)(e);if(null==t)return null;let[i,n]=t.valid;return new r.hr(i,n)}const c=y(a.A.WGS84);y(a.A.WebMercator),i.d(t,["Y_",0,c])},80754(e,t,i){i.d(t,{kS:()=>p,kd:()=>l});var r=i(82799),n=i(16930),s=i(60408),o=i(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,o.Ed)(e))for(let i of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,o.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,o.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,o.n1)(e)){let[i,r,n]=e.b;i[0]+=t,r[0]+=t,n[0]+=t}else e[0]+=t;for(let i of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,a])},31464(e,t,i){i.d(t,{Cv:()=>y,Nk:()=>d,lK:()=>h});var r=i(4576),n=i(99917),s=i(60408),o=i(21325),a=i(28735);const l=[0,0];function p(e,t){let i=(0,o.K8)(e)?a.je:a.tD;if((0,s.fT)(t)){let e={x:0,y:0};return[e.x,e.y]=i(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){let e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=i(t.xmin,t.ymin,l),[e.xmax,e.ymax]=i(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:u(t.rings,i),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:u(t.paths,i),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:m(t.points,i),hasM:t.hasM,hasZ:t.hasZ};throw Error()}function u(e,t){let i=[];for(let r of e)i.push(m(r,t));return i}function m(e,t){let i=[];for(let r of e){let e=t(r[0],r[1],[0,0]);i.push(e),r.length>2&&e.push(r[2]),r.length>3&&e.push(r[3])}return i}async function d(e,t){if(!e||!t)return;let i=Array.isArray(e)?e.map(e=>null==e.geometry?null:e.geometry.spatialReference).filter(r.Ru):[e];await(0,n.initializeProjection)(i.map(e=>({source:e,dest:t})))}function y(e,t,i,r){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(i)||(0,o.aI)(t,i))return e;if((0,a.y7)(t,i)){let t=p(i,e);return t.spatialReference=i,t}let[s]=(0,n.projectMany)([e],t,i,r);return s}const c=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,r){if(!e?.length||!t||!i||(0,o.aI)(t,i))return e;let n={geometries:e,inSpatialReference:t,outSpatialReference:i,options:r,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;let e=this._jobs.shift();if(!e)return;let t,{geometries:i,inSpatialReference:r,outSpatialReference:s,resolve:o,options:l}=e,u=i.filter(e=>null!=e);t=(0,a.y7)(r,s)&&null==l?.extendedParams?u.map(e=>p(s,e)):(0,n.projectMany)(u,r,s,l);let m=0,d=i.map(e=>null==e?null:t[m++]);o.resolve(d),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function h(e,t,i,r){return c.push(e,t,i,r)}},58727(e,t,i){i.d(t,{GC:()=>g,T2:()=>v,dO:()=>M,iJ:()=>f});var r=i(49186),n=i(66552),s=i(86211),o=i(39829),a=i(99917),l=i(90634),p=i(60408),u=i(65864),m=i(52039),d=i(21325),y=i(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),h=Object.freeze({});async function f(e,t,i){let r=e.bin;return r.onField&&=r.onField.trim(),r.onExpression?.value&&(r.onExpression.value=r.onExpression.value.trim()),r.splitBy&&(r.splitBy.value&&(r.splitBy.value=r.splitBy.value.trim()),r.splitBy.outAlias&&(r.splitBy.outAlias=r.splitBy.outAlias.trim())),r.stackBy&&(r.stackBy.value&&(r.stackBy.value=r.stackBy.value.trim()),r.stackBy.outAlias&&(r.stackBy.outAlias=r.stackBy.outAlias.trim())),"normalizationField"in r.parameters&&r.parameters.normalizationField&&(r.parameters.normalizationField=r.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),g(e,t,i)}async function g(e,t,i){let{outFields:r,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:o}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,i)}async function v(e,t,i){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let n=await w(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){let{spatialReference:t}=e.geometry;n=(0,l.HA)(n),n.spatialReference=t}if(!n)return e;await(0,y.Nk)(n.spatialReference,i);let[s]=await(0,m.el)((0,u.rS)(n));if(null==s)throw h;let c=!1;((0,p.ZC)(s)||(0,p.Bi)(s)||(0,p.Rg)(s))&&(c=!(0,d.aI)(s.spatialReference,i)&&!(0,a.canProjectWithoutEngine)(s.spatialReference,i)),c&&(0,p.ZC)(s)&&(s=o.A.fromExtent(s));let f="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,g=c&&f?{extendedParams:{densificationStep:8*f}}:void 0,v=s.toJSON(),M=(0,y.Cv)(v,v.spatialReference,i,g);if(!M)throw h;return M.spatialReference=i,e.geometry=M,e}async function w(e){let{distance:t,units:n}=e,o=e.geometry;if(!t||"vertexAttributes"in o)return o;let a=o.spatialReference,l=n?c.fromJSON(n):(0,s.Ij)(a),u=a&&((0,d.EA)(a)||(0,d.K8)(a))?o:await(0,y.Nk)(a,d.KK).then(()=>(0,y.Cv)(o,d.KK)),{geodesicBufferExecute:m,geodesicBufferLoad:h}=await i.e(9159).then(()=>i(49159));await h();let f=m(u,t||1,{unit:l})??void 0;if(!f||!(0,p.Bi)(f)||0===f.rings.length)throw new r.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return f}function M(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}i.d(t,["VY",0,c,"v8",0,h])},14575(e,t,i){i.d(t,{default:()=>Z});var r=i(32198),n=i(69540),s=i(66552),o=i(25482),a=i(53966),l=i(91429),p=i(78888),u=i(16930),m=i(65864),d=i(50498),y=i(58727),c=i(5834),h=i(41266),f=i(59977),g=i(11440),v=i(60909),w=i(58174),M=i(7562),x=i(79677),C=i(56400),B=i(93223);const S=new s.J({asc:"ascending",desc:"descending"}),A={base:h.A,key:"type",typeMap:{"auto-interval":c.A,date:f.A,"fixed-boundaries":g.A,"fixed-interval":v.A}};let Z=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,C.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,r.Cg)([(0,l.MZ)({types:A,json:{name:"bin",write:!0}})],Z.prototype,"binParameters",void 0),(0,r.Cg)([(0,B.e)(S)],Z.prototype,"binOrder",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],Z.prototype,"cacheHint",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],Z.prototype,"datumTransformation",void 0),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{name:"defaultSR",write:!0}})],Z.prototype,"defaultSpatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],Z.prototype,"distance",void 0),(0,r.Cg)([(0,l.MZ)({types:d.yR,json:{read:m.rS,write:!0}})],Z.prototype,"geometry",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],Z.prototype,"lowerBoundaryAlias",void 0),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{name:"outSR",write:!0}})],Z.prototype,"outSpatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:[M.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],Z.prototype,"outStatistics",void 0),(0,r.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,i)=>{e&&(t[i]={ianaTimeZone:e})}}}})],Z.prototype,"outTimeZone",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],Z.prototype,"returnAggregateIds",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],Z.prototype,"returnDistinctValues",void 0),(0,r.Cg)([(0,B.e)(w.x,{name:"spatialRel"})],Z.prototype,"spatialRelationship",void 0),(0,r.Cg)([(0,l.MZ)({type:x.A,json:{write:!0}})],Z.prototype,"timeExtent",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],Z.prototype,"upperBoundaryAlias",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:y.VY.read,write:{writer:y.VY.write,overridePolicy(e){return{enabled:null!=e&&!!this.distance}}}}})],Z.prototype,"units",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],Z.prototype,"where",void 0),Z=(0,r.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],Z),Z.from=(0,p.dp)(Z)},5834(e,t,i){i.d(t,{A:()=>m});var r=i(32198),n=i(93637),s=i(91429),o=i(78888),a=i(41266),l=i(41366),p=i(93223);function u(e,t,i){(0,n.sM)(i,e instanceof Date?e.getTime():e,t)}let m=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],m.prototype,"numBins",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:u}}})],m.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:u}}})],m.prototype,"start",void 0),(0,r.Cg)([(0,p.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],m.prototype,"type",void 0),m=(0,r.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],m),m.from=(0,o.dp)(m)},41266(e,t,i){i.d(t,{A:()=>h});var r=i(32198),n=i(69540),s=i(66552),o=i(25482),a=i(91429),l=i(78888),p=i(93223);const u=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let m=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],m.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:String})],m.prototype,"responseType",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"value",void 0),(0,r.Cg)([(0,p.e)(u)],m.prototype,"valueType",void 0),m=(0,r.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],m);const d=m;m.from=(0,l.dp)(m);const y=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),c=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let h=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],h.prototype,"expression",void 0),(0,r.Cg)([(0,p.e)(y,{name:"onExpression.valueType"})],h.prototype,"expressionValueType",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],h.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"firstDayOfWeek",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hideUpperBound",void 0),(0,r.Cg)([(0,a.MZ)({type:d,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],h.prototype,"splitBy",void 0),(0,r.Cg)([(0,a.MZ)({type:d,json:{write:{target:{stackBy:{type:d},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>d.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],h.prototype,"stackBy",void 0),(0,r.Cg)([(0,p.e)(c)],h.prototype,"transformation",void 0),h=(0,r.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],h)},59977(e,t,i){i.d(t,{A:()=>f});var r=i(32198),n=i(93637),s=i(91429),o=i(78888),a=i(41266),l=i(69540),p=i(25482),u=i(57231),m=i(93223);let d=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],d.prototype,"value",void 0),(0,r.Cg)([(0,m.e)(u.g)],d.prototype,"unit",void 0),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],d);const y=d;function c(e,t,i){(0,n.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function h(e,t){let i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}d.from=(0,o.dp)(d);let f=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,r.Cg)([(0,s.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.end",read:{reader:(e,t)=>h(t,"end")},write:{writer:c}}})],f.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({type:y,json:{name:"parameters",write:!0}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,s.MZ)({type:y,json:{name:"parameters.offset",write:!0}})],f.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],f.prototype,"returnFullIntervalBin",void 0),(0,r.Cg)([(0,s.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.start",read:{reader:(e,t)=>h(t,"start")},write:{writer:c}}})],f.prototype,"start",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],f.prototype,"snapToData",void 0),(0,r.Cg)([(0,m.e)({dateBin:"date"},{readOnly:!0})],f.prototype,"type",void 0),f=(0,r.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],f),f.from=(0,o.dp)(f)},57231(e,t,i){const r=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});i.d(t,["g",0,r])},11440(e,t,i){i.d(t,{A:()=>p});var r=i(32198),n=i(93637),s=i(91429),o=i(78888),a=i(41266),l=i(93223);let p=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,n.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],p.prototype,"boundaries",void 0),(0,r.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,r.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],p),p.from=(0,o.dp)(p)},60909(e,t,i){i.d(t,{A:()=>m});var r=i(32198),n=i(93637),s=i(91429),o=i(78888),a=i(41266),l=i(41366),p=i(93223);function u(e,t,i){(0,n.sM)(i,e instanceof Date?e.getTime():e,t)}let m=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:u}}})],m.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],m.prototype,"interval",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:u}}})],m.prototype,"start",void 0),(0,r.Cg)([(0,p.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],m.prototype,"type",void 0),m=(0,r.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],m),m.from=(0,o.dp)(m)}}]);
|