PageSourceSearch

https://mapas.semil.sp.gov.br/portal/apps/dashboards/assets/chunk.1752.b6a6bade25966a97975b.js

js semil.sp.gov.br collected 2026-10-01 11:41:53 UTC 111,184 bytes, 725 lines download raw bytes

1"use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[1752,16008,46753,29903,44009,41830,75342,14289,10370,96127,93695],{10370:(e,t,r)=>{r.r(t),r.d(t,{createArcadeExecutor:()=>I,createArcadeProfile:()=>P})
2var n=r(11800),s=r(37609),i=r(83524),o=(r(57250),r(79381)),a=r(61840),l=r(33600),u=r(12752),c=r(58531),d=r(73442),p=r(76333),h=r(23687),f=r(20881),m=r(64212)
3let y=null
4function g(e,t,r,n={}){const s=t.elementType,o="value",a="array"===s.type?[{name:o,type:s.type,elementType:s.elementType}]:"dictionary"===s.type?[{name:o,type:s.type,properties:s.properties}]:[{name:o,type:s.type}]
5return new i.A(e.map((e=>{const t={}
6return w(t,a,{[o]:e},r,n),t[o]})))}function b(e,t,r={}){const n=e instanceof f.default?new p.default({source:e.features,geometryType:e.geometryType,fields:e.fields,spatialReference:e.spatialReference}):e
7return t.constructFeatureSet(n,r.spatialReference,null,!0,r.lruCache,r.interceptor)}function v(e,t,r={}){const{spatialReference:n,interceptor:s,lruCache:i}=r
8return"string"==typeof e?t.createFeatureSetCollectionFromService(e,n,i,s):t.createFeatureSetCollectionFromMap(e,n,i,s)}function _(e,t,r,n={}){const s={}
9return w(s,t.properties,e,r,n),new y.Dictionary(s)}function w(e,t,r,n,i={}){const o={}
10for(const s of Object.keys(r))o[s.toLowerCase()]=r[s]
11for(const a of t){const t=a.name.toLowerCase()
12if(i.variablesPreProcessed)e[t]=o[t]
13else switch(a.type){case"array":{const r=o[t]
14e[t]=null==r?null:g(r,a,n,i)
15break}case"feature":{const r=o[t]
16e[t]=null==r?null:y.Feature.createFromGraphic(r,i?.timeZone)
17break}case"featureSet":{const r=o[t]
18e[t]=null==r?null:n?b(r,n,i):null
19break}case"featureSetCollection":{const r=o[t]
20e[t]=null==r?null:n?v(r,n,i):null
21break}case"dictionary":{const r=o[t]
22e[t]=null==r?null:_(r,a,n,i)
23break}case"date":{const r=o[t]
24e[t]=r?r instanceof s.lY?r:i?.timeZone?s.lY.dateJSAndZoneToArcadeDate(r,i?.timeZone):s.lY.dateJSToArcadeDate(r):null
25break}case"dateOnly":{const r=o[t]
26e[t]=r?r instanceof c.n?r:c.n.fromReader(r):null
27break}case"time":{const r=o[t]
28e[t]=r?r instanceof d.k?r:d.k.fromReader(r):null
29break}case"knowledgeGraph":case"geometry":case"boolean":case"text":case"number":e[t]=o[t]
30break
31case"voxel":{const r=o[t]
32e[t]=null==r?null:new y.Voxel(r,i?.timeZone)
33break}}}}function S(e,t){for(const r of e)t.push(r),"dictionary"===r.type&&S(r.properties,t)
34return t}function x(e,t,r,n,s){const{spatialReference:i,interceptor:o,lruCache:a,console:l,abortSignal:u,timeZone:c,services:d={portal:h.default.getDefault()}}=r,p={vars:{},spatialReference:i,interceptor:o,timeZone:c,lrucache:a,useAsync:s,services:d,console:l,abortSignal:u}
35return t?(w(p.vars,e.variables,t,n,r),p):p}function k(e,t){switch(t.getArcadeType(e)){case"number":case"text":case"boolean":case"point":case"polygon":case"polyline":case"multipoint":case"extent":return e
36case"date":return e.toJSDate()
37case"time":case"dateOnly":return e.toString()
38case"feature":{const t=(e.type,e),r="geometry"in t?t.geometry():null,s="readAttributes"in t?t.readAttributes():t.attributes
39return new n.default({geometry:r,attributes:s})}case"dictionary":{const r=e,n=r.attributes,s={}
40for(const e of Object.keys(n))s[e]=k(r.field(e),t)
41return s}case"array":return("toArray"in e?e.toArray():e).map((e=>k(e,t)))}return e}const A={variables:[{name:"$feature",type:"feature"},{name:"$layer",type:"featureSet"},{name:"$datastore",type:"featureSetCollection"},{name:"$map",type:"featureSetCollection"},{name:"$userInput",type:"geometry"},{name:"$graph",type:"knowledgeGraph"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]},E={variables:[{name:"$feature",type:"feature"},{name:"$aggregatedFeatures",type:"featureSet"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]},M={variables:[{name:"$voxel",type:"voxel"}]},T=new Map([["aggregate-field",{variables:[{name:"$feature",type:"feature"}]}],["form-constraint",{variables:[{name:"$feature",type:"feature"}]}],["feature-z",{variables:[{name:"$feature",type:"feature"}]}],["field-calculation",{variables:[{name:"$feature",type:"feature"},{name:"$datastore",type:"featureSetCollection"}]}],["form-calculation",{variables:[{name:"$feature",type:"feature"},{name:"$originalFeature",type:"feature"},{name:"$layer",type:"featureSet"},{name:"$featureSet",type:"featureSet"},{name:"$datastore",type:"featureSetCollection"},{name:"$map",type:"featureSetCollection"},{name:"$editContext",type:"dictionary",properties:[{name:"editType",type:"text"}]}]}],["labeling",{variables:[{name:"$feature",type:"feature"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]}],["popup",A],["popup-element",A],["popup-feature-reduction",E],["popup-element-feature-reduction",E],["visualization",{variables:[{name:"$feature",type:"feature"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]}],["popup-voxel",M],["popup-element-voxel",M]])
42function P(e){"feature-reduction-popup"===e?((0,o.io)(u.A.getLogger("esri.arcade"),'profile name: "feature-reduction-popup"',{replacement:'"popup-feature-reduction"',version:"4.32",warnOnce:!0}),e="popup-feature-reduction"):"feature-reduction-popup-element"===e&&((0,o.io)(u.A.getLogger("esri.arcade"),'profile name: "feature-reduction-popup-element"',{replacement:'"popup-element-feature-reduction"',version:"4.32",warnOnce:!0}),e="popup-element-feature-reduction")
43const t=T.get(e)
44if(!t){const t=Array.from(T.keys()).map((e=>`'${e}'`)).join(", ")
45throw new a.default("createArcadeProfile:invalid-profile-name",`Invalid profile name '${e}'. You must specify one of the following values: ${t}`)}return(0,l.clone)(t)}async function I(e,t,r={}){y||(y=await(0,m.lw)())
46const{arcade:n,arcadeUtils:s}=y,{loadScriptDependencies:i,referencesMember:o,scriptIsAsync:l}=n,u=S(t.variables,[]),c=u.filter((e=>"featureSet"===e.type||"featureSetCollection"===e.type)).map((e=>e.name.toLowerCase())),d=n.parseScript(e,c)
47if(!d)throw new a.default("arcade:invalid-script","Unable to create SyntaxTree")
48const p=s.extractFieldNames(d),h=n.scriptTouchesGeometry(d),f=u.map((e=>e.name.toLowerCase())).filter((e=>o(d,e))),g=l(d,c)
49await i(d,g,c)
50const b={vars:{},spatialReference:null,useAsync:g}
51for(const a of f)b.vars[a]="any"
52const{lruCache:v}=r,_=n.compileScript(d,b),w=n.featureSetUtils(),{services:A}=r
53return{execute:(e,r={})=>{if(g)throw new a.default("arcade:invalid-execution-mode","Cannot execute the script in synchronous mode")
54const n=_(x(t,e,{lruCache:v,...r},w,g))
55return r.rawOutput?n:k(n,s)},executeAsync:async(e,r={})=>{const n=await _(x(t,e,{lruCache:v,services:A,...r},w,g))
56return r.rawOutput?n:k(n,s)},isAsync:g,variablesUsed:f,fieldsUsed:p,geometryUsed:h,syntaxTree:d}}},50437:(e,t,r)=>{r.d(t,{Cn:()=>i,F:()=>u,Mn:()=>l,Ti:()=>s,k2:()=>o})
57var n=r(53285)
58const s=-3,i=s-1
59var o,a;(a=o||(o={}))[a.ALL=0]="ALL",a[a.SOME=1]="SOME"
60class l{constructor(e,t,r,n=0){this.name=e,this._storage=t,this._defaultPriority=n,this.id=c+++":",this.size=0,this.maxSize=-1,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),r&&(this._storage.registerRemoveFunc(this.id,r),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get storageSize(){return this._storage.size}getSize(e){return this._storage.getSize(this,e)}resetHitRate(){this._hit=this._miss=0}put(e,t,r=this._defaultPriority){this._storage.put(this,e,t,t.cachedMemory,r)}pop(e){const t=this._storage.pop(this,e)
61return void 0===t?++this._miss:++this._hit,t}get(e){const t=this._storage.get(this,e)
62return void 0===t?++this._miss:++this._hit,t}peek(e){return this._storage.peek(this,e)}updateSize(e,t){this._storage.updateSize(this,e,t,t.cachedMemory)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class u{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new n.A,this._users=new n.A}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear()}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const r=this._db.get(e.id+t)
63return r?.size??0}put(e,t,r,n,a){t=e.id+t
64const l=this._db.get(t)
65if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==r&&this._notifyRemove(t,l.entry,l.size,o.ALL)),n>this._maxSize)return void this._notifyRemove(t,r,n,o.ALL)
66if(void 0===r)return void console.warn("Refusing to cache undefined entry ")
67if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,r,0,o.ALL)
68const u=1+Math.max(a,i)-s
69this._db.set(t,new d(r,n,u)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t,r,n){t=e.id+t
70const s=this._db.get(t)
71if(s&&s.entry===r){for(this._size-=s.size,e.size-=s.size;n>this._maxSize;){const e=this._notifyRemove(t,r,n,o.SOME)
72if(!(null!=e&&e>0))return void this._db.delete(t)
73n=e}s.size=n,this._size+=n,e.size+=n,this._checkSize()}}pop(e,t){t=e.id+t
74const r=this._db.get(t)
75if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t
76const r=this._db.get(t)
77if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){const r=this._db.get(e.id+t)
78return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=new Array
79this._db.forEach(((e,n)=>{const s=e.lifetime
80r[s]=(r[s]||0)+e.size,this._users.forAll((r=>{const{id:s,name:i}=r
81if(n.startsWith(s)){const r=t[i]||0
82t[i]=r+e.size}}))}))
83const n={}
84this._users.forAll((e=>{const r=e.name
85if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[r]||0
86t[r]=s,n[r]=Math.round(100*e.hitRate)+"%"}else n[r]="0%"}))
87const i=Object.keys(t)
88i.sort(((e,r)=>
88t[r]-t[e])),i.forEach((r=>e[r]=Math.round(t[r]/2**20)+"MB / "+n[r]))
89for(let o=r.length-1;o>=0;--o){const t=r[o]
90t&&(e["Priority "+(o+s-1)]=Math.round(t/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id
91this._db.forEach(((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,e.size,o.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,o.ALL))),this._users.forAll((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r,n){let s
92return this._removeFuncs.some((i=>{if(e.startsWith(i[0])){const e=i[1](t,n,r)
93return"number"==typeof e&&(s=e),!0}return!1})),s}_checkSize(){this._users.forAll((e=>this._checkSizeLimits(e))),this._checkSizeLimits()}_checkSizeLimits(e){const t=e??this
94if(t.maxSize<0||t.size<=t.maxSize)return
95const r=e?.id
96let n=!0
97for(;n;){n=!1
98for(const[s,i]of this._db)if(0===i.lifetime&&(!r||s.startsWith(r))){if(this._purgeItem(s,i,e),t.size<=.9*t.maxSize)return
99n||=this._db.has(s)}}for(const[s,i]of this._db)if((!r||s.startsWith(r))&&(this._purgeItem(s,i,e),t.size<=.9*t.maxSize))return}_purgeItem(e,t,r=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size)
100const n=this._notifyRemove(e,t.entry,t.size,o.SOME)
101null!=n&&n>0&&(this._size+=n,r&&(r.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}let c=0
102class d{constructor(e,t,r){this.entry=e,this.size=t,this.lifetime=r,this.lives=r}}},78340:(e,t,r)=>{r.d(t,{P:()=>v,L:()=>_})
103var n=r(52067),s=r(34374),i=r(31947),o=r(33600),a=r(64528)
104class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[a.Gr.DEFAULTS]
105r&&r.forEach(((e,r)=>{t.set(r,(0,o.clone)(e),a.Gr.DEFAULTS)}))
106for(let n=a.Gr.SERVICE;n<a.AU;n++){const r=this._originStores[n]
107r&&r.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,o.clone)(r),n)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t]
108return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e]
109return t?[...t.keys()]:[]}set(e,t,r=a.Gr.USER){let n=this._originStores[r]
110if(n||(n=new Map,this._originStores[r]=n),n.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const n=this._values.get(e)
111return this._values.set(e,t),this._propertyOriginMap.set(e,r),n!==t}return!1}delete(e,t=a.Gr.USER){const r=this._originStores[t]
112if(!r)return
113const n=r.get(e)
114if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e)
115for(let r=t-1;r>=0;r--){const t=this._originStores[r]
116if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r)
117break}}}return n}has(e,t){const r=void 0===t?this._values:this._originStores[t]
118return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t
119const r=this._originStores[t],n=r?.get(e),s=this._values.get(e)
120return this._values.set(e,n),this._propertyOriginMap.set(e,t),s!==n}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(84091),c=r(76126),d=r(40038)
121const p=e=>{let t=class extends e{constructor(...e){super(...e)
122const t=(0,c.oY)(this),r=t.store,n=new l
123t.store=n,(0,i.k)(t,r,n)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=h(this),n=(0,a.aB)(t)
124if("string"==typeof e)return r.get(e,n)
125const s={}
126return e.forEach((e=>{s[e]=r.get(e,n)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),n=(0,a.aB)(t),s=(0,c.oY)(this)
127let i
128i="string"==typeof e?"*"===e?r.keys(n):[e]:e,i.forEach((e=>{s.invalidate(e),r.revert(e,n),s.commit(e)}))}}
129return t=(0,n._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t}
130function h(e){return(0,c.oY)(e).store}let f=class extends(p(s.default)){}
131f=(0,n._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],f)
132var m=r(79027),y=r(31612)
133const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,a.aB)(t))}write(e,t){return(0,y.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=b(this),r=(0,a.aB)(e),n=t.keys(r)
134for(const s of n)t.originOf(s)===r&&t.set(s,t.get(s,r),a.Gr.USER)}updateOrigin(e,t){const r=b(this),n=(0,a.aB)(t),s=(0,m.Jt)(this,e)
135for(let i=n+1;i<a.AU;++i)r.delete(e,i)
136r.set(e,s,n)}toJSON(e){return this.write({},e)}}
137return t=(0,n._)([(0,d.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t}
138function b(e){return(0,c.oY)(e).store}const v=e=>{let t=class extends(g(p(e))){constructor(...e){super(...e)}}
139return t=(0,n._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],t),t}
140let _=class extends(v(s.default)){}
141_=(0,n._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],_)},37781:(e,t,r)=>{r.d(t,{A:()=>i})
142var n=r(86018),s=r(8282)
143class i{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,n.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return
144let e
145for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,n.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return
146const e=this.peek()
147return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return
148const e=this.last()
149return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length
150return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,n.gc)(this._observable),yield*this._items}}},60725:(e,t,r)=>{r.d(t,{A:()=>i})
151var n=r(86018),s=r(8282)
152class i{constructor(e){this._observable=new s.I,this._map=new Map(e)}get size(){return(0,n.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e)
153return t&&this._observable.notify(),t}entries(){return(0,n.gc)(this._observable),this._map.entries()}forEach(e,t){(0,n.gc)(this._observable),this._map.forEach(((r,n)=>e.call(t,r,n,this)),t)}get(e){return(0,n.gc)(this._observable),this._map.get(e)}has(e){return(0,n.gc)(this._observable),this._map.has(e)}keys(){return(0,n.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,n.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,n.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},14974:(e,t,r)=>{r.d(t,{R:()=>s})
154var n=r(61840)
155let s=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" "
156throw new n.default(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[s,i]=t.split("."),o=/^\s*\d+\s*$/
157if(!s?.match||!o.test(s))throw new n.default((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t})
158if(!i?.match||!o.test(i))throw new n.default((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t})
159const a=parseInt(s,10),l=parseInt(i,10)
160return new e(a,l,r)}}},14023:(e,t,r)=>{r.d(t,{U:()=>c})
161var n=r(52067),s=r(34374),i=r(18145),o=r(87874),a=r(89638),l=r(91937),u=r(40038)
162let c=class extends s.default{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,r={}){return this._installWatch(e,t,r,o.watch)}addWhen(e,t,r={}){return this._installWatch(e,t,r,o.when)}addOnCollectionChange(e,t,{initial:r=!1,final:n=!1}={}){const s=++this._handleId
163return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.sync),(0,o.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:n?e=>t({added:[],removed:e.toArray()}):void 0})],s),(0,i.hA)((()=>this.removeHandles(s)))}addPromise(e){if(null==e)return e
164const t=++this._handleId
165this.addHandles((0,i.hA)((()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(d)||this._set("updating",!1))})),t),this._pendingPromises.add(e),this._set("updating",!0)
166const r=()=>this.removeHandles(t)
167return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,r={},n){const s=++this._handleId
168r.sync||this._installSyncUpdatingWatch(e,s)
169const o=n(e,t,r)
170return this.addHandles(o,s),(0,i.hA)((()=>this.removeHandles(s)))}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),n=(0,o.watch)(e,r,{sync:!0,equals:()=>!1})
171return this.addHandles(n,t),n}_createSyncUpdatingCallback(){return()=>{this.removeHandles(d),++this._scheduleHandleId
172const e=this._scheduleHandleId
173this._get("updating")||this._set("updating",!0),this.addHandles((0,a.schedule)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(d))})),d)}}};(0,n._)([(0,l.MZ)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,n._)([(0,u.$)("esri.core.support.UpdatingHandles")],c)
174const d=-42},16008:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u})
175var n=r(18145),s=(r(57250),r(81814)),i=r(37781),o=r(94291),a=r(96854),l=r(11585)
176class u{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((r,n)=>{let i=!0
177const o=e=>{(0,s.throwIfAborted)(t.signal),i&&(i=!1,e())}
178this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length
179for(let a=0;a<e.length;++a){const i=e[a];(0,s.isPromiseLike)(i)?this._clientPromises[a]=i.then((e=>(this._clients[a]=new l.A(e,t,this._ongoingJobsQueue),o(r),this._clients[a])),(()=>(o(n),null))):(this._clients[a]=new l.A(i,t,this._ongoingJobsQueue),this._clientPromises[a]=Promise.resolve(this._clients[a]),o(r))}}))}broadcast(e,t,r){const n=new Array(this._clientPromises.length)
180for(let s=0;s<this._clientPromises.length;++s){const i=this._clientPromises[s]
181n[s]=i.then((n=>n?.invoke(e,t,r)))}return n}close(){let e
182for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,s.createAbortError)(`Worker closing, aborting job calling '${e.methodName}'`))
183for(const t of this._clientPromises)t.then((e=>e?.close()))
184this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=(0,s.createResolver)()
185this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,resolver:n})
186for(let s=0;s<this._clientPromises.length;s++){const e=this._clients[s]
187e?e.jobAdded():this._clientPromises[s].then((e=>e?.jobAdded()))}return n.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,n.vE)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length)
188let r=t.length
189for(let n=0;n<this._clientPromises.length;++n)this._clientPromises[n].then((s=>{s&&(t[n]=s.openPort()),0==--r&&e(t)}
189))}))}get test(){}}},96854:(e,t,r)=>{function n(e,t){return new Proxy({},{get:(r,n,s)=>(...r)=>{let s,i
190const o=r[r.length-1]
191return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(o)&&(s=o.signal,i=o.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:i,signal:s})}})}r.d(t,{L:()=>n})},11585:(e,t,r)=>{r.d(t,{A:()=>_})
192var n=r(51167),s=r(61840),i=r(3905),o=r(18145),a=r(92874),l=r(81814),u=r(96854)
193const c={statsWorker:()=>Promise.all([r.e(17275),r.e(99249)]).then(r.bind(r,75015)),geometryEngineWorker:()=>Promise.all([r.e(71904),r.e(81747)]).then(r.bind(r,11677)),arcadeGeometryOperatorsWorker:()=>r.e(16385).then(r.bind(r,16385)),CSVSourceWorker:()=>Promise.all([r.e(15420),r.e(17275),r.e(53664),r.e(32245),r.e(98562),r.e(40520)]).then(r.bind(r,62759)),EdgeProcessingWorker:()=>r.e(73710).then(r.bind(r,73710)),ElevationSamplerWorker:()=>Promise.all([r.e(15420),r.e(43149)]).then(r.bind(r,41609)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(15420),r.e(17275),r.e(53664),r.e(32245),r.e(98562),r.e(91383)]).then(r.bind(r,18948)),GeoJSONSourceWorker:()=>Promise.all([r.e(15420),r.e(17275),r.e(53664),r.e(32245),r.e(72928),r.e(98562),r.e(12385)]).then(r.bind(r,29284)),LercWorker:()=>r.e(5969).then(r.bind(r,5969)),MemorySourceWorker:()=>Promise.all([r.e(15420),r.e(17275),r.e(53664),r.e(32245),r.e(72928),r.e(98562),r.e(82085)]).then(r.bind(r,3186)),PBFDecoderWorker:()=>r.e(81056).then(r.bind(r,81056)),FeaturePipelineWorker:()=>Promise.all([r.e(15420),r.e(17275),r.e(53664),r.e(73696),r.e(32245),r.e(93772),r.e(16957),r.e(6067),r.e(40057),r.e(16308),r.e(60895),r.e(72928),r.e(23554),r.e(17556),r.e(40600),r.e(85611)]).then(r.bind(r,25441)),PointCloudWorker:()=>Promise.all([r.e(21932),r.e(77985),r.e(50252)]).then(r.bind(r,82339)),RasterWorker:()=>Promise.all([r.e(15420),r.e(10231),r.e(42882),r.e(29253),r.e(71146),r.e(71972)]).then(r.bind(r,94257)),SceneLayerSnappingSourceWorker:()=>r.e(39636).then(r.bind(r,39636)),SceneLayerWorker:()=>Promise.all([r.e(15420),r.e(21932),r.e(53587),r.e(18258)]).then(r.bind(r,82144)),WFSSourceWorker:()=>Promise.all([r.e(15420),r.e(17275),r.e(53664),r.e(32245),r.e(72928),r.e(98562),r.e(65808)]).then(r.bind(r,71013)),WorkerTileHandler:()=>Promise.all([r.e(93772),r.e(42231),r.e(37354)]).then(r.bind(r,63978)),Lyr3DWorker:()=>r.e(25866).then(r.bind(r,25866)),Feature3DPipelineWorker:()=>Promise.all([r.e(95427),r.e(93963),r.e(74044),r.e(15420),r.e(17275),r.e(21932),r.e(51336),r.e(26865),r.e(1918),r.e(53664),r.e(98085),r.e(62287),r.e(32245),r.e(79432),r.e(55915),r.e(4462),r.e(6379)]).then(r.bind(r,80929)),TextureCompressionWorker:()=>r.e(221).then(r.bind(r,221))}
194var d=r(65771),p=r(85759)
195const{CLOSE:h,ABORT:f,INVOKE:m,RESPONSE:y,OPEN_PORT:g,ON:b}=d.Go
196class v{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===d.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null
197for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e)
198this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class _{static connect(e,t){const r=new MessageChannel
199let n
200n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e
201const s=new _(r.port1,{channel:r,client:n,schedule:t})
202return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=s),_.clients.set(s,n),r.port2}static loadWorker(e){const t=c[e]
203return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._jobQueue=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new v((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,i=r?.transferList
204if(!this._port)return Promise.reject(new s.default(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}))
205const o=(0,d.Jc)()
206return new Promise(((r,s)=>{if((0,l.isAborted)(n))return this._processWork(),void s((0,l.createAbortError)())
207const u=(0,l.onAbort)(n,(()=>{const e=this._outJobs.get(o)
208e&&(this._outJobs.delete(o),this._processWork(),(0,a.xt)(e.abortHandle),this._post({type:f,jobId:o}),s((0,l.createAbortError)()))})),c={resolve:r,reject:s,abortHandle:u,debugInfo:e}
209this._outJobs.set(o,c),this._post({type:m,jobId:o,methodName:e,abortable:null!=n},t,i)}))}createInvokeProxy(e){return(0,u.L)(this,e)}on(e,t){const r=new MessageChannel
210function n(e){t(e.data)}return this._port.postMessage({type:d.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,o.hA)((()=>{r.port1.postMessage({type:d.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}))}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel
211return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return
212const e=this._jobQueue?.pop()
213if(!e)return
214const{methodName:t,data:r,invokeOptions:n,resolver:s}=e
215this.apply(t,r,n).then((e=>s.resolve(e))).catch((e=>s.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,a.xt)(e.abortHandle),e.reject((0,l.createAbortError)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e,!0))):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e)
216if(r)switch(r.type){case y:this._onResponseMessage(r)
217break
218case m:t?this._onInvokeMessage(r):this._invokeQueue.push(r)
219break
220case f:this._onAbortMessage(r)
221break
222case h:this._onCloseMessage()
223break
224case g:this._onOpenPortMessage(r)
225break
226case b:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r)
227this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client
228this._close(),e&&"destroy"in e&&_.clients.get(this)===e&&e.destroy(),_.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:s}=e,i=s?new AbortController:null,o=this._inJobs
229let a,u=this._client,c=u[t]
230try{if(!c&&t&&t.includes(".")){const e=t.split(".")
231for(let t=0;t<e.length-1;t++)u=u[e[t]],c=u[e[t+1]]}if("function"!=typeof c)throw new TypeError(`${t} is not a function`)
232n.push({client:this,signal:i?i.signal:null}),a=c.apply(u,n)}catch(e){return void this._post({type:y,jobId:r,error:(0,d.mF)(e)})}(0,l.isPromiseLike)(a)?(o.set(r,{controller:i,promise:a}),a.then((e=>{o.has(r)&&(o.delete(r),this._post({type:y,jobId:r},e))}),(e=>{o.has(r)&&(o.delete(r),(0,l.isAbortError)(e)||this._post({type:y,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},a)}_onOpenPortMessage(e){new _(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,i.on)(e.port,"message",(e=>{const s=(0,d.VI)(e)
233s?.type===d.Go.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,i=this._outJobs
234if(!i.has(t))return
235const o=i.get(t)
236i.delete(t),this._processWork(),(0,a.xt)(o.abortHandle),r?o.reject(s.default.fromJSON(JSON.parse(r))):o.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}_.kernelInfo={buildDate:p.$,fullVersion:n.fullVersion,revision:p.u},_.clients=new Map},94291:(e,t,r)=>{r.d(t,{h:()=>i,k:()=>s})
237const n=new FinalizationRegistry((e=>{e.close()}))
238function s(e,t){n.register(e,t,t)}function i(e){n.unregister(e)}},65771:(e,t,r)=>{r.d(t,{Go:()=>o,Jc:()=>u,T:()=>i,VI:()=>p,mF:()=>c,oV:()=>f,u1:()=>d})
239var n=r(57250),s=r(81814)
240const i="worker:port-closed"
241var o,a;(a=o||(o={}))[a.HANDSHAKE=0]="HANDSHAKE",a[a.OPEN=1]="OPEN",a[a.OPENED=2]="OPENED",a[a.RESPONSE=3]="RESPONSE",a[a.INVOKE=4]="INVOKE",a[a.ABORT=5]="ABORT",a[a.CLOSE=6]="CLOSE",a[a.OPEN_PORT=7]="OPEN_PORT",a[a.ON=8]="ON"
242let l=0
243function u(){return l++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function d(e,t,r,s){if(t.type===o.OPEN_PORT)return void e.postMessage(t,[t.port])
244if(t.type!==o.INVOKE&&t.type!==o.RESPONSE)return void e.postMessage(t)
245let i
246if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=h(r.transferList),t.data=r.result):(i=h(s),t.data=r),i){if((0,n.A)("ff"))for(const r of i)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox"
247switch(t.type){case o.INVOKE:throw r
248case o.RESPONSE:return void d(e,{type:o.RESPONSE,jobId:t.jobId,error:c(r)})}}e.postMessage(t,i)}else e.postMessage(t)}function p(e){if(!e)return null
249const t=e.data
250return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e?.length)return null
251if((0,n.A)("esri-workers-arraybuffer-transfer"))return e
252const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)))
253return t.length?t:null}async function f(e){try{return await e}catch(e){const t=e?.name===i
254if(!(0,s.isAbortError)(e)&&!t)throw e
255return}}},54698:(e,t,r)=>{r.d(t,{n_:()=>Z,ho:()=>J,N1:()=>$,MH:()=>G})
256var n=r(61840),s=r(57250),i=r(81814),o=r(16008),a=r(94291),l=r(11585),u=r(12752),c=r(92874),d=r(33333),p=r(83546)
257const h={async request(e,t){const r=e.options,n=r.responseType
258r.signal=t?.signal,r.responseType="native"===n||"native-request-init"===n?"native-request-init":n&&["blob","json","text"].includes(n)&&(0,p.getInterceptor)(e.url)?.after?n:"array-buffer"
259const s=await(0,d.default)(e.url,r),i={data:s.data,httpStatus:s.httpStatus,ssl:s.ssl}
260switch(s.requestOptions?.responseType){case"native-request-init":return delete i.data.signal,i
261case"blob":i.data=await i.data.arrayBuffer()
262break
263case"json":i.data=(new TextEncoder).encode(JSON.stringify(i.data)).buffer
264break
265case"text":i.data=(new TextEncoder).encode(i.data).buffer}return{result:i,transferList:[i.data]}}}
266var f=r(65771),m=r(9295),y=r(24396),g=(r(99418),r(51167))
267const b={}
268var v=r(54116)
269class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class w{constructor(){this._dispatcher=new _,this._workerPostMessage({type:f.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}
269get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.VI)(e)
270if(t&&t.type===f.Go.OPEN){const{modulePath:e,jobId:r}=t
271let n=await l.A.loadWorker(e)
272n||(n=await import(e))
273const s=l.A.connect(n)
274this._workerPostMessage({type:f.Go.OPENED,jobId:r,data:s})}}}var S=r(15966),x=r(85759)
275const k=()=>u.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:A}=f.Go
276let E,M
277const T="Failed to create Worker. Fallback to execute module in main thread"
278async function P(e){return new Promise((t=>{function r(s){const i=(0,f.VI)(s)
279i&&i.type===A&&(e.removeEventListener("message",r),e.removeEventListener("error",n),t(e))}function n(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",n),k().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new w).addEventListener("message",r),e.addEventListener("error",n)}e.addEventListener("message",r),e.addEventListener("error",n)}))}let I=0
280const{ABORT:C,INVOKE:O,OPEN:F,OPENED:R,RESPONSE:L}=f.Go
281class N{static async create(e){const t=await async function(){if(!(0,s.A)("esri-workers"))return P(new w)
282if(!E&&!M)try{const e='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})})).finally((()=>{t&&t.removeEventListener("abort",s)}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e
283if(null!=y.default.default){const t={...y.default}
284delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(y.default))
285e.assetsPath=(0,p.makeAbsolute)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.makeAbsolute)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,S.JK)(),e.has={"esri-csp-restrictions":(0,s.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,s.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,s.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,s.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,s.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,s.A)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,s.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,s.A)("featurelayer-snapshot-enabled"),"esri-atomics":(0,s.A)("esri-atomics"),"esri-shared-array-buffer":(0,s.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,s.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.makeAbsolute)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.makeAbsolute)(e.workers.workerPath):e.workers.workerPath=(0,p.makeAbsolute)((0,m.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1
286const t=y.default.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...b.paths,...e.paths}}
287return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=b.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,S.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),n={buildDate:x.$,fullVersion:g.fullVersion,revision:x.u}
288return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:n})}())
289E=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){M=e||{}}let e
290if(E)try{e=new Worker(E,{name:"esri-worker-"+I++})}catch(t){k().warn(T,M),e=new w}else k().warn(T,M),e=new w
291return P(e)}()
292return new N(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),u.A.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,n=(0,f.Jc)()
293return new Promise(((t,s)=>{const o={resolve:t,reject:s,abortHandle:(0,i.onAbortOrThrow)(r,(()=>{this._outJobs.delete(n),this._post({type:C,jobId:n})}))}
294this._outJobs.set(n,o),this._post({type:F,jobId:n,modulePath:e})}))}_onMessage(e){const t=(0,f.VI)(e)
295if(t)switch(t.type){case R:this._onOpenedMessage(t)
296break
297case L:this._onResponseMessage(t)
298break
299case C:this._onAbortMessage(t)
300break
301case O:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r)
302n&&(n.controller&&n.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:s}=e,o=s?new AbortController:null,a=this._inJobs,l=h[t]
303let u
304try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`)
305u=l.call(null,n,{signal:o?o.signal:null})}catch(e){return void this._post({type:L,jobId:r,error:(0,f.mF)(e)})}(0,i.isPromiseLike)(u)?(a.set(r,{controller:o,promise:u}),u.then((e=>{a.has(r)&&(a.delete(r),this._post({type:L,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,i.isAbortError)(e)||this._post({type:L,jobId:r,error:(0,f.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:L,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,n=this._outJobs.get(t)
306n&&(this._outJobs.delete(t),(0,c.xt)(n.abortHandle),n.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:s}=e,i=this._outJobs.get(t)
307i&&(this._outJobs.delete(t),(0,c.xt)(i.abortHandle),r?i.reject(n.default.fromJSON(JSON.parse(r))):i.resolve(s))}_post(e,t,r){return(0,f.u1)(this.worker,e,t,r)}}const j=(0,s.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,s.A)("workers-pool-size")??8):0
308let V=(0,s.A)("esri-mobile")?Math.min(j,3):j
309V||(V=(0,s.A)("safari")&&(0,s.A)("mac")?7:2)
310let B=0
311const z=[]
312function Z(){H()}function $(e,t){return D(e,{client:t})}async function D(e,t){const r=new o.default,{registryTarget:n,...s}=t
313return await r.open(e,s),n&&(0,a.k)(n,r),r}async function J(e,t={}){if("string"!=typeof e)throw new n.default("workers:undefined-module","modulePath is missing")
314let r=t.strategy||"distributed"
315if((0,s.A)("host-webworker")&&!(0,s.A)("esri-workers")&&(r="local"),"local"===r){let r=await l.A.loadWorker(e)
316r||(r=await import(e)),(0,i.throwIfAborted)(t.signal)
317const n=t.client||r
318return D([l.A.connect(r,t.schedule)],{...t,client:n})}if(await H(),(0,i.throwIfAborted)(t.signal),"dedicated"===r){const r=B++%V
319return D([await z[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,V)
320if(r<V){const n=new Array(r)
321for(let s=0;s<r;++s){const r=B++%V
322n[s]=z[r].open(e,t)}return D(n,t)}}return D(z.map((r=>r.open(e,t))),t)}function G(){W&&(U.abort(),W=null)
323for(let e=0;e<z.length;e++)z[e]&&z[e].terminate()
324z.length=0}let U,W=null
325async function H(){if(W)return W
326U=new AbortController
327const e=[]
328for(let t=0;t<V;t++){const r=N.create(t).then((e=>(z[t]=e,e)))
329e.push(r)}return W=Promise.all(e),W}},46753:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v})
330var n,s=r(52067),i=r(21590),o=r(94038),a=r(96679),l=r(37205),u=r(7990),c=r(91937),d=(r(57250),r(12752),r(24743)),p=r(40038),h=r(62391)
331const f=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=f.jsonValues.slice();(0,i.Xy)(m,"orthometric")
332const y=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"})
333let g=n=class extends a.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return f.write(e,t,r)}readHeightModel(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||y.read(e)||(r?.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t)
334return new n({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null
335const t=new n
336return t.read(e,{origin:"web-scene"}),t}}
337function b(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,c.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,s._)([(0,h.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,s._)([(0,d.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,s._)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,s._)([(0,d.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,s._)([(0,d.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,s._)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,s._)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=n=(0,s._)([(0,p.$)("esri.geometry.HeightModelInfo")],g)
338const v=g},61222:(e,t,r)=>{r.d(t,{X_:()=>o,eU:()=>c,gB:()=>u,i1:()=>a,j8:()=>l,oW:()=>p,zx:()=>d})
339var n=r(41889),s=r(37205)
340const i=96
341function o(e,t){const r=t||e.extent,n=e.width,o=(0,s.GA)(r?.spatialReference)
342return r&&n?r.width/n*o*s.dy*i:0}function a(e,t){return e/((0,s.GA)(t)*s.dy*i)}function l(e){return e/(s.dy*i)}function u(e,t){return e*((0,s.GA)(t)*s.dy*i)}function c(e,t){const r=e.extent,n=e.width-(e.padding?e.padding.left+e.padding.right:0),s=a(t,r.spatialReference)
343return r.clone().expand(s*n/r.width)}function d(e,t,r){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,r)}function p(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},46546:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>c,ne:()=>u})
344var n=r(52067),s=r(42087),i=r(91937),o=(r(57250),r(12752),r(98389),r(40038)),a=r(75342)
345function l(e,t,r){if(!e)return null
346const n=e.find((e=>!!e.field))
347if(!n)return null
348const s=new a.default
349return s.read(n,r),[s]}const u={type:[a.default],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,n){const i=e.find((e=>!!e.field))
350i&&(0,s.sM)(r,[i.toJSON()],t)}}}},c=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}}
351return(0,n._)([(0,i.MZ)(u)],t.prototype,"orderBy",void 0),t=(0,n._)([(0,o.$)("esri.layers.mixins.OrderedLayer")],t),t}},48365:(e,t,r)=>{r.d(t,{A:()=>l})
352var n=r(52067),s=r(34374),i=r(91937),o=(r(57250),r(12752),r(98389),r(40038))
353let a=class extends s.default{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.codedValue=null}};(0,n._)([(0,i.MZ)()],a.prototype,"objectType",void 0),(0,n._)([(0,i.MZ)()],a.prototype,"maxValue",void 0),(0,n._)([(0,i.MZ)()],a.prototype,"minValue",void 0),(0,n._)([(0,i.MZ)()],a.prototype,"codedValue",void 0),a=(0,n._)([(0,o.$)("esri.layers.support.ContingentValue")],a)
354const l=a},29903:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d})
355var n=r(52067),s=r(1454),i=r(94038),o=r(96679),a=r(91937),l=(r(57250),r(12752),r(98389),r(40038))
356const u=new i.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"})
357let c=class extends(s.A.ClonableMixin(o.A)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"description",void 0),(0,n._)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"drawingTool",void 0),(0,n._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"prototype",void 0),(0,n._)([(0,a.MZ)({json:{write:!0}})],c.prototype,"thumbnail",void 0),c=(0,n._)([(0,l.$)("esri.layers.support.FeatureTemplate")],c)
358const d=c},44009:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h})
359var n=r(52067),s=r(1454),i=r(96679),o=r(91937),a=(r(57250),r(12752),r(98389),r(24743)),l=r(40038),u=r(62391),c=r(7030),d=r(29903)
360let p=class extends(s.A.ClonableMixin(i.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={}
361for(const r of Object.keys(e))t[r]=(0,c.rS)(e[r])
362return t}writeDomains(e,t){const r={}
363for(const n of Object.keys(e))e[n]&&(r[n]=e[n]?.toJSON())
364t.domains=r}};(0,n._)([(0,o.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,n._)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,o.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,n._)([(0,a.w)("domains")],p.prototype,"readDomains",null),(0,n._)([(0,u.K)("domains")],p.prototype,"writeDomains",null),(0,n._)([(0,o.MZ)({type:[d.default],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,n._)([(0,l.$)("esri.layers.support.FeatureType")],p)
365const h=p},76601:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k})
366var n,s=r(52067),i=(r(57250),r(94038)),o=r(96679),a=r(33600),l=r(37015),u=r(91937),c=(r(12752),r(24743)),d=r(40038),p=r(62391),h=r(68871),f=r(13152),m=r(98961),y=r(31014),g=r(93389),b=r(93963)
367const v=new i.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0})
368function _(e,t,r){return{enabled:!(0,m.TU)(r?.layer)}}function w(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function S(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=n=class extends o.A{static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r
369case"<>":return e!=r
370case">":return e>r
371case">=":return e>=r
372case"<":return e<r
373case"<=":return e<=r}return!1}
374try{if(null==e)return!0
375const n=e.split(" ")
376if(3===n.length)return r(t[n[0]],n[1],n[2])
377if(7===n.length){const e=r(t[n[0]],n[1],n[2]),s=n[3],i=r(t[n[4]],n[5],n[6])
378switch(s){case"AND":return e&&i
379case"OR":return e||i}}return!1}catch(e){}}constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=y.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo
380if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value)
381else if(null!=this.labelExpressionInfo.expression){const t=(0,f.tH)(this.labelExpressionInfo.expression)
382t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&w(n))e=new h.A({expression:this.getLabelExpressionArcade()})
383else if(!e)return
384const s=e.toJSON(n)
385s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.clone)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol
385:(0,a.clone)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:_}}}}})],x.prototype,"allowOverrun",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:_}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&S(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,s._)([(0,c.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,s._)([(0,p.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,s._)([(0,u.MZ)({type:h.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return w(e)||S(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,s._)([(0,p.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,s._)([(0,u.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],x.prototype,"labelPlacement",void 0),(0,s._)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,s._)([(0,u.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,s._)([(0,p.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,s._)([(0,u.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,s._)([(0,p.K)("minScale")],x.prototype,"writeMinScale",null),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:_}}}}})],x.prototype,"repeatLabel",void 0),(0,s._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:_}}}}})],x.prototype,"repeatLabelDistance",void 0),(0,s._)([(0,u.MZ)({types:b.em,json:{origins:{"web-scene":{types:b.Rv,write:g.writeLabelSymbol,default:null}},write:g.writeLabelSymbol,default:null}})],x.prototype,"symbol",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=n=(0,s._)([(0,d.$)("esri.layers.support.LabelClass")],x)
386const k=x},68871:(e,t,r)=>{r.d(t,{A:()=>p})
387var n,s=r(52067),i=r(96679),o=r(91937),a=(r(57250),r(12752),r(98389),r(24743)),l=r(40038),u=r(62391),c=r(13152)
388let d=n=class extends i.A{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,c.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,c.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,s._)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"expression",void 0),(0,s._)([(0,a.w)("expression",["expression","value"])],d.prototype,"readExpression",null),(0,s._)([(0,u.K)("expression")],d.prototype,"writeExpression",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"title",void 0),(0,s._)([(0,o.MZ)({json:{read:!1,write:!1}})],d.prototype,"value",void 0),d=n=(0,s._)([(0,l.$)("esri.layers.support.LabelExpressionInfo")],d)
389const p=d},19714:(e,t,r)=>{r.d(t,{A:()=>C})
390var n=r(52067),s=r(33333),i=r(21590),o=r(96679),a=r(75708),l=r(91937),u=(r(57250),r(12752),r(40038)),c=r(21436),d=r(34374)
391r(98389)
392let p=class extends d.default{constructor(e){super(e),this.isRetired=!1}};(0,n._)([(0,l.MZ)()],p.prototype,"id",void 0),(0,n._)([(0,l.MZ)()],p.prototype,"isRetired",void 0),(0,n._)([(0,l.MZ)()],p.prototype,"subtype",void 0),(0,n._)([(0,l.MZ)()],p.prototype,"values",void 0),p=(0,n._)([(0,u.$)("esri.layers.support.Contingency")],p)
393const h=p
394let f=class extends d.default{constructor(e){super(e)}};(0,n._)([(0,l.MZ)()],f.prototype,"fieldGroup",void 0),(0,n._)([(0,l.MZ)()],f.prototype,"type",void 0),f=(0,n._)([(0,u.$)("esri.layers.support.ContingencyConstraintViolation")],f)
395const m=f
396var y=r(48365)
397let g=class extends d.default{constructor(e){super(e)}};(0,n._)([(0,l.MZ)()],g.prototype,"contingentValuesAllGroups",void 0),(0,n._)([(0,l.MZ)()],g.prototype,"contingentValuesByFieldGroup",void 0),g=(0,n._)([(0,u.$)("esri.layers.support.ContingentValuesResult")],g)
398const b=g
399let v=class extends d.default{constructor(e){super(e),this.fields=null,this.isEditingRestrictive=!1}};(0,n._)([(0,l.MZ)()],v.prototype,"name",void 0),(0,n._)([(0,l.MZ)()],v.prototype,"fields",void 0),(0,n._)([(0,l.MZ)()],v.prototype,"isEditingRestrictive",void 0),(0,n._)([(0,l.MZ)()],v.prototype,"contingencies",void 0),v=(0,n._)([(0,u.$)("esri.layers.support.FieldGroup")],v)
400const _=v
401var w,S=r(86842),x=r(72565),k=r(90823)
402let A=w=class extends(o.A.JSONSupportMixin(a.A)){constructor(e){super(e),this.request=s.default,this.fieldGroups=null,this.fieldGroupDefinitions=null}initialize(){}get subtypeFieldName(){return(0,k.CU)(this.layer).typeFieldName}static async createLoadedLayerContingentValuesCache(e){await e.load()
403const t=e.sourceJSON
404if(void 0===e.layerId)return null
405const r=t.hasContingentValuesDefinition
406if(r)return new w({layer:e}).load()
407if(void 0===r){const t=(0,c.qg)(e.url)
408if(null==t)return null
409const r=t.url.path
410if((await I(r)).supportsQueryDataElements){const t=e.layerId.toString(),n=await P(r,t)
411if(n){const t=n.map((t=>({name:t.name,isEditingRestrictive:t.isEditingRestrictive,fields:t.fieldNames.names.map((t=>e.fieldsIndex.normalizeFieldName(t)))})))
412return new w({layer:e,fieldGroupDefinitions:t}).load()}}}return null}async load(e){const t=this.layer.load(e).then((()=>this._initializeContingentValues(this.fieldGroupDefinitions,e)))
413return this.addResolvingPromise(t),this}validateContingencyConstraints(e,t){const r=Object.keys(e),n=[],s=[]
414for(const i of this.fieldGroups){const o=i.isEditingRestrictive?"error":"warning"
415if(t&&!i.fields.some((e=>t.includes(e))))continue
416if(!i.fields.every((e=>r.includes(e)))){s.push(new m({fieldGroup:i,type:o}))
417continue}let a=!1
418const l=e[this.subtypeFieldName],u=i.contingencies.filter((e=>!(!e.isRetired&&e.subtype)||e.subtype.code===l))
419if(0!==u.length){for(const t of u){let r=!0
420for(const n in t.values){const s=t.values[n]
421if("any"!==s.objectType)if("null"===s.objectType){if(null!=e[n]){r=!1
422break}}else if("code"===s.objectType){if(e[n]!==s.codedValue.code){r=!1
423break}}
423else if("range"===s.objectType){const t=e[n]
424if(t<s.minValue||t>s.maxValue){r=!1
425break}}}if(r){a=!0
426break}}a||n.push(new m({fieldGroup:i,type:o}))}}return{invalid:n,incomplete:s}}getContingentValues(e,t,r=!1){const n=e[this.subtypeFieldName],s=null!=n,i={}
427let o=[]
428const a=this.fieldGroups.filter((e=>e.fields.includes(t)))
429o.push(new y.A({objectType:"any"}))
430for(const l of a){let a=[]
431const u=l.contingencies.filter((e=>!(e.isRetired||e.subtype&&s&&e.subtype.code!==n)))
432let c=!1
433const d={}
434for(const r of u){let n,s=!0
435for(const i in r.values){const o=r.values[i]
436if(t!==i){if(void 0!==e[i]&&"any"!==o.objectType)if("null"===o.objectType)null!==e[i]&&(s=!1)
437else if("code"===o.objectType)e[i]!==o.codedValue.code&&(s=!1)
438else if("range"===o.objectType){const t=e[i];(t<o.minValue||t>o.maxValue)&&(s=!1)}}else n=o,c=c||"range"===o.objectType}if(n&&s){if("any"===n.objectType){a.length=0,a.push(n)
439break}const e=E(n)
440d[e]||a.push(n),d[e]=!0}}c&&(a=M(a)),i[l.name]=a,o=r?T(o,a):[]}return 1===a.length&&r&&(o=[]),new b({contingentValuesAllGroups:o,contingentValuesByFieldGroup:i})}async _initializeContingentValues(e,t){const r=e??await this._fetchFieldGroupDefs(t)
441if(0===r.length)return void(this.fieldGroups=[])
442const n=await this._fetchContingentValues(r,t)
443this.fieldGroups=n}async _fetchFieldGroupDefs(e){if(void 0===this.layer.layerId)return[]
444const t=this.layer.sourceJSON,r=this.layer.layerId.toString(),n=(0,c.qg)(this.layer.url).url.path
445return t.hasContingentValuesDefinition?(await async function(e,t,r){return(0,s.default)(`${e}/${t}/fieldgroups`,{responseType:"json",query:{f:"json"},...r}).then((e=>e.data.fieldGroups??[]))}(n,r,e)).map((e=>({name:e.name,isEditingRestrictive:e.restrictive,fields:e.fields.map((e=>this.layer.fieldsIndex.normalizeFieldName(e)))}))):void 0!==t.hasContingentValuesDefinition?[]:I(n,e).then((async t=>t.supportsQueryDataElements?(await P(n,r,e)).map((e=>({name:e.name,isEditingRestrictive:e.isEditingRestrictive,fields:e.fieldNames.names.map((e=>this.layer.fieldsIndex.normalizeFieldName(e)))}))):[]))}async _fetchContingentValues(e,t){if(void 0===this.layer.layerId)return[]
446const r=this.layer.sourceJSON,n=this.layer.layerId.toString(),i=(0,c.qg)(this.layer.url).url.path
447if(r.hasContingentValuesDefinition){const r=await async function(e,t,r){return(0,s.default)(`${e}/${t}/contingentValues`,{responseType:"json",query:{f:"json"},...r}).then((e=>e.data))}(i,n,t)
448return this._constructFieldGroupsAGOL(e,r)}const o=await async function(e,t,r){return(0,s.default)(`${e}/queryContingentValues`,{responseType:"json",query:{layers:JSON.stringify([t]),f:"json"},...r}).then((e=>e.data.contingentValueSets?.[0]))}(i,n,t)
449return this._constructFieldGroupsEnterprise(e,o)}_constructFieldGroupsAGOL(e,t){return e.map((e=>{const r=t.contingentValuesDefinition.fieldGroups.find((t=>t.name===e.name))
450if(r){let n=[]
451return n=t.contingentValuesDefinition.hasSubType?this._parseAGOLFieldGroupSubtype(e,t,r.subTypes):this._parseAGOLFieldGroup(e,t,r.contingentValues),new _({name:e.name,isEditingRestrictive:e.isEditingRestrictive,fields:e.fields,contingencies:n})}return null})).filter(i.Ru)}_parseAGOLFieldGroupSubtype(e,t,r){let n=[]
452return r?.forEach((r=>{const s=this._getSubtypeAGOL(r.name)
453n=n.concat(this._parseAGOLFieldGroup(e,t,r.contingentValues,s))})),n}_parseAGOLFieldGroup(e,t,r,n=null){const s=[]
454for(const i of r??[]){const r=this._parseAGOLContingency(i,e,t,n)
455s.push(r)}return s}_parseAGOLContingency(e,t,r,n){const s=e.id,i=!!e.retired&&1===e.retired,o={}
456for(let a=0,l=0;a<t.fields.length;a++){const s=t.fields[a],i=r.typeCodes[e.types[a]]
457if("Code"===i){let t=e.values[l]
458l++
459const i=this._getDomain(n,s),a=this.layer.getField(s)
460if("string"===a?.type){const e=r.stringDicts.find((e=>e.domain===i?.name))
461e&&(t=e.entries[t])}const u=i?.codedValues.find((e=>e.code===t)),c=new y.A({codedValue:u,objectType:"code"})
462o[s]=c}else if("Range"===i){const t=e.values[l]
463l++
464const r=t.range[0],n=t.range[1],i=new y.A({minValue:r,maxValue:n,objectType:"range"})
465o[s]=i}else if("Any"===i){const e=new y.A({objectType:"any"})
466o[s]=e}else{const e=new y.A({objectType:"null"})
467o[s]=e}}return new h({id:s,isRetired:i,subtype:n,values:o})}_constructFieldGroupsEnterprise(e,t){const r=t.fieldGroups
468return e.map((e=>{const n=r.find((t=>t.name===e.name))
469if(n){const r=n.contingencies.map((r=>{const n=r.id,s=r.isRetired||!1,i=this._getSubtypeEnterprise(r.subtypeCode),o={}
470for(let a=0;a<e.fields.length;a++){const n=e.fields[a]
471let s=r.values[a]
472if("number"==typeof s||"string"==typeof s){const e=this._getDomain(i,n),r=this.layer.getField(n)
473if((0,S.isStringField)(r))s=t.stringDictionary[s]
474else if((0,S.isDateField)(r)){const e=new Date(`${s}+00:00`)
475s=e.getTime()}const a=e?.codedValues.find((e=>e.code===s)),l=new y.A({codedValue:a,objectType:"code"})
476o[n]=l}else if("object"==typeof s){const e=s.minValue,t=s.maxValue,r=new y.A({minValue:e,maxValue:t,objectType:"range"})
477o[n]=r}else if(s){const e=new y.A({objectType:"any"})
478o[n]=e}else{const e=new y.A({objectType:"null"})
479o[n]=e}}return new h({id:n,isRetired:s,subtype:i,values:o})}))
480return new _({name:e.name,isEditingRestrictive:e.isEditingRestrictive,fields:e.fields,contingencies:r})}return null})).filter(i.Ru)}_getSubtypeEnterprise(e){const t=this.layer.sourceJSON
481let r
482if(t.subtypes){const n=t.subtypes.find((t=>t.code===e))
483r=x.default.fromJSON(n)}return r||null}_getSubtypeAGOL(e){const t=this.layer.sourceJSON
484let r
485if(t.subtypes){const n=t.subtypes.find((t=>t.name===e))
486r=x.default.fromJSON(n)}return r||null}_getDomain(e,t){const r=e?function(e,t){const r=e.domains
487if(r){const[e,n]=Object.entries(r).find((([e])=>e.trim().toLowerCase()===t.trim().toLowerCase()))||[]
488return n||null}return null}(e,t):this.layer.getFieldDomain(t)
489return"inherited"===r?.type?this.layer.getFieldDomain(t):r}}
490function E(e){switch(e.objectType){case"any":return"@any@"
491case"null":return"@null@"
492case"code":return e.codedValue.name+e.codedValue.code.toString()
493case"range":return e.minValue.toString()+"-"+e.maxValue.toString()}}function M(e){let t,r
494e.sort(((e,t)=>"null"===e.objectType?-1:"null"===t.objectType?1:e.minValue-t.minValue))
495const n=[]
496for(const s of e)"null"!==s.objectType?null!=t&&null!=r?r<s.minValue?(n.push(new y.A({objectType:"range",minValue:t,maxValue:r})),t=s.minValue,r=s.maxValue):r<s.maxValue&&(r=s.maxValue):(t=s.minValue,r=s.maxValue):n.push(s)
497return n.push(new y.A({objectType:"range",minValue:t,maxValue:r})),n}function T(e,t){if(0===e.length||0===t.length)return[]
498if("any"===e[0].objectType)return t
499if("any"===t[0].objectType)return e
500const r="range"===e[0].objectType||"range"===e[1]?.objectType,n="range"===t[0].objectType||"range"===t[1]?.objectType
501return r||n?function(e,t){const r=[]
502let n,s=0
503for(const i of e)for(;s<t.length;s++){const e=t[s]
504if("null"===i.objectType&&"null"===e.objectType)r.push(new y.A({objectType:"null"}))
505else{if("null"===i.objectType)break
506if("null"===e.objectType)continue}if(i.maxValue<e.minValue)break
507if(i.maxValue===e.minValue){r.push(new y.A({objectType:"range",minValue:i.maxValue,maxValue:e.minValue}))
508break}if(!(i.minValue>e.maxValue))if(i.minValue!==e.maxValue){if(n=i.minValue>e.minValue?i.minValue:e.minValue,i.maxValue<e.maxValue){r.push(new y.A({objectType:"range",minValue:n,maxValue:i.maxValue}))
509break}r.push(new y.A({objectType:"range",minValue:n,maxValue:e.maxValue}))}else r.push(new y.A({objectType:"range",minValue:i.minValue,maxValue:e.maxValue}))}return r}(e,t):function(e,t){const r=[]
510for(const n of e)t.some((e=>{if(n.objectType===e.objectType)switch(n.objectType){case"any":case"null":return!0
511case"code":return n.codedValue.code===e.codedValue.code&&n.codedValue.name===e.codedValue.name}return!1}))&&r.push(n)
512return r}(e,t)}async function P(e,t,r){return(0,s.default)(`${e}/queryDataElements`,{responseType:"json",query:{layers:JSON.stringify([t]),f:"json"},...r}).then((e=>e.data.layerDataElements?.[0].dataElement.fieldGroups??[]))}async function I(e,t){return(0,s.default)(e,{responseType:"json",query:{f:"json"},...t}).then((e=>e.data))}(0,n._)([(0,l.MZ)({constructOnly:!0})],A.prototype,"layer",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0})],A.prototype,"request",void 0),(0,n._)([(0,l.MZ)({type:[_]})],A.prototype,"fieldGroups",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0})],A.prototype,"fieldGroupDefinitions",void 0),(0,n._)([(0,l.MZ)()],A.prototype,"subtypeFieldName",null),A=w=(0,n._)([(0,u.$)("esri.layers.support.LayerContingentValuesCache")],A)
513const C=A},41830:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c})
514var n,s=r(52067),i=r(35200),o=r(96679),a=r(91937),l=(r(57250),r(12752),r(98389),r(40038))
515let u=n=class extends o.A{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.default}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s._)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,s._)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,s._)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=n=(0,s._)([(0,l.$)("esri.layers.support.LayerFloorInfo")],u)
516const c=u},75342:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d})
517var n,s=r(52067),i=r(94038),o=r(96679),a=r(91937),l=(r(57250),r(12752),r(98389),r(40038))
518const u=new i.J({asc:"ascending",desc:"descending"})
519let c=n=class extends o.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,s._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,s._)([(0,a.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],c.prototype,"order",void 0),c=n=(0,s._)([(0,l.$)("esri.layers.support.OrderByInfo")],c)
520const d=c},14289:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p})
521var n=r(52067),s=r(1454),i=r(94038),o=r(96679),a=r(91937),l=(r(57250),r(12752),r(98389),r(40038))
522const u=new i.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),c=new i.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"})
523let d=class extends(s.A.ClonableMixin(o.A)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,n._)([(0,a.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"cardinality",void 0),(0,n._)([(0,a.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,n._)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,n._)([(0,a.MZ)({json:{read:c.read,write:c.write}})],d.prototype,"role",void 0),d=(0,n._)([(0,l.$)("esri.layers.support.Relationship")],d)
524const p=d},71149:(e,t,r)=>{r.d(t,{A:()=>p})
525var n=r(52067),s=r(34374),i=r(79265),o=r(35200),a=r(91937),l=(r(57250),r(12752),r(98389),r(40038)),u=r(86842),c=r(64212)
526let d=class extends s.default{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,i.UT)((()=>(0,c.lw)())):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??r.e(89620).then(r.bind(r,89620)).then((e=>this._featureUtils=e))}get calculatedExpressions(){const e=new o.default
527if(!this.expressionsUsedInTitle.length)return e
528if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0})
529return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"])
530if(r.isAsync){e.push({name:t.name,invalid:!0})
531break}
531e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0})
532break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??""
533return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter((t=>e.includes(`{expression/${t.name.toLowerCase()}}`)))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some((e=>!0===e.invalid))}get requiredFields(){const e=new Set
534if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const r of this.calculatedExpressions?.toArray()??[])try{const t=this._arcadeTask.value.arcade.extractFieldLiterals(r.syntax)
535for(const r of t){const t=r.split("."),n=this.fieldsIndex.get(t.at(-1)??"")
536n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle)
537for(const r of t){const t=this.fieldsIndex.get(r)
538t&&e.add(t.name)}return e}get titleFromDisplayField(){let e=""
539return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:""
540return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){try{const{attributes:n}=t,s=r?.timeZone??"system",[{substituteFieldsInLinksAndAttributes:i}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise])
541if(r.fetchMissingFields&&(t=await this._checkAndReQueryGraphic(e,t)),this.workingTitle&&this.fieldInfoMap){const r=this._createFormattedAttributes(e,t,s).global
542return i({attributes:n,expressionAttributes:null,fieldInfoMap:this.fieldInfoMap,globalAttributes:r,layer:e,text:this.workingTitle})}return""}catch{}return""}async _checkAndReQueryGraphic(e,t){const r=t.getObjectId()
543if(null==r)return t
544if(!(0,u.featureHasFields)(this.requiredFields,t)){const t=e.createQuery()
545t.where="1=1",t.outFields=[...this.requiredFields],t.objectIds=[r]
546const n=await e.queryFeatures(t)
547if(1===n?.features.length)return n.features[0]}return t}_createFieldInfoMap(e){const t=new Map
548if(!e)return t
549for(const r of e){if(!r.fieldName)continue
550const e=this.fieldsIndex.get(r.fieldName),n=e?.name??r.fieldName
551r.fieldName=n,t.set(n.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],s={}
552if(!this._featureUtils)return{}
553if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null)
554for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const i={...t.attributes,...s}
555return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:i,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.extractSubstitutionTemplatesFromString)(e).filter((e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/"))))}};(0,n._)([(0,a.MZ)({readOnly:!0})],d.prototype,"_arcadeTask",null),(0,n._)([(0,a.MZ)()],d.prototype,"_featureUtils",void 0),(0,n._)([(0,a.MZ)({readOnly:!0})],d.prototype,"featureUtilsPromise",null),(0,n._)([(0,a.MZ)({readOnly:!0})],d.prototype,"calculatedExpressions",null),(0,n._)([(0,a.MZ)()],d.prototype,"displayField",void 0),(0,n._)([(0,a.MZ)()],d.prototype,"effectivePopupTemplate",void 0),(0,n._)([(0,a.MZ)()],d.prototype,"expressionsUsedInTitle",null),(0,n._)([(0,a.MZ)()],d.prototype,"fieldsIndex",void 0),(0,n._)([(0,a.MZ)()],d.prototype,"fieldInfoMap",null),(0,n._)([(0,a.MZ)()],d.prototype,"fields",void 0),(0,n._)([(0,a.MZ)()],d.prototype,"objectIdField",void 0),(0,n._)([(0,a.MZ)()],d.prototype,"requiredFields",null),d=(0,n._)([(0,l.$)("esri.layers.support.TitleCreator")],d)
556const p=d},13152:(e,t,r)=>{r.d(t,{BI:()=>y,D3:()=>f,XJ:()=>m,lc:()=>h,mX:()=>b,rU:()=>g,tH:()=>x})
557var n=r(31281)
558const s="__begin__",i="__end__",o=new RegExp(s,"ig"),a=new RegExp(i,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(i+"$","i"),c='"',d=c+" + ",p=" + "+c
559function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function f(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"}
560return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e)
561switch(t.type){case"conventional":return b(t.expression)
562case"arcade":return t.expression}return null}function g(e){const t=m(e)
563switch(t.type){case"conventional":return function(e){const t=e?.match(v)
564return t?.[1].trim()||null}(t.expression)
565case"arcade":return x(t.expression)}return null}function b(e){let t
566return e?(t=(0,n.HC)(e,(e=>s+'$feature["'+e+'"]'+i)),t=l.test(t)?t.replace(l,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,d).replaceAll(a,p)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,S=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i
567function x(e){if(!e)return null
568let t=_.exec(e)||w.exec(e)
569return t?t[1]||t[3]:(t=S.exec(e),t?t[2]:null)}},61869:(e,t,r)=>{r.d(t,{w:()=>l,z:()=>c})
570var n=r(61840),s=r(12752),i=r(76601)
571const o=()=>s.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi
572function l(e,t,r){return e?e.map((e=>{const n=new i.default
573if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields
574n.labelExpression=n.labelExpression.replaceAll(a,((t,r)=>`[${function(e,t){if(!t)return e
575const r=e.toLowerCase()
576for(let n=0;n<t.length;n++){const e=t[n].name
577if(e.toLowerCase()===r)return e}return e}(r,e)}]`))}return n})):null}const u={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:null,esriGeometryEnvelope:null}
578function c(e,t){const r=[]
579for(const s of e){const e=s.labelPlacement,i=u[t]
580if(!s.symbol)return o().warn("No ILabelClass symbol specified."),[]
581if(!i)return o().error(new n.default("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[]
582if(i.includes(e))r.push(s)
583else{const n=i[0]
584e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`)
585const a=s.clone()
586a.labelPlacement=n,r.push(a)}}return r}},8656:(e,t,r)=>{r.r(t),r.d(t,{default:()=>T})
587var n,s=r(52067),i=r(94038),o=r(33600),a=r(12752),l=r(91937),u=r(86775),c=r(32565),d=r(24743),p=r(40038),h=r(62391),f=r(58545),m=r(86842),y=r(23468),g=r(70809),b=r(82216),v=r(54991),_=r(95007),w=r(64212),S=r(93963)
588const x="percent-of-total",k="field",A=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:x,esriNormalizeByField:k}),E=(0,f.dp)(b.default)
589let M=n=class extends((0,g.h)(y.default)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,r){if(!Array.isArray(e))return
590let n=t.minValue
591return e.map((e=>{const t=new b.default
592return t.read(e,r),null==t.minValue&&(t.minValue=n),null==t.maxValue&&(t.maxValue=t.minValue),n=t.maxValue,t}))}writeClassBreakInfos(e,t,r,n){const s=e.map((e=>e.write({},n)))
593this._areClassBreaksConsecutive()&&s.forEach((e=>delete e.classMinValue)),t[r]=s}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,f.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType")
594const t=!!this.normalizationField,r=null!=this.normalizationTotal
595return t||r?(e=t&&k||r&&x||null,t&&r&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==k&&e!==x||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,r){let n=null
596n="number"==typeof e?new b.default({minValue:e,maxValue:t,symbol:(0,S.dp)(r)}):E((0,o.clone)(e)),this.classBreakInfos.push(n),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const r=this.classBreakInfos.length
597for(let n=0;n<r;n++){const r=[this.classBreakInfos[n].minValue,this.classBreakInfos[n].maxValue]
598if(r[0]===e&&r[1]===t){this.classBreakInfos.splice(n,1)
599break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let r=t
600this.valueExpression&&null==t?.arcade&&(r={...r,arcade:await(0,w.lw)()})
601const n=this.getBreakIndex(e,r)
602return-1!==n?this.classBreakInfos[n]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used")
603const r=this.getBreakIndex(e,t)
604return r>-1?this.classBreakInfos[r].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let r=t
605if(this.valueExpression&&null==t?.arcade){const e=await(0,w.lw)(),{arcadeUtils:t}=e
606t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),r={...r,arcade:e}}const n=this.getBreakIndex(e,r)
607return n>-1?this.classBreakInfos[n].symbol:this.defaultSymbol}get symbols(){const e=[]
608return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),r=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`
609return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${r}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new n({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.clone)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.clone)(this.visualVariables),legendOptions:(0,o.clone)(this.legendOptions),authoringInfo:(0,o.clone)(this.authoringInfo)})}async collectRequiredFields(e,t){const r=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)]
610await Promise.all(r)}async collectSymbolFields(e,t){const r=[...this.symbols.map((r=>r.collectRequiredFields(e,t))),(0,m.collectArcadeFieldNames)(e,t,this.valueExpression)];(0,m.collectField)(e,t,this.field),(0,m.collectField)(e,t,this.normalizationField),await Promise.all(r)}_getBreakIndexForExpression(e,t){const{viewingMode:r,scale:n,spatialReference:s,arcade:i,timeZone:o}=t??{},{valueExpression:a}=this
611let l=this._compiledValueExpression.valueExpression===a?this._compiledValueExpression.compiledFunction:null
612const u=i.arcadeUtils
613if(!l){const e=u.createSyntaxTree(a)
614l=u.createFunction(e),this._compiledValueExpression.compiledFunction=l}this._compiledValueExpression.valueExpression=a
615const c=u.executeFunction(l,u.createExecContext(e,u.getViewInfo({viewingMode:r,scale:n,spatialReference:s}),o))
616return this._getBreakIndexfromInfos(c)}_getBreakIndexForField(e){const t=this.field,r=e.attributes,n=this.normalizationType
617let s=parseFloat(r[t])
618if(n){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?r[this.normalizationField]:void 0)
619if("log"===n)s=Math.log(s)*Math.LOG10E
620else if(n!==x||null==e||isNaN(e)){if(n===k&&!isNaN(t)){if(isNaN(s)||isNaN(t))return-1
621s/=t}}else s=s/e*100}return this._getBreakIndexfromInfos(s)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive
622if(null!=e&&"number"==typeof e&&!isNaN(e))for(let r=0;r<this.classBreakInfos.length;r++){const n=[this.classBreakInfos[r].minValue,this.classBreakInfos[r].maxValue]
623if(n[0]<=e&&(t?e<=n[1]:e<n[1]))return r}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length
624for(let r=1;r<t;r++)if(e[r-1].maxValue!==e[r].minValue)return!1
625return!0}};(0,s._)([(0,l.MZ)(v.As)],M.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,l.MZ)({type:[b.default],json:{write:{isRequired:!0}}})],M.prototype,"classBreakInfos",void 0),(0,s._)([(0,d.w)("classBreakInfos")],M.prototype,"readClassBreakInfos",null),(0,s._)([(0,h.K)("classBreakInfos")],M.prototype,"writeClassBreakInfos",null),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"defaultLabel",void 0),(0,s._)([(0,l.MZ)(v.z4)],M.prototype,"defaultSymbol",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"field",void 0),(0,s._)([(0,u.w)("field")],M.prototype,"castField",null),(0,s._)([(0,l.MZ)({type:Boolean})],M.prototype,"isMaxInclusive",void 0),(0,s._)([(0,l.MZ)({type:_.A,json:{write:!0}})],M.prototype,"legendOptions",void 0),(0,s._)([(0,l.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],M.prototype,"minValue",null),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"normalizationField",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{write:!0}})],M.prototype,"normalizationTotal",void 0),(0,s._)([(0,l.MZ)({type:A.apiValues,value:null,json:{type:A.jsonValues,read:A.read,write:A.write}})],M.prototype,"normalizationType",null),(0,s._)([(0,c.e)({classBreaks:"class-breaks"})],M.prototype,"type",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpression",void 0),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],M.prototype,"valueExpressionTitle",void 0),M=n=(0,s._)([(0,p.$)("esri.renderers.ClassBreaksRenderer")],M)
626const T=M},82216:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c})
627var n,s=r(52067),i=r(96679),o=r(91937),a=(r(57250),r(12752),r(98389),r(40038)),l=r(54991)
628let u=n=class extends i.A{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new n({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol)
629return`${this.minValue}.${this.maxValue}.${e}`}};(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,s._)([(0,o.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,s._)([(0,o.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,s._)([(0,o.MZ)(l.Wp)],u.prototype,"symbol",void 0),u=n=(0,s._)([(0,a.$)("esri.renderers.support.ClassBreakInfo")],u)
630const c=u},92826:(e,t,r)=>{r.d(t,{O3:()=>d,PU:()=>u,YW:()=>h,ex:()=>a,hv:()=>p,zp:()=>l})
631var n=r(41889),s=r(37015),i=r(80483),o=r(65739)
632const a=2.4
633function l(e){return(0,s.PN)(e*a)}function u(e){return(0,s.Lz)(e)/a}function c(e,t,r,s){let{color:o,ratio:a}=t,{color:l,ratio:u}=r
634if(u===a){const e=1e-6
6351===u?a-=e:u+=e}const c=(0,n.qE)((s-a)/(u-a),0,1);(0,i.l)(e,o.toArray(),l.toArray(),c)}function d(e){const t=new Uint8ClampedArray(2048)
636if((e=e.filter((({ratio:e})=>e>=0&&e<=1)).sort(((e,t)=>e.ratio-t.ratio)).map((({color:e,ratio:t})=>({color:e,ratio:Math.max(t,.001)})))).length<1)return t
637let r=e[0],n=e[0],s=1
638const i=(0,o.vt)()
639for(let o=0;o<512;o++){const a=(o+.5)/512
640for(;a>n.ratio&&s<e.length;)r=n,n=e[s++]
641c(i,r,n,a),t.set(i,4*o)}return t}function p(e,t,r){const n=Math.sqrt(e**2+t**2)/r
642return n>1?0:3/(Math.PI*r**2)*(1-n**2)**2}function h(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},73387:(e,t,r)=>{r.d(t,{q:()=>s})
643var n=r(84293)
644function s(e,t,r){if(!r?.features||!r.hasZ)return
645const s=(0,n.N)(r.geometryType,t,e.outSpatialReference)
646if(null!=s)for(const n of r.features)s(n.geometry)}},20881:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v})
647var n,s=r(52067),i=r(11800),o=r(94038),a=r(96679),l=r(33600),u=r(91937),c=(r(57250),r(12752),r(24743)),d=r(40038),p=r(62391),h=r(12220),f=r(50890),m=r(89988),y=r(98667)
648const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null})
649let b=n=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.default)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n)
650const{features:s}=this
651if(s)for(const i of s)if(null!=i?.geometry)return void g.write(i.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null
652const r=!!e.spatialReference,n=(0,f.fromJSON)(e)
653return n&&!r&&t.spatialReference&&(n.spatialReference=h.default.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON())
654const{features:r}=this
655if(r)for(const n of r)if(n&&null!=n.geometry&&n.geometry.spatialReference)return void(t.spatialReference=n.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.clone)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write()
656if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r]
657if(n.geometry){const t=e?.[r]
658n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,s]}=e,i=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((s-e)/r)))
659for(let a=0,l=i.length;a<l;a++)o?.(i[a].geometry)||(i.splice(a,1),a--,l--)
660return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this
661if(!r)return this
662const{translate:[n,s],scale:[i,o]}=r
663let a=null,l=null
664if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r
665a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r
666l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*i+n),(e=>s-e*o),a,l)
667for(const{geometry:c}of t)null!=c&&u&&u(c)
668return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=h.default.fromJSON(t.spatialReference),s=[]
669for(let i=0;i<e.length;i++){const t=e[i],o=r.fromJSON(t),a=t.geometry?.spatialReference
670null==o.geometry||a||(o.geometry.spatialReference=n)
671const l=t.aggregateGeometries,u=o.aggregateGeometries
672if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],s=r?.spatialReference
673null==t||s||(t.spatialReference=n)}s.push(o)}return s}_quantizePoints(e,t,r){let n,s
674const i=[]
675for(let o=0,a=e.length;o<a;o++){const a=e[o]
676if(o>0){const e=t(a[0]),o=r(a[1])
677e===n&&o===s||(i.push([e-n,o-s]),n=e,s=o)}else n=t(a[0]),s=r(a[1]),i.push([n,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,f.isPolygon)(e)?e.rings:e.paths,s=[]
678for(let i=0,o=n.length;i<o;i++){const e=n[i],o=this._quantizePoints(e,t,r)
679o&&s.push(o)}return s.length>0?((0,f.isPolygon)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r)
680return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,f.isPolygon)(e)?e.rings:e.paths
681let o,a
682for(let n=0,s=i.length;n<s;n++){const e=i[n]
683for(let n=0,s=e.length;n<s;n++){const s=e[n]
684n>0?(o+=s[0],a+=s[1]):(o=s[0],a=s[1]),s[0]=t(o),s[1]=r(a)}}if(n&&s)for(let t=0,r=i.length;t<r;t++){const e=i[t]
685for(let t=0,r=e.length;t<r;t++){const r=e[t]
686r[2]=n(r[2]),r[3]=s(r[3])}}else if(n)for(let t=0,r=i.length;t<r;t++){const e=i[t]
687for(let t=0,r=e.length;t<r;t++){const r=e[t]
688r[2]=n(r[2])}}else if(s)for(let t=0,r=i.length;t<r;t++){const e=i[t]
689for(let t=0,r=e.length;t<r;t++){const r=e[t]
690r[2]=s(r[2])}}}:"extent"===e?e=>
690{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const i=e.points
691let o,a
692for(let n=0,s=i.length;n<s;n++){const e=i[n]
693n>0?(o+=e[0],a+=e[1]):(o=e[0],a=e[1]),e[0]=t(o),e[1]=r(a)}if(n&&s)for(let t=0,r=i.length;t<r;t++){const e=i[t]
694e[2]=n(e[2]),e[3]=s(e[3])}else if(n)for(let t=0,r=i.length;t<r;t++){const e=i[t]
695e[2]=n(e[2])}else if(s)for(let t=0,r=i.length;t<r;t++){const e=i[t]
696e[2]=s(e[2])}}:null}};(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,u.MZ)({type:[i.default],json:{write:!0}})],b.prototype,"features",void 0),(0,s._)([(0,c.w)("features")],b.prototype,"readFeatures",null),(0,s._)([(0,u.MZ)({type:[y.default],json:{write:!0}})],b.prototype,"fields",void 0),(0,s._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,s._)([(0,p.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s._)([(0,u.MZ)({types:m.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s._)([(0,c.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s._)([(0,u.MZ)({type:h.default,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s._)([(0,p.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s._)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,s._)([(0,d.$)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0
697const v=b},50177:(e,t,r)=>{r.r(t),r.d(t,{createFieldInfos:()=>m,createFieldsContent:()=>f,createPopupTemplate:()=>u,createPopupTemplateForFeatureReduction:()=>c,getFeaturePopupTitle:()=>d})
698var n=r(7624),s=r(86842),i=r(22376),o=(r(95854),r(98075),r(31128),r(75301)),a=(r(85954),r(89740),r(53551),r(27580),r(89101)),l=r(8730)
699function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:l},u){if(!r)return null
700const c=m({editFieldsInfo:t,fields:r,objectIdField:a},u)
701if(!c.length)return null
702const d=function(e){const t=(0,s.getDisplayFieldName)(e),{titleBase:r}=e
703return t?`${r}: {${t.trim()}}`:r??""}({titleBase:l,fields:r,displayField:e}),p=[new o.default,new i.default]
704return new n.default({title:d,content:p,fieldInfos:c})}function c(e){const{fields:t,featureReduction:r,title:s}=e,i=r.fields
705if(!i)return null
706const l=function(e,t){return e.map((e=>new a.default({fieldName:e.name,isEditable:!1,label:e.alias,format:y(e,t),visible:!0})))}(i,t??[])
707if(!l.length)return null
708const u=[new o.default]
709return new n.default({title:s,content:u,fieldInfos:l})}function d(e){const{title:t,graphic:r}=e??{},{attributes:n,sourceLayer:s}=r??{},i=s&&"displayField"in s?s.displayField:null,o=i?n?.[i]:null,a=null!=o?JSON.stringify(o):null,l=r?.getObjectId()?.toString()
710return t||a||l||""}const p=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,s.isFieldVisibleByDefault)(e,t)
711function h(e,t){return"oid"===e.type?-1:"oid"===t.type?1:b(e)?-1:b(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function f(e,t){return new o.default({fieldInfos:m(e,t).filter((e=>e.visible))})}function m(e,t){const r=t?.visibleFieldNames
712return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e
713return t&&(e=e.filter((e=>!t.includes(e.type)))),e===n&&(e=e.slice()),!0!==r&&e.sort(h),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||v,sortDisabled:t?.sortDisabled}).map((t=>new a.default({fieldName:t.name,isEditable:(0,s.isFieldEditable)(t,e),label:t.alias,format:g(t),visible:p(t,{...e,visibleFieldNames:r})})))}function y(e,t){const{onStatisticField:r,onStatisticExpression:n,statisticType:s}=e
714if(r){const e=t.find((e=>r===e.name))
715if(e)return g(e)}return"number"===n?.returnType?new l.default({digitSeparator:!0,places:2}
715):"count"===s?new l.default({digitSeparator:!0,places:0}):void 0}function g(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.default({digitSeparator:!0,places:0})
716case"double":return new l.default({digitSeparator:!0,places:2})
717case"string":return(0,s.isRasterPixelValueField)(e.name)?new l.default({digitSeparator:!0,places:0}):void 0
718default:return}}function b(e){if("name"===(e.name&&e.name.toLowerCase()))return!0
719const t=e.alias?.toLowerCase()
720return"name"===t}const v=["geometry","blob","raster","guid","xml"]},12028:(e,t,r)=>{var n,s,i,o,a,l,u,c,d,p,h,f,m,y,g,b,v,_,w,S,x,k,A,E,M,T,P,I,C,O,F,R,L,N,j,V,B,z,Z,$,D,J,G,U,W,H,q,K,Q,Y,X,ee,te,re,ne,se,ie,oe,ae,le,ue,ce,de
721r.d(t,{$2:()=>a,C1:()=>i,Hz:()=>f,JO:()=>s,M1:()=>A,O$:()=>ae,OW:()=>se,Q1:()=>K,TZ:()=>v,WE:()=>C,Y:()=>u,YI:()=>Y,bj:()=>c,e_:()=>q,f0:()=>oe,fu:()=>h,g7:()=>d,ip:()=>Q,mU:()=>O,oF:()=>x,uQ:()=>k,uT:()=>z,vG:()=>ue,wd:()=>J,xR:()=>n,xn:()=>_,xw:()=>T,yS:()=>Z}),function(e){e[e.BUTT=0]="BUTT",e[e.ROUND=1]="ROUND",e[e.SQUARE=2]="SQUARE",e[e.UNKNOWN=4]="UNKNOWN"}(n||(n={})),function(e){e[e.BEVEL=0]="BEVEL",e[e.ROUND=1]="ROUND",e[e.MITER=2]="MITER",e[e.UNKNOWN=4]="UNKNOWN"}(s||(s={})),function(e){e[e.SCREEN=0]="SCREEN",e[e.MAP=1]="MAP"}(i||(i={})),function(e){e[e.Tint=0]="Tint",e[e.Ignore=1]="Ignore",e[e.Multiply=99]="Multiply"}(o||(o={})),function(e){e.Both="Both",e.JustBegin="JustBegin",e.JustEnd="JustEnd",e.None="None"}(a||(a={})),function(e){e[e.Mosaic=0]="Mosaic",e[e.Centered=1]="Centered"}(l||(l={})),function(e){e[e.Normal=0]="Normal",e[e.Superscript=1]="Superscript",e[e.Subscript=2]="Subscript"}(u||(u={})),function(e){e[e.MSSymbol=0]="MSSymbol",e[e.Unicode=1]="Unicode"}(c||(c={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.TrueType=1]="TrueType",e[e.PSOpenType=2]="PSOpenType",e[e.TTOpenType=3]="TTOpenType",e[e.Type1=4]="Type1"}(d||(d={})),function(e){e[e.Display=0]="Display",e[e.Map=1]="Map"}(p||(p={})),function(e){e.None="None",e.Loop="Loop",e.Oscillate="Oscillate"}(h||(h={})),function(e){e.Linear="Linear",e.EaseIn="EaseIn",e.EaseOut="EaseOut",e.EaseInOut="EaseInOut"}(f||(f={})),function(e){e[e.Z=0]="Z",e[e.X=1]="X",e[e.Y=2]="Y"}(m||(m={})),function(e){e[e.XYZ=0]="XYZ",e[e.ZXY=1]="ZXY",e[e.YXZ=2]="YXZ"}(y||(y={})),function(e){e[e.Rectangle=0]="Rectangle",e[e.RoundedRectangle=1]="RoundedRectangle",e[e.Oval=2]="Oval"}(g||(g={})),function(e){e[e.None=0]="None",e[e.Alpha=1]="Alpha",e[e.Screen=2]="Screen",e[e.Multiply=3]="Multiply",e[e.Add=4]="Add"}(b||(b={})),function(e){e[e.TTB=0]="TTB",e[e.RTL=1]="RTL",e[e.BTT=2]="BTT"}(v||(v={})),function(e){e[e.None=0]="None",e[e.SignPost=1]="SignPost",e[e.FaceNearPlane=2]="FaceNearPlane"}(_||(_={})),function(e){e[e.Float=0]="Float",e[e.String=1]="String",e[e.Boolean=2]="Boolean"}(w||(w={})),function(e){e[e.Intersect=0]="Intersect",e[e.Subtract=1]="Subtract"}(S||(S={})),function(e){e.OpenEnded="OpenEnded",e.Block="Block",e.Crossed="Crossed"}(x||(x={})),function(e){e.FullGeometry="FullGeometry",e.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",e.ReversedFirstSegment="ReversedFirstSegment",e.PerpendicularToSecondSegment="PerpendicularToSecondSegment",e.SecondSegmentWithTicks="SecondSegmentWithTicks",e.DoublePerpendicular="DoublePerpendicular",e.OppositeToFirstSegment="OppositeToFirstSegment",e.TriplePerpendicular="TriplePerpendicular",e.HalfCircleFirstSegment="HalfCircleFirstSegment",e.HalfCircleSecondSegment="HalfCircleSecondSegment",e.HalfCircleExtended="HalfCircleExtended",e.OpenCircle="OpenCircle",e.CoverageEdgesWithTicks="CoverageEdgesWithTicks",e.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",e.GapExtentMidline="GapExtentMidline",e.Chevron="Chevron",e.PerpendicularWithArc="PerpendicularWithArc",e.ClosedHalfCircle="ClosedHalfCircle",e.TripleParallelExtended="TripleParallelExtended",e.ParallelWithTicks="ParallelWithTicks",e.Parallel="Parallel",e.PerpendicularToFirstSegment="PerpendicularToFirstSegment",e.ParallelOffset="ParallelOffset",e.OffsetOpposite="OffsetOpposite",e.OffsetSame="OffsetSame",e.CircleWithArc="CircleWithArc",e.DoubleJog="DoubleJog",e.PerpendicularOffset="PerpendicularOffset",e.LineExcludingLastSegment="LineExcludingLastSegment",e.MultivertexArrow="MultivertexArrow",e.CrossedArrow="CrossedArrow",e.ChevronArrow="ChevronArrow",e.ChevronArrowOffset="ChevronArrowOffset",e.PartialFirstSegment="PartialFirstSegment",e.Arch="Arch",e.CurvedParallelTicks="CurvedParallelTicks",e.Arc90Degrees="Arc90Degrees",e.TipWithPerpen
721dicularAndTicks="TipWithPerpendicularAndTicks",e.ConcentricCircles="ConcentricCircles",e.DoubleJogArrow="DoubleJogArrow",e.LinkedChevrons="LinkedChevrons",e.SegmentThenHalfCircle="SegmentThenHalfCircle",e.LineWithStraightTicks="LineWithStraightTicks",e.DoubleCurve="DoubleCurve",e.ParallelWithTicksByWidth="ParallelWithTicksByWidth",e.EnclosingRoundedRectangle="EnclosingRoundedRectangle"}(k||(k={})),function(e){e.Mitered="Mitered",e.Bevelled="Bevelled",e.Rounded="Rounded",e.Square="Square",e.TrueBuffer="TrueBuffer"}(A||(A={})),function(e){e.ClosePath="ClosePath",e.ConvexHull="ConvexHull",e.RectangularBox="RectangularBox"}(E||(E={})),function(e){e.BeginningOfLine="BeginningOfLine",e.EndOfLine="EndOfLine"}(M||(M={})),function(e){e.Mitered="Mitered",e.Bevelled="Bevelled",e.Rounded="Rounded",e.Square="Square"}(T||(T={})),function(e){e.Fast="Fast",e.Accurate="Accurate"}(P||(P={})),function(e){e.BeginningOfLine="BeginningOfLine",e.EndOfLine="EndOfLine"}(I||(I={})),function(e){e.Sinus="Sinus",e.Square="Square",e.Triangle="Triangle",e.Random="Random"}(C||(C={})),function(e){e[e.None=0]="None",e[e.Default=1]="Default",e[e.Force=2]="Force"}(O||(O={})),function(e){e[e.Buffered=0]="Buffered",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.AlongLine=3]="AlongLine"}(F||(F={})),function(e){e[e.Linear=0]="Linear",e[e.Rectangular=1]="Rectangular",e[e.Circular=2]="Circular",e[e.Buffered=3]="Buffered"}(R||(R={})),function(e){e[e.Discrete=0]="Discrete",e[e.Continuous=1]="Continuous"}(L||(L={})),function(e){e[e.AcrossLine=0]="AcrossLine",e[e.AlongLine=1]="AlongLine"}(N||(N={})),function(e){e[e.Auto=0]="Auto",e[e.Clockwise=1]="Clockwise",e[e.Counterclockwise=2]="Counterclockwise"}(j||(j={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center",e[e.Justify=3]="Justify"}(V||(V={})),function(e){e[e.Base=0]="Base",e[e.MidPoint=1]="MidPoint",e[e.ThreePoint=2]="ThreePoint",e[e.FourPoint=3]="FourPoint",e[e.Underline=4]="Underline",e[e.CircularCW=5]="CircularCW",e[e.CircularCCW=6]="CircularCCW"}(B||(B={})),function(e){e.Butt="Butt",e.Round="Round",e.Square="Square"}(z||(z={})),function(e){e.NoConstraint="NoConstraint",e.HalfPattern="HalfPattern",e.HalfGap="HalfGap",e.FullPattern="FullPattern",e.FullGap="FullGap",e.Custom="Custom"}(Z||(Z={})),function(e){e[e.None=-1]="None",e[e.Custom=0]="Custom",e[e.Circle=1]="Circle",e[e.OpenArrow=2]="OpenArrow",e[e.ClosedArrow=3]="ClosedArrow",e[e.Diamond=4]="Diamond"}($||($={})),function(e){e[e.ExtraLeading=0]="ExtraLeading",e[e.Multiple=1]="Multiple",e[e.Exact=2]="Exact"}(D||(D={})),function(e){e.Bevel="Bevel",e.Round="Round",e.Miter="Miter"}(J||(J={})),function(e){e[e.Default=0]="Default",e[e.String=1]="String",e[e.Numeric=2]="Numeric"}(G||(G={})),function(e){e[e.InsidePolygon=0]="InsidePolygon",e[e.PolygonCenter=1]="PolygonCenter",e[e.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(U||(U={})),function(e){e[e.Tint=0]="Tint",e[e.Replace=1]="Replace",e[e.Multiply=2]="Multiply"}(W||(W={})),function(e){e[e.ClipAtBoundary=0]="ClipAtBoundary",e[e.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",e[e.DoNotTouchBoundary=2]="DoNotTouchBoundary",e[e.DoNotClip=3]="DoNotClip"}(H||(H={})),function(e){e.NoConstraint="NoConstraint",e.WithMarkers="WithMarkers",e.WithFullGap="WithFullGap",e.WithHalfGap="WithHalfGap",e.Custom="Custom"}(q||(q={})),function(e){e.Fixed="Fixed",e.Random="Random",e.RandomFixedQuantity="RandomFixedQuantity"}(K||(K={})),function(e){e.LineMiddle="LineMiddle",e.LineBeginning="LineBeginning",e.LineEnd="LineEnd",e.SegmentMidpoint="SegmentMidpoint"}(Q||(Q={})),function(e){e.OnPolygon="OnPolygon",e.CenterOfMass="CenterOfMass",e.BoundingBoxCenter="BoundingBoxCenter"}(Y||(Y={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(X||(X={})),function(e){e[e.MarkerCenter=0]="MarkerCenter",e[e.MarkerBounds=1]="MarkerBounds"}(ee||(ee={})),function(e){e[e.None=0]="None",e[e.PropUniform=1]="PropUniform",e[e.PropNonuniform=2]="PropNonuniform",e[e.DifUniform=3]="DifUniform",e[e.DifNonuniform=4]="DifNonuniform"}(te||(te={})),function(e){e.Tube="Tube",e.Strip="Strip",e.Wall="Wall"}(re||(re={})),function(e){e[e.Random=0]="Random",e[e.Increasing=1]="Increasing",e[e.Decreasing=2]="Decreasing",e[e.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(ne||(ne={})),function(e){e[e.Relative=0]="Relative",e[e.Absolute=1]="Absolute"}(se||(se={})),function(e){e[e.Normal=0]="Normal",e[e.LowerCase=1]="LowerCase",e[e.Allcaps=2]="Allcaps"}(ie||(ie={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(oe||(oe={})),function(e){e.Draft="Draft",e.Picture="Picture",e.Text="Text"}(ae||(ae={})),function(e){e[e.Top=0]="Top",e[e.Center=1]="Center",e[e.Baseline=2]="Baseline",e[e.Bottom=3]="Bottom"}(le||(le={})),function(e){e[e.Right=0]="Right",e[e.Upright=1]="Upright"}(ue||(ue={})),function(e){e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Large=2]="Large"}(ce||(ce={})),function(e){e[e.Calm=0]="Calm",e[e.Rippled=1]="Rippled",e[e.Slight=2]="Slight",e[e.Moderate=3]="Moderate"}(de||(de={}))},8605:(e,t,r)=>{r.d(t,{Ao:()=>o,KQ:()=>a,Tg:()=>i})
722var n=r(21590),s=r(97906)
723function i(e){return!!e&&null!=s.j[e]}function o(e){return 1/(s.j[e]||1)}const a=function(){const e=Object.keys(s.j)
724return(0,n.TF)(e,"decimal-degrees"),e.sort(),e}()},25433:(e,t,r)=>{var n
725r.d(t,{X:()=>n}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(n||(n={}))}}])

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.