text: "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[941,4889],{38171:(e,t,n)=>{n.d(t,{Z:()=>m});var r,o=n(43697),i=n(66577),s=n(51773),l=n(78223),u=n(10736),a=n(22974),c=n(70586),p=n(99001),f=n(5600),y=(n(75215),n(52011)),d=n(33955);let h=r=class extends u.wq{constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,n,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:n,popupTemplate:r}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}clone(){return new r(this.cloneProperties())}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}cloneProperties(){return{attributes:(0,a.d9)(this.attributes),geometry:(0,a.d9)(this.geometry),layer:this.layer,popupTemplate:this.popupTemplate&&this.popupTemplate.clone(),sourceLayer:this.sourceLayer,symbol:(0,a.d9)(this.symbol),visible:this.visible}}_notifyLayer(e,t,n,r){if(!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:n};"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}};(0,o._)([(0,f.Cb)({value:null})],h.prototype,"attributes",null),(0,o._)([(0,f.Cb)({value:null,types:i.qM,json:{read:d.im}})],h.prototype,"geometry",null),(0,o._)([(0,f.Cb)({type:Boolean})],h.prototype,"isAggregate",void 0),(0,o._)([(0,f.Cb)()],h.prototype,"layer",void 0),(0,o._)([(0,f.Cb)({type:s.Z})],h.prototype,"popupTemplate",void 0),(0,o._)([(0,f.Cb)()],h.prototype,"sourceLayer",void 0),(0,o._)([(0,f.Cb)({value:null,types:l.LB})],h.prototype,"symbol",null),(0,o._)([(0,f.Cb)({type:Boolean,value:!0})],h.prototype,"visible",null),h=r=(0,o._)([(0,y.j)("esri.Graphic")],h),(h||(h={})).generateUID=p.D;const m=h},36030:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(35454),o=n(5600);function i(e,t={}){var n;const i=e instanceof r.Xn?e:new r.Xn(e,t),s={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?i.apiValues:String,readOnly:null==t?void 0:t.readOnly,json:{type:i.jsonValues,read:(null==t||!t.readOnly)&&{reader:i.read},write:{writer:i.write}}};return void 0!==(null==t?void 0:t.default)&&(s.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(s.json.name=t.name),(0,o.Cb)(s)}},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},95330:(e,t,n)=>{n.d(t,{e4:()=>C,$6:()=>u,Ue:()=>a,zE:()=>c,dD:()=>w,hh:()=>P,vr:()=>j,Ds:()=>N,as:()=>x,WW:()=>O,R8:()=>_,D_:()=>v,Hc:()=>y,tI:()=>A,y8:()=>F,fu:()=>m,$F:()=>g,d1:()=>T,DB:()=>S,r9:()=>d,k_:()=>p,H9:()=>h,gx:()=>$,Hl:()=>b});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),l=(n(92604),n(70586));function u(e){return Promise.all(e)}function a(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function p(e,t="Aborted"){if(y(e))throw c(t)}function f(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function y(e){const t=f(e);return(0,l.pC)(t)&&t.aborted}function d(e){if(v(e))throw e}function h(e){if(!v(e))throw e}function m(e,t){const n=f(e);if(!(0,l.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=f(e);if(!(0,l.Wi)(n))return p(n),(0,s.IH)(n,"abort",(()=>t(c())))}function b(e,t){const n=f(t);return(0,l.Wi)(n)?e:new Promise(((n,r)=>{let o=m(t,(()=>r(c())));const i=()=>o=(0,l.hw)(o);e.then(i,i),e.then(n,r)}))}function v(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!v(e))throw e}))}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function x(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return x(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return a((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function O(e){return x(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function T(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function C(e,t,n){const r=new AbortController;return m(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);m(r,(()=>{i&&(clearTimeout(i),o(c()))}))}))}function F(e){return e&&"function"==typeof e.then}function $(e){return A(e)?e:Promise.resolve(e)}function A(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function N(e,t=-1){let n,r,o,i,s=null;const u=(...a)=>{if(n){r=a,i&&i.reject(c()),i=w();const e=(0,l.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||w(),i=null,t>0){const r=new AbortController;n=$(e(...a,r.signal));const o=n;C(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=$(e(...a));const p=()=>{const e=r;r=o=n=s=null,null!=e&&u(...e)},f=n,y=o;return f.then(p,p),f.then(y.resolve,y.reject),(0,l.j0)(y.promise)};return u}function P(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function j(e,t){let n,r=new AbortController;const o=e(r.signal);let i={promise:o,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const s=()=>{i&&(i.finished=!0,i=null),(0,l.pC)(n)&&(n.remove(),n=null),r=null};return o.then(s,s),n=m(t,(()=>{(0,l.pC)(i)&&i.abort()})),i}},17452:(e,t,n)=>{n.d(t,{R9:()=>b,qg:()=>F,tD:()=>P,ZN:()=>ae,fl:()=>ce,AX:()=>w,Gd:()=>v,Ie:()=>se,sJ:()=>H,AH:()=>W,vt:()=>oe,oh:()=>R,P$:()=>M,Ml:()=>pe,ed:()=>j,b7:()=>C,D6:()=>U,tm:()=>L,YP:()=>V,jc:()=>k,HK:()=>z,$U:()=>K,oC:()=>X,kl:()=>E,v_:()=>Z,hF:()=>q,_l:()=>Y,PF:()=>J,Fv:()=>D,B7:()=>S,u0:()=>O,Yd:()=>re,Hu:()=>ue,Qj:()=>ie,hO:()=>ee,mN:()=>x});var r=n(68773),o=n(20102),i=n(92604),s=n(70586);const l=i.Z.getLogger("esri.core.urlUtils"),u=r.Z.request,a="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,f=/^\s*https:/i,y=/^\s*file:/i,d=/:\d+$/,h=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class b{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new b(r.Z.applicationUrl),_={},w=(()=>{const e=(0,s.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function x(e){const t={path:null,query:null},n=new b(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=O(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function O(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function T(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>T(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):T(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,n=u.proxyUrl;if("string"==typeof e){t=K(e);const r=j(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw l.warn(a),new o.Z("urlutils:proxy-not-set",a);return t&&te()&&(n=ee(n)),x(n)}function F(e){const t=j(e);let n,r;if(t){const e=A(t.proxyUrl);n=e.path,r=e.query?O(e.query):null}if(n){const t=x(e);e=n+"?"+t.path;const o=S({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const $={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?($.path=e.slice(0,t),$.query=e.slice(t+1)):($.path=e,$.query=null),$}function N(e){return(e=ne(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function P(e){const t={proxyUrl:e.proxyUrl,urlPrefix:N(e.urlPrefix)},n=u.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function j(e){const t=u.proxyRules,n=N(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function L(e,t){return e=I(e),t=I(t),ne(e)===ne(t)}function I(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function R(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=u.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function U(e,t,n=!1){const r=le(e),o=le(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function E(e){if("string"==typeof e){if(!V(e))return!0;e=le(e)}if(U(e,v))return!0;const t=u.trustedServers||[];for(let n=0;n<t.length;n++){const r=G(t[n]);for(let t=0;t<r.length;t++)if(U(e,r[t]))return!0}return!1}function G(e){return _[e]||(Q(e)||X(e)?_[e]=[new b(q(e))]:_[e]=[new b(`http://${e}`),new b(`https://${e}`)]),_[e]}function q(e,t=w,n){return X(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===M(e).slice(2)?`http:${e}`:`https:${e}`:Q(e)?e:(0,s.j0)(Z("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function J(e,t=w,n){if(!V(e))return e;const r=D(e),o=r.toLowerCase(),i=D(t).toLowerCase().replace(/\/+$/,""),s=n?D(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const l=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let u=l(o,"/",o.indexOf("//")+2),a=-1;for(;o.slice(0,u+1)===i.slice(0,u)+"/"&&(a=u+1,u!==o.length);)u=l(o,"/",u+1);if(-1===a)return e;if(s&&a<s.length)return e;e=r.slice(a);const c=i.slice(a-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=u.httpsDomains;if(!function(e){return p.test(e)||"http"===v.scheme&&X(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),d.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!h.test(e)||(te()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||te()&&!j(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function Z(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(V(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return y.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function M(e,t=!1){if(k(e)||z(e))return null;let n=e.indexOf("://");if(-1===n&&X(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ne(e,!0)),e}function V(e){return X(e)||Q(e)}function k(e){return null!=e&&"blob:"===e.slice(0,5)}function z(e){return"data:"===e.slice(0,5)}function W(e){const t=H(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const B=/^data:(.*?)(;base64)?,(.*)$/;function H(e){const t=e.match(B);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function Y(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function X(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Q(e){return c.test(e)}function K(e){return f.test(e)||"https"===v.scheme&&X(e)}function ee(e){return X(e)?`https:${e}`:e.replace(p,"https:")}function te(){return"https"===v.scheme}function ne(e,t=!1){return X(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function re(e){let t=0;if(V(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function oe(e,t){if(!e)return"";const n=x(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ie(e){return e.replace(/\/+$/,"")}function se(e,t,n){if(!(t&&n&&e&&V(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function le(e){return"string"==typeof e?new b(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function ue(e,t){const n=x(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function ae(e,t,n){const r=x(e),o=r.query||{};return o[t]=String(n),`${r.path}?${S(o)}`}function ce(e,t){const n=x(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=S(r);return o?`${n.path}?${o}`:n.path}function pe(e){if((0,s.Wi)(e))return null;const t=e.match(fe);return t?t[1]:null}const fe=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);n(82971),n(86973),n(33955);const c={base:i.Z,key:"type",typeMap:{extent:o.Z,multipoint:s.Z,point:l.Z,polyline:a.Z,polygon:u.Z}};(0,r.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>h,q9:()=>b,Ji:()=>m,YX:()=>c,aW:()=>p,wp:()=>f,oU:()=>d,l9:()=>y});var r=n(70586),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function p(e){return void 0!==e.points}function f(e){return void 0!==e.x&&void 0!==e.y}function y(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function h(e){return(0,r.Wi)(e)?null:e instanceof i.Z?e:f(e)?l.Z.fromJSON(e):y(e)?a.Z.fromJSON(e):d(e)?u.Z.fromJSON(e):p(e)?s.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function m(e){return e?f(e)?"esriGeometryPoint":y(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":p(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:a.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:s.Z};function b(e){return e&&g[e]||null}},86973:(e,t,n)=>{n.d(t,{Mk:()=>o,P$:()=>i});var r=n(35454);const o=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},35671:(e,t,n)=>{n.d(t,{io:()=>m,AB:()=>h,gd:()=>d,Q0:()=>y,YN:()=>a,UF:()=>p,O5:()=>g,os:()=>v,H7:()=>A,qN:()=>N,Pz:()=>L,Qc:()=>I,vP:()=>J}),n(20102);var r,o,i=n(78286);(o=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",o.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var s=n(59266);const l=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function a(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(c(l,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)c(u,e,t)}function c(e,t,n){if(e)for(const r of e){const e=(0,i.hS)(r,t),o=e&&"function"!=typeof e&&n.get(e);o&&(0,i.RB)(r,o.name,t)}}function p(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const n=t.get(e.startField),r=t.get(e.endField);e.startField=n&&n.name||null,e.endField=r&&r.name||null}else{const n=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=n&&n.name||null,e.endTimeField=r&&r.name||null}}const f=new Set;function y(e,t){return e&&t?(f.clear(),d(f,e,t),Array.from(f).sort()):[]}function d(e,t,n){var r;if(n)if(null!=t&&null!=(r=t.fields)&&r.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const r of n)h(e,t,r);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)e.add(t)}}function h(e,t,n){if("string"==typeof n)if(t){const r=t.get(n);r&&e.add(r.name)}else e.add(n)}async function m(e,t,n){var r;if(!n)return;const{arcadeUtils:o}=await(0,s.LC)(),i=o.extractFieldNames(n,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const n of i)h(e,t,n)}function g({displayField:e,fields:t}){return e||(t&&t.length?b(t,"name-or-title")||b(t,"unique-identifier")||b(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function b(e,t){for(const n of e)if(n&&n.valueType&&n.valueType===t)return n.name;return null}function v(e){const t=e.defaultValue;return void 0!==t&&F(e,t)?t:e.nullable?null:void 0}function _(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function w(e){return null===e||_(e)}const x="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function O(e){return null===e||x(e)}function T(e){return null!=e&&"string"==typeof e}function S(e){return null===e||T(e)}function C(){return!0}function F(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":n=e.nullable?O:x;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?w:_;break;case"string":case"esriFieldTypeString":n=e.nullable?S:T;break;default:n=C}return 1===arguments.length?n:n(t)}const $=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function A(e){return null!=e&&$.has(e.type)}function N(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var P,j;function L(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function I(e,t){return e.nullable&&null===t?null:A(e)&&!function(e,t){const n="string"==typeof e?R(e):e;return!!n&&(n.isInteger?x(t)&&t>=n.min&&t<=n.max:t>=n.min&&t<=n.max)}(e.type,Number(t))?P.OUT_OF_RANGE:F(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const n="range"in e?e.range[0]:e.minValue,o="range"in e?e.range[1]:e.maxValue;if(+t<n||+t>o)return r.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return r.INVALID_CODED_VALUE}return null}(e.domain,t):null:j.INVALID_TYPE}function R(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return U;case"esriFieldTypeInteger":case"integer":return E;case"esriFieldTypeSingle":case"single":return G;case"esriFieldTypeDouble":case"double":return q}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(P||(P={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(j||(j={}));const U={min:-32768,max:32767,isInteger:!0},E={min:-2147483648,max:2147483647,isInteger:!0},G={min:-34e37,max:12e37,isInteger:!1},q={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function J(e,t,n){switch(e){case r.INVALID_CODED_VALUE:return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case j.INVALID_TYPE:return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case P.OUT_OF_RANGE:{const{min:e,max:r}=R(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},74889:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(43697),o=n(66577),i=n(38171),s=n(35454),l=n(10736),u=n(70586),a=n(5600),c=(n(67676),n(80442),n(75215),n(71715)),p=n(52011),f=n(30556),y=n(82971),d=n(33955),h=n(1231);const m=new s.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let g=class extends l.wq{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){const n=y.Z.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.Z.fromJSON(o),l=o.geometry&&o.geometry.spatialReference;(0,u.pC)(s.geometry)&&!l&&(s.geometry.spatialReference=n),r.push(s)}return r}writeGeometryType(e,t,n,r){if(e)return void m.write(e,t,n,r);const{features:o}=this;if(o)for(const e of o)if(e&&(0,u.pC)(e.geometry))return void m.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,d.im)(e);return!n&&t.spatialReference&&(r.spatialReference=y.Z.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e&&e[n];r.geometry=t&&t.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,o]}=e,i=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((o-e)/n)));for(let e=0,t=i.length;e<t;e++)s((0,u.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,o],scale:[i,s]}=n,l=this._getHydrationFunction(e,(e=>e*i+r),(e=>o-e*s));for(const{geometry:e}of t)(0,u.pC)(e)&&l(e);return this.transform=null,this}_quantizePoints(e,t,n){let r,o;const i=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=n(l[1]);e===r&&s===o||(i.push([e-r,s-o]),r=e,o=s)}else r=t(l[0]),o=n(l[1]),i.push([r,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,d.oU)(e)?e.rings:e.paths,o=[];for(let e=0,i=r.length;e<i;e++){const i=r[e],s=this._quantizePoints(i,t,n);s&&o.push(s)}return o.length>0?((0,d.oU)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y)}:"polyline"===e||"polygon"===e?e=>{const r=(0,d.oU)(e)?e.rings:e.paths;let o,i;for(let e=0,s=r.length;e<s;e++){const s=r[e];for(let e=0,r=s.length;e<r;e++){const r=s[e];e>0?(o+=r[0],i+=r[1]):(o=r[0],i=r[1]),r[0]=t(o),r[1]=n(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax)}:"multipoint"===e?e=>{const r=e.points;let o,i;for(let e=0,s=r.length;e<s;e++){const s=r[e];e>0?(o+=s[0],i+=s[1]):(o=s[0],i=s[1]),s[0]=t(o),s[1]=n(i)}}:void 0}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],g.prototype,"displayFieldName",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,a.Cb)({type:[i.Z],json:{write:!0}})],g.prototype,"features",void 0),(0,r._)([(0,c.r)("features")],g.prototype,"readFeatures",null),(0,r._)([(0,a.Cb)({type:[h.Z],json:{write:!0}})],g.prototype,"fields",void 0),(0,r._)([(0,a.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],g.prototype,"geometryType",void 0),(0,r._)([(0,f.c)("geometryType")],g.prototype,"writeGeometryType",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"hasM",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"hasZ",void 0),(0,r._)([(0,a.Cb)({types:o.qM,json:{write:!0}})],g.prototype,"queryGeometry",void 0),(0,r._)([(0,c.r)("queryGeometry")],g.prototype,"readQueryGeometry",null),(0,r._)([(0,a.Cb)({type:y.Z,json:{write:!0}})],g.prototype,"spatialReference",void 0),(0,r._)([(0,f.c)("spatialReference")],g.prototype,"writeSpatialReference",null),(0,r._)([(0,a.Cb)({json:{write:!0}})],g.prototype,"transform",void 0),g=(0,r._)([(0,p.j)("esri.rest.support.FeatureSet")],g),g.prototype.toJSON.isDefaultToJSON=!0;const b=g},51623:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(43697),o=n(35454),i=n(10736),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));const u=new o.Xn({esriJobMessageTypeInformative:"informative",esriJobMessageTypeProcessDefinition:"process-definition",esriJobMessageTypeProcessStart:"process-start",esriJobMessageTypeProcessStop:"process-stop",esriJobMessageTypeWarning:"warning",esriJobMessageTypeError:"error",esriJobMessageTypeEmpty:"empty",esriJobMessageTypeAbort:"abort"});let a=class extends i.wq{constructor(e){super(e),this.description=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:String,json:{read:u.read,write:u.write}})],a.prototype,"type",void 0),a=(0,r._)([(0,l.j)("esri.rest.support.GPMessage")],a);const c=a},11282:(e,t,n)=>{n.d(t,{lA:()=>o,cv:()=>s,en:()=>i});var r=n(17452);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,r.mN)(e):e}function s(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=s(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}},59266:(e,t,n)=>{n.d(t,{mz:()=>c,pp:()=>a,WW:()=>l,Yi:()=>u,LC:()=>s}),n(66577);var r=n(70586),o=n(82971);let i;function s(){return i||(i=(async()=>{const e=await Promise.all([n.e(9490),n.e(6690)]).then(n.bind(n,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),i}const l=(e,t,n)=>c.create(e,t,n,null,["$feature"]),u=(e,t,n)=>c.create(e,t,n,null,["$feature","$view"]),a=(e,t,n,r)=>c.create(e,t,n,r,["$feature","$view"]);class c{constructor(e,t,n,r,o,i,s,l){this.script=e,this.evaluate=o;const u=Array.isArray(s)?s:s.fields;this.fields=u,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=n,this._arcadeFeature=i,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,n,i,l,u){const{arcade:a,Feature:p,Dictionary:f}=await s(),y=o.Z.fromJSON(t),d=a.parseScript(e,u),h=l.reduce(((e,t)=>({...e,[t]:null})),{});let m=null;(0,r.pC)(i)&&(m=new f(i),m.immutable=!0,h.$config=null);const g=a.scriptUsesGeometryEngine(d)&&a.enableGeometrySupport(),b=a.scriptUsesFeatureSet(d)&&a.enableFeatureSetSupport(),v=a.scriptIsAsync(d)&&a.enableAsyncSupport(),_={vars:h,spatialReference:y,useAsync:!!v},w=new f;w.immutable=!1,w.setField("scale",0);const x=a.compileScript(d,_);return await Promise.all([g,b,v]),new c(e,a,f,d,(e=>("$view"in e&&e.$view&&(w.setField("scale",e.$view.scale),e.$view=w),m&&(e.$config=m),x({vars:e,spatialReference:y}))),new p,n,y)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89164:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(43697),o=n(22303),i=n(35454),s=n(10736),l=n(5600),u=(n(67676),n(80442),n(75215),n(71715)),a=n(52011);const c=new i.Xn({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,f=class extends s.wq{constructor(e){super(e),this.id="sym"+p++,this.type=null}set color(e){this._set("color",e)}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r._)([(0,l.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],f.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:o.Z,value:new o.Z([0,0,0,1]),json:{write:{allowNull:!0}}})],f.prototype,"color",null),(0,r._)([(0,u.r)("color")],f.prototype,"readColor",null),f=(0,r._)([(0,a.j)("esri.symbols.Symbol")],f);const y=f},59633:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(43697),o=n(15923),i=n(17452),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));let u=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}};(0,r._)([(0,s.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,r._)([(0,s.Cb)()],u.prototype,"requestOptions",void 0),(0,r._)([(0,s.Cb)({type:String})],u.prototype,"url",void 0),u=(0,r._)([(0,l.j)("esri.tasks.Task")],u);const a=u}}]);