@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 48.2 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9607],{68197:(e,t,r)=>{r.d(t,{A:()=>c});var n,a,i=r(40876),o=r(34727),s=r(56507);function l(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class c{static blendColors(e,t,r,n=new c){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return c.fromArray((0,i.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),a=parseInt(e.slice(3,4),16),i=5===e.length?15:parseInt(e.slice(4),16);return c.fromArray([r+16*r,n+16*n,a+16*a,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),a=parseInt(e.slice(5,7),16),i=7===e.length?255:parseInt(e.slice(7),16);return c.fromArray([r,n,a,i/255],t)}default:return null}}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.V6)(e)?(0,i.TS)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,a=4===r||8===r,i=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${a?u(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}c.prototype.declaredClass="esri.Color",(a=(n=c).AlphaMode||(n.AlphaMode={}))[a.ALWAYS=0]="ALWAYS",a[a.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},73354:(e,t,r)=>{r.d(t,{a:()=>c,b:()=>s,c:()=>o,d:()=>a,e:()=>m,f:()=>u,l:()=>d,n:()=>h,t:()=>i});var n=r(40876);function a(e,t,r){i(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function i(e,t,r,n=3,a=n){if(e.length/n!==Math.ceil(t.length/a))return e;const i=e.length/n,o=r[0],s=r[1],l=r[2],d=r[4],u=r[5],c=r[6],m=r[8],h=r[9],f=r[10],y=r[12],p=r[13],g=r[14];let T=0,S=0;for(let r=0;r<i;r++){const r=t[T],i=t[T+1],A=t[T+2];e[S]=o*r+d*i+m*A+y,e[S+1]=s*r+u*i+h*A+p,e[S+2]=l*r+c*i+f*A+g,T+=a,S+=n}return e}function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,a=n){if(e.length/n!==Math.ceil(t.length/a))return;const i=e.length/n,o=r[0],s=r[1],l=r[2],d=r[3],u=r[4],c=r[5],m=r[6],h=r[7],f=r[8];let y=0,p=0;for(let r=0;r<i;r++){const r=t[y],i=t[y+1],g=t[y+2];e[p]=o*r+d*i+m*g,e[p+1]=s*r+u*i+h*g,e[p+2]=l*r+c*i+f*g,y+=a,p+=n}}function l(e,t,r,n=3,a=n){const i=Math.min(e.length/n,t.length/a);let o=0,s=0;for(let l=0;l<i;l++)e[s]=r*t[o],e[s+1]=r*t[o+1],e[s+2]=r*t[o+2],o+=a,s+=n;return e}function d(e,t,r,n){u(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function u(e,t,r,a,i=3,o=i){const s=Math.min(e.length/i,t.length/o);let l=0,d=0;const u=1/n.Tf;for(let n=0;n<s;n++)e[d]=a*(r*t[l])**u,e[d+1]=a*(r*t[l+1])**u,e[d+2]=a*(r*t[l+2])**u,l+=o,d+=i}function c(e,t,r,n=3,a=n){const i=e.length/n;if(i!==Math.ceil(t.length/a))return e;let o=0,s=0;for(let l=0;l<i;l++)e[s]=t[o]+r[0],e[s+1]=t[o+1]+r[1],e[s+2]=t[o+2]+r[2],o+=a,s+=n;return e}function m(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){const a=Math.min(e.length/r,t.length/n);let i=0,o=0;for(let s=0;s<a;s++){const a=t[i],s=t[i+1],l=t[i+2],d=a*a+s*s+l*l;if(d>0){const t=1/Math.sqrt(d);e[o]=t*a,e[o+1]=t*s,e[o+2]=t*l}i+=n,o+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:d,normalize:h,normalizeView:m,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),a=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,d=0;for(let e=0;e<n;e++)a[d]=o[l]>>r,a[d+1]=o[l+1]>>r,a[d+2]=o[l+2]>>r,l+=s,d+=i},transformMat3:s,transformMat3View:o,transformMat4:i,transformMat4View:a,translate:c},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>i,Tf:()=>u,V6:()=>a,c4:()=>o,qh:()=>d,z$:()=>l});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const a=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),n]}function d(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,a=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&n,o>>=r,s[3]=a*l/255),l=o&n,o>>=r,s[2]=a*l,l=o&n,o>>=r,s[1]=a*l,l=o&n,o>>=r,s[0]=a*l,s}const u=2.2},69540:(e,t,r)=>{r.d(t,{A:()=>m});var n=r(90237),a=r(69622),i=(r(44208),r(4718)),o=(r(53966),r(97768)),s=r(35666),l=r(88620),d=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,n={},a=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||l!==s.Gr.USER&&l!==s.Gr.DEFAULTS&&l!==s.Gr.WEB_MAP&&l!==s.Gr.WEB_SCENE)continue;const u=this[e];let c=null;c="function"==typeof d?d(u):"reference"===d?u:(0,i.TU)(u),null!=u&&null==c||(l===s.Gr.DEFAULTS?a.set(e,c):n[e]=c)}const d=new(0,Object.getPrototypeOf(this).constructor)(n);if(a.size){const e=(0,l.oY)(d)?.store;if(e)for(const[t,r]of a)e.set(t,r,s.Gr.DEFAULTS)}return d}};return t=(0,n._)([(0,d.$)("esri.core.Clonable")],t),t};let c=class extends(u(a.A)){};c=(0,n._)([(0,d.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const m=c},93223:(e,t,r)=>{r.d(t,{e:()=>i});var n=r(66552),a=r(10107);function i(e,t={}){const r=e instanceof n.J?e:new n.J(e,t),{alwaysWriteDefaults:i,default:o,ignoreUnknown:s=!0,name:l,nonNullable:d,readOnly:u=!1}=t;return(0,a.MZ)({type:s?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!u&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:i}},nonNullable:d,readOnly:u})}},95488:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(11406);class a extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},91829:(e,t,r)=>{function n(){return[0,0,0,0]}function a(e,t,r,n){return[e,t,r,n]}function i(e,t,r,n){return[e,t,r,n]}function o(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function s(){return a(1,1,1,1)}function l(){return a(1,0,0,0)}function d(){return a(0,1,0,0)}function u(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}r.d(t,{CN:()=>i,Un:()=>h,ci:()=>o,fA:()=>a,uY:()=>m,vt:()=>n});const m=[0,0,0,0],h=s(),f=l(),y=d(),p=u(),g=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:f,UNIT_Y:y,UNIT_Z:p,ZEROS:m,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:function(e,t){return new Float64Array(e,t,4)},freeze:i,fromArray:o,fromValues:a,ones:s,unitW:c,unitX:l,unitY:d,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},88930:(e,t,r)=>{r.d(t,{S1:()=>s,lL:()=>d,mi:()=>l,t:()=>u,vf:()=>o});var n=r(97770),a=r(98623),i=r(96285);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o=a.qU){const s=new i.oh((0,n.wj)(o)),l=i.c9.fromJSDate(e,{zone:s}),d="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),a=u(t,r,"milliseconds");return new Date(n+a)}function d(e,t,r=a.qU){const o=new i.oh((0,n.wj)(r)),s=i.c9.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,n=r-r%("decades"===t?10:100);return e.set({year:n}).toJSDate()}const l=c(t);return s.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},35982:(e,t,r)=>{r.d(t,{B:()=>l});var n=r(4576),a=r(36563),i=r(53966),o=r(74887),s=r(29953);class l{constructor(e,t,r,n,a={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,s.ho)(e,{...a,schedule:n}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,a.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,a.hA)((()=>{r.removed=!0,(0,n.TF)(this._listeners,r),this._thread&&null!=r.threadHandle&&r.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const n=this._transferLists[e],a=n?n(t):[];return this._thread.invoke(e,t,{transferList:a,signal:r})}return this._promise?this._promise.then((()=>((0,o.Te)(r),this.invokeMethod(e,t,r)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}},95696:(e,t,r)=>{r.d(t,{A:()=>c});var n,a=r(90237),i=r(69540),o=r(25482),s=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),d=r(40608);let u=n=class extends(i.A.ClonableMixin(o.A)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};u.absolute=new n,(0,a._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,a._)([(0,d.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u);const c=u},18251:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),a=r(69540),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608),d=r(51850);let u=class extends(a.A.ClonableMixin(i.A)){constructor(e){super(e),this.type="local",this.origin=(0,d.vt)()}};(0,n._)([(0,s.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],u);const c=u},65864:(e,t,r)=>{r.d(t,{$B:()=>y,Bi:()=>h,Rg:()=>m,U9:()=>u,ZC:()=>d,fT:()=>c,rS:()=>f,xD:()=>g});var n=r(5443),a=r(91075),i=r(48526),o=r(86738),s=r(39829),l=r(82799);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function c(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths||void 0!==e.curvePaths}function h(e){return void 0!==e.rings||void 0!==e.curveRings}function f(e){return null==e?null:e instanceof a.A?e:c(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):h(e)?s.A.fromJSON(e):u(e)?i.A.fromJSON(e):d(e)?n.A.fromJSON(e):null}function y(e){return e?c(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const p={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:s.A};function g(e){return e&&p[e]||null}},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>u,yR:()=>m});var n=r(66552),a=r(5443),i=r(91075),o=r(48526),s=r(86738),l=r(39829),d=r(82799);const u=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:i.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}}},97770:(e,t,r)=>{r.d(t,{Ey:()=>C,F8:()=>k,J2:()=>M,Yq:()=>_,_v:()=>A,iS:()=>E,wj:()=>N});var n=r(66552),a=r(73444),i=r(98623),o=(r(56400),r(96285));const s={year:void 0,month:void 0,day:void 0,weekday:void 0},l={hour:void 0,minute:void 0,second:void 0},d={timeZone:i.n$},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},y={...f,second:"numeric"},p={hourCycle:"h23"},g={...f,...p},T={...y,...p},S={"short-date":u,"short-date-short-time":{...u,...f},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...y},"short-date-long-time-24":{...u,...T},"short-date-le":u,"short-date-le-short-time":{...u,...f},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...y},"short-date-le-long-time-24":{...u,...T},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...y},"long-month-day-year-long-time-24":{...c,...T},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...f},"day-short-month-year-short-time-24":{...m,...g},"day-short-month-year-long-time":{...m,...y},"day-short-month-year-long-time-24":{...m,...T},"long-date":h,"long-date-short-time":{...h,...f},"long-date-short-time-24":{...h,...g},"long-date-long-time":{...h,...y},"long-date-long-time-24":{...h,...T},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":y},A=(0,n.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"}),b={ar:"ar-u-nu-latn-ca-gregory"};let w=new WeakMap;const v=S["short-date-short-time"];function M(e){return S[e]}function _(e,t=v){return function(e){let t=w.get(e);if(!t){const r=(0,a.JK)(),n=b[r]||r,o=N(e.timeZone??i.qU),s={...e,timeZone:o};t=new Intl.DateTimeFormat(n,s),w.set(e,t)}return t}(t).format(e)}function E(e,t=v){return _(new Date(e),{...t,...d,...l})}function k(e,t=v){return _(new Date(`1970-01-01T${e}Z`),{...t,...d,...s})}function C(e,t=v){if(t.timeZone)return _(new Date(e),t);const r=o.c9.fromISO(e,{setZone:!0}),n=(0,a.JK)(),s=b[n]??n,l=0===r.offset?i.n$:t.timeZone,d={...t,timeZone:l};return r.toLocaleString(d,{locale:s})}function N(e){switch(e){case i.qU:return i.N5;case i.L5:return i.n$;default:return e}}(0,a.Ml)((()=>{w=new WeakMap}))},73444:(e,t,r)=>{r.d(t,{JK:()=>l,Ml:()=>h,Z0:()=>d,oQ:()=>c});var n=r(36563);let a;const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??e??t??"en"}function l(){return void 0===a&&(a=s()),a}function d(e=l()){const t=/^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(e);return t?.[1].toLowerCase()}const u=[];function c(e){return u.push(e),(0,n.hA)((()=>u.splice(u.indexOf(e),1)))}const m=[];function h(e){return m.push(e),(0,n.hA)((()=>m.splice(m.indexOf(e),1)))}function f(){const e=s();a!==e&&([...m].forEach((t=>t(e))),a=e,[...u].forEach((t=>t(e))))}globalThis.addEventListener?.("languagechange",f),o&&new MutationObserver((()=>{f()})).observe(o,{attributeFilter:["lang"]})},10838:(e,t,r)=>{r.d(t,{ao:()=>h,ud:()=>f,xO:()=>y});var n=r(49186),a=r(36563),i=r(74887),o=r(73444);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function d(e){if(function(e){return e in l}(e)){const t=l[e];return!0===t?e:t}return null}const u=[],c=new Map;function m(e){for(const t of c.keys())p(e.pattern,t)&&c.delete(t)}function h(e){return u.includes(e)||(m(e),u.unshift(e)),(0,a.hA)((()=>{const t=u.indexOf(e);t>-1&&(u.splice(t,1),m(e))}))}async function f(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const n of u)if(p(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new n.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new n.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await g.add(r),r}function y(e){if(!s.test(e))return null;const t=s.exec(e);if(null===t)return null;const[,r,n]=t;return d(r+(n?"-"+n.toUpperCase():""))??d(r)}function p(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},39357:(e,t,r)=>{r.d(t,{H:()=>l});var n,a=r(90237),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let l=n=class extends i.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,a._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,a._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,a._)([(0,s.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,r)=>{r.d(t,{A:()=>m});var n,a=r(90237),i=r(4718),o=r(10107),s=(r(44208),r(53966),r(93223)),l=r(40608),d=r(39357),u=r(76357);let c=n=class extends u.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new n({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,a._)([(0,o.MZ)({type:[d.H],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,a._)([(0,s.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,a._)([(0,l.$)("esri.layers.support.CodedValueDomain")],c);const m=c},76357:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),a=r(66552),i=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const d=new a.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends i.A{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,s.e)(d),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,n._)([(0,l.$)("esri.layers.support.Domain")],u);const c=u},20437:(e,t,r)=>{r.d(t,{A:()=>p});var n,a=r(90237),i=r(66552),o=r(25482),s=r(10107),l=r(56507),d=(r(44208),r(87811),r(93223)),u=r(36005),c=r(40608),m=r(80451),h=r(98453);const f=new i.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=n=class extends o.A{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,a._)([(0,s.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,a._)([(0,s.MZ)()],y.prototype,"description",void 0),(0,a._)([(0,u.w)("description")],y.prototype,"readDescription",null),(0,a._)([(0,s.MZ)({types:m.gK,json:{read:{reader:m.rS},write:!0}})],y.prototype,"domain",void 0),(0,a._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,a._)([(0,s.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,a._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,a._)([(0,d.e)(h.m)],y.prototype,"type",void 0),(0,a._)([(0,s.MZ)()],y.prototype,"valueType",void 0),(0,a._)([(0,u.w)("valueType",["description"])],y.prototype,"readValueType",null),(0,a._)([(0,s.MZ)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,a._)([(0,c.$)("esri.layers.support.Field")],y);const p=y},80451:(e,t,r)=>{r.d(t,{rS:()=>p,gK:()=>y}),r(44208);var n,a=r(53177),i=r(76357),o=r(90237),s=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let d=n=class extends i.A{constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o._)([(0,s.e)({inherited:"inherited"})],d.prototype,"type",void 0),d=n=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],d);const u=d;var c,m=r(10107);let h=c=class extends i.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,m.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],h.prototype,"maxValue",void 0),(0,o._)([(0,m.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],h.prototype,"minValue",void 0),(0,o._)([(0,s.e)({range:"range"})],h.prototype,"type",void 0),h=c=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],h);const f=h,y={key:"type",base:i.A,typeMap:{range:f,"coded-value":a.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return f.fromJSON(e);case"codedValue":return a.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},79677:(e,t,r)=>{r.d(t,{A:()=>h});var n,a=r(90237),i=r(25482),o=r(88930),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),d=r(40608),u=r(43937),c=r(98623);let m=n=class extends i.A{static get allTime(){return f}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,a=e.end?.getTime()??e.end;return t===n&&r===a}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let a=this.end;if(a){const r=(0,o.lL)(a,e,t);a=a.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new n({start:r,end:a})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,s;return a>=t&&a<=r?o=a:t>=a&&t<=i&&(o=t),r>=a&&r<=i?s=r:i>=t&&i<=r&&(s=i),null==o||null==s||isNaN(o)||isNaN(s)?n.empty:new n({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const a=new n,{start:i,end:s}=this;return null!=i&&(a.start=(0,o.S1)(i,e,t,r)),null!=s&&(a.end=(0,o.S1)(s,e,t,r)),a}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,a._)([(0,l.w)("end")],m.prototype,"readEnd",null),(0,a._)([(0,u.K)("end")],m.prototype,"writeEnd",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,a._)([(0,l.w)("start")],m.prototype,"readStart",null),(0,a._)([(0,u.K)("start")],m.prototype,"writeStart",null),m=n=(0,a._)([(0,d.$)("esri.time.TimeExtent")],m);const h=m,f=new m,y=new m({start:void 0,end:void 0})},98623:(e,t,r)=>{r.d(t,{L5:()=>a,N5:()=>o,n$:()=>i,qU:()=>n});const n="system",a="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone},56400:(e,t,r)=>{r.d(t,{ZS:()=>l,hv:()=>d,wr:()=>u,P6:()=>s});var n=r(98623);const a=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=r(96285);const o="shortOffset";function s(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?l(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function l(e,t=n.qU){return e?"timeZoneIANA"in e?e.timeZoneIANA:function(e,t=n.qU){if(!e||!a.has(e.timeZone))return t;const r=a.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?r:function(e){const t=i.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${i.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}function d(e,t,r,a,i){if(t&&"date"===i)return{timeZone:n.n$,timeZoneName:void 0};const s=a.timeStyle||a.hour,l=r===n.L5;return{timeZone:l?"timestamp-offset"===i?void 0:e??n.n$:r,timeZoneName:l&&s?o:void 0}}function u(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===n.qU||e===n.L5||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},36233:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>U,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>E,filterObbsForModificationsSync:()=>G,initialize:()=>R,interpretObbModificationResults:()=>x,process:()=>M,project:()=>N,setLegacySchema:()=>C,setModifications:()=>k,setModificationsSync:()=>O,test:()=>V,transformNormals:()=>L});var n,a,i=r(34727),o=r(16930),s=r(95696),l=r(18251),d=r(73354);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(a||(a={}));var u=r(2741);function c(e){return(0,u.s)(`esri/libs/i3s/${e}`)}let m;r(53966);var h,f,y,p,g,T,S=r(3694),A=r(51850),b=r(35982);r(57251),r(27993);class w{constructor(e,t,r,n,a,i){this.layout=e,this.interleavedVertexData=t,this.indices=r,this.hasColors=n,this.hasModifications=a,this.positionData=i}}class v{constructor(e,t,r,n,a,i,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=r,this.anchors=n,this.transformedGeometry=a,this.globalTrafo=i,this.obb=o}}async function M(e){D=await Z();const t=[e.geometryBuffer];return{result:B(D,e,t),transferList:t}}async function _(e){D=await Z();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,a=D._malloc(n),i=new Uint8Array(D.HEAPU8.buffer,a,n);i.set(new Uint8Array(r));const o=D.dracoDecompressPointCloudData(a,i.byteLength);if(D._free(a),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function E(e){await Z(),G(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function k(e){await Z(),O(e)}async function C(e){D=await Z(),D.setLegacySchema(e.context,e.jsonSchema)}async function N(e){const{localMatrix:t,origin:n,positions:a,vertexSpace:i}=e,d=o.A.fromJSON(e.inSpatialReference),u=o.A.fromJSON(e.outSpatialReference);let c;const[{projectBuffer:m},{initializeProjection:h}]=await Promise.all([Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,57251))]);await h(d,u);const f=[0,0,0];if(!m(n,d,0,f,u,0))throw new Error("Failed to project");if("georeferenced"===i.type&&null==i.origin){if(c=new Float64Array(a.length),!m(a,d,0,c,u,0,c.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===i.type?s.A.fromJSON(i):l.A.fromJSON(i),{projectMeshVertexPositions:n}=await Promise.all([r.e(3030),r.e(4594)]).then(r.bind(r,74594)),o=n({vertexAttributes:{position:a},transform:t?{localMatrix:t}:void 0,vertexSpace:e,spatialReference:d},u);if(!o)throw new Error("Failed to project");c=o}const y=c.length,[p,g,T]=f;for(let e=0;e<y;e+=3)c[e]-=p,c[e+1]-=g,c[e+2]-=T;return{result:{projected:c,original:a,projectedOrigin:f},transferList:[c.buffer,a.buffer]}}async function L({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,d.b)(r,t,e),(0,i.or)(e)&&(0,d.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function U(e){F(e)}let P,D;function O(e){if(!D)return;const t=e.modifications,r=D._malloc(8*t.length),n=new Float64Array(D.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];D.setModifications(e.context,r,t.length,e.isGeodetic),D._free(r)}function B(e,t,r){const{context:a,globalTrafo:i,mbs:o,obbData:s,elevationOffset:l,geometryBuffer:d,geometryDescriptor:u,indexToVertexProjector:c,vertexToRenderProjector:m}=t,h=e._malloc(d.byteLength),f=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),y=new Uint8Array(e.HEAPU8.buffer,h,d.byteLength);y.set(new Uint8Array(d));const p=new Float64Array(e.HEAPU8.buffer,f,33);I(p,[NaN,NaN,NaN]);let g=p.byteOffset+3*p.BYTES_PER_ELEMENT,T=new Float64Array(p.buffer,g);I(T,i),g+=16*p.BYTES_PER_ELEMENT,T=new Float64Array(p.buffer,g),I(T,o),g+=4*p.BYTES_PER_ELEMENT,s&&(T=new Float64Array(p.buffer,g),I(T,s));const S=u,A={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:S.featureIndex},b=e.process(a,!!t.obbData,h,y.byteLength,S,A,f,l,c,m,t.normalReferenceFrame);if(e._free(f),e._free(h),b.error.length>0)throw new Error(`i3s.wasm: ${b.error}`);if(b.discarded)return null;const M=b.componentOffsets.length>0?b.componentOffsets.slice():null,_=b.featureIds.length>0?b.featureIds.slice():null,E=b.anchorIds.length>0?Array.from(b.anchorIds):null,k=b.anchors.length>0?Array.from(b.anchors):null,C=b.interleavedVertedData.slice().buffer,N=b.indicesType===n.Int16?new Uint16Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/2).slice():new Uint32Array(b.indices.buffer,b.indices.byteOffset,b.indices.byteLength/4).slice(),L=b.positions.slice(),{buffer:U,byteOffset:P,byteLength:D}=b.positionIndices,O=b.positionIndicesType===n.Int16?new Uint16Array(U,P,D/2).slice():new Uint32Array(U,P,D/4).slice(),B=new w(t.layouts[0],C,N,b.hasColors,b.hasModifications,{data:L,indices:O});return _&&r.push(_.buffer),M&&r.push(M.buffer),r.push(C),r.push(N.buffer),r.push(L.buffer),r.push(O.buffer),new v(M,_,E,k,B,i,b.obb)}function x(e){return 0===e?f.Unmodified:1===e?f.PotentiallyModified:2===e?f.Culled:f.Unknown}function G(e){if(!D)return;const{context:t,buffer:r}=e,n=D._malloc(r.byteLength),a=r.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(D.HEAPU8.buffer,n,a),o=new Float64Array(r);i.set(o),D.filterOBBs(t,n,a),o.set(i),D._free(n)}function F(e){D&&0===D.destroy(e)&&(D=null)}function I(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function R(){D||await Z()}async function Z(){return D||(D=await(P??=(m||(m=new Promise((e=>r.e(2980).then(r.bind(r,82980)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:c,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),m))),D}b.B,new S.A({deallocator:null}),(0,A.vt)(),r(91829),r(97937),r(4654),(T=h||(h={}))[T.Unmodified=0]="Unmodified",T[T.Culled=1]="Culled",T[T.NotChecked=2]="NotChecked",function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(f||(f={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(p||(p={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(g||(g={}));const V={transform:(e,t)=>D&&B(D,e,t),destroy:F}}}]);