//>>built
(function(a,b){var c=function(){return"undefined"!==typeof f&&"function"!==typeof f?f:"undefined"!==typeof window?window:"undefined"!==typeof self?self:this}(),e=function(){},d=function(ua){for(var Fa in ua)return 0;return 1},n={}.toString,u=function(ua){return"[object Function]"==n.call(ua)},r=function(ua){return"[object String]"==n.call(ua)},h=function(ua){return"[object Array]"==n.call(ua)},g=function(ua,Fa){if(ua)for(var La=0;La<ua.length;)Fa(ua[La++])},k=function(ua,Fa){for(var La in Fa)ua[La]=
Fa[La];return ua},p=function(ua,Fa){return k(Error(ua),{src:"dojoLoader",info:Fa})},l=1,m=function(){return"_"+l++},t=function(ua,Fa,La){return ha(ua,Fa,La,0,t)},f=c,q=f.document,v=q&&q.createElement("DiV"),x=t.has=function(ua){return u(z[ua])?z[ua]=z[ua](f,q,v):z[ua]},z=x.cache=b.hasCache;u(a)&&(a=a(c));x.add=function(ua,Fa,La,Na){(void 0===z[ua]||Na)&&(z[ua]=Fa);return La&&x(ua)};x.add("host-webworker","undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);x("host-webworker")&&
(k(b.hasCache,{"host-browser":0,dom:0,"dojo-dom-ready-api":0,"dojo-sniff":0,"dojo-inject-api":1,"host-webworker":1,"dojo-guarantee-console":0}),b.loaderPatch={injectUrl:function(ua,Fa){try{importScripts(ua),Fa()}catch(La){console.info("failed to load resource ("+ua+")"),console.error(La)}}});for(var y in a.has)x.add(y,a.has[y],0,1);t.async=1;var A=x("csp-restrictions")?function(){}:new Function("return eval(arguments[0]);");t.eval=function(ua,Fa){return A(ua+"\r\n//# sourceURL\x3d"+Fa)};var B={},
E=t.signal=function(ua,Fa){ua=B[ua];g(ua&&ua.slice(0),function(La){La.apply(null,h(Fa)?Fa:[Fa])})};y=t.on=function(ua,Fa){var La=B[ua]||(B[ua]=[]);La.push(Fa);return{remove:function(){for(var Na=0;Na<La.length;Na++)if(La[Na]===Fa){La.splice(Na,1);break}}}};var w=[],D={},C=[],F={},G=t.map={},H=[],I={},J="",K={},N={};c={};var U=0;if(!x("foreign-loader"))var ba=function(ua,Fa){Fa=!1!==Fa;var La,Na;for(La in N){var Ca=N[La];if(Na=La.match(/^url:(.+)/))K["url:"+Ea(Na[1],ua)]=Ca;else if("*now"==La)var Qa=
Ca;else"*noref"!=La&&(Na=X(La,ua,!0),K[Na.mid]=K["url:"+Na.url]=Ca)}Qa&&Qa(pa(ua));Fa&&(N={})};var ka=function(ua){return ua.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(Fa){return"\\"+Fa})},P=function(ua,Fa){Fa.splice(0,Fa.length);for(var La in ua)Fa.push([La,ua[La],new RegExp("^"+ka(La)+"(/|$)"),La.length]);Fa.sort(function(Na,Ca){return Ca[3]-Na[3]});return Fa},V=function(ua,Fa){g(ua,function(La){Fa.push([r(La[0])?new RegExp("^"+ka(La[0])+"$"):La[0],La[1]])})},ca=function(ua){var Fa=ua.name;
Fa||(Fa=ua,ua={name:Fa});ua=k({main:"main"},ua);ua.location=ua.location?ua.location:Fa;ua.packageMap&&(G[Fa]=ua.packageMap);ua.main.indexOf("./")||(ua.main=ua.main.substring(2));F[Fa]=ua},ra=[],ta=function(ua,Fa,La){for(var Na in ua){"waitSeconds"==Na&&(t.waitms=1E3*(ua[Na]||0));"cacheBust"==Na&&(J=ua[Na]?r(ua[Na])?ua[Na]:(new Date).getTime()+"":"");if("baseUrl"==Na||"combo"==Na)t[Na]=ua[Na];ua[Na]!==z&&(t.rawConfig[Na]=ua[Na],"has"!=Na&&x.add("config-"+Na,ua[Na],0,Fa))}t.baseUrl||(t.baseUrl="./");
/\/$/.test(t.baseUrl)||(t.baseUrl+="/");for(Na in ua.has)x.add(Na,ua.has[Na],0,Fa);g(ua.packages,ca);for(var Ca in ua.packagePaths)g(ua.packagePaths[Ca],function(Qa){var na=Ca+"/"+Qa;r(Qa)&&(Qa={name:Qa});Qa.location=na;ca(Qa)});P(k(G,ua.map),H);g(H,function(Qa){Qa[1]=P(Qa[1],[]);"*"==Qa[0]&&(H.star=Qa)});P(k(D,ua.paths),C);V(ua.aliases,w);if(!x("foreign-loader")){if(Fa)ra.push({config:ua.config});else for(Na in ua.config)Fa=oa(Na,La),Fa.config=k(Fa.config||{},ua.config[Na]);ua.cache&&(ba(),N=ua.cache,
ba(0,!!ua.cache["*noref"]))}E("config",[ua,t.rawConfig])};if(x("dojo-cdn")){var Ba=q.getElementsByTagName("script");var Ha=0;for(var da,la,sa,L;Ha<Ba.length;)if(da=Ba[Ha++],(sa=da.getAttribute("src"))&&(L=sa.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))&&(la=L[3]||"",b.baseUrl=b.baseUrl||la,U=da),sa=da.getAttribute("data-dojo-config")||da.getAttribute("djConfig"))c=t.eval("({ "+sa+" })","data-dojo-config"),U=da}t.rawConfig={};ta(b,1);x("dojo-cdn")&&((F.dojo.location=la)&&(la+="/"),F.dijit.location=la+"../dijit/",
F.dojox.location=la+"../dojox/");ta(a,1);ta(c,1);if(!x("foreign-loader"))var O=function(ua){T(function(){g(ua.deps,Ra)})},ha=function(ua,Fa,La,Na,Ca){var Qa;if(r(ua)){if((Qa=oa(ua,Na,!0))&&Qa.executed)return Qa.result;throw p("undefinedModule",ua);}h(ua)||(ta(ua,0,Na),ua=Fa,Fa=La);if(h(ua))if(ua.length){La="require*"+m();for(var na,va=[],qa=0;qa<ua.length;)na=ua[qa++],va.push(oa(na,Na));Qa=k(Q("",La,0,""),{injected:2,deps:va,def:Fa||e,require:Na?Na.require:t,gc:1});I[Qa.mid]=Qa;O(Qa);var za=Oa&&!0;
T(function(){eb(Qa,za)});Qa.executed||ya.push(Qa);W()}else Fa&&Fa();return Ca},pa=function(ua){if(!ua)return t;var Fa=ua.require;Fa||(Fa=function(La,Na,Ca){return ha(La,Na,Ca,ua,Fa)},ua.require=k(Fa,t),Fa.module=ua,Fa.toUrl=function(La){return Ea(La,ua)},Fa.toAbsMid=function(La){return Da(La,ua)});return Fa},ya=[],Y=[],ea={},ma=function(ua){ua.injected=1;ea[ua.mid]=1;ua.url&&(ea[ua.url]=ua.pack||1);fb()},ja=function(ua){ua.injected=2;delete ea[ua.mid];ua.url&&delete ea[ua.url];d(ea)&&db()},S=t.idle=
function(){return!Y.length&&d(ea)&&!ya.length&&!Oa};var fa=function(ua,Fa){if(Fa)for(var La=0;La<Fa.length;La++)if(Fa[La][2].test(ua))return Fa[La];return 0},R=function(ua){var Fa=[];for(ua=ua.replace(/\\/g,"/").split("/");ua.length;){var La=ua.shift();if(".."==La&&Fa.length&&".."!=Na){Fa.pop();var Na=Fa[Fa.length-1]}else"."!=La&&Fa.push(Na=La)}return Fa.join("/")},Q=function(ua,Fa,La,Na){return{pid:ua,mid:Fa,pack:La,url:Na,executed:0,def:0}},Z=function(ua,Fa,La,Na,Ca,Qa,na,va,qa,za){var Ia,xa,Ga;
var Ma=/^\./.test(ua);if(/(^\/)|(:)|(\.js$)/.test(ua)||Ma&&!Fa)return Q(0,ua,0,ua);ua=R(Ma?Fa.mid+"/../"+ua:ua);if(/^\./.test(ua))throw p("irrationalPath",ua);za||Ma||!Qa.star||(Ga=fa(ua,Qa.star[1]));!Ga&&Fa&&(Ga=(Ga=fa(Fa.mid,Qa))&&fa(ua,Ga[1]));Ga&&(ua=Ga[1]+ua.substring(Ga[3]));Fa=(L=ua.match(/^([^\/]+)(\/(.+))?$/))?L[1]:"";(Ia=La[Fa])?ua=Fa+"/"+(xa=L[3]||Ia.main):Fa="";var bb=0;g(va,function(ab){var gb=ua.match(ab[0]);gb&&0<gb.length&&(bb=u(ab[1])?ua.replace(ab[0],ab[1]):ab[1])});if(bb)return Z(bb,
0,La,Na,Ca,Qa,na,va,qa);if(La=Na[ua])return qa?Q(La.pid,La.mid,La.pack,La.url):Na[ua];Na=(Ga=fa(ua,na))?Ga[1]+ua.substring(Ga[3]):Fa?("/"===Ia.location.slice(-1)?Ia.location.slice(0,-1):Ia.location)+"/"+xa:ua;/(^\/)|(:)/.test(Na)||(Na=Ca+Na);return Q(Fa,ua,Ia,R(Na+".js"))},X=function(ua,Fa,La){return Z(ua,Fa,F,I,t.baseUrl,H,C,w,void 0,La)};if(!x("foreign-loader"))var M=function(ua,Fa,La){return ua.normalize?ua.normalize(Fa,function(Na){return Da(Na,La)}):Da(Fa,La)},aa=0,oa=function(ua,Fa,La){var Na;
if(Na=ua.match(/^(.+?)!(.*)$/)){var Ca=oa(Na[1],Fa,La);5!==Ca.executed||Ca.load||Za(Ca);Ca.load?(Na=M(Ca,Na[2],Fa),ua=Ca.mid+"!"+(Ca.dynamic?++aa+"!":"")+Na):(Na=Na[2],ua=Ca.mid+"!"+ ++aa+"!waitingForPlugin");ua={plugin:Ca,mid:ua,req:pa(Fa),prid:Na}}else ua=X(ua,Fa);return I[ua.mid]||!La&&(I[ua.mid]=ua)};var Da=t.toAbsMid=function(ua,Fa){return X(ua,Fa).mid},Ea=t.toUrl=function(ua,Fa){Fa=X(ua+"/x",Fa);var La=Fa.url;return wa(0===Fa.pid?ua:La.substring(0,La.length-5))};if(!x("foreign-loader")){var Ja=
{injected:2,executed:5,def:3,result:3};la=function(ua){return I[ua]=k({mid:ua},Ja)};var Ka=la("require"),Sa=la("exports"),Ta=la("module"),Va={},Xa=0,Za=function(ua){var Fa=ua.result;ua.dynamic=Fa.dynamic;ua.normalize=Fa.normalize;ua.load=Fa.load;return ua},$a=function(ua){var Fa={};g(ua.loadQ,function(Ca){var Qa=M(ua,Ca.prid,Ca.req.module),na=ua.dynamic?Ca.mid.replace(/waitingForPlugin$/,Qa):ua.mid+"!"+Qa;Qa=k(k({},Ca),{mid:na,prid:Qa,injected:0});I[na]&&I[na].injected||Aa(I[na]=Qa);Fa[Ca.mid]=I[na];
ja(Ca);delete I[Ca.mid]});ua.loadQ=0;var La=function(Ca){for(var Qa=Ca.deps||[],na=0;na<Qa.length;na++)(Ca=Fa[Qa[na].mid])&&(Qa[na]=Ca)},Na;for(Na in I)La(I[Na]);g(ya,La)},cb=function(ua){t.trace("loader-finish-exec",[ua.mid]);ua.executed=5;ua.defOrder=Xa++;ua.loadQ&&(Za(ua),$a(ua));for(Ha=0;Ha<ya.length;)ya[Ha]===ua?ya.splice(Ha,1):Ha++;/^require\*/.test(ua.mid)&&delete I[ua.mid]},Wa=[],eb=function(ua,Fa){if(4===ua.executed)return t.trace("loader-circular-dependency",[Wa.concat(ua.mid).join("-\x3e")]),
!ua.def||Fa?Va:ua.cjs&&ua.cjs.exports;if(!ua.executed){if(!ua.def)return Va;var La=ua.mid,Na=ua.deps||[],Ca,Qa=[],na=0;for(ua.executed=4;Ca=Na[na++];){Ca=Ca===Ka?pa(ua):Ca===Sa?ua.cjs.exports:Ca===Ta?ua.cjs:eb(Ca,Fa);if(Ca===Va)return ua.executed=0,t.trace("loader-exec-module",["abort",La]),Va;Qa.push(Ca)}t.trace("loader-run-factory",[ua.mid]);Fa=ua.def;Qa=u(Fa)?Fa.apply(null,Qa):Fa;ua.result=void 0===Qa&&ua.cjs?ua.cjs.exports:Qa;cb(ua)}return ua.result},Oa=0,T=function(ua){try{Oa++,ua()}catch(Fa){throw Fa;
}finally{Oa--}S()&&E("idle",[])},W=function(){Oa||T(function(){for(var ua,Fa,La=0;La<ya.length;)ua=Xa,Fa=ya[La],eb(Fa),ua!=Xa?La=0:La++})}}var wa="function"==typeof a.fixupUrl?a.fixupUrl:function(ua){ua+="";return ua+(J?(/\?/.test(ua)?"\x26":"?")+J:"")};void 0===x("dojo-loader-eval-hint-url")&&x.add("dojo-loader-eval-hint-url",1);var Aa=function(ua){var Fa=ua.plugin;5!==Fa.executed||Fa.load||Za(Fa);var La=function(Na){ua.result=Na;ja(ua);cb(ua);W()};Fa.load?Fa.load(ua.prid,ua.req,La):Fa.loadQ?Fa.loadQ.push(ua):
(Fa.loadQ=[ua],ya.unshift(Fa),Ra(Fa))},ia=0,Pa=function(ua,Fa){x("config-stripStrict")&&(ua=ua.replace(/(["'])use strict\1/g,""));ua===ia?ia.call(null):t.eval(ua,x("dojo-loader-eval-hint-url")?Fa.url:Fa.mid)},Ra=function(ua){var Fa=ua.mid,La=ua.url;if(!(ua.executed||ua.injected||ea[Fa]||ua.url&&(ua.pack&&ea[ua.url]===ua.pack||1==ea[ua.url])))if(ma(ua),ua.plugin)Aa(ua);else{var Na=function(){Ya(ua);if(2!==ua.injected){if(x("dojo-enforceDefine")){E("error",p("noDefine",ua));return}ja(ua);k(ua,Ja);t.trace("loader-define-nonmodule",
[ua.url])}W()};(ia=K[Fa]||K["url:"+ua.url])?(t.trace("loader-inject",["cache",ua.mid,La]),Pa(ia,ua),Na()):(t.trace("loader-inject",["script",ua.mid,La]),t.injectUrl(wa(La),Na,ua))}},Ua=function(ua,Fa,La){t.trace("loader-define-module",[ua.mid,Fa]);if(2===ua.injected)return E("error",p("multipleDefine",ua)),ua;k(ua,{deps:Fa,def:La,cjs:{id:ua.mid,uri:ua.url,exports:ua.result={},setExports:function(Ca){ua.cjs.exports=Ca},config:function(){return ua.config}}});for(var Na=0;Fa[Na];Na++)Fa[Na]=oa(Fa[Na],
ua);ja(ua);u(La)||Fa.length||(ua.result=La,cb(ua));return ua},Ya=function(ua,Fa){for(var La=[],Na,Ca;Y.length;)Ca=Y.shift(),Fa&&(Ca[0]=Fa.shift()),Na=Ca[0]&&oa(Ca[0])||ua,La.push([Na,Ca[1],Ca[2]]);ba(ua);g(La,function(Qa){O(Ua.apply(null,Qa))})},db=e,fb=e;x("dom");if(x("dom")){var ib=function(ua,Fa,La,Na){ua.addEventListener(Fa,Na,!1);return function(){ua.removeEventListener(Fa,Na,!1)}},hb=ib(window,"load","onload",function(){t.pageLoaded=1;try{"complete"!=q.readyState&&(q.readyState="complete")}catch(ua){}hb()});
Ba=q.getElementsByTagName("script");for(Ha=0;!U;)/^dojo/.test((da=Ba[Ha++])&&da.type)||(U=da);t.injectUrl=function(ua,Fa,La){La=La.node=q.createElement("script");var Na=ib(La,"load","onreadystatechange",function(Qa){Qa=Qa||window.event;var na=Qa.target||Qa.srcElement;if("load"===Qa.type||/complete|loaded/.test(na.readyState))Na(),Ca(),Fa&&Fa()}),Ca=ib(La,"error","onerror",function(Qa){Na();Ca();E("error",p("scriptError: "+ua,[ua,Qa]))});La.type="text/javascript";La.charset="utf-8";La.src=ua;U.parentNode.insertBefore(La,
U);return La}}t.log=e;t.trace=e;x("foreign-loader")?da=e:(da=function(ua,Fa,La){var Na=arguments.length,Ca=["require","exports","module"],Qa=[0,ua,Fa];1==Na?Qa=[0,u(ua)?Ca:[],ua]:2==Na&&r(ua)?Qa=[ua,u(Fa)?Ca:[],Fa]:3==Na&&(Qa=[ua,Fa,La]);t.trace("loader-define",Qa.slice(0,2));(Na=Qa[0]&&oa(Qa[0]))&&!ea[Na.mid]?O(Ua(Na,Qa[1],Qa[2])):Y.push(Qa)},da.amd={vendor:"dojotoolkit.org"});k(k(t,b.loaderPatch),a.loaderPatch);y("error",function(ua){try{if(console.error(ua),ua instanceof Error){for(var Fa in ua)console.log(Fa+
":",ua[Fa]);console.log(".")}}catch(La){}});k(t,{uid:m,cache:K,packs:F});f.define||(f.define=da,f.require=t,x("foreign-loader")||(g(ra,function(ua){ta(ua)}),da=c.deps||a.deps||b.deps,a=c.callback||a.callback||b.callback,t.boot=da||a?[da||[],a]:0))})(function(a){return a.dojoConfig||a.djConfig||a.require||{}},{async:1,baseUrl:"",hasCache:{"config-deferredInstrumentation":0,"config-selectorEngine":"lite","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-has-api":1,"dojo-loader":1,"dojo-undef-api":0,
dom:1,"host-browser":1},packages:[{location:"../../js/arcgis-js-api/esri",name:"esri"},{location:"../../js/arcgis-components/dist",name:"arcgis-components"},{location:"../../js/components",name:"components"},{location:"../../node_modules/esri-global-nav/dist",name:"esri-global-nav"},{location:".",name:"dojo"},{location:"../../node_modules/dijit",name:"dijit"},{location:"../../node_modules/dojox",name:"dojox"},{location:"../../js/later",main:"later",name:"later"},{location:"../../js/calcite/dist",
name:"calcite-web"},{location:"../../js/telemetry",name:"telemetry"},{location:"../../js/app",name:"app"},{location:"../../node_modules/moment",main:"moment",name:"moment"},{location:"../../node_modules/hotkeys-js",main:"dist/hotkeys",name:"hotkeys-js"},{location:"../../node_modules/resize-observer-polyfill",main:"dist/ResizeObserver",name:"resize-observer-polyfill"},{location:"../../node_modules/tslib",main:"tslib",name:"tslib"},{location:"../../node_modules/@arcgis/charts-shared-utils/dist/amd",
main:"index",name:"arcgis-charts-shared-utils"},{location:"../../node_modules/analysis-studio-components/dist/amd",main:"index",name:"analysis-studio-components"},{location:"../../node_modules/analysis-tool-app/dist/amd",main:"index",name:"analysis-tool-app"},{location:"../../node_modules/analysis-components/dist/amd",main:"index",name:"analysis-components"},{location:"../../node_modules/analysis-shared-utils/dist/amd",main:"index",name:"analysis-shared-utils"}]});
require({cache:{"esri/Map":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Basemap ./Ground ./core/Accessor ./core/CollectionFlattener ./core/Evented ./core/maybe ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/subclass ./layers/support/editableLayers ./support/basemapUtils ./support/collectionUtils ./support/groundUtils ./support/LayersMixin ./support/TablesMixin".split(" "),function(a,
b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v){d=function(x){function z(A){var B=x.call(this,A)||this;B.allLayers=new n({getCollections:()=>[B.basemap?.baseLayers,B.ground?.layers,B.layers,B.basemap?.referenceLayers],getChildrenFunction:E=>"layers"in E?E.layers:null});B.allTables=t.createFlattenedTablesCollection(a._assertThisInitialized(B));B.basemap=null;B.editableLayers=new n({getCollections:()=>[B.allLayers],itemFilterFunction:l.isEditableLayer});B.ground=new e;B._basemapCache=m.createCache();return B}a._inheritsLoose(z,
x);var y=z.prototype;y.destroy=function(){this.allLayers.destroy();this.allTables.destroy();this.editableLayers.destroy();this.ground?.destroy();this.basemap?.destroy();m.destroyCache(this._basemapCache);this._basemapCache=null};y.castBasemap=function(A){return m.ensureType(A,this._basemapCache)};y.castGround=function(A){A=f.ensureType(A);return r.isNone(A)?this._get("ground"):A};y.findLayerById=function(A){return this.allLayers.find(B=>B.id===A)};y.findTableById=function(A){return this.allTables.find(B=>
B.id===A)};return z}(v.TablesMixin(q.LayersMixin(u.EventedMixin(d))));b.__decorate([h.property({readOnly:!0,dependsOn:[]})],d.prototype,"allLayers",void 0);b.__decorate([h.property({readOnly:!0})],d.prototype,"allTables",void 0);b.__decorate([h.property({type:c})],d.prototype,"basemap",void 0);b.__decorate([k.cast("basemap")],d.prototype,"castBasemap",null);b.__decorate([h.property({readOnly:!0})],d.prototype,"editableLayers",void 0);b.__decorate([h.property({type:e,nonNullable:!0})],d.prototype,
"ground",void 0);b.__decorate([k.cast("ground")],d.prototype,"castGround",null);return d=b.__decorate([p.subclass("esri.Map")],d)})},"esri/chunks/_rollupPluginBabelHelpers":function(){define(["exports"],function(a){function b(p){function l(q,v){try{var x=p[q](v),z=x.value,y=z instanceof c;Promise.resolve(y?z.v:z).then(function(A){if(y){var B="return"===q?"return":"next";if(!z.k||A.done)return l(B,A);A=p[B](A).value}m(x.done?"return":"normal",A)},function(A){l("throw",A)})}catch(A){m("throw",A)}}function m(q,
v){switch(q){case "return":t.resolve({value:v,done:!0});break;case "throw":t.reject(v);break;default:t.resolve({value:v,done:!1})}(t=t.next)?l(t.key,t.arg):f=null}var t,f;this._invoke=function(q,v){return new Promise(function(x,z){x={key:q,arg:v,resolve:x,reject:z,next:null};f?f=f.next=x:(t=f=x,l(q,v))})};"function"!=typeof p.return&&(this.return=void 0)}function c(p,l){this.v=p;this.k=l}function e(p){function l(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var t=
m.done;return Promise.resolve(m.value).then(function(f){return{value:f,done:t}})}return e=function(m){this.s=m;this.n=m.next},e.prototype={s:null,n:null,next:function(){return l(this.n.apply(this.s,arguments))},return:function(m){var t=this.s.return;return void 0===t?Promise.resolve({value:m,done:!0}):l(t.apply(this.s,arguments))},throw:function(m){var t=this.s.return;return void 0===t?Promise.reject(m):l(t.apply(this.s,arguments))}},new e(p)}function d(p,l,m,t,f,q,v){try{var x=p[q](v),z=x.value}catch(y){m(y);
return}x.done?l(z):Promise.resolve(z).then(t,f)}function n(p,l){for(var m=0;m<l.length;m++){var t=l[m];t.enumerable=t.enumerable||!1;t.configurable=!0;"value"in t&&(t.writable=!0);Object.defineProperty(p,t.key,t)}}function u(p){u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)};return u(p)}function r(p,l){r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,t){m.__proto__=t;return m};return r(p,l)}function h(){if("undefined"===
typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(p){return!1}}function g(p,l,m){g=h()?Reflect.construct.bind():function(t,f,q){var v=[null];v.push.apply(v,f);t=new (Function.bind.apply(t,v));q&&r(t,q.prototype);return t};return g.apply(null,arguments)}function k(p){var l="function"===typeof Map?new Map:void 0;k=function(m){function t(){return g(m,
arguments,u(this).constructor)}if(null===m||-1===Function.toString.call(m).indexOf("[native code]"))return m;if("function"!==typeof m)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof l){if(l.has(m))return l.get(m);l.set(m,t)}t.prototype=Object.create(m.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});return r(t,m)};return k(p)}b.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this};
b.prototype.next=function(p){return this._invoke("next",p)};b.prototype.throw=function(p){return this._invoke("throw",p)};b.prototype.return=function(p){return this._invoke("return",p)};a._assertThisInitialized=function(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p};a._asyncIterator=function(p){var l,m,t,f=2;for("undefined"!=typeof Symbol&&(m=Symbol.asyncIterator,t=Symbol.iterator);f--;){if(m&&null!=(l=p[m]))return l.call(p);if(t&&
null!=(l=p[t]))return new e(l.call(p));m="@@asyncIterator";t="@@iterator"}throw new TypeError("Object is not async iterable");};a._asyncToGenerator=function(p){return function(){var l=this,m=arguments;return new Promise(function(t,f){function q(z){d(x,t,f,q,v,"next",z)}function v(z){d(x,t,f,q,v,"throw",z)}var x=p.apply(l,m);q(void 0)})}};a._awaitAsyncGenerator=function(p){return new c(p,0)};a._createClass=function(p,l,m){l&&n(p.prototype,l);m&&n(p,m);Object.defineProperty(p,"prototype",{writable:!1});
return p};a._inheritsLoose=function(p,l){p.prototype=Object.create(l.prototype);p.prototype.constructor=p;r(p,l)};a._wrapAsyncGenerator=function(p){return function(){return new b(p.apply(this,arguments))}};a._wrapNativeSuper=k})},"esri/chunks/tslib.es6":function(){define(["exports"],function(a){a.__decorate=function(b,c,e,d){var n=arguments.length,u=3>n?c:null===d?d=Object.getOwnPropertyDescriptor(c,e):d,r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)u=Reflect.decorate(b,c,e,
d);else for(var h=b.length-1;0<=h;h--)if(r=b[h])u=(3>n?r(u):3<n?r(c,e,u):r(c,e))||u;return 3<n&&u&&Object.defineProperty(c,e,u),u}})},"esri/Basemap":function(){define("require ./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Collection ./core/collectionUtils ./core/deprecate ./core/JSONSupport ./core/lang ./core/Loadable ./core/loadAll ./core/Logger ./core/maybe ./core/promiseUtils ./core/urlUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./geometry/SpatialReference ./portal/Portal ./portal/PortalItem ./support/basemapDefinitions ./webdoc/support/writeUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B){var E;let w=0;u=E=function(D){function C(G){var H=D.call(this,G)||this;H.id=null;H.portalItem=null;H.spatialReference=null;H.thumbnailUrl=null;H.title="Basemap";H.id=Date.now().toString(16)+"-basemap-"+w++;H.baseLayers=new e;H.referenceLayers=new e;const I=J=>{J.parent&&J.parent!==b._assertThisInitialized(H)&&"remove"in J.parent&&J.parent.remove(J);J.parent=b._assertThisInitialized(H);"elevation"===J.type&&k.getLogger(H.declaredClass).error(`Layer '${J.title}, id:${J.id}' of type '${J.type}' is not supported as a basemap layer and will therefore be ignored.`)};
H.baseLayers.on("after-add",J=>I(J.item));H.referenceLayers.on("after-add",J=>I(J.item));H.baseLayers.on("after-remove",J=>{J.item.parent=null});H.referenceLayers.on("after-remove",J=>{J.item.parent=null});return H}b._inheritsLoose(C,D);var F=C.prototype;F.initialize=function(){this.when().catch(G=>{k.getLogger(this.declaredClass).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,G)});this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)};
F.destroy=function(){var G=this.baseLayers.removeAll();for(const H of G)H.destroy();G=this.referenceLayers.removeAll();for(const H of G)H.destroy();this.baseLayers.destroy();this.referenceLayers.destroy();this.portalItem?.destroy();this.portalItem=null};F.normalizeCtorArgs=function(G){G&&"resourceInfo"in G&&(this._set("resourceInfo",G.resourceInfo),G={...G},delete G.resourceInfo);return G};F._writeBaseLayers=function(G,H,I){const J=[];G&&(I={...I,layerContainerType:"basemap"},this.baseLayers.forEach(K=>
{K=B.getLayerJSON(K,I.webmap?I.webmap.getLayerJSONFromResourceInfo(K):null,I);p.isSome(K)&&J.push(K)}),this.referenceLayers.forEach(K=>{K=B.getLayerJSON(K,I.webmap?I.webmap.getLayerJSONFromResourceInfo(K):null,I);p.isSome(K)&&(K.isReference=!0,J.push(K))}));H.baseMapLayers=J};F.writeTitle=function(G,H){H.title=G||"Basemap"};F.load=function(G){this.addResolvingPromise(this._loadFromSource(G));return Promise.resolve(this)};F.loadAll=function(){return g.loadAll(this,G=>{G(this.baseLayers,this.referenceLayers)})};
F.clone=function(){const G={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.slice(),referenceLayers:this.referenceLayers.slice()};this.loaded&&(G.loadStatus="loaded");return(new E({resourceInfo:this.resourceInfo})).set(G)};F.read=function(G,H){this.resourceInfo||this._set("resourceInfo",{data:G,context:H});D.prototype.read.call(this,G,H)};F.write=function(G,H){G=G||{};H&&H.origin||(H={origin:"web-map",...H});D.prototype.write.call(this,G,H);!this.loaded&&this.resourceInfo&&
this.resourceInfo.data.baseMapLayers&&(G.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(I=>{I=r.clone(I);I.url&&m.isProtocolRelative(I.url)&&(I.url=`https:${I.url}`);I.templateUrl&&m.isProtocolRelative(I.templateUrl)&&(I.templateUrl=`https:${I.templateUrl}`);return I}));return G};F._loadFromSource=function(){var G=b._asyncToGenerator(function*(H){const {resourceInfo:I,portalItem:J}=this;l.throwIfAborted(H);const K=[];I?(K.push(this._loadLayersFromJSON(I.data,I.context?I.context.url:null,H)),
I.data.id&&!I.data.title&&K.push(A.getBasemapTitle(I.data.id).then(N=>{N&&this.read({title:N},I.context)}))):J&&K.push(this._loadFromItem(J,H));yield Promise.all(K)});return function(H){return G.apply(this,arguments)}}();F._loadLayersFromJSON=function(){var G=b._asyncToGenerator(function*(H,I,J){var K=this.resourceInfo&&this.resourceInfo.context;const N=this.portalItem&&this.portalItem.portal||K&&K.portal||null,U=K&&"web-scene"===K.origin?"web-scene":"web-map",{populateOperationalLayers:ba}=yield new Promise((ka,
P)=>a(["./layers/support/layersCreator"],ka,P));K=[];l.throwIfAborted(J);H.baseMapLayers&&Array.isArray(H.baseMapLayers)&&(I={context:{origin:U,url:I,portal:N,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},J=ba(this.baseLayers,H.baseMapLayers.filter(ka=>!ka.isReference),I),K.push(J),H=ba(this.referenceLayers,H.baseMapLayers.filter(ka=>ka.isReference),I),K.push(H));yield l.eachAlways(K)});return function(H,I,J){return G.apply(this,arguments)}}();F._loadFromItem=function(){var G=
b._asyncToGenerator(function*(H,I){const J=yield(yield H.load(I)).fetchData("json",I),K=m.urlToObject(H.itemUrl??"");this._set("resourceInfo",{data:J.baseMap??{},context:{origin:"web-map",portal:H.portal||z.getDefault(),url:K}});this.read(this.resourceInfo.data,this.resourceInfo.context);this.read({spatialReference:J.spatialReference},this.resourceInfo.context);this.read({title:H.title,thumbnailUrl:H.thumbnailUrl},{origin:"portal-item",portal:H.portal||z.getDefault(),url:K});return this._loadLayersFromJSON(this.resourceInfo.data,
K,I)});return function(H,I){return G.apply(this,arguments)}}();C.fromId=function(G){const H=A.esriBasemapDefinitions[G];if(H){if(H.deprecated){let I=null;"dark-gray"===G?I="dark-gray-vector":"gray"===G?I="gray-vector":"streets"===G?I="streets-vector":"topo"===G&&(I="topo-vector");n.deprecated(k.getLogger("esri.Basemap"),`The ${G} basemap has entered mature support and is no longer being updated.`,{replacement:I,see:"https://arcg.is/1iq8aD",warnOnce:!0})}return E.fromJSON(H)}return null};b._createClass(C,
[{key:"baseLayers",set:function(G){this._set("baseLayers",d.referenceSetter(G,this._get("baseLayers")))}},{key:"referenceLayers",set:function(G){this._set("referenceLayers",d.referenceSetter(G,this._get("referenceLayers")))}}]);return C}(u.JSONSupportMixin(h));c.__decorate([t.property({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(D,C,F,G){this._writeBaseLayers(D,C,G)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:e}},writer(D,C,F,G){this._writeBaseLayers(D,
C,G)}}}}}})],u.prototype,"baseLayers",null);c.__decorate([t.property({type:String,json:{origins:{"web-scene":{write:!0}}}})],u.prototype,"id",void 0);c.__decorate([t.property({type:y})],u.prototype,"portalItem",void 0);c.__decorate([t.property()],u.prototype,"referenceLayers",null);c.__decorate([t.property({readOnly:!0})],u.prototype,"resourceInfo",void 0);c.__decorate([t.property({type:x})],u.prototype,"spatialReference",void 0);c.__decorate([t.property()],u.prototype,"thumbnailUrl",void 0);c.__decorate([t.property({type:String,
json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],u.prototype,"title",void 0);c.__decorate([v.writer("title")],u.prototype,"writeTitle",null);return u=E=c.__decorate([q.subclass("esri.Basemap")],u)})},"esri/core/Collection":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./ArrayPool ./Evented ./lang ./maybe ./ObjectPool ./ObservableChangesType ./scheduling ./accessorSupport/decorators/property ./accessorSupport/ensureType ./accessorSupport/decorators/shared ./accessorSupport/decorators/subclass ./accessorSupport/tracking ./accessorSupport/tracking/SimpleObservable".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){function f(G){return G?G instanceof F?G.toArray():G.length?Array.prototype.slice.apply(G):[]:[]}function q(G){if(G&&G.length)return G[0]}function v(G,H,I,J){H&&H.forEach((K,N,U)=>{G.push(K);v(G,I.call(J,K,N,U),I,J)})}var x;let z=function(){function G(){this.target=null;this.defaultPrevented=this.cancellable=!1;this.type=this.item=void 0}var H=G.prototype;H.preventDefault=function(){this.cancellable&&(this.defaultPrevented=!0)};H.reset=function(I){this.defaultPrevented=
!1;this.item=I};return G}();const y=new u(z,void 0,G=>{G.item=null;G.target=null;G.defaultPrevented=!1;G.cancellable=!1}),A=()=>{},B=new Set,E=new Set,w=new Set,D=new Map;let C=0,F=x=function(G,H){function I(K){K=G.call(this,K)||this;K._chgListeners=[];K._notifications=null;K._timer=null;K._observable=new t.SimpleObservable;K.length=0;K._items=[];Object.defineProperty(a._assertThisInitialized(K),"uid",{value:C++});return K}a._inheritsLoose(I,G);I.isCollection=function(K){return null!=K&&K instanceof
x};var J=I.prototype;J.normalizeCtorArgs=function(K){return K?Array.isArray(K)||K instanceof x?{items:K}:K:{}};J.destroy=function(){this.removeAll()};J[H]=function*(){yield*this.items};J.hasEventListener=function(K){return"change"===K?0<this._chgListeners.length:this._emitter.hasEventListener(K)};J.on=function(K,N){if("change"===K){const U=this._chgListeners,ba={removed:!1,callback:N};U.push(ba);this._notifications&&this._notifications.push({listeners:U.slice(),items:this._items.slice(),changes:[]});
return{remove(){this.remove=A;ba.removed=!0;U.splice(U.indexOf(ba),1)}}}return this._emitter.on(K,N)};J.once=function(K,N){const U=this.on(K,N);return{remove(){U.remove()}}};J.add=function(K,N){m.trackAccess(this._observable);if(this._emitBeforeChanges(r.ObservableChangesType.ADD))return this;N=this.getNextIndex(N??null);this._splice(N,0,[K]);this._emitAfterChanges(r.ObservableChangesType.ADD);return this};J.addMany=function(K,N=this._items.length){m.trackAccess(this._observable);if(!K||!K.length||
this._emitBeforeChanges(r.ObservableChangesType.ADD))return this;N=this.getNextIndex(N);this._splice(N,0,f(K));this._emitAfterChanges(r.ObservableChangesType.ADD);return this};J.at=function(K){m.trackAccess(this._observable);K=Math.trunc(K)||0;0>K&&(K+=this.length);if(!(0>K||K>=this.length))return this._items[K]};J.removeAll=function(){m.trackAccess(this._observable);if(!this.length||this._emitBeforeChanges(r.ObservableChangesType.REMOVE))return[];const K=this._splice(0,this.length)||[];this._emitAfterChanges(r.ObservableChangesType.REMOVE);
return K};J.clone=function(){m.trackAccess(this._observable);return this._createNewInstance({items:this._items.map(d.clone)})};J.concat=function(...K){m.trackAccess(this._observable);K=K.map(f);return this._createNewInstance({items:this._items.concat(...K)})};J.drain=function(K,N){m.trackAccess(this._observable);if(this.length&&!this._emitBeforeChanges(r.ObservableChangesType.REMOVE)){var U=n.assumeNonNull(this._splice(0,this.length)),ba=U.length;for(let ka=0;ka<ba;ka++)K.call(N,U[ka],ka,U);this._emitAfterChanges(r.ObservableChangesType.REMOVE)}};
J.every=function(K,N){m.trackAccess(this._observable);return this._items.every(K,N)};J.filter=function(K,N){m.trackAccess(this._observable);let U;U=2===arguments.length?this._items.filter(K,N):this._items.filter(K);return this._createNewInstance({items:U})};J.find=function(K,N){m.trackAccess(this._observable);return this._items.find(K,N)};J.findIndex=function(K,N){m.trackAccess(this._observable);return this._items.findIndex(K,N)};J.flatten=function(K,N){m.trackAccess(this._observable);const U=[];
v(U,this,K,N);return new x(U)};J.forEach=function(K,N){m.trackAccess(this._observable);return this._items.forEach(K,N)};J.getItemAt=function(K){m.trackAccess(this._observable);return this._items[K]};J.getNextIndex=function(K){m.trackAccess(this._observable);const N=this.length;K=null==K?N:K;0>K?K=0:K>N&&(K=N);return K};J.includes=function(K,N=0){m.trackAccess(this._observable);return this._items.includes(K,N)};J.indexOf=function(K,N=0){m.trackAccess(this._observable);return this._items.indexOf(K,
N)};J.join=function(K=","){m.trackAccess(this._observable);return this._items.join(K)};J.lastIndexOf=function(K,N=this.length-1){m.trackAccess(this._observable);return this._items.lastIndexOf(K,N)};J.map=function(K,N){m.trackAccess(this._observable);K=this._items.map(K,N);return new x({items:K})};J.reorder=function(K,N=this.length-1){m.trackAccess(this._observable);const U=this.indexOf(K);if(-1!==U){0>N?N=0:N>=this.length&&(N=this.length-1);if(U!==N){if(this._emitBeforeChanges(r.ObservableChangesType.MOVE))return K;
this._splice(U,1);this._splice(N,0,[K]);this._emitAfterChanges(r.ObservableChangesType.MOVE)}return K}};J.pop=function(){m.trackAccess(this._observable);if(this.length&&!this._emitBeforeChanges(r.ObservableChangesType.REMOVE)){var K=q(this._splice(this.length-1,1));this._emitAfterChanges(r.ObservableChangesType.REMOVE);return K}};J.push=function(...K){m.trackAccess(this._observable);if(this._emitBeforeChanges(r.ObservableChangesType.ADD))return this.length;this._splice(this.length,0,K);this._emitAfterChanges(r.ObservableChangesType.ADD);
return this.length};J.reduce=function(K,N){m.trackAccess(this._observable);const U=this._items;return 2===arguments.length?U.reduce(K,N):U.reduce(K)};J.reduceRight=function(K,N){m.trackAccess(this._observable);const U=this._items;return 2===arguments.length?U.reduceRight(K,N):U.reduceRight(K)};J.remove=function(K){m.trackAccess(this._observable);return this.removeAt(this.indexOf(K))};J.removeAt=function(K){m.trackAccess(this._observable);if(!(0>K||K>=this.length||this._emitBeforeChanges(r.ObservableChangesType.REMOVE)))return K=
q(this._splice(K,1)),this._emitAfterChanges(r.ObservableChangesType.REMOVE),K};J.removeMany=function(K){m.trackAccess(this._observable);if(!K||!K.length||this._emitBeforeChanges(r.ObservableChangesType.REMOVE))return[];K=K instanceof x?K.toArray():K;const N=this._items,U=[],ba=K.length;for(let ca=0;ca<ba;ca++){var ka=N.indexOf(K[ca]);if(-1<ka){var P=ca+1,V=ka+1;const ra=Math.min(K.length-P,N.length-V);let ta=0;for(;ta<ra&&K[P+ta]===N[V+ta];)ta++;P=1+ta;(ka=this._splice(ka,P))&&0<ka.length&&U.push.apply(U,
ka);ca+=P-1}}this._emitAfterChanges(r.ObservableChangesType.REMOVE);return U};J.reverse=function(){m.trackAccess(this._observable);if(this._emitBeforeChanges(r.ObservableChangesType.MOVE))return this;const K=this._splice(0,this.length);K&&(K.reverse(),this._splice(0,0,K));this._emitAfterChanges(r.ObservableChangesType.MOVE);return this};J.shift=function(){m.trackAccess(this._observable);if(this.length&&!this._emitBeforeChanges(r.ObservableChangesType.REMOVE)){var K=q(this._splice(0,1));this._emitAfterChanges(r.ObservableChangesType.REMOVE);
return K}};J.slice=function(K=0,N=this.length){m.trackAccess(this._observable);return this._createNewInstance({items:this._items.slice(K,N)})};J.some=function(K,N){m.trackAccess(this._observable);return this._items.some(K,N)};J.sort=function(K){m.trackAccess(this._observable);if(!this.length||this._emitBeforeChanges(r.ObservableChangesType.MOVE))return this;const N=n.assumeNonNull(this._splice(0,this.length));arguments.length?N.sort(K):N.sort();this._splice(0,0,N);this._emitAfterChanges(r.ObservableChangesType.MOVE);
return this};J.splice=function(K,N,...U){m.trackAccess(this._observable);const ba=(N?r.ObservableChangesType.REMOVE:0)|(U.length?r.ObservableChangesType.ADD:0);if(this._emitBeforeChanges(ba))return[];K=this._splice(K,N,U)||[];this._emitAfterChanges(ba);return K};J.toArray=function(){m.trackAccess(this._observable);return this._items.slice()};J.toJSON=function(){m.trackAccess(this._observable);return this.toArray()};J.toLocaleString=function(){m.trackAccess(this._observable);return this._items.toLocaleString()};
J.toString=function(){m.trackAccess(this._observable);return this._items.toString()};J.unshift=function(...K){m.trackAccess(this._observable);if(!K.length||this._emitBeforeChanges(r.ObservableChangesType.ADD))return this.length;this._splice(0,0,K);this._emitAfterChanges(r.ObservableChangesType.ADD);return this.length};J._createNewInstance=function(K){return new this.constructor(K)};J._splice=function(K,N,U){const ba=this._items;var ka=this.itemType;let P=void 0;!this._notifications&&this.hasEventListener("change")&&
(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=h.schedule(()=>this._dispatchChange()));if(N){P=ba.splice(K,N);if(this.hasEventListener("before-remove")){var V=y.acquire();V.target=this;V.cancellable=!0;for(let ta=0,Ba=P.length;ta<Ba;ta++)N=P[ta],V.reset(N),this.emit("before-remove",V),V.defaultPrevented&&(P.splice(ta,1),ba.splice(K,0,N),K+=1,--ta,--Ba);y.release(V)}this.length=this._items.length;if(this.hasEventListener("after-remove")){N=
y.acquire();N.target=this;N.cancellable=!1;V=P.length;for(let ta=0;ta<V;ta++)N.reset(P[ta]),this.emit("after-remove",N);y.release(N)}}if(U&&U.length){if(ka){N=[];for(var ca of U)U=ka.ensureType(ca),null==U&&null!=ca||N.push(U);U=N}ka=this.hasEventListener("before-add");ca=this.hasEventListener("after-add");N=K===this.length;if(ka||ca){var ra=y.acquire();ra.target=this;ra.cancellable=!0;V=y.acquire();V.target=this;V.cancellable=!1;for(const ta of U)ka?(ra.reset(ta),this.emit("before-add",ra),ra.defaultPrevented||
(N?ba.push(ta):ba.splice(K++,0,ta),this._set("length",ba.length),ca&&(V.reset(ta),this.emit("after-add",V)))):(N?ba.push(ta):ba.splice(K++,0,ta),this._set("length",ba.length),V.reset(ta),this.emit("after-add",V));y.release(V);y.release(ra)}else{if(N)for(ra of U)ba.push(ra);else ba.splice(K,0,...U);this._set("length",ba.length)}}(U&&U.length||P&&P.length)&&this._notifyChangeEvent(U,P);return P};J._emitBeforeChanges=function(K){let N=!1;if(this.hasEventListener("before-changes")){const U=y.acquire();
U.target=this;U.cancellable=!0;U.type=K;this.emit("before-changes",U);N=U.defaultPrevented;y.release(U)}return N};J._emitAfterChanges=function(K){if(this.hasEventListener("after-changes")){const N=y.acquire();N.target=this;N.cancellable=!1;N.type=K;this.emit("after-changes",N);y.release(N)}this._observable.notify()};J._notifyChangeEvent=function(K,N){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:K,removed:N})};J._dispatchChange=
function(){this._timer&&(this._timer.remove(),this._timer=null);if(this._notifications){var K=this._notifications;this._notifications=null;for(const N of K){K=N.changes;B.clear();E.clear();w.clear();for(const {added:ca,removed:ra}of K){if(ca)if(0===w.size&&0===E.size)for(const ta of ca)B.add(ta);else for(const ta of ca)E.has(ta)?(w.add(ta),E.delete(ta)):w.has(ta)||B.add(ta);if(ra)if(0===w.size&&0===B.size)for(const ta of ra)E.add(ta);else for(const ta of ra)B.has(ta)?B.delete(ta):(w.delete(ta),E.add(ta))}const U=
c.acquire();B.forEach(ca=>{U.push(ca)});const ba=c.acquire();E.forEach(ca=>{ba.push(ca)});const ka=this._items,P=N.items,V=c.acquire();w.forEach(ca=>{P.indexOf(ca)!==ka.indexOf(ca)&&V.push(ca)});if(N.listeners&&(U.length||ba.length||V.length)){K={target:this,added:U,removed:ba,moved:V};const ca=N.listeners.length;for(let ra=0;ra<ca;ra++){const ta=N.listeners[ra];ta.removed||ta.callback.call(this,K)}}c.release(U);c.release(ba);c.release(V)}B.clear();E.clear();w.clear()}};a._createClass(I,[{key:"items",
get:function(){m.trackAccess(this._observable);return this._items},set:function(K){this._emitBeforeChanges(r.ObservableChangesType.ADD)||(this._splice(0,this.length,f(K)),this._emitAfterChanges(r.ObservableChangesType.ADD))}}]);return I}(e.EventedAccessor,Symbol.iterator);F.ofType=G=>{if(!G)return x;if(D.has(G))return D.get(G);let H=null;if("function"===typeof G)H=G.prototype.declaredClass;else if(G.base)H=G.base.prototype.declaredClass;else for(var I in G.typeMap){const J=G.typeMap[I].prototype.declaredClass;
H=H?H+` | ${J}`:J}I=function(J){function K(){return J.apply(this,arguments)||this}a._inheritsLoose(K,J);return K}(x);b.__decorate([p.shared({Type:G,ensureType:"function"===typeof G?k.ensureType(G):k.ensureOneOfType(G)})],I.prototype,"itemType",void 0);I=b.__decorate([l.subclass(`esri.core.Collection<${H}>`)],I);D.set(G,I);return I};b.__decorate([g.property()],F.prototype,"length",void 0);b.__decorate([g.property()],F.prototype,"items",null);return F=x=b.__decorate([l.subclass("esri.core.Collection")],
F)})},"esri/core/ArrayPool":function(){define(["./ObjectPool"],function(a){function b(d){d.length=0}let c=function(){function d(u=50,r=50){this._pool=new a(Array,void 0,b,r,u)}var n=d.prototype;n.acquire=function(){return this._pool.acquire()};n.release=function(u){this._pool.release(u)};n.prune=function(){this._pool.prune(0)};d.acquire=function(){return e.acquire()};d.release=function(u){return e.release(u)};d.prune=function(){e.prune()};return d}();const e=new c(100);return c})},"esri/core/ObjectPool":function(){define(function(){let a=
function(){function b(e,d,n,u=1,r=0){this._ctor=e;this._acquireFunction=d;this._releaseFunction=n;this.allocationSize=u;this._pool=Array(r);this._initialSize=r;if(this._ctor)for(e=0;e<r;e++)this._pool[e]=new this._ctor;this.allocationSize=Math.max(u,1)}var c=b.prototype;c.destroy=function(){this.prune(0)};c.acquire=function(...e){if(b.test.disabled)var d=new this._ctor;else{if(0===this._pool.length){d=this.allocationSize;for(let n=0;n<d;n++)this._pool[n]=new this._ctor}d=this._pool.pop()}this._acquireFunction?
this._acquireFunction(d,...e):d&&d.acquire&&"function"===typeof d.acquire&&d.acquire(...e);return d};c.release=function(e){e&&!b.test.disabled&&(this._releaseFunction?this._releaseFunction(e):e&&e.release&&"function"===typeof e.release&&e.release(),this._pool.push(e))};c.prune=function(e=this._initialSize){if(!(e>=this._pool.length)){for(let d=e;d<this._pool.length;++d)this._dispose(this._pool[d]);this._pool.length=e}};c._dispose=function(e){e.dispose&&"function"===typeof e.dispose&&e.dispose()};
return b}();a.test={disabled:!1};return a})},"esri/core/Evented":function(){define(["../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","./Accessor","./handleUtils","./accessorSupport/decorators/subclass"],function(a,b,c,e,d){let n=function(){function u(){this._emitter=new u.EventEmitter(this)}var r=u.prototype;r.emit=function(h,g){return this._emitter.emit(h,g)};r.on=function(h,g){return this._emitter.on(h,g)};r.once=function(h,g){return this._emitter.once(h,g)};r.hasEventListener=function(h){return this._emitter.hasEventListener(h)};
return u}();(function(u){let r=function(){function g(p=null){this._target=p;this._listenersMap=null}var k=g.prototype;k.clear=function(){this._listenersMap&&this._listenersMap.clear();this._listenersMap=null};k.emit=function(p,l){p=this._listenersMap&&this._listenersMap.get(p);if(!p)return!1;const m=this._target||this;[...p].forEach(t=>{t.call(m,l)});return 0<p.length};k.on=function(p,l){if(Array.isArray(p)){var m=p.map(t=>this.on(t,l));return e.handlesGroup(m)}if(p.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");
this._listenersMap||(this._listenersMap=new Map);m=this._listenersMap.get(p)||[];m.push(l);this._listenersMap.set(p,m);return{remove:()=>{const t=this._listenersMap&&this._listenersMap.get(p)||[],f=t.indexOf(l);0<=f&&t.splice(f,1)}}};k.once=function(p,l){const m=this.on(p,t=>{m.remove();l.call(null,t)});return m};k.hasEventListener=function(p){p=this._listenersMap&&this._listenersMap.get(p);return null!=p&&0<p.length};return g}();u.EventEmitter=r;u.EventedMixin=g=>{g=function(k){function p(){var m=
k.apply(this,arguments)||this;m._emitter=new r;return m}a._inheritsLoose(p,k);var l=p.prototype;l.destroy=function(){this._emitter.clear()};l.emit=function(m,t){return this._emitter.emit(m,t)};l.on=function(m,t){return this._emitter.on(m,t)};l.once=function(m,t){return this._emitter.once(m,t)};l.hasEventListener=function(m){return this._emitter.hasEventListener(m)};return p}(g);return g=b.__decorate([d.subclass("esri.core.Evented")],g)};let h=function(g){function k(){var l=g.apply(this,arguments)||
this;l._emitter=new n.EventEmitter(a._assertThisInitialized(l));return l}a._inheritsLoose(k,g);var p=k.prototype;p.destroy=function(){this._emitter.clear()};p.emit=function(l,m){return this._emitter.emit(l,m)};p.on=function(l,m){return this._emitter.on(l,m)};p.once=function(l,m){return this._emitter.once(l,m)};p.hasEventListener=function(l){return this._emitter.hasEventListener(l)};return k}(c);h=b.__decorate([d.subclass("esri.core.Evented")],h);u.EventedAccessor=h})(n||(n={}));return n})},"esri/core/Accessor":function(){define("../chunks/_rollupPluginBabelHelpers ./Handles ./maybe ./accessorSupport/get ./accessorSupport/metadata ./accessorSupport/Properties ./accessorSupport/set ./accessorSupport/watch ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g){function k(q){if(null==q)return{value:q};if(Array.isArray(q))return{type:[q[0]],value:null};switch(typeof q){case "object":return q.constructor?.__accessorMetadata__||q instanceof Date?{type:q.constructor,value:q}:q;case "boolean":return{type:Boolean,value:q};case "string":return{type:String,value:q};case "number":return{type:Number,value:q};case "function":return{type:q,value:null}}}const p=Symbol("Accessor-Handles"),l=Symbol("Accessor-Initialized");let m=function(){function q(...x){this[t]=
null;this[f]=!1;if(this.constructor===q)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");Object.defineProperty(this,"__accessor__",{enumerable:!1,value:new n(this)});0<x.length&&this.normalizeCtorArgs&&(this.__accessor__.ctorArgs=this.normalizeCtorArgs.apply(this,x))}q.createSubclass=function(x={}){if(Array.isArray(x))throw Error("Multi-inheritance unsupported since 4.16");const {properties:z,declaredClass:y,constructor:A}=x;delete x.declaredClass;
delete x.properties;delete x.constructor;const B=this;let E=function(w){function D(...C){var F=w.call(this,...C)||this;F.inherited=null;A&&A.apply(a._assertThisInitialized(F),C);return F}a._inheritsLoose(D,w);return D}(B);d.getOwnClassMetadata(E.prototype);for(const w in x){const D=x[w];E.prototype[w]="function"===typeof D?function(...C){const F=this.inherited;this.inherited=function(...H){if(B.prototype[w])return B.prototype[w].apply(this,H)};let G=void 0;try{G=D.apply(this,C)}catch(H){throw this.inherited=
F,H;}this.inherited=F;return G}:x[w]}for(const w in z)x=k(z[w]),h.property(x)(E.prototype,w);return g.subclass(y)(E)};var v=q.prototype;v.postscript=function(x){const z=this.__accessor__;x=z.ctorArgs||x;z.initialize();x&&(this.set(x),z.ctorArgs=null);z.constructed();this.initialize();this[l]=!0};v.initialize=function(){};v.destroy=function(){this.destroyed||(this[p]=c.destroyMaybe(this[p]),r.removeTarget(this),this.__accessor__.destroy())};v.commitProperty=function(x){this.get(x)};v.get=function(x){return e.get(this,
x)};v.hasOwnProperty=function(x){return this.__accessor__?this.__accessor__.has(x):Object.prototype.hasOwnProperty.call(this,x)};v.keys=function(){return this.__accessor__?this.__accessor__.keys():[]};v.set=function(x,z){u.set(this,x,z);return this};v.watch=function(x,z,y){return r.watch(this,x,z,y)};v.own=function(x){this.addHandles(x)};v.addHandles=function(x,z){let y=this[p];c.isNone(y)&&(y=this[p]=new b);y.add(x,z)};v.removeHandles=function(x){const z=this[p];c.isNone(z)||z.remove(x)};v.hasHandles=
function(x){const z=this[p];return c.isSome(z)?z.has(x):!1};v._override=function(x,z){void 0===z?this.__accessor__.clearOverride(x):this.__accessor__.override(x,z)};v._clearOverride=function(x){return this.__accessor__.clearOverride(x)};v._overrideIfSome=function(x,z){null==z?this.__accessor__.clearOverride(x):this.__accessor__.override(x,z)};v._isOverridden=function(x){return this.__accessor__.isOverridden(x)};v.notifyChange=function(x){this.__accessor__.notifyChange(x)};v._get=function(x){return this.__accessor__.internalGet(x)};
v._set=function(x,z){this.__accessor__.internalSet(x,z);return this};a._createClass(q,[{key:"constructed",get:function(){return this.__accessor__&&this.__accessor__.initialized||!1}},{key:"initialized",get:function(){return this[l]}},{key:"destroyed",get:function(){return this.__accessor__&&this.__accessor__.destroyed||!1}}]);return q}();var t=p;var f=l;return m})},"esri/core/Handles":function(){define(["../chunks/_rollupPluginBabelHelpers","./iteratorUtils","./maybe"],function(a,b,c){return function(){function e(){this._groups=
new Map}var d=e.prototype;d.destroy=function(){this.removeAll()};d.add=function(n,u){if(b.isIterable(n)){u=this._getOrCreateGroup(u);for(const r of n)this._isHandle(r)&&u.push(r)}else this._isHandle(n)&&this._getOrCreateGroup(u).push(n);return this};d.forEach=function(n,u){if("function"===typeof n)this._groups.forEach(r=>r.forEach(n));else{const r=this._getGroup(n);r&&u&&r.forEach(u)}};d.has=function(n){return this._groups.has(this._ensureGroupKey(n))};d.remove=function(n){if("string"!==typeof n&&
b.isIterable(n)){for(const u of n)this.remove(u);return this}if(!this.has(n))return this;this._removeAllFromGroup(this._getGroup(n));this._groups.delete(this._ensureGroupKey(n));return this};d.removeAll=function(){this._groups.forEach(n=>this._removeAllFromGroup(n));this._groups.clear();return this};d._isHandle=function(n){return n&&!!n.remove};d._getOrCreateGroup=function(n){if(this.has(n))return this._getGroup(n);const u=[];this._groups.set(this._ensureGroupKey(n),u);return u};d._getGroup=function(n){return c.assumeNonNull(this._groups.get(this._ensureGroupKey(n)))};
d._ensureGroupKey=function(n){return n||"_default_"};d._removeAllFromGroup=function(n){n.forEach(u=>u.remove())};a._createClass(e,[{key:"size",get:function(){let n=0;this._groups.forEach(u=>{n+=u.length});return n}}]);return e}()})},"esri/core/iteratorUtils":function(){define(["exports"],function(a){a.cache=function(b){const c=[];return function*(){yield*c;for(const e of b)c.push(e),yield e}};a.find=function(b,c){for(const e of b)if(null!=e&&c(e))return e};a.isIterable=function(b){return null!=b&&
"function"===typeof b[Symbol.iterator]};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/maybe":function(){define(["exports"],function(a){function b(d,n){return null!=d?n(d):null}function c(d,n){if(null==d)throw Error(n??"value is None");}function e(d,n,u){return null!=d?u(d):n}a.abortMaybe=function(d){null!=d&&d.abort();return null};a.applySome=b;a.assertIsSome=c;a.assumeNonNull=function(d){return d};a.destroyMaybe=function(d){null!=d&&d.destroy();
return null};a.disposeMaybe=function(d){null!=d&&d.dispose();return null};a.equalsMaybe=function(d,n,u){return null!=d&&null!=n?null!=u?u(d,n):d.equals(n):d===n};a.filterNones=function(d){return d.filter(n=>null!=n)};a.forEachSome=function(d,n){for(const u of d)b(u,n)};a.get=function(d,...n){for(let u=0;u<n.length&&d;++u)d=d[n[u]];return d};a.isNone=function(d){return null==d};a.isSome=function(d){return null!=d};a.isUndefined=function(d){return void 0===d};a.mapMany=function(d,n){const u=[];for(const r of d)u.push(e(r,
null,n));return u};a.mapOr=e;a.mapSome=function(d,n){const u=[];d.forEach(r=>{r=n(r);null!=r&&u.push(r)});return u};a.mapSomeFirst=function(d,n){for(const u of d)if(d=n(u),null!=d)return d;return null};a.none=null;a.nullifyNonNullableForDispose=function(d){return null};a.releaseMaybe=function(d){null!=d&&d.release();return null};a.removeMaybe=function(d){null!=d&&d.remove();return null};a.unwrap=function(d){return d};a.unwrapOr=function(d,n){return null!=d?d:"function"===typeof n?n():n};a.unwrapOrThrow=
function(d,n){c(d,n);return d};a.unwrapOrValue=function(d,n){return null!=d?d:n};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/get":function(){define(["exports","./utils"],function(a,b){function c(n,u){n="?"===n[n.length-1]?n.slice(0,-1):n;if(null!=u.getItemAt||Array.isArray(u)){var r=parseInt(n,10);if(!isNaN(r))return Array.isArray(u)?u[r]:u.getItemAt(r)}r=b.getProperties(u);return b.isPropertyDeclared(r,n)?r.get(n):u[n]}function e(n,
u,r){if(null==n)return n;if((n=c(u[r],n))||!(r<u.length-1))return r===u.length-1?n:e(n,u,r+1)}function d(n,u,r=0){return"string"!==typeof u||u.includes(".")?e(n,b.pathToArray(u),r):c(u,n)}a.exists=function(n,u){return void 0!==d(u,n)};a.get=function(n,u){return d(n,u)};a.valueOf=d;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/utils":function(){define(["exports","../handleUtils","../lang","../maybe"],function(a,b,c,e){function d(g){return g?
g.__accessor__?g.__accessor__:g.propertyInvalidated?g:null:null}function n(g,k,p){return k?Object.keys(k).reduce((l,m)=>{let t=null;var f="merge";p&&(t=p.path?`${p.path}.${m}`:m,f=p.policy(t));if("replace"===f)return l[m]=k[m],l;if(void 0===l[m])return l[m]=c.clone(k[m]),l;let q=l[m];f=k[m];if(q===f)return l;if(Array.isArray(f)||Array.isArray(l))q=q?Array.isArray(q)?l[m]=q.concat():l[m]=[q]:l[m]=[],f&&(Array.isArray(f)||(f=[f]),f.forEach(v=>{q.includes(v)||q.push(v)}));else if(f&&"object"===typeof f)if(p){const v=
p.path;p.path=e.assumeNonNull(t);l[m]=n(q,f,p);p.path=v}else l[m]=n(q,f,null);else if(!l.hasOwnProperty(m)||k.hasOwnProperty(m))l[m]=f;return l},g||{}):g}function u(g){return Array.isArray(g)?g:g.split(".")}function r(g){return g.includes(",")?g.split(",").map(k=>k.trim()):[g.trim()]}function h(g){if(Array.isArray(g)){const k=[];for(const p of g)k.push(...r(p));return k}return r(g)}a.getDependsInfo=function(g,k){const p=d(g);return p?p.getDependsInfo(g,k,""):""};a.getProperties=d;a.isPropertyDeclared=
function(g,k){return null!=g&&g.metadatas&&null!=g.metadatas[k]};a.merge=function(g,k,p){return p?n(g,k,{policy:p,path:""}):n(g,k,null)};a.once=function(g){let k=!1;return()=>{k||(k=!0,g())}};a.parse=function(g,k,p,l){k=h(k);return 1!==k.length?(k=k.map(m=>l(g,m,p)),b.handlesGroup(k)):l(g,k[0],p)};a.parseConditionalPath=function(g){if(!g.includes("?"))return null;g=u(g);const k=Array(g.length);for(let p=0;p<g.length;p++){const l=g[p];k[p]="?"===l[l.length-1];k[p]&&(g[p]=l.slice(0,-1))}return{fullPath:g.join("."),
conditional:k}};a.pathToArray=u;a.pathToStringOrArray=function(g){return!g||"string"===typeof g&&!g.includes(".")?g:u(g)};a.splitPath=h;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/handleUtils":function(){define(["exports","./maybe"],function(a,b){function c(e){return{remove:()=>{e&&(e(),e=void 0)}}}a.asyncHandle=function(e,d){let n=!1,u=null;e.then(r=>{n?r.remove():u=r});return c(()=>{n=!0;b.isSome(u)?u.remove():b.isSome(d)&&(d.abort(),d=
null)})};a.destroyHandle=function(e){return c(b.isSome(e)?()=>e.destroy():void 0)};a.handlesGroup=function(e){return c(()=>e.forEach(d=>b.isSome(d)&&d.remove()))};a.makeHandle=c;a.refHandle=function(e){return c(()=>{const d=e();b.isSome(d)&&d.remove()})};a.timeoutHandle=function(e,d){const n=setTimeout(e,d);return c(()=>clearTimeout(n))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/lang":function(){define(["exports","./arrayUtils","./maybe",
"./typedArrayUtil"],function(a,b,c,e){function d(l,m){let t;if(m)for(t in l)l.hasOwnProperty(t)&&(void 0===l[t]?delete l[t]:l[t]instanceof Object&&d(l[t],!0));else for(t in l)l.hasOwnProperty(t)&&void 0===l[t]&&delete l[t];return l}function n(l){if(!l||"object"!==typeof l||"function"===typeof l)return l;var m=k(l);if(c.isSome(m))return m;if("function"===typeof l.clone)return l.clone();if(r(l))return l.map(n);if(h(l))return l.clone();m={};for(const t of Object.getOwnPropertyNames(l))m[t]=n(l[t]);return m}
function u(l){if(!l||"object"!==typeof l||"function"===typeof l||"HTMLElement"in globalThis&&l instanceof HTMLElement)return l;var m=k(l);if(c.isSome(m))return m;if(r(l)){let t=!0;l=l.map(f=>{const q=u(f);null!=f&&null==q&&(t=!1);return q});return t?l:null}if("function"===typeof l.clone)return l.clone();if(!h(l)){m=new (Object.getPrototypeOf(l).constructor);for(const t of Object.getOwnPropertyNames(l)){const f=l[t],q=u(f);if(null!=f&&null==q)return null;m[t]=q}return m}return null}function r(l){return"function"===
typeof l.map&&"function"===typeof l.forEach}function h(l){return"function"===typeof l.notifyChange&&"function"===typeof l.watch}function g(l){if("[object Object]"!==Object.prototype.toString.call(l))return!1;l=Object.getPrototypeOf(l);return null===l||l===Object.prototype}function k(l){if(e.isInt8Array(l)||e.isUint8Array(l)||e.isUint8ClampedArray(l)||e.isInt16Array(l)||e.isUint16Array(l)||e.isInt32Array(l)||e.isUint32Array(l)||e.isFloat32Array(l)||e.isFloat64Array(l))return e.slice(l);if(l instanceof
Date)return new Date(l.getTime());if(l instanceof ArrayBuffer)return l.slice(0,l.byteLength);if(l instanceof Map){var m=new Map;for(const [t,f]of l)m.set(t,n(f));return m}if(l instanceof Set){m=new Set;for(const t of l)m.add(n(t));return m}return null}function p(l,m){if(null===l||null===m)return!1;const t=Object.keys(l);if(null===m||Object.keys(m).length!==t.length)return!1;for(const f of t)if(l[f]!==m[f]||!Object.prototype.hasOwnProperty.call(m,f))return!1;return!0}a.clone=n;a.equals=function(l,
m){return l===m||"number"===typeof l&&isNaN(l)&&"number"===typeof m&&isNaN(m)||"function"===typeof(l||{}).getTime&&"function"===typeof(m||{}).getTime&&l.getTime()===m.getTime()||!1};a.equalsShallow=function(l,m){if(l===m)return!0;if(null===l||void 0===l||"string"===typeof l)return l===m;if("number"===typeof l)return l===m||"number"===typeof m&&isNaN(l)&&isNaN(m);if(l instanceof Date)return m instanceof Date&&l.getTime()===m.getTime();if(Array.isArray(l))return Array.isArray(m)&&b.equals(l,m);if(l instanceof
Set){var t;if(t=m instanceof Set)a:if(l.size!==m.size)t=!1;else{for(const f of l)if(!m.has(f)){t=!1;break a}t=!0}return t}if(l instanceof Map){if(t=m instanceof Map)a:if(l.size!==m.size)t=!1;else{for(const [f,q]of l)if(l=m.get(f),l!==q||void 0===l&&!m.has(f)){t=!1;break a}t=!0}return t}return g(l)?g(m)&&p(l,m):!1};a.fixJson=d;a.isAccessorLike=h;a.isPlainObject=g;a.tryClone=u;a.tryCloneBuiltInObject=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/arrayUtils":function(){define(["exports",
"./maybe","./RandomLCG"],function(a,b,c){function e(l){return l}function d(l,m=e){if(l&&0!==l.length){var t=l[0],f=m(t);for(let q=1;q<l.length;++q){const v=l[q],x=Number(m(v));x>f&&(f=x,t=v)}return t}}function n(l,m,t,f){f=f||g;var q=Math.max(0,f.last-10);for(let v=q;v<t;++v)if(l[v]===m)return f.last=v;t=Math.min(q,t);for(q=0;q<t;++q)if(l[q]===m)return f.last=q;return-1}function u(l){return l?(p.seed=l,()=>p.getFloat()):Math.random}const r=!!Array.prototype.fill;let h=function(){this.last=0};const g=
new h,k=new Set,p=new c;a.PositionHint=h;a.binaryFindClosest=function(l,m,t){if(l&&0!==l.length){var f=l.length-1,q=l[0];if(m<=t(q))return q;q=l[f];if(m>=t(q))return q;var v=0;q=0;for(var x=f;v<x;){q=v+Math.floor((x-v)/2);const y=l[q],A=t(y);if(A===m)return y;if(m<A){if(0<q){x=l[q-1];var z=t(x);if(m>z)return m-z>=A-m?y:x}x=q}else{if(q<f&&(v=l[q+1],z=t(v),m<z))return m-A>=z-m?v:y;v=q+1}}return l[q]}};a.binaryIndexOf=function(l,m,t){const f=l.length;let q=0;for(var v=f-1;q<v;){const x=q+Math.floor((v-
q)/2);m>l[x]?q=x+1:v=x}v=l[q];return t?m>=l[f-1]?-1:v===m?q:q-1:v===m?q:-1};a.constant=function(l,m){if(r)return Array(l).fill(m);const t=Array(l);for(let f=0;f<l;f++)t[f]=m;return t};a.difference=function(l,m,t){let f,q;t?(f=m.filter(v=>!l.some(x=>t(x,v))),q=l.filter(v=>!m.some(x=>t(x,v)))):(f=m.filter(v=>!l.includes(v)),q=l.filter(v=>!m.includes(v)));return{added:f,removed:q}};a.equals=function(l,m,t){if(b.isNone(l)&&b.isNone(m))return!0;if(b.isNone(l)||b.isNone(m)||l.length!==m.length)return!1;
if(t)for(let f=0;f<l.length;f++){if(!t(l[f],m[f]))return!1}else for(t=0;t<l.length;t++)if(l[t]!==m[t])return!1;return!0};a.first=function(l){if(l)return 0<l.length?l[0]:void 0};a.groupToMap=function(l,m){const t=new Map,f=l.length;for(let q=0;q<f;q++){const v=l[q],x=m(v,q,l),z=t.get(x);z?z.push(v):t.set(x,[v])}return t};a.indexOf=n;a.intersect=function(l,m,t){return l&&m?t?l.filter(f=>-1<m.findIndex(q=>t(f,q))):l.filter(f=>m.includes(f)):[]};a.isArrayLike=function(l){return l&&"number"===typeof l.length};
a.last=function(l){if(l){var m=l.length;return 0<m?l[m-1]:void 0}};a.max=d;a.min=function(l,m=e){return d(l,t=>-m(t))};a.pickRandom=function(l,m,t){const f=l.length;if(m>=f)return l.slice(0);t=u(t);const q=new Set,v=[];for(;v.length<m;){const x=Math.floor(t()*f);q.has(x)||(q.add(x),v.push(l[x]))}return v};a.range=function(l,m){void 0===m&&(m=l,l=0);const t=Array(m-l);for(let f=l;f<m;f++)t[f-l]=f;return t};a.remove=function(l,m){const t=l.indexOf(m);return-1!==t?(l.splice(t,1),m):null};a.removeUnordered=
function(l,m,t,f){const q=null==t?l.length:t;f=n(l,m,q,f);if(-1!==f)return l[f]=l[q-1],null==t&&l.pop(),m};a.removeUnorderedMany=function(l,m,t=l.length,f=m.length,q,v){if(0===f||0===t)return t;k.clear();for(let x=0;x<f;++x)k.add(m[x]);q=q||g;m=Math.max(0,q.last-10);for(f=m;f<t;++f)if(k.has(l[f])&&(v&&v.push(l[f]),k.delete(l[f]),l[f]=l[t-1],--t,--f,0===k.size||0===t))return k.clear(),t;for(f=0;f<m;++f)if(k.has(l[f])&&(v&&v.push(l[f]),k.delete(l[f]),l[f]=l[t-1],--t,--f,0===k.size||0===t))return k.clear(),
t;k.clear();return t};a.shuffle=function(l,m){m=u(m);for(let t=l.length-1;0<t;t--){const f=Math.floor(m()*(t+1)),q=l[t];l[t]=l[f];l[f]=q}return l};a.splitIntoChunks=function(l,m){const t=l.length;if(0===t)return[];const f=[];for(let q=0;q<t;q+=m)f.push(l.slice(q,q+m));return f};a.unique=function(l,m){return m?l.filter((t,f,q)=>q.findIndex(m.bind(null,t))===f):l.filter((t,f,q)=>q.indexOf(t)===f)};a.update=function(l,m){let t=l.length!==m.length;t&&(l.length=m.length);for(let f=0;f<m.length;++f)l[f]!==
m[f]&&(l[f]=m[f],t=!0);return t};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/RandomLCG":function(){define(["../chunks/_rollupPluginBabelHelpers"],function(a){let b=function(){function c(d=1){this._seed=d}var e=c.prototype;e.getInt=function(){return this._seed=(c._a*this._seed+c._c)%c._m};e.getFloat=function(){return this.getInt()/(c._m-1)};e.getIntRange=function(d,n){return Math.round(this.getFloatRange(d,n))};e.getFloatRange=function(d,n){n-=
d;const u=this.getInt()/c._m;return d+u*n};a._createClass(c,[{key:"seed",set:function(d){this._seed=null==d?Math.random()*c._m:d}}]);return c}();b._m=2147483647;b._a=48271;b._c=0;return b})},"esri/core/typedArrayUtil":function(){define(["exports","./maybe"],function(a,b){a.estimateSize=function(c){return b.isNone(c)?0:128+c.buffer.byteLength+64};a.forEach=function(c,e){if(c.forEach)c.forEach(e);else for(let d=0;d<c.length;d++)e(c[d],d,c)};a.isArrayBuffer=function(c){return c instanceof ArrayBuffer||
c&&c.constructor&&"ArrayBuffer"===c.constructor.name};a.isFloat32Array=function(c){return c instanceof Float32Array||c&&c.constructor&&"Float32Array"===c.constructor.name};a.isFloat64Array=function(c){return c instanceof Float64Array||c&&c.constructor&&"Float64Array"===c.constructor.name};a.isInt16Array=function(c){return c instanceof Int16Array||c&&c.constructor&&"Int16Array"===c.constructor.name};a.isInt32Array=function(c){return c instanceof Int32Array||c&&c.constructor&&"Int32Array"===c.constructor.name};
a.isInt8Array=function(c){return c instanceof Int8Array||c&&c.constructor&&"Int8Array"===c.constructor.name};a.isUint16Array=function(c){return c instanceof Uint16Array||c&&c.constructor&&"Uint16Array"===c.constructor.name};a.isUint32Array=function(c){return c instanceof Uint32Array||c&&c.constructor&&"Uint32Array"===c.constructor.name};a.isUint8Array=function(c){return c instanceof Uint8Array||c&&c.constructor&&"Uint8Array"===c.constructor.name};a.isUint8ClampedArray=function(c){return c instanceof
Uint8ClampedArray||c&&c.constructor&&"Uint8ClampedArray"===c.constructor.name};a.slice=function(c,e,d){if(c.slice)return c.slice(e,d);void 0===e?e=0:(0>e&&(e+=c.length),e=Math.min(c.length,Math.max(0,e)));void 0===d?d=c.length:(0>d&&(d+=c.length),d=Math.min(c.length,Math.max(0,d)));d=Math.max(0,d-e);const n=new c.constructor(d);for(let u=0;u<d;u++)n[u]=c[e+u];return n};a.toArray=function(c){const e=Array(c.length);for(let d=0;d<c.length;d++)e[d]=c[d];return e};Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/metadata":function(){define(["exports","../lang","../maybe","./utils"],function(a,b,c,e){function d(p){let l=p.constructor.__accessorMetadata__;var m=Object.prototype.hasOwnProperty.call(p.constructor,"__accessorMetadata__");if(!l)l=new h({}),Object.defineProperty(p.constructor,"__accessorMetadata__",{value:l,enumerable:!1,configurable:!0,writable:!0});else if(!m){m=Object.create(l.properties);const t=l.autoDestroy;for(const f in m)m[f]=
b.clone(m[f]);l=new h(m);l.autoDestroy=t;Object.defineProperty(p.constructor,"__accessorMetadata__",{value:l,enumerable:!1,configurable:!0,writable:!0})}return c.assumeNonNull(p.constructor.__accessorMetadata__)}function n(p){return d(p).properties}function u(p){return g.test(p)?"replace":"merge"}function r(p){return k.test(p)?u(p.slice(11)):"merge"}let h=function(p){this.autoDestroy=!1;this.properties=p};const g=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/,k=/^properties\./;
a.ClassMetadata=h;a.getOwnClassMetadata=d;a.getOwnPropertiesMetadata=n;a.getOwnPropertyMetadata=function(p,l){p=n(p);let m=p[l];m||(m=p[l]={});return m};a.merge=function(p,l){return e.merge(p,l,r)};a.mergeProperty=function(p,l){return e.merge(p,l,u)};a.setPropertyMetadata=function(p,l,m){n(p)[l]=m};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/Properties":function(){define("../../chunks/_rollupPluginBabelHelpers ../has ../lang ../Logger ../ObjectPool ./interfaces ./Property ./PropertyOrigin ./Store ./tracking ./utils ./tracking/Flags".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){e.getLogger("esri.core.accessorSupport.Properties");b=function(){function m(f){this.host=f;this.properties=new Map;this.ctorArgs=null;this.destroyed=!1;this.lifecycle=n.Lifecycle.INITIALIZING;this.store=new h.Store;this._origin=r.OriginId.USER;f=this.host.constructor.__accessorMetadata__;const q=f.properties;for(const v in q){const x=new u.Property(this,v,q[v]);this.properties.set(v,x)}this.metadatas=q;this._autoDestroy=f.autoDestroy}var t=m.prototype;t.initialize=
function(){this.lifecycle=n.Lifecycle.CONSTRUCTING};t.constructed=function(){this.lifecycle=n.Lifecycle.CONSTRUCTED};t.destroy=function(){this.destroyed=!0;if(this._autoDestroy)for(const [q,v]of this.properties){var f=this.internalGet(q);f&&f&&"function"===typeof f.destroy&&(f.destroy(),~v.flags&p.Flags.NonNullable&&this._internalSet(v,null));v.destroy()}else for([,f]of this.properties)f.destroy()};t.get=function(f){const q=this.properties.get(f);if(q.metadata.get)return q.getComputed();g.trackAccess(q);
const v=this.store;return v.has(f)?v.get(f):q.metadata.value};t.originOf=function(f){const q=this.store.originOf(f);return void 0===q&&(f=this.properties.get(f),void 0!==f&&f.flags&p.Flags.HasDefaultValue)?"defaults":r.idToName(q)};t.has=function(f){return this.properties.has(f)?this.store.has(f):!1};t.keys=function(){return[...this.properties.keys()]};t.internalGet=function(f){const q=this.properties.get(f);if(void 0!==q)return this.store.has(f)?this.store.get(f):q.metadata.value};t.internalSet=
function(f,q){f=this.properties.get(f);void 0!==f&&this._internalSet(f,q)};t.getDependsInfo=function(f,q,v){const x=this.properties.get(q);if(void 0===x)return"";const z=new Set;var y=g.runTracked({onObservableAccessed:B=>z.add(B),onTrackingEnd:()=>{}},()=>x.metadata.get?.call(f)),A=f.declaredClass.split(".").pop();q=`${v}${A}.${q}: ${y}\n`;if(0===z.size)return q;v+="  ";for(const B of z){if(!(B instanceof u.Property))continue;y=B.properties.host;A=B.propertyName;const E=k.getProperties(y);q=E?q+
E.getDependsInfo(y,A,v):q+`${v}${A}: undefined\n`}return q};t.setAtOrigin=function(f,q,v){f=this.properties.get(f);if(void 0!==f)return this._setAtOrigin(f,q,v)};t.isOverridden=function(f){f=this.properties.get(f);return void 0!==f&&!!(f.flags&p.Flags.Overriden)};t.clearOverride=function(f){f=this.properties.get(f);void 0!==f&&f.flags&p.Flags.Overriden&&(f.flags&=~p.Flags.Overriden,f.notifyChange())};t.override=function(f,q){f=this.properties.get(f);if(!(void 0===f||null==q&&f.flags&p.Flags.NonNullable)){var v=
f.metadata.cast;if(v){q=this._cast(v,q);const {valid:x,value:z}=q;l.release(q);if(!x)return;q=z}f.flags|=p.Flags.Overriden;this._internalSet(f,q)}};t.set=function(f,q){f=this.properties.get(f);if(!(void 0===f||null==q&&f.flags&p.Flags.NonNullable)){var v=f.metadata.cast;if(v){q=this._cast(v,q);const {valid:x,value:z}=q;l.release(q);if(!x)return;q=z}(v=f.metadata.set)?v.call(this.host,q):this._internalSet(f,q)}};t.setDefaultOrigin=function(f){this._origin=r.nameToId(f)};t.getDefaultOrigin=function(){return r.idToName(this._origin)};
t.notifyChange=function(f){f=this.properties.get(f);void 0!==f&&f.notifyChange()};t.invalidate=function(f){f=this.properties.get(f);void 0!==f&&f.invalidate()};t.commit=function(f){f=this.properties.get(f);void 0!==f&&f.commit()};t._internalSet=function(f,q){this._setAtOrigin(f,q,this.lifecycle!==n.Lifecycle.INITIALIZING?this._origin:r.OriginId.DEFAULTS)};t._setAtOrigin=function(f,q,v){const x=this.store,z=f.propertyName;x.has(z,v)&&c.equals(q,x.get(z))&&~f.flags&p.Flags.Overriden&&v===x.originOf(z)||
(f.invalidate(),x.set(z,q,v),f.commit(),g.initializeDependencyTracking(this.host,f))};t._cast=function(f,q){const v=l.acquire();v.valid=!0;v.value=q;f&&(v.value=f.call(this.host,q,v));return v};a._createClass(m,[{key:"initialized",get:function(){return this.lifecycle!==n.Lifecycle.INITIALIZING}}]);return m}();e=function(){function m(){this.value=null;this.valid=!0}var t=m.prototype;t.acquire=function(){this.valid=!0};t.release=function(){this.value=null};return m}();const l=new d(e);return b})},"esri/core/has":function(){define(function(){function a(c){return"function"===
typeof b[c]?b[c]=b[c](globalThis):b[c]}let b;b=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{};a.add=(c,e,d,n)=>{if(n||"undefined"===typeof b[c])b[c]=e;return d&&a(c)};a.cache=b;a.add("esri-deprecation-warnings",!0);(()=>{a.add("host-webworker","undefined"!==typeof globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);var c="undefined"!==typeof window&&"undefined"!==typeof location&&"undefined"!==typeof document&&
window.location===location&&window.document===document;a.add("host-browser",c);a.add("dom",c);if(a("host-browser")){var e=navigator;c=e.userAgent;e=e.appVersion;const n=parseFloat(e);a.add("edge",parseFloat(c.split("Edge/")[1])||void 0);a.add("webkit",!a("edge")&&parseFloat(c.split("WebKit/")[1])||void 0);a.add("chrome",!a("edge")&&parseFloat(c.split("Chrome/")[1])||void 0);a.add("safari",!e.includes("Safari")||a("chrome")||a("edge")?void 0:parseFloat(e.split("Version/")[1]));a.add("mac",e.includes("Macintosh"));
if(c.match(/(iPhone|iPod|iPad)/)){const u=RegExp.$1.replace(/P/,"p");var d=c.match(/OS ([\d_]+)/)?RegExp.$1:"1";d=parseFloat(d.replace(/_/,".").replace(/_/g,""));a.add(u,d);a.add("ios",d)}a.add("trident",parseFloat(e.split("Trident/")[1])||void 0);a("webkit")||(!c.includes("Gecko")||a("trident")||a("edge")||a.add("mozilla",n),a("mozilla")&&a.add("ff",parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||void 0))}})();(()=>{if(globalThis.navigator){var c=navigator.userAgent;const e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(c);
c=/iPhone/i.test(c);e&&a.add("esri-mobile",e);c&&a.add("esri-iPhone",c);a.add("esri-geolocation",!!navigator.geolocation)}a.add("esri-canvas-svg-support",!a("trident"));a.add("esri-wasm","WebAssembly"in globalThis);a.add("esri-shared-array-buffer",()=>{const e=!1===globalThis.crossOriginIsolated;return"SharedArrayBuffer"in globalThis&&!e});a.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])));a.add("esri-atomics",
"Atomics"in globalThis);a.add("esri-workers","Worker"in globalThis);a.add("web-feat:cache","caches"in globalThis);a.add("esri-workers-arraybuffer-transfer",!a("safari")||12<=Number(a("safari")));a.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]);a.add("featurelayer-simplify-payload-size-factors",[1,1,4]);a.add("featurelayer-snapshot-enabled",!0);a.add("featurelayer-snapshot-point-min-threshold",8E4);a.add("featurelayer-snapshot-point-max-threshold",4E5);a.add("featurelayer-snapshot-point-coverage",
.1);a.add("featurelayer-advanced-symbols",!1);a.add("featurelayer-pbf",!0);a.add("featurelayer-pbf-statistics",!1);a.add("feature-layers-workers",!0);a.add("feature-polyline-generalization-factor",1);a.add("mapview-transitions-duration",200);a.add("mapview-srswitch-adjust-rotation-scale-threshold",24E6);a.add("mapserver-pbf-version-support",10.81);a.add("mapimagelayer-popup-identify-max-tolerance",20);a.add("heatmap-allow-raster-fallback",!0);a.add("heatmap-force-raster",!1);!a("host-webworker")&&
a("host-browser")&&(a.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),a.add("esri-image-decode",()=>{if("decode"in new Image){const e=new Image;e.src='data:image/svg+xml;charset\x3dUTF-8,\x3csvg version\x3d"1.1" xmlns\x3d"http://www.w3.org/2000/svg"\x3e\x3c/svg\x3e';e.decode().then(()=>{a.add("esri-image-decode",!0,!0,!0)}).catch(()=>{a.add("esri-image-decode",!1,!0,!0)})}else return!1}),a.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");
e.href="?'";return e.href.includes("?%27")}))})();return a})},"esri/core/Logger":function(){define(["../chunks/_rollupPluginBabelHelpers","../config","./has","./maybe","./string"],function(a,b,c,e,d){const n={info:0,warn:1,error:2,none:3};c=function(){function u(h){this.level=null;this._module="";this.writer=this._parent=null;this._loggedMessages={error:new Map,warn:new Map,info:new Map};null!=h.level&&(this.level=h.level);null!=h.writer&&(this.writer=h.writer);this._module=h.module;u._loggers[this.module]=
this;h=this.module.lastIndexOf(".");-1!==h&&(this._parent=u.getLogger(this.module.slice(0,h)))}var r=u.prototype;r.error=function(...h){this._log("error","always",...h)};r.warn=function(...h){this._log("warn","always",...h)};r.info=function(...h){this._log("info","always",...h)};r.errorOnce=function(...h){this._log("error","once",...h)};r.warnOnce=function(...h){this._log("warn","once",...h)};r.infoOnce=function(...h){this._log("info","once",...h)};r.errorOncePerTick=function(...h){this._log("error",
"oncePerTick",...h)};r.warnOncePerTick=function(...h){this._log("warn","oncePerTick",...h)};r.infoOncePerTick=function(...h){this._log("info","oncePerTick",...h)};u.getLogger=function(h){let g=u._loggers[h];g||(g=new u({module:h}));return g};r._log=function(h,g,...k){if(this._matchLevel(h)){if("always"!==g&&!u._throttlingDisabled){const p=this._argsToKey(k),l=this._loggedMessages[h].get(p);if("once"===g&&null!=l||"oncePerTick"===g&&l&&l>=u._tickCounter)return;this._loggedMessages[h].set(p,u._tickCounter);
u._scheduleTickCounterIncrement()}for(const p of b.log.interceptors)if(p(h,this.module,...k))return;this._inheritedWriter()(h,this.module,...k)}};r._parentWithMember=function(h,g){let k=this;for(;e.isSome(k);){const p=k[h];if(e.isSome(p))return p;k=k.parent}return g};r._inheritedWriter=function(){return this._parentWithMember("writer",this._consoleWriter)};r._consoleWriter=function(h,g,...k){console[h](`[${g}]`,...k)};r._matchLevel=function(h){return n[this._parentWithMember("level",b.log.level?b.log.level:
"warn")]<=n[h]};r._argsToKey=function(...h){return d.numericHash(JSON.stringify(h,(g,k)=>"object"!==typeof k||Array.isArray(k)?k:"[Object]"))};u._scheduleTickCounterIncrement=function(){u._tickCounterScheduled||(u._tickCounterScheduled=!0,Promise.resolve().then(()=>{u._tickCounter++;u._tickCounterScheduled=!1}))};a._createClass(u,[{key:"module",get:function(){return this._module}},{key:"parent",get:function(){return this._parent}},{key:"test",get:function(){const h=this;return{loggedMessages:h._loggedMessages,
clearLoggedWarnings(){return h._loggedMessages.warn.clear()}}}}],[{key:"testSingleton",get:function(){return{resetLoggers(h={}){const g=u._loggers;u._loggers=h;return g},set throttlingDisabled(h){u._throttlingDisabled=h}}}}]);return u}();c._loggers={};c._tickCounter=0;c._tickCounterScheduled=!1;c._throttlingDisabled=!1;return c})},"esri/config":function(){define(["module","./core/has","./core/object"],function(a,b,c){b={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:globalThis.location?.href,
assetsPath:"",fontsUrl:"https://gis.gsa.gov/portal/apps/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,
httpsDomains:"arcgis.com arcgisonline.com esrikr.com premiumservices.blackbridge.com esripremium.accuweather.com gbm.digitalglobe.com firstlook.digitalglobe.com msi.digitalglobe.com".split(" "),interceptors:[],maxUrlLength:2E3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6E4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(c.deepMerge(b,globalThis.esriConfig,!0),delete b.has);b.assetsPath||(a=(new URL(a.uri,document.baseURI)).href,b.assetsPath=a.slice(0,
a.lastIndexOf("esri/")),b.defaultAssetsPath=b.assetsPath);return b})},"esri/core/object":function(){define(["exports","./lang"],function(a,b){function c(d,n,u){for(const r of d){if(null==u)return;if(!(r in u))if(n)u[r]={};else return;u=u[r]}return u}function e(d,n,u){return n?Object.keys(n).reduce((r,h)=>{let g=r[h],k=n[h];if(g===k)return r;if(void 0===g)return r[h]=b.clone(k),r;if(Array.isArray(k)||Array.isArray(r))g=g?Array.isArray(g)?r[h]=g.concat():r[h]=[g]:r[h]=[],k&&(Array.isArray(k)||(k=[k]),
u?k.forEach(p=>{g.includes(p)||g.push(p)}):r[h]=k.concat());else if(k&&"object"===typeof k)r[h]=e(g,k,u);else if(!r.hasOwnProperty(h)||n.hasOwnProperty(h))r[h]=k;return r},d||{}):d}a.deepMerge=function(d,n,u=!1){return e(d,n,u)};a.getDeepValue=function(d,n){if(null!=n)return n[d]||c(d.split("."),!1,n)};a.setDeepValue=function(d,n,u){const r=d.split(".");d=r.pop();(u=c(r,!0,u))&&d&&(u[d]=n)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/string":function(){define(["exports",
"./object"],function(a,b){function c(d){return null==d?"":d}const e=/\{([^\}]+)\}/g;a.escapeRegExpString=function(d,n){return d.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,u=>n&&n.includes(u)?u:`\\${u}`)};a.numericHash=function(d){let n=0;for(let u=0;u<d.length;u++)n=(n<<5)-n+d.charCodeAt(u),n|=0;return n};a.replace=function(d,n){return d.replace(e,"object"===typeof n?(u,r)=>c(b.getDeepValue(r,n)):(u,r)=>c(n(r)))};a.stripHTML=function(d){return(new DOMParser).parseFromString(d||"","text/html").body.innerText||
""};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/interfaces":function(){define(["exports"],function(a){a.Lifecycle=void 0;var b=a.Lifecycle||(a.Lifecycle={});b[b.INITIALIZING=0]="INITIALIZING";b[b.CONSTRUCTING=1]="CONSTRUCTING";b[b.CONSTRUCTED=2]="CONSTRUCTED";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/Property":function(){define(["exports","./PropertyOrigin",
"./tracking","./tracking/Flags","./tracking/ObservationHandle"],function(a,b,c,e,d){let n=function(){function u(h,g,k){this.properties=h;this.propertyName=g;this.metadata=k;this._handles=this._accessed=this._observers=null;this.flags=e.Flags.Dirty|(k.nonNullable?e.Flags.NonNullable:0)|(k.hasOwnProperty("value")?e.Flags.HasDefaultValue:0)|(void 0===k.get?e.Flags.DepTrackingInitialized:0)|(void 0===k.dependsOn?e.Flags.AutoTracked:0)}var r=u.prototype;r.destroy=function(){if(this.flags&e.Flags.Dirty&&
this._observers){const h=this._observers.slice();for(const g of h)g.onCommitted()}this._observers=this._accessed=null;this._clearObservationHandles()};r.getComputed=function(){c.trackAccess(this);var h=this.properties.store;const g=this.propertyName;var k=this.flags;const p=h.get(g);if(k&e.Flags.Computing||~k&e.Flags.Dirty&&h.has(g))return p;this.flags|=e.Flags.Computing;const l=this.properties.host;k&e.Flags.AutoTracked?k=c.runTracked(this,this.metadata.get,l):(c.trackExplicitDependencies(l,this),
k=this.metadata.get.call(l));h.set(g,k,b.OriginId.COMPUTED);h=h.get(g);h===p?this.flags&=~e.Flags.Dirty:c.runUntracked(this.commit,this);this.flags&=~e.Flags.Computing;return h};r.onObservableAccessed=function(h){h!==this&&(null===this._accessed&&(this._accessed=[]),this._accessed.includes(h)||this._accessed.push(h))};r.onTrackingEnd=function(){this._clearObservationHandles();this.flags|=e.Flags.DepTrackingInitialized;const h=this._accessed;if(null!==h){var g=this._handles;null===g&&(g=this._handles=
[]);for(let k=0;k<h.length;++k)g.push(h[k].observe(this));h.length=0}};r.observe=function(h){null===this._observers&&(this._observers=[]);this._observers.includes(h)||this._observers.push(h);return new d.ObservationHandle(this._observers,h)};r.notifyChange=function(){this.onInvalidated();this.onCommitted()};r.invalidate=function(){this.onInvalidated()};r.onInvalidated=function(){~this.flags&e.Flags.Overriden&&(this.flags|=e.Flags.Dirty);const h=this._observers;if(null!==h)for(let g=0;g<h.length;++g)h[g].onInvalidated()};
r.commit=function(){this.flags&=~e.Flags.Dirty;this.onCommitted()};r.onCommitted=function(){if(null!==this._observers){var h=this._observers.slice();for(let g=0;g<h.length;++g)h[g].onCommitted()}};r._clearObservationHandles=function(){const h=this._handles;if(null!==h){for(let g=0;g<h.length;++g)h[g].remove();h.length=0}};return u}();a.Property=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/PropertyOrigin":function(){define(["exports",
"../maybe"],function(a,b){function c(d){switch(d){case "defaults":return a.OriginId.DEFAULTS;case "service":return a.OriginId.SERVICE;case "portal-item":return a.OriginId.PORTAL_ITEM;case "web-scene":return a.OriginId.WEB_SCENE;case "web-map":return a.OriginId.WEB_MAP;case "user":return a.OriginId.USER;default:return null}}function e(d){switch(d){case a.OriginId.DEFAULTS:return"defaults";case a.OriginId.SERVICE:return"service";case a.OriginId.PORTAL_ITEM:return"portal-item";case a.OriginId.WEB_SCENE:return"web-scene";
case a.OriginId.WEB_MAP:return"web-map";case a.OriginId.USER:return"user"}return b.assumeNonNull(void 0)}a.OriginId=void 0;(function(d){d[d.DEFAULTS=0]="DEFAULTS";d[d.COMPUTED=1]="COMPUTED";d[d.SERVICE=2]="SERVICE";d[d.PORTAL_ITEM=3]="PORTAL_ITEM";d[d.WEB_SCENE=4]="WEB_SCENE";d[d.WEB_MAP=5]="WEB_MAP";d[d.USER=6]="USER"})(a.OriginId||(a.OriginId={}));a.OriginIdNum=a.OriginId.USER+1;a.idToName=e;a.idToReadableName=function(d){return e(d)};a.idToWritableName=function(d){return e(d)};a.nameToId=c;a.readableNameToId=
function(d){return c(d)};a.writableNameToId=function(d){return c(d)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/tracking":function(){define(["exports","../has","../Logger","./utils","./tracking/Flags"],function(a,b,c,e,d){function n(x){t.onObservableAccessed(x)}function u(x,z,y){if(f)return r(x,z,y);t=x;m.push(x);x=z.call(y);h();return x}function r(x,z,y){const A=f;f=!0;t=x;m.push(x);x=null;try{x=z.call(y)}catch(B){q&&c.getLogger("esri.core.accessorSupport.tracking").error(B)}h();
f=A;return x}function h(){var x=m.length;if(1<x){const z=m.pop();t=m[x-2];z.onTrackingEnd()}else 1===x?(x=m.pop(),t=l,x.onTrackingEnd()):t=l}function g(x,z){if(!(z.flags&d.Flags.DepTrackingInitialized)){var y=q;q=!1;z.flags&d.Flags.AutoTracked?r(z,z.metadata.get,x):k(x,z);q=y}}function k(x,z){z.flags&d.Flags.ExplicitlyTracking||(z.flags|=d.Flags.ExplicitlyTracking,r(z,()=>{var y=z.metadata.dependsOn||v;for(const A of y)if("string"!==typeof A||A.includes(".")){y=e.pathToArray(A);for(let B=0,E=x;B<
y.length&&null!=E&&"object"===typeof E;++B)E=p(E,y[B],B!==y.length-1)}else p(x,A,!1)}),z.flags&=~d.Flags.ExplicitlyTracking)}function p(x,z,y){z="?"===z[z.length-1]?z.slice(0,-1):z;if(null!=x.getItemAt||Array.isArray(x)){var A=parseInt(z,10);if(!isNaN(A))return Array.isArray(x)?x[A]:x.getItemAt(A)}if(A=e.getProperties(x)?.properties.get(z))n(A),g(x,A);return y?x[z]:void 0}const l={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},m=[];let t=l,f=!1,q=!1;const v=[];a.initializeDependencyTracking=g;
a.runTracked=u;a.runTrackedNoThrow=r;a.runUntracked=function(x,z){return u(l,x,z)};a.trackAccess=n;a.trackExplicitDependencies=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/tracking/Flags":function(){define(["exports"],function(a){a.Flags=void 0;var b=a.Flags||(a.Flags={});b[b.Dirty=1]="Dirty";b[b.Overriden=2]="Overriden";b[b.Computing=4]="Computing";b[b.NonNullable=8]="NonNullable";b[b.HasDefaultValue=16]="HasDefaultValue";
b[b.DepTrackingInitialized=32]="DepTrackingInitialized";b[b.AutoTracked=64]="AutoTracked";b[b.ExplicitlyTracking=128]="ExplicitlyTracking";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/tracking/ObservationHandle":function(){define(["exports","../../arrayUtils"],function(a,b){let c=function(){function e(d,n){this._observers=d;this._observer=n}e.prototype.remove=function(){b.remove(this._observers,this._observer)};return e}();
a.ObservationHandle=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/Store":function(){define(["exports","../lang","./PropertyOrigin"],function(a,b,c){let e=function(){function d(){this._values=new Map;this.multipleOriginsSupported=!1}var n=d.prototype;n.clone=function(u){const r=new d;this._values.forEach((h,g)=>{u&&u.has(g)||r.set(g,b.clone(h))});return r};n.get=function(u){return this._values.get(u)};n.originOf=function(){return c.OriginId.USER};
n.keys=function(){return[...this._values.keys()]};n.set=function(u,r){this._values.set(u,r)};n.delete=function(u){this._values.delete(u)};n.has=function(u){return this._values.has(u)};n.forEach=function(u){this._values.forEach(u)};return d}();a.Store=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/set":function(){define(["exports","../Error","../has","../Logger","./get"],function(a,b,c,e,d){function n(u,r,h){if(u&&r)if("object"===
typeof r)for(var g of Object.getOwnPropertyNames(r))n(u,g,r[g]);else if(r.includes("."))r=r.split("."),g=r.splice(r.length-1,1)[0],n(d.get(u,r),g,h);else{g=u.__accessor__;if(null!=g&&c("esri-unknown-property-errors")&&null==g.metadatas[r])throw new b("set:unknown-property","setting unknown property '"+r+"' on instance of "+g.host.declaredClass);u[r]=h}}a.set=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/Error":function(){define(["../chunks/_rollupPluginBabelHelpers",
"./lang","./Logger","./Message"],function(a,b,c,e){e=function(d){function n(u,r,h){var g=d.call(this,u,r,h)||this;return a._assertThisInitialized(g)instanceof n?g:new n(u,r,h)}a._inheritsLoose(n,d);n.prototype.toJSON=function(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(u,r)=>{if(r&&"object"===typeof r&&"function"===typeof r.toJSON)return r;try{return b.clone(r)}catch(h){return"[object]"}}))}}catch(u){throw c.getLogger("esri.core.Error").error(u),
u;}return{name:this.name,message:this.message,details:this.details}};n.fromJSON=function(u){return new n(u.name,u.message,u.details)};return n}(e);e.prototype.type="error";return e})},"esri/core/Message":function(){define(["./object"],function(a){function b(c,e){return c.replace(/\$\{([^\s:\}]*)(?::([^\s:\}]+))?\}/g,(d,n)=>{if(""===n)return"$";d=a.getDeepValue(n,e);d=null==d?"":d;if("undefined"===typeof d)throw Error(`could not find key "${n}" in template`);return d.toString()})}return function(){function c(e,
d,n){this.name=e;this.details=n;this instanceof c&&(this.message=(d&&b(d,n))??"")}c.prototype.toString=function(){return"["+this.name+"]: "+this.message};return c}()})},"esri/core/accessorSupport/watch":function(){define("exports ../ArrayPool ../lang ../ReentrantObjectPool ../scheduling ../SetUtils ../uid ./get ./trackingUtils ./utils".split(" "),function(a,b,c,e,d,n,u,r,h,g){function k(w){A.delete(w);A.add(w);B||(B=d.schedule(l))}function p(w){if(!w.removed){var D=w.oldValue,C=w.getValue();w.equals(D,
C)||(w.oldValue=C,w.notify(C,D))}}function l(){let w=10;for(;B&&w--;){B=null;const D=m(),C=y.acquire();for(const F of D){const G=F.uid;p(F);G===F.uid&&F.removed&&C.push(F)}for(const F of A)F.removed&&(C.push(F),A.delete(F));for(const F of C)z.pool.release(F);y.release(C);y.release(D);E.forEach(F=>F())}}function m(){const w=y.acquire();w.length=A.size;let D=0;for(const C of A)w[D]=C,++D;A.clear();return w}function t(w,D,C){let F=g.parse(w,D,C,(G,H,I)=>{let J,K,N=h.reactionDeferred(()=>r.valueOf(G,
H),(U,ba)=>{G.__accessor__.destroyed||J&&J.uid!==K?F.remove():(J||(J=z.acquireUntracked(U,I,ba,G,H),K=J.uid),k(J))});return{remove:g.once(()=>{N.remove();J&&(J.uid!==K||J.removed||(J.removed=!0,k(J)),J=null);F=N=null})}});return F}function f(w,D,C){const F=g.parse(w,D,C,(G,H,I)=>{let J=!1;return h.reaction(()=>r.valueOf(G,H),(K,N)=>{G.__accessor__.destroyed?F.remove():J||(J=!0,c.equals(N,K)||I.call(G,K,N,H,G),J=!1)})});return F}function q(w,D,C){let F,G,H=h.reactionDeferred(w,(I,J)=>{F&&F.uid!==G?
H.remove():(F||(F=z.acquireTracked(I,D,J,C),G=F.uid),k(F))});return{remove:g.once(()=>{H.remove();F&&(F.uid!==G||F.removed||(F.removed=!0,k(F)),F=null);H=null})}}function v(w,D,C){let F=!1;return h.reaction(w,(G,H)=>{F||(F=!0,C(H,G)||D(G,H),F=!1)})}var x;(function(w){w[w.Untracked=0]="Untracked";w[w.Tracked=1]="Tracked"})(x||(x={}));let z=function(){function w(){this.uid=u.generateUID();this.removed=!1;this.equals=this.path=this.target=this.getValue=this.callback=this.oldValue=this.type=null}w.acquireUntracked=
function(C,F,G,H,I){return this.pool.acquire(x.Untracked,C,F,G,H,I,c.equals)};w.acquireTracked=function(C,F,G,H){return this.pool.acquire(x.Tracked,C,F,G,null,null,H)};var D=w.prototype;D.notify=function(C,F){this.type===x.Untracked?this.callback.call(this.target,C,F,this.path,this.target):this.callback.call(null,C,F)};D.acquire=function(C,F,G,H,I,J,K){this.uid=u.generateUID();this.removed=!1;this.type=C;this.oldValue=F;this.callback=G;this.getValue=H;this.target=I;this.path=J;this.equals=K};D.release=
function(){this.target=this.path=this.oldValue=this.callback=this.getValue=null;this.uid=u.generateUID();this.removed=!0};return w}();z.pool=new e.ReentrantObjectPool(z);const y=new b,A=new Set;let B;const E=new Set;a.afterDispatch=function(w){E.add(w);return{remove(){E.delete(w)}}};a.dispatch=l;a.isValueInUse=function(w){return n.someSet(A,D=>D.oldValue===w)};a.removeTarget=function(w){for(const D of A.values())D.target===w&&(D.removed=!0)};a.watch=function(w,D,C,F=!1){return!w.__accessor__||w.__accessor__.destroyed?
{remove(){}}:F?f(w,D,C):t(w,D,C)};a.watchTracked=function(w,D,C=!1,F=c.equalsShallow){return C?v(w,D,F):q(w,D,F)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/ReentrantObjectPool":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","./maybe","./ObjectPool"],function(a,b,c,e){e=function(d){function n(){var r=d.apply(this,arguments)||this;r._set=new Set;return r}b._inheritsLoose(n,d);var u=n.prototype;u.destroy=function(){d.prototype.destroy.call(this);
this._set=c.nullifyNonNullableForDispose(this._set)};u.acquire=function(...r){r=d.prototype.acquire.call(this,...r);this._set.delete(r);return r};u.release=function(r){r&&!this._set.has(r)&&(d.prototype.release.call(this,r),this._set.add(r))};u._dispose=function(r){this._set.delete(r);d.prototype._dispose.call(this,r)};return n}(e);a.ReentrantObjectPool=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/scheduling":function(){define("exports ./maybe ./nextTick ./PerformanceSampler ./PooledArray ./promiseUtils ./time".split(" "),
function(a,b,c,e,d,n,u){function r(C){C=new m(C);x.push(C);A.willDispatch||(A.willDispatch=!0,c.nextTick(p));return C}function h(C){C=new l(C);z.push(C);null==B&&(t=performance.now(),B=requestAnimationFrame(g));return new y(C)}function g(){const C=performance.now();B=null;B=0<z.length?requestAnimationFrame(g):null;A.executeFrameTasks(C)}function k(){z.forAll(C=>{C.removed&&E.push(C)});z.removeUnorderedMany(E.data,E.length);E.clear()}function p(){for(;x.length;){const C=b.assumeNonNull(x.shift());
C.isActive&&C.callback()}A.willDispatch=!1}let l=function(C){this.phases=C;this.paused=!1;this.ticks=-1;this.removed=!1},m=function(){function C(F){this.callback=F;this.isActive=!0}C.prototype.remove=function(){this.isActive=!1};return C}(),t=0,f=0;const q={time:u.Milliseconds(0),deltaTime:u.Milliseconds(0),elapsedFrameTime:u.Milliseconds(0),frameDuration:u.Milliseconds(0)},v="prepare preRender render postRender update finish".split(" "),x=[],z=new d;let y=function(){function C(G){this._task=G}var F=
C.prototype;F.remove=function(){this._task.removed=!0};F.pause=function(){this._task.paused=!0};F.resume=function(){this._task.paused=!1};return C}();const A={frameTasks:z,willDispatch:!1,clearFrameTasks:function(C=!1){z.forAll(F=>{F.removed=!0});C&&k()},dispatch:p,executeFrameTasks:function(C){const F=u.Milliseconds(C-t);t=C;const G=0<f?f:1E3/60,H=Math.max(0,F-G);for(let I=0;I<v.length;I++){const J=performance.now(),K=v[I];z.forAll(N=>{N.paused||N.removed||(0===I&&N.ticks++,N.phases[K]&&(q.time=
C,q.deltaTime=0===N.ticks?u.Milliseconds(0):F,q.elapsedFrameTime=u.Milliseconds(performance.now()-C),q.frameDuration=u.Milliseconds(G-H),N.phases[K]?.call(N,q)))});w[I].record(performance.now()-J)}k();D.record(performance.now()-C)}};let B=null;const E=new d,w=v.map(C=>new e(C)),D=new e("total");a.FrameTaskHandle=y;a.addFrameTask=h;a.debug=A;a.performanceInfo=w;a.performanceTotal=D;a.schedule=r;a.setFrameDuration=function(C){f=Math.max(0,C)};a.waitAnimationFrame=function(){const C=n.createResolver(),
F=h({postRender:()=>{F.remove();r(C)}});return C.promise};a.waitTicks=function(C=1,F){const G=n.createResolver(),H=()=>{n.isAborted(F)?G.reject(n.createAbortError()):0===C?G():(--C,c.nextTick(()=>H()))};H();return G.promise};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/nextTick":function(){define(["exports"],function(a){const b=[];a.nextTick=function(c){b.push(c);1===b.length&&queueMicrotask(()=>{const e=b.slice();b.length=0;for(const d of e)d()})};
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/PerformanceSampler":function(){define(["../chunks/_rollupPluginBabelHelpers","./maybe"],function(a,b){return function(){function c(e,d=30){this.name=e;this._counter=0;this._samples=Array(d)}c.prototype.record=function(e){b.isSome(e)&&(this._samples[++this._counter%this._samples.length]=e)};a._createClass(c,[{key:"median",get:function(){return this._samples.slice().sort((e,d)=>e-d)[Math.floor(this._samples.length/
2)]}},{key:"average",get:function(){return this._samples.reduce((e,d)=>e+d,0)/this._samples.length}},{key:"last",get:function(){return this._samples[this._counter%this._samples.length]}}]);return c}()})},"esri/core/PooledArray":function(){define(["../chunks/_rollupPluginBabelHelpers","./arrayUtils","./HeapSort"],function(a,b,c){function e(d){d.data.length>1.5*d.length&&(d.data.length=Math.floor(1.1*d.length))}return function(){function d(u){this.data=[];this._length=0;this._allocator=void 0;this._deallocator=
()=>null;this._shrink=()=>{};this._hint=new b.PositionHint;u&&(u.initialSize&&(this.data=Array(u.initialSize)),u.allocator&&(this._allocator=u.allocator),void 0!==u.deallocator&&(this._deallocator=u.deallocator),u.shrink&&(this._shrink=()=>e(this)))}var n=d.prototype;n.toArray=function(){return this.data.slice(0,this.length)};n.filter=function(u){const r=[];for(let h=0;h<this._length;h++){const g=this.data[h];u(g)&&r.push(g)}return r};n.getItemAt=function(u){if(!(0>u||u>=this._length))return this.data[u]};
n.includes=function(u,r){u=this.data.indexOf(u,r);return-1!==u&&u<this.length};n.clear=function(){this.length=0};n.prune=function(){this.clear();this.data=[]};n.push=function(u){this.data[this._length++]=u};n.pushArray=function(u,r=u.length){for(let h=0;h<r;h++)this.data[this._length++]=u[h]};n.fill=function(u,r){for(let h=0;h<r;h++)this.data[this._length++]=u};n.pushNew=function(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const u=this.data[this._length];++this._length;
return u};n.unshift=function(u){this.data.unshift(u);this._length++;e(this)};n.pop=function(){if(0!==this.length){var u=this.data[this.length-1];--this.length;this._shrink();return u}};n.remove=function(u){const r=b.indexOf(this.data,u,this.length,this._hint);if(-1!==r)return this.data.splice(r,1),--this.length,u};n.removeUnordered=function(u){return this.removeUnorderedIndex(b.indexOf(this.data,u,this.length,this._hint))};n.removeUnorderedIndex=function(u){if(!(u>=this.length||0>u))return this.swapElements(u,
this.length-1),this.pop()};n.removeUnorderedMany=function(u,r=u.length,h){this.length=b.removeUnorderedMany(this.data,u,this.length,r,this._hint,h);this._shrink()};n.front=function(){if(0!==this.length)return this.data[0]};n.back=function(){if(0!==this.length)return this.data[this.length-1]};n.swapElements=function(u,r){if(!(u>=this.length||r>=this.length||u===r)){var h=this.data[u];this.data[u]=this.data[r];this.data[r]=h}};n.sort=function(u){c.sort(this.data,0,this.length,u)};n.iterableSort=function(u){return c.iterableSort(this.data,
0,this.length,u)};n.some=function(u,r){for(let h=0;h<this.length;++h)if(u.call(r,this.data[h],h,this.data))return!0;return!1};n.filterInPlace=function(u,r){let h=0;for(let g=0;g<this._length;++g){const k=this.data[g];u.call(r,k,g,this.data)&&(this.data[g]=this.data[h],this.data[h]=k,h++)}if(this._deallocator)for(u=h;u<this._length;u++)this.data[u]=this._deallocator(this.data[u]);this._length=h;this._shrink();return this};n.forAll=function(u,r){const h=this.length,g=this.data;for(let k=0;k<h;++k)u.call(r,
g[k],k,g)};n.forEach=function(u,r){for(let h=0;h<this.length;++h)u.call(r,this.data[h],h,this.data)};n.map=function(u,r){const h=Array(this.length);for(let g=0;g<this.length;++g)h[g]=u.call(r,this.data[g],g,this.data);return h};n.reduce=function(u,r){for(let h=0;h<this.length;++h)r=u(r,this.data[h],h,this.data);return r};n.has=function(u){const r=this.length,h=this.data;for(let g=0;g<r;++g)if(h[g]===u)return!0;return!1};a._createClass(d,[{key:"length",get:function(){return this._length},set:function(u){if(u>
this._length)if(this._allocator)for(;this._length<u;)this.data[this._length++]=this._allocator(this.data[this._length]);else this._length=u;else{if(this._deallocator)for(let r=u;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=u;this._shrink()}}}]);return d}()})},"esri/core/HeapSort":function(){define(function(){var a;(function(b){const c=(d,n,u,r)=>{let h=n;const g=u>>>1,k=d[h-1];for(;n<=g;){n=h<<1;n<u&&0>r(d[n-1],d[n])&&++n;const p=d[n-1];if(0>=r(p,k))break;d[h-1]=p;
h=n}d[h-1]=k},e=(d,n)=>d<n?-1:d>n?1:0;b.sort=function(d,n,u,r){void 0===n&&(n=0);void 0===u&&(u=d.length);void 0===r&&(r=e);for(var h=u>>>1;h>n;h--)c(d,h,u,r);h=n+1;for(--u;u>n;u--){const g=d[n];d[n]=d[u];d[u]=g;c(d,h,u,r)}};b.iterableSort=function*(d,n,u,r){void 0===n&&(n=0);void 0===u&&(u=d.length);void 0===r&&(r=e);for(var h=u>>>1;h>n;h--)c(d,h,u,r),yield;h=n+1;for(--u;u>n;u--){const g=d[n];d[n]=d[u];d[u]=g;c(d,h,u,r);yield}}})(a||(a={}));return a})},"esri/core/promiseUtils":function(){define("exports ../chunks/_rollupPluginBabelHelpers ./clock ./deprecate ./Error ./events ./Logger ./maybe".split(" "),
function(a,b,c,e,d,n,u,r){function h(){h=b._asyncToGenerator(function*(D,C){const F=D.slice(),G=yield Promise.all(D.map((H,I)=>C(H,I)));return F.filter((H,I)=>G[I])});return h.apply(this,arguments)}function g(D="Aborted"){return new d("AbortError",D)}function k(D,C="Aborted"){if(l(D))throw g(C);}function p(D){return r.isSome(D)?"aborted"in D?D:D.signal:D}function l(D){D=p(D);return r.isSome(D)&&D.aborted}function m(D,C){D=p(D);if(!r.isNone(D))if(D.aborted)C();else return n.once(D,"abort",()=>C())}
function t(D){return"AbortError"===D?.name}function f(){f=b._asyncToGenerator(function*(D){try{return yield D}catch(C){if(!t(C))throw C;}});return f.apply(this,arguments)}function q(){q=b._asyncToGenerator(function*(D,C=u.getLogger("esri")){try{return yield D}catch(F){t(F)||C.error(F)}});return q.apply(this,arguments)}function v(){let D=null;const C=new Promise((F,G)=>{D={promise:void 0,resolve:F,reject:G}});D.promise=C;return D}function x(D){return z.apply(this,arguments)}function z(){z=b._asyncToGenerator(function*(D){if(D){if("function"!==
typeof D.forEach){const C=Object.keys(D),F=C.map(I=>D[I]),G=yield x(F),H={};C.map((I,J)=>H[I]=G[J]);return H}return new Promise(C=>{const F=[];let G=D.length;0===G&&C(F);D.forEach(H=>{const I={promise:H||Promise.resolve(H)};F.push(I);I.promise.then(J=>{I.value=J}).catch(J=>{I.error=J}).then(()=>{--G;0===G&&C(F)})})})}});return z.apply(this,arguments)}function y(){y=b._asyncToGenerator(function*(D){return(yield x(D)).filter(C=>!!C.value).map(C=>C.value)});return y.apply(this,arguments)}function A(D,
C,F){const G=new AbortController;m(F,()=>G.abort());return new Promise((H,I)=>{let J=setTimeout(()=>{J=0;H(C)},D);m(G,()=>{J&&(clearTimeout(J),I(g()))})})}function B(D){return D&&"function"===typeof D.then}function E(D){return B(D)?D:Promise.resolve(D)}function w(){w=b._asyncToGenerator(function*(D){yield Promise.resolve();k(D)});return w.apply(this,arguments)}a.after=A;a.always=function(D,C){return D.then(C,C)};a.create=function(D){e.deprecatedFunction(u.getLogger("esri.core.promiseUtils"),"create",
{moduleName:"esri.core.promiseUtils",replacement:"new Promise()",version:"4.24"});return new Promise((C,F)=>{try{D(C,F)}catch(G){Promise.resolve().then(()=>F(G))}})};a.createAbortError=g;a.createDeferred=v;a.createResolver=function(){let D,C;const F=new Promise((H,I)=>{D=H;C=I}),G=H=>{D(H)};G.resolve=H=>D(H);G.reject=H=>C(H);G.timeout=(H,I)=>c.clock.setTimeout(()=>G.reject(I),H);G.promise=F;return G};a.debounce=function(D,C=-1){let F,G,H,I,J=null;const K=(...N)=>{if(F){G=N;I&&I.reject(g());I=v();
N=r.assumeNonNull(I.promise);if(J){var U=J;J=null;U.abort()}return N}H=I||v();I=null;if(0<C){const ka=new AbortController,P=F=E(D(...N,ka.signal));A(C).then(()=>{F===P&&(I?ka.abort():J=ka)})}else F=1,F=E(D(...N));N=()=>{const ka=G;G=H=F=J=null;null!=ka&&K(...ka)};U=F;const ba=H;U.then(N,N);U.then(ba.resolve,ba.reject);return r.assumeNonNull(ba.promise)};return K};a.eachAlways=x;a.eachAlwaysValues=function(D){return y.apply(this,arguments)};a.filter=function(D,C){return h.apply(this,arguments)};a.ignoreAbortErrors=
function(D){return f.apply(this,arguments)};a.isAbortError=t;a.isAborted=l;a.isPromiseLike=B;a.logOnError=function(D){return q.apply(this,arguments)};a.onAbort=m;a.onAbortOrThrow=function(D,C){D=p(D);if(!r.isNone(D))return k(D),n.once(D,"abort",()=>C(g()))};a.throwIfAbortError=function(D){if(t(D))throw D;};a.throwIfAborted=k;a.throwIfNotAbortError=function(D){if(!t(D))throw D;};a.timeout=function(D,C,F,G){const H=F&&"abort"in F?F:null;null!=G||H||(G=F);let I=setTimeout(()=>{I=0;H&&H.abort()},C);const J=
()=>G||new d("promiseUtils:timeout","The wrapped promise did not resolve within "+C+" ms");return D.then(K=>{if(0===I)throw J();clearTimeout(I);return K},K=>{clearTimeout(I);throw 0===I?J():K;})};a.waitTick=function(D){return w.apply(this,arguments)};a.when=E;a.whenOrAbort=function(D,C){const F=p(C);return r.isNone(F)?D:new Promise((G,H)=>{let I=m(C,()=>H(g()));const J=()=>I=r.removeMaybe(I);D.then(J,J);D.then(G,H)})};a.whenOrTimeout=function(D,C,F){return Promise.race([D,A(C).then(()=>{throw new d("timeout",
`Did not resolve within ${C} milliseconds (${F??"timeout"})`);})])};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/clock":function(){define(["exports"],function(a){function b(e){return{setTimeout:(d,n)=>{const u=e.setTimeout(d,n);return{remove:()=>e.clearTimeout(u)}}}}const c=b(globalThis);a.clock=c;a.wrap=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/deprecate":function(){define(["exports",
"./has"],function(a,b){function c(n,u,r=!1){r&&d.has(u)||(r&&d.add(u),n.warn(`\ud83d\uded1 DEPRECATED - ${u}`))}function e(n,u,r={}){if(b("esri-deprecation-warnings")){const {replacement:h,version:g,see:k,warnOnce:p}=r;h&&(u+=`\n\t\ud83d\udee0\ufe0f Replacement: ${h}`);g&&(u+=`\n\t\u2699\ufe0f Version: ${g}`);k&&(u+=`\n\t\ud83d\udd17 See ${k} for more details.`);c(n,u,p)}}const d=new Set;a.deprecated=e;a.deprecatedFunction=function(n,u,r={}){if(b("esri-deprecation-warnings")){const {moduleName:h}=
r;e(n,`Function: ${(h?h+"::":"")+u+"()"}`,r)}};a.deprecatedModule=function(n,u,r={}){b("esri-deprecation-warnings")&&e(n,`Module: ${u}`,r)};a.deprecatedProperty=function(n,u,r={}){if(b("esri-deprecation-warnings")){const {moduleName:h}=r;e(n,`Property: ${(h?h+"::":"")+u}`,r)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/events":function(){define(["exports"],function(a){function b(d){return d&&("function"===typeof d.on||"function"===typeof d.addEventListener)}
function c(d,n,u){if(!b(d))throw new TypeError("target is not a Evented or EventTarget object");if("on"in d)return d.on(n,u);if(Array.isArray(n)){const r=n.slice();for(const h of r)d.addEventListener(h,u);return{remove(){for(const h of r)d.removeEventListener(h,u)}}}d.addEventListener(n,u);return{remove(){d.removeEventListener(n,u)}}}const e={Win:"Meta",Scroll:"ScrollLock",Spacebar:" ",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete",Apps:"ContextMenu",Esc:"Escape",Multiply:"*",
Add:"+",Subtract:"-",Decimal:".",Divide:"/"};a.eventKey=function({key:d}){return e[d]||d};a.ieKeyNormalizationMap=e;a.isEventTarget=b;a.on=c;a.once=function(d,n,u){if(!b(d))throw new TypeError("target is not a Evented or EventTarget object");if("once"in d)return d.once(n,u);const r=c(d,n,h=>{r.remove();u.call(d,h)});return{remove(){r.remove()}}};a.pausable=function(d,n,u){let r=!1;const h=c(d,n,g=>{r||u.call(d,g)});return{resume(){r=!1},pause(){r=!0},remove(){h.remove()}}};Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/time":function(){define(["exports"],function(a){a.Milliseconds=function(b){return b};a.Seconds=function(b){return b};a.millisecondsFromSeconds=function(b){return 1E3*b};a.secondsFromMilliseconds=function(b){return.001*b};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/SetUtils":function(){define(["exports","./maybe"],function(a,b){a.someSet=function(c,e){for(const d of c.entries())if(e(d[0]))return!0;
return!1};a.union=function(c,e){const d=new Set;b.isSome(c)&&c.forEach(n=>d.add(n));b.isSome(e)&&e.forEach(n=>d.add(n));return d};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/uid":function(){define(["exports"],function(a){let b=0;a.NullUID=0;a.generateUID=function(){return++b};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/trackingUtils":function(){define(["exports","./tracking",
"./tracking/SimpleTrackingTarget"],function(a,b,c){let e=!1;const d=[];a.autorun=function(n){function u(){if(r&&!h)if(e)d.includes(u)||d.unshift(u);else for(r.clear(),h=e=!0,b.runTracked(r,n),e=h=!1;d.length;)d.pop()()}let r=new c.SimpleTrackingTarget(u),h=!1;h=!0;b.runTracked(r,n);h=!1;return{remove:function(){r&&(r.destroy(),r=null)}}};a.reaction=function(n,u){function r(){if(h&&!k)if(e)d.includes(r)||d.unshift(r);else{var p=g;h.clear();k=e=!0;g=b.runTracked(h,n);e=k=!1;for(u(g,p);d.length;)d.pop()()}}
let h=new c.SimpleTrackingTarget(r),g=null,k=!1;k=!0;g=b.runTracked(h,n);k=!1;return{remove:function(){h&&(h.destroy(),g=h=null)}}};a.reactionDeferred=function(n,u){function r(){if(!h)return null;h.clear();return g=b.runTracked(h,n)}let h=new c.SimpleTrackingTarget(function(){u(g,r)}),g=null;r();return{remove:function(){h&&(h.destroy(),h=null);g=null}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/tracking/SimpleTrackingTarget":function(){define(["exports"],
function(a){let b=function(){function c(d){this._notify=d;this._accessed=[];this._handles=[];this._invalidCount=0}var e=c.prototype;e.destroy=function(){this._accessed.length=0;this.clear()};e.onInvalidated=function(){this._invalidCount++};e.onCommitted=function(){const d=this._invalidCount;1===d?(this._invalidCount=0,this._notify()):this._invalidCount=0<d?d-1:0};e.onObservableAccessed=function(d){this._accessed.includes(d)||this._accessed.push(d)};e.onTrackingEnd=function(){const d=this._handles,
n=this._accessed;for(let u=0;u<n.length;++u)d.push(n[u].observe(this));n.length=0};e.clear=function(){const d=this._handles;for(let n=0;n<d.length;++n)d[n].remove();d.length=0};return c}();a.SimpleTrackingTarget=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/decorators/property":function(){define("exports ../../Logger ../ensureType ../get ../metadata ../set".split(" "),function(a,b,c,e,d,n){function u(h){let g=0;var k=h;if(c.isLongFormType(h))return c.ensureLongFormType(h);
for(;Array.isArray(k)&&1===k.length&&"string"!==typeof k[0]&&"number"!==typeof k[0];)k=k[0],g++;return c.isOneOf(k)?0===g?c.ensureOneOf(k):c.ensureNArrayTyped(c.ensureOneOf(k),g):1===g?c.ensureArray(k):1<g?c.ensureNArray(k,g):h.from?h.from:c.ensureType(h)}function r(h,g){return k=>{k=+h(k);null!=g.step&&(k=Math.round(k/g.step)*g.step);null!=g.min&&(k=Math.max(g.min,k));null!=g.max&&(k=Math.min(g.max,k));return k}}a.ensureRange=r;a.property=function(h={}){return(g,k)=>{if(g===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${g.name}.${k}. Accessor does not support static properties.`);
var p=Object.getOwnPropertyDescriptor(g,k);const l=d.getOwnPropertyMetadata(g,k);p&&(p.get||p.set?(l.get=p.get||l.get,l.set=p.set||l.set):"value"in p&&("value"in h&&b.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${k}" on "${g.constructor.name}" already defined in the metadata`,h),l.value=h.value=p.value));null!=h.readOnly&&(l.readOnly=h.readOnly);if(g=h.aliasOf){const m="string"===typeof g?g:g.source;g="string"===typeof g?null:!0===g.overridable;
let t;l.dependsOn=[m];l.get=function(){let f=e.get(this,m);if("function"===typeof f){t||(t=m.split(".").slice(0,-1).join("."));const q=e.get(this,t);q&&(f=f.bind(q))}return f};l.readOnly||(l.set=g?function(f){this._override(k,f)}:function(f){n.set(this,m,f)})}g=h.type;p=h.types;l.cast||(g?l.cast=u(g):p&&(Array.isArray(p)?l.cast=c.ensureArrayTyped(c.ensureOneOfType(p[0])):l.cast=c.ensureOneOfType(p)));d.mergeProperty(l,h);h.range&&(l.cast=r(l.cast,h.range))}};a.propertyJSONMeta=function(h,g,k){h=d.getOwnPropertyMetadata(h,
k);h.json||(h.json={});h=h.json;void 0!==g&&(h.origins||(h.origins={}),h.origins[g]||(h.origins[g]={}),h=h.origins[g]);return h};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/ensureType":function(){define(["exports","../has","../Logger","../MapUtils"],function(a,b,c,e){function d(I){return null==I?I:new Date(I)}function n(I){return null==I?I:!!I}function u(I){return null==I?I:I.toString()}function r(I){if(null==I)return I;I=
parseFloat(I);return isNaN(I)?0:I}function h(I){return null==I?I:Math.round(parseFloat(I))}function g(I){return I&&I.constructor&&void 0!==I.constructor.__accessorMetadata__}function k(I,J){return null!=J&&I&&!(J instanceof I)}function p(I){return I&&I.Type?"function"===typeof I.Type?I.Type:I.Type.base:null}function l(I,J){var K;(K=!J||!J.constructor)||(K=J.constructor,K=!(K&&"isCollection"in K));if(K)return m(I,J)?J:new I(J);K=p(I.prototype.itemType);const N=p(J.constructor.prototype.itemType);if(!K)return J;
if(!N)return new I(J);if(K===N)return J;if(K.prototype.isPrototypeOf(N.prototype))return new I(J);m(I,J);return J}function m(I,J){return g(J)?(F.error("Accessor#set","Assigning an instance of '"+(J.declaredClass||"unknown")+"' which is not a subclass of '"+f(I)+"'"),!0):!1}function t(I,J){return null==J?J:I&&"isCollection"in I?l(I,J):k(I,J)?m(I,J)?J:new I(J):J}function f(I){return I&&I.prototype&&I.prototype.declaredClass||"unknown"}function q(I){switch(I){case Number:return r;case H:return h;case Boolean:return n;
case String:return u;case Date:return d;default:return e.getOrCreateMapValue(G,I,()=>t.bind(null,I))}}function v(I,J){const K=q(I);return 1===arguments.length?K:K(J)}function x(I,J,K){return 1===arguments.length?x.bind(null,I):J?Array.isArray(J)?J.map(N=>I(N,K)):[I(J,K)]:J}function z(I,J,K){return 0!==J&&Array.isArray(K)?K.map(N=>z(I,J-1,N)):I(K)}function y(I,J,K){if(2===arguments.length)return y.bind(null,I,J);if(!K)return K;K=z(I,J,K);let N=J;for(var U=K;0<N&&Array.isArray(U);)N--,U=U[0];if(void 0!==
U)for(U=0;U<N;U++)K=[K];return K}function A(I,J){if(2===arguments.length)return A(I).call(null,J);const K=new Set,N=I.filter(P=>"function"!==typeof P),U=I.filter(P=>"function"===typeof P);for(const P of I)"string"!==typeof P&&"number"!==typeof P||K.add(P);let ba=null,ka=null;return(P,V)=>{if(null==P)return P;const ca=typeof P,ra="string"===ca||"number"===ca;if(ra&&(K.has(P)||U.some(ta=>"string"===ca&&ta===String||"number"===ca&&ta===Number))||"object"===ca&&U.some(ta=>!k(P,ta)))return P;ra&&N.length?
(ba||(ba=N.map(ta=>"string"===typeof ta?`'${ta}'`:`${ta}`).join(", ")),F.error("Accessor#set",`'${P}' is not a valid value for this property, only the following values are valid: ${ba}`)):"object"===typeof P&&U.length?(ka||(ka=U.map(ta=>f(ta)).join(", ")),F.error("Accessor#set",`'${P}' is not a valid value for this property, value must be one of ${ka}`)):F.error("Accessor#set",`'${P}' is not a valid value for this property`);V&&(V.valid=!1);return null}}function B(I,J){if(2===arguments.length)return B(I).call(null,
J);const K={},N=[],U=[];for(const ka in I.typeMap){const P=I.typeMap[ka];K[ka]=v(P);N.push(f(P));U.push(ka)}const ba="string"===typeof I.key?ka=>ka[I.key]:I.key;return ka=>{if(I.base&&!k(I.base,ka)||null==ka)return ka;var P=ba(ka)||I.defaultKeyValue;const V=K[P];if(!V)return F.error("Accessor#set",`Invalid property value, value needs to be one of ${`'${N.join("', '")}'`}, or a plain object that can autocast (having .type = ${`'${U.join("', '")}'`})`),null;if(!k(I.typeMap[P],ka))return ka;if("string"===
typeof I.key&&!g(ka)){P={};for(const ca in ka)ca!==I.key&&(P[ca]=ka[ca]);return V(P)}return V(ka)}}function E(I){switch(I.type){case "native":return v(I.value);case "array":return x(E(I.value));case "one-of":return w(I);default:return null}}function w(I){let J=null;return(K,N)=>{if(C(K,I))return K;null==J&&(J=D(I));F.error("Accessor#set",`Invalid property value, value needs to be of type ${J}`);N&&(N.valid=!1);return null}}function D(I){switch(I.type){case "native":switch(I.value){case Number:return"number";
case String:return"string";case Boolean:return"boolean";case H:return"integer";case Date:return"date";default:return f(I.value)}case "array":return`array of ${D(I.value)}`;case "one-of":return I=I.values.map(J=>D(J)),`one of ${I.slice(0,I.length-1)} or ${I[I.length-1]}`}return"unknown"}function C(I,J){if(null==I)return!0;switch(J.type){case "native":switch(J.value){case Number:case H:return"number"===typeof I;case Boolean:return"boolean"===typeof I;case String:return"string"===typeof I}return I instanceof
J.value;case "array":return Array.isArray(I)?!I.some(K=>!C(K,J.value)):!1;case "one-of":return J.values.some(K=>C(I,K))}}const F=c.getLogger("esri.core.accessorSupport.ensureTypes"),G=new WeakMap;let H=function(){};a.Integer=H;a.ensureArray=function(I,J){return 1===arguments.length?x(v.bind(null,I)):x(v.bind(null,I),J)};a.ensureArrayTyped=x;a.ensureBoolean=n;a.ensureClass=t;a.ensureDate=d;a.ensureInteger=h;a.ensureLongFormType=E;a.ensureNArray=function(I,J,K){return 2===arguments.length?y(v.bind(null,
I),J):y(v.bind(null,I),J,K)};a.ensureNArrayTyped=y;a.ensureNumber=r;a.ensureOneOf=A;a.ensureOneOfType=B;a.ensureString=u;a.ensureType=v;a.isClassedType=g;a.isLongFormType=function(I){if(!(I&&"type"in I))return!1;switch(I.type){case "native":case "array":case "one-of":return!0}return!1};a.isOneOf=function(I){return Array.isArray(I)?!I.some(J=>{J=typeof J;return!("string"===J||"number"===J||"function"===J&&1<I.length)}):!1};a.requiresType=k;a.types={native(I){return{type:"native",value:I}},array(I){return{type:"array",
value:I}},oneOf(I){return{type:"one-of",values:I}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/MapUtils":function(){define(["exports"],function(a){a.findInMap=function(b,c){for(const [e,d]of b)if(c(d,e))return d;return null};a.first=function(b){b=b.values().next();return!0!==b.done?b.value:null};a.getOrCreateMapValue=function(b,c,e){const d=b.get(c);if(void 0!==d)return d;e=e();b.set(c,e);return e};a.someMap=function(b,c){for(const [e,d]of b)if(c(d,
e))return!0;return!1};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/decorators/subclass":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../has ../interfaces ../metadata ../tracking ../extensions/serializableProperty".split(" "),function(a,b,c,e,d,n,u){function r(p,l){return null==l.get?function(){const m=this.__accessor__.properties.get(p);if(void 0!==m){n.trackAccess(m);var t=this.__accessor__.store;
return t.has(p)?t.get(p):m.metadata.value}}:function(){const m=this.__accessor__.properties.get(p);if(void 0!==m)return m.getComputed()}}function h(p){const l=d.getOwnClassMetadata(p.prototype).properties,m={};for(const t of Object.getOwnPropertyNames(l)){const f=l[t];u.processPrototypePropertyMetadata(f);m[t]={enumerable:!0,configurable:!0,get:r(t,f),set(q){const v=this.__accessor__;if(void 0===v)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:q});else if(!Object.isFrozen(this)){if(v.initialized&&
f.readOnly)throw new TypeError(`[accessor] cannot assign to read-only property '${t}' of ${this.declaredClass}`);if(v.lifecycle===e.Lifecycle.CONSTRUCTED&&f.constructOnly)throw new TypeError(`[accessor] cannot assign to construct-only property '${t}' of ${this.declaredClass}`);v.set(t,q)}}}}Object.defineProperties(p.prototype,m)}const g=new Set,k=new Set;a.finalizeClass=h;a.subclass=function(p){return l=>{l.prototype.declaredClass=p;h(l);const m=[],t=[];for(var f=l.prototype;f;)f.hasOwnProperty("initialize")&&
!g.has(f.initialize)&&(g.add(f.initialize),m.push(f.initialize)),f.hasOwnProperty("destroy")&&!k.has(f.destroy)&&(k.add(f.destroy),t.push(f.destroy)),f=Object.getPrototypeOf(f);g.clear();k.clear();f=function(q){function v(...x){var z=q.call(this,...x)||this;if(z.constructor===v&&"function"===typeof z.postscript){m.length&&Object.defineProperty(b._assertThisInitialized(z),"initialize",{enumerable:!1,configurable:!0,value(){for(let y=m.length-1;0<=y;y--)m[y].call(this)}});if(t.length){let y=!1;Object.defineProperty(b._assertThisInitialized(z),
"destroy",{enumerable:!1,configurable:!0,value(){if(!y){y=!0;for(let A=0;A<t.length;A++)t[A].call(this)}}})}z.postscript(...x)}return z}b._inheritsLoose(v,q);return v}(l);f.__accessorMetadata__=d.getOwnClassMetadata(l.prototype);f.prototype.declaredClass=p;return f}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/extensions/serializableProperty":function(){define("exports ../ensureType ./serializableProperty/originAliases ./serializableProperty/reader ./serializableProperty/shorthands ./serializableProperty/writer".split(" "),
function(a,b,c,e,d,n){function u(g,k,p){let l=g&&g.json;g&&g.json&&g.json.origins&&p&&(g=p.origin&&g.json.origins[p.origin])&&("any"===k||k in g)&&(l=g);return l}function r(g){if(g.type){var k=0;for(g=g.type;Array.isArray(g)&&!b.isOneOf(g);)g=g[0],k++;return{type:g,ndimArray:k}}}function h(g){if(g.types){var k=0;for(g=g.types;Array.isArray(g);)g=g[0],k++;return{types:g,ndimArray:k}}}a.originSpecificPropertyDefinition=u;a.originSpecificReadPropertyDefinition=function(g,k){return u(g,"read",k)};a.originSpecificWritePropertyDefinition=
function(g,k){return u(g,"write",k)};a.processPrototypePropertyMetadata=function(g){if(d.process(g)){c.process(g);var k=g.json.types?h(g.json):g.type?r(g):h(g);if(g.json.origins)for(const l in g.json.origins){const m=g.json.origins[l];if(m.types){var p=m;p=p.type?r(p):h(p)}else p=k;e.create(p,m,!1);m.types&&!m.write&&g.json.write&&g.json.write.enabled&&(m.write={...g.json.write});n.create(p,m)}e.create(k,g.json,!0);n.create(k,g.json)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/core/accessorSupport/extensions/serializableProperty/originAliases":function(){define(["exports"],function(a){a.process=function(b){if(b.json&&b.json.origins){const c=b.json.origins;b={"web-document":["web-scene","web-map"]};for(const e in b)if(c[e]){const d=c[e];b[e].forEach(n=>{c[n]=d});delete c[e]}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/extensions/serializableProperty/reader":function(){define("exports ../../../Logger ../../../object ../../../Warning ../../metadata ./type".split(" "),
function(a,b,c,e,d,n){function u(v){var x=v.ndimArray??0;if(1<x)return k(v);if(1===x)return p(v);if("type"in v&&l(v.type)){x=v.type.prototype?.itemType?.Type;const z=p("function"===typeof x?{type:x}:{types:x});return(y,A,B)=>(y=z(y,A,B))?new v.type(y):y}return r(v)}function r(v){return"type"in v?h(v.type):f(v.types)}function h(v){return v.prototype.read?(x,z,y)=>{if(null==x)return x;z=typeof x;if("object"!==z)q.error(`Expected JSON value of type 'object' to deserialize type '${v.prototype.declaredClass}', but got '${z}'`);
else return z=new v,z.read(x,y),z}:v.fromJSON}function g(v,x,z,y){return 0!==y&&Array.isArray(x)?x.map(A=>g(v,A,z,y-1)):v(x,void 0,z)}function k(v){const x=r(v),z=g.bind(null,x),y=v.ndimArray??0;return(A,B,E)=>{if(null==A)return A;A=z(A,E,y);B=y;for(E=A;0<B&&Array.isArray(E);)B--,E=E[0];if(void 0!==E)for(E=0;E<B;E++)A=[A];return A}}function p(v){const x=r(v);return(z,y,A)=>{if(null==z)return z;if(Array.isArray(z)){y=[];for(const B of z)z=x(B,void 0,A),void 0!==z&&y.push(z);return y}A=x(z,void 0,A);
return void 0!==A?[A]:void 0}}function l(v){return n.isCollection(v)?(v=v.prototype.itemType)&&v.Type?"function"===typeof v.Type?m(v.Type):t(v.Type):!1:!1}function m(v){return Array.isArray(v)?!1:!!v&&v.prototype&&("read"in v.prototype||"fromJSON"in v||l(v))}function t(v){for(const x in v.typeMap)if(!m(v.typeMap[x]))return!1;return!0}function f(v){let x=null;const z=v.errorContext??"type";return(y,A,B)=>{if(null==y)return y;A=typeof y;if("object"!==A)q.error(`Expected JSON value of type 'object' to deserialize, but got '${A}'`);
else{if(!x){A={};for(var E in v.typeMap){const C=v.typeMap[E];var w=d.getOwnClassMetadata(C.prototype);if("function"===typeof v.key)continue;w=w.properties[v.key];if(!w)continue;w.json?.type&&Array.isArray(w.json.type)&&1===w.json.type.length&&"string"===typeof w.json.type[0]&&(A[w.json.type[0]]=C);w=w.json?.write;if(!w||!w.writer){A[E]=C;continue}var D=w.target;D="string"===typeof D?D:v.key;const F={};w.writer(E,F,D);F[D]&&(A[F[D]]=C)}x=A}E=v.key;if("string"===typeof E){if(A=(E=y[E])?x[E]:v.defaultKeyValue?
v.typeMap[v.defaultKeyValue]:void 0)return E=new A,E.read(y,B),E;E=`Type '${E||"unknown"}' is not supported`;B&&B.messages&&y&&B.messages.push(new e(`${z}:unsupported`,E,{definition:y,context:B}));q.error(E)}}}}const q=b.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");a.create=function(v,x,z){v&&(z||x.read)&&!x.read?.reader&&!1!==x.read?.enabled&&(z="types"in v?t(v.types):m(v.type),z&&c.setDeepValue("read.reader",u(v),x))};a.createTypeReader=u;Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/Warning":function(){define(["../chunks/_rollupPluginBabelHelpers","./Message"],function(a,b){b=function(c){function e(d,n,u){var r=c.call(this,d,n,u)||this;return a._assertThisInitialized(r)instanceof e?r:new e(d,n,u)}a._inheritsLoose(e,c);return e}(b);b.prototype.type="warning";return b})},"esri/core/accessorSupport/extensions/serializableProperty/type":function(){define(["exports"],function(a){a.isCollection=function(b){return!!b&&
b.prototype&&b.prototype.declaredClass&&0===b.prototype.declaredClass.indexOf("esri.core.Collection")};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/extensions/serializableProperty/shorthands":function(){define(["exports"],function(a){function b(d){d.name&&(d.read?"object"===typeof d.read?void 0===d.read.source&&(d.read.source=d.name):d.read={source:d.name}:d.read={source:d.name},d.write?"object"===typeof d.write?void 0===d.write.target&&
(d.write.target=d.name):d.write={target:d.name}:d.write={target:d.name})}function c(d){"boolean"===typeof d.read?d.read={enabled:d.read}:"function"===typeof d.read?d.read={enabled:!0,reader:d.read}:d.read&&"object"===typeof d.read&&void 0===d.read.enabled&&(d.read.enabled=!0)}function e(d){"boolean"===typeof d.write?d.write={enabled:d.write}:"function"===typeof d.write?d.write={enabled:!0,writer:d.write}:d.write&&"object"===typeof d.write&&void 0===d.write.enabled&&(d.write.enabled=!0)}a.process=
function(d){d.json||(d.json={});c(d.json);e(d.json);b(d.json);if(d.json.origins)for(const n in d.json.origins)c(d.json.origins[n]),e(d.json.origins[n]),b(d.json.origins[n]);return!0};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/extensions/serializableProperty/writer":function(){define(["exports","../../../Error","../../../Logger","../../../object","./type"],function(a,b,c,e,d){function n(t){return(f,q,v,x)=>{if(!f||u(f,t,x))return h(f,
q,v,x)}}function u(t,f,q){for(var v in f.typeMap)if(t instanceof f.typeMap[v])return!0;q?.messages&&(v=f.errorContext??"type",f=`Values of type '${("function"!==typeof f.key?t[f.key]:t.declaredClass)??"Unknown"}' cannot be written`,q&&q.messages&&t&&q.messages.push(new b(`${v}:unsupported`,f,{definition:t,context:q})),c.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(f));return!1}function r(t){return(f,q,v,x)=>{if(!f||!Array.isArray(f))return h(f,q,v,x);f=f.filter(z=>
u(z,t,x));return h(f,q,v,x)}}function h(t,f,q,v){e.setDeepValue(q,g(t,v),f)}function g(t,f){return t&&"function"===typeof t.write?t.write({},f):t&&"function"===typeof t.toJSON?t.toJSON():"number"===typeof t?k(t):t}function k(t){return-Infinity===t?-Number.MAX_VALUE:Infinity===t?Number.MAX_VALUE:isNaN(t)?null:t}function p(t,f,q,v){null===t?t=null:t&&"function"===typeof t.map?(t=t.map(x=>g(x,v)),"function"===typeof t.toArray&&(t=t.toArray())):t=[g(t,v)];e.setDeepValue(q,t,f)}function l(t,f,q){return 0!==
q&&Array.isArray(t)?t.map(v=>l(v,f,q-1)):g(t,f)}function m(t){return(f,q,v,x)=>{if(null===f)f=null;else{f=l(f,x,t);x=t;for(var z=f;0<x&&Array.isArray(z);)x--,z=z[0];if(void 0!==z)for(z=0;z<x;z++)f=[f]}e.setDeepValue(v,f,q)}}a.create=function(t,f){if(f.write&&!f.write.writer&&(!1!==f.write.enabled||f.write.overridePolicy)){var q=t?.ndimArray??0;t&&(1===q||"type"in t&&d.isCollection(t.type))?f.write.writer=p:1<q?f.write.writer=m(q):f.types?Array.isArray(f.types)?f.write.writer=r(f.types[0]):f.write.writer=
n(f.types):f.write.writer=h}};a.numberToJSON=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/ObservableChangesType":function(){define(["exports"],function(a){a.ObservableChangesType=void 0;var b=a.ObservableChangesType||(a.ObservableChangesType={});b[b.ADD=1]="ADD";b[b.REMOVE=2]="REMOVE";b[b.MOVE=4]="MOVE";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/decorators/shared":function(){define(["exports"],
function(a){a.shared=function(b){return(c,e)=>{c[e]=b}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/tracking/SimpleObservable":function(){define(["exports","./ObservationHandle"],function(a,b){let c=function(){function e(){this._observers=[]}var d=e.prototype;d.observe=function(n){this._observers.includes(n)||this._observers.push(n);return new b.ObservationHandle(this._observers,n)};d.notify=function(){const n=this._observers.slice();
for(let u=0;u<n.length;++u){const r=n[u];r.onInvalidated();r.onCommitted()}};return e}();a.SimpleObservable=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/collectionUtils":function(){define(["exports","./Collection"],function(a,b){a.castForReferenceSetter=function(c){return c};a.referenceSetter=function(c,e,d=b){e||(e=new d);if(e===c)return e;e.removeAll();c&&(Array.isArray(c)||"items"in c&&Array.isArray(c.items))?e.addMany(c):c&&e.add(c);
return e};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/JSONSupport":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./accessorSupport/DefaultsStore ./accessorSupport/defaultsStoreUtils ./accessorSupport/read ./accessorSupport/utils ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){const p=l=>{l=function(m){function t(...q){q=m.call(this,
...q)||this;const v=d.assumeNonNull(h.getProperties(b._assertThisInitialized(q))),x=v.store,z=new n.DefaultsStore;v.store=z;u.setupConstructedDefaults(v,x,z);return q}b._inheritsLoose(t,m);var f=t.prototype;f.read=function(q,v){r.read(this,q,v)};f.write=function(q={},v){return g.write(this,q,v)};f.toJSON=function(q){return this.write({},q)};t.fromJSON=function(q,v){if(q){if(q.declaredClass)throw Error("JSON object is already hydrated");var x=new this;x.read(q,v);q=x}else q=null;return q};return t}(l);
l=c.__decorate([k.subclass("esri.core.JSONSupport")],l);l.prototype.toJSON.isDefaultToJSON=!0;return l};a.JSONSupport=function(l){function m(){return l.apply(this,arguments)||this}b._inheritsLoose(m,l);return m}(p(e));a.JSONSupport=c.__decorate([k.subclass("esri.core.JSONSupport")],a.JSONSupport);a.JSONSupportMixin=p;a.isJSONSupport=function(l){return l&&"read"in l&&"write"in l&&"toJSON"in l};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/DefaultsStore":function(){define(["exports",
"../lang","./PropertyOrigin"],function(a,b,c){let e=function(){function n(){this._values=new Map;this.multipleOriginsSupported=!1}var u=n.prototype;u.clone=function(r){const h=new n;this._values.forEach((g,k)=>{r&&r.has(k)||h.set(k,b.clone(g.value),g.origin)});return h};u.get=function(r,h){h=this._normalizeOrigin(h);r=this._values.get(r);return null==h||r?.origin===h?r?.value:void 0};u.originOf=function(r){return this._values.get(r)?.origin??c.OriginId.USER};u.keys=function(r){r=this._normalizeOrigin(r);
const h=[...this._values.keys()];return null==r?h:h.filter(g=>this._values.get(g)?.origin===r)};u.set=function(r,h,g){g=this._normalizeOrigin(g);if(g===c.OriginId.DEFAULTS){const k=this._values.get(r);if(k&&null!=k.origin&&k.origin>g)return}this._values.set(r,new d(h,g))};u.delete=function(r,h){h=this._normalizeOrigin(h);null!=h&&this._values.get(r)?.origin!==h||this._values.delete(r)};u.has=function(r,h){h=this._normalizeOrigin(h);return null!=h?this._values.get(r)?.origin===h:this._values.has(r)};
u.forEach=function(r){this._values.forEach(({value:h},g)=>r(h,g))};u._normalizeOrigin=function(r){if(null!=r)return r===c.OriginId.DEFAULTS?r:c.OriginId.USER};return n}(),d=function(n,u){this.value=n;this.origin=u};a.DefaultsStore=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/defaultsStoreUtils":function(){define(["exports","./PropertyOrigin"],function(a,b){a.setupConstructedDefaults=function(c,e,d){e.keys().forEach(n=>{d.set(n,
e.get(n),b.OriginId.DEFAULTS)});Object.keys(c.metadatas).forEach(n=>{c.internalGet(n)&&d.set(n,c.internalGet(n),b.OriginId.DEFAULTS)})};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/read":function(){define(["exports","./get","./utils","./extensions/serializableProperty"],function(a,b,c,e){const d={origin:"service"};a.read=function(n,u,r=d){if(u&&"object"===typeof u){var h=c.getProperties(n),g=h.metadatas,k={};for(const y of Object.getOwnPropertyNames(u)){var p=
k,l=g,m=y,t=u,f=r,q=e.originSpecificReadPropertyDefinition(l[m],f);q&&(!q.read||!1!==q.read.enabled&&!q.read.source)&&(p[m]=!0);for(const A of Object.getOwnPropertyNames(l)){q=e.originSpecificReadPropertyDefinition(l[A],f);a:{var v=m;var x=t;if(q&&q.read&&!1!==q.read.enabled&&q.read.source){q=q.read.source;if("string"===typeof q){if(q===v||q.includes(".")&&0===q.indexOf(v)&&b.exists(q,x)){v=!0;break a}}else for(const B of q)if(B===v||B.includes(".")&&0===B.indexOf(v)&&b.exists(B,x)){v=!0;break a}v=
!1}else v=!1}v&&(p[A]=!0)}}h.setDefaultOrigin(r.origin);for(var z of Object.getOwnPropertyNames(k))l=(l=(p=e.originSpecificReadPropertyDefinition(g[z],r).read)&&p.source)&&"string"===typeof l?b.valueOf(u,l):u[z],p&&p.reader&&(l=p.reader.call(n,l,u,r)),void 0!==l&&h.set(z,l);if(!r||!r.ignoreDefaults){h.setDefaultOrigin("defaults");for(const y of Object.getOwnPropertyNames(g))k[y]||(z=n,u=y,g=h,p=r,l=(l=e.originSpecificPropertyDefinition(g.metadatas[u],"any",p))&&l.default,void 0!==l&&(z="function"===
typeof l?l.call(z,u,p):l,void 0!==z&&g.set(u,z)))}h.setDefaultOrigin("user")}};a.readLoadable=function(n,u,r,h=d){u={...h,messages:[]};r(u);u.messages?.forEach(g=>{"warning"!==g.type||n.loaded?h&&h.messages&&h.messages.push(g):n.loadWarnings.push(g)})};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/write":function(){define("exports ../arrayUtils ../Error ../Logger ./PropertyOrigin ./utils ./extensions/serializableProperty".split(" "),
function(a,b,c,e,d,n,u){function r(g,k,p,l,m){const t={};k.write?.writer?.call(g,l,t,p,m);return t}function h(g,k,p,l,m,t){if(!l||!l.write)return!1;const f=g.get(p);if(!m&&l.write.overridePolicy){var q=l.write.overridePolicy.call(g,f,p,t);void 0!==q&&(m=q)}m||(m=l.write);if(!m||!1===m.enabled)return!1;if((null===f&&!m.allowNull&&!m.writerEnsuresNonNull||void 0===f)&&m.isRequired)return(k=new c("web-document-write:property-required",`Missing value for required property '${p}' on '${g.declaredClass}'`,
{propertyName:p,target:g}),t)&&t.messages?t.messages.push(k):k&&!t&&e.getLogger("esri.core.accessorSupport.write").error(k.name,k.message),!1;if(void 0===f||null===f&&!m.allowNull&&!m.writerEnsuresNonNull)return!1;if(q=!k.store.multipleOriginsSupported||k.store.originOf(p)===d.OriginId.DEFAULTS)q=l.default,void 0===q?q=!1:null!=l.defaultEquals?q=l.defaultEquals(f):"function"===typeof q?Array.isArray(f)?(g=q.call(g,p,t),q=b.equals(g,f)):q=!1:q=q===f;return q||!m.ignoreOrigin&&t&&t.origin&&k.store.multipleOriginsSupported&&
k.store.originOf(p)<d.nameToId(t.origin)?!1:!0}a.willPropertyWrite=function(g,k,p,l){const m=n.getProperties(g),t=u.originSpecificWritePropertyDefinition(m.metadatas[k],l);return t?h(g,m,k,t,p,l):!1};a.write=function(g,k,p){if(g&&"function"===typeof g.toJSON&&(!g.toJSON.isDefaultToJSON||!g.write))return n.merge(k,g.toJSON(p));const l=n.getProperties(g),m=l.metadatas;for(const t in m){const f=u.originSpecificWritePropertyDefinition(m[t],p);if(!h(g,l,t,f,void 0,p))continue;const q=g.get(t),v=r(g,f,
f.write&&"string"===typeof f.write.target?f.write.target:t,q,p);0<Object.keys(v).length&&(k=n.merge(k,v),p?.resources?.pendingOperations?.length&&Promise.all(p.resources.pendingOperations).then(()=>n.merge(k,v)),p&&p.writtenProperties&&p.writtenProperties.push({target:g,propName:t,oldOrigin:d.idToReadableName(l.store.originOf(t)),newOrigin:p.origin}))}return k};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/Loadable":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Error ./Promise ./promiseUtils ./Warning ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){const h=g=>{g=function(k){function p(...m){var t=k.call(this,...m)||this;t._loadController=null;t.loadError=null;t.loadStatus="not-loaded";t._set("loadWarnings",[]);t.addResolvingPromise(new Promise(f=>{const q=t.load.bind(a._assertThisInitialized(t));t.load=v=>{const x=new Promise((z,y)=>{const A=d.onAbortOrThrow(v,y);t.destroyed&&y(new c("load:instance-destroyed",`Instance of '${t.declaredClass||t.constructor.name}' is already destroyed`,{instance:a._assertThisInitialized(t)}));
t._promiseProps.when(z,y).finally(()=>{A&&A.remove()})});if("not-loaded"===t.loadStatus){t._set("loadStatus","loading");const z=t._loadController=new AbortController;q({signal:z.signal});d.onAbort(z.signal,()=>{t._promiseProps.abort()})}f();return x}}));t.when(()=>{t._set("loadStatus","loaded");t._loadController=null},f=>{t._set("loadStatus","failed");t._set("loadError",f);t._loadController=null});return t}a._inheritsLoose(p,k);var l=p.prototype;l.load=function(){return null};l.cancelLoad=function(){if(this.isFulfilled())return this;
this._set("loadError",new c("load:cancelled","Cancelled"));this._loadController?.abort();return this};a._createClass(p,[{key:"loaded",get:function(){return"loaded"===this.loadStatus}},{key:"loadWarnings",get:function(){return this._get("loadWarnings")}}]);return p}(g);b.__decorate([u.property({readOnly:!0})],g.prototype,"loaded",null);b.__decorate([u.property({readOnly:!0})],g.prototype,"loadError",void 0);b.__decorate([u.property({clonable:!1})],g.prototype,"loadStatus",void 0);b.__decorate([u.property({type:[n],
readOnly:!0})],g.prototype,"loadWarnings",null);return g=b.__decorate([r.subclass("esri.core.Loadable")],g)};e=function(g){function k(){return g.apply(this,arguments)||this}a._inheritsLoose(k,g);return k}(h(e.EsriPromise));e=b.__decorate([r.subclass("esri.core.Loadable")],e);(function(g){g.LoadableMixin=h;g.isLoadable=function(k){return!(!k||!k.load)}})(e||(e={}));return e})},"esri/core/Promise":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./promiseUtils ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;(function(k){k[k.PENDING=0]="PENDING";k[k.RESOLVED=1]="RESOLVED";k[k.REJECTED=2]="REJECTED"})(r||(r={}));let h=function(){function k(l){this.instance=l;this._resolver=n.createDeferred();this._status=r.PENDING;this._resolvingPromises=[];this._resolver.promise.then(()=>{this._status=r.RESOLVED;this._cleanUp()},()=>{this._status=r.REJECTED;this._cleanUp()})}var p=k.prototype;p.addResolvingPromise=function(l){this._resolvingPromises.push(l);this._tryResolve()};p.isResolved=
function(){return this._status===r.RESOLVED};p.isRejected=function(){return this._status===r.REJECTED};p.isFulfilled=function(){return this._status!==r.PENDING};p.abort=function(){this._resolver.reject(n.createAbortError())};p.when=function(l,m){return this._resolver.promise.then(l,m)};p._cleanUp=function(){this._allPromise=this._resolvingPromises=this._allPromise=null};p._tryResolve=function(){if(!this.isFulfilled()){var l=n.createDeferred(),m=[...this._resolvingPromises,d.assumeNonNull(l.promise)],
t=this._allPromise=Promise.all(m);t.then(()=>{this.isFulfilled()||this._allPromise!==t||this._resolver.resolve(this.instance)},f=>{this.isFulfilled()||this._allPromise!==t||n.isAbortError(f)||this._resolver.reject(f)});l.resolve()}};return k}();const g=k=>{k=function(p){function l(...t){t=p.call(this,...t)||this;t._promiseProps=new h(b._assertThisInitialized(t));t.addResolvingPromise(Promise.resolve());return t}b._inheritsLoose(l,p);var m=l.prototype;m.isResolved=function(){return this._promiseProps.isResolved()};
m.isRejected=function(){return this._promiseProps.isRejected()};m.isFulfilled=function(){return this._promiseProps.isFulfilled()};m.when=function(t,f){return(new Promise((q,v)=>{this._promiseProps.when(q,v)})).then(t,f)};m.catch=function(t){return this.when(null,t)};m.addResolvingPromise=function(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)};return l}(k);return k=c.__decorate([u.subclass("esri.core.Promise")],k)};a.EsriPromise=function(k){function p(){return k.apply(this,
arguments)||this}b._inheritsLoose(p,k);return p}(g(e));a.EsriPromise=c.__decorate([u.subclass("esri.core.Promise")],a.EsriPromise);a.EsriPromiseMixin=g;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/loadAll":function(){define("exports ../chunks/_rollupPluginBabelHelpers ./asyncUtils ./Collection ./Loadable ./maybe".split(" "),function(a,b,c,e,d,n){function u(){u=b._asyncToGenerator(function*(g,k){yield g.load();return r(g,k)});return u.apply(this,
arguments)}function r(g,k){return h.apply(this,arguments)}function h(){h=b._asyncToGenerator(function*(g,k){const p=[],l=(...t)=>{for(const f of t)n.isNone(f)||(Array.isArray(f)?l(...f):e.isCollection(f)?f.forEach(q=>l(q)):d.isLoadable(f)&&p.push(f))};k(l);let m=null;yield c.map(p,function(){var t=b._asyncToGenerator(function*(f){!1!==(yield c.result("loadAll"in f&&"function"===typeof f.loadAll?f.loadAll():f.load())).ok||m||(m=f)});return function(f){return t.apply(this,arguments)}}());if(m)throw m.loadError;
return g});return h.apply(this,arguments)}a.loadAll=function(g,k){return u.apply(this,arguments)};a.loadAllChildren=r;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/asyncUtils":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./promiseUtils ./accessorSupport/decorators/property ./arrayUtils ./accessorSupport/ensureType ./accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,
u,r,h,g){function k(){k=b._asyncToGenerator(function*(x,z,y){return(yield n.eachAlways(x.map((A,B)=>z.apply(y,[A,B])))).map(A=>A.value)});return k.apply(this,arguments)}function p(x){return{ok:!0,value:x}}function l(x){return{ok:!1,error:x}}function m(x){return d.isSome(x)&&!0===x.ok?x.value:null}function t(x){return d.isSome(x)&&!1===x.ok?x.error:null}function f(){f=b._asyncToGenerator(function*(x){if(d.isNone(x))return{ok:!1,error:Error("no promise provided")};try{return p(yield x)}catch(z){return l(z)}});
return f.apply(this,arguments)}function q(){q=b._asyncToGenerator(function*(x){try{return p(yield x)}catch(z){return n.throwIfAbortError(z),l(z)}});return q.apply(this,arguments)}let v=function(x){function z(A,B){var E=x.call(this,{})||this;E._result=null;E._abortHandle=null;E.abort=()=>{E._abortController=d.abortMaybe(E._abortController)};E.remove=E.abort;E._abortController=new AbortController;const {signal:w}=E._abortController;E.promise=A(w);E.promise.then(D=>{E._result=p(D);E._cleanup()},D=>{E._result=
l(D);E._cleanup()});E._abortHandle=n.onAbort(B,E.abort);return E}b._inheritsLoose(z,x);var y=z.prototype;y.normalizeCtorArgs=function(){return{}};y.destroy=function(){this.abort()};y._cleanup=function(){this._abortHandle=d.removeMaybe(this._abortHandle);this._abortController=null};b._createClass(z,[{key:"value",get:function(){return m(this._result)}},{key:"error",get:function(){return t(this._result)}},{key:"finished",get:function(){return d.isSome(this._result)}}]);return z}(e);c.__decorate([u.property()],
v.prototype,"value",null);c.__decorate([u.property()],v.prototype,"error",null);c.__decorate([u.property()],v.prototype,"finished",null);c.__decorate([u.property()],v.prototype,"promise",void 0);c.__decorate([u.property()],v.prototype,"_result",void 0);v=c.__decorate([g.subclass("esri.core.asyncUtils.ReactiveTask")],v);a.assertResult=function(x){if(!0===x.ok)return x.value;throw x.error;};a.createTask=function(x,z){return new v(x,z)};a.forEach=function(x,z,y){return n.eachAlways(x.map((A,B)=>z.apply(y,
[A,B])))};a.makeResultError=l;a.makeResultOk=p;a.map=function(x,z,y){return k.apply(this,arguments)};a.result=function(x){return f.apply(this,arguments)};a.resultError=t;a.resultOrAbort=function(x){return q.apply(this,arguments)};a.resultValue=m;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/urlUtils":function(){define(["exports","../config","./Error","./Logger","./maybe"],function(a,b,c,e,d){function n(S){if(!S)return null;const fa={path:null,
query:null},R=new sa(S),Q=S.indexOf("?");null===R.query?fa.path=S:(fa.path=S.substring(0,Q),fa.query=u(R.query));R.fragment&&(fa.hash=R.fragment,null===R.query&&(fa.path=fa.path.substring(0,fa.path.length-(R.fragment.length+1))));return fa}function u(S){var fa=S.split("\x26");S={};for(const Q of fa){if(!Q)continue;var R=Q.indexOf("\x3d");0>R?(fa=decodeURIComponent(Q),R=""):(fa=decodeURIComponent(Q.slice(0,R)),R=decodeURIComponent(Q.slice(R+1)));let Z=S[fa];"string"===typeof Z&&(Z=S[fa]=[Z]);Array.isArray(Z)?
Z.push(R):S[fa]=R}return S}function r(S){return S&&"object"===typeof S&&"toJSON"in S&&"function"===typeof S.toJSON}function h(S,fa){return S?fa&&"function"===typeof fa?Object.keys(S).map(R=>encodeURIComponent(R)+"\x3d"+encodeURIComponent(fa(R,S[R]))).join("\x26"):Object.keys(S).map(R=>{const Q=S[R];if(null==Q)return"";const Z=encodeURIComponent(R)+"\x3d";return(R=fa&&fa[R])?Z+encodeURIComponent(R(Q)):Array.isArray(Q)?Q.map(X=>r(X)?Z+encodeURIComponent(JSON.stringify(X)):Z+encodeURIComponent(X)).join("\x26"):
r(Q)?Z+encodeURIComponent(JSON.stringify(Q)):Z+encodeURIComponent(Q)}).filter(R=>R).join("\x26"):""}function g(S){const fa=S.indexOf("?");-1!==fa?(Y.path=S.slice(0,fa),Y.query=S.slice(fa+1)):(Y.path=S,Y.query=null);return Y}function k(S){S=g(S).path;S&&"/"===S[S.length-1]||(S=`${S}/`);S=N(S,!0);return S=S.toLowerCase()}function p(S){const fa=P.proxyRules;S=k(S);for(let R=0;R<fa.length;R++)if(0===S.indexOf(fa[R].urlPrefix))return fa[R]}function l(S){S=f(S);const fa=S.indexOf("/sharing");return 0<fa?
S.substring(0,fa):S.replace(/\/+$/,"")}function m(S,fa,R=!1){if(!S||!fa)return!1;S=ba(S);fa=ba(fa);return!R&&S.scheme!==fa.scheme||null==S.host||null==fa.host?!1:S.host.toLowerCase()===fa.host.toLowerCase()&&S.port===fa.port}function t(S,fa=ya,R){if(C(S))return R&&R.preserveProtocolRelative?S:"http"===ha.scheme&&ha.authority===v(S).slice(2)?`http:${S}`:`https:${S}`;if(!F(S)){R=d.assumeNonNull;var Q=q;if("/"===S[0]){var Z=fa.indexOf("//");Z=fa.indexOf("/",Z+2);fa=-1===Z?fa:fa.slice(0,Z)}return R.call(d,
Q(fa,S))}return S}function f(S){S=S.trim();S=t(S);if(/^https?:\/\//i.test(S)){const fa=g(S);S=fa.path.replace(/\/{2,}/g,"/");S=S.replace("/","//");fa.query&&(S+=`?${fa.query}`)}S=S.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2");return S=U(S)}function q(...S){var fa=S.filter(d.isSome);if(fa&&fa.length){S=[];if(x(fa[0])){var R=fa[0],Q=R.indexOf("//");-1!==Q&&(S.push(R.slice(0,Q+1)),I(fa[0])&&(S[0]+="/"),fa[0]=R.slice(Q+2))}else"/"===fa[0][0]&&S.push("");fa=fa.reduce((Z,X)=>X?Z.concat(X.split("/")):
Z,[]);for(R=0;R<fa.length;R++)Q=fa[R],".."===Q&&0<S.length&&".."!==S[S.length-1]?S.pop():(!Q&&R===fa.length-1||Q&&("."!==Q||0===S.length))&&S.push(Q);return S.join("/")}}function v(S,fa=!1){if(null==S||z(S)||y(S))return null;var R=S.indexOf("://");if(-1===R&&C(S))R=2;else if(-1!==R)R+=3;else return null;R=S.indexOf("/",R);-1!==R&&(S=S.slice(0,R));fa&&(S=N(S,!0));return S}function x(S){return C(S)||F(S)}function z(S){return null!=S&&"blob:"===S.slice(0,5)}function y(S){return null!=S&&"data:"===S.slice(0,
5)}function A(S){S=B(S);if(!S||!S.isBase64)return null;S=atob(S.data);const fa=new Uint8Array(S.length);for(let R=0;R<S.length;R++)fa[R]=S.charCodeAt(R);return fa.buffer}function B(S){S=S.match(ea);if(!S)return null;const [,fa,R,Q]=S;return{mediaType:fa,isBase64:!!R,data:Q}}function E(S){const fa=A(S);if(!fa)return null;S=B(S);return new Blob([fa],{type:S.mediaType})}function w(S,fa){if(!S)return!1;const R=document.createElement("a");if(!("download"in R))return!1;S=URL.createObjectURL(S);R.download=
fa;R.href=S;R.style.display="none";document.body.appendChild(R);R.click();document.body.removeChild(R);URL.revokeObjectURL(S);return!0}function D(S,fa){return window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(S,fa):!1}function C(S){return null!=S&&"/"===S[0]&&"/"===S[1]}function F(S){return null!=S&&V.test(S)}function G(S){return null!=S&&ra.test(S)||"https"===ha.scheme&&C(S)}function H(S){return null!=S&&ca.test(S)||"http"===ha.scheme&&C(S)}function I(S){return null!=S&&ta.test(S)}
function J(S){return C(S)?`https:${S}`:S.replace(ca,"https:")}function K(){return"https"===ha.scheme}function N(S,fa=!1){if(C(S))return S.slice(2);S=S.replace(V,"");fa&&1<S.length&&"/"===S[0]&&"/"===S[1]&&(S=S.slice(2));return S}function U(S){const fa=P.httpsDomains;if(!H(S))return S;const R=S.indexOf("/",7);let Q;Q=-1===R?S:S.slice(0,R);Q=Q.toLowerCase().slice(7);if(Ba.test(Q))if(Q.endsWith(":80"))Q=Q.slice(0,-3),S=S.replace(":80","");else return S;if("http"===ha.scheme&&Q===ha.authority&&!Ha.test(S))return S;
if(K()&&Q===ha.authority||fa&&fa.some(Z=>Q===Z||Q.endsWith(`.${Z}`))||K()&&!p(S))S=J(S);return S}function ba(S){if("string"===typeof S)return new sa(t(S));S.scheme||(S.scheme=ha.scheme);return S}const ka=e.getLogger("esri.core.urlUtils"),P=b.request,V=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,ca=/^\s*http:/i,ra=/^\s*https:/i,ta=/^\s*file:/i,Ba=/:\d+$/,Ha=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,da=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),la=RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");
let sa=function(){function S(fa=""){this.uri=fa;this.port=this.host=this.password=this.user=this.fragment=this.query=this.path=this.authority=this.scheme=null;fa=d.assumeNonNull(this.uri.match(da));this.scheme=fa[2]||(fa[1]?"":null);this.authority=fa[4]||(fa[3]?"":null);this.path=fa[5];this.query=fa[7]||(fa[6]?"":null);this.fragment=fa[9]||(fa[8]?"":null);null!=this.authority&&(fa=d.assumeNonNull(this.authority.match(la)),this.user=fa[3]||null,this.password=fa[4]||null,this.host=fa[6]||fa[7],this.port=
fa[9]||null)}S.prototype.toString=function(){return this.uri};return S}();const L={},O=new sa(b.applicationUrl);let ha=O;const pa=function(){var S=d.assumeNonNull(ha.path);S=S.substring(0,S.lastIndexOf(S.split("/")[S.split("/").length-1]));return`${`${ha.scheme}://${ha.host}${null!=ha.port?`:${ha.port}`:""}`}${S}`}();let ya=pa;const Y={path:"",query:""},ea=/^data:(.*?)(;base64)?,(.*)$/,ma=/([^.]*)\.([^\/]*)$/,ja=/(^data:image\/svg|\.svg$)/i;a.Url=sa;a.addProxy=function(S){var fa=p(S),R=void 0;if(fa){var Q=
g(fa.proxyUrl);R=Q.path;Q=Q.query?u(Q.query):null}R&&(fa=n(S),S=R+"?"+fa.path,(R=h({...Q,...fa.query}))&&(S=`${S}?${R}`));return S};a.addProxyRule=function(S){S={proxyUrl:S.proxyUrl,urlPrefix:k(S.urlPrefix)};const fa=P.proxyRules,R=S.urlPrefix;let Q=fa.length;for(let Z=0;Z<fa.length;Z++){const X=fa[Z].urlPrefix;if(0===R.indexOf(X)){if(R.length===X.length)return-1;Q=Z;break}0===X.indexOf(R)&&(Q=Z+1)}fa.splice(Q,0,S);return Q};a.addQueryParameter=function(S,fa,R){S=n(S);const Q=S.query||{};Q[fa]=String(R);
return`${S.path}?${h(Q)}`};a.addQueryParameters=function(S,fa){S=n(S);const R=S.query||{};for(const Q in fa)R[Q]=fa[Q];return(fa=h(R))?`${S.path}?${fa}`:S.path};a.base64UrlEncode=function(S){return btoa(String.fromCharCode.apply(null,S)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};a.changeDomain=function(S,fa,R){if(!(fa&&R&&S&&x(S)))return S;const Q=S.indexOf("//");var Z=S.indexOf("/",Q+2);const X=S.indexOf(":",Q+2);Z=Math.min(0>Z?S.length:Z,0>X?S.length:X);if(S.slice(Q+2,Z).toLowerCase()!==
fa.toLowerCase())return S;fa=S.slice(0,Q+2);S=S.slice(Z);return`${fa}${R}${S}`};a.dataComponents=B;a.dataToArrayBuffer=A;a.dataToBlob=E;a.downloadBlobAsFile=function(S,fa){w(S,fa)||D(S,fa)};a.downloadDataAsFile=function(S,fa){var R=(R=E(S))?w(R,fa):!1;R||(S=E(S))&&D(S,fa)};a.getAppBaseUrl=()=>ya;a.getAppUrl=()=>ha;a.getFilename=function(S,fa){if(!S)return"";S=n(S).path.replace(/\/+$/,"");S=S.substring(S.lastIndexOf("/")+1);if(!fa?.length)return S;fa=new RegExp(`.(${fa.join("|")})$`,"ig");return S.replace(fa,
"")};a.getInterceptor=function(S){const fa=Q=>null==Q||Q instanceof RegExp&&Q.test(S)||"string"===typeof Q&&S.startsWith(Q),R=P.interceptors;if(R)for(const Q of R)if(Array.isArray(Q.urls)){if(Q.urls.some(fa))return Q}else if(fa(Q.urls))return Q;return null};a.getOrigin=v;a.getPathExtension=function(S){return d.isNone(S)?null:(S=S.match(ma))?S[2]:null};a.getProxyRule=p;a.getProxyUrl=function(S=!1){let fa,R=P.proxyUrl;if("string"===typeof S){if(fa=G(S),S=p(S))R=S.proxyUrl}else fa=!!S;if(!R)throw ka.warn("esri/config: esriConfig.request.proxyUrl is not set."),
new c("urlutils:proxy-not-set","esri/config: esriConfig.request.proxyUrl is not set.");fa&&K()&&(R=J(R));return n(R)};a.hasProtocol=F;a.hasSameOrigin=m;a.hasSamePortal=function(S,fa){S=l(S);fa=l(fa);return N(S)===N(fa)};a.isAbsolute=x;a.isAppHTTPS=K;a.isBlobProtocol=z;a.isDataProtocol=y;a.isHTTPSProtocol=G;a.isProtocolRelative=C;a.isSVG=function(S){return ja.test(S)};a.isTrustedServer=function(S){if("string"===typeof S)if(x(S))S=ba(S);else return!0;if(m(S,ha))return!0;const fa=P.trustedServers||[];
for(let Q=0;Q<fa.length;Q++){var R=fa[Q];L[R]||(F(R)||C(R)?L[R]=[new sa(t(R))]:L[R]=[new sa(`http://${R}`),new sa(`https://${R}`)]);R=L[R];for(let Z=0;Z<R.length;Z++)if(m(S,R[Z]))return!0}return!1};a.join=q;a.makeAbsolute=t;a.makeData=function(S){return S.isBase64?`data:${S.mediaType};base64,${S.data}`:`data:${S.mediaType},${S.data}`};a.makeRelative=function(S,fa=ya,R){if(null==S||!x(S))return S;var Q=f(S),Z=Q.toLowerCase();fa=f(fa).toLowerCase().replace(/\/+$/,"");if((R=R?f(R).toLowerCase().replace(/\/+$/,
""):null)&&0!==fa.indexOf(R))return S;const X=(oa,Da,Ea)=>{Ea=oa.indexOf(Da,Ea);return-1===Ea?oa.length:Ea};let M=X(Z,"/",Z.indexOf("//")+2),aa=-1;for(;Z.slice(0,M+1)===fa.slice(0,M)+"/";){aa=M+1;if(M===Z.length)break;M=X(Z,"/",M+1)}if(-1===aa||R&&aa<R.length)return S;S=Q.slice(aa);Q=fa.slice(aa-1).replace(/[^/]+/g,"").length;if(0<Q)for(Z=0;Z<Q;Z++)S=`../${S}`;else S=`./${S}`;return S};a.normalize=f;a.objectToQuery=h;a.queryToObject=u;a.removeFile=function(S){let fa=0;if(x(S)){var R=S.indexOf("//");
-1!==R&&(fa=R+2)}R=S.lastIndexOf("/");return R<fa?S:S.slice(0,R+1)};a.removeQueryParameter=function(S,fa){const {path:R,query:Q}=n(S);if(!Q)return S;delete Q[fa];return(S=h(Q))?`${R}?${S}`:R};a.removeQueryParameters=function(S,fa){S=n(S);const R=Object.keys(S.query||{});0<R.length&&fa&&fa.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${R.join(", ")}.`);return S.path};a.removeTrailingSlash=function(S){return S.replace(/\/+$/,"")};
a.splitPathExtension=function(S){if(d.isNone(S))return null;const fa=S.match(ma);return fa?{path:fa[1],extension:fa[2]}:{path:S,extension:null}};a.test={setAppUrl:S=>ha=S,setAppBaseUrl:S=>ya=S,restoreUrls:()=>{ha=O;ya=pa}};a.toHTTP=function(S){return C(S)?`http:${S}`:S.replace(ra,"http:")};a.toHTTPS=J;a.trustedServersUrlCache=L;a.urlToObject=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/decorators/writer":function(){define(["exports",
"./property"],function(a,b){a.writer=function(c,e,d){let n,u;void 0===e?(u=c,n=[void 0]):"string"!==typeof e?(u=c,n=[void 0],d=e):(u=e,n=Array.isArray(c)?c:[c]);return(r,h)=>{const g=r.constructor.prototype;for(const k of n){const p=b.propertyJSONMeta(r,k,u);p.write&&"object"===typeof p.write||(p.write={});d&&(p.write.target=d);p.write.writer=g[h]}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/SpatialReference":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/spatialReferenceUtils".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;c=g=function(k){function p(m){m=k.call(this,m)||this;m.latestWkid=null;m.wkid=null;m.wkt=null;m.vcsWkid=null;m.latestVcsWkid=null;m.imageCoordinateSystem=null;return m}a._inheritsLoose(p,k);p.fromJSON=function(m){if(!m)return null;if(m.wkid){if(102100===m.wkid)return g.WebMercator;if(4326===m.wkid)return g.WGS84}const t=new g;t.read(m);return t};var l=p.prototype;l.normalizeCtorArgs=function(m){return m&&"object"===typeof m?m:{["string"===typeof m?"wkt":"wkid"]:m}};
l.writeWkt=function(m,t){this.wkid||(t.wkt=m)};l.clone=function(){if(this===g.WGS84)return g.WGS84;if(this===g.WebMercator)return g.WebMercator;const m=new g;null!=this.wkid?(m.wkid=this.wkid,null!=this.latestWkid&&(m.latestWkid=this.latestWkid),null!=this.vcsWkid&&(m.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(m.latestVcsWkid=this.latestVcsWkid)):null!=this.wkt&&(m.wkt=this.wkt);this.imageCoordinateSystem&&(m.imageCoordinateSystem=e.clone(this.imageCoordinateSystem));return m};l.equals=function(m){if(null==
m)return!1;if(this.imageCoordinateSystem||m.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==m.imageCoordinateSystem)return!1;const {id:t,referenceServiceName:f}=m.imageCoordinateSystem,{geodataXform:q}=m.imageCoordinateSystem,v=this.imageCoordinateSystem;return null==t||q?JSON.stringify(v)===JSON.stringify(m.imageCoordinateSystem):f?v.id===t&&v.referenceServiceName===f:v.id===t}return h.equals(this,m)};l.toJSON=function(m){return this.write(void 0,m)};a._createClass(p,[{key:"isWGS84",
get:function(){return h.isWGS84(this)}},{key:"isWebMercator",get:function(){return h.isWebMercator(this)}},{key:"isGeographic",get:function(){return h.isGeographic(this)}},{key:"isWrappable",get:function(){return h.isWrappable(this)}}]);return p}(c.JSONSupport);c.GCS_NAD_1927=null;c.WGS84=null;c.WebMercator=null;c.PlateCarree=null;b.__decorate([n.property({readOnly:!0})],c.prototype,"isWGS84",null);b.__decorate([n.property({readOnly:!0})],c.prototype,"isWebMercator",null);b.__decorate([n.property({readOnly:!0})],
c.prototype,"isGeographic",null);b.__decorate([n.property({readOnly:!0})],c.prototype,"isWrappable",null);b.__decorate([n.property({type:d.Integer,json:{write:!0}})],c.prototype,"latestWkid",void 0);b.__decorate([n.property({type:d.Integer,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null===this.wkt?!0:!1}}}}}}})],c.prototype,"wkid",void 0);b.__decorate([n.property({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null===this.wkid?
!0:!1}}}}}}})],c.prototype,"wkt",void 0);b.__decorate([r.writer("wkt"),r.writer("web-scene","wkt")],c.prototype,"writeWkt",null);b.__decorate([n.property({type:d.Integer,json:{write:!0}})],c.prototype,"vcsWkid",void 0);b.__decorate([n.property({type:d.Integer,json:{write:!0}})],c.prototype,"latestVcsWkid",void 0);b.__decorate([n.property()],c.prototype,"imageCoordinateSystem",void 0);c=g=b.__decorate([u.subclass("esri.geometry.SpatialReference")],c);c.prototype.toJSON.isDefaultToJSON=!0;c.GCS_NAD_1927=
new c({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'});c.WGS84=new c(h.WGS84);c.WebMercator=new c(h.WebMercator);c.PlateCarree=new c(h.PlateCarree);Object.freeze&&(Object.freeze(c.GCS_NAD_1927),Object.freeze(c.WGS84),Object.freeze(c.WebMercator));return c})},"esri/geometry/support/spatialReferenceUtils":function(){define(["exports","../../core/maybe","../../core/string",
"./SupportedGCSWkids","./WKIDUnitConversion"],function(a,b,c,e,d){function n(q){return k(q)&&null!=q.wkid&&!0===p[q.wkid]}function u(q){return q===e.SupportedGCSWkids.GCSMARS2000||q===e.SupportedGCSWkids.GCSMARS2000_SPHERE}function r(q){return k(q)&&null!=q.wkid&&u(q.wkid)}function h(q){return q===e.SupportedGCSWkids.GCSMOON2000}function g(q){return k(q)&&null!=q.wkid&&h(q.wkid)}function k(q){return b.isSome(q)&&(null!=q.wkid&&2E3<=q.wkid||null!=q.wkt)}const p={102113:!0,102100:!0,3857:!0,3785:!0},
l={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},m=[-2.0037508342788905E7,2.0037508342788905E7],t=[-2.0037508342787E7,2.0037508342787E7],f={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',
valid:m,origin:t,dx:1E-5},102100:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:m,origin:t,
dx:1E-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:m,origin:t,dx:1E-5},3857:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',
valid:m,origin:t,dx:1E-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',
valid:[-180,180],origin:[-180,90],dx:1E-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1E-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],
dx:1E-5}};c={wkid:4326,wkt:c.replace(f[4326].wkTemplate,{Central_Meridian:"0.0"})};a.PlateCarree={wkid:32662};a.WGS84=c;a.WebMercator={wkid:102100,latestWkid:3857};a.equals=function(q,v){return q===v?!0:b.isNone(q)||b.isNone(v)?!1:null!=q.wkid||null!=v.wkid?q.wkid===v.wkid||n(q)&&n(v)||null!=v.latestWkid&&q.wkid===v.latestWkid||null!=q.latestWkid&&v.wkid===q.latestWkid:q.wkt&&v.wkt?q.wkt.toUpperCase()===v.wkt.toUpperCase():!1};a.getInfo=function(q){return k(q)&&q.wkid?f[q.wkid]||null:null};a.isCGCS2000=
function(q){return k(q)&&q.wkid===e.SupportedGCSWkids.CGCS2000};a.isEarth=function(q){return!(r(q)||g(q))};a.isGeographic=function(q){return k(q)?q.wkid?null==d[q.wkid]:q.wkt?!!/^\s*GEOGCS/i.test(q.wkt):!1:!1};a.isMars=r;a.isMoon=g;a.isPlateCarree=function(q){return k(q)&&32662===q.wkid};a.isValid=k;a.isWGS84=function(q){return k(q)&&4326===q.wkid};a.isWKIDFromMars=u;a.isWKIDFromMoon=h;a.isWebMercator=n;a.isWrappable=function(q){return k(q)&&null!=q.wkid&&!0===l[q.wkid]};Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/SupportedGCSWkids":function(){define(["exports"],function(a){a.SupportedGCSWkids=void 0;var b=a.SupportedGCSWkids||(a.SupportedGCSWkids={});b[b.CGCS2000=4490]="CGCS2000";b[b.GCSMARS2000=104971]="GCSMARS2000";b[b.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE";b[b.GCSMOON2000=104903]="GCSMOON2000";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/WKIDUnitConversion":function(){define(function(){let a;
const b={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5E4,15E4],units:"Meter Foot Foot_US Foot_Clarke Yard_Clarke Link_Clarke Yard_Sears Foot_Sears Chain_Sears Chain_Benoit_1895_B Yard_Indian Yard_Indian_1937 Foot_Gold_Coast Chain Chain_Sears_1922_Truncated 50_Kilometers 150_Kilometers".split(" "),2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,
2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,
3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,
3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,
3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5048:0,5167:0,5168:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,
5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,
6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,
6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,
6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,
6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,
7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,
7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,
8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,
8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,
8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22332:0,22391:0,22392:0,22700:0,22770:0,
22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25E3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,
30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,
102706:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,
103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,
103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,
103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2};
for(a=2E3;2045>=a;a++)b[a]=0;for(a=2056;2065>=a;a++)b[a]=0;for(a=2067;2135>=a;a++)b[a]=0;for(a=2137;2154>=a;a++)b[a]=0;for(a=2161;2170>=a;a++)b[a]=0;for(a=2172;2193>=a;a++)b[a]=0;for(a=2195;2198>=a;a++)b[a]=0;for(a=2200;2203>=a;a++)b[a]=0;for(a=2205;2217>=a;a++)b[a]=0;for(a=2222;2224>=a;a++)b[a]=1;for(a=2225;2250>=a;a++)b[a]=2;for(a=2251;2253>=a;a++)b[a]=1;for(a=2257;2264>=a;a++)b[a]=2;for(a=2274;2279>=a;a++)b[a]=2;for(a=2280;2282>=a;a++)b[a]=1;for(a=2283;2289>=a;a++)b[a]=2;for(a=2290;2292>=a;a++)b[a]=
0;for(a=2308;2313>=a;a++)b[a]=0;for(a=2315;2491>=a;a++)b[a]=0;for(a=2494;2866>=a;a++)b[a]=0;for(a=2867;2869>=a;a++)b[a]=1;for(a=2870;2888>=a;a++)b[a]=2;for(a=2891;2895>=a;a++)b[a]=2;for(a=2896;2898>=a;a++)b[a]=1;for(a=2902;2908>=a;a++)b[a]=2;for(a=2915;2920>=a;a++)b[a]=2;for(a=2921;2923>=a;a++)b[a]=1;for(a=2924;2930>=a;a++)b[a]=2;for(a=2931;2962>=a;a++)b[a]=0;for(a=2964;2968>=a;a++)b[a]=2;for(a=2969;2973>=a;a++)b[a]=0;for(a=2975;2991>=a;a++)b[a]=0;for(a=2995;3051>=a;a++)b[a]=0;for(a=3054;3079>=a;a++)b[a]=
0;for(a=3081;3088>=a;a++)b[a]=0;for(a=3092;3101>=a;a++)b[a]=0;for(a=3106;3138>=a;a++)b[a]=0;for(a=3146;3151>=a;a++)b[a]=0;for(a=3153;3166>=a;a++)b[a]=0;for(a=3168;3172>=a;a++)b[a]=0;for(a=3174;3203>=a;a++)b[a]=0;for(a=3294;3358>=a;a++)b[a]=0;for(a=3367;3403>=a;a++)b[a]=0;for(a=3408;3416>=a;a++)b[a]=0;for(a=3417;3438>=a;a++)b[a]=2;for(a=3441;3446>=a;a++)b[a]=2;for(a=3447;3450>=a;a++)b[a]=0;for(a=3451;3459>=a;a++)b[a]=2;for(a=3460;3478>=a;a++)b[a]=0;for(a=3554;3559>=a;a++)b[a]=0;for(a=3560;3570>=a;a++)b[a]=
2;for(a=3571;3581>=a;a++)b[a]=0;for(a=3594;3597>=a;a++)b[a]=0;for(a=3601;3604>=a;a++)b[a]=0;for(a=3637;3639>=a;a++)b[a]=0;for(a=3665;3667>=a;a++)b[a]=0;for(a=3693;3695>=a;a++)b[a]=0;for(a=3701;3727>=a;a++)b[a]=0;for(a=3728;3739>=a;a++)b[a]=2;for(a=3740;3751>=a;a++)b[a]=0;for(a=3753;3760>=a;a++)b[a]=2;for(a=3761;3773>=a;a++)b[a]=0;for(a=3775;3777>=a;a++)b[a]=0;for(a=3779;3781>=a;a++)b[a]=0;for(a=3783;3785>=a;a++)b[a]=0;for(a=3788;3791>=a;a++)b[a]=0;for(a=3797;3802>=a;a++)b[a]=0;for(a=3814;3816>=a;a++)b[a]=
0;for(a=3825;3829>=a;a++)b[a]=0;for(a=3832;3841>=a;a++)b[a]=0;for(a=3844;3852>=a;a++)b[a]=0;for(a=3873;3885>=a;a++)b[a]=0;for(a=3890;3893>=a;a++)b[a]=0;for(a=3907;3912>=a;a++)b[a]=0;for(a=3942;3950>=a;a++)b[a]=0;for(a=3968;3970>=a;a++)b[a]=0;for(a=3973;3976>=a;a++)b[a]=0;for(a=3986;3989>=a;a++)b[a]=0;for(a=3994;3997>=a;a++)b[a]=0;for(a=4048;4051>=a;a++)b[a]=0;for(a=4056;4063>=a;a++)b[a]=0;for(a=4093;4096>=a;a++)b[a]=0;for(a=4390;4398>=a;a++)b[a]=0;for(a=4399;4413>=a;a++)b[a]=2;for(a=4418;4433>=a;a++)b[a]=
2;for(a=4455;4457>=a;a++)b[a]=2;for(a=4484;4489>=a;a++)b[a]=0;for(a=4491;4554>=a;a++)b[a]=0;for(a=4568;4589>=a;a++)b[a]=0;for(a=4652;4656>=a;a++)b[a]=0;for(a=4766;4800>=a;a++)b[a]=0;for(a=5014;5016>=a;a++)b[a]=0;for(a=5069;5072>=a;a++)b[a]=0;for(a=5105;5130>=a;a++)b[a]=0;for(a=5173;5188>=a;a++)b[a]=0;for(a=5253;5259>=a;a++)b[a]=0;for(a=5269;5275>=a;a++)b[a]=0;for(a=5292;5311>=a;a++)b[a]=0;for(a=5329;5331>=a;a++)b[a]=0;for(a=5343;5349>=a;a++)b[a]=0;for(a=5355;5357>=a;a++)b[a]=0;for(a=5387;5389>=a;a++)b[a]=
0;for(a=5459;5463>=a;a++)b[a]=0;for(a=5479;5482>=a;a++)b[a]=0;for(a=5518;5520>=a;a++)b[a]=0;for(a=5530;5539>=a;a++)b[a]=0;for(a=5550;5552>=a;a++)b[a]=0;for(a=5562;5583>=a;a++)b[a]=0;for(a=5623;5625>=a;a++)b[a]=2;for(a=5631;5639>=a;a++)b[a]=0;for(a=5649;5653>=a;a++)b[a]=0;for(a=5663;5680>=a;a++)b[a]=0;for(a=5682;5685>=a;a++)b[a]=0;for(a=5875;5877>=a;a++)b[a]=0;for(a=5896;5899>=a;a++)b[a]=0;for(a=5921;5940>=a;a++)b[a]=0;for(a=6050;6125>=a;a++)b[a]=0;for(a=6244;6275>=a;a++)b[a]=0;for(a=6328;6348>=a;a++)b[a]=
0;for(a=6350;6356>=a;a++)b[a]=0;for(a=6366;6372>=a;a++)b[a]=0;for(a=6381;6387>=a;a++)b[a]=0;for(a=6393;6404>=a;a++)b[a]=0;for(a=6480;6483>=a;a++)b[a]=0;for(a=6511;6514>=a;a++)b[a]=0;for(a=6579;6581>=a;a++)b[a]=0;for(a=6619;6624>=a;a++)b[a]=0;for(a=6625;6627>=a;a++)b[a]=2;for(a=6628;6632>=a;a++)b[a]=0;for(a=6634;6637>=a;a++)b[a]=0;for(a=6669;6692>=a;a++)b[a]=0;for(a=6707;6709>=a;a++)b[a]=0;for(a=6720;6723>=a;a++)b[a]=0;for(a=6732;6738>=a;a++)b[a]=0;for(a=6931;6933>=a;a++)b[a]=0;for(a=6956;6959>=a;a++)b[a]=
0;for(a=7005;7007>=a;a++)b[a]=0;for(a=7057;7070>=a;a++)b[a]=2;for(a=7074;7082>=a;a++)b[a]=0;for(a=7109;7118>=a;a++)b[a]=0;for(a=7119;7127>=a;a++)b[a]=1;for(a=7374;7376>=a;a++)b[a]=0;for(a=7528;7586>=a;a++)b[a]=0;for(a=7587;7645>=a;a++)b[a]=2;for(a=7692;7696>=a;a++)b[a]=0;for(a=7755;7787>=a;a++)b[a]=0;for(a=7791;7795>=a;a++)b[a]=0;for(a=7799;7801>=a;a++)b[a]=0;for(a=7803;7805>=a;a++)b[a]=0;for(a=7825;7831>=a;a++)b[a]=0;for(a=7845;7859>=a;a++)b[a]=0;for(a=8013;8032>=a;a++)b[a]=0;for(a=8065;8068>=a;a++)b[a]=
1;for(a=8518;8529>=a;a++)b[a]=2;for(a=8533;8536>=a;a++)b[a]=2;for(a=8538;8540>=a;a++)b[a]=2;for(a=8677;8679>=a;a++)b[a]=0;for(a=8836;8840>=a;a++)b[a]=0;for(a=8857;8859>=a;a++)b[a]=0;for(a=8908;8910>=a;a++)b[a]=0;for(a=9154;9159>=a;a++)b[a]=0;for(a=9205;9218>=a;a++)b[a]=0;for(a=9271;9273>=a;a++)b[a]=0;for(a=9295;9297>=a;a++)b[a]=0;for(a=9356;9360>=a;a++)b[a]=0;for(a=9404;9407>=a;a++)b[a]=0;for(a=9476;9482>=a;a++)b[a]=0;for(a=9487;9494>=a;a++)b[a]=0;for(a=9697;9699>=a;a++)b[a]=0;for(a=20002;20032>=
a;a++)b[a]=0;for(a=20062;20092>=a;a++)b[a]=0;for(a=20135;20138>=a;a++)b[a]=0;for(a=20248;20258>=a;a++)b[a]=0;for(a=20348;20358>=a;a++)b[a]=0;for(a=20436;20440>=a;a++)b[a]=0;for(a=20822;20824>=a;a++)b[a]=0;for(a=20904;20932>=a;a++)b[a]=0;for(a=20934;20936>=a;a++)b[a]=0;for(a=21004;21032>=a;a++)b[a]=0;for(a=21035;21037>=a;a++)b[a]=0;for(a=21095;21097>=a;a++)b[a]=0;for(a=21148;21150>=a;a++)b[a]=0;for(a=21207;21264>=a;a++)b[a]=0;for(a=21307;21364>=a;a++)b[a]=0;for(a=21413;21423>=a;a++)b[a]=0;for(a=21453;21463>=
a;a++)b[a]=0;for(a=21473;21483>=a;a++)b[a]=0;for(a=21780;21782>=a;a++)b[a]=0;for(a=21891;21894>=a;a++)b[a]=0;for(a=21896;21899>=a;a++)b[a]=0;for(a=22171;22177>=a;a++)b[a]=0;for(a=22181;22187>=a;a++)b[a]=0;for(a=22191;22197>=a;a++)b[a]=0;for(a=22234;22236>=a;a++)b[a]=0;for(a=22521;22525>=a;a++)b[a]=0;for(a=22991;22994>=a;a++)b[a]=0;for(a=23028;23038>=a;a++)b[a]=0;for(a=23830;23853>=a;a++)b[a]=0;for(a=23866;23872>=a;a++)b[a]=0;for(a=23877;23884>=a;a++)b[a]=0;for(a=23886;23894>=a;a++)b[a]=0;for(a=23946;23948>=
a;a++)b[a]=0;for(a=24311;24313>=a;a++)b[a]=0;for(a=24342;24347>=a;a++)b[a]=0;for(a=24370;24374>=a;a++)b[a]=10;for(a=24375;24381>=a;a++)b[a]=0;for(a=24718;24721>=a;a++)b[a]=0;for(a=24817;24821>=a;a++)b[a]=0;for(a=24877;24882>=a;a++)b[a]=0;for(a=24891;24893>=a;a++)b[a]=0;for(a=25391;25395>=a;a++)b[a]=0;for(a=25828;25838>=a;a++)b[a]=0;for(a=26191;26195>=a;a++)b[a]=0;for(a=26391;26393>=a;a++)b[a]=0;for(a=26701;26722>=a;a++)b[a]=0;for(a=26729;26799>=a;a++)b[a]=2;for(a=26801;26803>=a;a++)b[a]=2;for(a=26811;26813>=
a;a++)b[a]=2;for(a=26847;26870>=a;a++)b[a]=2;for(a=26891;26899>=a;a++)b[a]=0;for(a=26901;26923>=a;a++)b[a]=0;for(a=26929;26946>=a;a++)b[a]=0;for(a=26948;26998>=a;a++)b[a]=0;for(a=27037;27040>=a;a++)b[a]=0;for(a=27205;27232>=a;a++)b[a]=0;for(a=27258;27260>=a;a++)b[a]=0;for(a=27391;27398>=a;a++)b[a]=0;for(a=27561;27564>=a;a++)b[a]=0;for(a=27571;27574>=a;a++)b[a]=0;for(a=27581;27584>=a;a++)b[a]=0;for(a=27591;27594>=a;a++)b[a]=0;for(a=28191;28193>=a;a++)b[a]=0;for(a=28348;28358>=a;a++)b[a]=0;for(a=28402;28432>=
a;a++)b[a]=0;for(a=28462;28492>=a;a++)b[a]=0;for(a=29118;29122>=a;a++)b[a]=0;for(a=29168;29172>=a;a++)b[a]=0;for(a=29177;29185>=a;a++)b[a]=0;for(a=29187;29195>=a;a++)b[a]=0;for(a=29900;29903>=a;a++)b[a]=0;for(a=30161;30179>=a;a++)b[a]=0;for(a=30491;30494>=a;a++)b[a]=0;for(a=30729;30732>=a;a++)b[a]=0;for(a=31251;31259>=a;a++)b[a]=0;for(a=31265;31268>=a;a++)b[a]=0;for(a=31275;31279>=a;a++)b[a]=0;for(a=31281;31297>=a;a++)b[a]=0;for(a=31461;31469>=a;a++)b[a]=0;for(a=31491;31495>=a;a++)b[a]=0;for(a=31917;31922>=
a;a++)b[a]=0;for(a=31965;32E3>=a;a++)b[a]=0;for(a=32001;32003>=a;a++)b[a]=2;for(a=32005;32031>=a;a++)b[a]=2;for(a=32033;32060>=a;a++)b[a]=2;for(a=32064;32067>=a;a++)b[a]=2;for(a=32074;32077>=a;a++)b[a]=2;for(a=32081;32086>=a;a++)b[a]=0;for(a=32107;32130>=a;a++)b[a]=0;for(a=32133;32158>=a;a++)b[a]=0;for(a=32164;32167>=a;a++)b[a]=2;for(a=32180;32199>=a;a++)b[a]=0;for(a=32201;32260>=a;a++)b[a]=0;for(a=32301;32360>=a;a++)b[a]=0;for(a=32601;32662>=a;a++)b[a]=0;for(a=32664;32667>=a;a++)b[a]=2;for(a=32701;32761>=
a;a++)b[a]=0;for(a=53001;53004>=a;a++)b[a]=0;for(a=53008;53019>=a;a++)b[a]=0;for(a=53021;53032>=a;a++)b[a]=0;for(a=53034;53037>=a;a++)b[a]=0;for(a=53042;53046>=a;a++)b[a]=0;for(a=53074;53080>=a;a++)b[a]=0;for(a=54001;54004>=a;a++)b[a]=0;for(a=54008;54019>=a;a++)b[a]=0;for(a=54021;54032>=a;a++)b[a]=0;for(a=54034;54037>=a;a++)b[a]=0;for(a=54042;54046>=a;a++)b[a]=0;for(a=54048;54053>=a;a++)b[a]=0;for(a=54074;54080>=a;a++)b[a]=0;for(a=54098;54101>=a;a++)b[a]=0;for(a=102001;102040>=a;a++)b[a]=0;for(a=
102042;102063>=a;a++)b[a]=0;for(a=102065;102067>=a;a++)b[a]=0;for(a=102070;102117>=a;a++)b[a]=0;for(a=102122;102216>=a;a++)b[a]=0;for(a=102221;102377>=a;a++)b[a]=0;for(a=102382;102388>=a;a++)b[a]=0;for(a=102389;102398>=a;a++)b[a]=2;for(a=102399;102444>=a;a++)b[a]=0;for(a=102445;102447>=a;a++)b[a]=2;for(a=102448;102458>=a;a++)b[a]=0;for(a=102459;102468>=a;a++)b[a]=2;for(a=102469;102499>=a;a++)b[a]=0;for(a=102500;102519>=a;a++)b[a]=1;for(a=102520;102524>=a;a++)b[a]=0;for(a=102525;102529>=a;a++)b[a]=
2;for(a=102530;102588>=a;a++)b[a]=0;for(a=102590;102598>=a;a++)b[a]=0;for(a=102601;102603>=a;a++)b[a]=0;for(a=102605;102628>=a;a++)b[a]=0;for(a=102629;102646>=a;a++)b[a]=2;for(a=102648;102700>=a;a++)b[a]=2;for(a=102701;102703>=a;a++)b[a]=0;for(a=102707;102730>=a;a++)b[a]=2;for(a=102733;102758>=a;a++)b[a]=2;for(a=102767;102900>=a;a++)b[a]=0;for(a=102901;102933>=a;a++)b[a]=2;for(a=102934;102950>=a;a++)b[a]=13;for(a=102951;102955>=a;a++)b[a]=0;for(a=102961;102963>=a;a++)b[a]=0;for(a=102965;102969>=a;a++)b[a]=
0;for(a=102971;102973>=a;a++)b[a]=0;for(a=102975;102989>=a;a++)b[a]=0;for(a=102990;102992>=a;a++)b[a]=1;for(a=102997;103002>=a;a++)b[a]=0;for(a=103003;103008>=a;a++)b[a]=2;for(a=103009;103011>=a;a++)b[a]=0;for(a=103012;103014>=a;a++)b[a]=2;for(a=103019;103021>=a;a++)b[a]=0;for(a=103022;103024>=a;a++)b[a]=2;for(a=103029;103031>=a;a++)b[a]=0;for(a=103032;103034>=a;a++)b[a]=2;for(a=103065;103068>=a;a++)b[a]=0;for(a=103074;103076>=a;a++)b[a]=0;for(a=103077;103079>=a;a++)b[a]=1;for(a=103080;103082>=a;a++)b[a]=
0;for(a=103083;103085>=a;a++)b[a]=2;for(a=103090;103093>=a;a++)b[a]=0;for(a=103097;103099>=a;a++)b[a]=0;for(a=103100;103102>=a;a++)b[a]=2;for(a=103107;103109>=a;a++)b[a]=0;for(a=103110;103112>=a;a++)b[a]=2;for(a=103113;103116>=a;a++)b[a]=0;for(a=103117;103120>=a;a++)b[a]=2;for(a=103153;103157>=a;a++)b[a]=0;for(a=103158;103162>=a;a++)b[a]=2;for(a=103163;103165>=a;a++)b[a]=0;for(a=103166;103168>=a;a++)b[a]=1;for(a=103169;103171>=a;a++)b[a]=2;for(a=103186;103188>=a;a++)b[a]=0;for(a=103189;103191>=a;a++)b[a]=
2;for(a=103192;103195>=a;a++)b[a]=0;for(a=103196;103199>=a;a++)b[a]=2;for(a=103200;103224>=a;a++)b[a]=0;for(a=103225;103227>=a;a++)b[a]=1;for(a=103232;103237>=a;a++)b[a]=0;for(a=103238;103243>=a;a++)b[a]=2;for(a=103244;103246>=a;a++)b[a]=0;for(a=103247;103249>=a;a++)b[a]=2;for(a=103254;103256>=a;a++)b[a]=0;for(a=103257;103259>=a;a++)b[a]=2;for(a=103264;103266>=a;a++)b[a]=0;for(a=103267;103269>=a;a++)b[a]=2;for(a=103300;103375>=a;a++)b[a]=0;for(a=103381;103383>=a;a++)b[a]=0;for(a=103384;103386>=a;a++)b[a]=
1;for(a=103387;103389>=a;a++)b[a]=0;for(a=103390;103392>=a;a++)b[a]=2;for(a=103397;103399>=a;a++)b[a]=0;for(a=103400;103471>=a;a++)b[a]=2;for(a=103476;103478>=a;a++)b[a]=0;for(a=103479;103481>=a;a++)b[a]=2;for(a=103486;103488>=a;a++)b[a]=0;for(a=103489;103491>=a;a++)b[a]=2;for(a=103492;103495>=a;a++)b[a]=0;for(a=103496;103499>=a;a++)b[a]=2;for(a=103528;103543>=a;a++)b[a]=0;for(a=103544;103548>=a;a++)b[a]=2;for(a=103549;103551>=a;a++)b[a]=0;for(a=103552;103554>=a;a++)b[a]=1;for(a=103555;103557>=a;a++)b[a]=
2;for(a=103558;103560>=a;a++)b[a]=0;for(a=103571;103573>=a;a++)b[a]=0;for(a=103574;103576>=a;a++)b[a]=2;for(a=103577;103580>=a;a++)b[a]=0;for(a=103581;103583>=a;a++)b[a]=2;for(a=103595;103694>=a;a++)b[a]=0;for(a=103696;103699>=a;a++)b[a]=0;for(a=103700;103793>=a;a++)b[a]=2;for(a=103794;103887>=a;a++)b[a]=0;for(a=103900;103971>=a;a++)b[a]=2;return b})},"esri/portal/Portal":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../config ../kernel ../request ../core/Error ../core/JSONSupport ../core/Loadable ../core/maybe ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../geometry/Extent ../intl/locale ./PortalQueryParams ./PortalQueryResult ./PortalUser ../support/apiKeyUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A){const B=C=>Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"}));var E;let w;const D={PortalGroup:()=>new Promise((C,F)=>a(["./PortalGroup"],G=>C(B(G)),F)),PortalItem:()=>new Promise((C,F)=>a(["./PortalItem"],G=>C(B(G)),F)),PortalUser:()=>new Promise((C,F)=>a(["./PortalUser"],G=>C(B(G)),F))};r=E=function(C){function F(H){H=C.call(this,H)||this;H._esriIdCredentialCreateHandle=null;H.access=null;H.allSSL=
!1;H.authMode="auto";H.authorizedCrossOriginDomains=null;H.basemapGalleryGroupQuery=null;H.bingKey=null;H.canListApps=!1;H.canListData=!1;H.canListPreProvisionedItems=!1;H.canProvisionDirectPurchase=!1;H.canSearchPublic=!0;H.canShareBingPublic=!1;H.canSharePublic=!1;H.canSignInArcGIS=!1;H.canSignInIDP=!1;H.colorSetsGroupQuery=null;H.commentsEnabled=!1;H.created=null;H.culture=null;H.customBaseUrl=null;H.defaultBasemap=null;H.defaultDevBasemap=null;H.defaultExtent=null;H.defaultVectorBasemap=null;
H.description=null;H.devBasemapGalleryGroupQuery=null;H.eueiEnabled=null;H.featuredGroups=null;H.featuredItemsGroupQuery=null;H.galleryTemplatesGroupQuery=null;H.livingAtlasGroupQuery=null;H.hasCategorySchema=!1;H.helperServices=null;H.homePageFeaturedContent=null;H.homePageFeaturedContentCount=null;H.httpPort=null;H.httpsPort=null;H.id=null;H.ipCntryCode=null;H.isPortal=!1;H.isReadOnly=!1;H.layerTemplatesGroupQuery=null;H.maxTokenExpirationMinutes=null;H.modified=null;H.name=null;H.portalHostname=
null;H.portalMode=null;H.portalProperties=null;H.region=null;H.rotatorPanels=null;H.showHomePageDescription=!1;H.sourceJSON=null;H.supportsHostedServices=!1;H.symbolSetsGroupQuery=null;H.templatesGroupQuery=null;H.units=null;H.url=e.portalUrl;H.urlKey=null;H.user=null;H.useStandardizedQuery=!1;H.useVectorBasemaps=!1;H.vectorBasemapGalleryGroupQuery=null;return H}b._inheritsLoose(F,C);var G=F.prototype;G.normalizeCtorArgs=function(H){return"string"===typeof H?{url:H}:H};G.destroy=function(){this._esriIdCredentialCreateHandle=
g.removeMaybe(this._esriIdCredentialCreateHandle)};G.readAuthorizedCrossOriginDomains=function(H){if(H)for(const I of H)e.request.trustedServers.includes(I)||e.request.trustedServers.push(I);return H};G.readDefaultBasemap=function(H){return this._readBasemap(H)};G.readDefaultDevBasemap=function(H){return this._readBasemap(H)};G.readDefaultVectorBasemap=function(H){return this._readBasemap(H)};G.readUrlKey=function(H){return H?H.toLowerCase():H};G.readUser=function(H){let I=null;H&&(I=y.fromJSON(H),
I.portal=this);return I};G.load=function(H){const I=(new Promise((J,K)=>a(["../Basemap"],N=>J(B(N)),K))).then(({default:J})=>{k.throwIfAborted(H);w=J}).then(()=>this.sourceJSON?this.sourceJSON:this._fetchSelf(this.authMode,!1,H)).then(J=>{if(d.id){const K=d.id;this.credential=K.findCredential(this.restUrl);this.credential||this.authMode!==E.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle=K.on("credential-create",()=>{K.findCredential(this.restUrl)&&this._signIn().catch(()=>{})}))}this.sourceJSON=
J;this.read(J)});this.addResolvingPromise(I);return Promise.resolve(this)};G.createElevationLayers=function(){var H=b._asyncToGenerator(function*(){yield this.load();const I=this._getHelperService("defaultElevationLayers"),J=(yield new Promise((K,N)=>a(["../layers/ElevationLayer"],U=>K(B(U)),N))).default;return I?I.map(K=>new J({id:K.id,url:K.url})):[]});return function(){return H.apply(this,arguments)}}();G.fetchBasemaps=function(H,I){const J=new x;J.query=H||(e.apiKey&&A.supportsApiKey(this.url)?
this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery);J.disableExtraQuery=!0;return this.queryGroups(J,I).then(K=>{J.num=100;J.query='type:"Web Map" -type:"Web Application"';return K.total?(K=K.results[0],J.sortField=K.sortField||"name",J.sortOrder=K.sortOrder||"desc",K.queryItems(J,I)):null}).then(K=>K&&K.total?K.results.filter(N=>"Web Map"===N.type).map(N=>new w({portalItem:N})):[])};G.fetchCategorySchema=function(H){return this.hasCategorySchema?
this._request(this.restUrl+"/portals/self/categorySchema",H).then(I=>I.categorySchema):k.isAborted(H)?Promise.reject(k.createAbortError()):Promise.resolve([])};G.fetchFeaturedGroups=function(H){const I=this.featuredGroups,J=new x;J.num=100;J.sortField="title";if(I&&I.length){const K=[];for(const N of I)K.push(`(title:"${N.title}" AND owner:${N.owner})`);J.query=K.join(" OR ");return this.queryGroups(J,H).then(N=>N.results)}return k.isAborted(H)?Promise.reject(k.createAbortError()):Promise.resolve([])};
G.fetchRegions=function(H){const I=this.user?.culture||this.culture||v.getLocale();return this._request(this.restUrl+"/portals/regions",{...H,query:{culture:I}})};G.fetchSettings=function(H){const I=this.user?.culture||this.culture||v.getLocale();return this._request(this.restUrl+"/portals/self/settings",{...H,query:{culture:I}})};F.getDefault=function(){if(!E._default||E._default.destroyed)E._default=new E;return E._default};G.queryGroups=function(H,I){return this._queryPortal("/community/groups",
H,"PortalGroup",I)};G.queryItems=function(H,I){return this._queryPortal("/search",H,"PortalItem",I)};G.queryUsers=function(H,I){H.sortField||(H.sortField="username");return this._queryPortal("/community/users",H,"PortalUser",I)};G.toJSON=function(){throw new u("internal:not-yet-implemented","Portal.toJSON is not yet implemented");};F.fromJSON=function(H){if(!H)return null;if(H.declaredClass)throw Error("JSON object is already hydrated");return new E({sourceJSON:H})};G._getHelperService=function(H){const I=
this.helperServices&&this.helperServices[H];if(!I)throw new u("portal:service-not-found",`The \`helperServices\` do not include an entry named "${H}"`);return I};G._getHelperServiceUrl=function(H){const I=this._getHelperService(H);if(!I?.url)throw new u("portal:service-url-not-found",`The \`helperServices\` entry "${H}" does not include a \`url\` value`);return I.url};G._fetchSelf=function(H=this.authMode,I=!1,J){const K=this.restUrl+"/portals/self";H={authMode:H,query:{culture:v.getLocale().toLowerCase()},
...J};"auto"===H.authMode&&(H.authMode="no-prompt");I&&(H.query.default=!0);return this._request(K,H)};G._queryPortal=function(H,I,J,K){const N=m.ensureType(x,I),U=ba=>this._request(this.restUrl+H,{...N.toRequestOptions(this),...K}).then(ka=>{const P=N.clone();P.start=ka.nextStart;return new z({nextQueryParams:P,queryParams:N,total:ka.total,results:E._resultsToTypedArray(ba,{portal:this},ka,K)})}).then(ka=>Promise.all(ka.results.map(P=>"function"===typeof P.when?P.when():ka)).then(()=>ka,P=>{k.throwIfAbortError(P);
return ka}));return J&&D[J]?D[J]().then(({default:ba})=>{k.throwIfAborted(K);return U(ba)}):U()};G._signIn=function(){if(this.authMode===E.AUTH_MODE_ANONYMOUS)return Promise.reject(new u("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const H=I=>Promise.resolve().then(()=>{if("not-loaded"===this.loadStatus)return I||(this.authMode="immediate"),this.load().then(()=>null);if("loading"===this.loadStatus)return this.load().then(()=>
{if(this.credential)return null;this.credential=I;return this._fetchSelf("immediate")});if(this.user&&this.credential===I)return null;this.credential=I;return this._fetchSelf("immediate")}).then(J=>{J&&(this.sourceJSON=J,this.read(J))});return d.id?d.id.getCredential(this.restUrl).then(I=>H(I)):H(this.credential)};G._normalizeSSL=function(H){return H.replace(/^http:/i,"https:").replace(":7080",":7443")};G._normalizeUrl=function(H){const I=this.credential&&this.credential.token;return this._normalizeSSL(I?
H+(H.includes("?")?"\x26":"?")+"token\x3d"+I:H)};G._requestToTypedArray=function(H,I,J){return this._request(H,I).then(K=>{const N=E._resultsToTypedArray(J,{portal:this},K);return Promise.all(N.map(U=>"function"===typeof U.when?U.when():K)).then(()=>N,()=>N)})};G._readBasemap=function(H){return H?(H=w.fromJSON(H),H.portalItem={portal:this},H):null};G._request=function(H,I={}){const J={f:"json",...I.query},{authMode:K=this.authMode===E.AUTH_MODE_ANONYMOUS?"anonymous":"auto",body:N=null,cacheBust:U=
!1,method:ba="auto",responseType:ka="json",signal:P}=I;I={authMode:K,body:N,cacheBust:U,method:ba,query:J,responseType:ka,timeout:0,signal:P};return n(this._normalizeSSL(H),I).then(V=>V.data)};F._resultsToTypedArray=function(H,I,J,K){if(J){const N=g.isSome(K)?K.signal:null;J=J.listings||J.notifications||J.userInvitations||J.tags||J.items||J.groups||J.comments||J.provisions||J.results||J.relatedItems||J;if(H||I)J=J.map(U=>{U=Object.assign(H?H.fromJSON(U):U,I);"function"===typeof U.load&&U.load(N);
return U})}else J=[];return J};b._createClass(F,[{key:"extraQuery",get:function(){const H=!(this.user&&this.user.orgId)||this.canSearchPublic;return this.id&&!H?` AND orgid:${this.id}`:null}},{key:"isOrganization",get:function(){return!!this.access}},{key:"itemPageUrl",get:function(){return this.url?`${this.url}/home/item.html`:null}},{key:"restUrl",get:function(){let H=this.url;if(H){const I=H.indexOf("/sharing");H=0<I?H.substring(0,I):this.url.replace(/\/+$/,"");H+="/sharing/rest"}return H}},{key:"thumbnailUrl",
get:function(){const H=this.restUrl,I=this.thumbnail;return H&&I?this._normalizeSSL(H+"/portals/self/resources/"+I):null}}]);return F}(r.JSONSupportMixin(h));r.AUTH_MODE_ANONYMOUS="anonymous";r.AUTH_MODE_AUTO="auto";r.AUTH_MODE_IMMEDIATE="immediate";c.__decorate([p.property()],r.prototype,"access",void 0);c.__decorate([p.property()],r.prototype,"allSSL",void 0);c.__decorate([p.property()],r.prototype,"authMode",void 0);c.__decorate([p.property()],r.prototype,"authorizedCrossOriginDomains",void 0);
c.__decorate([t.reader("authorizedCrossOriginDomains")],r.prototype,"readAuthorizedCrossOriginDomains",null);c.__decorate([p.property()],r.prototype,"basemapGalleryGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"bingKey",void 0);c.__decorate([p.property()],r.prototype,"canListApps",void 0);c.__decorate([p.property()],r.prototype,"canListData",void 0);c.__decorate([p.property()],r.prototype,"canListPreProvisionedItems",void 0);c.__decorate([p.property()],r.prototype,"canProvisionDirectPurchase",
void 0);c.__decorate([p.property()],r.prototype,"canSearchPublic",void 0);c.__decorate([p.property()],r.prototype,"canShareBingPublic",void 0);c.__decorate([p.property()],r.prototype,"canSharePublic",void 0);c.__decorate([p.property()],r.prototype,"canSignInArcGIS",void 0);c.__decorate([p.property()],r.prototype,"canSignInIDP",void 0);c.__decorate([p.property()],r.prototype,"colorSetsGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"commentsEnabled",void 0);c.__decorate([p.property({type:Date})],
r.prototype,"created",void 0);c.__decorate([p.property()],r.prototype,"credential",void 0);c.__decorate([p.property()],r.prototype,"culture",void 0);c.__decorate([p.property()],r.prototype,"currentVersion",void 0);c.__decorate([p.property()],r.prototype,"customBaseUrl",void 0);c.__decorate([p.property()],r.prototype,"defaultBasemap",void 0);c.__decorate([t.reader("defaultBasemap")],r.prototype,"readDefaultBasemap",null);c.__decorate([p.property()],r.prototype,"defaultDevBasemap",void 0);c.__decorate([t.reader("defaultDevBasemap")],
r.prototype,"readDefaultDevBasemap",null);c.__decorate([p.property({type:q})],r.prototype,"defaultExtent",void 0);c.__decorate([p.property()],r.prototype,"defaultVectorBasemap",void 0);c.__decorate([t.reader("defaultVectorBasemap")],r.prototype,"readDefaultVectorBasemap",null);c.__decorate([p.property()],r.prototype,"description",void 0);c.__decorate([p.property()],r.prototype,"devBasemapGalleryGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"eueiEnabled",void 0);c.__decorate([p.property({readOnly:!0})],
r.prototype,"extraQuery",null);c.__decorate([p.property()],r.prototype,"featuredGroups",void 0);c.__decorate([p.property()],r.prototype,"featuredItemsGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"galleryTemplatesGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"livingAtlasGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"hasCategorySchema",void 0);c.__decorate([p.property()],r.prototype,"helpBase",void 0);c.__decorate([p.property()],r.prototype,"helperServices",
void 0);c.__decorate([p.property()],r.prototype,"helpMap",void 0);c.__decorate([p.property()],r.prototype,"homePageFeaturedContent",void 0);c.__decorate([p.property()],r.prototype,"homePageFeaturedContentCount",void 0);c.__decorate([p.property()],r.prototype,"httpPort",void 0);c.__decorate([p.property()],r.prototype,"httpsPort",void 0);c.__decorate([p.property()],r.prototype,"id",void 0);c.__decorate([p.property()],r.prototype,"ipCntryCode",void 0);c.__decorate([p.property({readOnly:!0})],r.prototype,
"isOrganization",null);c.__decorate([p.property()],r.prototype,"isPortal",void 0);c.__decorate([p.property()],r.prototype,"isReadOnly",void 0);c.__decorate([p.property({readOnly:!0})],r.prototype,"itemPageUrl",null);c.__decorate([p.property()],r.prototype,"layerTemplatesGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"maxTokenExpirationMinutes",void 0);c.__decorate([p.property({type:Date})],r.prototype,"modified",void 0);c.__decorate([p.property()],r.prototype,"name",void 0);c.__decorate([p.property()],
r.prototype,"portalHostname",void 0);c.__decorate([p.property()],r.prototype,"portalMode",void 0);c.__decorate([p.property()],r.prototype,"portalProperties",void 0);c.__decorate([p.property()],r.prototype,"region",void 0);c.__decorate([p.property({readOnly:!0})],r.prototype,"restUrl",null);c.__decorate([p.property()],r.prototype,"rotatorPanels",void 0);c.__decorate([p.property()],r.prototype,"showHomePageDescription",void 0);c.__decorate([p.property()],r.prototype,"sourceJSON",void 0);c.__decorate([p.property()],
r.prototype,"staticImagesUrl",void 0);c.__decorate([p.property({json:{name:"2DStylesGroupQuery"}})],r.prototype,"stylesGroupQuery2d",void 0);c.__decorate([p.property({json:{name:"stylesGroupQuery"}})],r.prototype,"stylesGroupQuery3d",void 0);c.__decorate([p.property()],r.prototype,"supportsHostedServices",void 0);c.__decorate([p.property()],r.prototype,"symbolSetsGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"templatesGroupQuery",void 0);c.__decorate([p.property()],r.prototype,"thumbnail",
void 0);c.__decorate([p.property({readOnly:!0})],r.prototype,"thumbnailUrl",null);c.__decorate([p.property()],r.prototype,"units",void 0);c.__decorate([p.property()],r.prototype,"url",void 0);c.__decorate([p.property()],r.prototype,"urlKey",void 0);c.__decorate([t.reader("urlKey")],r.prototype,"readUrlKey",null);c.__decorate([p.property()],r.prototype,"user",void 0);c.__decorate([t.reader("user")],r.prototype,"readUser",null);c.__decorate([p.property()],r.prototype,"useStandardizedQuery",void 0);
c.__decorate([p.property()],r.prototype,"useVectorBasemaps",void 0);c.__decorate([p.property()],r.prototype,"vectorBasemapGalleryGroupQuery",void 0);return r=E=c.__decorate([f.subclass("esri.portal.Portal")],r)})},"esri/kernel":function(){define("require exports ./chunks/_rollupPluginBabelHelpers ./core/has ./core/urlUtils ./support/revision".split(" "),function(a,b,c,e,d,n){b.id=void 0;e("host-webworker")||console.debug(`Using ArcGIS API for JavaScript ${"4.25"} [Date: ${n.buildDate}, Revision: ${n.commitHash.slice(0,
8)}]`);b.buildDate=n.buildDate;b.revision=n.commitHash;b.addTokenParameter=function(u){const r=b.id&&b.id.findCredential(u);return r&&r.token?d.addQueryParameter(u,"token",r.token):u};b.setId=function(u){b.id=u};b.version="4.25";b.workerMessages={request(u,r){return c._asyncToGenerator(function*(){var {default:h}=yield new Promise((p,l)=>a(["./request"],m=>p(Object.freeze(Object.defineProperty({__proto__:null,default:m},Symbol.toStringTag,{value:"Module"}))),l)),g=u.options;const k=g.responseType;
g.signal=r?.signal;g.responseType="native"===k||"native-request-init"===k?"native-request-init":k&&["blob","json","text"].includes(k)&&d.getInterceptor(u.url)?.after?k:"array-buffer";h=yield h(u.url,g);g={data:h.data,ssl:h.ssl};switch(h.requestOptions?.responseType){case "native-request-init":return delete g.data.signal,g;case "blob":g.data=yield g.data.arrayBuffer();break;case "json":g.data=(new TextEncoder).encode(JSON.stringify(g.data)).buffer;break;case "text":g.data=(new TextEncoder).encode(g.data).buffer}return{result:g,
transferList:[g.data]}})()}};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/revision":function(){define(["exports"],function(a){a.buildDate="20240611";a.commitHash="ee2b16f0814222716f01d5d56617316157e3730d";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/request":function(){define("require ./chunks/_rollupPluginBabelHelpers ./config ./kernel ./core/Error ./core/has ./core/lang ./core/maybe ./core/promiseUtils ./core/urlUtils ./portal/support/urlUtils ./support/apiKeyUtils ./support/requestUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){function m(da,la){return t.apply(this,arguments)}function t(){t=b._asyncToGenerator(function*(da,la){var sa=g.isDataProtocol(da);const L=g.isBlobProtocol(da);L||sa||(da=g.normalize(da));const O={url:da,requestOptions:{...r.unwrap(la)}};let ha=g.getInterceptor(da);if(ha){da=yield F(ha,O);if(null!=da)return{data:da,getHeader:Ba,requestOptions:O.requestOptions,url:O.url};ha.after||ha.error||(ha=null)}da=O.url;la=O.requestOptions;if("image"===la.responseType){if(n("host-webworker")||
n("host-node"))throw v("request:invalid-parameters",Error("responseType 'image' is not supported in Web Workers or Node environment"),O);}else if(sa)throw v("request:invalid-parameters",Error("Data URLs are not supported for responseType \x3d "+la.responseType),O);if("head"===la.method){if(la.body)throw v("request:invalid-parameters",Error("body parameter cannot be set when method is 'head'"),O);if(sa||L)throw v("request:invalid-parameters",Error("data and blob URLs are not supported for method 'head'"),
O);}yield x();if(ka)return ka.execute(da,la);const pa=new AbortController;h.onAbort(la,()=>pa.abort());sa=yield J({controller:pa,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:ha,params:O,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1});ha?.after?.(sa);return sa});return t.apply(this,arguments)}function f(da){(da=g.getOrigin(da))&&!m._corsServers.includes(da)&&m._corsServers.push(da)}function q(da){da=g.getOrigin(da);return!da||
da.endsWith(".arcgis.com")||m._corsServers.includes(da)||g.isTrustedServer(da)}function v(da,la,sa,L){let O="Error";const ha={url:sa.url,requestOptions:sa.requestOptions,getHeader:Ba,ssl:!1};if(la instanceof d)return la.details?(la.details=u.clone(la.details),la.details.url=sa.url,la.details.requestOptions=sa.requestOptions):la.details=ha,la;if(la){sa=L&&(Y=>L.headers.get(Y));const pa=L&&L.status,ya=la.message;ya&&(O=ya);sa&&(ha.getHeader=sa);ha.httpStatus=(null!=la.httpCode?la.httpCode:la.code)||
pa||0;ha.subCode=la.subcode;ha.messageCode=la.messageCode;ha.messages="string"===typeof la.details?[la.details]:la.details;ha.raw=Ha in la?la[Ha]:la}return h.isAbortError(la)?h.createAbortError():new d(da,O,ha)}function x(){return z.apply(this,arguments)}function z(){z=b._asyncToGenerator(function*(){n("host-webworker")?ka||(ka=yield new Promise((da,la)=>a(["./core/workers/request"],da,la))):m._abortableFetch||(m._abortableFetch=globalThis.fetch.bind(globalThis))});return z.apply(this,arguments)}
function y(){return A.apply(this,arguments)}function A(){A=b._asyncToGenerator(function*(){e.id||(yield new Promise((da,la)=>a(["./identity/IdentityManager"],sa=>da(Object.freeze(Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"}))),la)))});return A.apply(this,arguments)}function B(da){return E.apply(this,arguments)}function E(){E=b._asyncToGenerator(function*(da){const la=da.params.url,sa=da.params.requestOptions,L=da.controller.signal,O=sa.body;let ha=null,pa=
null;V&&"HTMLFormElement"in globalThis&&(O instanceof FormData?ha=O:O instanceof HTMLFormElement&&(ha=new FormData(O)));"string"===typeof O&&(pa=O);da.fetchOptions={cache:sa.cacheBust&&!m._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:sa.headers||{},method:"head"===sa.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:L};if(ha||pa)da.fetchOptions.body=ha||pa;"anonymous"===sa.authMode&&(da.useIdentity=!1);da.hasToken=!!(/token=/i.test(la)||
sa.query?.token||ha?.get("token"));!da.hasToken&&c.apiKey&&p.supportsApiKey(la)&&(sa.query||(sa.query={}),sa.query.token=c.apiKey,da.hasToken=!0);if(da.useIdentity&&!da.hasToken&&!da.credentialToken&&!w(la)&&!h.isAborted(L)){let ya;"immediate"===sa.authMode?(yield y(),ya=yield e.id.getCredential(la,{signal:L}),da.credential=ya):"no-prompt"===sa.authMode?(yield y(),ya=yield e.id.getCredential(la,{prompt:!1,signal:L}).catch(()=>{}),da.credential=ya):e.id&&(ya=e.id.findCredential(la));ya&&(da.credentialToken=
ya.token,da.useSSL=!!ya.ssl)}});return E.apply(this,arguments)}function w(da){return ta.some(la=>la.test(da))}function D(da){return C.apply(this,arguments)}function C(){C=b._asyncToGenerator(function*(da){let la=da.params.url;const sa=da.params.requestOptions,L=da.fetchOptions??{},O=g.isBlobProtocol(la)||g.isDataProtocol(la),ha=sa.responseType||"json";var pa=O?0:null!=sa.timeout?sa.timeout:P.timeout,ya=!1;if(!O){da.useSSL&&(la=g.toHTTPS(la));sa.cacheBust&&"default"===L.cache&&(la=g.addQueryParameter(la,
"request.preventCache",Date.now()));var Y={...sa.query};da.credentialToken&&(Y.token=da.credentialToken);ya=g.objectToQuery(Y);n("esri-url-encodes-apostrophe")&&(ya=ya.replace(/'/g,"%27"));const S=la.length+1+ya.length;ya="delete"===sa.method||"post"===sa.method||"put"===sa.method||!!sa.body||S>P.maxUrlLength;const fa=sa.useProxy||!!g.getProxyRule(la);if(fa){const R=g.getProxyUrl(la);var ea=R.path;!ya&&ea.length+1+S>P.maxUrlLength&&(ya=!0);R.query&&(Y={...R.query,...Y})}if("HEAD"===L.method&&(ya||
fa)){if(ya){if(S>P.maxUrlLength)throw v("request:invalid-parameters",Error("URL exceeds maximum length"),da.params);throw v("request:invalid-parameters",Error("cannot use POST request when method is 'head'"),da.params);}if(fa)throw v("request:invalid-parameters",Error("cannot use proxy when method is 'head'"),da.params);}ya?(L.method="delete"===sa.method?"DELETE":"put"===sa.method?"PUT":"POST",sa.body?la=g.addQueryParameters(la,Y):(L.body=g.objectToQuery(Y),L.headers||(L.headers={}),L.headers["Content-Type"]=
"application/x-www-form-urlencoded")):la=g.addQueryParameters(la,Y);fa&&(da.useProxy=!0,la=`${ea}?${la}`);Y.token&&V&&L.body instanceof FormData&&!k.isSecureProxyService(la)&&L.body.set("token",Y.token);sa.hasOwnProperty("withCredentials")?da.withCredentials=sa.withCredentials:g.hasSameOrigin(la,g.getAppUrl())||(g.isTrustedServer(la)?da.withCredentials=!0:e.id&&(ea=e.id.findServerInfo(la))&&ea.webTierAuth&&(da.withCredentials=!0));da.withCredentials&&(L.credentials="include",l.isNoCorsRequestRequired(la)&&
(yield l.sendNoCorsRequest(ya?g.addQueryParameters(la,Y):la)))}Y=0;let ma=!1;0<pa&&(Y=setTimeout(()=>{ma=!0;da.controller.abort()},pa));pa=void 0;let ja;try{if("native-request-init"===sa.responseType)ja=L,ja.url=la;else if("image"!==sa.responseType||"default"!==L.cache||"GET"!==L.method||ya||H(sa.headers)||!O&&!da.useProxy&&P.proxyUrl&&!q(la))if(pa=yield m._abortableFetch(la,L),da.useProxy||f(la),"native"===sa.responseType)ja=pa;else{if("HEAD"!==L.method)if(pa.ok){switch(ha){case "array-buffer":ja=
yield pa.arrayBuffer();break;case "blob":case "image":ja=yield pa.blob();break;default:ja=yield pa.text()}Y&&(clearTimeout(Y),Y=0);if("json"===ha||"xml"===ha||"document"===ha)if(ja)switch(ha){case "json":ja=JSON.parse(ja);break;case "xml":ja=I(ja,"application/xml");break;case "document":ja=I(ja,"text/html")}else ja=null;if(ja){if("array-buffer"===ha||"blob"===ha){const S=pa.headers.get("Content-Type");if(S&&/application\/json|text\/plain/i.test(S)&&750>=ja["blob"===ha?"size":"byteLength"])try{const fa=
yield(new Response(ja)).json();fa.error&&(ja=fa)}catch{}}"image"===ha&&ja instanceof Blob&&(ja=yield ba(URL.createObjectURL(ja),da,!0))}}else ja=yield pa.text()}else ja=yield ba(la,da)}catch(S){if("AbortError"===S.name){if(ma)throw Error("Timeout exceeded");throw h.createAbortError("Request canceled");}if(!pa&&S instanceof TypeError&&P.proxyUrl&&!sa.body&&"delete"!==sa.method&&"head"!==sa.method&&"post"!==sa.method&&"put"!==sa.method&&!da.useProxy&&!q(la))da.redoRequest=!0,g.addProxyRule({proxyUrl:P.proxyUrl,
urlPrefix:g.getOrigin(la)??""});else throw S;}finally{Y&&clearTimeout(Y)}return[pa,ja]});return C.apply(this,arguments)}function F(da,la){return G.apply(this,arguments)}function G(){G=b._asyncToGenerator(function*(da,la){if(null!=da.responseData)return da.responseData;da.headers&&(la.requestOptions.headers={...la.requestOptions.headers,...da.headers});da.query&&(la.requestOptions.query={...la.requestOptions.query,...da.query});if(da.before){let sa,L;try{L=yield da.before(la)}catch(O){sa=v("request:interceptor",
O,la)}if(L instanceof Error||L instanceof d)sa=v("request:interceptor",L,la);if(sa)throw da.error&&da.error(sa),sa;return L}});return G.apply(this,arguments)}function H(da){if(da)for(const la of Object.getOwnPropertyNames(da))if(da[la])return!0;return!1}function I(da,la){let sa;try{sa=(new DOMParser).parseFromString(da,la)}catch{}if(!sa||sa.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return sa}function J(da){return K.apply(this,arguments)}function K(){K=b._asyncToGenerator(function*(da){yield B(da);
let la;try{do[la,sa]=yield D(da);while(!(yield N(da,la,sa)))}catch(ha){var sa=v("request:server",ha,da.params,la);sa.details.ssl=da.useSSL;da.interceptor&&da.interceptor.error&&da.interceptor.error(sa);throw sa;}var L=da.params.url;sa&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(L)&&(da.hasToken||da.credentialToken||!sa.user?.username||g.isTrustedServer(L)||(L=g.getOrigin(L,!0))&&P.trustedServers.push(L),Array.isArray(sa.authorizedCrossOriginNoCorsDomains)&&l.registerNoCorsDomains(sa.authorizedCrossOriginNoCorsDomains));
if((L=da.credential)&&e.id){var O=e.id.findServerInfo(L.server);if(O=O&&O.owningSystemUrl)O=O.replace(/\/?$/,"/sharing"),(L=e.id.findCredential(O,L.userId))&&-1===e.id._getIdenticalSvcIdx(O,L)&&L.resources.unshift(O)}return{data:sa,getHeader:la?ha=>la?.headers.get(ha):Ba,requestOptions:da.params.requestOptions,ssl:da.useSSL,url:da.params.url}});return K.apply(this,arguments)}function N(da,la,sa){return U.apply(this,arguments)}function U(){U=b._asyncToGenerator(function*(da,la,sa){if(da.redoRequest)return da.redoRequest=
!1;var L=da.params.requestOptions;if(!la||"native"===L.responseType||"native-request-init"===L.responseType)return!0;let O;if(!la.ok)throw O=Error(`Unable to load ${la.url} status: ${la.status}`),O[Ha]=sa,O;sa&&(sa.error?O=sa.error:"error"===sa.status&&Array.isArray(sa.messages)&&(O={...sa},O[Ha]=sa,O.details=sa.messages));let ha;la=null;let pa;O&&(ha=Number(O.code),la=O.hasOwnProperty("subcode")?Number(O.subcode):null,pa=(pa=O.messageCode)&&pa.toUpperCase());L=L.authMode;if(403===ha&&(4===la||O.message&&
O.message.toLowerCase().includes("ssl")&&!O.message.toLowerCase().includes("permission"))){if(!da.useSSL)return da.useSSL=!0,!1}else if(!da.hasToken&&da.useIdentity&&("no-prompt"!==L||498===ha)&&void 0!==ha&&ca.includes(ha)&&!w(da.params.url)&&(403!==ha||pa&&!ra.includes(pa)&&(null==la||2===la&&da.credentialToken))){yield y();try{const ya=yield e.id.getCredential(da.params.url,{error:v("request:server",O,da.params),prompt:"no-prompt"!==L,signal:da.controller.signal,token:da.credentialToken});da.credential=
ya;da.credentialToken=ya.token;da.useSSL=da.useSSL||ya.ssl;return!1}catch(ya){if("no-prompt"===L)return da.credential=void 0,da.credentialToken=void 0,!1;O=ya}}if(O)throw O;return!0});return U.apply(this,arguments)}function ba(da,la,sa=!1){const L=la.controller.signal,O=new Image;O.crossOrigin=la.withCredentials?"use-credentials":"anonymous";O.alt="";O.fetchPriority=P.priority;O.src=da;return l.loadImageAsync(O,da,sa,L)}let ka;const P=c.request,V="FormData"in globalThis,ca=[499,498,403,401],ra=["COM_0056",
"COM_0057","SB_0008"],ta=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],Ba=()=>null,Ha=Symbol();m._abortableFetch=null;m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"];return m})},"esri/portal/support/urlUtils":function(){define(["exports"],function(a){const b=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,c={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",
portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};a.isSecureProxyService=function(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)};a.parseKnownArcGISOnlineDomain=function(e){e=e?.match(b);if(!e)return null;const [,d,n,u]=e;if(!d)return null;let r=e=null,h=null;const {devext:g,qaext:k,www:p}=c;if(n)if(e=d,u)switch(u.toLowerCase()){case "devext":({customBaseUrl:r,portalHostname:h}=g);break;case "qa":({customBaseUrl:r,portalHostname:h}=
k);break;default:return null}else({customBaseUrl:r,portalHostname:h}=p);else switch(d.toLowerCase()){case "devext":({customBaseUrl:r,portalHostname:h}=g);break;case "qaext":({customBaseUrl:r,portalHostname:h}=k);break;case "www":({customBaseUrl:r,portalHostname:h}=p);break;default:return null}return{customBaseUrl:r,isPortal:!1,portalHostname:h,urlKey:e}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/apiKeyUtils":function(){define(["exports",
"../core/urlUtils"],function(a,b){const c=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];a.isApiKey=function(e){return!!e&&4<e.length&&e.startsWith("AAPK")};a.supportsApiKey=function(e){const d=b.getOrigin(e,!0);return d?d.endsWith(".arcgis.com")&&!c.includes(d)&&!e.endsWith("/sharing/rest/generateToken"):!1};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/requestUtils":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../config ../core/has ../core/maybe ../core/promiseUtils ../core/urlUtils".split(" "),
function(a,b,c,e,d,n,u){function r(){try{return new DOMException("Aborted","AbortError")}catch{const g=Error();g.name="AbortError";return g}}function h(){h=b._asyncToGenerator(function*(g){var k=c.request.crossOriginNoCorsDomains;const p=u.getOrigin(g);k&&p&&(k[p.toLowerCase()]=Date.now());k=u.urlToObject(g);g=k.path;"json"===k.query?.f&&(g+="?f\x3djson");try{yield fetch(g,{mode:"no-cors",credentials:"include"})}catch{}});return h.apply(this,arguments)}a.isNoCorsRequestRequired=function(g){const k=
c.request.crossOriginNoCorsDomains;return k&&(g=u.getOrigin(g))?(g=g.toLowerCase(),!u.hasSameOrigin(g,u.getAppUrl())&&k[g]<Date.now()-36E5):!1};a.loadImageAsync=function(g,k,p=!1,l){return new Promise((m,t)=>{if(n.isAborted(l))t(r());else{var f=()=>{x();t(Error(`Unable to load ${k}`))},q=()=>{const z=g;x();m(z)},v=()=>{if(g){var z=g;x();z.src="";t(r())}},x=()=>{e("esri-image-decode")||(g.removeEventListener("error",f),g.removeEventListener("load",q));g=q=f=null;d.isSome(l)&&l.removeEventListener("abort",
v);v=null;p&&URL.revokeObjectURL(k)};d.isSome(l)&&l.addEventListener("abort",v);e("esri-image-decode")?g.decode().then(q,f):(g.addEventListener("error",f),g.addEventListener("load",q))}})};a.registerNoCorsDomains=function(g){c.request.crossOriginNoCorsDomains||(c.request.crossOriginNoCorsDomains={});const k=c.request.crossOriginNoCorsDomains;for(let p of g)p=p.toLowerCase(),/^https?:\/\//.test(p)?k[u.getOrigin(p)??""]=0:(k[u.getOrigin("http://"+p)??""]=0,k[u.getOrigin("https://"+p)??""]=0)};a.sendNoCorsRequest=
function(g){return h.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/decorators/reader":function(){define(["exports","./property"],function(a,b){a.reader=function(c,e,d){let n,u;void 0===e||Array.isArray(e)?(u=c,d=e,n=[void 0]):(u=e,n=Array.isArray(c)?c:[c]);return(r,h)=>{const g=r.constructor.prototype;n.forEach(k=>{k=b.propertyJSONMeta(r,k,u);k.read&&"object"===typeof k.read||(k.read={});k.read.reader=
g[h];d&&(k.read.source=(k.read.source||[]).concat(d))})}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/Extent":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/string ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./Geometry ./Point ./SpatialReference ./support/contains ./support/intersectsBase ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){function f(v,x,z){return null==x?z:null==z?x:v(x,z)}var q;n=q=function(v){function x(...y){y=v.call(this,...y)||this;y.type="extent";y.xmin=0;y.ymin=0;y.mmin=void 0;y.zmin=void 0;y.xmax=0;y.ymax=0;y.mmax=void 0;y.zmax=void 0;return y}a._inheritsLoose(x,v);var z=x.prototype;z.normalizeCtorArgs=function(y,A,B,E,w){return!y||"esri.geometry.SpatialReference"!==y.declaredClass&&null==y.wkid?"object"===typeof y?(y.spatialReference=null==y.spatialReference?k.WGS84:
y.spatialReference,y):{xmin:y,ymin:A,xmax:B,ymax:E,spatialReference:null==w?k.WGS84:w}:{spatialReference:y,xmin:0,ymin:0,xmax:0,ymax:0}};x.fromBounds=function(y,A){return new q({xmin:y[0],ymin:y[1],xmax:y[2],ymax:y[3],spatialReference:A})};x.fromPoint=function(y){return new q({xmin:y.x,ymin:y.y,zmin:y.z,xmax:y.x,ymax:y.y,zmax:y.z,spatialReference:y.spatialReference})};z.centerAt=function(y){const A=this.center;return null!=y.z&&this.hasZ?this.offset(y.x-A.x,y.y-A.y,y.z-A.z):this.offset(y.x-A.x,y.y-
A.y)};z.clone=function(){const y=new q;y.xmin=this.xmin;y.ymin=this.ymin;y.xmax=this.xmax;y.ymax=this.ymax;y.spatialReference=this.spatialReference;null!=this.zmin&&(y.zmin=this.zmin,y.zmax=this.zmax);null!=this.mmin&&(y.mmin=this.mmin,y.mmax=this.mmax);return y};z.contains=function(y){if(!y)return!1;const A=this.spatialReference,B=y.spatialReference;A&&B&&!A.equals(B)&&t.canProject(A,B)&&(y=A.isWebMercator?t.geographicToWebMercator(y):t.webMercatorToGeographic(y,!0));return"point"===y.type?p.extentContainsPoint(this,
y):"extent"===y.type?p.extentContainsExtent(this,y):!1};z.equals=function(y){if(this===y)return!0;if(c.isNone(y))return!1;const A=this.spatialReference,B=y.spatialReference;A&&B&&!A.equals(B)&&t.canProject(A,B)&&(y=A.isWebMercator?t.geographicToWebMercator(y):t.webMercatorToGeographic(y,!0));return this.xmin===y.xmin&&this.ymin===y.ymin&&this.zmin===y.zmin&&this.mmin===y.mmin&&this.xmax===y.xmax&&this.ymax===y.ymax&&this.zmax===y.zmax&&this.mmax===y.mmax};z.expand=function(y){y=.5*(1-y);var A=this.width*
y;const B=this.height*y;this.xmin+=A;this.ymin+=B;this.xmax-=A;this.ymax-=B;this.hasZ&&(A=(this.zmax-this.zmin)*y,this.zmin+=A,this.zmax-=A);this.hasM&&(y*=this.mmax-this.mmin,this.mmin+=y,this.mmax-=y);return this};z.intersects=function(y){if(c.isNone(y))return!1;"mesh"===y.type&&(y=y.extent);const A=this.spatialReference,B=y.spatialReference;A&&B&&!m.equals(A,B)&&t.canProject(A,B)&&(y=A.isWebMercator?t.geographicToWebMercator(y):t.webMercatorToGeographic(y,!0));return l.getFeatureExtentIntersector(y.type)(this,
y)};z.normalize=function(){const y=this._normalize(!1,!0);return Array.isArray(y)?y:[y]};z.offset=function(y,A,B){this.xmin+=y;this.ymin+=A;this.xmax+=y;this.ymax+=A;null!=B&&(this.zmin+=B,this.zmax+=B);return this};z.shiftCentralMeridian=function(){return this._normalize(!0)};z.union=function(y){if(this===y)return this;this.xmin=Math.min(this.xmin,y.xmin);this.ymin=Math.min(this.ymin,y.ymin);this.xmax=Math.max(this.xmax,y.xmax);this.ymax=Math.max(this.ymax,y.ymax);if(this.hasZ||y.hasZ)this.zmin=
f(Math.min,this.zmin,y.zmin),this.zmax=f(Math.max,this.zmax,y.zmax);if(this.hasM||y.hasM)this.mmin=f(Math.min,this.mmin,y.mmin),this.mmax=f(Math.max,this.mmax,y.mmax);return this};z.intersection=function(y){if(this===y)return this;if(c.isNone(y)||!this.intersects(y))return null;this.xmin=Math.max(this.xmin,y.xmin);this.ymin=Math.max(this.ymin,y.ymin);this.xmax=Math.min(this.xmax,y.xmax);this.ymax=Math.min(this.ymax,y.ymax);if(this.hasZ||y.hasZ)this.zmin=f(Math.max,this.zmin,y.zmin),this.zmax=f(Math.min,
this.zmax,y.zmax);if(this.hasM||y.hasM)this.mmin=f(Math.max,this.mmin,y.mmin),this.mmax=f(Math.min,this.mmax,y.mmax);return this};z.toJSON=function(y){return this.write({},y)};z._shiftCM=function(y=m.getInfo(this.spatialReference)){if(!y||!this.spatialReference)return this;const A=this.spatialReference,B=this._getCM(y);if(B){const E=A.isWebMercator?t.webMercatorToGeographic(B):B;this.xmin-=B.x;this.xmax-=B.x;A.isWebMercator||(E.x=this._normalizeX(E.x,y).x);this.spatialReference=new k(e.replace((A.isWGS84?
y.altTemplate:null)??y.wkTemplate,{Central_Meridian:E.x}))}return this};z._getCM=function(y){let A=null;const [B,E]=y.valid;y=this.xmin;const w=this.xmax;y>=B&&y<=E&&w>=B&&w<=E||(A=this.center);return A};z._normalize=function(y,A,B){const E=this.spatialReference;if(!E)return this;B=B??m.getInfo(E);if(null==B)return this;const w=this._getParts(B).map(F=>F.extent);if(2>w.length)return w[0]||this;if(2<w.length)return y?this._shiftCM(B):this.set({xmin:B.valid[0],xmax:B.valid[1]});if(y)return this._shiftCM(B);
if(A)return w;let D=!0,C=!0;w.forEach(F=>{F.hasZ||(D=!1);F.hasM||(C=!1)});return{rings:w.map(F=>{const G=[[F.xmin,F.ymin],[F.xmin,F.ymax],[F.xmax,F.ymax],[F.xmax,F.ymin],[F.xmin,F.ymin]];if(D){var H=(F.zmax-F.zmin)/2;for(let I=0;I<G.length;I++)G[I].push(H)}if(C)for(F=(F.mmax-F.mmin)/2,H=0;H<G.length;H++)G[H].push(F);return G}),hasZ:D,hasM:C,spatialReference:E}};z._getParts=function(y){let A=this.cache._parts;if(!A){A=[];const {ymin:H,ymax:I,spatialReference:J}=this;var B=this.width,E=this.xmin,w=
this.xmax;y=y||m.getInfo(J);const [K,N]=y.valid;var D=this._normalizeX(this.xmin,y);var C=D.x,F=D.frameId;D=this._normalizeX(this.xmax,y);y=D.x;D=D.frameId;var G=C===y&&0<B;if(B>2*N){B=new q(E<w?C:y,H,N,I,J);E=new q(K,H,E<w?y:C,I,J);w=new q(0,H,N,I,J);C=new q(K,H,0,I,J);y=[];G=[];B.contains(w)&&y.push(F);B.contains(C)&&G.push(F);E.contains(w)&&y.push(D);E.contains(C)&&G.push(D);for(let U=F+1;U<D;U++)y.push(U),G.push(U);A.push({extent:B,frameIds:[F]},{extent:E,frameIds:[D]},{extent:w,frameIds:y},{extent:C,
frameIds:G})}else C>y||G?A.push({extent:new q(C,H,N,I,J),frameIds:[F]},{extent:new q(K,H,y,I,J),frameIds:[D]}):A.push({extent:new q(C,H,y,I,J),frameIds:[F]});this.cache._parts=A}D=this.hasZ;B=this.hasM;if(D||B)for(F={},D&&(F.zmin=this.zmin,F.zmax=this.zmax),B&&(F.mmin=this.mmin,F.mmax=this.mmax),D=0;D<A.length;D++)A[D].extent.set(F);return A};z._normalizeX=function(y,A){const [B,E]=A.valid;A=2*E;var w=0;y>E?(w=Math.ceil(Math.abs(y-E)/A),y-=w*A):y<B&&(w=Math.ceil(Math.abs(y-B)/A),y+=w*A,w=-w);return{x:y,
frameId:w}};a._createClass(x,[{key:"cache",get:function(){this.commitProperty("xmin");this.commitProperty("ymin");this.commitProperty("zmin");this.commitProperty("mmin");this.commitProperty("xmax");this.commitProperty("ymax");this.commitProperty("zmax");this.commitProperty("mmax");this.commitProperty("spatialReference");return{}}},{key:"center",get:function(){const y=new g({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});this.hasZ&&(y.z=.5*(this.zmin+
this.zmax));this.hasM&&(y.m=.5*(this.mmin+this.mmax));return y}},{key:"extent",get:function(){return this.clone()}},{key:"hasM",get:function(){return null!=this.mmin&&null!=this.mmax}},{key:"hasZ",get:function(){return null!=this.zmin&&null!=this.zmax}},{key:"height",get:function(){return Math.abs(this.ymax-this.ymin)}},{key:"width",get:function(){return Math.abs(this.xmax-this.xmin)}}]);return x}(h);b.__decorate([d.property({readOnly:!0})],n.prototype,"cache",null);b.__decorate([d.property({readOnly:!0})],
n.prototype,"center",null);b.__decorate([d.property({readOnly:!0})],n.prototype,"extent",null);b.__decorate([d.property({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],n.prototype,"hasM",null);b.__decorate([d.property({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],n.prototype,"hasZ",null);b.__decorate([d.property({readOnly:!0})],n.prototype,"height",null);b.__decorate([d.property({readOnly:!0})],n.prototype,"width",null);b.__decorate([d.property({type:Number,json:{type:[Number,
String],write:{enabled:!0,allowNull:!0}}})],n.prototype,"xmin",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"ymin",void 0);b.__decorate([d.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],n.prototype,"mmin",void 0);b.__decorate([d.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],n.prototype,"zmin",void 0);b.__decorate([d.property({type:Number,
json:{write:!0}})],n.prototype,"xmax",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"ymax",void 0);b.__decorate([d.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],n.prototype,"mmax",void 0);b.__decorate([d.property({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],n.prototype,"zmax",void 0);n=q=b.__decorate([r.subclass("esri.geometry.Extent")],
n);n.prototype.toJSON.isDefaultToJSON=!0;return n})},"esri/geometry/Geometry":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./SpatialReference".split(" "),function(a,b,c,e,d,n,u,r,h){c=function(g){function k(...l){l=g.call(this,...l)||this;l.type=null;l.hasM=!1;l.hasZ=
!1;l.spatialReference=h.WGS84;return l}a._inheritsLoose(k,g);var p=k.prototype;p.readSpatialReference=function(l,m){if(l instanceof h)return l;if(null!=l){const t=new h;t.read(l,m);return t}return l};p.clone=function(){console.warn(".clone() is not implemented for "+this.declaredClass);return null};p.clearCache=function(){this.notifyChange("cache")};p.getCacheValue=function(l){return this.cache[l]};p.setCacheValue=function(l,m){this.cache[l]=m};a._createClass(k,[{key:"cache",get:function(){this.commitProperty("spatialReference");
return{}}},{key:"extent",get:function(){return null}}]);return k}(c.JSONSupport);b.__decorate([e.property()],c.prototype,"type",void 0);b.__decorate([e.property({readOnly:!0})],c.prototype,"cache",null);b.__decorate([e.property({readOnly:!0})],c.prototype,"extent",null);b.__decorate([e.property({type:Boolean,json:{write:{overridePolicy(g){return{enabled:g}}}}})],c.prototype,"hasM",void 0);b.__decorate([e.property({type:Boolean,json:{write:{overridePolicy(g){return{enabled:g}}}}})],c.prototype,"hasZ",
void 0);b.__decorate([e.property({type:h,json:{write:!0}})],c.prototype,"spatialReference",void 0);b.__decorate([u.reader("spatialReference")],c.prototype,"readSpatialReference",null);return c=b.__decorate([r.subclass("esri.geometry.Geometry")],c)})},"esri/geometry/Point":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ./Geometry ./SpatialReference ./support/pointUtils ./support/spatialReferenceUtils ./support/webMercatorUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f){function q(z){return z&&("esri.geometry.SpatialReference"===z.declaredClass||null!=z.wkid)}var v;const x=[0,0];n=v=function(z){function y(...B){B=z.call(this,...B)||this;B.x=0;B.y=0;B.z=void 0;B.m=void 0;B.type="point";return B}a._inheritsLoose(y,z);y.copy=function(B,E){E._set("x",B._get("x"));E._set("y",B._get("y"));E._set("z",B._get("z"));E._set("m",B._get("m"));B=B._get("spatialReference");E._set("spatialReference",Object.isFrozen(B)?B:B.clone())};var A=
y.prototype;A.normalizeCtorArgs=function(B,E,w,D,C){let F;if(Array.isArray(B))F=B,C=E,B=F[0],E=F[1],w=F[2],D=F[3];else if(B&&"object"===typeof B){if(F=B,B=null!=F.x?F.x:F.longitude,E=null!=F.y?F.y:F.latitude,w=F.z,D=F.m,(C=F.spatialReference)&&"esri.geometry.SpatialReference"!==C.declaredClass&&(C=new l(C)),null!=F.longitude||null!=F.latitude)null==F.longitude?c.getLogger(this.declaredClass).warn(".longitude\x3d","Latitude was defined without longitude"):null==F.latitude?c.getLogger(this.declaredClass).warn(".latitude\x3d",
"Longitude was defined without latitude"):!F.declaredClass&&C&&C.isWebMercator&&(E=f.lngLatToXY(F.longitude,F.latitude,x),B=E[0],E=E[1])}else q(w)?(C=w,w=null):q(D)&&(C=D,D=null);B={x:B,y:E};null==B.x&&null!=B.y?c.getLogger(this.declaredClass).warn(".y\x3d","Y coordinate was defined without an X coordinate"):null==B.y&&null!=B.x&&c.getLogger(this.declaredClass).warn(".x\x3d","X coordinate was defined without a Y coordinate");null!=C&&(B.spatialReference=C);null!=w&&(B.z=w);null!=D&&(B.m=D);return B};
A.writeX=function(B,E,w){E[w]=isNaN(B)?"NaN":B};A.readX=function(B){return"string"===typeof B?NaN:B};A.clone=function(){const B=new v;B.x=this.x;B.y=this.y;B.z=this.z;B.m=this.m;B.spatialReference=this.spatialReference;return B};A.copy=function(B){v.copy(B,this);return this};A.equals=function(B){if(e.isNone(B))return!1;const {x:E,y:w,z:D,m:C,spatialReference:F}=this,{z:G,m:H}=B;let {x:I,y:J,spatialReference:K}=B;if(!F.equals(K))if(F.isWebMercator&&K.isWGS84)[I,J]=f.lngLatToXY(I,J),K=F;else if(F.isWGS84&&
K.isWebMercator)[I,J]=f.xyToLngLat(I,J),K=F;else return!1;return E===I&&w===J&&D===G&&C===H&&F.wkid===K.wkid};A.offset=function(B,E,w){this.x+=B;this.y+=E;null!=w&&(this.z=(this.z??0)+w);return this};A.normalize=function(){if(!this.spatialReference)return this;var B=t.getInfo(this.spatialReference);if(!B)return this;let E=this.x;const [w,D]=B.valid;B=2*D;let C;E>D?(C=Math.ceil(Math.abs(E-D)/B),E-=C*B):E<w&&(C=Math.ceil(Math.abs(E-w)/B),E+=C*B);this._set("x",E);return this};A.distance=function(B){return m.distance(this,
B)};A.toArray=function(){const B=this.hasZ,E=this.hasM;return B&&E?[this.x,this.y,this.z,this.m]:B?[this.x,this.y,this.z]:E?[this.x,this.y,this.m]:[this.x,this.y]};A.toJSON=function(B){return this.write({},B)};a._createClass(y,[{key:"cache",get:function(){this.commitProperty("x");this.commitProperty("y");this.commitProperty("z");this.commitProperty("m");this.commitProperty("spatialReference");return{}}},{key:"hasM",get:function(){return void 0!==this.m},set:function(B){const E=void 0!==this._get("m");
B!==E&&(this._set("m",B?0:void 0),this._set("hasM",B))}},{key:"hasZ",get:function(){return void 0!==this.z},set:function(B){const E=void 0!==this._get("z");B!==E&&(this._set("z",B?0:void 0),this._set("hasZ",B))}},{key:"latitude",get:function(){const {spatialReference:B,x:E,y:w}=this;if(B){if(B.isWebMercator)return f.xyToLngLat(E,w,x)[1];if(B.isGeographic)return w}return null},set:function(B){const {spatialReference:E,x:w}=this;null!=B&&E&&(E.isWebMercator?this._set("y",f.lngLatToXY(w,B,x)[1]):E.isGeographic&&
this._set("y",B),this._set("latitude",B))}},{key:"longitude",get:function(){const {x:B,y:E,spatialReference:w}=this;if(w){if(w.isWebMercator)return f.xyToLngLat(B,E,x)[0];if(w.isGeographic)return B}return null},set:function(B){const {y:E,spatialReference:w}=this;null!=B&&w&&(w.isWebMercator?this._set("x",f.lngLatToXY(B,E,x)[0]):w.isGeographic&&this._set("x",B),this._set("longitude",B))}}]);return y}(p);b.__decorate([d.property({readOnly:!0})],n.prototype,"cache",null);b.__decorate([d.property({type:Boolean,
json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],n.prototype,"hasM",null);b.__decorate([d.property({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],n.prototype,"hasZ",null);b.__decorate([d.property({type:Number})],n.prototype,"latitude",null);b.__decorate([d.property({type:Number})],n.prototype,"longitude",null);b.__decorate([d.property({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),u.cast(z=>isNaN(z)?z:k.ensureNumber(z))],n.prototype,"x",
void 0);b.__decorate([g.writer("x")],n.prototype,"writeX",null);b.__decorate([r.reader("x")],n.prototype,"readX",null);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"y",void 0);b.__decorate([d.property({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],n.prototype,"z",void 0);b.__decorate([d.property({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],n.prototype,"m",void 0);n=v=b.__decorate([h.subclass("esri.geometry.Point")],
n);n.prototype.toJSON.isDefaultToJSON=!0;return n})},"esri/core/accessorSupport/decorators/cast":function(){define(["exports","../ensureType","../metadata"],function(a,b,c){function e(r){const h="__accessorMetadata__"in r?b.ensureType(r):r;return function(...g){g.push(h);if("number"===typeof g[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return d.apply(this,g)}}function d(r,h,g,k){c.getOwnPropertyMetadata(r,h).cast=k}function n(r){return(h,g)=>{c.getOwnPropertyMetadata(h,
r).cast=h[g]}}const u=Object.prototype.toString;a.cast=function(...r){if(3!==r.length||"string"!==typeof r[1]){if(1===r.length&&"[object Function]"===u.call(r[0]))return e(r[0]);if(1===r.length&&"string"===typeof r[0])return n(r[0])}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/pointUtils":function(){define(["exports"],function(a){a.distance=function(b,c){const e=b.x-c.x,d=b.y-c.y;b=b.hasZ&&c.hasZ?b.z-c.z:0;return Math.sqrt(e*
e+d*d+b*b)};a.squareDistance=function(b,c){const e=b.x-c.x,d=b.y-c.y;b=b.hasZ&&c.hasZ?b.z-c.z:0;return e*e+d*d+b*b};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/webMercatorUtils":function(){define("exports ../../core/lang ../../core/maybe ../SpatialReference ./Ellipsoid ./spatialReferenceUtils".split(" "),function(a,b,c,e,d,n){function u(p,l,m,t,f){f.spatialReference=m;if("x"in p&&"x"in f)[f.x,f.y]=l(p.x,p.y,k,t);else if("xmin"in
p&&"xmin"in f)[f.xmin,f.ymin]=l(p.xmin,p.ymin,k,t),[f.xmax,f.ymax]=l(p.xmax,p.ymax,k,t);else if("paths"in p&&"paths"in f||"rings"in p&&"rings"in f){p="paths"in p?p.paths:p.rings;m=[];for(let v=0;v<p.length;v++){const x=p[v];var q=[];m.push(q);for(let z=0;z<x.length;z++)q.push(l(x[z][0],x[z][1],[0,0],t)),2<x[z].length&&q[z].push(x[z][2]),3<x[z].length&&q[z].push(x[z][3])}"paths"in f?f.paths=m:f.rings=m}else if("points"in p&&"points"in f){p=p.points;m=[];for(q=0;q<p.length;q++)m[q]=l(p[q][0],p[q][1],
[0,0],t),2<p[q].length&&m[q].push(p[q][2]),3<p[q].length&&m[q].push(p[q][3]);f.points=m}return f}function r(p,l){const m=p&&(null!=p.wkid||null!=p.wkt?p:p.spatialReference),t=l&&(null!=l.wkid||null!=l.wkt?l:l.spatialReference);return p&&"type"in p&&"mesh"===p.type||l&&"type"in l&&"mesh"===l.type||!m||!t?!1:n.equals(t,m)?!0:n.isWebMercator(t)&&n.isWGS84(m)||n.isWebMercator(m)&&n.isWGS84(t)}function h(p,l,m=[0,0]){89.99999<l?l=89.99999:-89.99999>l&&(l=-89.99999);l*=.017453292519943;m[0]=.017453292519943*
p*d.earth.radius;m[1]=d.earth.halfSemiMajorAxis*Math.log((1+Math.sin(l))/(1-Math.sin(l)));return m}function g(p,l,m=[0,0],t=!1){p=p/d.earth.radius*57.29577951308232;m[0]=t?p:p-360*Math.floor((p+180)/360);m[1]=57.29577951308232*(Math.PI/2-2*Math.atan(Math.exp(-l/d.earth.radius)));return m}const k=[0,0];a.canProject=r;a.geographicToWebMercator=function(p,l=!1,m=b.clone(p)){return u(p,h,e.WebMercator,l,m)};a.lngLatToXY=h;a.project=function(p,l){if(c.isNone(p))return null;const m=p.spatialReference;l=
l&&(null!=l.wkid||null!=l.wkt?l:l.spatialReference);return r(m,l)?n.equals(m,l)?b.clone(p):n.isWebMercator(l)?u(p,h,e.WebMercator,!1,b.clone(p)):n.isWGS84(l)?u(p,g,e.WGS84,!1,b.clone(p)):null:null};a.webMercatorToGeographic=function(p,l=!1,m=b.clone(p)){return u(p,g,e.WGS84,l,m)};a.x2lon=function(p){return p/d.earth.radius};a.xyToLngLat=g;a.y2lat=function(p){return Math.PI/2-2*Math.atan(Math.exp(-p/d.earth.radius))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/geometry/support/Ellipsoid":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers"],function(a,b){let c=function(){function u(r,h,g,k){this.semiMajorAxis=r;this.flattening=h;this.outerAtmosphereRimWidth=g;this.semiMinorAxis=this.semiMajorAxis*(1-this.flattening);this.halfSemiMajorAxis=this.semiMajorAxis/2;this.halfCircumference=Math.PI*this.semiMajorAxis;this.metersPerDegree=this.halfCircumference/180;this.inverseFlattening=1/(1-this.flattening)-1;this.eccentricitySquared=k?k:
2*this.flattening-this.flattening*this.flattening;this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}b._createClass(u,[{key:"radius",get:function(){return this.semiMajorAxis}}]);return u}();const e=new c(6378137,1/298.257223563,3E5,.006694379990137799),d=new c(3396190,.005886007555525457,23E4),n=new c(1737400,0,0);a.Ellipsoid=c;a.earth=e;a.mars=d;a.moon=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/contains":function(){define(["exports",
"../../core/maybe"],function(a,b){function c(h,g){return e(h,g[0],g[1])}function e(h,g,k,p){return g>=h.xmin&&g<=h.xmax&&k>=h.ymin&&k<=h.ymax?null!=p&&h.hasZ?p>=h.zmin&&p<=h.zmax:!0:!1}function d(h,g){return n(h.rings,g)}function n(h,g){if(!h)return!1;if(!Array.isArray(h[0][0]))return u(!1,h,g);let k=!1;for(let p=0,l=h.length;p<l;p++)k=u(k,h[p],g);return k}function u(h,g,k){const [p,l]=k;k=0;for(let m=0,t=g.length;m<t;m++){k++;k===t&&(k=0);const [f,q]=g[m],[v,x]=g[k];(q<l&&x>=l||x<l&&q>=l)&&f+(l-
q)/(x-q)*(v-f)<p&&(h=!h)}return h}const r=[0,0];a.extentContainsCoords2D=c;a.extentContainsCoords3D=function(h,g){return e(h,g[0],g[1],g[2])};a.extentContainsExtent=function(h,g){const {xmin:k,ymin:p,zmin:l,xmax:m,ymax:t,zmax:f}=g;return h.hasZ&&g.hasZ?e(h,k,p,l)&&e(h,k,t,l)&&e(h,m,t,l)&&e(h,m,p,l)&&e(h,k,p,f)&&e(h,k,t,f)&&e(h,m,t,f)&&e(h,m,p,f):e(h,k,p)&&e(h,k,t)&&e(h,m,t)&&e(h,m,p)};a.extentContainsMultipoint=function(h,g){if(!g.points||g.points.length)return!1;for(const k of g.points)if(!c(h,k))return!1;
return!0};a.extentContainsPoint=function(h,g){return b.isSome(g)?e(h,g.x,g.y,g.z):!1};a.extentContainsXYZ=e;a.polygonContainsCoords=d;a.polygonContainsPoint=function(h,g){r[1]=g.y;r[0]=g.x;return d(h,r)};a.ringsContainsCoords=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/intersectsBase":function(){define(["exports","./contains"],function(a,b){function c(v,x){return b.extentContainsPoint(v,x)}function e(v,x){var z=v.hasZ&&x.hasZ;
if(v.xmin<=x.xmin){var y=x.xmin;if(v.xmax<y)return!1}else if(y=v.xmin,x.xmax<y)return!1;if(v.ymin<=x.ymin){if(y=x.ymin,v.ymax<y)return!1}else if(y=v.ymin,x.ymax<y)return!1;if(z&&x.hasZ)if(v.zmin<=x.zmin){if(z=x.zmin,v.zmax<z)return!1}else if(z=v.zmin,x.zmax<z)return!1;return!0}function d(v,x){const {points:z,hasZ:y}=x;x=y?b.extentContainsCoords3D:b.extentContainsCoords2D;for(const A of z)if(x(v,A))return!0;return!1}function n(v,x){return u(v,x.rings)}function u(v,x){k[0]=v.xmin;k[1]=v.ymax;p[0]=v.xmax;
p[1]=v.ymax;l[0]=v.xmin;l[1]=v.ymin;m[0]=v.xmax;m[1]=v.ymin;for(var z of t)if(b.ringsContainsCoords(x,z))return!0;for(const y of x)if(y.length){x=y[0];if(b.extentContainsCoords2D(v,x))return!0;for(z=1;z<y.length;z++){const A=y[z];if(b.extentContainsCoords2D(v,A)||h(x,A,f))return!0;x=A}}return!1}function r(v,x){k[0]=v.xmin;k[1]=v.ymax;p[0]=v.xmax;p[1]=v.ymax;l[0]=v.xmin;l[1]=v.ymin;m[0]=v.xmax;m[1]=v.ymin;x=x.paths;for(const z of x){if(!x.length)continue;let y=z[0];if(b.extentContainsCoords2D(v,y))return!0;
for(let A=1;A<z.length;A++){const B=z[A];if(b.extentContainsCoords2D(v,B)||h(y,B,f))return!0;y=B}}return!1}function h(v,x,z){for(let y=0;y<z.length;y++)if(g(v,x,z[y][0],z[y][1]))return!0;return!1}function g(v,x,z,y,A){const [B,E]=v,[w,D]=x,[C,F]=z,[G,H]=y;var I=G-C;v=B-C;x=w-B;const J=H-F;z=E-F;y=D-E;const K=J*x-I*y;if(0===K)return!1;I=(I*z-J*v)/K;v=(x*z-y*v)/K;return 0<=I&&1>=I&&0<=v&&1>=v?(A&&(A[0]=B+I*(w-B),A[1]=E+I*(D-E)),!0):!1}const k=[0,0],p=[0,0],l=[0,0],m=[0,0],t=[k,p,l,m],f=[[l,k],[k,p],
[p,m],[m,l]],q=[0,0];a.extentIntersectsExtent=e;a.extentIntersectsMultipoint=d;a.extentIntersectsPoint=c;a.extentIntersectsPolygon=n;a.extentIntersectsPolyline=r;a.extentIntersectsRings=u;a.getFeatureExtentIntersector=function(v){switch(v){case "esriGeometryEnvelope":case "extent":return e;case "esriGeometryMultipoint":case "multipoint":return d;case "esriGeometryPoint":case "point":return c;case "esriGeometryPolygon":case "polygon":return n;case "esriGeometryPolyline":case "polyline":return r}};
a.isSelfIntersecting=function(v){for(let D=0;D<v.length;D++){const C=v[D];for(var x=0;x<C.length-1;x++){var z=C[x],y=C[x+1];for(var A=D+1;A<v.length;A++)for(var B=0;B<v[A].length-1;B++){var E=v[A][B],w=v[A][B+1];if(g(z,y,E,w,q)&&!(q[0]===z[0]&&q[1]===z[1]||q[0]===E[0]&&q[1]===E[1]||q[0]===y[0]&&q[1]===y[1]||q[0]===w[0]&&q[1]===w[1]))return!0}}x=C.length;if(!(4>=x))for(z=0;z<x-3;z++)for(y=x-1,0===z&&(y=x-2),A=C[z],B=C[z+1],E=z+2;E<y;E++){w=C[E];const F=C[E+1];if(g(A,B,w,F,q)&&!(q[0]===A[0]&&q[1]===
A[1]||q[0]===w[0]&&q[1]===w[1]||q[0]===B[0]&&q[1]===B[1]||q[0]===F[0]&&q[1]===F[1]))return!0}}return!1};a.segmentIntersects=g;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl/locale":function(){define(["exports"],function(a){function b(){return r??globalThis.navigator?.language??"en"}function c(){void 0===u&&(u=b());return u}function e(p=c()){return/^([a-zA-Z]{2,3})(?:[_\-]\w+)*$/.exec(p)?.[1].toLowerCase()}function d(){const p=n??b();u!==p&&(u=
p,[...k].forEach(l=>{l.call(null,p)}),[...g].forEach(l=>{l.call(null,p)}))}let n=void 0,u=void 0;const r=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,h={he:!0,ar:!0},g=[],k=[];globalThis.addEventListener?.("languagechange",d);a.beforeLocaleChange=function(p){k.push(p);return{remove(){g.splice(k.indexOf(p),1)}}};a.getDefaultLocale=b;a.getLanguage=e;a.getLocale=c;a.onLocaleChange=function(p){g.push(p);return{remove(){g.splice(g.indexOf(p),1)}}};a.prefersRTL=function(p=c()){p=e(p);return void 0!==
p&&(h[p]||!1)};a.setLocale=function(p){n=p?p:void 0;d()};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/PortalQueryParams":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/jsonMap ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../geometry/Extent ../geometry/SpatialReference ../geometry/support/webMercatorUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;const m=new e.JSONMap({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});c=l=function(t){function f(v){v=t.call(this,v)||this;v.categories=null;v.disableExtraQuery=!1;v.extent=null;v.filter=null;v.num=10;v.query=null;v.sortField=null;v.start=1;return v}a._inheritsLoose(f,t);var q=f.prototype;q.clone=function(){return new l({categories:this.categories?d.clone(this.categories):null,disableExtraQuery:this.disableExtraQuery,
extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})};q.toRequestOptions=function(v,x){let z;this.categories&&(z=this.categories.map(B=>Array.isArray(B)?JSON.stringify(B):B));let y;if(this.extent){var A=p.project(this.extent,k.WGS84);n.isSome(A)&&(y=`${A.xmin},${A.ymin},${A.xmax},${A.ymax}`)}A=this.query;!this.disableExtraQuery&&v.extraQuery&&(A="("+A+")"+v.extraQuery);v={categories:z,bbox:y,
q:A,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};this.sortField&&(v.sortField=this.sortField.split(",").map(B=>m.toJSON(B.trim())).join(","),v.sortOrder=this.sortOrder);return{query:{...x,...v}}};a._createClass(f,[{key:"sortOrder",get:function(){return this._get("sortOrder")||"asc"},set:function(v){"asc"!==v&&"desc"!==v||this._set("sortOrder",v)}}]);return f}(c);b.__decorate([u.property()],c.prototype,"categories",void 0);b.__decorate([u.property()],c.prototype,
"disableExtraQuery",void 0);b.__decorate([u.property({type:g})],c.prototype,"extent",void 0);b.__decorate([u.property()],c.prototype,"filter",void 0);b.__decorate([u.property()],c.prototype,"num",void 0);b.__decorate([u.property()],c.prototype,"query",void 0);b.__decorate([u.property()],c.prototype,"sortField",void 0);b.__decorate([u.property()],c.prototype,"sortOrder",null);b.__decorate([u.property()],c.prototype,"start",void 0);return c=l=b.__decorate([h.subclass("esri.portal.PortalQueryParams")],
c)})},"esri/core/jsonMap":function(){define(["exports","./object"],function(a,b){let c=function(){function e(n,u={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=n;this._options=u;this.apiValues=[];this.jsonValues=[];this._apiToJSON=this._invertMap(n);this.apiValues=this._getKeysSorted(this._apiToJSON);this.jsonValues=this._getKeysSorted(this._jsonToAPI);this.read=r=>this.fromJSON(r);this.write=(r,h,g)=>{r=this.toJSON(r);void 0!==r&&b.setDeepValue(g,r,h)};this.write.isJSONMapWriter=!0}var d=
e.prototype;d.toJSON=function(n){return this._apiToJSON.hasOwnProperty(n)?(n=this._apiToJSON[n],this._options.useNumericKeys?+n:n):this._options.ignoreUnknown?void 0:n};d.fromJSON=function(n){return this._jsonToAPI.hasOwnProperty(n)?this._jsonToAPI[n]:this._options.ignoreUnknown?void 0:n};d._invertMap=function(n){const u={};for(const r in n)u[n[r]]=r;return u};d._getKeysSorted=function(n){const u=[];for(const r in n)u.push(r);u.sort();return u};return e}();a.JSONMap=c;a.strict=function(){return function(e,
d){return new c(e,{ignoreUnknown:!0,...d})}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/PortalQueryResult":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.nextQueryParams=
null;g.queryParams=null;g.results=null;g.total=null;return g}a._inheritsLoose(h,r);return h}(c);b.__decorate([e.property()],c.prototype,"nextQueryParams",void 0);b.__decorate([e.property()],c.prototype,"queryParams",void 0);b.__decorate([e.property()],c.prototype,"results",void 0);b.__decorate([e.property()],c.prototype,"total",void 0);return c=b.__decorate([u.subclass("esri.portal.PortalQueryResult")],c)})},"esri/portal/PortalUser":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./PortalFolder ./PortalGroup".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;d=p=function(l){function m(...f){f=l.call(this,...f)||this;f.access=null;f.created=null;f.culture=null;f.description=null;f.email=null;f.fullName=null;f.modified=null;f.orgId=null;f.portal=null;f.preferredView=null;f.privileges=null;f.region=null;f.role=null;f.roleId=null;f.sourceJSON=null;f.units=null;f.username=null;f.userType=null;return f}b._inheritsLoose(m,l);var t=m.prototype;t.addItem=function(f){const q=f&&f.item;var v=f&&f.data;f=f&&f.folder;const x=
{method:"post"};q&&(x.query=q.createPostQuery(),null!=v&&("string"===typeof v?x.query.text=v:"object"===typeof v&&(x.query.text=JSON.stringify(v))));v=this.userContentUrl;f&&(v+="/"+("string"===typeof f?f:f.id));return this.portal._request(v+"/addItem",x).then(z=>{q.id=z.id;q.portal=this.portal;return q.loaded?q.reload():q.load()})};t.deleteItem=function(f){let q=this.userContentUrl;f.ownerFolder&&(q+="/"+f.ownerFolder);return this.portal._request(q+`/items/${f.id}/delete`,{method:"post"}).then(()=>
{f.id=null;f.portal=null})};t.deleteItems=function(f){const q=this.userContentUrl+"/deleteItems";var v=f.map(x=>x.id);return v.length?(v={method:"post",query:{items:v.join(",")}},this.portal._request(q,v).then(()=>{f.forEach(x=>{x.id=null;x.portal=null})})):Promise.resolve(void 0)};t.fetchFolders=function(){return this.portal._request(this.userContentUrl??"",{query:{num:1}}).then(f=>f&&f.folders?f.folders.map(q=>{q=g.fromJSON(q);q.portal=this.portal;return q}):[])};t.fetchGroups=function(){return this.portal._request(this.url??
"").then(f=>f&&f.groups?f.groups.map(q=>{q=k.fromJSON(q);q.portal=this.portal;return q}):[])};t.fetchItems=function(f){const q=f??{};let v=this.userContentUrl??"";q.folder&&(v+="/"+q.folder.id);let x;return(new Promise((z,y)=>a(["./PortalItem"],A=>z(Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}))),y))).then(({default:z})=>{x=z;return this.portal._request(v,{query:{folders:!1,num:q.num||10,start:q.start||1,sortField:q.sortField||"created",sortOrder:q.sortOrder||
"asc"}})}).then(z=>{let y;return z&&z.items?(y=z.items.map(A=>{A=x.fromJSON(A);A.portal=this.portal;return A}),Promise.all(y.map(A=>A.load())).catch(A=>A).then(()=>({items:y,nextStart:z.nextStart,total:z.total}))):{items:[],nextStart:-1,total:0}})};t.fetchTags=function(){return this.portal._request(this.url+"/tags").then(f=>f.tags)};t.getThumbnailUrl=function(f){let q=this.thumbnailUrl;q&&f&&(q+=`&w=${f}`);return q};t.queryFavorites=function(f){return this.favGroupId?(this._favGroup||(this._favGroup=
new k({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(f)):Promise.reject(new e("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))};t.toJSON=function(){throw new e("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented");};m.fromJSON=function(f){if(!f)return null;if(f.declaredClass)throw Error("JSON object is already hydrated");const q=new p;q.sourceJSON=f;q.read(f);return q};b._createClass(m,[{key:"thumbnailUrl",get:function(){const f=
this.url,q=this.thumbnail;return f&&q?this.portal._normalizeUrl(`${f}/info/${q}?f=json`):null}},{key:"userContentUrl",get:function(){const f=this.get("portal.restUrl");return f?`${f}/content/users/${this.username}`:null}},{key:"url",get:function(){const f=this.get("portal.restUrl");return f?`${f}/community/users/${this.username}`:null}}]);return m}(d.JSONSupport);c.__decorate([n.property()],d.prototype,"access",void 0);c.__decorate([n.property({type:Date})],d.prototype,"created",void 0);c.__decorate([n.property()],
d.prototype,"culture",void 0);c.__decorate([n.property()],d.prototype,"description",void 0);c.__decorate([n.property()],d.prototype,"email",void 0);c.__decorate([n.property()],d.prototype,"favGroupId",void 0);c.__decorate([n.property()],d.prototype,"fullName",void 0);c.__decorate([n.property({type:Date})],d.prototype,"modified",void 0);c.__decorate([n.property()],d.prototype,"orgId",void 0);c.__decorate([n.property()],d.prototype,"portal",void 0);c.__decorate([n.property()],d.prototype,"preferredView",
void 0);c.__decorate([n.property()],d.prototype,"privileges",void 0);c.__decorate([n.property()],d.prototype,"region",void 0);c.__decorate([n.property()],d.prototype,"role",void 0);c.__decorate([n.property()],d.prototype,"roleId",void 0);c.__decorate([n.property()],d.prototype,"sourceJSON",void 0);c.__decorate([n.property()],d.prototype,"thumbnail",void 0);c.__decorate([n.property({readOnly:!0})],d.prototype,"thumbnailUrl",null);c.__decorate([n.property()],d.prototype,"units",void 0);c.__decorate([n.property({readOnly:!0})],
d.prototype,"userContentUrl",null);c.__decorate([n.property({readOnly:!0})],d.prototype,"url",null);c.__decorate([n.property()],d.prototype,"username",void 0);c.__decorate([n.property()],d.prototype,"userType",void 0);return d=p=c.__decorate([h.subclass("esri.portal.PortalUser")],d)})},"esri/portal/PortalFolder":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){e=function(h){function g(k){k=h.call(this,k)||this;k.created=null;k.id=null;k.portal=null;k.title=null;k.username=null;return k}a._inheritsLoose(g,h);g.prototype.toJSON=function(){throw new c("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented");};a._createClass(g,[{key:"url",get:function(){const k=this.get("portal.restUrl");return k?`${k}/content/users/${this.username}/${this.id}`:null}}]);return g}(e.JSONSupport);b.__decorate([d.property({type:Date})],
e.prototype,"created",void 0);b.__decorate([d.property()],e.prototype,"id",void 0);b.__decorate([d.property()],e.prototype,"portal",void 0);b.__decorate([d.property()],e.prototype,"title",void 0);b.__decorate([d.property({readOnly:!0})],e.prototype,"url",null);b.__decorate([d.property()],e.prototype,"username",void 0);return e=b.__decorate([r.subclass("esri.portal.PortalFolder")],e)})},"esri/portal/PortalGroup":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/JSONSupport ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./PortalQueryParams".split(" "),
function(a,b,c,e,d,n,u,r,h,g){e=function(k){function p(m){m=k.call(this,m)||this;m.access=null;m.created=null;m.description=null;m.id=null;m.isInvitationOnly=!1;m.modified=null;m.owner=null;m.portal=null;m.snippet=null;m.sortField=null;m.sortOrder=null;m.tags=null;m.title=null;return m}a._inheritsLoose(p,k);var l=p.prototype;l.fetchCategorySchema=function(m){return d.unwrapOrThrow(this.portal)._request(this.url+"/categorySchema",m).then(t=>{t=t.categorySchema||[];return t.some(f=>"contentCategorySetsGroupQuery.LivingAtlas"===
f.source)?this._fetchCategorySchemaSet("LivingAtlas",m):t})};l.fetchMembers=function(m){return d.unwrapOrThrow(this.portal)._request(this.url+"/users",m)};l.getThumbnailUrl=function(m){let t=this.thumbnailUrl;t&&m&&(t+=`&w=${m}`);return t};l.toJSON=function(){throw new c("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented");};l.queryItems=function(m,t){m=r.ensureType(g,m);const f=d.unwrapOrThrow(this.portal);if(5<parseFloat(f.currentVersion))return m=m||new g,f._queryPortal(`/content/groups/${this.id}/search`,
m,"PortalItem",t);m=m?m.clone():new g;m.query="group:"+this.id+(m.query?" "+m.query:"");return f.queryItems(m,t)};l._fetchCategorySchemaSet=function(m,t){const f=d.unwrapOrThrow(this.portal);return f._fetchSelf(f.authMode,!0,t).then(q=>{if(q=q.contentCategorySetsGroupQuery){const v=new g;v.disableExtraQuery=!0;v.num=1;v.query=q;return f.queryGroups(v,t)}throw new c("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found");}).then(q=>{if(q.total){q=q.results[0];const v=new g;
v.num=1;v.query=`typekeywords:"${m}"`;return q.queryItems(v,t)}throw new c("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found");}).then(q=>q.total?q.results[0].fetchData("json",t).then(v=>(v=v&&v.categorySchema)&&v.length?v:[]):[])};a._createClass(p,[{key:"thumbnailUrl",get:function(){const m=this.url,t=this.thumbnail;return m&&t&&this.portal?this.portal?._normalizeUrl(`${m}/info/${t}?f=json`):null}},{key:"url",get:function(){const m=this.get("portal.restUrl");return m?
m+"/community/groups/"+this.id:null}}]);return p}(e.JSONSupport);b.__decorate([n.property()],e.prototype,"access",void 0);b.__decorate([n.property({type:Date})],e.prototype,"created",void 0);b.__decorate([n.property()],e.prototype,"description",void 0);b.__decorate([n.property()],e.prototype,"id",void 0);b.__decorate([n.property()],e.prototype,"isInvitationOnly",void 0);b.__decorate([n.property({type:Date})],e.prototype,"modified",void 0);b.__decorate([n.property()],e.prototype,"owner",void 0);b.__decorate([n.property()],
e.prototype,"portal",void 0);b.__decorate([n.property()],e.prototype,"snippet",void 0);b.__decorate([n.property()],e.prototype,"sortField",void 0);b.__decorate([n.property()],e.prototype,"sortOrder",void 0);b.__decorate([n.property()],e.prototype,"tags",void 0);b.__decorate([n.property()],e.prototype,"thumbnail",void 0);b.__decorate([n.property({readOnly:!0})],e.prototype,"thumbnailUrl",null);b.__decorate([n.property()],e.prototype,"title",void 0);b.__decorate([n.property({readOnly:!0})],e.prototype,
"url",null);return e=b.__decorate([h.subclass("esri.portal.PortalGroup")],e)})},"esri/portal/PortalItem":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../assets ../core/Error ../core/JSONSupport ../core/lang ../core/Loadable ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../geometry/Extent ./Portal ./PortalItemResource ./PortalRating".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v){var x;const z=new Set("Map Service;Feature Service;Feature Collection;Scene Service;Image Service;Stream Service;Vector Tile Service;GeoJson;CSV;KML;WFS;WMTS;WMS;Feed".split(";")),y=new Set(["KML","GeoJson","CSV"]);n=x=function(A){function B(w){w=A.call(this,w)||this;w.access=null;w.accessInformation=null;w.apiKey=null;w.applicationProxies=null;w.avgRating=null;w.categories=null;w.created=null;w.culture=null;w.description=null;w.extent=null;w.groupCategories=
null;w.id=null;w.itemControl=null;w.licenseInfo=null;w.modified=null;w.name=null;w.numComments=null;w.numRatings=null;w.numViews=null;w.owner=null;w.ownerFolder=null;w.portal=null;w.screenshots=null;w.size=null;w.snippet=null;w.sourceJSON=null;w.spatialReference=null;w.tags=null;w.title=null;w.type=null;w.typeKeywords=null;w.url=null;return w}b._inheritsLoose(B,A);B.from=function(w){return p.ensureClass(x,w)};var E=B.prototype;E.destroy=function(){this.portal=null};E.readExtent=function(w){return w&&
w.length?new t(w[0][0],w[0][1],w[1][0],w[1][1]):null};E.load=function(w){const D=this.portal??(this.portal=f.getDefault()),C=D.load(w).then(()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?D._request(this.itemUrl,{signal:h.isSome(w)?w.signal:null,query:{token:this.apiKey}}):{}).then(F=>{this.sourceJSON=F;this.read(F)});this.addResolvingPromise(C);return Promise.resolve(this)};E.addRating=function(){var w=b._asyncToGenerator(function*(D){const C={method:"post",query:{}};D instanceof v&&(D=
D.rating);null==D||isNaN(D)||"number"!==typeof D||(C.query.rating=D);if(!this.portal)return null;yield this.portal._request(this.itemUrl+"/addRating",C);return new v({rating:D,created:new Date})});return function(D){return w.apply(this,arguments)}}();E.clone=function(){const w={access:this.access,accessInformation:this.accessInformation,applicationProxies:u.clone(this.applicationProxies),avgRating:this.avgRating,categories:u.clone(this.categories),created:u.clone(this.created),culture:this.culture,
description:this.description,extent:u.clone(this.extent),groupCategories:u.clone(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:u.clone(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:u.clone(this.screenshots),size:this.size,snippet:this.snippet,spatialReference:this.spatialReference,tags:u.clone(this.tags),thumbnail:this.thumbnail,
title:this.title,type:this.type,typeKeywords:u.clone(this.typeKeywords),url:this.url};this.loaded&&(w.loadStatus="loaded");return(new x({sourceJSON:this.sourceJSON})).set(w)};E.createPostQuery=function(){const w=this.toJSON();for(var D of["tags","typeKeywords","categories"])w[D]&&(w[D]=w[D].join(", "));({extent:D}=w);D&&(w.extent=JSON.stringify(D));return w};E.deleteRating=function(){var w=b._asyncToGenerator(function*(){yield h.unwrapOrThrow(this.portal)._request(this.itemUrl+"/deleteRating",{method:"post"})});
return function(){return w.apply(this,arguments)}}();E.fetchData=function(w="json",D){return h.unwrapOrThrow(this.portal)._request(this.itemUrl+"/data",{responseType:w,...D,query:{token:this.apiKey}})};E.fetchRating=function(){var w=b._asyncToGenerator(function*(D){D=yield h.unwrapOrThrow(this.portal)._request(this.itemUrl+"/rating",{query:{token:this.apiKey},...D});return null!=D.rating?(D.created=new Date(D.created),new v(D)):null});return function(D){return w.apply(this,arguments)}}();E.fetchRelatedItems=
function(w,D){return h.unwrapOrThrow(this.portal)._requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...w,token:this.apiKey},...D},x)};E.getThumbnailUrl=function(w){let D=this.thumbnailUrl;D&&w&&(D+=`&w=${w}`);return D};E.reload=function(){return h.unwrapOrThrow(this.portal)._request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then(w=>{this.sourceJSON=w;this.read(w);return this})};E.update=function(w){return this.id?this.load().then(()=>h.unwrapOrThrow(this.portal)._signIn()).then(()=>
{const D=w&&w.data,C={method:"post"};C.query=this.createPostQuery();for(const F in C.query)null===C.query[F]&&(C.query[F]="");C.query.clearEmptyFields=!0;null!=D&&("string"===typeof D?C.query.text=D:"object"===typeof D&&(C.query.text=JSON.stringify(D)));return this.portal._request(`${this.userItemUrl}/update`,C).then(()=>this.reload())}):Promise.reject(new d("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))};E.updateThumbnail=function(w){return this.id?this.load().then(()=>
this.portal._signIn()).then(()=>{const D=w.thumbnail,C=w.filename,F={method:"post"};if("string"===typeof D)g.isDataProtocol(D)?F.query={data:D}:F.query={url:g.makeAbsolute(D)},h.isSome(C)&&(F.query.filename=C);else{const G=new FormData;h.isSome(C)?G.append("file",D,C):G.append("file",D);F.body=G}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,F).then(()=>this.reload())}):Promise.reject(new d("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))};E.fetchResources=
function(){var w=b._asyncToGenerator(function*(D={},C){return(yield new Promise((F,G)=>a(["./support/resourceUtils"],F,G))).fetchResources(this,D,C)});return function(){return w.apply(this,arguments)}}();E.addResource=function(){var w=b._asyncToGenerator(function*(D,C,F){const G=yield new Promise((H,I)=>a(["./support/resourceUtils"],H,I));D.portalItem=this;return G.addOrUpdateResource(D,"add",C,F)});return function(D,C,F){return w.apply(this,arguments)}}();E.removeResource=function(){var w=b._asyncToGenerator(function*(D,
C){const F=yield new Promise((G,H)=>a(["./support/resourceUtils"],G,H));if(D.portalItem&&D.portalItem.itemUrl!==this.itemUrl)throw new d("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return F.removeResource(this,D,C)});return function(D,C){return w.apply(this,arguments)}}();E.removeAllResources=function(){var w=b._asyncToGenerator(function*(D){return(yield new Promise((C,F)=>a(["./support/resourceUtils"],C,F))).removeAllResources(this,
D)});return function(D){return w.apply(this,arguments)}}();E.resourceFromPath=function(w){return new q({portalItem:this,path:w})};E.toJSON=function(){var w=this.extent;w={accessInformation:this.accessInformation,categories:u.clone(this.categories),created:this.created&&this.created.getTime(),description:this.description,extent:w&&[[w.xmin,w.ymin],[w.xmax,w.ymax]],id:this.id,licenseInfo:this.licenseInfo,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,
snippet:this.snippet,spatialReference:this.spatialReference,tags:u.clone(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:u.clone(this.typeKeywords),url:this.url};return u.fixJson(w)};B.fromJSON=function(w){if(!w)return null;if(w.declaredClass)throw Error("JSON object is already hydrated");return new x({sourceJSON:w})};E._getPostQuery=function(){const w=this.toJSON();for(const D in w)"tags"===D&&null!==w[D]&&(w[D]=w[D].join(", ")),"typeKeywords"===D&&null!==w[D]&&(w[D]=
w[D].join(", ")),"extent"===D&&w[D]&&(w[D]=JSON.stringify(w[D]));return w};b._createClass(B,[{key:"displayName",get:function(){const w=this.type,D=this.typeKeywords||[];let C=w;"Feature Service"===w||"Feature Collection"===w?C=D.includes("Table")?"Table":D.includes("Route Layer")?"Route Layer":D.includes("Markup")?"Markup":"Feature Layer":"Image Service"===w?C=D.includes("Elevation 3D Layer")?"Elevation Layer":D.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===w?C=
"Scene Layer":"Video Service"===w?C="Video Layer":"Scene Package"===w?C="Scene Layer Package":"Stream Service"===w?C="Feature Layer":"Geoprocessing Service"===w&&this.portal&&this.portal.isPortal?C=D.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===w?C="Locator":"Geoenrichment Service"===w?C="GeoEnrichment Service":"Microsoft Powerpoint"===w?C="Microsoft PowerPoint":"GeoJson"===w?C="GeoJSON":"Globe Service"===w?C="Globe Layer":"Vector Tile Service"===w?C="Tile Layer":"netCDF"===
w?C="NetCDF":"Map Service"===w?C=D.includes("Spatiotemporal")||!D.includes("Hosted Service")&&!D.includes("Tiled")||D.includes("Relational")?"Map Image Layer":"Tile Layer":w&&w.toLowerCase().includes("add in")?C=w.replace(/(add in)/gi,"Add-In"):"datastore catalog service"===w?C="Big Data File Share":"Compact Tile Package"===w?C="Tile Package (tpkx)":"OGCFeatureServer"===w?C="OGC Feature Layer":"web mapping application"===w&&D.includes("configurableApp")&&(C="Instant App");return C}},{key:"iconUrl",
get:function(){var w=this.type&&this.type.toLowerCase()||"";const D=this.typeKeywords||[];let C=!1,F=!1,G=!1,H=!1,I=!1,J=!1;0<w.indexOf("service")||"feature collection"===w||"kml"===w||"wms"===w||"wmts"===w||"wfs"===w?(C=D.includes("Hosted Service"),"feature service"===w||"feature collection"===w||"kml"===w||"wfs"===w?(F=D.includes("Table"),G=D.includes("Route Layer"),H=D.includes("Markup"),I=D.includes("Spatiotemporal"),J=D.includes("UtilityNetwork"),w=I&&F?"spatiotemporaltable":F?"table":G?"routelayer":
H?"markup":I?"spatiotemporal":C?"featureshosted":J?"utilitynetwork":"features"):w="map service"===w||"wms"===w||"wmts"===w?C||D.includes("Tiled")||"wmts"===w?"maptiles":"mapimages":"scene service"===w?D.includes("Line")?"sceneweblayerline":D.includes("3DObject")?"sceneweblayermultipatch":D.includes("Point")?"sceneweblayerpoint":D.includes("IntegratedMesh")?"sceneweblayermesh":D.includes("PointCloud")?"sceneweblayerpointcloud":D.includes("Polygon")?"sceneweblayerpolygon":D.includes("Building")?"sceneweblayerbuilding":
D.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===w?D.includes("Elevation 3D Layer")?"elevationlayer":D.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===w?"streamlayer":"video service"===w?"mediaservice":"vector tile service"===w?"vectortile":"datastore catalog service"===w?"datastorecollection":"geocoding service"===w?"geocodeservice":"geoprocessing service"===w?D.includes("Web Tool")&&this.portal&&this.portal.isPortal?"tool":"layers":"geodata service"===
w?"geodataservice":"layers"):w="web map"===w||"cityengine web scene"===w?"maps":"web scene"===w?D.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===w&&D.includes("configurableApp")?"instantapps":"web mapping application"===w||"mobile application"===w||"application"===w||"operation view"===w||"desktop application"===w?"apps":"map document"===w||"map package"===w||"published map"===w||"scene document"===w||"globe document"===w||"basemap package"===w||"mobile basemap package"===
w||"mobile map package"===w||"project package"===w||"project template"===w||"pro map"===w||"layout"===w||"layer"===w&&D.includes("ArcGIS Pro")||"explorer map"===w&&D.indexOf("Explorer Document")?"mapsgray":"service definition"===w||"csv"===w||"shapefile"===w||"cad drawing"===w||"geojson"===w||"360 vr experience"===w||"netcdf"===w||"administrative report"===w?"datafiles":"explorer add in"===w||"desktop add in"===w||"windows viewer add in"===w||"windows viewer configuration"===w?"appsgray":"arcgis pro add in"===
w||"arcgis pro configuration"===w?"addindesktop":"rule package"===w||"file geodatabase"===w||"sqlite geodatabase"===w||"csv collection"===w||"kml collection"===w||"windows mobile package"===w||"map template"===w||"desktop application template"===w||"gml"===w||"arcpad package"===w||"code sample"===w||"form"===w||"document link"===w||"earth configuration"===w||"operations dashboard add in"===w||"rules package"===w||"image"===w||"workflow manager package"===w||"explorer map"===w&&D.includes("Explorer Mapping Application")||
D.includes("Document")?"datafilesgray":"network analysis service"===w||"geoprocessing service"===w||"geodata service"===w||"geometry service"===w||"geoprocessing package"===w||"locator package"===w||"geoprocessing sample"===w||"workflow manager service"===w?"toolsgray":"layer"===w||"layer package"===w||"explorer layer"===w?"layersgray":"scene package"===w?"scenepackage":"mobile scene package"===w?"mobilescenepackage":"tile package"===w||"compact tile package"===w?"tilepackage":"task file"===w?"taskfile":
"report template"===w?"report-template":"statistical data collection"===w?"statisticaldatacollection":"insights workbook"===w?"workbook":"insights model"===w?"insightsmodel":"insights page"===w?"insightspage":"insights theme"===w?"insightstheme":"hub initiative"===w?"hubinitiative":"hubpage"===w?"hubpage":"hub event"===w?"hubevent":"hub site application"===w?"hubsite":"hub project"===w?"hubproject":"relational database connection"===w?"relationaldatabaseconnection":"big data file share"===w?"datastorecollection":
"image collection"===w?"imagecollection":"style"===w?"style":"desktop style"===w?"desktopstyle":"dashboard"===w?"dashboard":"raster function template"===w?"rasterprocessingtemplate":"vector tile package"===w?"vectortilepackage":"ortho mapping project"===w?"orthomappingproject":"ortho mapping template"===w?"orthomappingtemplate":"solution"===w?"solutions":"geopackage"===w?"geopackage":"deep learning package"===w?"deeplearningpackage":"real time analytic"===w?"realtimeanalytics":"big data analytic"===
w?"bigdataanalytics":"feed"===w?"feed":"excalibur imagery project"===w?"excaliburimageryproject":"notebook"===w?"notebook":"storymap"===w?"storymap":"survey123 add in"===w?"survey123addin":"mission"===w?"mission":"mission report"===w?"missionreport":"quickcapture project"===w?"quickcaptureproject":"pro report"===w?"proreport":"pro report template"===w?"proreporttemplate":"urban model"===w?"urbanmodel":"web experience"===w?"experiencebuilder":"web experience template"===w?"webexperiencetemplate":"experience builder widget"===
w?"experiencebuilderwidget":"experience builder widget package"===w?"experiencebuilderwidgetpackage":"workflow"===w?"workflow":"insights script"===w?"insightsscript":"kernel gateway connection"===w?"kernelgatewayconnection":"hub initiative template"===w?"hubinitiativetemplate":"storymap theme"===w?"storymaptheme":"knowledge graph"===w?"knowledgegraph":"native application"===w?"nativeapp":"native application installer"===w?"nativeappinstaller":"link chart"===w?"linkchart":"investigation"===w?"investigation":
"ogcfeatureserver"===w?"features":"pro project"===w?"proproject":"insights workbook package"===w?"insightsworkbookpackage":"apache parquet"===w?"apacheparquet":"notebook code snippets"===w||"notebook code snippet library"===w?"notebookcodesnippets":"suitability model"===w?"suitabilitymodel":"esri classifier definition"===w?"classifierdefinition":"esri classification schema"===w?"classificationschema":"insights data engineering workbook"===w?"dataengineeringworkbook":"insights data engineering model"===
w?"dataengineeringmodel":"deep learning studio project"===w?"deeplearningproject":"discussion"===w?"discussion":"allsource project"===w?"allsourceproject":"maps";return w?e.getAssetUrl("esri/images/portal/"+w+"16.png"):null}},{key:"isLayer",get:function(){return null!=this.type&&z.has(this.type)}},{key:"itemPageUrl",get:function(){const w=this.portal?.itemPageUrl;return w&&this.id?`${w}?id=${this.id}`:null}},{key:"itemUrl",get:function(){const w=this.portal?.restUrl;return w&&this.id?`${w}/content/items/${this.id}`:
null}},{key:"thumbnailUrl",get:function(){const w=this.itemUrl,D=this.thumbnail;return w&&D?this.portal?._normalizeUrl(`${w}/info/${D}?f=json`)??null:null}},{key:"userItemUrl",get:function(){const w=this.get("portal.restUrl");if(!w)return null;const D=this.owner||this.get("portal.user.username");return D?`${w}/content/users/${this.ownerFolder?`${D}/${this.ownerFolder}`:D}/items/${this.id}`:null}}]);return B}(n.JSONSupportMixin(r));c.__decorate([k.property({type:["private","shared","org","public"]})],
n.prototype,"access",void 0);c.__decorate([k.property()],n.prototype,"accessInformation",void 0);c.__decorate([k.property({type:String})],n.prototype,"apiKey",void 0);c.__decorate([k.property({json:{read:{source:"appProxies"}}})],n.prototype,"applicationProxies",void 0);c.__decorate([k.property()],n.prototype,"avgRating",void 0);c.__decorate([k.property()],n.prototype,"categories",void 0);c.__decorate([k.property({type:Date})],n.prototype,"created",void 0);c.__decorate([k.property()],n.prototype,
"culture",void 0);c.__decorate([k.property()],n.prototype,"description",void 0);c.__decorate([k.property({readOnly:!0})],n.prototype,"displayName",null);c.__decorate([k.property({type:t})],n.prototype,"extent",void 0);c.__decorate([l.reader("extent")],n.prototype,"readExtent",null);c.__decorate([k.property()],n.prototype,"groupCategories",void 0);c.__decorate([k.property({readOnly:!0})],n.prototype,"iconUrl",null);c.__decorate([k.property()],n.prototype,"id",void 0);c.__decorate([k.property({readOnly:!0})],
n.prototype,"isLayer",null);c.__decorate([k.property()],n.prototype,"itemControl",void 0);c.__decorate([k.property({readOnly:!0})],n.prototype,"itemPageUrl",null);c.__decorate([k.property({readOnly:!0})],n.prototype,"itemUrl",null);c.__decorate([k.property()],n.prototype,"licenseInfo",void 0);c.__decorate([k.property({type:Date})],n.prototype,"modified",void 0);c.__decorate([k.property()],n.prototype,"name",void 0);c.__decorate([k.property()],n.prototype,"numComments",void 0);c.__decorate([k.property()],
n.prototype,"numRatings",void 0);c.__decorate([k.property()],n.prototype,"numViews",void 0);c.__decorate([k.property()],n.prototype,"owner",void 0);c.__decorate([k.property()],n.prototype,"ownerFolder",void 0);c.__decorate([k.property({type:f})],n.prototype,"portal",void 0);c.__decorate([k.property()],n.prototype,"screenshots",void 0);c.__decorate([k.property()],n.prototype,"size",void 0);c.__decorate([k.property()],n.prototype,"snippet",void 0);c.__decorate([k.property()],n.prototype,"sourceJSON",
void 0);c.__decorate([k.property({type:String})],n.prototype,"spatialReference",void 0);c.__decorate([k.property()],n.prototype,"tags",void 0);c.__decorate([k.property()],n.prototype,"thumbnail",void 0);c.__decorate([k.property({readOnly:!0})],n.prototype,"thumbnailUrl",null);c.__decorate([k.property()],n.prototype,"title",void 0);c.__decorate([k.property()],n.prototype,"type",void 0);c.__decorate([k.property()],n.prototype,"typeKeywords",void 0);c.__decorate([k.property({type:String,json:{read(A,
B){y.has(B.type)&&(B=this.portal?.restUrl,A||(A=B&&this.id?`${B}/content/items/${this.id}/data`:null));return A}}})],n.prototype,"url",void 0);c.__decorate([k.property({readOnly:!0})],n.prototype,"userItemUrl",null);return n=x=c.__decorate([m.subclass("esri.portal.PortalItem")],n)})},"esri/assets":function(){define("exports ./config ./request ./core/Error ./core/Logger ./core/urlUtils".split(" "),function(a,b,c,e,d,n){function u(h){if(!b.assetsPath)throw r.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),
new e("assets:path-not-set","config.assetsPath is not set");return n.join(b.assetsPath,h)}const r=d.getLogger("esri.assets");a.fetchAsset=function(h,g){return c(u(h),g)};a.getAssetUrl=u;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/PortalItemResource":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Error ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){e=function(l){function m(f){f=l.call(this,f)||this;f.portalItem=null;return f}b._inheritsLoose(m,l);var t=m.prototype;t.normalizeCtorArgs=function(f){return f&&f.portalItem&&f.path?{...f,path:this._normalizePath(f.path,f.portalItem)}:f};t._castPath=function(f){return this._normalizePath(f,this.portalItem)};t.fetch=function(f="json",q){const v=this.url;if(u.isNone(v))throw new d("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");
return this.portalItem.portal._request(v,{responseType:f,query:{token:this.portalItem.apiKey},signal:u.get(q,"signal")})};t.update=function(){var f=b._asyncToGenerator(function*(q,v){return(yield new Promise((x,z)=>a(["./support/resourceUtils"],x,z))).addOrUpdateResource(this,"update",q,v)});return function(q,v){return f.apply(this,arguments)}}();t.hasPath=function(){return u.isSome(this.path)};t._normalizePath=function(f,q){if(u.isNone(f))return f;f=f.replace(/^\/+/,"");u.isSome(q)&&r.isAbsolute(f)&&
(f=r.makeRelative(f,q.itemUrl));return f.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,"")};b._createClass(m,[{key:"path",set:function(f){u.isSome(f)&&r.isAbsolute(f)?n.getLogger(this.declaredClass).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",f)}},{key:"url",get:function(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}},{key:"itemRelativeUrl",get:function(){return this.portalItem&&this.path?
`./resources/${this.path}`:null}}]);return m}(e);c.__decorate([h.property()],e.prototype,"portalItem",void 0);c.__decorate([h.property({type:String,value:null})],e.prototype,"path",null);c.__decorate([k.cast("path")],e.prototype,"_castPath",null);c.__decorate([h.property({type:String,readOnly:!0})],e.prototype,"url",null);c.__decorate([h.property({type:String,readOnly:!0})],e.prototype,"itemRelativeUrl",null);return e=c.__decorate([p.subclass("esri.portal.PortalItemResource")],e)})},"esri/portal/PortalRating":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.created=null;g.rating=null;return g}a._inheritsLoose(h,r);return h}(c);b.__decorate([e.property()],c.prototype,"created",void 0);b.__decorate([e.property()],c.prototype,"rating",void 0);return c=b.__decorate([u.subclass("esri.portal.PortalRating")],c)})},"esri/support/basemapDefinitions":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../assets","../intl/messages"],function(a,b,c,e){function d(){d=b._asyncToGenerator(function*(n){if(n){var u=
n.includes("-vector")?n.slice(0,n.indexOf("-vector")):n,r=yield e.fetchMessageBundle("esri/t9n/basemaps");return r[n]||r[u]}});return d.apply(this,arguments)}a.esriBasemapDefinitions={streets:{id:"streets",classic:!0,deprecated:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets.jpg")},baseMapLayers:[{id:"streets-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Street Map",showLegend:!1,
visibility:!0,opacity:1}]},satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",
url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/terrain.jpg")},
baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},topo:{id:"topo",
classic:!0,deprecated:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/topo.jpg")},baseMapLayers:[{id:"topo-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Topo Map",showLegend:!1,visibility:!0,opacity:1}]},gray:{id:"gray",classic:!0,deprecated:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/gray.jpg")},baseMapLayers:[{id:"gray-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer",
layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Light Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"dark-gray":{id:"dark-gray",classic:!0,deprecated:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/dark-gray.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",
url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Base",showLegend:!1,visibility:!0,opacity:1},{id:"dark-gray-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Dark Gray Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/oceans.jpg")},
baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},"national-geographic":{id:"national-geographic",
classic:!0,deprecated:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/national-geographic.jpg")},baseMapLayers:[{id:"national-geographic-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer",title:"NatGeo World Map",showLegend:!1,layerType:"ArcGISTiledMapServiceLayer",visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",
title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",
layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",
layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},"topo-vector":{id:"topo-vector",
classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",
visibility:!0,opacity:1}]},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-relief.jpg")},
baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",
classic:!0,get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"arcgis-imagery":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",
showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",
url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",
title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-night.jpg")},
title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},
{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return c.getAssetUrl("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",
title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",
layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},
{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",
title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",
showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},
"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",
url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},
"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",
title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",
styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}};a.getBasemapTitle=function(n){return d.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl/messages":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../core/Error","../core/promiseUtils","./locale"],function(a,b,c,e,d){function n(q){for(const v of m.keys())g(q.pattern,
v)&&m.delete(v)}function u(){u=b._asyncToGenerator(function*(q){const v=d.getLocale();m.has(q)||m.set(q,r(q,v));(q=m.get(q))&&(yield t.add(q));return q});return u.apply(this,arguments)}function r(q,v){return h.apply(this,arguments)}function h(){h=b._asyncToGenerator(function*(q,v){const x=[];for(const z of l)if(g(z.pattern,q))try{return yield z.fetchMessageBundle(q,v)}catch(y){x.push(y)}if(x.length)throw new c("intl:message-bundle-error",`Errors occurred while loading "${q}"`,{errors:x});throw new c("intl:no-message-bundle-loader",
`No loader found for message bundle "${q}"`);});return h.apply(this,arguments)}function g(q,v){return"string"===typeof q?v.startsWith(q):q.test(v)}const k=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,p={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0},l=[],m=new Map;d.beforeLocaleChange(()=>
{m.clear()});const t=new (function(){function q(){this._numLoading=0;this._dfd=null}var v=q.prototype;v.waitForAll=function(){var x=b._asyncToGenerator(function*(){this._dfd&&(yield this._dfd.promise)});return function(){return x.apply(this,arguments)}}();v.add=function(x){this._increase();x.then(()=>this._decrease(),()=>this._decrease());return this.waitForAll()};v._increase=function(){this._numLoading++;this._dfd||(this._dfd=e.createDeferred())};v._decrease=function(){this._numLoading=Math.max(this._numLoading-
1,0);this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)};return q}()),f={cache:m,loaders:l};a.fetchMessageBundle=function(q){return u.apply(this,arguments)};a.normalizeMessageBundleLocale=function(q){if(!k.test(q))return null;q=k.exec(q);if(null===q)return null;const [,v,x]=q;q=v+(x?"-"+x.toUpperCase():"");return p[q]??!1?q:p[v]??!1?v:null};a.registerMessageBundleLoader=function(q){l.includes(q)||(n(q),l.unshift(q));return{remove(){const v=l.indexOf(q);-1<v&&(l.splice(v,1),n(q))}}};
a.test=f;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/webdoc/support/writeUtils":function(){define("exports ../../core/Error ../../core/lang ../../core/maybe ../../core/object ../../core/accessorSupport/extensions/serializableProperty/writer ../../layers/support/layerUtils".split(" "),function(a,b,c,e,d,n,u){function r(k,p){"maxScale"in k&&(p.maxScale=n.numberToJSON(k.maxScale));"minScale"in k&&(p.minScale=n.numberToJSON(k.minScale))}const h=new Set("bing-maps imagery imagery-tile map-image open-street-map tile unknown unsupported vector-tile web-tile wms wmts".split(" ")),
g=new Set("csv feature geo-rss geojson group imagery imagery-tile kml map-image map-notes ogc-feature route subtype-group tile unknown unsupported vector-tile web-tile wfs wms wmts".split(" "));a.disableRestrictedWriting=function(k){h.add(k);g.add(k)};a.enableRestrictedWriting=function(k){h.delete(k);g.delete(k)};a.getLayerJSON=function(k,p,l){if(!("write"in k&&k.write))return l&&l.messages&&l.messages.push(new b("layer:unsupported",`Layers (${k.title}, ${k.id}) of type '${k.declaredClass}' cannot be persisted`,
{layer:k})),null;if(l.restrictedWebMapWriting){var m="basemap"===l.layerContainerType?h:"operational-layers"===l.layerContainerType?g:null;m=e.isSome(m)?m.has(k.type)&&!u.isFeatureCollectionLayer(k):!0}else m=!0;if(m)return p={},k.write(p,l)?p:null;if(e.isSome(p)&&(l=p=c.clone(p),u.isFeatureCollectionLayer(k)?(m=(m=d.getDeepValue("featureCollection.layers",l))&&m[0]&&m[0].layerDefinition)&&r(k,m):"stream"===k.type?(m=l.layerDefinition=l.layerDefinition||{},r(k,m)):"group"!==k.type&&r(k,l),"blendMode"in
k&&(l.blendMode=k.blendMode,"normal"===l.blendMode&&delete l.blendMode),l.opacity=n.numberToJSON(k.opacity),l.title=k.title||"Layer",l.visibility=k.visible,"legendEnabled"in k&&"wmts"!==k.type))if(u.isFeatureCollectionLayer(k)){if(l=l.featureCollection)l.showLegend=k.legendEnabled}else l.showLegend=k.legendEnabled;return p};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/layerUtils":function(){define(["exports"],function(a){a.areLabelsVisible=
function(b){return!0===b.labelsVisible&&null!=b.labelingInfo&&0<b.labelingInfo.length};a.getTileMaxtrixSetFromActiveLayer=function(b){if(b.activeLayer){const c=b.activeLayer.tileMatrixSet;if(c)return c;if(b=b.activeLayer.tileMatrixSets)return b}return null};a.isBaseLayer=function(b){return"esri.Basemap"===b.parent?.declaredClass&&b.parent.baseLayers.includes(b)};a.isBasemapSupportedLayer=function(b){b=b?.type;return"imagery-tile"===b||"tile"===b||"open-street-map"===b||"vector-tile"===b||"web-tile"===
b||"wmts"===b};a.isFeatureCollectionLayer=function(b){return"feature"===b?.type&&!b.url&&"memory"===b.source?.type};a.isFeatureServiceLayer=function(b){return"feature"===b?.type&&"feature-layer"===b.source?.type};a.isImageryTileLayer=function(b){return"imagery-tile"===b?.type};a.isTiledLayer=function(b){b=b?.type;return"base-tile"===b||"tile"===b||"elevation"===b||"imagery-tile"===b||"base-elevation"===b||"open-street-map"===b||"wcs"===b||"web-tile"===b||"wmts"===b||"vector-tile"===b};a.isVoxelLayer=
function(b){return"voxel"===b?.type};a.serializeLayerDefinitions=function(b){const c=/[:;]/,e=[];let d=!1;if(b&&(b.forEach((n,u)=>{e.push([u,n]);!d&&c.test(n)&&(d=!0)}),0<e.length)){if(d){const n={};e.forEach(u=>{n[u[0]]=u[1]});b=JSON.stringify(n)}else{const n=[];e.forEach(u=>{n.push(u[0]+":"+u[1])});b=n.join(";")}return b}return null};a.serializeTimeOptions=function(b){if(b){var c=[];b.forEach((e,d)=>{c.push('"'+d+'":'+JSON.stringify(e))});if(c.length)return"{"+c.join(",")+"}"}};Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/Ground":function(){define("require ./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Color ./core/Collection ./core/collectionUtils ./core/compilerUtils ./core/Error ./core/JSONSupport ./core/lang ./core/Loadable ./core/loadAll ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./ground/NavigationConstraint ./views/3d/support/debugFlags ./webdoc/support/opacityUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y){function A(E){return"elevation"===E.type||E&&"createElevationSampler"in E}var B;h=B=function(E){function w(C){var F=E.call(this,C)||this;F.opacity=1;F.shading=!z.TERRAIN_USE_LEGACY_SHADING;F.surfaceColor=null;F.navigationConstraint=null;F.layers=new d;F.layers.on("after-add",G=>{G=G.item;G.parent&&G.parent!==b._assertThisInitialized(F)&&"remove"in G.parent&&G.parent.remove(G);G.parent=b._assertThisInitialized(F);"elevation"!==G.type&&"base-elevation"!==
G.type&&l.getLogger(F.declaredClass).error(`Layer '${G.title}, id:${G.id}' of type '${G.type}' is not supported as a ground layer and will therefore be ignored. Only layers of type 'elevation' are supported.`)});F.layers.on("after-remove",G=>{G.item.parent=null});return F}b._inheritsLoose(w,E);var D=w.prototype;D.initialize=function(){this.when().catch(C=>{l.getLogger(this.declaredClass).error("#load()","Failed to load ground",C)});this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)};
D.destroy=function(){const C=this.layers.removeAll();for(const F of C)F.destroy();this.layers.destroy()};D.normalizeCtorArgs=function(C){C&&"resourceInfo"in C&&(this._set("resourceInfo",C.resourceInfo),C={...C},delete C.resourceInfo);return C};D.writeLayers=function(C,F,G,H){const I=[];C&&(H={...H,layerContainerType:"ground"},C.forEach(J=>{if("write"in J){const K={};u.typeCast(J)().write(K,H)&&I.push(K)}else H&&H.messages&&H.messages.push(new r("layer:unsupported",`Layers (${J.title}, ${J.id}) of type '${J.declaredClass}' cannot be persisted in the ground`,
{layer:J}))}));F.layers=I};D.load=function(C){this.addResolvingPromise(this._loadFromSource(C));return Promise.resolve(this)};D.loadAll=function(){return p.loadAll(this,C=>{C(this.layers)})};D.queryElevation=function(){var C=b._asyncToGenerator(function*(F,G){yield this.load({signal:G?.signal});var {ElevationQuery:H}=yield new Promise((J,K)=>a(["./layers/support/ElevationQuery"],J,K));m.throwIfAborted(G);H=new H;const I=this.layers.filter(A).toArray();return H.queryAll(I,F,G)});return function(F,
G){return C.apply(this,arguments)}}();D.createElevationSampler=function(){var C=b._asyncToGenerator(function*(F,G){yield this.load({signal:G?.signal});var {ElevationQuery:H}=yield new Promise((J,K)=>a(["./layers/support/ElevationQuery"],J,K));m.throwIfAborted(G);H=new H;const I=this.layers.filter(A).toArray();return H.createSamplerAll(I,F,G)});return function(F,G){return C.apply(this,arguments)}}();D.clone=function(){const C={opacity:this.opacity,surfaceColor:g.clone(this.surfaceColor),navigationConstraint:g.clone(this.navigationConstraint),
layers:this.layers.slice()};this.loaded&&(C.loadStatus="loaded");return(new B({resourceInfo:this.resourceInfo})).set(C)};D.read=function(C,F){this.resourceInfo||this._set("resourceInfo",{data:C,context:F});E.prototype.read.call(this,C,F)};D._loadFromSource=function(C){const F=this.resourceInfo;return F?this._loadLayersFromJSON(F.data,F.context,C):Promise.resolve()};D._loadLayersFromJSON=function(C,F,G){const H=F&&F.origin||"web-scene",I=F&&F.portal||null,J=F&&F.url||null;return(new Promise((K,N)=>
a(["./layers/support/layersCreator"],K,N))).then(({populateOperationalLayers:K})=>{m.throwIfAborted(G);const N=[];C.layers&&Array.isArray(C.layers)&&N.push(K(this.layers,C.layers,{context:{origin:H,url:J,portal:I,layerContainerType:"ground"},defaultLayerType:"ArcGISTiledElevationServiceLayer"}));return m.eachAlways(N)}).then(()=>{})};b._createClass(w,[{key:"layers",set:function(C){this._set("layers",n.referenceSetter(C,this._get("layers")))}}]);return w}(h.JSONSupportMixin(k));c.__decorate([t.property({json:{read:!1}})],
h.prototype,"layers",null);c.__decorate([v.writer("layers")],h.prototype,"writeLayers",null);c.__decorate([t.property({readOnly:!0})],h.prototype,"resourceInfo",void 0);c.__decorate([t.property({type:Number,nonNullable:!0,range:{min:0,max:1},json:{type:f.Integer,read:{reader:y.transparencyToOpacity,source:"transparency"},write:{writer:(E,w)=>{w.transparency=y.opacityToTransparency(E)},target:"transparency"}}})],h.prototype,"opacity",void 0);c.__decorate([t.property({type:Boolean,nonNullable:!0,json:{read:!1}})],
h.prototype,"shading",void 0);c.__decorate([t.property({type:e,json:{type:[f.Integer],write:(E,w)=>{w.surfaceColor=E.toJSON().slice(0,3)}}})],h.prototype,"surfaceColor",void 0);c.__decorate([t.property({type:x.NavigationConstraint,json:{write:!0}})],h.prototype,"navigationConstraint",void 0);return h=B=c.__decorate([q.subclass("esri.Ground")],h)})},"esri/Color":function(){define(["./chunks/_rollupPluginBabelHelpers","./colorUtils","./core/mathUtils","./core/maybe","./core/accessorSupport/ensureType"],
function(a,b,c,e,d){function n(h){return c.clamp(d.ensureInteger(h),0,255)}function u(h,g,k){h=Number(h);return isNaN(h)?k:h<g?g:h>k?k:h}let r=function(){function h(k){this.b=this.g=this.r=255;this.a=1;k&&this.setColor(k)}h.blendColors=function(k,p,l,m=new h){m.r=Math.round(k.r+(p.r-k.r)*l);m.g=Math.round(k.g+(p.g-k.g)*l);m.b=Math.round(k.b+(p.b-k.b)*l);m.a=k.a+(p.a-k.a)*l;return m._sanitize()};h.fromRgb=function(k,p){var l=k.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(l){k=l[2].split(/\s*,\s*/);
l=l[1];if("rgb"===l&&3===k.length||"rgba"===l&&4===k.length)return l=k[0],"%"===l.charAt(l.length-1)?(l=k.map(m=>2.56*parseFloat(m)),4===k.length&&(l[3]=parseFloat(k[3])),h.fromArray(l,p)):h.fromArray(k.map(m=>parseFloat(m)),p);if("hsl"===l&&3===k.length||"hsla"===l&&4===k.length)return h.fromArray(b.hsla2rgba(parseFloat(k[0]),parseFloat(k[1])/100,parseFloat(k[2])/100,parseFloat(k[3])),p)}return null};h.fromHex=function(k,p=new h){if(4!==k.length&&7!==k.length||"#"!==k[0])return null;const l=4===
k.length?4:8,m=(1<<l)-1;let t=Number("0x"+k.substr(1));if(isNaN(t))return null;["b","g","r"].forEach(f=>{const q=t&m;t>>=l;p[f]=4===l?17*q:q});p.a=1;return p};h.fromArray=function(k,p=new h){p._set(Number(k[0]),Number(k[1]),Number(k[2]),Number(k[3]));isNaN(p.a)&&(p.a=1);return p._sanitize()};h.fromString=function(k,p){const l=b.isNamedColor(k)?b.getNamedColor(k):null;return l&&h.fromArray(l,p)||h.fromRgb(k,p)||h.fromHex(k,p)};h.fromJSON=function(k){return k&&new h([k[0],k[1],k[2],k[3]/255])};h.toUnitRGB=
function(k){return e.isSome(k)?[k.r/255,k.g/255,k.b/255]:null};h.toUnitRGBA=function(k){return e.isSome(k)?[k.r/255,k.g/255,k.b/255,null!=k.a?k.a:1]:null};var g=h.prototype;g.setColor=function(k){"string"===typeof k?h.fromString(k,this):Array.isArray(k)?h.fromArray(k,this):(this._set(k.r??0,k.g??0,k.b??0,k.a??1),k instanceof h||this._sanitize());return this};g.toRgb=function(){return[this.r,this.g,this.b]};g.toRgba=function(){return[this.r,this.g,this.b,this.a]};g.toHex=function(){const k=this.r.toString(16),
p=this.g.toString(16),l=this.b.toString(16);return`#${2>k.length?"0"+k:k}${2>p.length?"0"+p:p}${2>l.length?"0"+l:l}`};g.toCss=function(k=!1){const p=this.r+", "+this.g+", "+this.b;return k?`rgba(${p}, ${this.a})`:`rgb(${p})`};g.toString=function(){return this.toCss(!0)};g.toJSON=function(){return this.toArray()};g.toArray=function(k=h.AlphaMode.ALWAYS){const p=n(this.r),l=n(this.g),m=n(this.b);return k===h.AlphaMode.ALWAYS||1!==this.a?[p,l,m,n(255*this.a)]:[p,l,m]};g.clone=function(){return new h(this.toRgba())};
g.hash=function(){return this.r<<24|this.g<<16|this.b<<8|255*this.a};g.equals=function(k){return e.isSome(k)&&k.r===this.r&&k.g===this.g&&k.b===this.b&&k.a===this.a};g._sanitize=function(){this.r=Math.round(u(this.r,0,255));this.g=Math.round(u(this.g,0,255));this.b=Math.round(u(this.b,0,255));this.a=u(this.a,0,1);return this};g._set=function(k,p,l,m){this.r=k;this.g=p;this.b=l;this.a=m};a._createClass(h,[{key:"isBright",get:function(){return 127<=.299*this.r+.587*this.g+.114*this.b}}]);return h}();
r.prototype.declaredClass="esri.Color";(function(h){h=h.AlphaMode||(h.AlphaMode={});h[h.ALWAYS=0]="ALWAYS";h[h.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"})(r||(r={}));return r})},"esri/colorUtils":function(){define(["exports"],function(a){function b(d){return e[d]??e[d.toLowerCase()]}function c(d,n,u){0>u&&++u;1<u&&--u;const r=6*u;return 1>r?d+(n-d)*r:1>2*u?n:2>3*u?d+(n-d)*(2/3-u)*6:d}const e={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,
0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,
255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,
1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,
240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,
1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,
25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,
51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,
222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};a.getNamedColor=b;a.getNamedColorCopy=function(d){return[...b(d)]};a.hex2rgba=function(d){var n=5<d.length;const u=n?8:4,r=(1<<u)-1,h=n?1:17;n=n?9===d.length:5===d.length;d=Number("0x"+d.substr(1));if(isNaN(d))return null;const g=[0,0,0,1];n&&(n=d&r,d>>=u,g[3]=h*n/255);n=d&r;d>>=u;g[2]=h*n;n=d&r;d>>=u;g[1]=h*n;n=d&r;d>>=u;g[0]=h*n;return g};a.hsla2rgba=function(d,n,u,r=1){d=(d%360+360)%360/360;n=.5>=u?u*(n+1):u+n-u*n;u=2*u-n;return[Math.round(255*
c(u,n,d+1/3)),Math.round(255*c(u,n,d)),Math.round(255*c(u,n,d-1/3)),r]};a.isNamedColor=function(d){return e[d]||e[d.toLowerCase()]};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/mathUtils":function(){define(["exports","./maybe","../chunks/vec3","../chunks/vec4"],function(a,b,c,e){function d(v,x,z){return Math.min(Math.max(v,x),z)}function n(v,x,z){return v+(x-v)*z}function u(v){return Math.asin(d(v,-1,1))}function r(v,x,z=1E-6){return v===x?
!0:Number.isFinite(v)&&Number.isFinite(x)?(v>x?v-x:x-v)<=z:!1}function h(v){m.setFloat64(0,v);return m.getBigInt64(0)}function g(v){m.setBigInt64(0,v);return m.getFloat64(0)}function k(v){v=Math.abs(v);var x=h(v);x=x<=t?g(t):g(x-t);return Math.abs(v-x)}function p(v){l[0]=v;return l[0]}const l=new Float32Array(1),m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT)),t=BigInt("1000000"),f=k(1),q=p(3.4028234663852886E38);a.NUMBER_MAX_FLOAT32=q;a.acosClamped=function(v){return Math.acos(d(v,
-1,1))};a.applyOpacity=function(v,x,z){return e.set(v,x[0],x[1],x[2],x[3]*z)};a.asinClamped=u;a.cartesianToSpherical=function(v,x){const z=c.length(v),y=u(v[2]/z);c.set(x,z,y,Math.atan2(v[1]/z,v[0]/z));return x};a.clamp=d;a.clampFloat32=function(v){return p(Math.max(-q,Math.min(v,q)))};a.deg2rad=function(v){return v*Math.PI/180};a.floatEqualAbsolute=r;a.floatEqualRelative=function(v,x,z=1E-6){if(v===x)return!0;if(!Number.isFinite(v)||!Number.isFinite(x))return!1;const y=Math.abs(v-x),A=Math.abs(v),
B=Math.abs(x);if(0===v||0===x||1E-12>A&&1E-12>B){if(y>.01*z)return!1}else if(y/(A+B)>z)return!1;return!0};a.floatEqualUlp=function(v,x,z=f){if(v===x)return!0;if(!Number.isFinite(v)||!Number.isFinite(x))return!1;if(b.isSome(z)&&k(Math.min(Math.abs(v),Math.abs(x)))<z)return Math.abs(v-x)<=z;v=h(v);x=h(x);return 0>v!==0>x||(v<x?x-v:v-x)>t?!1:!0};a.hasScaling=function(v){const x=v[3]*v[3]+v[4]*v[4]+v[5]*v[5],z=v[6]*v[6]+v[7]*v[7]+v[8]*v[8];return!(r(v[0]*v[0]+v[1]*v[1]+v[2]*v[2],1)&&r(x,1)&&r(z,1))};
a.isPowerOfTwo=function(v){return 0===(v&v-1)};a.lerp=n;a.nextHighestPowerOfTen=function(v){return 10**Math.ceil(Math.LOG10E*Math.log(v))};a.nextHighestPowerOfTwo=function(v){--v;for(let x=1;32>x;x<<=1)v|=v>>x;return v+1};a.nextPowerOfTwo=function(v){v--;v|=v>>1;v|=v>>2;v|=v>>4;v|=v>>8;v|=v>>16;v++;return v};a.rad2deg=function(v){return 180*v/Math.PI};a.reciprocalClamped=function(v,x=1E-6){return(0>v?-1:1)/Math.max(Math.abs(v),x)};a.roundToNearest=function(v,x){return 0===x?0:Math.round(v/x)*x};a.scale=
function(v,x,z,y,A){return n(y,A,(v-x)/(z-x))};a.smoothstep=function(v,x,z){v=d((z-v)/(x-v),0,1);return v*v*(3-2*v)};a.sphericalToCartesian=function(v,x){const z=v[0],y=v[1];v=v[2];const A=Math.cos(y);c.set(x,z*A*Math.cos(v),z*A*Math.sin(v),z*Math.sin(y))};a.step=function(v,x){return x<v?0:1};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/vec3":function(){define(["exports","./vec3f64","./common"],function(a,b,c){function e(da){const la=da[0],
sa=da[1];da=da[2];return Math.sqrt(la*la+sa*sa+da*da)}function d(da,la){da[0]=la[0];da[1]=la[1];da[2]=la[2];return da}function n(da,la,sa,L){da[0]=la;da[1]=sa;da[2]=L;return da}function u(da,la,sa){da[0]=la[0]+sa[0];da[1]=la[1]+sa[1];da[2]=la[2]+sa[2];return da}function r(da,la,sa){da[0]=la[0]-sa[0];da[1]=la[1]-sa[1];da[2]=la[2]-sa[2];return da}function h(da,la,sa){da[0]=la[0]*sa[0];da[1]=la[1]*sa[1];da[2]=la[2]*sa[2];return da}function g(da,la,sa){da[0]=la[0]/sa[0];da[1]=la[1]/sa[1];da[2]=la[2]/
sa[2];return da}function k(da,la){da[0]=Math.ceil(la[0]);da[1]=Math.ceil(la[1]);da[2]=Math.ceil(la[2]);return da}function p(da,la){da[0]=Math.floor(la[0]);da[1]=Math.floor(la[1]);da[2]=Math.floor(la[2]);return da}function l(da,la){da[0]=Math.abs(la[0]);da[1]=Math.abs(la[1]);da[2]=Math.abs(la[2]);return da}function m(da,la){da[0]=Math.sign(la[0]);da[1]=Math.sign(la[1]);da[2]=Math.sign(la[2]);return da}function t(da,la,sa){da[0]=Math.min(la[0],sa[0]);da[1]=Math.min(la[1],sa[1]);da[2]=Math.min(la[2],
sa[2]);return da}function f(da,la,sa){da[0]=Math.max(la[0],sa[0]);da[1]=Math.max(la[1],sa[1]);da[2]=Math.max(la[2],sa[2]);return da}function q(da,la){da[0]=Math.round(la[0]);da[1]=Math.round(la[1]);da[2]=Math.round(la[2]);return da}function v(da,la,sa){da[0]=la[0]*sa;da[1]=la[1]*sa;da[2]=la[2]*sa;return da}function x(da,la,sa,L){da[0]=la[0]+sa[0]*L;da[1]=la[1]+sa[1]*L;da[2]=la[2]+sa[2]*L;return da}function z(da,la){const sa=la[0]-da[0],L=la[1]-da[1];da=la[2]-da[2];return Math.sqrt(sa*sa+L*L+da*da)}
function y(da,la){const sa=la[0]-da[0],L=la[1]-da[1];da=la[2]-da[2];return sa*sa+L*L+da*da}function A(da){const la=da[0],sa=da[1];da=da[2];return la*la+sa*sa+da*da}function B(da,la){da[0]=-la[0];da[1]=-la[1];da[2]=-la[2];return da}function E(da,la){da[0]=1/la[0];da[1]=1/la[1];da[2]=1/la[2];return da}function w(da,la){var sa=la[0];const L=la[1],O=la[2];sa=sa*sa+L*L+O*O;0<sa&&(sa=1/Math.sqrt(sa),da[0]=la[0]*sa,da[1]=la[1]*sa,da[2]=la[2]*sa);return da}function D(da,la){return da[0]*la[0]+da[1]*la[1]+
da[2]*la[2]}function C(da,la,sa){const L=la[0],O=la[1];la=la[2];const ha=sa[0],pa=sa[1];sa=sa[2];da[0]=O*sa-la*pa;da[1]=la*ha-L*sa;da[2]=L*pa-O*ha;return da}function F(da,la,sa,L){const O=la[0],ha=la[1];la=la[2];da[0]=O+L*(sa[0]-O);da[1]=ha+L*(sa[1]-ha);da[2]=la+L*(sa[2]-la);return da}function G(da,la,sa,L,O,ha){const pa=ha*ha,ya=pa*(2*ha-3)+1,Y=pa*(ha-2)+ha,ea=pa*(ha-1);ha=pa*(3-2*ha);da[0]=la[0]*ya+sa[0]*Y+L[0]*ea+O[0]*ha;da[1]=la[1]*ya+sa[1]*Y+L[1]*ea+O[1]*ha;da[2]=la[2]*ya+sa[2]*Y+L[2]*ea+O[2]*
ha;return da}function H(da,la,sa,L,O,ha){var pa=1-ha,ya=pa*pa;const Y=ha*ha,ea=ya*pa;ya*=3*ha;pa*=3*Y;ha*=Y;da[0]=la[0]*ea+sa[0]*ya+L[0]*pa+O[0]*ha;da[1]=la[1]*ea+sa[1]*ya+L[1]*pa+O[1]*ha;da[2]=la[2]*ea+sa[2]*ya+L[2]*pa+O[2]*ha;return da}function I(da,la){la=la||1;var sa=c.RANDOM;const L=2*sa()*Math.PI;sa=2*sa()-1;const O=Math.sqrt(1-sa*sa)*la;da[0]=Math.cos(L)*O;da[1]=Math.sin(L)*O;da[2]=sa*la;return da}function J(da,la,sa){const L=la[0],O=la[1];la=la[2];da[0]=sa[0]*L+sa[4]*O+sa[8]*la+sa[12];da[1]=
sa[1]*L+sa[5]*O+sa[9]*la+sa[13];da[2]=sa[2]*L+sa[6]*O+sa[10]*la+sa[14];return da}function K(da,la,sa){const L=la[0],O=la[1];la=la[2];da[0]=L*sa[0]+O*sa[3]+la*sa[6];da[1]=L*sa[1]+O*sa[4]+la*sa[7];da[2]=L*sa[2]+O*sa[5]+la*sa[8];return da}function N(da,la,sa){const L=sa[0],O=sa[1],ha=sa[2],pa=la[0],ya=la[1];la=la[2];let Y=O*la-ha*ya,ea=ha*pa-L*la,ma=L*ya-O*pa;sa=2*sa[3];da[0]=pa+Y*sa+2*(O*ma-ha*ea);da[1]=ya+ea*sa+2*(ha*Y-L*ma);da[2]=la+ma*sa+2*(L*ea-O*Y);return da}function U(da,la,sa,L){const O=[],ha=
[];O[0]=la[0]-sa[0];O[1]=la[1]-sa[1];O[2]=la[2]-sa[2];ha[0]=O[0];ha[1]=O[1]*Math.cos(L)-O[2]*Math.sin(L);ha[2]=O[1]*Math.sin(L)+O[2]*Math.cos(L);da[0]=ha[0]+sa[0];da[1]=ha[1]+sa[1];da[2]=ha[2]+sa[2];return da}function ba(da,la,sa,L){const O=[],ha=[];O[0]=la[0]-sa[0];O[1]=la[1]-sa[1];O[2]=la[2]-sa[2];ha[0]=O[2]*Math.sin(L)+O[0]*Math.cos(L);ha[1]=O[1];ha[2]=O[2]*Math.cos(L)-O[0]*Math.sin(L);da[0]=ha[0]+sa[0];da[1]=ha[1]+sa[1];da[2]=ha[2]+sa[2];return da}function ka(da,la,sa,L){const O=[],ha=[];O[0]=
la[0]-sa[0];O[1]=la[1]-sa[1];O[2]=la[2]-sa[2];ha[0]=O[0]*Math.cos(L)-O[1]*Math.sin(L);ha[1]=O[0]*Math.sin(L)+O[1]*Math.cos(L);ha[2]=O[2];da[0]=ha[0]+sa[0];da[1]=ha[1]+sa[1];da[2]=ha[2]+sa[2];return da}function P(da,la){d(Ba,da);d(Ha,la);w(Ba,Ba);w(Ha,Ha);da=D(Ba,Ha);return 1<da?0:-1>da?Math.PI:Math.acos(da)}function V(da){return"vec3("+da[0]+", "+da[1]+", "+da[2]+")"}function ca(da,la){return da[0]===la[0]&&da[1]===la[1]&&da[2]===la[2]}function ra(da,la){if(da===la)return!0;const sa=da[0],L=da[1];
da=da[2];const O=la[0],ha=la[1];la=la[2];const pa=c.getEpsilon();return Math.abs(sa-O)<=pa*Math.max(1,Math.abs(sa),Math.abs(O))&&Math.abs(L-ha)<=pa*Math.max(1,Math.abs(L),Math.abs(ha))&&Math.abs(da-la)<=pa*Math.max(1,Math.abs(da),Math.abs(la))}function ta(da,la,sa){const L=sa[0]-la[0],O=sa[1]-la[1];la=sa[2]-la[2];sa=L*L+O*O+la*la;if(0<sa)return sa=1/Math.sqrt(sa),da[0]=L*sa,da[1]=O*sa,da[2]=la*sa,da;da[0]=0;da[1]=0;da[2]=0;return da}const Ba=b.create(),Ha=b.create();b=Object.freeze(Object.defineProperty({__proto__:null,
length:e,copy:d,set:n,add:u,subtract:r,multiply:h,divide:g,ceil:k,floor:p,abs:l,sign:m,min:t,max:f,round:q,scale:v,scaleAndAdd:x,distance:z,squaredDistance:y,squaredLength:A,negate:B,inverse:E,normalize:w,dot:D,cross:C,lerp:F,hermite:G,bezier:H,random:I,transformMat4:J,transformMat3:K,transformQuat:N,rotateX:U,rotateY:ba,rotateZ:ka,angle:P,str:V,exactEquals:ca,equals:ra,direction:ta,sub:r,mul:h,div:g,dist:z,sqrDist:y,len:e,sqrLen:A},Symbol.toStringTag,{value:"Module"}));a.abs=l;a.add=u;a.angle=P;
a.bezier=H;a.ceil=k;a.copy=d;a.cross=C;a.direction=ta;a.dist=z;a.distance=z;a.div=g;a.divide=g;a.dot=D;a.equals=ra;a.exactEquals=ca;a.floor=p;a.hermite=G;a.inverse=E;a.len=e;a.length=e;a.lerp=F;a.max=f;a.min=t;a.mul=h;a.multiply=h;a.negate=B;a.normalize=w;a.random=I;a.rotateX=U;a.rotateY=ba;a.rotateZ=ka;a.round=q;a.scale=v;a.scaleAndAdd=x;a.set=n;a.sign=m;a.sqrDist=y;a.sqrLen=A;a.squaredDistance=y;a.squaredLength=A;a.str=V;a.sub=r;a.subtract=r;a.transformMat3=K;a.transformMat4=J;a.transformQuat=N;
a.vec3=b})},"esri/chunks/vec3f64":function(){define(["exports"],function(a){function b(){return[0,0,0]}function c(v){return[v[0],v[1],v[2]]}function e(v,x,z){return[v,x,z]}function d(v){const x=b(),z=Math.min(3,v.length);for(let y=0;y<z;++y)x[y]=v[y];return x}function n(v,x){return new Float64Array(v,x,3)}function u(){return b()}function r(){return[1,1,1]}function h(){return[1,0,0]}function g(){return[0,1,0]}function k(){return[0,0,1]}const p=b(),l=r(),m=h(),t=g(),f=k(),q=Object.freeze(Object.defineProperty({__proto__:null,
create:b,clone:c,fromValues:e,fromArray:d,createView:n,zeros:u,ones:r,unitX:h,unitY:g,unitZ:k,ZEROS:p,ONES:l,UNIT_X:m,UNIT_Y:t,UNIT_Z:f},Symbol.toStringTag,{value:"Module"}));a.ONES=l;a.UNIT_X=m;a.UNIT_Y=t;a.UNIT_Z=f;a.ZEROS=p;a.clone=c;a.create=b;a.createView=n;a.fromArray=d;a.fromValues=e;a.ones=r;a.unitX=h;a.unitY=g;a.unitZ=k;a.vec3f64=q;a.zeros=u})},"esri/chunks/common":function(){define(["exports"],function(a){function b(){return u}function c(p){u=p}function e(p){return p*h}function d(p){return p*
g}function n(p,l){return Math.abs(p-l)<=u*Math.max(1,Math.abs(p),Math.abs(l))}let u=1E-6;const r=Math.random,h=Math.PI/180,g=180/Math.PI,k=Object.freeze(Object.defineProperty({__proto__:null,getEpsilon:b,setEpsilon:c,RANDOM:r,toRadian:e,toDegree:d,equals:n},Symbol.toStringTag,{value:"Module"}));a.RANDOM=r;a.common=k;a.equals=n;a.getEpsilon=b;a.setEpsilon=c;a.toDegree=d;a.toRadian=e})},"esri/chunks/vec4":function(){define(["exports","./common"],function(a,b){function c(J,K){J[0]=K[0];J[1]=K[1];J[2]=
K[2];J[3]=K[3];return J}function e(J,K,N,U,ba){J[0]=K;J[1]=N;J[2]=U;J[3]=ba;return J}function d(J,K,N){J[0]=K[0]+N[0];J[1]=K[1]+N[1];J[2]=K[2]+N[2];J[3]=K[3]+N[3];return J}function n(J,K,N){J[0]=K[0]-N[0];J[1]=K[1]-N[1];J[2]=K[2]-N[2];J[3]=K[3]-N[3];return J}function u(J,K,N){J[0]=K[0]*N[0];J[1]=K[1]*N[1];J[2]=K[2]*N[2];J[3]=K[3]*N[3];return J}function r(J,K,N){J[0]=K[0]/N[0];J[1]=K[1]/N[1];J[2]=K[2]/N[2];J[3]=K[3]/N[3];return J}function h(J,K){J[0]=Math.ceil(K[0]);J[1]=Math.ceil(K[1]);J[2]=Math.ceil(K[2]);
J[3]=Math.ceil(K[3]);return J}function g(J,K){J[0]=Math.floor(K[0]);J[1]=Math.floor(K[1]);J[2]=Math.floor(K[2]);J[3]=Math.floor(K[3]);return J}function k(J,K,N){J[0]=Math.min(K[0],N[0]);J[1]=Math.min(K[1],N[1]);J[2]=Math.min(K[2],N[2]);J[3]=Math.min(K[3],N[3]);return J}function p(J,K,N){J[0]=Math.max(K[0],N[0]);J[1]=Math.max(K[1],N[1]);J[2]=Math.max(K[2],N[2]);J[3]=Math.max(K[3],N[3]);return J}function l(J,K){J[0]=Math.round(K[0]);J[1]=Math.round(K[1]);J[2]=Math.round(K[2]);J[3]=Math.round(K[3]);
return J}function m(J,K,N){J[0]=K[0]*N;J[1]=K[1]*N;J[2]=K[2]*N;J[3]=K[3]*N;return J}function t(J,K,N,U){J[0]=K[0]+N[0]*U;J[1]=K[1]+N[1]*U;J[2]=K[2]+N[2]*U;J[3]=K[3]+N[3]*U;return J}function f(J,K){const N=K[0]-J[0],U=K[1]-J[1],ba=K[2]-J[2];J=K[3]-J[3];return Math.sqrt(N*N+U*U+ba*ba+J*J)}function q(J,K){const N=K[0]-J[0],U=K[1]-J[1],ba=K[2]-J[2];J=K[3]-J[3];return N*N+U*U+ba*ba+J*J}function v(J){const K=J[0],N=J[1],U=J[2];J=J[3];return Math.sqrt(K*K+N*N+U*U+J*J)}function x(J){const K=J[0],N=J[1],U=
J[2];J=J[3];return K*K+N*N+U*U+J*J}function z(J,K){J[0]=-K[0];J[1]=-K[1];J[2]=-K[2];J[3]=-K[3];return J}function y(J,K){J[0]=1/K[0];J[1]=1/K[1];J[2]=1/K[2];J[3]=1/K[3];return J}function A(J,K){const N=K[0],U=K[1],ba=K[2];K=K[3];let ka=N*N+U*U+ba*ba+K*K;0<ka&&(ka=1/Math.sqrt(ka),J[0]=N*ka,J[1]=U*ka,J[2]=ba*ka,J[3]=K*ka);return J}function B(J,K){return J[0]*K[0]+J[1]*K[1]+J[2]*K[2]+J[3]*K[3]}function E(J,K,N,U){const ba=K[0],ka=K[1],P=K[2];K=K[3];J[0]=ba+U*(N[0]-ba);J[1]=ka+U*(N[1]-ka);J[2]=P+U*(N[2]-
P);J[3]=K+U*(N[3]-K);return J}function w(J,K){var N=b.RANDOM;K=K||1;let U,ba,ka,P,V,ca;do U=2*N()-1,ba=2*N()-1,V=U*U+ba*ba;while(1<=V);do ka=2*N()-1,P=2*N()-1,ca=ka*ka+P*P;while(1<=ca);N=Math.sqrt((1-V)/ca);J[0]=K*U;J[1]=K*ba;J[2]=K*ka*N;J[3]=K*P*N;return J}function D(J,K,N){const U=K[0],ba=K[1],ka=K[2];K=K[3];J[0]=N[0]*U+N[4]*ba+N[8]*ka+N[12]*K;J[1]=N[1]*U+N[5]*ba+N[9]*ka+N[13]*K;J[2]=N[2]*U+N[6]*ba+N[10]*ka+N[14]*K;J[3]=N[3]*U+N[7]*ba+N[11]*ka+N[15]*K;return J}function C(J,K,N){var U=K[0];const ba=
K[1],ka=K[2],P=N[0],V=N[1],ca=N[2];N=N[3];const ra=N*U+V*ka-ca*ba,ta=N*ba+ca*U-P*ka,Ba=N*ka+P*ba-V*U;U=-P*U-V*ba-ca*ka;J[0]=ra*N+U*-P+ta*-ca-Ba*-V;J[1]=ta*N+U*-V+Ba*-P-ra*-ca;J[2]=Ba*N+U*-ca+ra*-V-ta*-P;J[3]=K[3];return J}function F(J){return"vec4("+J[0]+", "+J[1]+", "+J[2]+", "+J[3]+")"}function G(J,K){return J[0]===K[0]&&J[1]===K[1]&&J[2]===K[2]&&J[3]===K[3]}function H(J,K){const N=J[0],U=J[1],ba=J[2];J=J[3];const ka=K[0],P=K[1],V=K[2];K=K[3];const ca=b.getEpsilon();return Math.abs(N-ka)<=ca*Math.max(1,
Math.abs(N),Math.abs(ka))&&Math.abs(U-P)<=ca*Math.max(1,Math.abs(U),Math.abs(P))&&Math.abs(ba-V)<=ca*Math.max(1,Math.abs(ba),Math.abs(V))&&Math.abs(J-K)<=ca*Math.max(1,Math.abs(J),Math.abs(K))}const I=Object.freeze(Object.defineProperty({__proto__:null,copy:c,set:e,add:d,subtract:n,multiply:u,divide:r,ceil:h,floor:g,min:k,max:p,round:l,scale:m,scaleAndAdd:t,distance:f,squaredDistance:q,length:v,squaredLength:x,negate:z,inverse:y,normalize:A,dot:B,lerp:E,random:w,transformMat4:D,transformQuat:C,str:F,
exactEquals:G,equals:H,sub:n,mul:u,div:r,dist:f,sqrDist:q,len:v,sqrLen:x},Symbol.toStringTag,{value:"Module"}));a.add=d;a.ceil=h;a.copy=c;a.dist=f;a.distance=f;a.div=r;a.divide=r;a.dot=B;a.equals=H;a.exactEquals=G;a.floor=g;a.inverse=y;a.len=v;a.length=v;a.lerp=E;a.max=p;a.min=k;a.mul=u;a.multiply=u;a.negate=z;a.normalize=A;a.random=w;a.round=l;a.scale=m;a.scaleAndAdd=t;a.set=e;a.sqrDist=q;a.sqrLen=x;a.squaredDistance=q;a.squaredLength=x;a.str=F;a.sub=n;a.subtract=n;a.transformMat4=D;a.transformQuat=
C;a.vec4=I})},"esri/core/compilerUtils":function(){define(["exports","./has"],function(a,b){a.neverReached=function(c){};a.neverReachedSilent=function(c){};a.typeCast=function(c){return()=>c};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/ground/NavigationConstraint":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/Logger ../core/accessorSupport/ensureType ../core/arrayUtils ../core/Error ../core/has ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;a.NavigationConstraint=p=function(l){function m(t){t=l.call(this,t)||this;t.type="none";return t}b._inheritsLoose(m,l);m.prototype.clone=function(){return new p({type:this.type})};return m}(e.JSONSupport);c.__decorate([g.enumeration({none:"none",stayAbove:"stay-above"})],a.NavigationConstraint.prototype,"type",void 0);a.NavigationConstraint=p=c.__decorate([k.subclass("esri.ground.NavigationConstraint")],a.NavigationConstraint);Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/decorators/enumeration":function(){define(["exports","../../jsonMap","./property"],function(a,b,c){a.enumeration=function(e,d={}){e=e instanceof b.JSONMap?e:new b.JSONMap(e,d);e={type:d?.ignoreUnknown??!0?e.apiValues:String,json:{type:e.jsonValues,read:d?.readOnly?!1:{reader:e.read},write:{writer:e.write}}};void 0!==d?.readOnly&&(e.readOnly=!!d.readOnly);void 0!==d?.default&&(e.json.default=d.default);void 0!==d?.name&&(e.json.name=
d.name);return c.property(e)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/3d/support/debugFlags":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){c=function(r){function h(){var g=
r.apply(this,arguments)||this;g.SCENEVIEW_HITTEST_RETURN_INTERSECTOR=!1;g.DECONFLICTOR_SHOW_VISIBLE=!1;g.DECONFLICTOR_SHOW_INVISIBLE=!1;g.DECONFLICTOR_SHOW_GRID=!1;g.LABELS_SHOW_BORDER=!1;g.TEXT_SHOW_BASELINE=!1;g.TEXT_SHOW_BORDER=!1;g.OVERLAY_DRAW_DEBUG_TEXTURE=!1;g.OVERLAY_SHOW_CENTER=!1;g.SHOW_POI=!1;g.TESTS_DISABLE_OPTIMIZATIONS=!1;g.TESTS_DISABLE_FAST_UPDATES=!1;g.DRAW_MESH_GEOMETRY_NORMALS=!1;g.FEATURE_TILE_FETCH_SHOW_TILES=!1;g.FEATURE_TILE_TREE_SHOW_TILES=!1;g.TERRAIN_TILE_TREE_SHOW_TILES=
!1;g.I3S_TREE_SHOW_TILES=!1;g.I3S_SHOW_MODIFICATIONS=!1;g.LOD_INSTANCE_RENDERER_DISABLE_UPDATES=!1;g.LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL=!1;g.EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES=!1;g.LINE_WIREFRAMES=!1;g.TERRAIN_USE_LEGACY_SHADING=!1;return g}a._inheritsLoose(h,r);return h}(c);b.__decorate([e.property()],c.prototype,"SCENEVIEW_HITTEST_RETURN_INTERSECTOR",void 0);b.__decorate([e.property()],c.prototype,"DECONFLICTOR_SHOW_VISIBLE",void 0);b.__decorate([e.property()],c.prototype,"DECONFLICTOR_SHOW_INVISIBLE",
void 0);b.__decorate([e.property()],c.prototype,"DECONFLICTOR_SHOW_GRID",void 0);b.__decorate([e.property()],c.prototype,"LABELS_SHOW_BORDER",void 0);b.__decorate([e.property()],c.prototype,"TEXT_SHOW_BASELINE",void 0);b.__decorate([e.property()],c.prototype,"TEXT_SHOW_BORDER",void 0);b.__decorate([e.property()],c.prototype,"OVERLAY_DRAW_DEBUG_TEXTURE",void 0);b.__decorate([e.property()],c.prototype,"OVERLAY_SHOW_CENTER",void 0);b.__decorate([e.property()],c.prototype,"SHOW_POI",void 0);b.__decorate([e.property()],
c.prototype,"TESTS_DISABLE_OPTIMIZATIONS",void 0);b.__decorate([e.property()],c.prototype,"TESTS_DISABLE_FAST_UPDATES",void 0);b.__decorate([e.property()],c.prototype,"DRAW_MESH_GEOMETRY_NORMALS",void 0);b.__decorate([e.property()],c.prototype,"FEATURE_TILE_FETCH_SHOW_TILES",void 0);b.__decorate([e.property()],c.prototype,"FEATURE_TILE_TREE_SHOW_TILES",void 0);b.__decorate([e.property()],c.prototype,"TERRAIN_TILE_TREE_SHOW_TILES",void 0);b.__decorate([e.property()],c.prototype,"I3S_TREE_SHOW_TILES",
void 0);b.__decorate([e.property()],c.prototype,"I3S_SHOW_MODIFICATIONS",void 0);b.__decorate([e.property()],c.prototype,"LOD_INSTANCE_RENDERER_DISABLE_UPDATES",void 0);b.__decorate([e.property()],c.prototype,"LOD_INSTANCE_RENDERER_COLORIZE_BY_LEVEL",void 0);b.__decorate([e.property()],c.prototype,"EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES",void 0);b.__decorate([e.property()],c.prototype,"LINE_WIREFRAMES",void 0);b.__decorate([e.property()],c.prototype,"TERRAIN_USE_LEGACY_SHADING",void 0);c=b.__decorate([u.subclass("esri.views.3d.support.DebugFlags")],
c);return new c})},"esri/webdoc/support/opacityUtils":function(){define(["exports","../../core/accessorSupport/ensureType"],function(a,b){a.opacityToTransparency=function(c){c=b.ensureInteger(100*(1-c));return Math.max(0,Math.min(c,100))};a.transparencyToOpacity=function(c){return Math.max(0,Math.min(1-c/100,1))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/CollectionFlattener":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Collection ./maybe ./has ./Error ./Logger ./accessorSupport/watch ./accessorSupport/trackingUtils ./accessorSupport/decorators/property ./arrayUtils ./accessorSupport/ensureType ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){d=function(m){function t(q){q=m.call(this,q)||this;q.getCollections=null;return q}a._inheritsLoose(t,m);var f=t.prototype;f.initialize=function(){this.own(h.autorun(()=>this._refresh()))};f.destroy=function(){this.getCollections=null};f._refresh=function(){const q=e.isSome(this.getCollections)?this.getCollections():null;if(e.isNone(q))this.removeAll();else{var v=0;for(const x of q)e.isSome(x)&&(v=this._processCollection(v,x));this.splice(v,this.length)}};f._createNewInstance=
function(q){return new c(q)};f._processCollection=function(q,v){if(!v)return q;const x=this.itemFilterFunction?this.itemFilterFunction:z=>!!z;for(const z of v)if(z&&(x(z)&&(v=this.indexOf(z,q),0<=v?v!==q&&this.reorder(z,q):this.add(z,q),++q),this.getChildrenFunction))if(v=this.getChildrenFunction(z),Array.isArray(v))for(const y of v)q=this._processCollection(q,y);else q=this._processCollection(q,v);return q};return t}(c);b.__decorate([g.property()],d.prototype,"getCollections",void 0);b.__decorate([g.property()],
d.prototype,"getChildrenFunction",void 0);b.__decorate([g.property()],d.prototype,"itemFilterFunction",void 0);return d=b.__decorate([l.subclass("esri.core.CollectionFlattener")],d)})},"esri/layers/support/editableLayers":function(){define(["exports"],function(a){a.isEditableLayer=function(b){return!(b&&b.loaded&&"capabilities"in b&&b?.capabilities?.operations&&"supportsEditing"in b.capabilities.operations)||!0!==b.capabilities.operations.supportsEditing||"editingEnabled"in b&&!b.editingEnabled?!1:
!0};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/basemapUtils":function(){define("exports ../Basemap ../config ../core/Collection ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/ensureType ./basemapDefinitions".split(" "),function(a,b,c,e,d,n,u,r,h){function g(w,D){let C;if("string"===typeof w){if(!(w in h.esriBasemapDefinitions))return D=Object.entries(h.esriBasemapDefinitions).filter(([,F])=>c.apiKey&&!F.classic||
!c.apiKey&&F.classic&&!F.deprecated).map(([F])=>`"${F}"`).join(", "),B.warn(`Unable to find basemap definition for: ${w}. Try one of these: ${D}`),null;D&&(C=D[w]);C||(C=b.fromId(w),D&&(D[w]=C))}else C=r.ensureType(b,w);C?.destroyed&&(B.warn("The provided basemap is already destroyed",{basemap:C}),C=null);return C}function k(w,D){const C=new e;w.forEach(F=>{const G=D.find(H=>y(f(F),f(H)))||F;C.includes(G)?C.push(F):C.push(G)});return C}function p(w){if(l(w.url))return!0;if("vector-tile"===w.type)for(const D in w.sourceNameToSource)if(l(w.sourceNameToSource[D]?.sourceUrl))return!0;
return!1}function l(w){if(!w)return!1;w=new u.Url(u.makeAbsolute(w));return E.test(w.authority)}function m(w){return w?!w.loaded&&w.resourceInfo?q(w.resourceInfo.data):{baseLayers:t(w.baseLayers),referenceLayers:t(w.referenceLayers)}:null}function t(w){return(e.isCollection(w)?w.toArray():w).map(f)}function f(w){return{type:w.type,url:A("urlTemplate"in w&&w.urlTemplate||w.url||"styleUrl"in w&&w.styleUrl),minScale:"minScale"in w&&null!=w.minScale?w.minScale:0,maxScale:"maxScale"in w&&null!=w.maxScale?
w.maxScale:0,opacity:null!=w.opacity?w.opacity:1,visible:null!=w.visible?!!w.visible:!0,sublayers:"map-image"!==w.type&&"wms"!==w.type||!n.isSome(w.sublayers)?void 0:w.sublayers?.map(D=>({id:D.id,visible:D.visible})),activeLayerId:"wmts"===w.type?w.activeLayer?.id:void 0}}function q(w){return w?{baseLayers:v(w.baseMapLayers.filter(D=>!D.isReference)),referenceLayers:v(w.baseMapLayers.filter(D=>D.isReference))}:null}function v(w){return w.map(D=>{let C;switch(D.layerType){case "VectorTileLayer":C=
"vector-tile";break;case "ArcGISTiledMapServiceLayer":C="tile";break;default:C="unknown"}return{type:C,url:A(D.templateUrl||D.urlTemplate||D.styleUrl||D.url),minScale:null!=D.minScale?D.minScale:0,maxScale:null!=D.maxScale?D.maxScale:0,opacity:null!=D.opacity?D.opacity:1,visible:null!=D.visibility?!!D.visibility:!0,sublayers:void 0,activeLayerId:void 0}})}function x(w,D,C){return null!=w!==(null!=D)?"not-equal":w?z(w.baseLayers,D.baseLayers)?z(w.referenceLayers,D.referenceLayers)?"equal":C.mustMatchReferences?
"not-equal":"base-layers-equal":"not-equal":"equal"}function z(w,D){if(w.length!==D.length)return!1;for(let C=0;C<w.length;C++)if(!y(w[C],D[C]))return!1;return!0}function y(w,D){if(w.type!==D.type||w.url!==D.url||w.minScale!==D.minScale||w.maxScale!==D.maxScale||w.visible!==D.visible||w.opacity!==D.opacity)return!1;if(n.isSome(w.activeLayerId)||n.isSome(D.activeLayerId))return w.activeLayerId===D.activeLayerId;if(n.isSome(w.sublayers)||n.isSome(D.sublayers)){if(n.isNone(w.sublayers)||n.isNone(D.sublayers)||
w.sublayers.length!==D.sublayers.length)return!1;for(let C=0;C<w.sublayers.length;C++){const F=w.sublayers.at(C),G=D.sublayers.at(C);if(F.id!==G.id||F.visible!==G.visible)return!1}}return!0}function A(w){return w?u.normalize(w).replace(/^\s*https?:/i,"").toLowerCase():""}const B=d.getLogger("esri.support.basemapUtils"),E=/^(basemaps|ibasemaps).*-api\.arcgis\.com$/i;a.clonePreservingTiledLayers=function(w,D=null){w=g(w);if(!w)return null;const C=new b({id:w.id,title:w.title,baseLayers:w.baseLayers.slice(),
referenceLayers:w.referenceLayers.slice()});D&&(C.baseLayers=k(C.baseLayers,D.baseLayers),C.referenceLayers=k(C.referenceLayers,D.referenceLayers));C.load().catch(()=>{});C.portalItem=w.portalItem;return C};a.contentEquals=function(w,D){if(w===D)return!0;w=m(w);D=m(D);return"equal"===x(w,D,{mustMatchReferences:!0})};a.createCache=function(){return{}};a.destroyCache=function(w){for(const D in w){const C=w[D];!1===C?.destroyed&&C.destroy();delete w[D]}};a.ensureType=g;a.findSpatialReference=function(w,
D){if(n.isNone(D)||n.isNone(w))return{spatialReference:null,updating:!1};if("not-loaded"===D.loadStatus)return D.load(),{spatialReference:null,updating:!0};if(D.spatialReference)return{spatialReference:D.spatialReference,updating:!1};if(0===D.baseLayers.length)return{spatialReference:null,updating:!1};D=D.baseLayers.getItemAt(0);switch(D.loadStatus){case "not-loaded":D.load();case "loading":return{spatialReference:null,updating:!0};case "failed":return{spatialReference:null,updating:!1}}D=(("supportedSpatialReferences"in
D?D.supportedSpatialReferences:null)||["tileInfo"in D?D.tileInfo?.spatialReference:D.spatialReference]).filter(Boolean);return w.spatialReference?{spatialReference:D.find(C=>w.spatialReference.equals(C))??D[0]??null,updating:!1}:{spatialReference:D[0],updating:!1}};a.getWellKnownBasemapId=function(w){let D=null;w=m(w);const C=!w.baseLayers.length;for(const G in h.esriBasemapDefinitions){var F=q(h.esriBasemapDefinitions[G]);F=x(w,F,{mustMatchReferences:C});if("equal"===F){D=G;break}"base-layers-equal"===
F&&(D=G)}return D};a.hasDeveloperBasemapLayer=function(w){return!!w?.baseLayers.concat(w.referenceLayers).some(p)};a.isDeveloperBasemapLayer=p;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/collectionUtils":function(){define(["exports","../core/CollectionFlattener"],function(a,b){a.createFlattenedTablesCollection=function(c){return new b({getCollections:()=>[c.tables,c.layers],getChildrenFunction:e=>{const d=[];"tables"in e&&d.push(e.tables);
"layers"in e&&d.push(e.layers);return d},itemFilterFunction:e=>{const d=e.parent;return d&&"tables"in d&&d.tables.includes(e)}})};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/groundUtils":function(){define(["exports","../Ground","../core/Logger","../core/accessorSupport/ensureType"],function(a,b,c,e){const d={"world-elevation":{id:"worldElevation",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer",
layerType:"ArcGISTiledElevationServiceLayer"},"world-topobathymetry":{id:"worldTopoBathymetry",url:"//elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/TopoBathy3D/ImageServer",layerType:"ArcGISTiledElevationServiceLayer"}};a.ensureType=function(n){let u=null;"string"===typeof n?n in d?u=new b({resourceInfo:{data:{layers:[d[n]]}}}):c.getLogger("esri.support.groundUtils").warn(`Unable to find ground definition for: ${n}. Try "world-elevation"`):u=e.ensureType(b,n);return u};a.groundElevationLayers=
d;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/LayersMixin":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../layers/Layer".split(" "),function(a,b,c,e,d,n,u,r,h,g,k,p){function l(m,t,
f){if(m)for(let v=0,x=m.length;v<x;v++){var q=m.getItemAt(v);if(q[t]===f||"group"===q?.type&&(q=l(q.layers,t,f)))return q}}a.LayersMixin=m=>{m=function(t){function f(...v){var x=t.call(this,...v)||this;x.layers=new e;x.layers.on("before-add",z=>{z=z.item;z.parent&&"remove"in z.parent&&z.parent.remove(z)});x.layers.on("after-add",z=>{z=z.item;z.parent=b._assertThisInitialized(x);x.layerAdded(z);"elevation"!==z.type&&"base-elevation"!==z.type||n.getLogger(x.declaredClass).error(`Layer 'title:${z.title}, id:${z.id}' of type '${z.type}' is not supported as an operational layer and will therefore be ignored.`)});
x.layers.on("after-remove",z=>{z=z.item;z.parent=null;x.layerRemoved(z)});return x}b._inheritsLoose(f,t);var q=f.prototype;q.destroy=function(){const v=this.layers.removeAll();for(const x of v)this.layerRemoved(x),x.destroy();this.layers.destroy()};q.add=function(v,x){const z=this.layers;x=z.getNextIndex(x);v instanceof p?v.parent===this?this.reorder(v,x):z.add(v,x):u.isPromiseLike(v)?v.then(y=>{this.destroyed||this.add(y,x)}):n.getLogger(this.declaredClass).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")};
q.addMany=function(v,x){const z=this.layers;x=z.getNextIndex(x);v.slice().forEach(y=>{y.parent===this?this.reorder(y,x):(z.add(y,x),x+=1)})};q.findLayerById=function(v){return l(this.layers,"id",v)};q.findLayerByUid=function(v){return l(this.layers,"uid",v)};q.remove=function(v){return this.layers.remove(v)};q.removeMany=function(v){return this.layers.removeMany(v)};q.removeAll=function(){return this.layers.removeAll()};q.reorder=function(v,x){return this.layers.reorder(v,x)};q.layerAdded=function(v){};
q.layerRemoved=function(v){};b._createClass(f,[{key:"layers",set:function(v){this._set("layers",d.referenceSetter(v,this._get("layers")))}}]);return f}(m);c.__decorate([r.property()],m.prototype,"layers",null);return m=c.__decorate([k.subclass("esri.support.LayersMixin")],m)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/Layer":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../geometry ../request ../core/Error ../core/Evented ../core/Identifiable ../core/Loadable ../core/Logger ../core/promiseUtils ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/fromPortalItem ../geometry/Extent ../geometry/SpatialReference".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x){let z=0;e=function(y){function A(){var E=y.apply(this,arguments)||this;E.attributionDataUrl=null;E.fullExtent=new v(-180,-90,180,90,x.WGS84);E.id=Date.now().toString(16)+"-layer-"+z++;E.legendEnabled=!0;E.listMode="show";E.opacity=1;E.parent=null;E.popupEnabled=!0;E.attributionVisible=!0;E.spatialReference=x.WGS84;E.title=null;E.type=null;E.url=null;E.visible=!0;return E}b._inheritsLoose(A,y);A.fromArcGISServerUrl=function(){var E=b._asyncToGenerator(function*(w){w=
"string"===typeof w?{url:w}:w;return(yield new Promise((D,C)=>a(["./support/arcgisLayers"],D,C))).fromUrl(w)});return function(w){return E.apply(this,arguments)}}();A.fromPortalItem=function(E){return q.fromPortalItem(E)};var B=A.prototype;B.initialize=function(){this.when().catch(E=>{k.isAbortError(E)||g.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:E})})};B.destroy=function(){if(this.parent){const E=this.parent;
"layers"in E&&E.layers.includes(this)?E.layers.remove(this):"tables"in E&&E.tables.includes(this)?E.tables.remove(this):"baseLayers"in E&&E.baseLayers.includes(this)?E.baseLayers.remove(this):"baseLayers"in E&&E.referenceLayers.includes(this)&&E.referenceLayers.remove(this)}};B.fetchAttributionData=function(){var E=b._asyncToGenerator(function*(){const w=this.attributionDataUrl;if(this.hasAttributionData&&w)return(yield d(w,{query:{f:"json"},responseType:"json"})).data;throw new n("layer:no-attribution-data",
"Layer does not have attribution data");});return function(){return E.apply(this,arguments)}}();b._createClass(A,[{key:"hasAttributionData",get:function(){return null!=this.attributionDataUrl}},{key:"parsedUrl",get:function(){return p.urlToObject(this.url)}}]);return A}(u.EventedMixin(r.IdentifiableMixin(h)));c.__decorate([l.property({type:String})],e.prototype,"attributionDataUrl",void 0);c.__decorate([l.property({type:v})],e.prototype,"fullExtent",void 0);c.__decorate([l.property({readOnly:!0})],
e.prototype,"hasAttributionData",null);c.__decorate([l.property({type:String,clonable:!1})],e.prototype,"id",void 0);c.__decorate([l.property({type:Boolean,nonNullable:!0})],e.prototype,"legendEnabled",void 0);c.__decorate([l.property({type:["show","hide","hide-children"]})],e.prototype,"listMode",void 0);c.__decorate([l.property({type:Number,range:{min:0,max:1},nonNullable:!0})],e.prototype,"opacity",void 0);c.__decorate([l.property({clonable:!1})],e.prototype,"parent",void 0);c.__decorate([l.property({readOnly:!0})],
e.prototype,"parsedUrl",null);c.__decorate([l.property({type:Boolean})],e.prototype,"popupEnabled",void 0);c.__decorate([l.property({type:Boolean})],e.prototype,"attributionVisible",void 0);c.__decorate([l.property({type:x})],e.prototype,"spatialReference",void 0);c.__decorate([l.property({type:String})],e.prototype,"title",void 0);c.__decorate([l.property({readOnly:!0,json:{read:!1}})],e.prototype,"type",void 0);c.__decorate([l.property()],e.prototype,"url",void 0);c.__decorate([l.property({type:Boolean,
nonNullable:!0})],e.prototype,"visible",void 0);return e=c.__decorate([f.subclass("esri.layers.Layer")],e)})},"esri/geometry":function(){define("exports ./core/accessorSupport/ensureType ./geometry/Extent ./geometry/Geometry ./geometry/Multipoint ./geometry/Point ./geometry/Polygon ./geometry/Polyline ./geometry/SpatialReference ./geometry/support/typeUtils ./geometry/support/jsonUtils".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){const p={base:e,key:"type",typeMap:{extent:c,multipoint:d,point:n,polyline:r,
polygon:u}};b=b.ensureOneOfType(p);a.Extent=c;a.BaseGeometry=e;a.Multipoint=d;a.Point=n;a.Polygon=u;a.Polyline=r;a.SpatialReference=h;a.featureGeometryTypeKebabDictionary=g.featureGeometryTypeKebabDictionary;a.isFeatureGeometryType=g.isFeatureGeometryType;a.typeKebabDictionary=g.typeKebabDictionary;a.fromJSON=k.fromJSON;a.ensureType=b;a.geometryTypes=p;a.isGeometry=function(l){return l instanceof e};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/Multipoint":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./support/zmUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){function p(m){return(t,f)=>null==t?f:null==f?t:m(t,f)}var l;d=l=function(m){function t(...q){q=m.call(this,...q)||this;q.points=[];q.type="multipoint";return q}a._inheritsLoose(t,m);var f=t.prototype;f.normalizeCtorArgs=function(q,v){if(!q&&!v)return{};const x={};Array.isArray(q)?(x.points=q,x.spatialReference=v):!q||"esri.geometry.SpatialReference"!==q.declaredClass&&null==q.wkid?(q.points&&(x.points=q.points),q.spatialReference&&(x.spatialReference=q.spatialReference),
q.hasZ&&(x.hasZ=q.hasZ),q.hasM&&(x.hasM=q.hasM)):x.spatialReference=q;if(q=x.points&&x.points[0])void 0===x.hasZ&&void 0===x.hasM?(x.hasZ=2<q.length,x.hasM=!1):void 0===x.hasZ?x.hasZ=3<q.length:void 0===x.hasM&&(x.hasM=3<q.length);return x};f.writePoints=function(q,v){v.points=c.clone(this.points)};f.addPoint=function(q){k.updateSupportFromPoint(this,q);Array.isArray(q)?this.points.push(q):this.points.push(q.toArray());this.notifyChange("points");return this};f.clone=function(){const q={points:c.clone(this.points),
spatialReference:this.spatialReference};this.hasZ&&(q.hasZ=!0);this.hasM&&(q.hasM=!0);return new l(q)};f.getPoint=function(q){if(!this._validateInputs(q))return null;q=this.points[q];const v={x:q[0],y:q[1],spatialReference:this.spatialReference};let x=2;this.hasZ&&(v.z=q[2],x=3);this.hasM&&(v.m=q[x]);return new g(v)};f.removePoint=function(q){if(!this._validateInputs(q))return null;q=new g(this.points.splice(q,1)[0],this.spatialReference);this.notifyChange("points");return q};f.setPoint=function(q,
v){if(!this._validateInputs(q))return this;k.updateSupportFromPoint(this,v);Array.isArray(v)||(v=v.toArray());this.points[q]=v;this.notifyChange("points");return this};f.toJSON=function(q){return this.write({},q)};f._validateInputs=function(q){return null!=q&&0<=q&&q<this.points.length};a._createClass(t,[{key:"cache",get:function(){this.commitProperty("points");this.commitProperty("hasZ");this.commitProperty("hasM");this.commitProperty("spatialReference");return{}}},{key:"extent",get:function(){const q=
this.points;if(!q.length)return null;const v=new r,x=this.hasZ,z=this.hasM,y=x?3:2;var A=q[0];const B=p(Math.min),E=p(Math.max);let [w,D]=A,[C,F]=A,G,H,I,J;for(let K=0,N=q.length;K<N;K++){A=q[K];const [U,ba]=A;w=B(w,U);D=B(D,ba);C=E(C,U);F=E(F,ba);if(x&&2<A.length){const ka=A[2];G=B(G,ka);I=E(I,ka)}z&&A.length>y&&(A=A[y],H=B(H,A),J=E(J,A))}v.xmin=w;v.ymin=D;v.xmax=C;v.ymax=F;v.spatialReference=this.spatialReference;x?(v.zmin=G,v.zmax=I):(v.zmin=void 0,v.zmax=void 0);z?(v.mmin=H,v.mmax=J):(v.mmin=
void 0,v.mmax=void 0);return v}}]);return t}(h);b.__decorate([e.property({readOnly:!0})],d.prototype,"cache",null);b.__decorate([e.property()],d.prototype,"extent",null);b.__decorate([e.property({type:[[Number]],json:{write:{isRequired:!0}}})],d.prototype,"points",void 0);b.__decorate([u.writer("points")],d.prototype,"writePoints",null);d=l=b.__decorate([n.subclass("esri.geometry.Multipoint")],d);d.prototype.toJSON.isDefaultToJSON=!0;return d})},"esri/geometry/support/zmUtils":function(){define(["exports"],
function(a){a.updateSupportFromPoint=function(b,c,e=!1){let {hasM:d,hasZ:n}=b;Array.isArray(c)?4!==c.length||d||n?3===c.length&&e&&!d?(n=!0,d=!1):3===c.length&&d&&n&&(n=d=!1):n=d=!0:(n=!n&&c.hasZ&&(!d||c.hasM),d=!d&&c.hasM&&(!n||c.hasZ));b.hasZ=n;b.hasM=d};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/Polygon":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/arrayUtils ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./SpatialReference ./support/centroid ./support/contains ./support/coordsUtils ./support/extentUtils ./support/intersectsBase ./support/webMercatorUtils ./support/zmUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z){var y;u=y=function(A){function B(...w){w=A.call(this,...w)||this;w.rings=[];w.type="polygon";return w}a._inheritsLoose(B,A);B.fromExtent=function(w){var D=w.clone().normalize();w=w.spatialReference;let C=!1,F=!1;for(const G of D)G.hasZ&&(C=!0),G.hasM&&(F=!0);D={rings:D.map(G=>{const H=[[G.xmin,G.ymin],[G.xmin,G.ymax],[G.xmax,G.ymax],[G.xmax,G.ymin],[G.xmin,G.ymin]];if(C&&G.hasZ){var I=G.zmin+.5*(G.zmax-G.zmin);for(let J=0;J<H.length;J++)H[J].push(I)}if(F&&
G.hasM)for(G=G.mmin+.5*(G.mmax-G.mmin),I=0;I<H.length;I++)H[I].push(G);return H}),spatialReference:w};C&&(D.hasZ=!0);F&&(D.hasM=!0);return new y(D)};var E=B.prototype;E.normalizeCtorArgs=function(w,D){let C=null,F,G,H=null;w&&!Array.isArray(w)?(C=w.rings?w.rings:null,D||(w.spatialReference?D=w.spatialReference:w.rings||(D=w)),F=w.hasZ,G=w.hasM):C=w;C=C||[];D=D||l.WGS84;C.length&&C[0]&&null!=C[0][0]&&"number"===typeof C[0][0]&&(C=[C]);if(H=C[0]&&C[0][0])void 0===F&&void 0===G?(F=2<H.length,G=3<H.length):
void 0===F?F=G?3<H.length:2<H.length:void 0===G&&(G=F?3<H.length:2<H.length);return{rings:C,spatialReference:D,hasZ:F,hasM:G}};E.writeRings=function(w,D){D.rings=e.clone(this.rings)};E.addRing=function(w){if(w){var D=this.rings,C=D.length;if(Array.isArray(w[0]))D[C]=w.concat();else{const F=[];for(let G=0,H=w.length;G<H;G++)F[G]=w[G].toArray();D[C]=F}this.notifyChange("rings");return this}};E.clone=function(){const w=new y;w.spatialReference=this.spatialReference;w.rings=e.clone(this.rings);w.hasZ=
this.hasZ;w.hasM=this.hasM;return w};E.equals=function(w){if(this===w)return!0;if(d.isNone(w))return!1;var D=this.spatialReference,C=w.spatialReference;if(d.isSome(D)!==d.isSome(C)||d.isSome(D)&&d.isSome(C)&&!D.equals(C)||this.rings.length!==w.rings.length)return!1;D=([F,G,H,I],[J,K,N,U])=>F===J&&G===K&&(null==H&&null==N||H===N)&&(null==I&&null==U||I===U);for(C=0;C<this.rings.length;C++)if(!c.equals(this.rings[C],w.rings[C],D))return!1;return!0};E.contains=function(w){if(!w)return!1;const D=x.project(w,
this.spatialReference);return t.polygonContainsPoint(this,d.isSome(D)?D:w)};E.isClockwise=function(w){w=Array.isArray(w[0])?w:w.map(D=>this.hasZ?this.hasM?[D.x,D.y,D.z,D.m]:[D.x,D.y,D.z]:[D.x,D.y]);return f.isClockwise(w,this.hasM,this.hasZ)};E.getPoint=function(w,D){if(!this._validateInputs(w,D))return null;w=this.rings[w][D];D=this.hasZ;const C=this.hasM;return D&&!C?new p(w[0],w[1],w[2],void 0,this.spatialReference):C&&!D?new p(w[0],w[1],void 0,w[2],this.spatialReference):D&&C?new p(w[0],w[1],
w[2],w[3],this.spatialReference):new p(w[0],w[1],this.spatialReference)};E.insertPoint=function(w,D,C){if(!this._validateInputs(w,D,!0))return this;z.updateSupportFromPoint(this,C);Array.isArray(C)||(C=C.toArray());this.rings[w].splice(D,0,C);this.notifyChange("rings");return this};E.removePoint=function(w,D){if(!this._validateInputs(w,D))return null;w=new p(this.rings[w].splice(D,1)[0],this.spatialReference);this.notifyChange("rings");return w};E.removeRing=function(w){if(!this._validateInputs(w,
null))return null;w=this.rings.splice(w,1)[0];const D=this.spatialReference;w=w.map(C=>new p(C,D));this.notifyChange("rings");return w};E.setPoint=function(w,D,C){if(!this._validateInputs(w,D))return this;z.updateSupportFromPoint(this,C);Array.isArray(C)||(C=C.toArray());this.rings[w][D]=C;this.notifyChange("rings");return this};E._validateInputs=function(w,D,C=!1){return null==w||0>w||w>=this.rings.length||null!=D&&(w=this.rings[w],C&&(0>D||D>w.length)||!C&&(0>D||D>=w.length))?!1:!0};E.toJSON=function(w){return this.write({},
w)};a._createClass(B,[{key:"cache",get:function(){this.commitProperty("rings");this.commitProperty("hasZ");this.commitProperty("hasM");this.commitProperty("spatialReference");return{}}},{key:"centroid",get:function(){const w=m.polygonCentroid(this);if(!w||isNaN(w[0])||isNaN(w[1])||this.hasZ&&isNaN(w[2]))return null;const D=new p;D.x=w[0];D.y=w[1];D.spatialReference=this.spatialReference;this.hasZ&&(D.z=w[2]);return D}},{key:"extent",get:function(){const {spatialReference:w}=this;var D=q.getPolygonExtent(this);
if(!D)return null;D=new g(D);D.spatialReference=w;return D}},{key:"isSelfIntersecting",get:function(){return v.isSelfIntersecting(this.rings)}}]);return B}(k);b.__decorate([n.property({readOnly:!0})],u.prototype,"cache",null);b.__decorate([n.property({readOnly:!0})],u.prototype,"centroid",null);b.__decorate([n.property({readOnly:!0})],u.prototype,"extent",null);b.__decorate([n.property({readOnly:!0})],u.prototype,"isSelfIntersecting",null);b.__decorate([n.property({type:[[[Number]]],json:{write:{isRequired:!0}}})],
u.prototype,"rings",void 0);b.__decorate([h.writer("rings")],u.prototype,"writeRings",null);u=y=b.__decorate([r.subclass("esri.geometry.Polygon")],u);u.prototype.toJSON.isDefaultToJSON=!0;return u})},"esri/geometry/support/centroid":function(){define(["exports","./coordsUtils"],function(a,b){function c(u,r){if(!u||!u.length)return null;const h=[],g=[],k=r?[Infinity,-Infinity,Infinity,-Infinity,Infinity,-Infinity]:[Infinity,-Infinity,Infinity,-Infinity];for(let p=0,l=u.length;p<l;p++){const m=e(u[p],
r,k);m&&g.push(m)}g.sort((p,l)=>{let m=p[2]-l[2];0===m&&r&&(m=p[4]-l[4]);return m});g.length&&(h[0]=g[0][0],h[1]=g[0][1],r&&(h[2]=g[0][3]),h[0]<k[0]||h[0]>k[1]||h[1]<k[2]||h[1]>k[3]||r&&(h[2]<k[4]||h[2]>k[5]))&&(h.length=0);if(!h.length)if(u=u[0]&&u[0].length?d(u[0],r):null)h[0]=u[0],h[1]=u[1],r&&2<u.length&&(h[2]=u[2]);else return null;return h}function e(u,r,h){let g=0,k=0,p=0,l=0,m=0;const t=u.length?u[0][0]:0,f=u.length?u[0][1]:0,q=u.length&&r?u[0][2]:0;for(let y=0;y<u.length;y++){var v=u[y],
x=u[(y+1)%u.length];const [A,B,E]=v;var z=A-t;const w=B-f,[D,C,F]=x,G=D-t,H=C-f,I=z*H-G*w;l+=I;g+=(z+G)*I;k+=(w+H)*I;r&&2<v.length&&2<x.length&&(v=E-q,x=F-q,z=z*x-G*v,p+=(v+x)*z,m+=z);A<h[0]&&(h[0]=A);A>h[1]&&(h[1]=A);B<h[2]&&(h[2]=B);B>h[3]&&(h[3]=B);r&&(E<h[4]&&(h[4]=E),E>h[5]&&(h[5]=E))}0<l&&(l*=-1);0<m&&(m*=-1);if(!l)return null;l*=.5;m*=.5;u=[g/(6*l)+t,k/(6*l)+f,l];r&&(h[4]===h[5]||0===m?(u[3]=(h[4]+h[5])/2,u[4]=0):(u[3]=p/(6*m)+q,u[4]=m));return u}function d(u,r){const h=r?[0,0,0]:[0,0],g=r?
[0,0,0]:[0,0];let k=0,p=0,l=0,m=0;for(let f=0,q=u.length;f<q-1;f++){var t=u[f];const v=u[f+1];if(t&&v){h[0]=t[0];h[1]=t[1];g[0]=v[0];g[1]=v[1];r&&2<t.length&&2<v.length&&(h[2]=t[2],g[2]=v[2]);const x=b.getLength(h,g);x&&(k+=x,t=b.getMidpoint(t,v),p+=x*t[0],l+=x*t[1],r&&2<t.length&&(m+=x*t[2]))}}return 0<k?r?[p/k,l/k,m/k]:[p/k,l/k]:u.length?u[0]:null}const n=1/3;a.extentCentroid=function(u){return u?u.hasZ?[u.xmax-u.xmin/2,u.ymax-u.ymin/2,u.zmax-u.zmin/2]:[u.xmax-u.xmin/2,u.ymax-u.ymin/2]:null};a.lineCentroid=
d;a.polygonCentroid=function(u){return u?c(u.rings,u.hasZ??!1):null};a.ringCentroid=e;a.ringsCentroid=c;a.weightedAreaCentroid=function(u){if(!u||!u.rings)return null;({rings:u}=u);let r=0;for(var h=0;h<u.length;h++)r+=b.getRingArea(u[h]);if(1E-6>r)return c(u,!1);h=[0,0];const g=u[0][0];for(let t=0;t<u.length;t++)a:{let f=void 0;var k=h,p=g,l=u[t];if(!k||!l||3>l.length)break a;var m=l[0];const q=[0,0],v=[l[1][0]-m[0],l[1][1]-m[1]];for(let x=2;x<l.length;x++)q[0]=l[x][0]-m[0],q[1]=l[x][1]-m[1],f=.5*
n*(q[0]*v[1]-q[1]*v[0]),k[0]+=f*(v[0]+q[0]),k[1]+=f*(v[1]+q[1]),v[0]=q[0],v[1]=q[1];l=b.getRingArea(l);m=[m[0],m[1]];m[0]-=p[0];m[1]-=p[1];m[0]*=l;m[1]*=l;k[0]+=m[0];k[1]+=m[1]}h[0]*=1/r;h[1]*=1/r;h[0]+=g[0];h[1]+=g[1];return h};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/coordsUtils":function(){define(["exports","../../core/arrayUtils","./spatialReferenceUtils"],function(a,b,c){function e(p,l){const m=l[0]-p[0],t=l[1]-p[1];return 2<
p.length&&2<l.length?(p=p[2]-l[2],Math.sqrt(m*m+t*t+p*p)):Math.sqrt(m*m+t*t)}function d(p,l,m){const t=p[0]+m*(l[0]-p[0]),f=p[1]+m*(l[1]-p[1]);return 2<p.length&&2<l.length?[t,f,p[2]+m*(l[2]-p[2])]:[t,f]}function n(p,l,m,t){let f=m[0];m=m[1];let q=t[0]-f,v=t[1]-m;if(0!==q||0!==v){const x=((p-f)*q+(l-m)*v)/(q*q+v*v);1<x?(f=t[0],m=t[1]):0<x&&(f+=q*x,m+=v*x)}q=p-f;v=l-m;return q*q+v*v}function u(p,l,m){const t=p.length;let f=0,q=0,v=0;for(let x=0;x<t;x++){const z=p[x],y=p[(x+1)%t];let A=2;f+=z[0]*y[1]-
y[0]*z[1];2<z.length&&2<y.length&&m&&(q+=z[0]*y[2]-y[0]*z[2],A=3);z.length>A&&y.length>A&&l&&(v+=z[0]*y[A]-y[0]*z[A])}return 0>=f&&0>=q&&0>=v}function r(p){const l=p.length;return 2<l&&b.equals(p[0],p[l-1])}function h(p){if("rings"in p)for(const l of p.rings)r(l)||l.push(l[0].slice())}function g(p,l){var m=c.getInfo(l);if(m){l=m.valid[0];m=m.valid[1];var t=m-l;for(const f of p){p=Infinity;let q=-Infinity;for(const v of f){const x=k(v[0],l,m);p=Math.min(p,x);q=Math.max(q,x);v[0]=x}p=q-p;t-p<p&&f.forEach(v=>
{0>v[0]&&(v[0]+=t)})}}}function k(p,l,m){const t=m-l;return p<l?m-(l-p)%t:p>m?l+(p-l)%t:p}a.closeRings=h;a.closeRingsAndFixWinding=function(p){if("rings"in p&&(h(p),0<p.rings.length&&!u(p.rings[0],p.hasM??!1,p.hasZ??!1)))for(const l of p.rings)l.reverse()};a.distanceFromPointToPolygon=function(p,l,m){m=m.rings;let t=!1,f=Infinity,q,v;for(let x=0;x<m.length;x++){const z=m[x];for(let y=0,A=z.length-1;y<z.length;A=y++)q=z[y],v=z[A],q[1]>l!==v[1]>l&&p<(v[0]-q[0])*(l-q[1])/(v[1]-q[1])+q[0]&&(t=!t),f=Math.min(f,
n(p,l,q,v))}return 0===f?0:(t?1:-1)*Math.sqrt(f)};a.distanceToSegmentSquared=n;a.geometryToCoordinates=function(p){if(!p)return null;if(Array.isArray(p))return p;const l=p.hasZ,m=p.hasM;if("point"===p.type)return m&&l?[p.x,p.y,p.z,p.m]:l?[p.x,p.y,p.z]:m?[p.x,p.y,p.m]:[p.x,p.y];if("polygon"===p.type)return p.rings.slice(0);if("polyline"===p.type)return p.paths.slice(0);if("multipoint"===p.type)return p.points.slice(0);if("extent"===p.type){p=p.clone().normalize();if(!p)return null;let t=!1,f=!1;p.forEach(q=>
{q.hasZ&&(t=!0);q.hasM&&(f=!0)});return p.map(q=>{const v=[[q.xmin,q.ymin],[q.xmin,q.ymax],[q.xmax,q.ymax],[q.xmax,q.ymin],[q.xmin,q.ymin]];if(t&&q.hasZ){var x=.5*(q.zmax-q.zmin);for(let z=0;z<v.length;z++)v[z].push(x)}if(f&&q.hasM)for(q=.5*(q.mmax-q.mmin),x=0;x<v.length;x++)v[x].push(q);return v})}return null};a.getLength=e;a.getMidpoint=function(p,l){return d(p,l,.5)};a.getPathLength=function(p){const l=p.length;let m=0;for(let t=0;t<l-1;++t)m+=e(p[t],p[t+1]);return m};a.getPointOnPath=function(p,
l){if(0>=l)return p[0];const m=p.length;let t=0;for(let f=0;f<m-1;++f){const q=e(p[f],p[f+1]);if(l-t<q)return d(p[f],p[f+1],(l-t)/q);t+=q}return p[m-1]};a.getRingArea=function(p){if(!p||3>p.length)return 0;let l=0;const m=p.length-1;for(let t=0;t<m;t++)l+=(p[t][0]-p[t+1][0])*(p[t][1]+p[t+1][1]);l+=(p[m][0]-p[0][0])*(p[m][1]+p[0][1]);return-.5*l};a.isClockwise=u;a.isClosed=r;a.projectPointOnLine=function(p,l,m,t){const [f,q]=l,[v,x]=m[t],[z,y]=m[t+1];l=z-v;m=y-x;t=Math.min(1,Math.max(0,((f-v)*l+(q-
x)*m)/(l*l+m*m)));p[0]=v+l*t;p[1]=x+m*t;return p};a.unnormalizeGeometryOnDatelineCrossing=function(p){if("polygon"!==p.type&&"polyline"!==p.type)return p;g("polygon"===p.type?p.rings:p.paths,p.spatialReference);return p};a.unnormalizeVerticesOnDatelineCrossing=g;a.unnormalizedCoordinate=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/extentUtils":function(){define(["exports","./boundsUtils"],function(a,b){function c(h,g=!1,k=!1){return g?
k?{xmin:h[0],ymin:h[1],zmin:h[2],mmin:h[3],xmax:h[4],ymax:h[5],zmax:h[6],mmax:h[7]}:{xmin:h[0],ymin:h[1],zmin:h[2],xmax:h[3],ymax:h[4],zmax:h[5]}:k?{xmin:h[0],ymin:h[1],mmin:h[2],xmax:h[3],ymax:h[4],mmax:h[5]}:{xmin:h[0],ymin:h[1],xmax:h[2],ymax:h[3]}}function e(h){const {hasZ:g,hasM:k,points:p}=h;return c(b.getPointsBounds(r,p,g??!1,k??!1),g,k)}function d(h){const {x:g,y:k,z:p,m:l}=h;h=null!=l;return null!=p?h?{xmin:g,ymin:k,zmin:p,mmin:l,xmax:g,ymax:k,zmax:p,mmax:l}:{xmin:g,ymin:k,zmin:p,xmax:g,
ymax:k,zmax:p}:h?{xmin:g,ymin:k,mmin:l,xmax:g,ymax:k,mmax:l}:{xmin:g,ymin:k,xmax:g,ymax:k}}function n(h){const {hasZ:g,hasM:k,rings:p}=h;return(h=b.getRingsOrPathsBounds(r,p,g??!1,k??!1))?c(h,g,k):null}function u(h){const {hasZ:g,hasM:k,paths:p}=h;return(h=b.getRingsOrPathsBounds(r,p,g??!1,k??!1))?c(h,g,k):null}const r=[];a.getGeometryExtent=function(h){return h?void 0!==h.xmin&&void 0!==h.ymin&&void 0!==h.xmax&&void 0!==h.ymax?h:void 0!==h.x&&void 0!==h.y?d(h):void 0!==h.rings?n(h):void 0!==h.paths?
u(h):void 0!==h.points?e(h):null:null};a.getMultipointExtent=e;a.getPointExtent=d;a.getPolygonExtent=n;a.getPolylineExtent=u;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/boundsUtils":function(){define(["exports"],function(a){function b(h){return void 0!==h.xmin&&void 0!==h.ymin&&void 0!==h.xmax&&void 0!==h.ymax}function c(h){return function(g,k){return null==g?k:null==k?g:h(g,k)}}function e(h,g,k,p){const l=k?3:2;if(!g.length||
!g[0].length)return null;let [m,t]=g[0][0],[f,q]=g[0][0],v=void 0,x=void 0,z=void 0;var y=void 0;for(let A=0;A<g.length;A++){const B=g[A];for(let E=0;E<B.length;E++){const w=B[E],[D,C]=w;m=u(m,D);t=u(t,C);f=r(f,D);q=r(q,C);if(k&&2<w.length){const F=w[2];v=u(v,F);x=r(x,F)}p&&w.length>l&&(y=w[l],z=u(v,y),y=r(x,y))}}if(k){if(p)return h[0]=m,h[1]=t,h[2]=v,h[3]=z,h[4]=f,h[5]=q,h[6]=x,h[7]=y,h.length=8,h;h[0]=m;h[1]=t;h[2]=v;h[3]=f;h[4]=q;h[5]=x;h.length=6;return h}if(p)return h[0]=m,h[1]=t,h[2]=z,h[3]=
f,h[4]=q,h[5]=y,h.length=6,h;h[0]=m;h[1]=t;h[2]=f;h[3]=q;h.length=4;return h}function d(h,g,k,p,l,m){k=g.xmin;p=g.xmax;const t=g.ymin,f=g.ymax;let q=g.zmin,v=g.zmax,x=g.mmin;g=g.mmax;if(l){q=q||0;v=v||0;if(m)return h[0]=k,h[1]=t,h[2]=q,h[3]=x||0,h[4]=p,h[5]=f,h[6]=v,h[7]=g||0,h;h[0]=k;h[1]=t;h[2]=q;h[3]=p;h[4]=f;h[5]=v;return h}if(m)return h[0]=k,h[1]=t,h[2]=x||0,h[3]=p,h[4]=f,h[5]=g||0,h;h[0]=k;h[1]=t;h[2]=p;h[3]=f;return h}function n(h,g,k,p,l,m){const t=k?3:2;p=p&&m;k=k&&l;if(!g.length||!g[0].length)return null;
let [f,q]=g[0],[v,x]=g[0],z=void 0,y=void 0,A=void 0;var B=void 0;for(let E=0;E<g.length;E++){const w=g[E],[D,C]=w;f=u(f,D);q=u(q,C);v=r(v,D);x=r(x,C);if(k&&2<w.length){const F=w[2];z=u(z,F);y=r(y,F)}p&&w.length>t&&(B=w[t],A=u(z,B),B=r(y,B))}if(l){z=z||0;y=y||0;if(m)return h[0]=f,h[1]=q,h[2]=z,h[3]=A||0,h[4]=v,h[5]=x,h[6]=y,h[7]=B||0,h;h[0]=f;h[1]=q;h[2]=z;h[3]=v;h[4]=x;h[5]=y;return h}if(m)return h[0]=f,h[1]=q,h[2]=A||0,h[3]=v,h[4]=x,h[5]=B||0,h;h[0]=f;h[1]=q;h[2]=v;h[3]=x;return h}const u=c(Math.min),
r=c(Math.max);a.getBoundsXY=function(h,g){if(void 0!==g.paths)return e(h,g.paths,!1,!1);if(void 0!==g.rings)return e(h,g.rings,!1,!1);if(void 0!==g.points)return n(h,g.points,!1,!1,!1,!1);if(b(g))return d(h,g);void 0!==g.x&&void 0!==g.y&&(h[0]=g.x,h[1]=g.y,h[2]=g.x,h[3]=g.y);return h};a.getBoundsXYZ=function(h,g){if(void 0!==g.paths)return e(h,g.paths,!0,!1);if(void 0!==g.rings)return e(h,g.rings,!0,!1);if(void 0!==g.points)return n(h,g.points,!0,!1,!0,!1);if(b(g))return d(h,g,!0,!1,!0,!1);void 0!==
g.x&&void 0!==g.y&&(h[0]=g.x,h[1]=g.y,h[2]=g.z,h[3]=g.x,h[4]=g.y,h[5]=g.z);return h};a.getExtentBounds=d;a.getPointsBounds=n;a.getPointsBoundsCenterX=function(h){if(!h.length||!h[0].length)return null;let [g]=h[0],[k]=h[0];for(let p=0;p<h.length;p++){const [l]=h[p];g=u(g,l);k=r(k,l)}return g+.5*(k-g)};a.getPointsBoundsWidth=function(h){if(!h.length||!h[0].length)return null;let [g]=h[0],[k]=h[0];for(let p=0;p<h.length;p++){const [l]=h[p];g=u(g,l);k=r(k,l)}return k-g};a.getRingsOrPathsBounds=e;Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/Polyline":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Extent ./Geometry ./Point ./SpatialReference ./support/extentUtils ./support/zmUtils".split(" "),function(a,b,c,e,d,n,u,r,h,g,k,p,l){var m;d=m=function(t){function f(...v){v=
t.call(this,...v)||this;v.paths=[];v.type="polyline";return v}a._inheritsLoose(f,t);var q=f.prototype;q.normalizeCtorArgs=function(v,x){let z=null,y,A,B=null;v&&!Array.isArray(v)?(z=v.paths?v.paths:null,x||(v.spatialReference?x=v.spatialReference:v.paths||(x=v)),y=v.hasZ,A=v.hasM):z=v;z=z||[];x=x||k.WGS84;z.length&&z[0]&&null!=z[0][0]&&"number"===typeof z[0][0]&&(z=[z]);if(B=z[0]&&z[0][0])void 0===y&&void 0===A?(y=2<B.length,A=!1):void 0===y?y=!A&&3<B.length:void 0===A&&(A=!y&&3<B.length);return{paths:z,
spatialReference:x,hasZ:y,hasM:A}};q.writePaths=function(v,x){x.paths=c.clone(this.paths)};q.addPath=function(v){if(v){var x=this.paths,z=x.length;if(Array.isArray(v[0]))x[z]=v.concat();else{const y=[];for(let A=0,B=v.length;A<B;A++)y[A]=v[A].toArray();x[z]=y}this.notifyChange("paths");return this}};q.clone=function(){const v=new m;v.spatialReference=this.spatialReference;v.paths=c.clone(this.paths);v.hasZ=this.hasZ;v.hasM=this.hasM;return v};q.getPoint=function(v,x){if(!this._validateInputs(v,x))return null;
v=this.paths[v][x];x=this.hasZ;const z=this.hasM;return x&&!z?new g(v[0],v[1],v[2],void 0,this.spatialReference):z&&!x?new g(v[0],v[1],void 0,v[2],this.spatialReference):x&&z?new g(v[0],v[1],v[2],v[3],this.spatialReference):new g(v[0],v[1],this.spatialReference)};q.insertPoint=function(v,x,z){if(!this._validateInputs(v,x,!0))return this;l.updateSupportFromPoint(this,z);Array.isArray(z)||(z=z.toArray());this.paths[v].splice(x,0,z);this.notifyChange("paths");return this};q.removePath=function(v){if(!this._validateInputs(v,
null))return null;v=this.paths.splice(v,1)[0];const x=this.spatialReference;v=v.map(z=>new g(z,x));this.notifyChange("paths");return v};q.removePoint=function(v,x){if(!this._validateInputs(v,x))return null;v=new g(this.paths[v].splice(x,1)[0],this.spatialReference);this.notifyChange("paths");return v};q.setPoint=function(v,x,z){if(!this._validateInputs(v,x))return this;l.updateSupportFromPoint(this,z);Array.isArray(z)||(z=z.toArray());this.paths[v][x]=z;this.notifyChange("paths");return this};q._validateInputs=
function(v,x,z=!1){return null==v||0>v||v>=this.paths.length||null!=x&&(v=this.paths[v],z&&(0>x||x>v.length)||!z&&(0>x||x>=v.length))?!1:!0};q.toJSON=function(v){return this.write({},v)};a._createClass(f,[{key:"cache",get:function(){this.commitProperty("paths");this.commitProperty("hasZ");this.commitProperty("hasM");this.commitProperty("spatialReference");return{}}},{key:"extent",get:function(){const {spatialReference:v}=this;var x=p.getPolylineExtent(this);if(!x)return null;x=new r(x);x.spatialReference=
v;return x}}]);return f}(h);b.__decorate([e.property({readOnly:!0})],d.prototype,"cache",null);b.__decorate([e.property({readOnly:!0})],d.prototype,"extent",null);b.__decorate([e.property({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0);b.__decorate([u.writer("paths")],d.prototype,"writePaths",null);d=m=b.__decorate([n.subclass("esri.geometry.Polyline")],d);d.prototype.toJSON.isDefaultToJSON=!0;return d})},"esri/geometry/support/typeUtils":function(){define(["exports",
"../../core/jsonMap"],function(a,b){const c=b.strict()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"});b=b.strict()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"});a.featureGeometryTypeKebabDictionary=c;a.isFeatureGeometryType=function(e){return"point"===e||"multipoint"===e||"polyline"===e||"polygon"===
e};a.typeKebabDictionary=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/jsonUtils":function(){define("exports ../../core/maybe ../Extent ../Geometry ../Multipoint ../Point ../Polygon ../Polyline".split(" "),function(a,b,c,e,d,n,u,r){function h(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function g(t){return void 0!==t.points}function k(t){return void 0!==t.x&&void 0!==t.y}function p(t){return void 0!==
t.paths}function l(t){return void 0!==t.rings}const m={esriGeometryPoint:n,esriGeometryPolyline:r,esriGeometryPolygon:u,esriGeometryEnvelope:c,esriGeometryMultipoint:d};a.fromJSON=function(t){return b.isNone(t)?null:t instanceof e?t:k(t)?n.fromJSON(t):p(t)?r.fromJSON(t):l(t)?u.fromJSON(t):g(t)?d.fromJSON(t):h(t)?c.fromJSON(t):null};a.getGeometryType=function(t){return t&&m[t]||null};a.getJsonType=function(t){return t?k(t)?"esriGeometryPoint":p(t)?"esriGeometryPolyline":l(t)?"esriGeometryPolygon":
h(t)?"esriGeometryEnvelope":g(t)?"esriGeometryMultipoint":null:null};a.isExtent=h;a.isMesh=function(t){return void 0!==t.vertexAttributes};a.isMultipoint=g;a.isPoint=k;a.isPolygon=l;a.isPolyline=p;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/Identifiable":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../chunks/tslib.es6","./accessorSupport/decorators/subclass"],function(a,b,c,e){let d=0;const n=u=>{u=function(r){function h(...g){g=
r.call(this,...g)||this;Object.defineProperty(b._assertThisInitialized(g),"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+d++});return g}b._inheritsLoose(h,r);return h}(u);return u=c.__decorate([e.subclass("esri.core.Identifiable")],u)};a.Identifiable=function(u){function r(){return u.apply(this,arguments)||this}b._inheritsLoose(r,u);return r}(n(function(){return function(){}}()));a.Identifiable=c.__decorate([e.subclass("esri.core.Identifiable")],a.Identifiable);a.IdentifiableMixin=
n;a.NumericIdentifiableMixin=u=>{u=function(r){function h(...g){g=r.call(this,...g)||this;Object.defineProperty(b._assertThisInitialized(g),"uid",{writable:!1,configurable:!1,value:d++});return g}b._inheritsLoose(h,r);return h}(u);return u=c.__decorate([e.subclass("esri.core.NumericIdentifiable")],u)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/fromPortalItem":function(){define(["require","exports","../../chunks/_rollupPluginBabelHelpers",
"../../config","../../core/Logger"],function(a,b,c,e,d){function n(){n=c._asyncToGenerator(function*(u){u="portalItem"in u?u:{portalItem:u};var r=yield new Promise((h,g)=>a(["../../portal/support/portalLayers"],h,g));try{return yield r.fromItem(u)}catch(h){throw u=(r=u&&u.portalItem)&&r.id||"unset",r=r&&r.portal&&r.portal.url||e.portalUrl,d.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+u+"')",h),h;}});return n.apply(this,
arguments)}b.fromPortalItem=function(u){return n.apply(this,arguments)};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/TablesMixin":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,
e,d,n,u,r,h,g){function k(p,l,m){if(p)for(let f=0,q=p.length;f<q;f++){var t=p.getItemAt(f);if(t[l]===m||"group"===t?.type&&(t=k(t.tables,l,m)))return t}}a.TablesMixin=p=>{p=function(l){function m(...f){var q=l.call(this,...f)||this;q.tables=new e;q.tables.on("after-add",v=>{v=v.item;v.parent&&v.parent!==b._assertThisInitialized(q)&&"tables"in v.parent&&v.parent.tables.remove(v);v.parent=b._assertThisInitialized(q);"feature"!==v.type&&n.getLogger(q.declaredClass).error(`Layer 'title:${v.title}, id:${v.id}' of type '${v.type}' is not supported as a table and will therefore be ignored.`)});
q.tables.on("after-remove",v=>{v.item.parent=null});return q}b._inheritsLoose(m,l);var t=m.prototype;t.destroy=function(){const f=this.tables.removeAll();for(const q of f)q.destroy();this.tables.destroy()};t.findTableById=function(f){return k(this.tables,"id",f)};t.findTableByUid=function(f){return k(this.tables,"uid",f)};b._createClass(m,[{key:"tables",set:function(f){this._set("tables",d.referenceSetter(f,this._get("tables")))}}]);return m}(p);c.__decorate([u.property()],p.prototype,"tables",null);
return p=c.__decorate([g.subclass("esri.support.TablesMixin")],p)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/Viewpoint":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./Camera ./geometry ./core/JSONSupport ./core/maybe ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),function(a,b,c,e,
d,n,u,r,h,g,k){function p(){return{enabled:!this.camera}}var l;d=l=function(m){function t(q){q=m.call(this,q)||this;q.rotation=0;q.scale=0;q.targetGeometry=null;q.camera=null;return q}a._inheritsLoose(t,m);var f=t.prototype;f.castRotation=function(q){q%=360;0>q&&(q+=360);return q};f.clone=function(){return new l({rotation:this.rotation,scale:this.scale,targetGeometry:n.isSome(this.targetGeometry)?this.targetGeometry.clone():null,camera:n.isSome(this.camera)?this.camera.clone():null})};return t}(d.JSONSupport);
b.__decorate([u.property({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:p}}}}})],d.prototype,"rotation",void 0);b.__decorate([h.cast("rotation")],d.prototype,"castRotation",null);b.__decorate([u.property({type:Number,json:{write:!0,origins:{"web-map":{default:0,write:!0},"web-scene":{write:{overridePolicy:p}}}}})],d.prototype,"scale",void 0);b.__decorate([u.property({types:e.geometryTypes,json:{read:k.fromJSON,write:!0,origins:{"web-scene":{read:k.fromJSON,
write:{overridePolicy:p}}}}})],d.prototype,"targetGeometry",void 0);b.__decorate([u.property({type:c,json:{write:!0}})],d.prototype,"camera",void 0);return d=l=b.__decorate([g.subclass("esri.Viewpoint")],d)})},"esri/Camera":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Clonable ./core/Cyclical ./core/JSONSupport ./core/mathUtils ./core/maybe ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./geometry/Point".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){c=function(f){function q(...x){x=f.call(this,...x)||this;x.position=new t([0,0,0]);x.heading=0;x.tilt=0;x.fov=55;return x}a._inheritsLoose(q,f);var v=q.prototype;v.normalizeCtorArgs=function(x,z,y,A){return x&&"object"===typeof x&&("x"in x||Array.isArray(x))?(x={position:x},null!=z&&(x.heading=z),null!=y&&(x.tilt=y),null!=A&&(x.fov=A),x):x};v.writePosition=function(x,z,y,A){const B=x.clone();B.x=m.ensureNumber(x.x||0);B.y=m.ensureNumber(x.y||0);B.z=x.hasZ?m.ensureNumber(x.z||
0):x.z;z[y]=B.write({},A)};v.readPosition=function(x,z){const y=new t;y.read(x,z);y.x=m.ensureNumber(y.x||0);y.y=m.ensureNumber(y.y||0);y.z=y.hasZ?m.ensureNumber(y.z||0):y.z;return y};v.equals=function(x){return u.isNone(x)?!1:this.tilt===x.tilt&&this.heading===x.heading&&this.fov===x.fov&&this.position.equals(x.position)};return q}(c.ClonableMixin(d.JSONSupport));b.__decorate([r.property({type:t,json:{write:{isRequired:!0}}})],c.prototype,"position",void 0);b.__decorate([l.writer("position")],c.prototype,
"writePosition",null);b.__decorate([k.reader("position")],c.prototype,"readPosition",null);b.__decorate([r.property({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),g.cast(f=>e.cyclicalDegrees.normalize(m.ensureNumber(f)))],c.prototype,"heading",void 0);b.__decorate([r.property({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),g.cast(f=>n.clamp(m.ensureNumber(f),-180,180))],c.prototype,"tilt",void 0);b.__decorate([r.property({type:Number,nonNullable:!0,json:{read:!1,write:!1}})],
c.prototype,"fov",void 0);return c=b.__decorate([p.subclass("esri.Camera")],c)})},"esri/core/Clonable":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./has ./lang ./Logger ./maybe ./accessorSupport/PropertyOrigin ./accessorSupport/utils ./accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){d=p=>{p=function(l){function m(){return l.apply(this,arguments)||this}b._inheritsLoose(m,l);m.prototype.clone=function(){var t=r.unwrapOrThrow(g.getProperties(this),
"unable to clone instance of non-accessor class"),f=t.metadatas;const q=t.store,v={};t=new Map;for(var x in f){var z=f[x];const y=q?.originOf(x),A=z.clonable;if(z.readOnly||!1===A||y!==h.OriginId.USER&&y!==h.OriginId.DEFAULTS&&y!==h.OriginId.WEB_MAP&&y!==h.OriginId.WEB_SCENE)continue;z=this[x];let B=null;B="function"===typeof A?A(z):"reference"===A?z:n.tryClone(z);if(null==z||null!=B)y===h.OriginId.DEFAULTS?t.set(x,B):v[x]=B}f=new (Object.getPrototypeOf(this).constructor)(v);if(t.size&&(x=g.getProperties(f)?.store))for(const [y,
A]of t)x.set(y,A,h.OriginId.DEFAULTS);return f};return m}(p);return p=c.__decorate([k.subclass("esri.core.Clonable")],p)};a.Clonable=function(p){function l(){return p.apply(this,arguments)||this}b._inheritsLoose(l,p);return l}(d(e));a.Clonable=c.__decorate([k.subclass("esri.core.Clonable")],a.Clonable);a.ClonableMixin=d;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/Cyclical":function(){define(["exports","./mathUtils"],function(a,b){function c(r){for(const h in r){const g=
r[h];g instanceof Function&&(r[h]=g.bind(r))}return r}let e=function(){function r(g,k){this.min=g;this.max=k;this.range=k-g}var h=r.prototype;h.ndiff=function(g,k=0){return Math.ceil((g-k)/this.range)*this.range+k};h._normalize=function(g,k,p,l=0,m=!1){p-=l;p<g?p+=this.ndiff(g-p):p>k&&(p-=this.ndiff(p-k));m&&p===k&&(p=g);return p+l};h.normalize=function(g,k=0,p=!1){return this._normalize(this.min,this.max,g,k,p)};h.clamp=function(g,k=0){return b.clamp(g-k,this.min,this.max)+k};h.monotonic=function(g,
k,p){return g<k?k:k+this.ndiff(g-k,p)};h.minimalMonotonic=function(g,k,p){return this._normalize(g,g+this.range,k,p)};h.center=function(g,k,p){k=this.monotonic(g,k,p);return this.normalize((g+k)/2,p)};h.diff=function(g,k,p){return this.monotonic(g,k,p)-g};h.shortestSignedDiff=function(g,k){g=this.normalize(g);k=this.normalize(k);const p=k-g;g=k<g?this.minimalMonotonic(g,k)-g:k-this.minimalMonotonic(k,g);return Math.abs(p)<Math.abs(g)?p:g};h.contains=function(g,k,p){k=this.minimalMonotonic(g,k);p=
this.minimalMonotonic(g,p);return p>g&&p<k};return r}();const d=c(new e(0,2*Math.PI)),n=c(new e(-Math.PI,Math.PI)),u=c(new e(0,360));a.Cyclical=e;a.cyclical2PI=d;a.cyclicalDegrees=u;a.cyclicalPI=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/OperationalLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/read ../../core/accessorSupport/write ./operationalLayers ../support/commonProperties".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){a.OperationalLayer=t=>{t=function(f){function q(){var x=f.apply(this,arguments)||this;x.title=null;return x}b._inheritsLoose(q,f);var v=q.prototype;v.writeListMode=function(x,z,y,A){A&&"ground"===A.layerContainerType?z[y]=x:x&&p.willPropertyWrite(this,y,{},A)&&(z[y]=x)};v.writeOperationalLayerType=function(x,z,y,A){!x||A&&"tables"===A.layerContainerType||(z.layerType=x)};v.writeTitle=function(x,z){z.title=x??"Layer"};v.read=function(x,z){z&&(z.layer=this);k.readLoadable(this,
x,y=>f.prototype.read.call(this,x,y),z)};v.write=function(x,z){if(z?.origin){var y=`${z.origin}/${z.layerContainerType||"operational-layers"}`,A=l.supportedTypes[y];A=A&&A[this.operationalLayerType];"ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===y&&(A=!1);"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===y&&(A=!1);if(!A)return z.messages?.push(new e("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${y}'`,
{layer:this})),null}x=f.prototype.write.call(this,x,{...z,layer:this});y=!!z&&!!z.messages&&!!z.messages.filter(B=>B instanceof e&&"web-document-write:property-required"===B.name).length;return d.isBlobProtocol(x?.url)?(z?.messages?.push(new e("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&y?null:x};v.beforeSave=function(){};return q}(t);c.__decorate([n.property({type:String,
json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0);c.__decorate([n.property(m.listMode)],t.prototype,"listMode",void 0);c.__decorate([g.writer("listMode")],t.prototype,"writeListMode",null);c.__decorate([n.property({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0);c.__decorate([g.writer("operationalLayerType")],
t.prototype,"writeOperationalLayerType",null);c.__decorate([n.property(m.opacity)],t.prototype,"opacity",void 0);c.__decorate([n.property({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0);c.__decorate([g.writer("title"),g.writer(["web-scene"],"title")],t.prototype,"writeTitle",null);c.__decorate([n.property({type:Boolean,json:{name:"visibility"}})],
t.prototype,"visible",void 0);return t=c.__decorate([h.subclass("esri.layers.mixins.OperationalLayer")],t)};a.isOperationalLayer=function(t){return"operationalLayerType"in t};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/operationalLayers":function(){define(["exports"],function(a){a.supportedTypes={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,
ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},
"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,
VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0,
OrientedImageryLayer:!0}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/commonProperties":function(){define("exports ../../TimeExtent ../../geometry/Extent ../../geometry/SpatialReference ../../chunks/persistableUrlUtils ../../support/timeUtils ../../symbols/support/ElevationInfo ../../webdoc/support/opacityUtils".split(" "),function(a,b,c,e,d,n,u,r){const h={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,
write:!1}},name:"screenSizePerspective",write:!0}},g={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader(x,z){return!z.disablePopup}},write:{enabled:!0,writer(x,z,y){z[y]=!x}}}},k={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:!0}};d={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:d.write}}};const p={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}};u={value:null,
type:u,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};const l={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},m={...l,json:{...l.json,origins:{"web-document":{...l.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader(x,z,y){if((!y||
"service"===y.origin)&&z.drawingInfo&&void 0!==z.drawingInfo.transparency)return r.transparencyToOpacity(z.drawingInfo.transparency);if(z.layerDefinition&&z.layerDefinition.drawingInfo&&void 0!==z.layerDefinition.drawingInfo.transparency)return r.transparencyToOpacity(z.layerDefinition.drawingInfo.transparency)}}}},t={type:c,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(x,z)=>{x=c.fromJSON(x);null!=z.spatialReference&&"object"===typeof z.spatialReference&&
(x.spatialReference=e.fromJSON(z.spatialReference));return x}}}},read:!1}},f={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},q={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},v={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}};a.combinedViewLayerTimeExtentProperty={type:b,readOnly:!0,get(){if(!this.layer?.timeInfo)return null;
const {datesInUnknownTimezone:x,timeOffset:z,useViewTime:y}=this.layer;var A=this.view?.timeExtent,B=this.layer.timeExtent;x&&(B=n.toLocalTimeExtent(B));A=y?A&&B?A.intersection(B):A||B:B;if(!A||A.isEmpty||A.isAllTime)return A;z&&(A=A.offset(-z.value,z.unit));x&&(A=n.toUTCTimeExtent(A));B=this._get("timeExtent");return A.equals(B)?B:A}};a.elevationInfo=u;a.id=f;a.labelsVisible=k;a.legendEnabled=p;a.listMode={json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}};a.maxScale=v;a.minScale=
q;a.opacity=l;a.opacityDrawingInfo=m;a.popupEnabled=g;a.readOnlyService=function(x){return{type:x,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}};a.sceneLayerFullExtent=t;a.screenSizePerspectiveEnabled=h;a.url=d;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/TimeExtent":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/maybe ./core/timeUtils ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;c=p=function(t){function f(v){v=t.call(this,v)||this;v.end=null;v.start=null;return v}a._inheritsLoose(f,t);var q=f.prototype;q.readEnd=function(v,x){return null!=x.end?new Date(x.end):null};q.writeEnd=function(v,x){x.end=v?v.getTime():null};q.readStart=function(v,x){return null!=x.start?new Date(x.start):null};q.writeStart=function(v,x){x.start=v?v.getTime():null};q.clone=function(){return new p({end:this.end,start:this.start})};q.equals=function(v){if(!v)return!1;
const x=e.isSome(this.start)?this.start.getTime():this.start,z=e.isSome(this.end)?this.end.getTime():this.end,y=e.isSome(v.start)?v.start.getTime():v.start;v=e.isSome(v.end)?v.end.getTime():v.end;return x===y&&z===v};q.expandTo=function(v){if(this.isEmpty||this.isAllTime)return this.clone();const x=e.applySome(this.start,y=>d.truncateDate(y,v)),z=e.applySome(this.end,y=>{const A=d.truncateDate(y,v);return y.getTime()===A.getTime()?A:d.offsetDate(A,1,v)});return new p({start:x,end:z})};q.intersection=
function(v){if(!v)return this.clone();if(this.isEmpty||v.isEmpty)return p.empty;if(this.isAllTime)return v.clone();if(v.isAllTime)return this.clone();var x=e.mapOr(this.start,-Infinity,E=>E.getTime());const z=e.mapOr(this.end,Infinity,E=>E.getTime()),y=e.mapOr(v.start,-Infinity,E=>E.getTime());v=e.mapOr(v.end,Infinity,E=>E.getTime());let A,B;y>=x&&y<=z?A=y:x>=y&&x<=v&&(A=x);z>=y&&z<=v?B=z:v>=x&&v<=z&&(B=v);return null==A||null==B||isNaN(A)||isNaN(B)?p.empty:(x=new p,x.start=-Infinity===A?null:new Date(A),
x.end=Infinity===B?null:new Date(B),x)};q.offset=function(v,x){if(this.isEmpty||this.isAllTime)return this.clone();const z=new p,{start:y,end:A}=this;e.isSome(y)&&(z.start=d.offsetDate(y,v,x));e.isSome(A)&&(z.end=d.offsetDate(A,v,x));return z};q.union=function(v){if(!v||v.isEmpty)return this.clone();if(this.isEmpty)return v.clone();if(this.isAllTime||v.isAllTime)return l.clone();const x=e.isSome(this.start)&&e.isSome(v.start)?new Date(Math.min(this.start.getTime(),v.start.getTime())):null;v=e.isSome(this.end)&&
e.isSome(v.end)?new Date(Math.max(this.end.getTime(),v.end.getTime())):null;return new p({start:x,end:v})};a._createClass(f,[{key:"isAllTime",get:function(){return this.equals(p.allTime)}},{key:"isEmpty",get:function(){return this.equals(p.empty)}}],[{key:"allTime",get:function(){return l}},{key:"empty",get:function(){return m}}]);return f}(c.JSONSupport);b.__decorate([n.property({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0);b.__decorate([h.reader("end")],c.prototype,"readEnd",
null);b.__decorate([k.writer("end")],c.prototype,"writeEnd",null);b.__decorate([n.property({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null);b.__decorate([n.property({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null);b.__decorate([n.property({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0);b.__decorate([h.reader("start")],c.prototype,"readStart",null);b.__decorate([k.writer("start")],c.prototype,"writeStart",null);c=p=b.__decorate([g.subclass("esri.TimeExtent")],
c);const l=new c,m=new c({start:void 0,end:void 0});return c})},"esri/core/timeUtils":function(){define(["exports","./has"],function(a,b){function c(n,u,r){return 0===n?0:n*e[u]/e[r]}const e={milliseconds:1,seconds:1E3,minutes:6E4,hours:36E5,days:864E5,weeks:6048E5,months:26784E5,years:31536E6,decades:31536E7,centuries:31536E8},d={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",
setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};a.convertTime=c;a.makeUTCTime=function(n,u,r=
"milliseconds"){u=new Date(c(u,r,"milliseconds"));u.setUTCFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate());return u};a.offsetDate=function(n,u,r){n=new Date(n.getTime());if(u&&r){const {getter:g,setter:k,multiplier:p}=d[r];if("months"===r){r=n.getFullYear();var h=n.getMonth()+u;r=new Date(r,h+1,1);r.setDate(0);r=r.getDate();n.getDate()>r&&n.setDate(r)}n[k](n[g]()+u*p)}return n};a.offsetDateUTC=function(n,u,r="milliseconds"){n=n.getTime();u=c(u,r,"milliseconds");return new Date(n+u)};a.resetUTCDate=
function(n,u){n=new Date(n.getTime());n.setUTCFullYear(u.getFullYear(),u.getMonth(),u.getDate());return n};a.timeSinceUTCMidnight=function(n,u="milliseconds"){const r=c(n.getUTCHours(),"hours","milliseconds"),h=c(n.getUTCMinutes(),"minutes","milliseconds"),g=c(n.getUTCSeconds(),"seconds","milliseconds");n=n.getUTCMilliseconds();return c(r+h+g+n,"milliseconds",u)};a.truncateDate=function(n,u){switch(u){case "milliseconds":return new Date(n.getTime());case "seconds":return new Date(n.getFullYear(),
n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());case "minutes":return new Date(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes());case "hours":return new Date(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours());case "days":return new Date(n.getFullYear(),n.getMonth(),n.getDate());case "weeks":return new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay());case "months":return new Date(n.getFullYear(),n.getMonth(),1);case "years":return new Date(n.getFullYear(),
0,1);case "decades":return new Date(n.getFullYear()-n.getFullYear()%10,0,1);case "centuries":return new Date(n.getFullYear()-n.getFullYear()%100,0,1);default:return new Date}};a.truncateLocalTime=function(n){const u=new Date(0);u.setHours(0);u.setMinutes(0);u.setSeconds(0);u.setMilliseconds(0);u.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate());return u};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/persistableUrlUtils":function(){define(["exports",
"../core/maybe","../core/urlUtils"],function(a,b,c){function e(t,f){var q=f&&f.url&&f.url.path;t&&q&&(t=c.makeAbsolute(t,q,{preserveProtocolRelative:!0}),f.portalItem&&f.readResourcePaths&&(q=c.makeRelative(t,f.portalItem.itemUrl),null!=q&&l.test(q)&&f.readResourcePaths.push(f.portalItem.resourceFromPath(q).path)));return k(t,f&&f.portal)}function d(t,f,q=a.MarkKeep.YES){if(null==t)return t;!c.isAbsolute(t)&&f&&f.blockedRelativeUrls&&f.blockedRelativeUrls.push(t);let v=c.makeAbsolute(t);if(f){var x=
f.verifyItemRelativeUrls&&f.verifyItemRelativeUrls.rootPath||f.url&&f.url.path;x&&(x=k(x,f.portal),v=c.makeRelative(k(v,f.portal),x,x),null!=v&&v!==t&&f.verifyItemRelativeUrls&&f.verifyItemRelativeUrls.writtenUrls.push(v))}v=g(v,f?.portal);c.isAbsolute(v)&&(v=c.normalize(v));f?.resources&&f?.portalItem&&!c.isAbsolute(v)&&!c.isDataProtocol(v)&&q===a.MarkKeep.YES&&f.resources.toKeep.push({resource:f.portalItem.resourceFromPath(v),compress:!1});return v}function n(t,f,q){return e(t,q)}function u(t,f,
q,v){t=d(t,v);void 0!==t&&(f[q]=t)}function r(t){return(t?.match(p)??null)?.[1]??null}function h(t){t=t?.match(p)??null;if(null==t)return null;t=t[2];const f=t.lastIndexOf("/");if(-1===f){const {path:x,extension:z}=c.splitPathExtension(t);return{prefix:null,filename:x,extension:b.unwrap(z)}}const {path:q,extension:v}=c.splitPathExtension(t.slice(f+1));return{prefix:t.slice(0,f),filename:q,extension:b.unwrap(v)}}function g(t,f){return f&&!f.isPortal&&f.urlKey&&f.customBaseUrl?c.changeDomain(t,`${f.urlKey}.${f.customBaseUrl}`,
f.portalHostname):t}function k(t,f){if(!f||f.isPortal||!f.urlKey||!f.customBaseUrl)return t;const q=`${f.urlKey}.${f.customBaseUrl}`,v=c.getAppUrl();return c.hasSameOrigin(v,`${v.scheme}://${q}`)?c.changeDomain(t,f.portalHostname,q):c.changeDomain(t,q,f.portalHostname)}const p=/\/items\/([^\/]+)\/resources\/(.*)/,l=/^\.\/resources\//;a.MarkKeep=void 0;(function(t){t[t.YES=0]="YES";t[t.NO=1]="NO"})(a.MarkKeep||(a.MarkKeep={}));const m=Object.freeze(Object.defineProperty({__proto__:null,fromJSON:e,
toJSON:d,read:n,write:u,itemIdFromResourceUrl:r,prefixAndFilenameFromResourceUrl:h,ensureMainOnlineDomain:g,get MarkKeep(){return a.MarkKeep}},Symbol.toStringTag,{value:"Module"}));a.ensureMainOnlineDomain=g;a.fromJSON=e;a.itemIdFromResourceUrl=r;a.persistableUrlUtils=m;a.prefixAndFilenameFromResourceUrl=h;a.read=n;a.toJSON=d;a.write=u})},"esri/support/timeUtils":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../TimeExtent ../core/maybe ../core/promiseUtils ../core/timeUtils".split(" "),
function(a,b,c,e,d,n){function u(h){return void 0!==h.timeInfo}function r(){r=b._asyncToGenerator(function*(h,g){if(0===h.length)return c.allTime;const k=h.filter(u);yield Promise.all(k.map(m=>m.load({signal:g})));h=[];var p=[];for(var l of k)"feature"!==l?.type&&"map-image"!==l?.type||!l.timeInfo.hasLiveData?p.push(l):h.push(l);l=m=>e.isNone(m)||m.isAllTime;p=p.map(m=>m.timeInfo.fullTimeExtent);if(p.some(l))return c.allTime;h=h.map(function(){var m=b._asyncToGenerator(function*(t){const {timeExtent:f}=
yield t.fetchRecomputedExtents({signal:g});return f?f:e.unwrap(t.timeInfo.fullTimeExtent)});return function(t){return m.apply(this,arguments)}}());h=(yield d.eachAlways(h)).map(m=>m.value);return h.some(l)?c.allTime:h.concat(p).reduce((m,t)=>m.union(t))});return r.apply(this,arguments)}a.getTimeExtentFromLayers=function(h,g){return r.apply(this,arguments)};a.toLocalTimeExtent=function(h){if(!h)return h;const {start:g,end:k}=h;return new c({start:e.isSome(g)?n.offsetDate(g,g.getTimezoneOffset(),"minutes"):
g,end:e.isSome(k)?n.offsetDate(k,k.getTimezoneOffset(),"minutes"):k})};a.toUTCTimeExtent=function(h){if(!h)return h;const {start:g,end:k}=h;return new c({start:e.isSome(g)?n.offsetDate(g,-g.getTimezoneOffset(),"minutes"):g,end:e.isSome(k)?n.offsetDate(k,-k.getTimezoneOffset(),"minutes"):k})};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/ElevationInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./FeatureExpressionInfo ./unitConversionUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){var m;u=c.strict()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"});c=new c.JSONMap({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});e=m=function(t){function f(v){v=t.call(this,v)||this;v.offset=null;return v}a._inheritsLoose(f,t);var q=f.prototype;q.readFeatureExpressionInfo=function(v,x){if(null!=v)return v;if(x.featureExpression&&
0===x.featureExpression.value)return{expression:"0"}};q.writeFeatureExpressionInfo=function(v,x,z,y){x[z]=v.write({},y);"0"===v.expression&&(x.featureExpression={value:0})};q.write=function(v,x){return this.offset||this.mode||this.featureExpressionInfo||this.unit?t.prototype.write.call(this,v,x):null};q.clone=function(){return new m({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})};q.equals=function(v){return this.mode===
v.mode&&this.offset===v.offset&&this.unit===v.unit&&d.equalsMaybe(this.featureExpressionInfo,v.featureExpressionInfo)};a._createClass(f,[{key:"mode",get:function(){const {offset:v,featureExpressionInfo:x}=this;return this._isOverridden("mode")?this._get("mode"):d.isSome(v)||x?"relative-to-ground":"on-the-ground"},set:function(v){this._override("mode",v)}},{key:"unit",set:function(v){this._set("unit",v)}}]);return f}(e.JSONSupport);b.__decorate([n.property({type:p,json:{write:!0}})],e.prototype,"featureExpressionInfo",
void 0);b.__decorate([h.reader("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],e.prototype,"readFeatureExpressionInfo",null);b.__decorate([k.writer("featureExpressionInfo",{featureExpressionInfo:{type:p},"featureExpression.value":{type:[0]}})],e.prototype,"writeFeatureExpressionInfo",null);b.__decorate([n.property({type:u.apiValues,nonNullable:!0,json:{type:u.jsonValues,read:u.read,write:{writer:u.write,isRequired:!0}}})],e.prototype,"mode",null);b.__decorate([n.property({type:Number,
json:{write:!0}})],e.prototype,"offset",void 0);b.__decorate([n.property({type:l.supportedUnits,json:{type:String,read:c.read,write:c.write}})],e.prototype,"unit",null);return e=m=b.__decorate([g.subclass("esri.layers.support.ElevationInfo")],e)})},"esri/symbols/support/FeatureExpressionInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../layers/support/fieldUtils".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(l){return g.call(this,l)||this}a._inheritsLoose(k,g);var p=k.prototype;p.collectRequiredFields=function(){var l=a._asyncToGenerator(function*(m,t){return r.collectArcadeFieldNames(m,t,this.expression)});return function(m,t){return l.apply(this,arguments)}}();p.clone=function(){return new h({expression:this.expression,title:this.title})};p.equals=function(l){return this.expression===l.expression&&this.title===l.title};return k}(c.JSONSupport);
b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);return c=h=b.__decorate([u.subclass("esri.layers.support.FeatureExpressionInfo")],c)})},"esri/layers/support/fieldUtils":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../core/maybe ../../core/object ./domainUtils ../../support/arcadeOnDemand".split(" "),function(a,b,c,e,d,n,u,r){function h(X,
M,aa){if(X)for(const oa of X)(X=(X=n.getDeepValue(oa,M))&&"function"!==typeof X&&aa.get(X))&&n.setDeepValue(oa,X.name,M)}function g(X,M){if(!X||!M)return[];ea.clear();k(ea,X,M);return Array.from(ea).sort()}function k(X,M,aa){if(aa)if(M?.fields?.length)if(aa.includes("*"))for(const {name:oa}of M.fields)X.add(oa);else for(const oa of aa)p(X,M,oa);else if(aa.includes("*"))X.clear(),X.add("*");else for(const oa of aa)null!=oa&&X.add(oa)}function p(X,M,aa){"string"===typeof aa&&(M?(M=M.get(aa))&&X.add(M.name):
X.add(aa))}function l(X,M,aa){return m.apply(this,arguments)}function m(){m=c._asyncToGenerator(function*(X,M,aa){if(aa){var {arcadeUtils:oa}=yield r.loadArcade();aa=oa.extractFieldNames(aa,M?.fields?.map(Da=>Da.name));for(const Da of aa)p(X,M,Da)}});return m.apply(this,arguments)}function t(X,M,aa){return f.apply(this,arguments)}function f(){f=c._asyncToGenerator(function*(X,M,aa){if(aa&&"1\x3d1"!==aa){const oa=(yield new Promise((Da,Ea)=>a(["../../core/sql/WhereClause"],Da,Ea))).WhereClause.create(aa,
M);if(!oa.isStandardized)throw new e("fieldUtils:collectFilterFields","Where clause is not standardized",{where:aa});k(X,M,oa.fieldNames)}});return f.apply(this,arguments)}function q(X,M){for(const aa of X)if(aa&&aa.valueType&&aa.valueType===M)return aa.name;return null}function v(){v=c._asyncToGenerator(function*(X){if(!X)return[];const M=new Set;yield x(M,X);return Array.from(M).sort()});return v.apply(this,arguments)}function x(X,M){return z.apply(this,arguments)}function z(){z=c._asyncToGenerator(function*(X,
M){if(M){var aa=n.getDeepValue("elevationInfo.featureExpressionInfo",M);if(aa)return aa.collectRequiredFields(X,M.fieldsIndex)}});return z.apply(this,arguments)}function y(){y=c._asyncToGenerator(function*(X,M,aa){if(M&&aa&&"fields"in aa){var oa=[];oa.push(A(X,M,aa.popupTemplate));aa.fields&&oa.push(...aa.fields.map(function(){var Da=c._asyncToGenerator(function*(Ea){Ea.onStatisticExpression?l(X,M.fieldsIndex,Ea.onStatisticExpression.expression):X.add(Ea.onStatisticField)});return function(Ea){return Da.apply(this,
arguments)}}()));yield Promise.all(oa)}});return y.apply(this,arguments)}function A(X,M,aa){return B.apply(this,arguments)}function B(){B=c._asyncToGenerator(function*(X,M,aa){const oa=[];aa?.expressionInfos&&oa.push(...aa.expressionInfos.map(Da=>l(X,M.fieldsIndex,Da.expression)));aa=aa?.content;if(Array.isArray(aa))for(const Da of aa)"expression"===Da.type&&Da.expressionInfo&&oa.push(l(X,M.fieldsIndex,Da.expressionInfo.expression));yield Promise.all(oa)});return B.apply(this,arguments)}function E(){E=
c._asyncToGenerator(function*(X,M,aa){M&&(M.timeInfo&&d.isSome(aa)&&aa.timeExtent&&k(X,M.fieldsIndex,[M.timeInfo.startField,M.timeInfo.endField]),M.floorInfo&&k(X,M.fieldsIndex,[M.floorInfo.floorField]),d.isSome(aa)&&d.isSome(aa.where)&&(yield t(X,M.fieldsIndex,aa.where)))});return E.apply(this,arguments)}function w(){w=c._asyncToGenerator(function*(X,M,aa){M&&aa&&(yield Promise.all(aa.map(oa=>D(X,M,oa))))});return w.apply(this,arguments)}function D(X,M,aa){return C.apply(this,arguments)}function C(){C=
c._asyncToGenerator(function*(X,M,aa){M&&aa&&(aa.valueExpression?yield l(X,M.fieldsIndex,aa.valueExpression):aa.field&&p(X,M.fieldsIndex,aa.field))});return C.apply(this,arguments)}function F(){F=c._asyncToGenerator(function*(X){if(!X)return[];const M="timeInfo"in X&&X.timeInfo;return M?g(X.fieldsIndex,[X.trackIdField,M.startField,M.endField]):[]});return F.apply(this,arguments)}function G(){G=c._asyncToGenerator(function*(X){if(!X)return[];const M=new Set;yield H(M,X);return Array.from(M).sort()});
return G.apply(this,arguments)}function H(X,M){return I.apply(this,arguments)}function I(){I=c._asyncToGenerator(function*(X,M){const {labelingInfo:aa,fieldsIndex:oa}=M;aa&&aa.length&&(yield Promise.all(aa.map(Da=>J(X,oa,Da))))});return I.apply(this,arguments)}function J(X,M,aa){return K.apply(this,arguments)}function K(){K=c._asyncToGenerator(function*(X,M,aa){if(aa){var oa=aa.getLabelExpression();aa=aa.where;"arcade"===oa.type?yield l(X,M,oa.expression):(oa=oa.expression.match(/{[^}]*}/g))&&oa.forEach(Da=>
{p(X,M,Da.slice(1,-1))});yield t(X,M,aa)}});return K.apply(this,arguments)}function N(X){return"number"===typeof X&&!isNaN(X)&&isFinite(X)}function U(X){return null===X||N(X)}function ba(X){return null===X||ma(X)}function ka(X){return null!=X&&"string"===typeof X}function P(X){return null===X||ka(X)}function V(){return!0}function ca(X,M){let aa;switch(X.type){case "date":case "integer":case "long":case "small-integer":case "esriFieldTypeDate":case "esriFieldTypeInteger":case "esriFieldTypeLong":case "esriFieldTypeSmallInteger":aa=
X.nullable?ba:ma;break;case "double":case "single":case "esriFieldTypeSingle":case "esriFieldTypeDouble":aa=X.nullable?U:N;break;case "string":case "esriFieldTypeString":aa=X.nullable?P:ka;break;default:aa=V}return 1===arguments.length?aa:aa(M)}function ra(X){return null!=X&&S.has(X.type)}function ta(X,M){return X.nullable&&null===M?null:ra(X)&&!Ba(X.type,Number(M))?b.NumericRangeValidationError.OUT_OF_RANGE:ca(X,M)?X.domain?u.validateDomainValue(X.domain,M):null:b.TypeValidationError.INVALID_TYPE}
function Ba(X,M){X="string"===typeof X?Ha(X):X;if(!X)return!1;const aa=X.min,oa=X.max;return X.isInteger?ma(M)&&M>=aa&&M<=oa:M>=aa&&M<=oa}function Ha(X){switch(X){case "esriFieldTypeSmallInteger":case "small-integer":return fa;case "esriFieldTypeInteger":case "integer":return R;case "esriFieldTypeSingle":case "single":return Q;case "esriFieldTypeDouble":case "double":return Z}}function da(X,M,aa){if(!M||!M.attributes||!X){if(d.isSome(aa))for(var oa of X??[])aa.add(oa);return!0}M=M.attributes;oa=!1;
for(const Da of X)if(!(Da in M))if(oa=!0,d.isSome(aa))aa.add(Da);else break;return oa}function la(){la=c._asyncToGenerator(function*(X,M){const aa=new Set;for(const oa of M)yield l(aa,X.fieldsIndex,oa);return Array.from(aa).sort()});return la.apply(this,arguments)}const sa=/^([0-9])/,L=/[^A-Za-z0-9_\u0080-\uffff]/g,O=/_{2,}/g,ha=/^_/,pa=/_$/,ya="field field2 field3 normalizationField rotationInfo.field proportionalSymbolInfo.field proportionalSymbolInfo.normalizationField colorInfo.field colorInfo.normalizationField".split(" "),
Y=["field","normalizationField"],ea=new Set,ma=(()=>"isInteger"in Number?Number.isInteger:X=>"number"===typeof X&&isFinite(X)&&Math.floor(X)===X)(),ja=["integer","small-integer","single","double"],S=new Set([...ja,"esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);b.NumericRangeValidationError=void 0;(b.NumericRangeValidationError||(b.NumericRangeValidationError={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range";b.TypeValidationError=void 0;
(b.TypeValidationError||(b.TypeValidationError={})).INVALID_TYPE="type-validation-error::invalid-type";const fa={min:-32768,max:32767,isInteger:!0},R={min:-2147483648,max:2147483647,isInteger:!0},Q={min:-3.4E38,max:1.2E38,isInteger:!1},Z={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};b.collectArcadeFieldNames=l;b.collectElevationFields=x;b.collectFeatureReductionFields=function(X,M,aa){return y.apply(this,arguments)};b.collectField=p;b.collectFields=k;b.collectFilterFields=function(X,M,
aa){return E.apply(this,arguments)};b.collectLabelingFields=H;b.collectOrderByInfos=function(X,M,aa){return w.apply(this,arguments)};b.collectPopupTemplateFields=A;b.doubleRange=Z;b.featureHasFields=function(X,M){return!da(X,M,null)};b.fixFields=g;b.fixRendererFields=function(X,M){if(null!=X&&null!=M)for(const aa of Array.isArray(X)?X:[X])if(h(ya,aa,M),"visualVariables"in aa&&aa.visualVariables)for(const oa of aa.visualVariables)h(Y,oa,M)};b.fixTimeInfoFields=function(X,M){if(null!=X&&M?.fields?.length)if("startField"in
X){var aa=M.get(X.startField);M=M.get(X.endField);X.startField=aa?.name??null;X.endField=M?.name??null}else aa=M.get(X.startTimeField),M=M.get(X.endTimeField),X.startTimeField=aa?.name??null,X.endTimeField=M?.name??null};b.getDisplayFieldName=function({displayField:X,fields:M}){if(X)return X;if(!M||!M.length)return null;if(!(X=q(M,"name-or-title")||q(M,"unique-identifier")||q(M,"type-or-category")))a:{for(const aa of M)if(aa&&aa.name&&(M=aa.name.toLowerCase(),M.includes("name")||M.includes("title"))){X=
aa.name;break a}X=null}return X};b.getElevationFields=function(X){return v.apply(this,arguments)};b.getExpressionFields=function(X,M){return la.apply(this,arguments)};b.getFeatureEditFields=function(X){if(!X)return[];const M="editFieldsInfo"in X&&X.editFieldsInfo;return M?g(X.fieldsIndex,[M&&M.creatorField,M&&M.creationDateField,M&&M.editorField,M&&M.editDateField]):[]};b.getFeatureGeometryFields=function(X){if(!X)return[];const M=X.geometryFieldsInfo;return M?g(X.fieldsIndex,[M.shapeAreaField,M.shapeLengthField]):
[]};b.getFieldDefaultValue=function(X){const M=X.defaultValue;if(void 0!==M&&ca(X,M))return M;if(X.nullable)return null};b.getFieldRange=function(X){const M=u.getDomainRange(X.domain);if(M)return M;if(ra(X))return Ha(X.type)};b.getLabelingFields=function(X){return G.apply(this,arguments)};b.getNumericTypeForValue=function(X){if(!N(X))return null;if(ma(X)){if(X>=fa.min&&X<=fa.max)return"esriFieldTypeSmallInteger";if(X>=R.min&&X<=R.max)return"esriFieldTypeInteger"}return X>=Q.min&&X<=Q.max?"esriFieldTypeSingle":
"esriFieldTypeDouble"};b.getTimeFields=function(X){return F.apply(this,arguments)};b.integerRange=R;b.isDateField=function(X){return null!=X&&("date"===X.type||"esriFieldTypeDate"===X.type)};b.isNumberInRange=Ba;b.isNumericField=ra;b.isRasterPixelValueField=function(X){return["raster.itempixelvalue","raster.servicepixelvalue"].some(M=>X.toLowerCase().startsWith(M))};b.isStringField=function(X){return null!=X&&("string"===X.type||"esriFieldTypeString"===X.type)};b.isValidFieldValue=function(X,M){return null===
ta(X,M)};b.isValueMatchingFieldType=ca;b.normalizeFieldName=function(X){return X?X.trim().replace(L,"_").replace(O,"_").replace(ha,"").replace(pa,"").replace(sa,"F$1"):null};b.numericTypes=ja;b.packFields=function(X,M,aa=1){if(!M||!X)return[];if(M.includes("*"))return["*"];M=g(X,M);return M.length/X.fields.length>=aa?["*"]:M};b.populateMissingFields=da;b.rendererFields=ya;b.sanitizeNullFieldValue=function(X){return null==X||"number"===typeof X&&isNaN(X)?null:X};b.singleRange=Q;b.smallIntegerRange=
fa;b.unpackFieldNames=function(X,M){return d.isNone(M)||d.isNone(X)?[]:M.includes("*")?(X.fields??[]).map(aa=>aa.name):M};b.validateFieldValue=ta;b.validationErrorToString=function(X,M,aa){switch(X){case u.DomainValidationError.INVALID_CODED_VALUE:return`Value ${aa} is not in the coded domain - field: ${M.name}, domain: ${JSON.stringify(M.domain)}`;case u.DomainValidationError.VALUE_OUT_OF_RANGE:return`Value ${aa} is out of the range of valid values - field: ${M.name}, domain: ${JSON.stringify(M.domain)}`;
case b.TypeValidationError.INVALID_TYPE:return`Value ${aa} is not a valid value for the field type - field: ${M.name}, type: ${M.type}, nullable: ${M.nullable}`;case b.NumericRangeValidationError.OUT_OF_RANGE:const {min:oa,max:Da}=Ha(M.type);return`Value ${aa} is out of range for the number type - field: ${M.name}, type: ${M.type}, value range is ${oa} to ${Da}`}};b.visualVariableFields=Y;Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/domainUtils":function(){define(["exports"],
function(a){a.DomainValidationError=void 0;(function(b){b.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range";b.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(a.DomainValidationError||(a.DomainValidationError={}));a.getDomainRange=function(b){if(b&&"range"===b.type)return{min:"range"in b?b.range[0]:b.minValue,max:"range"in b?b.range[1]:b.maxValue}};a.validateDomainValue=function(b,c){switch(b.type){case "range":const e="range"in b?b.range[0]:b.minValue;b="range"in
b?b.range[1]:b.maxValue;if(null!=e&&+c<e||null!=b&&+c>b)return a.DomainValidationError.VALUE_OUT_OF_RANGE;break;case "coded-value":if(null==b.codedValues||b.codedValues.every(d=>null==d||d.code!==c))return a.DomainValidationError.INVALID_CODED_VALUE;break;case "codedValue":if(null==b.codedValues||b.codedValues.every(d=>null==d||d.code!==c))return a.DomainValidationError.INVALID_CODED_VALUE}return null};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/arcadeOnDemand":function(){define("require exports ../chunks/_rollupPluginBabelHelpers ../geometry ../core/Error ../core/Logger ../core/maybe ../geometry/SpatialReference".split(" "),
function(a,b,c,e,d,n,u,r){function h(){k||(k=c._asyncToGenerator(function*(){const l=yield new Promise((m,t)=>a(["./arcadeUtils"],m,t));return{arcade:l.arcade,arcadeUtils:l,Dictionary:l.Dictionary,Feature:l.arcadeFeature}})());return k}const g=n.getLogger("esri.support.arcadeOnDemand");let k;e=(l,m,t)=>p.create(l,m,t,null,["$feature","$view"]);let p=function(){function l(t,f,q,v,x,z,y,A){this.script=t;this.evaluate=x;this.fields=Array.isArray(y)?y:y.fields;this._syntaxTree=v;this._arcade=f;this._arcadeDictionary=
q;this._arcadeFeature=z;this._spatialReference=A;this._referencesGeometry=f.scriptTouchesGeometry(this._syntaxTree);this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}l.create=function(){var t=c._asyncToGenerator(function*(f,q,v,x,z,y){const {arcade:A,Feature:B,Dictionary:E}=yield h(),w=r.fromJSON(q);q=null;try{q=A.parseScript(f,y)}catch(J){return g.error(new d("arcade-bad-expression","Failed to parse arcade script",{script:f,error:J})),null}y=z.reduce((J,K)=>({...J,[K]:null}),
{});let D=null;u.isSome(x)&&(D=new E(x),D.immutable=!0,y.$config=null);var C=(x=A.scriptUsesGeometryEngine(q))&&A.enableGeometrySupport();const F=A.scriptUsesFeatureSet(q)&&A.enableFeatureSetSupport(),G=(z=A.scriptIsAsync(q))&&A.enableAsyncSupport();y={vars:y,spatialReference:w,useAsync:!!G};yield Promise.all([C,F,G]);C=new Set;yield A.loadDependentModules(C,q,null,z,x);const H=new E;H.immutable=!1;H.setField("scale",0);const I=A.compileScript(q,y);return new l(f,A,E,q,J=>{"$view"in J&&J.$view&&(H.setField("scale",
J.$view.scale),J.$view=H);D&&(J.$config=D);return I({vars:J,spatialReference:w})},new B,v,w)});return function(f,q,v,x,z,y){return t.apply(this,arguments)}}();var m=l.prototype;m.repurposeFeature=function(t){t.geometry&&!t.geometry.spatialReference&&(t.geometry.spatialReference=this._spatialReference);this._arcadeFeature.repurposeFromGraphicLikeObject(t.geometry,t.attributes,{fields:this.fields});return this._arcadeFeature};m.createDictionary=function(){return new this._arcadeDictionary};m.referencesMember=
function(t){return this._arcade.referencesMember(this._syntaxTree,t)};m.referencesFunction=function(t){return this._arcade.referencesFunction(this._syntaxTree,t)};m.referencesGeometry=function(){return this._referencesGeometry};m.referencesScale=function(){return this._referencesScale};m.extractFieldLiterals=function(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)};return l}();b.ArcadeExpression=p;b.createDictionaryExpression=(l,m,t,f)=>p.create(l,m,t,f,["$feature","$view"]);
b.createLabelExpression=(l,m,t)=>p.create(l,m,t,null,["$feature"]);b.createRendererExpression=e;b.createVVExpression=e;b.loadArcade=h;Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/unitConversionUtils":function(){define(["exports","../../renderers/support/lengthUtils"],function(a,b){const c=function(){const e=Object.keys(b.meterIn);e.sort();return e}();a.getMetersPerUnit=function(e){return 1/(b.meterIn[e]||1)};a.supportedUnits=c;a.supportsUnit=
function(e){return null!=b.meterIn[e]};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/lengthUtils":function(){define(["exports","../../core/unitUtils","../../geometry/support/Ellipsoid"],function(a,b,c){b={inches:b.convertUnit(1,"meters","inches"),feet:b.convertUnit(1,"meters","feet"),"us-feet":b.convertUnit(1,"meters","us-feet"),yards:b.convertUnit(1,"meters","yards"),miles:b.convertUnit(1,"meters","miles"),"nautical-miles":b.convertUnit(1,
"meters","nautical-miles"),millimeters:b.convertUnit(1,"meters","millimeters"),centimeters:b.convertUnit(1,"meters","centimeters"),decimeters:b.convertUnit(1,"meters","decimeters"),meters:b.convertUnit(1,"meters","meters"),kilometers:b.convertUnit(1,"meters","kilometers"),"decimal-degrees":1/b.lengthToDegrees(1,"meters",c.earth.radius)};a.meterIn=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/unitUtils":function(){define("exports ./has ./jsonMap ./maybe ../geometry/projectionEllipsoid ../geometry/support/Ellipsoid ../geometry/support/spatialReferenceUtils ../geometry/support/WKIDUnitConversion".split(" "),
function(a,b,c,e,d,n,u,r){function h(P){P=K[P];if(!P)throw Error("unknown type");return P}function g(P){return J[P].baseUnit}function k(P,V=null){V=V||h(P);return J[V].baseUnit===P}function p(P,V,ca){if(V===ca)return P;const ra=h(V);if(ra!==h(ca))throw Error("incompatible units");P=k(V,ra)?P:P*J[ra].units[V].inBaseUnits;return k(ca,ra)?P:P/J[ra].units[ca].inBaseUnits}function l(P,V){P=p(P,V,"meters");return 3E3>Math.abs(P)?"meters":"kilometers"}function m(P,V){P=p(P,V,"meters");return 1E5>Math.abs(P)?
"meters":"kilometers"}function t(P,V){P=p(P,V,"feet");return 1E3>Math.abs(P)?"feet":"miles"}function f(P,V){P=p(P,V,"feet");return 1E5>Math.abs(P)?"feet":"miles"}function q(P,V){P=p(P,V,"square-meters");return 3E6>Math.abs(P)?"square-meters":"square-kilometers"}function v(P,V){P=p(P,V,"square-feet");return 1E6>Math.abs(P)?"square-feet":"square-miles"}function x(P){return I.fromJSON(P.toLowerCase())||null}function z(P){const V=y(P),ca=d.getReferenceEllipsoid(P).metersPerDegree;return V>=ca?"meters":
E(P)}function y(P,V=n.earth.metersPerDegree){return e.unwrapOr(A(P,!0),V)}function A(P,V=!1){const ca=e.isSome(P)?P.wkid:null;P=e.isSome(P)?P.wkt:null;let ra=null;if(ca){if(u.isWKIDFromMars(ca))return n.mars.metersPerDegree;if(u.isWKIDFromMoon(ca))return n.moon.metersPerDegree;ra=F.values[F[ca]];!ra&&V&&H.has(ca)&&(ra=D)}else P&&(/^PROJCS/i.test(P)?ra=B(C.exec(P),ra):/^GEOCCS/i.test(P)&&(ra=B(G.exec(P),ra)));return ra}function B(P,V){return P&&P[1]?parseFloat(P[1].split(",")[1]):V}function E(P){var V=
e.isSome(P)?P.wkid:null,ca=e.isSome(P)?P.wkt:null;P=null;if(V)P=F.units[F[V]];else if(ca&&(V=/^PROJCS/i.test(ca)?C:/^GEOCCS/i.test(ca)?G:null)&&(V=V.exec(ca))&&V[1]&&(V=V[1],P=(P=/[\\"\\']{1}([^\\"\\']+)/.exec(V))&&P[1],!P||!F.units.includes(P))){V=parseFloat(V.split(",")[1]);P=null;ca=F.values;for(let ra=0;ra<ca.length;++ra)if(1E-7>Math.abs(V-ca[ra])){P=F.units[ra];break}}return e.isSome(P)?x(P):null}function w(P){P=E(P);if(e.isNone(P))return null;switch(P){case "feet":case "us-feet":case "clarke-feet":case "clarke-yards":case "clarke-links":case "sears-yards":case "sears-feet":case "sears-chains":case "benoit-1895-b-chains":case "indian-yards":case "indian-1937-yards":case "gold-coast-feet":case "sears-1922-truncated-chains":return"imperial";
case "50-kilometers":case "150-kilometers":case "meters":return"metric"}return null}const D=n.earth.radius*Math.PI/200,C=/UNIT\[([^\]]+)\]\]$/i,F=r,G=/UNIT\[([^\]]+)\]/i,H=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),I=c.strict()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",
yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"});b={millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1E3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},
"us-feet":{inBaseUnits:1200/3937}};r={"square-millimeters":{inBaseUnits:1E-6},"square-centimeters":{inBaseUnits:1E-4},"square-decimeters":{inBaseUnits:.1*.1},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:1E6},"square-inches":{inBaseUnits:6.4516E-4},"square-feet":{inBaseUnits:.09290304},"square-yards":{inBaseUnits:.83612736},"square-miles":{inBaseUnits:2589988.110336},"square-us-feet":{inBaseUnits:(P=>P*P)(1200/3937)},acres:{inBaseUnits:4046.8564224},ares:{inBaseUnits:100},hectares:{inBaseUnits:1E4}};
const J={length:{baseUnit:"meters",units:b},area:{baseUnit:"square-meters",units:r},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1E3*1E-9},"cubic-centimeters":{inBaseUnits:.001},"cubic-decimeters":{inBaseUnits:1},"cubic-meters":{inBaseUnits:1E3},"cubic-kilometers":{inBaseUnits:1E12},"cubic-inches":{inBaseUnits:.016387064},"cubic-feet":{inBaseUnits:.09290304*304.8},"cubic-yards":{inBaseUnits:764.554857984},"cubic-miles":{inBaseUnits:4.16818182544058E12}}},
angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},K=(()=>{const P={};for(const V in J)for(const ca in J[V].units)P[ca]=V;return P})(),N="metric imperial inches feet yards miles nautical-miles us-feet meters kilometers".split(" "),U=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]),ba={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",
esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},ka={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",
esriYards:"yards"};b=c.strict()(ba);r=c.strict()(ka);c=c.strict()({...ba,...ka});a.areaUnitFromSpatialReference=function(P){P=E(P);return e.isNone(P)?null:U.get(P)};a.areaUnitsJSONMap=b;a.baseUnitForUnit=function(P){return g(h(P))};a.baseUnitForUnitType=g;a.convertUnit=p;a.getDefaultUnitForView=function(P){if(e.isNone(P))return"metric";var V=P.map;if(V=V&&"portalItem"in V?V.portalItem?.portal:null)switch(V?.user?.units??V.units){case "metric":return"metric";case "english":return"imperial"}return e.unwrapOr(w(P.spatialReference),
"metric")};a.getDefaultUnitSystem=w;a.getMetersPerUnit=A;a.getMetersPerUnitForSR=y;a.getMetersPerVerticalUnitForSR=function(P){if(e.isSome(P)&&!u.isEarth(P))return 1;P=y(P);return 1E5<P?1:P};a.getUnitString=E;a.getVerticalUnitStringForSR=z;a.inchesPerMeter=39.37;a.isBaseUnit=k;a.isMeasurementSystem=function(P){return"imperial"===P||"metric"===P};a.lengthToDegrees=function(P,V,ca){return p(P,V,"meters")/(ca*Math.PI/180)};a.lengthUnitFromSpatialReference=function(P){P=E(P);return e.isNone(P)||!N.includes(P)?
null:P};a.lengthUnitsJSONMap=r;a.measurementAreaUnits="metric imperial square-inches square-feet square-yards square-miles square-us-feet square-meters square-kilometers acres ares hectares".split(" ");a.measurementLengthUnits=N;a.preferredAreaUnit=function(P,V,ca){switch(ca){case "metric":return q(P,V);case "imperial":return v(P,V);default:return ca}};a.preferredImperialAreaUnit=v;a.preferredImperialLengthUnit=t;a.preferredImperialVerticalLengthUnit=f;a.preferredLengthUnit=function(P,V,ca){switch(ca){case "metric":return l(P,
V);case "imperial":return t(P,V);default:return ca}};a.preferredMetricAreaUnit=q;a.preferredMetricLengthUnit=l;a.preferredMetricVerticalLengthUnit=m;a.preferredVerticalLengthUnit=function(P,V,ca){switch(ca){case "metric":return m(P,V);case "imperial":return f(P,V);default:return ca}};a.unitFromRESTJSON=x;a.unitToRESTJSON=function(P){return I.toJSON(P)||null};a.unitType=h;a.unitsJSONMap=c;a.verticalLengthUnitFromSpatialReference=function(P){P=z(P);return e.isNone(P)||!N.includes(P)?null:P};Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/projectionEllipsoid":function(){define(["exports","../core/maybe","./SpatialReference","./support/Ellipsoid","./support/spatialReferenceUtils"],function(a,b,c,e,d){function n(k){return new c({wkt:`GEOCCS["Spherical geocentric",\n    DATUM["Not specified",\n      SPHEROID["Sphere",${k.radius},0]],\n    PRIMEM["Greenwich",0.0,\n      AUTHORITY["EPSG","8901"]],\n    UNIT["m",1.0],\n    AXIS["Geocentric X",OTHER],\n    AXIS["Geocentric Y",EAST],\n    AXIS["Geocentric Z",NORTH]\n  ]`})}
const u=n(e.earth),r=n(e.mars),h=n(e.moon),g=new c({wkt:`GEOCCS["WGS 84",\n  DATUM["WGS_1984",\n    SPHEROID["WGS 84",${e.earth.radius},298.257223563,\n      AUTHORITY["EPSG","7030"]],\n    AUTHORITY["EPSG","6326"]],\n  PRIMEM["Greenwich",0,\n    AUTHORITY["EPSG","8901"]],\n  UNIT["m",1.0,\n    AUTHORITY["EPSG","9001"]],\n  AXIS["Geocentric X",OTHER],\n  AXIS["Geocentric Y",OTHER],\n  AXIS["Geocentric Z",NORTH],\n  AUTHORITY["EPSG","4978"]\n]`});a.SphericalECEFSpatialReference=u;a.SphericalPCPFMars=
r;a.SphericalPCPFMoon=h;a.WGS84ECEFSpatialReference=g;a.createSphericalPCPF=n;a.getReferenceEllipsoid=function(k){return b.isSome(k)&&(d.isMars(k)||k===r)?e.mars:b.isSome(k)&&(d.isMoon(k)||k===h)?e.moon:e.earth};a.getReferenceEllipsoidFromWKID=function(k){return d.isWKIDFromMars(k)?e.mars:d.isWKIDFromMoon(k)?e.moon:e.earth};a.getSphericalPCPF=function(k){return k&&(d.isMars(k)||k===r)?r:k&&(d.isMoon(k)||k===h)?h:u};a.getSphericalPCPFForEllipsoid=function(k){return k&&k===e.mars?r:k&&k===e.moon?h:
u};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/PortalLayer":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../kernel ../../request ../../core/asyncUtils ../../core/Error ../../core/Logger ../../core/maybe ../../core/promiseUtils ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../portal/Portal ../../portal/PortalItem ../../portal/PortalUser".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y){var A=null,B=null;b.PortalLayer=E=>{E=function(w){function D(){var F=w.apply(this,arguments)||this;F.resourceReferences={portalItem:null,paths:[]};F.userHasEditingPrivileges=!0;return F}c._inheritsLoose(D,w);var C=D.prototype;C.destroy=function(){this.portalItem=g.destroyMaybe(this.portalItem)};C.readPortalItem=function(F,G,H){if(G.itemId)return new z({id:G.itemId,portal:H&&H.portal})};C.writePortalItem=function(F,G){F&&F.id&&(G.itemId=F.id)};C.loadFromPortal=
function(){var F=c._asyncToGenerator(function*(G,H){if(this.portalItem&&this.portalItem.id)try{const I=yield new Promise((J,K)=>a(["../../portal/support/layersLoader"],J,K));k.throwIfAborted(H);return yield I.load({instance:this,supportedTypes:G.supportedTypes,validateItem:G.validateItem,supportsData:G.supportsData,layerModuleTypeMap:G.layerModuleTypeMap},H)}catch(I){throw k.isAbortError(I)||h.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n  ${I}`),
I;}});return function(G,H){return F.apply(this,arguments)}}();C.finishLoadEditablePortalLayer=function(){var F=c._asyncToGenerator(function*(G){this._set("userHasEditingPrivileges",yield this._fetchUserHasEditingPrivileges(G).catch(H=>{k.throwIfAbortError(H);return!0}))});return function(G){return F.apply(this,arguments)}}();C._fetchUserHasEditingPrivileges=function(){var F=c._asyncToGenerator(function*(G){const H=this.url?d.id?.findCredential(this.url):null;if(!H)return!0;G=A===H?B:yield this._fetchEditingUser(G);
A=H;B=G;return g.isNone(G)||null==G.privileges||G.privileges.includes("features:user:edit")});return function(G){return F.apply(this,arguments)}}();C._fetchEditingUser=function(){var F=c._asyncToGenerator(function*(G){var H=this.portalItem?.portal?.user;if(H)return H;H=d.id.findServerInfo(this.url??"");if(!H?.owningSystemUrl)return null;H=`${H.owningSystemUrl}/sharing/rest`;const I=x.getDefault();if(I&&I.loaded&&p.normalize(I.restUrl)===p.normalize(H))return I.user;H=`${H}/community/self`;G=g.isSome(G)?
G.signal:null;G=yield u.result(n(H,{authMode:"no-prompt",query:{f:"json"},signal:G}));return G.ok?y.fromJSON(G.value.data):null});return function(G){return F.apply(this,arguments)}}();C.read=function(F,G){G&&(G.layer=this);w.prototype.read.call(this,F,G)};C.write=function(F,G){const H=G&&G.portal,I=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||x.getDefault());return H&&I&&!p.hasSamePortal(I.restUrl,H.restUrl)?(G.messages&&G.messages.push(new r("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,
{layer:this})),null):w.prototype.write.call(this,F,{...G,layer:this})};c._createClass(D,[{key:"portalItem",set:function(F){F!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",F))}}]);return D}(E);e.__decorate([l.property({type:z})],E.prototype,"portalItem",null);e.__decorate([f.reader("web-document","portalItem",["itemId"])],E.prototype,"readPortalItem",null);e.__decorate([v.writer("web-document","portalItem",{itemId:{type:String}})],E.prototype,"writePortalItem",
null);e.__decorate([l.property({clonable:!1})],E.prototype,"resourceReferences",void 0);e.__decorate([l.property({readOnly:!0})],E.prototype,"userHasEditingPrivileges",void 0);return E=e.__decorate([q.subclass("esri.layers.mixins.PortalLayer")],E)};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/ScaleRangeLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){a.ScaleRangeLayer=r=>{r=function(h){function g(){var k=h.apply(this,arguments)||this;k.minScale=0;k.maxScale=0;return k}b._inheritsLoose(g,h);b._createClass(g,[{key:"effectiveScaleRange",get:function(){const k={minScale:this.minScale,maxScale:this.maxScale};var p=this.parent;p&&"effectiveScaleRange"in p&&(p=p.effectiveScaleRange,k.minScale=0<k.minScale?0<p.minScale?Math.min(k.minScale,p.minScale):k.minScale:p.minScale,k.maxScale=0<k.maxScale?0<p.maxScale?Math.max(k.maxScale,
p.maxScale):k.maxScale:p.maxScale);return(p=this._get("effectiveScaleRange"))&&p.minScale===k.minScale&&p.maxScale===k.maxScale?p:k}}]);return g}(r);c.__decorate([e.property({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0);c.__decorate([e.property({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0);c.__decorate([e.property({readOnly:!0})],r.prototype,"effectiveScaleRange",null);return r=c.__decorate([u.subclass("esri.layers.mixins.ScaleRangeLayer")],
r)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/RefreshableLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/promiseUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./refresh".split(" "),function(a,b,c,e,d,n,u,r,h,g){a.RefreshableLayer=k=>{k=function(p){function l(...t){var f=
p.call(this,...t)||this;f.refreshInterval=0;f.refreshTimestamp=0;f._debounceHasDataChanged=d.debounce(()=>f.hasDataChanged());f.when().then(()=>{g.registerLayer(b._assertThisInitialized(f))},()=>{});return f}b._inheritsLoose(l,p);var m=l.prototype;m.destroy=function(){g.unregisterLayer(this)};m.refresh=function(t=Date.now()){d.ignoreAbortErrors(this._debounceHasDataChanged()).then(f=>{f&&this._set("refreshTimestamp",t);this.emit("refresh",{dataChanged:f})},f=>{e.getLogger(this.declaredClass).error(f);
this.emit("refresh",{dataChanged:!1,error:f})})};m.hasDataChanged=function(){var t=b._asyncToGenerator(function*(){return!0});return function(){return t.apply(this,arguments)}}();b._createClass(l,[{key:"refreshParameters",get:function(){return{_ts:this.refreshTimestamp||null}}}]);return l}(k);c.__decorate([n.property({type:Number,cast:p=>.1<=p?p:0>=p?0:.1,json:{write:!0}})],k.prototype,"refreshInterval",void 0);c.__decorate([n.property({readOnly:!0})],k.prototype,"refreshTimestamp",void 0);c.__decorate([n.property()],
k.prototype,"refreshParameters",null);return k=c.__decorate([h.subclass("esri.layers.mixins.RefreshableLayer")],k)};a.isRefreshableLayer=function(k){return null!=k&&"object"===typeof k&&"refreshTimestamp"in k&&"refresh"in k};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/refresh":function(){define("exports ../../core/Collection ../../chunks/_rollupPluginBabelHelpers ../../core/has ../../core/Error ../../core/Logger ../../core/accessorSupport/watch ../../core/accessorSupport/trackingUtils".split(" "),
function(a,b,c,e,d,n,u,r){function h(f){return null!=f&&"object"===typeof f&&"refreshInterval"in f&&"refresh"in f}function g(f,q){return Number.isFinite(f)&&Number.isFinite(q)?0>=q?f:g(q,f%q):0}function k(){const f=Date.now();for(const q of p)if(q.refreshInterval){const v=l.get(q)??0;f-v+5>=6E4*q.refreshInterval&&(l.set(q,f),q.refresh(f))}}const p=new b,l=new WeakMap;let m=0,t=0;r.autorun(()=>{const f=Date.now();let q=0;for(const v of p)q=g(Math.round(6E4*v.refreshInterval),q),v.refreshInterval?l.get(v)||
l.set(v,f):l.delete(v);q!==t&&(t=q,clearInterval(m),m=0===t?0:setInterval(k,t))});a.registerLayer=function(f){h(f)&&p.push(f)};a.test={get hasRefreshTimer(){return 0<m},get tickInterval(){return t},forceRefresh(){k()},hasLayer(f){return h(f)&&p.includes(f)},clear(){for(const f of p)l.delete(f);p.removeAll()}};a.unregisterLayer=function(f){h(f)&&p.includes(f)&&p.remove(f)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/layersCreator":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Collection ../../core/has ../../core/promiseUtils ./lazyLayerLoader ../../portal/PortalItem ../../portal/support/featureCollectionUtils ../../portal/support/portalLayers ../../renderers/support/styleUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){function k(H,I,J){return p.apply(this,arguments)}function p(){p=b._asyncToGenerator(function*(H,I,J){if(I){var K=[];for(const N of I)I=l(N,J),"GroupLayer"===N.layerType?K.push(z(I,N,J)):K.push(I);K=yield d.eachAlways(K);for(const N of K)!N.value||J.filter&&!J.filter(N.value)||H.add(N.value)}});return p.apply(this,arguments)}function l(H,I){return m.apply(this,arguments)}function m(){m=b._asyncToGenerator(function*(H,I){const J=yield q(H,I);return t(J,H,I)});return m.apply(this,
arguments)}function t(H,I,J){return f.apply(this,arguments)}function f(){f=b._asyncToGenerator(function*(H,I,J){H=new H;H.read(I,J.context);"group"===H.type&&x(I)&&(yield A(H,I,J.context));yield g.loadStyleRenderer(H,J.context);return H});return f.apply(this,arguments)}function q(H,I){return v.apply(this,arguments)}function v(){v=b._asyncToGenerator(function*(H,I){var J=I.context;let K;switch(J.origin){case "web-scene":switch(J.layerContainerType){case "basemap":K=D;break;case "ground":K=w;break;
default:K=E}break;default:switch(J.layerContainerType){case "basemap":K=G;break;case "tables":K=F;break;default:K=C}}let N=H.layerType||H.type;!N&&I&&I.defaultLayerType&&(N=I.defaultLayerType);I=(I=K[N])?n.layerLookupMap[I]:n.layerLookupMap.UnknownLayer;"Feature Collection"===H.type?(J=J?.portal,H.itemId&&(H=new u({id:H.itemId,portal:J}),yield H.load(),H=(yield h.selectLayerClassPath(H)).className||"UnknownLayer",I=n.layerLookupMap[H])):"ArcGISFeatureLayer"===N?r.isMapNotesLayer(H)||r.isMarkupLayer(H)?
I=n.layerLookupMap.MapNotesLayer:r.isRouteLayer(H)?I=n.layerLookupMap.RouteLayer:x(H)&&(I=n.layerLookupMap.GroupLayer):H.wmtsInfo&&H.wmtsInfo.url&&H.wmtsInfo.layerIdentifier?I=n.layerLookupMap.WMTSLayer:"WFS"===N&&"2.0.0"!==H.wfsInfo.version&&(I=n.layerLookupMap.UnsupportedLayer);return I()});return v.apply(this,arguments)}function x(H){return"ArcGISFeatureLayer"!==H.layerType||"Feature Collection"===H.type?!1:1<(H.featureCollection?.layers?.length??0)}function z(H,I,J){return y.apply(this,arguments)}
function y(){y=b._asyncToGenerator(function*(H,I,J){const K=new c;I=k(K,Array.isArray(I.layers)?I.layers:[],J);H=yield H;yield I;if("group"===H.type)return H.layers.addMany(K),H});return y.apply(this,arguments)}function A(H,I,J){return B.apply(this,arguments)}function B(){B=b._asyncToGenerator(function*(H,I,J){const K=yield(0,n.layerLookupMap.FeatureLayer)();var N=I.featureCollection;const U=N.showLegend;N=N.layers.map((ba,ka)=>{const P=new K;P.read(ba,J);ba={...J,ignoreDefaults:!0};P.read({id:`${H.id}-sublayer-${ka}`,
visibility:I.visibleLayers?.includes(ka)??!0},ba);null!=U&&P.read({showLegend:U},ba);return P});H.layers.addMany(N)});return B.apply(this,arguments)}const E={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",
ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},w={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},
D={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",DefaultTileLayer:"TileLayer"},C={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",
ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",
WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},F={ArcGISFeatureLayer:"FeatureLayer"},G={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",
DefaultTileLayer:"TileLayer"};a.populateOperationalLayers=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/lazyLayerLoader":function(){define(["require","exports","../../chunks/_rollupPluginBabelHelpers"],function(a,b,c){const e=n=>Object.freeze(Object.defineProperty({__proto__:null,default:n},Symbol.toStringTag,{value:"Module"})),d={BingMapsLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../BingMapsLayer"],
h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),BuildingSceneLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../BuildingSceneLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),CSVLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../CSVLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),DimensionLayer:function(){var n=
c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../DimensionLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),ElevationLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../ElevationLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),FeatureLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../FeatureLayer"],h=>u(e(h)),r))).default});
return function(){return n.apply(this,arguments)}}(),GroupLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../GroupLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),GeoRSSLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../GeoRSSLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),GeoJSONLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,
r)=>a(["../GeoJSONLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),ImageryLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../ImageryLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),ImageryTileLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../ImageryTileLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),
IntegratedMeshLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../IntegratedMeshLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),KMLLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../KMLLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),LineOfSightLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../LineOfSightLayer"],
h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),MapImageLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../MapImageLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),MapNotesLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../MapNotesLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),OGCFeatureLayer:function(){var n=
c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../OGCFeatureLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),OpenStreetMapLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../OpenStreetMapLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),OrientedImageryLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../OrientedImageryLayer"],
h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),PointCloudLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../PointCloudLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),RouteLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../RouteLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),SceneLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,
r)=>a(["../SceneLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),StreamLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../StreamLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),SubtypeGroupLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../SubtypeGroupLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),
TileLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../TileLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),UnknownLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../UnknownLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),UnsupportedLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../UnsupportedLayer"],
h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),VectorTileLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../VectorTileLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),VoxelLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../VoxelLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),WebTileLayer:function(){var n=
c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../WebTileLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),WFSLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../WFSLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}(),WMSLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../WMSLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,
arguments)}}(),WMTSLayer:function(){var n=c._asyncToGenerator(function*(){return(yield new Promise((u,r)=>a(["../WMTSLayer"],h=>u(e(h)),r))).default});return function(){return n.apply(this,arguments)}}()};b.layerLookupMap=d;Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/support/featureCollectionUtils":function(){define(["exports"],function(a){function b(c,e){return c.layerType&&"ArcGISFeatureLayer"===c.layerType?c.featureCollectionType===e?
!0:!1:!1}a.isMapNotesLayer=function(c){return b(c,"notes")};a.isMarkupLayer=function(c){return b(c,"markup")};a.isRouteLayer=function(c){return b(c,"route")};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/support/portalLayers":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../layers/support/lazyLayerLoader ../PortalItem ./layersLoader ./portalItemUtils ../../support/requestPresets".split(" "),function(a,
b,c,e,d,n,u,r){function h(A){switch(A.type){case "Map Service":return k(A);case "Feature Service":return p(A);case "Feature Collection":return m(A);case "Scene Service":return l(A);case "Image Service":return f(A);case "Stream Service":return{className:"StreamLayer"};case "Vector Tile Service":return{className:"VectorTileLayer"};case "GeoJson":return{className:"GeoJSONLayer"};case "CSV":return{className:"CSVLayer"};case "KML":return{className:"KMLLayer"};case "WFS":return{className:"WFSLayer"};case "WMTS":return{className:"WMTSLayer"};
case "WMS":return{className:"WMSLayer"};case "Feed":return{className:"StreamLayer"};default:return Promise.reject(new c("portal:unknown-item-type","Unknown item type '${type}'",{type:A.type}))}}function g(A){return(0,e.layerLookupMap[A.className])().then(B=>({constructor:B,properties:A.properties}))}function k(A){return x(A).then(B=>B?{className:"TileLayer"}:{className:"MapImageLayer"})}function p(A){return u.hasTypeKeyword(A,"Oriented Imagery Layer")?v(A):z(A).then(B=>{if("object"===typeof B){const E=
{};null!=B.id&&(E.layerId=B.id);return{className:B.className||"FeatureLayer",properties:E}}return{className:"GroupLayer"}})}function l(A){return z(A).then(B=>{if("object"===typeof B){const E={};null!=B.id?(E.layerId=B.id,B=`${A.url}/layers/${B.id}`):B=A.url;if(Array.isArray(A.typeKeywords)&&0<A.typeKeywords.length){const w={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const D of Object.keys(w))if(A.typeKeywords.includes(D))return{className:w[D]}}return r.requestArcGISServiceJSON(B).then(w=>
{let D="SceneLayer";const C={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};w&&w.layerType&&C[w.layerType]&&(D=C[w.layerType]);return{className:D,properties:E}})}return!1===B?r.requestArcGISServiceJSON(A.url).then(E=>"Voxel"===E?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}):{className:"GroupLayer"}})}function m(A){return t.apply(this,arguments)}function t(){t=b._asyncToGenerator(function*(A){yield A.load();
const B=u.hasTypeKeyword(A,"Map Notes"),E=u.hasTypeKeyword(A,"Markup");if(B||E)return{className:"MapNotesLayer"};if(u.hasTypeKeyword(A,"Route Layer"))return{className:"RouteLayer"};A=yield A.fetchData();return 1===n.getNumLayersAndTables(A)?{className:"FeatureLayer"}:{className:"GroupLayer"}});return t.apply(this,arguments)}function f(A){return q.apply(this,arguments)}function q(){q=b._asyncToGenerator(function*(A){yield A.load();var B=A.typeKeywords?.map(E=>E.toLowerCase())??[];if(B.includes("elevation 3d layer"))return{className:"ElevationLayer"};
if(B.includes("tiled imagery"))return{className:"ImageryTileLayer"};B=(yield A.fetchData())?.layerType;if("ArcGISTiledImageServiceLayer"===B)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===B)return{className:"ImageryLayer"};B=yield r.requestArcGISServiceJSON(A.url);A=B.cacheType?.toLowerCase();B=B.capabilities?.toLowerCase().includes("tilesonly");return"map"===A||B?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}});return q.apply(this,arguments)}function v(A){return A.load().then(()=>
A.fetchData()).then(B=>B.coverage?{className:"GroupLayer"}:{className:"OrientedImageryLayer",properties:B})}function x(A){return r.requestArcGISServiceJSON(A.url).then(B=>B.tileInfo)}function z(A){return!A.url||A.url.match(/\/\d+$/)?Promise.resolve({}):A.load().then(()=>A.fetchData()).then(function(){var B=b._asyncToGenerator(function*(E){if("Feature Service"===A.type){var w=yield n.preprocessFSItemData(E,A.url);w=y(w);"object"===typeof w&&(E=n.getSubtypeGroupLayerIds(E),w.className=E.includes(w.id)?
"SubtypeGroupLayer":"FeatureLayer");return w}return 0<n.getNumLayersAndTables(E)?y(E):r.requestArcGISServiceJSON(A.url).then(y)});return function(E){return B.apply(this,arguments)}}())}function y(A){return 1===n.getNumLayersAndTables(A)?{id:n.getFirstLayerOrTableId(A)}:!1}a.fromItem=function(A){!A.portalItem||A.portalItem instanceof d||(A={...A,portalItem:new d(A.portalItem)});return A.portalItem.load().then(h).then(g).then(B=>new B.constructor({portalItem:A.portalItem,...B.properties}))};a.selectLayerClassPath=
h;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/support/layersLoader":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../layers/Layer ../../layers/support/arcgisLayerUrl ../Portal ../PortalItem ./jsonContext ./portalItemUtils ../../renderers/support/styleUtils ../../support/requestPresets".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){function p(){p=b._asyncToGenerator(function*(C,F){var G=C.instance.portalItem;
if(G&&G.id){yield G.load(F);G=C.instance.portalItem;if(!C.supportedTypes.includes(G.type))throw new c("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:G.type,expectedType:C.supportedTypes.join(", ")});return l(C,F)}});return p.apply(this,arguments)}function l(C,F){return m.apply(this,arguments)}function m(){m=b._asyncToGenerator(function*(C,F){const G=C.instance,H=G.portalItem,{url:I,title:J}=H,K=r.createForItemRead(H);if("group"===G.type)return G.read({title:J},
K),t(G,C);I&&G.read({url:I},K);(C=yield x(C,F))&&G.read(C,K);G.resourceReferences={portalItem:H,paths:K.readResourcePaths};"subtype-group"!==G.type&&G.read({title:J},K);return g.loadStyleRenderer(G,K)});return m.apply(this,arguments)}function t(C,F){const G=C.portalItem.type,H=F.layerModuleTypeMap;var I=h.hasTypeKeyword(C.portalItem,"Oriented Imagery Layer")??!1;switch(G){case "Feature Service":I=I?H.OrientedImageryLayer:H.FeatureLayer;break;case "Stream Service":I=H.StreamLayer;break;case "Scene Service":I=
H.SceneLayer;break;case "Feature Collection":I=H.FeatureLayer;break;default:throw new c("portal:unsupported-item-type-as-group",`The item type '${G}' is not supported as a 'IGroupLayer'`);}let J;return I().then(K=>{J=K;return x(F)}).then(function(){var K=b._asyncToGenerator(function*(N){let U=()=>J;if("Feature Service"===G){N=yield z(N,C.portalItem.url);if(D(N).length){const ba=yield(0,H.SubtypeGroupLayer)();U=ka=>"SubtypeGroupLayer"===ka.layerType?ba:J}return q(C,U,N)}return 0<E(N)?q(C,U,N):f(C,
U)});return function(N){return K.apply(this,arguments)}}())}function f(C,F){return C.portalItem.url?k.requestArcGISServiceJSON(C.portalItem.url).then(G=>{function H(I){return{id:I.id,name:I.name}}G&&q(C,F,{layers:G.layers?.map(H),tables:G.tables?.map(H)})}):Promise.resolve()}function q(C,F,G){let H=G.layers||[];const I=G.tables||[];"Feature Collection"===C.portalItem.type&&(H.forEach(J=>{"Table"===J?.layerDefinition?.type&&I.push(J)}),H=H.filter(J=>"Table"!==J?.layerDefinition?.type));if("coverage"in
G){const J=w(G);C.add(J)}H.reverse().forEach(J=>{J=v(C,F(J),G,J);C.add(J)});I.reverse().forEach(J=>{J=v(C,F(J),G,J);C.tables.add(J)})}function v(C,F,G,H){F=new F({portalItem:C.portalItem.clone(),layerId:H.id});"subtype-group"!==F.type&&(F.sublayerTitleMode="service-name");"Feature Collection"===C.portalItem.type&&(C={origin:"portal-item",portal:C.portalItem.portal||n.getDefault()},F.read(H,C),G=G.showLegend,null!=G&&F.read({showLegend:G},C));return F}function x(C,F){if(!1===C.supportsData)return Promise.resolve(void 0);
const G=C.instance;return G.portalItem.fetchData("json",F).catch(()=>null).then(H=>{var I="stream"===G.type||"oriented-imagery"===G.type?!1:"layerId"in G;if(I){I=!0;if(H&&0<E(H)){if(null==G.layerId){var J=D(H);G.layerId="subtype-group"===G.type?J?.[0]:A(H)}if(J=B(H,G))1===E(H)&&(I=!1),null!=H.showLegend&&(J.showLegend=H.showLegend)}I&&"service-name"!==G.sublayerTitleMode&&(G.sublayerTitleMode="item-title-and-service-name");return J}return H})}function z(C,F){return y.apply(this,arguments)}function y(){y=
b._asyncToGenerator(function*(C,F){if(null==C?.layers||null==C?.tables)F=yield k.requestArcGISServiceJSON(F),C=C||{},C.layers=C.layers||F?.layers,C.tables=C.tables||F?.tables;return C});return y.apply(this,arguments)}function A(C){const F=C.layers;return F&&F.length?F[0].id:(C=C.tables)&&C.length?C[0].id:null}function B(C,F){const {layerId:G}=F;C=C.layers?.find(I=>I.id===G)||C.tables?.find(I=>I.id===G);var H;if(H=C)H="feature"===F.type&&"layerType"in C&&"SubtypeGroupLayer"===C.layerType||"subtype-group"===
F.type&&!("layerType"in C)?!1:!0;return H?C:null}function E(C){return(C?.layers?.length??0)+(C?.tables?.length??0)}function w(C){var {coverage:F}=C;if(!F)return null;C=new URL(F);if(F.toLowerCase().includes("item.html"))return F=C.searchParams.get("id"),e.fromPortalItem({portalItem:new u({id:F,url:C.origin})});if(d.isArcGISUrl(F))return e.fromArcGISServerUrl({url:F});throw new c("portal:oriented-imagery-layer-coverage","the provided coverage url couldn't be loaded as a layer");}function D(C){const F=
[];C?.layers?.forEach(G=>{"SubtypeGroupLayer"===G.layerType&&F.push(G.id)});return F}a.getFirstLayerOrTableId=A;a.getNumLayersAndTables=E;a.getSubtypeGroupLayerIds=D;a.load=function(C,F){return p.apply(this,arguments)};a.preprocessFSItemData=z;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/arcgisLayerUrl":function(){define(["exports","../../core/maybe","../../core/urlUtils","../../chunks/persistableUrlUtils"],function(a,b,c,e){function d(l){if(b.isNone(l))return null;
l=c.urlToObject(l);l=l.path.match(g)||l.path.match(k);if(!l)return null;const [,m,t,f,q]=l;l=t.indexOf("/");return{title:u(-1!==l?t.slice(l+1):t),serverType:r[f.toLowerCase()],sublayer:null!=q&&""!==q?parseInt(q,10):null,url:{path:m}}}function n(l){return(l=c.urlToObject(l).path.match(p))?{serviceUrl:l[1],sublayerId:Number(l[2])}:null}function u(l){l=l.replace(/\s*[/_]+\s*/g," ");return l[0].toUpperCase()+l.slice(1)}const r={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",
sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},h=Object.values(r),g=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${h.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),k=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${h.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),p=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;a.cleanTitle=u;a.isAGOLUrl=function(l){if(!l)return!1;l=(new c.Url(c.makeAbsolute(l))).authority?.toLowerCase();return null!=l&&
l.includes("arcgis.com")};a.isArcGISUrl=function(l){return!!g.test(l)};a.isHostedAgolService=function(l){if(!l)return!1;l=l.toLowerCase();const m=l.includes(".arcgis.com/");l=l.includes("//services")||l.includes("//tiles")||l.includes("//features");return m&&l};a.isHostedSecuredProxyService=function(l,m){return null!=m&&null!=l&&l.toLowerCase().includes(m.toLowerCase())};a.isServerOrServicesAGOLUrl=function(l){if(!l)return!1;l=(new c.Url(c.makeAbsolute(l))).authority?.toLowerCase();return"server.arcgisonline.com"===
l||"services.arcgisonline.com"===l};a.isWmsServer=function(l){if(!l)return!1;var m=l.toLowerCase();l=m.includes("/services/");const t=m.includes("/mapserver/wmsserver"),f=m.includes("/imageserver/wmsserver");m=m.includes("/wmsserver");return l&&(t||f||m)};a.parse=d;a.parseNonStandardSublayerUrl=n;a.sanitizeUrl=function(l,m){return l?c.removeTrailingSlash(c.removeQueryParameters(l,m)):l};a.sanitizeUrlWithLayerId=function(l){let {url:m}=l;if(!m)return{url:m};m=c.removeQueryParameters(m,l.logger);const t=
c.urlToObject(m),f=d(t.path);let q=void 0;b.isSome(f)?(null!=f.sublayer&&null==l.layer.layerId&&(q=f.sublayer),m=f.url.path):l.nonStandardUrlAllowed&&(l=n(t.path),b.isSome(l)&&(m=l.serviceUrl,q=l.sublayerId));return{url:c.removeTrailingSlash(m),layerId:q}};a.serverTypes=h;a.titleFromUrlAndName=function(l,m){const t=[];l&&(l=d(l),b.isSome(l)&&l.title&&t.push(l.title));m&&(m=u(m),t.push(m));if(2===t.length){if(t[0].toLowerCase().includes(t[1].toLowerCase()))return t[0];if(t[1].toLowerCase().includes(t[0].toLowerCase()))return t[1]}return t.join(" - ")};
a.writeUrlWithLayerId=function(l,m,t,f,q){e.write(m,f,"url",q);f.url&&null!=l.layerId&&(f.url=c.join(f.url,t,l.layerId.toString()))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/support/jsonContext":function(){define(["exports","../../core/urlUtils","../Portal"],function(a,b,c){a.createForItemRead=function(e){return{origin:"portal-item",url:b.urlToObject(e.itemUrl),portal:e.portal||c.getDefault(),portalItem:e,readResourcePaths:[]}};a.createForItemWrite=
function(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?b.urlToObject(e.itemUrl):null,portal:e.portal||c.getDefault(),portalItem:e}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/portal/support/portalItemUtils":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../geometry/projection","../../geometry/SpatialReference","../../geometry/support/webMercatorUtils"],function(a,b,c,e,d){function n(g){return u.apply(this,
arguments)}function u(){u=b._asyncToGenerator(function*(g){const k=g.spatialReference;if(k.isWGS84)return g.clone();if(k.isWebMercator)return d.webMercatorToGeographic(g);const p=e.WGS84;yield c.initializeProjection(k,p);return c.project(g,p)});return u.apply(this,arguments)}function r(g,k){return!!g.typeKeywords?.includes(k)}function h(){h=b._asyncToGenerator(function*(g){g=g.clone().normalize();let k;if(1<g.length)for(const p of g)k?p.width>k.width&&(k=p):k=p;else k=g[0];return n(k)});return h.apply(this,
arguments)}a.TypeKeyword={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"};a.addTypeKeyword=function(g,k){if(!r(g,k)){const p=g.typeKeywords;p?p.push(k):g.typeKeywords=[k]}};a.getWGS84ExtentForItem=function(g){return h.apply(this,arguments)};a.hasTypeKeyword=r;a.removeTypeKeyword=function(g,k){if(g=g.typeKeywords)k=g.indexOf(k),-1<k&&g.splice(k,1)};Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/projection":function(){define("require exports ../chunks/_rollupPluginBabelHelpers ../core/Error ../core/mathUtils ../core/maybe ../core/promiseUtils ../core/unitUtils ../core/accessorSupport/tracking ../core/accessorSupport/tracking/SimpleObservable ../chunks/mat4 ../chunks/vec3 ../chunks/vec3f64 ./Extent ./Multipoint ../chunks/pe ./Point ./Polygon ./Polyline ./projectionEllipsoid ./support/aaBoundingRect ./support/Ellipsoid ./support/geodesicConstants ./support/GeographicTransformation ./support/spatialReferenceUtils ./support/SupportedGCSWkids ./support/zscale".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C){function F(){return!!eb&&f.isLoaded()}function G(na){n.isNone(T)&&(T=Promise.all([f.load(),(new Promise((va,qa)=>a(["../chunks/geometryEngineBase"],va,qa))).then(va=>va.geometryEngineBase),new Promise((va,qa)=>a(["./geometryAdapters/hydrated"],va,qa))]));return T.then(([,va,{hydratedAdapter:qa}])=>{u.throwIfAborted(na);Oa=qa;eb=va.default;eb._enableProjection(f.pe);wa.notify()})}function H(na,va,qa=null,za=null){return Array.isArray(na)?
0===na.length?[]:I(Oa,na,na[0].spatialReference,va,qa,za):I(Oa,[na],na.spatialReference,va,qa,za)[0]}function I(na,va,qa,za,Ia=null,xa=null){if(n.isNone(qa)||n.isNone(za))return va;if(U(qa,za,Ia))return va.map(Ga=>n.unwrap(ka(Ga,qa,za)));if(n.isNone(Ia)){const Ga=E.cacheKey(qa,za);void 0!==W[Ga]?Ia=W[Ga]:(Ia=K(qa,za,void 0),n.isNone(Ia)&&(Ia=new E),W[Ga]=Ia)}if(n.isNone(eb)||n.isNone(na))throw new Aa;return n.isSome(xa)?eb._project(na,va,qa,za,Ia,xa):eb._project(na,va,qa,za,Ia)}function J(na,va){if(!F())for(const qa of na)if(n.isSome(qa)&&
!w.equals(qa.spatialReference,va)&&w.isValid(qa.spatialReference)&&w.isValid(va)&&!U(qa.spatialReference,va))return h.trackAccess(wa),{pending:G(),geometries:null};return{pending:null,geometries:na.map(qa=>n.isNone(qa)?null:w.equals(qa.spatialReference,va)?qa:w.isValid(qa.spatialReference)&&w.isValid(va)?N(qa,va):null)}}function K(na,va,qa=null){if(n.isNone(na)||n.isNone(va))return null;if(n.isNone(eb)||n.isNone(Oa))throw new Aa;na=eb._getTransformation(Oa,na,va,qa,qa?.spatialReference);return null!==
na?E.fromGE(na):null}function N(na,va){try{const qa=H(na,va);if(null==qa)return null;"xmin"in na&&"xmin"in qa&&(qa.zmin=na.zmin,qa.zmax=na.zmax);const za=C.getGeometryZScaler(qa.type,na.spatialReference,va);n.isSome(za)&&za(qa);return qa}catch(qa){if(!(qa instanceof Aa))throw qa;return null}}function U(na,va,qa){return qa?!1:w.equals(na,va)?!0:w.isValid(na)&&w.isValid(va)&&!!$a(na,va,fb)}function ba(){ba=c._asyncToGenerator(function*(na,va,qa,za){if(F())return u.waitTick(za);if(Array.isArray(na))for(const {source:Ia,
dest:xa,geographicTransformation:Ga}of na){if(!U(Ia,xa,Ga))return G(za)}else if(!U(na,va,qa))return G(za);return u.waitTick(za)});return ba.apply(this,arguments)}function ka(na,va,qa){return na?"x"in na?P(na,va,new q,qa,0):"xmin"in na?ta(na,va,new m,qa,0):"rings"in na?ra(na,va,new v,qa,0):"paths"in na?ca(na,va,new x,qa,0):"points"in na?V(na,va,new t,qa,0):null:null}function P(na,va,qa,za,Ia){Ca[0]=na.x;Ca[1]=na.y;const xa=na.z;Ca[2]=void 0!==xa?xa:Ia;if(!la(Ca,va,0,Ca,za,0,1))return null;qa.x=Ca[0];
qa.y=Ca[1];qa.spatialReference=za;void 0===xa?(qa.z=void 0,qa.hasZ=!1):(qa.z=Ca[2],qa.hasZ=!0);void 0===na.m?(qa.m=void 0,qa.hasM=!1):(qa.m=na.m,qa.hasM=!0);return qa}function V(na,va,qa,za,Ia){const {points:xa,hasZ:Ga,hasM:Ma}=na;na=[];const bb=xa.length,ab=[];for(var gb of xa)ab.push(gb[0],gb[1],Ga?gb[2]:Ia);if(!la(ab,va,0,ab,za,0,bb))return null;for(va=0;va<bb;++va){Ia=3*va;gb=ab[Ia];const jb=ab[Ia+1];Ga&&Ma?na.push([gb,jb,ab[Ia+2],xa[va][3]]):Ga?na.push([gb,jb,ab[Ia+2]]):Ma?na.push([gb,jb,xa[va][2]]):
na.push([gb,jb])}qa.points=na;qa.spatialReference=za;qa.hasZ=Ga;qa.hasM=Ma;return qa}function ca(na,va,qa,za,Ia){const {paths:xa,hasZ:Ga,hasM:Ma}=na;na=[];if(!sa(xa,Ga??!1,Ma??!1,va,na,za,Ia))return null;qa.paths=na;qa.spatialReference=za;qa.hasZ=Ga;qa.hasM=Ma;return qa}function ra(na,va,qa,za,Ia){const {rings:xa,hasZ:Ga,hasM:Ma}=na;na=[];if(!sa(xa,Ga??!1,Ma??!1,va,na,za,Ia))return null;qa.rings=na;qa.spatialReference=za;qa.hasZ=Ga;qa.hasM=Ma;return qa}function ta(na,va,qa,za,Ia){const {xmin:xa,ymin:Ga,
xmax:Ma,ymax:bb,hasZ:ab,hasM:gb}=na;if(!Ba(xa,Ga,ab?na.zmin:Ia,va,Ca,za))return null;qa.xmin=Ca[0];qa.ymin=Ca[1];ab&&(qa.zmin=Ca[2]);if(!Ba(Ma,bb,ab?na.zmax:Ia,va,Ca,za))return null;qa.xmax=Ca[0];qa.ymax=Ca[1];ab&&(qa.zmax=Ca[2]);gb&&(qa.mmin=na.mmin,qa.mmax=na.mmax);qa.spatialReference=za;return qa}function Ba(na,va,qa,za,Ia,xa){Fa[0]=na;Fa[1]=va;Fa[2]=qa;return la(Fa,za,0,Ia,xa,0,1)}function Ha(na,va,qa,za){if(n.isNone(va)||n.isNone(za)||2>na.length)return!1;2===na.length&&(Fa[0]=na[0],Fa[1]=na[1],
Fa[2]=0,na=Fa);return la(na,va,0,qa,za,0,1)}function da(na,va,qa){if(n.isNone(va))return!1;va=pa(va,Ya);va=Ua[va][ia.WGS84_COMPARABLE_LON_LAT];if(n.isNone(va))return!1;va(na,0,Fa,0);qa!==Fa&&(qa[0]=Fa[0],qa[1]=Fa[1],2<qa.length&&(qa[2]=Fa[2]));return!0}function la(na,va,qa,za,Ia,xa,Ga=1){va=$a(va,Ia,fb);if(n.isNone(va))return!1;if(va===ya){if(na===za&&qa===xa)return!0;Ga=qa+3*Ga;for(let Ma=qa,bb=xa;Ma<Ga;Ma++,bb++)za[bb]=na[Ma];return!0}Ga=qa+3*Ga;for(let Ma=qa,bb=xa;Ma<Ga;Ma+=3,bb+=3)va(na,Ma,za,
bb);return!0}function sa(na,va,qa,za,Ia,xa,Ga=0){const Ma=[];for(const bb of na)for(const ab of bb)Ma.push(ab[0],ab[1],va?ab[2]:Ga);if(!la(Ma,za,0,Ma,xa,0,Ma.length/3))return!1;za=0;Ia.length=0;for(const bb of na){na=[];for(const ab of bb)va&&qa?na.push([Ma[za++],Ma[za++],Ma[za++],ab[3]]):va?na.push([Ma[za++],Ma[za++],Ma[za++]]):(qa?na.push([Ma[za++],Ma[za++],ab[2]]):na.push([Ma[za++],Ma[za++]]),za++);Ia.push(na)}return!0}function L(na,va,qa,za){va=za+va;if(va<za/2||qa>va)return Number.MAX_VALUE;
na=Math.abs(hb*na)+Math.asin(qa/va);return na>=Math.PI/2?Number.MAX_VALUE:qa/Math.cos(na)}function O(na,va,qa){const za=Math.sin(na);na=Math.cos(na);const Ia=Math.sin(va);va=Math.cos(va);qa[0]=-za;qa[4]=-Ia*na;qa[8]=va*na;qa[12]=0;qa[1]=na;qa[5]=-Ia*za;qa[9]=va*za;qa[13]=0;qa[2]=0;qa[6]=va;qa[10]=Ia;qa[14]=0;qa[3]=0;qa[7]=0;qa[11]=0;qa[15]=1;return qa}function ha(na,va,qa){O(na,va,qa);k.transpose(qa,qa);return qa}function pa(na,va){if(!na)return ia.UNKNOWN;if(va.spatialReference===na)return va.spatialReferenceId;
va.spatialReference=na;"metersPerUnit"in va&&(va.metersPerUnit=r.getMetersPerUnitForSR(na,1));return na.wkt===z.SphericalECEFSpatialReference.wkt?va.spatialReferenceId=ia.SPHERICAL_ECEF:w.isWGS84(na)?va.spatialReferenceId=ia.WGS84:w.isWebMercator(na)?va.spatialReferenceId=ia.WEB_MERCATOR:w.isPlateCarree(na)?va.spatialReferenceId=ia.PLATE_CARREE:na.wkt===z.WGS84ECEFSpatialReference.wkt?va.spatialReferenceId=ia.WGS84_ECEF:na.wkid===D.SupportedGCSWkids.CGCS2000?va.spatialReferenceId=ia.CGCS2000:na.wkt===
z.SphericalPCPFMars.wkt?va.spatialReferenceId=ia.SPHERICAL_MARS_PCPF:na.wkt===z.SphericalPCPFMoon.wkt?va.spatialReferenceId=ia.SPHERICAL_MOON_PCPF:w.isMars(na)?va.spatialReferenceId=ia.GCSMARS2000:w.isMoon(na)?va.spatialReferenceId=ia.GCSMOON2000:va.spatialReferenceId=ia.UNKNOWN}function ya(na,va,qa,za){na!==qa&&(qa[za++]=na[va++],qa[za++]=na[va++],qa[za]=na[va])}function Y(na,va,qa,za){qa[za++]=ua*(na[va++]/A.earth.radius);qa[za++]=ua*(Math.PI/2-2*Math.atan(Math.exp(-na[va++]/A.earth.radius)));qa[za]=
na[va]}function ea(na,va,qa,za){Y(na,va,qa,za);aa(qa,za,qa,za)}function ma(na,va,qa,za){Y(na,va,qa,za);Ta(qa,za,qa,za)}function ja(na,va,qa,za,Ia){var xa=.4999999*Math.PI;xa=d.clamp(hb*na[va+1],-xa,xa);xa=Math.sin(xa);qa[za++]=hb*na[va]*Ia.radius;qa[za++]=Ia.halfSemiMajorAxis*Math.log((1+xa)/(1-xa));qa[za]=na[va+2]}function S(na,va,qa,za){ja(na,va,qa,za,A.earth)}function fa(na,va,qa,za){qa[za]=na[va]*Pa;qa[za+1]=na[va+1]*Pa;qa[za+2]=na[va+2]}function R(na,va,qa,za){qa[za]=na[va]*Ra;qa[za+1]=na[va+
1]*Ra;qa[za+2]=na[va+2]}function Q(na,va,qa,za){Y(na,va,qa,za);fa(qa,za,qa,za)}function Z(na,va,qa,za,Ia){Ia+=na[va+2];const xa=hb*na[va+1];na=hb*na[va];va=Math.cos(xa);qa[za++]=Math.cos(na)*va*Ia;qa[za++]=Math.sin(na)*va*Ia;qa[za]=Math.sin(xa)*Ia}function X(na,va,qa,za){Z(na,va,qa,za,A.moon.radius)}function M(na,va,qa,za){Z(na,va,qa,za,A.mars.radius)}function aa(na,va,qa,za){Z(na,va,qa,za,A.earth.radius)}function oa(na,va,qa,za,Ia){var xa=na[va];const Ga=na[va+1];va=na[va+2];na=Math.sqrt(xa*xa+Ga*
Ga+va*va);va=d.asinClamped(va/(0===na?1:na));xa=Math.atan2(Ga,xa);qa[za++]=ua*xa;qa[za++]=ua*va;qa[za]=na-Ia}function Da(na,va,qa,za){oa(na,va,qa,za,A.moon.radius)}function Ea(na,va,qa,za){oa(na,va,qa,za,A.mars.radius)}function Ja(na,va,qa,za){oa(na,va,qa,za,A.earth.radius)}function Ka(na,va,qa,za){Ja(na,va,qa,za);S(qa,za,qa,za)}function Sa(na,va,qa,za){Ja(na,va,qa,za);Ta(qa,za,qa,za)}function Ta(na,va,qa,za){var Ia=A.earth;const xa=hb*na[va];var Ga=hb*na[va+1];na=na[va+2];va=Math.sin(Ga);Ga=Math.cos(Ga);
const Ma=Ia.radius/Math.sqrt(1-Ia.eccentricitySquared*va*va);qa[za++]=(Ma+na)*Ga*Math.cos(xa);qa[za++]=(Ma+na)*Ga*Math.sin(xa);qa[za++]=(Ma*(1-Ia.eccentricitySquared)+na)*va}function Va(na,va,qa,za){var Ia=B.earthEllipsoidConstants,xa=na[va],Ga=na[va+1];na=na[va+2];let Ma;va=Math.abs(na);var bb=xa*xa+Ga*Ga;var ab=Math.sqrt(bb);var gb=bb+na*na;var jb=Math.sqrt(gb);xa=Math.atan2(Ga,xa);var kb=na*na/gb;gb=bb/gb;Ga=Ia.a2/jb;bb=Ia.a3-Ia.a4/jb;.3<gb?(kb=va/jb*(1+gb*(Ia.a1+Ga+kb*bb)/jb),jb=Math.asin(kb),
Ga=kb*kb,gb=Math.sqrt(1-Ga)):(gb=ab/jb*(1-kb*(Ia.a5-Ga-gb*bb)/jb),jb=Math.acos(gb),Ga=1-gb*gb,kb=Math.sqrt(Ga));Ma=1-A.earth.eccentricitySquared*Ga;Ga=A.earth.radius/Math.sqrt(Ma);Ia=Ia.a6*Ga;Ga=ab-Ga*gb;bb=va-Ia*kb;va=gb*Ga+kb*bb;ab=gb*bb-kb*Ga;Ia=ab/(Ia/Ma+va);jb+=Ia;0>na&&(jb=-jb);qa[za++]=ua*xa;qa[za++]=ua*jb;qa[za]=va+ab*Ia/2}function Xa(na,va,qa,za){Va(na,va,qa,za);aa(qa,za,qa,za)}function Za(na,va,qa,za){Va(na,va,qa,za);S(qa,za,qa,za)}function $a(na,va,qa=Wa()){return n.isNone(na)||n.isNone(va)?
null:cb(na,va,qa).projector}function cb(na,va,qa){if(n.isNone(na)||n.isNone(va)||qa.source.spatialReference===na&&qa.dest.spatialReference===va)return qa;const za=pa(na,qa.source),Ia=pa(va,qa.dest);za===ia.UNKNOWN&&Ia===ia.UNKNOWN?w.equals(na,va)?qa.projector=ya:qa.projector=null:qa.projector=Ua[za][Ia];return qa}function Wa(){return{source:{spatialReference:null,spatialReferenceId:ia.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:ia.UNKNOWN,metersPerUnit:1},projector:ya}}
let eb=null,Oa=null,T=null,W={};const wa=new g.SimpleObservable;let Aa=function(na){function va(){return na.call(this,"projection:not-loaded","projection engine not fully loaded yet, please call load()")||this}c._inheritsLoose(va,na);return va}(e);var ia;(function(na){na[na.UNKNOWN=0]="UNKNOWN";na[na.SPHERICAL_ECEF=1]="SPHERICAL_ECEF";na[na.WGS84=2]="WGS84";na[na.WEB_MERCATOR=3]="WEB_MERCATOR";na[na.WGS84_ECEF=4]="WGS84_ECEF";na[na.CGCS2000=5]="CGCS2000";na[na.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT";
na[na.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF";na[na.GCSMARS2000=8]="GCSMARS2000";na[na.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF";na[na.GCSMOON2000=10]="GCSMOON2000";na[na.LON_LAT=11]="LON_LAT";na[na.PLATE_CARREE=12]="PLATE_CARREE"})(ia||(ia={}));const Pa=A.earth.radius*Math.PI/180,Ra=180/(A.earth.radius*Math.PI),Ua={[ia.WGS84]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:ya,[ia.WGS84_COMPARABLE_LON_LAT]:ya,[ia.SPHERICAL_ECEF]:aa,[ia.SPHERICAL_MARS_PCPF]:null,
[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:S,[ia.PLATE_CARREE]:fa,[ia.WGS84]:ya,[ia.WGS84_ECEF]:Ta},[ia.CGCS2000]:{[ia.CGCS2000]:ya,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:ya,[ia.WGS84_COMPARABLE_LON_LAT]:ya,[ia.SPHERICAL_ECEF]:aa,[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:fa,[ia.WGS84]:null,[ia.WGS84_ECEF]:Ta},[ia.GCSMARS2000]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:ya,[ia.GCSMOON2000]:null,
[ia.LON_LAT]:ya,[ia.WGS84_COMPARABLE_LON_LAT]:null,[ia.SPHERICAL_ECEF]:null,[ia.SPHERICAL_MARS_PCPF]:M,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:null,[ia.WGS84]:null,[ia.WGS84_ECEF]:null},[ia.GCSMOON2000]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:ya,[ia.LON_LAT]:ya,[ia.WGS84_COMPARABLE_LON_LAT]:null,[ia.SPHERICAL_ECEF]:null,[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:X,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:null,
[ia.WGS84]:null,[ia.WGS84_ECEF]:null},[ia.WEB_MERCATOR]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:Y,[ia.WGS84_COMPARABLE_LON_LAT]:Y,[ia.SPHERICAL_ECEF]:ea,[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:ya,[ia.PLATE_CARREE]:Q,[ia.WGS84]:Y,[ia.WGS84_ECEF]:ma},[ia.WGS84_ECEF]:{[ia.CGCS2000]:Va,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:Va,[ia.WGS84_COMPARABLE_LON_LAT]:Va,[ia.SPHERICAL_ECEF]:Xa,[ia.SPHERICAL_MARS_PCPF]:null,
[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:Za,[ia.PLATE_CARREE]:function(na,va,qa,za){Va(na,va,qa,za);fa(qa,za,qa,za)},[ia.WGS84]:Va,[ia.WGS84_ECEF]:ya},[ia.SPHERICAL_ECEF]:{[ia.CGCS2000]:Ja,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:Ja,[ia.WGS84_COMPARABLE_LON_LAT]:Ja,[ia.SPHERICAL_ECEF]:ya,[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:Ka,[ia.PLATE_CARREE]:function(na,va,qa,za){Ja(na,va,qa,za);fa(qa,za,qa,za)},
[ia.WGS84]:Ja,[ia.WGS84_ECEF]:Sa},[ia.SPHERICAL_MARS_PCPF]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:Ea,[ia.GCSMOON2000]:null,[ia.LON_LAT]:Ea,[ia.WGS84_COMPARABLE_LON_LAT]:null,[ia.SPHERICAL_ECEF]:null,[ia.SPHERICAL_MARS_PCPF]:ya,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:null,[ia.WGS84]:null,[ia.WGS84_ECEF]:null},[ia.SPHERICAL_MOON_PCPF]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:Da,[ia.LON_LAT]:Da,[ia.WGS84_COMPARABLE_LON_LAT]:null,[ia.SPHERICAL_ECEF]:null,
[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:ya,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:null,[ia.WGS84]:null,[ia.WGS84_ECEF]:null},[ia.UNKNOWN]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:null,[ia.WGS84_COMPARABLE_LON_LAT]:null,[ia.SPHERICAL_ECEF]:null,[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:ya,[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:null,[ia.WGS84]:null,[ia.WGS84_ECEF]:null},[ia.LON_LAT]:{[ia.CGCS2000]:ya,
[ia.GCSMARS2000]:ya,[ia.GCSMOON2000]:ya,[ia.LON_LAT]:ya,[ia.WGS84_COMPARABLE_LON_LAT]:ya,[ia.SPHERICAL_ECEF]:aa,[ia.SPHERICAL_MARS_PCPF]:M,[ia.SPHERICAL_MOON_PCPF]:X,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:S,[ia.PLATE_CARREE]:fa,[ia.WGS84]:ya,[ia.WGS84_ECEF]:Ta},[ia.WGS84_COMPARABLE_LON_LAT]:{[ia.CGCS2000]:null,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:ya,[ia.WGS84_COMPARABLE_LON_LAT]:ya,[ia.SPHERICAL_ECEF]:aa,[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,
[ia.WEB_MERCATOR]:null,[ia.PLATE_CARREE]:fa,[ia.WGS84]:ya,[ia.WGS84_ECEF]:Ta},[ia.PLATE_CARREE]:{[ia.CGCS2000]:R,[ia.GCSMARS2000]:null,[ia.GCSMOON2000]:null,[ia.LON_LAT]:R,[ia.WGS84_COMPARABLE_LON_LAT]:R,[ia.SPHERICAL_ECEF]:function(na,va,qa,za){R(na,va,qa,za);aa(qa,za,qa,za)},[ia.SPHERICAL_MARS_PCPF]:null,[ia.SPHERICAL_MOON_PCPF]:null,[ia.UNKNOWN]:null,[ia.WEB_MERCATOR]:function(na,va,qa,za){R(na,va,qa,za);S(qa,za,qa,za)},[ia.PLATE_CARREE]:ya,[ia.WGS84]:R,[ia.WGS84_ECEF]:function(na,va,qa,za){R(na,
va,qa,za);Ta(qa,za,qa,za)}}},Ya={spatialReference:null,spatialReferenceId:ia.UNKNOWN},db={spatialReference:null,spatialReferenceId:ia.UNKNOWN},fb=Wa(),ib=Wa(),hb=d.deg2rad(1),ua=d.rad2deg(1),Fa=l.create(),La=l.create(),Na=l.create(),Ca=l.create(),Qa=l.create();b.canProjectToWGS84ComparableLonLat=function(na){if(n.isNone(na))return!1;na=pa(na,Ya);return!!Ua[na][ia.WGS84_COMPARABLE_LON_LAT]};b.canProjectWithoutEngine=U;b.computeENUToSphericalPCPFLocalRotation=O;b.computeSphericalPCPFToENULocalRotation=
ha;b.computeTranslationToOriginAndRotation=function(na,va,qa,za){if(n.isNone(na)||n.isNone(za))return!1;var Ia=pa(na,Ya),xa=pa(za,db);if(Ia===xa&&xa!==ia.SPHERICAL_ECEF&&xa!==ia.SPHERICAL_MARS_PCPF&&xa!==ia.SPHERICAL_MOON_PCPF&&(Ia!==ia.UNKNOWN||w.equals(na,za)))return k.fromTranslation(qa,va),!0;if(xa===ia.SPHERICAL_ECEF||xa===ia.SPHERICAL_MARS_PCPF||xa===ia.SPHERICAL_MOON_PCPF){Ia=Ua[Ia][ia.LON_LAT];xa=Ua[ia.LON_LAT][xa];if(n.isNone(Ia)||n.isNone(xa))return!1;Ia(va,0,La,0);xa(La,0,Na,0);O(hb*La[0],
hb*La[1],qa);qa[12]=Na[0];qa[13]=Na[1];qa[14]=Na[2];return!0}if((xa===ia.WEB_MERCATOR||xa===ia.PLATE_CARREE)&&(Ia===ia.WGS84||Ia===ia.CGCS2000&&xa===ia.PLATE_CARREE||Ia===ia.SPHERICAL_ECEF||Ia===ia.WEB_MERCATOR)){na=Ua[Ia][ia.LON_LAT];xa=Ua[ia.LON_LAT][xa];if(n.isNone(na)||n.isNone(xa))return!1;na(va,0,La,0);xa(La,0,Na,0);Ia===ia.SPHERICAL_ECEF?ha(hb*La[0],hb*La[1],qa):k.identity(qa);qa[12]=Na[0];qa[13]=Na[1];qa[14]=Na[2];return!0}return!1};b.getProjectorName=function(na,va){switch($a(na,va,fb)){case ya:return"copy3";
case aa:return"wgs84ToSphericalECEF";case S:return"wgs84ToWebMercator";case fa:return"wgs84ToPlateCarree";case Ta:return"wgs84ToWGS84ECEF";case Y:return"webMercatorToWGS84";case ea:return"webMercatorToSphericalECEF";case ma:return"webMercatorToWGS84ECEF";case Q:return"webMercatorToPlateCarree";case Va:return"wgs84ECEFToWGS84";case Xa:return"wgs84ECEFToSphericalECEF";case Za:return"wgs84ECEFToWebMercator";case Ja:return"sphericalECEFToWGS84";case Ka:return"sphericalECEFToWebMercator";case Ea:return"sphericalMarsPCPFToMars2000";
case Da:return"sphericalMoonPCPFToMoon2000";case Sa:return"sphericalECEFToWGS84ECEF";case M:return"mars2000ToSphericalPCPF";case X:return"moon2000ToSphericalPCPF";default:return null}};b.getTransformation=K;b.getTransformations=function(na,va,qa=null){if(n.isNone(eb)||n.isNone(Oa))throw new Aa;na=eb._getTransformationBySuitability(Oa,na,va,qa,qa?.spatialReference);if(null!==na){va=[];for(const za of na)va.push(E.fromGE(za));return va}return[]};b.initializeProjection=function(na,va,qa,za){return ba.apply(this,
arguments)};b.isLoaded=F;b.load=G;b.localLinearScaleFactors=function(na,va,qa,za){if(n.isNone(va)||n.isNone(za))return!1;const Ia=pa(va,Ya);var xa=pa(za,db);if(Ia===xa&&Ia!==ia.UNKNOWN||w.equals(va,za))return qa[0]=1,qa[1]=1,qa[2]=1,!0;if(Ia===ia.SPHERICAL_ECEF){va=p.length(na);na=va/Math.sqrt(na[0]*na[0]+na[1]*na[1]);va/=A.earth.radius;if(xa===ia.WEB_MERCATOR)return qa[0]=na*va,qa[1]=na*va,qa[2]=1,!0;if(xa===ia.WGS84||xa===ia.CGCS2000)return xa=Ra,qa[0]=xa*na*va,qa[1]=xa*va,qa[2]=1,!0}else if(Ia===
ia.PLATE_CARREE){if(xa===ia.WGS84||xa===ia.CGCS2000)return qa[0]=Ra,qa[1]=Ra,qa[2]=1,!0;if(xa===ia.WEB_MERCATOR)return xa=na[1]/A.earth.radius,qa[0]=1,qa[1]=1/Math.cos(xa),qa[2]=1,!0}return!1};b.lonLatToSphericalPCPF=function(na,va,qa,za){const Ia=Math.cos(qa);na[0]=Math.cos(va)*Ia*za;na[1]=Math.sin(va)*Ia*za;na[2]=Math.sin(qa)*za};b.lonLatToWebMercatorComparable=ja;b.project=H;b.projectBoundingRect=function(na,va,qa,za){if(null==na)return!1;if(w.equals(va,za))return y.copy(qa,na),!0;Fa[0]=na[0];
Fa[1]=na[1];Fa[2]=0;if(!la(Fa,va,0,Fa,za,0,1))return!1;qa[0]=Fa[0];qa[1]=Fa[1];Fa[0]=na[2];Fa[1]=na[3];Fa[2]=0;if(!la(Fa,va,0,Fa,za,0,1))return!1;qa[2]=Fa[0];qa[3]=Fa[1];return!0};b.projectBoundingSphere=function(na,va,qa,za){if(n.isNone(va)||n.isNone(za))return!1;va=cb(va,za,ib);if(va.projector===ya)return qa[0]=na[0],qa[1]=na[1],qa[2]=na[2],qa[3]=na[3],!0;if(n.isNone(va.projector))return!1;const {source:Ia,dest:xa}=va;if(xa.spatialReferenceId===ia.WEB_MERCATOR){va=Ua[Ia.spatialReferenceId][ia.WGS84];
if(n.isNone(va))return!1;va(na,0,La,0);S(La,0,qa,0);qa[3]=L(La[1],na[2],na[3],A.earth.radius);return!0}if(Ia.spatialReferenceId!==ia.WGS84&&Ia.spatialReferenceId!==ia.CGCS2000||xa.spatialReferenceId!==ia.PLATE_CARREE)va.projector(na,0,qa,0),qa[3]=na[3]*(Ia.metersPerUnit??1)/(xa.metersPerUnit??1);else{za=Ua[ia.SPHERICAL_ECEF][ia.PLATE_CARREE];let Ga=na[3];n.isSome(Ua[Ia.spatialReferenceId][ia.SPHERICAL_ECEF])&&n.isSome(za)&&(Ga=L(na[1],na[2],na[3],A.earth.radius));va.projector(na,0,qa,0);qa[3]=Ga}return!0};
b.projectBuffer=la;b.projectDirection=function(na,va,qa,za,Ia){p.copy(Ca,na);p.add(Qa,na,va);Ha(Ca,qa,Ca,Ia);Ha(Qa,qa,Qa,Ia);p.subtract(za,Qa,Ca);p.normalize(za,za)};b.projectExtent=function(na,va,qa=va.spatialReference,za=0){return n.isSome(na.spatialReference)&&n.isSome(qa)&&n.isSome(ta(na,na.spatialReference,va,qa,za))};b.projectMany=I;b.projectMultipoint=function(na,va,qa=va.spatialReference,za=0){return n.isSome(na.spatialReference)&&n.isSome(qa)&&n.isSome(V(na,na.spatialReference,va,qa,za))};
b.projectOrLoad=function(na,va){na=J([na],va);return n.isSome(na.pending)?{pending:na.pending,geometry:null}:n.isSome(na.geometries)?{pending:null,geometry:na.geometries[0]}:{pending:null,geometry:null}};b.projectOrLoadMany=J;b.projectPoint=function(na,va,qa=va.spatialReference,za=0){return n.isSome(qa)&&n.isSome(na.spatialReference)&&n.isSome(P(na,na.spatialReference,va,qa,za))};b.projectPointToVector=function(na,va,qa,za=0){Ca[0]=na.x;Ca[1]=na.y;const Ia=na.z;Ca[2]=void 0!==Ia?Ia:za;return la(Ca,
na.spatialReference,0,va,qa,0,1)};b.projectPointToWGS84ComparableLonLat=function(na,va){Ca[0]=na.x;Ca[1]=na.y;const qa=na.z;Ca[2]=void 0!==qa?qa:0;return da(Ca,na.spatialReference,va)};b.projectPolygon=function(na,va,qa=va.spatialReference,za=0){return n.isSome(na.spatialReference)&&n.isSome(qa)&&n.isSome(ra(na,na.spatialReference,va,qa,za))};b.projectPolygonToWGS84ComparableLonLat=function({hasZ:na,spatialReference:va,rings:qa},za,Ia=0){va=pa(va,Ya);va=Ua[va][ia.WGS84_COMPARABLE_LON_LAT];if(n.isNone(va))return!1;
na=na?xa=>xa:xa=>p.set(Ca,xa[0],xa[1],Ia);for(const xa of qa){qa=[];for(const Ga of xa){const Ma=[0,0,Ia];va(na(Ga),0,Ma,0);qa.push(Ma)}za.push(qa)}return!0};b.projectPolyline=function(na,va,qa=va.spatialReference,za=0){return n.isSome(na.spatialReference)&&n.isSome(qa)&&n.isSome(ca(na,na.spatialReference,va,qa,za))};b.projectPolylineToWGS84ComparableLonLat=function({hasZ:na,spatialReference:va,paths:qa},za,Ia=0){va=pa(va,Ya);va=Ua[va][ia.WGS84_COMPARABLE_LON_LAT];if(n.isNone(va))return!1;na=na?xa=>
xa:xa=>p.set(Ca,xa[0],xa[1],Ia);for(const xa of qa){qa=[];for(const Ga of xa){const Ma=[0,0,Ia];va(na(Ga),0,Ma,0);qa.push(Ma)}za.push(qa)}return!0};b.projectVectorToDehydratedPoint=function(na,va,qa){return la(na,va,0,Ca,qa.spatialReference,0,1)?(qa.x=Ca[0],qa.y=Ca[1],qa.z=Ca[2],qa):null};b.projectVectorToPoint=function(na,va,qa){if(n.isNone(va)||n.isNone(qa))return null;const za=new q({spatialReference:qa});return la(na,va,0,Ca,qa,0,1)?(za.x=Ca[0],za.y=Ca[1],za.z=Ca[2],za):null};b.projectVectorToVector=
Ha;b.projectVectorToWGS84ComparableLonLat=function(na,va,qa){return da(na,va,qa)};b.projectWithoutEngine=ka;b.projectXYZToVector=Ba;b.sphericalPCPFtoLonLatElevation=oa;b.test={get loadPromise(){return T}};b.tryProjectWithZConversion=N;b.unload=function(){T=Oa=eb=null;W={}};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/mat4":function(){define(["exports","./vec3f64","./common"],function(a,b,c){function e(L,O){L[0]=O[0];L[1]=O[1];L[2]=O[2];L[3]=
O[3];L[4]=O[4];L[5]=O[5];L[6]=O[6];L[7]=O[7];L[8]=O[8];L[9]=O[9];L[10]=O[10];L[11]=O[11];L[12]=O[12];L[13]=O[13];L[14]=O[14];L[15]=O[15];return L}function d(L,O,ha,pa,ya,Y,ea,ma,ja,S,fa,R,Q,Z,X,M,aa){L[0]=O;L[1]=ha;L[2]=pa;L[3]=ya;L[4]=Y;L[5]=ea;L[6]=ma;L[7]=ja;L[8]=S;L[9]=fa;L[10]=R;L[11]=Q;L[12]=Z;L[13]=X;L[14]=M;L[15]=aa;return L}function n(L){L[0]=1;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=1;L[6]=0;L[7]=0;L[8]=0;L[9]=0;L[10]=1;L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}function u(L,O){if(L===O){const ha=
O[1],pa=O[2],ya=O[3],Y=O[6],ea=O[7],ma=O[11];L[1]=O[4];L[2]=O[8];L[3]=O[12];L[4]=ha;L[6]=O[9];L[7]=O[13];L[8]=pa;L[9]=Y;L[11]=O[14];L[12]=ya;L[13]=ea;L[14]=ma}else L[0]=O[0],L[1]=O[4],L[2]=O[8],L[3]=O[12],L[4]=O[1],L[5]=O[5],L[6]=O[9],L[7]=O[13],L[8]=O[2],L[9]=O[6],L[10]=O[10],L[11]=O[14],L[12]=O[3],L[13]=O[7],L[14]=O[11],L[15]=O[15];return L}function r(L,O){const ha=O[0],pa=O[1],ya=O[2],Y=O[3],ea=O[4],ma=O[5],ja=O[6],S=O[7],fa=O[8],R=O[9],Q=O[10],Z=O[11],X=O[12],M=O[13],aa=O[14];O=O[15];const oa=
ha*ma-pa*ea,Da=ha*ja-ya*ea,Ea=ha*S-Y*ea,Ja=pa*ja-ya*ma,Ka=pa*S-Y*ma,Sa=ya*S-Y*ja,Ta=fa*M-R*X,Va=fa*aa-Q*X,Xa=fa*O-Z*X,Za=R*aa-Q*M,$a=R*O-Z*M,cb=Q*O-Z*aa;let Wa=oa*cb-Da*$a+Ea*Za+Ja*Xa-Ka*Va+Sa*Ta;if(!Wa)return null;Wa=1/Wa;L[0]=(ma*cb-ja*$a+S*Za)*Wa;L[1]=(ya*$a-pa*cb-Y*Za)*Wa;L[2]=(M*Sa-aa*Ka+O*Ja)*Wa;L[3]=(Q*Ka-R*Sa-Z*Ja)*Wa;L[4]=(ja*Xa-ea*cb-S*Va)*Wa;L[5]=(ha*cb-ya*Xa+Y*Va)*Wa;L[6]=(aa*Ea-X*Sa-O*Da)*Wa;L[7]=(fa*Sa-Q*Ea+Z*Da)*Wa;L[8]=(ea*$a-ma*Xa+S*Ta)*Wa;L[9]=(pa*Xa-ha*$a-Y*Ta)*Wa;L[10]=(X*Ka-M*
Ea+O*oa)*Wa;L[11]=(R*Ea-fa*Ka-Z*oa)*Wa;L[12]=(ma*Va-ea*Za-ja*Ta)*Wa;L[13]=(ha*Za-pa*Va+ya*Ta)*Wa;L[14]=(M*Da-X*Ja-aa*oa)*Wa;L[15]=(fa*Ja-R*Da+Q*oa)*Wa;return L}function h(L,O){const ha=O[0],pa=O[1],ya=O[2],Y=O[3],ea=O[4],ma=O[5],ja=O[6],S=O[7],fa=O[8],R=O[9],Q=O[10],Z=O[11],X=O[12],M=O[13],aa=O[14];O=O[15];L[0]=ma*(Q*O-Z*aa)-R*(ja*O-S*aa)+M*(ja*Z-S*Q);L[1]=-(pa*(Q*O-Z*aa)-R*(ya*O-Y*aa)+M*(ya*Z-Y*Q));L[2]=pa*(ja*O-S*aa)-ma*(ya*O-Y*aa)+M*(ya*S-Y*ja);L[3]=-(pa*(ja*Z-S*Q)-ma*(ya*Z-Y*Q)+R*(ya*S-Y*ja));
L[4]=-(ea*(Q*O-Z*aa)-fa*(ja*O-S*aa)+X*(ja*Z-S*Q));L[5]=ha*(Q*O-Z*aa)-fa*(ya*O-Y*aa)+X*(ya*Z-Y*Q);L[6]=-(ha*(ja*O-S*aa)-ea*(ya*O-Y*aa)+X*(ya*S-Y*ja));L[7]=ha*(ja*Z-S*Q)-ea*(ya*Z-Y*Q)+fa*(ya*S-Y*ja);L[8]=ea*(R*O-Z*M)-fa*(ma*O-S*M)+X*(ma*Z-S*R);L[9]=-(ha*(R*O-Z*M)-fa*(pa*O-Y*M)+X*(pa*Z-Y*R));L[10]=ha*(ma*O-S*M)-ea*(pa*O-Y*M)+X*(pa*S-Y*ma);L[11]=-(ha*(ma*Z-S*R)-ea*(pa*Z-Y*R)+fa*(pa*S-Y*ma));L[12]=-(ea*(R*aa-Q*M)-fa*(ma*aa-ja*M)+X*(ma*Q-ja*R));L[13]=ha*(R*aa-Q*M)-fa*(pa*aa-ya*M)+X*(pa*Q-ya*R);L[14]=-(ha*
(ma*aa-ja*M)-ea*(pa*aa-ya*M)+X*(pa*ja-ya*ma));L[15]=ha*(ma*Q-ja*R)-ea*(pa*Q-ya*R)+fa*(pa*ja-ya*ma);return L}function g(L){const O=L[0],ha=L[1],pa=L[2],ya=L[3],Y=L[4],ea=L[5],ma=L[6],ja=L[7],S=L[8],fa=L[9],R=L[10],Q=L[11],Z=L[12],X=L[13],M=L[14];L=L[15];return(O*ea-ha*Y)*(R*L-Q*M)-(O*ma-pa*Y)*(fa*L-Q*X)+(O*ja-ya*Y)*(fa*M-R*X)+(ha*ma-pa*ea)*(S*L-Q*Z)-(ha*ja-ya*ea)*(S*M-R*Z)+(pa*ja-ya*ma)*(S*X-fa*Z)}function k(L,O,ha){const pa=O[0],ya=O[1],Y=O[2],ea=O[3],ma=O[4],ja=O[5],S=O[6],fa=O[7],R=O[8],Q=O[9],
Z=O[10],X=O[11],M=O[12],aa=O[13],oa=O[14];O=O[15];let Da=ha[0],Ea=ha[1],Ja=ha[2],Ka=ha[3];L[0]=Da*pa+Ea*ma+Ja*R+Ka*M;L[1]=Da*ya+Ea*ja+Ja*Q+Ka*aa;L[2]=Da*Y+Ea*S+Ja*Z+Ka*oa;L[3]=Da*ea+Ea*fa+Ja*X+Ka*O;Da=ha[4];Ea=ha[5];Ja=ha[6];Ka=ha[7];L[4]=Da*pa+Ea*ma+Ja*R+Ka*M;L[5]=Da*ya+Ea*ja+Ja*Q+Ka*aa;L[6]=Da*Y+Ea*S+Ja*Z+Ka*oa;L[7]=Da*ea+Ea*fa+Ja*X+Ka*O;Da=ha[8];Ea=ha[9];Ja=ha[10];Ka=ha[11];L[8]=Da*pa+Ea*ma+Ja*R+Ka*M;L[9]=Da*ya+Ea*ja+Ja*Q+Ka*aa;L[10]=Da*Y+Ea*S+Ja*Z+Ka*oa;L[11]=Da*ea+Ea*fa+Ja*X+Ka*O;Da=ha[12];Ea=
ha[13];Ja=ha[14];Ka=ha[15];L[12]=Da*pa+Ea*ma+Ja*R+Ka*M;L[13]=Da*ya+Ea*ja+Ja*Q+Ka*aa;L[14]=Da*Y+Ea*S+Ja*Z+Ka*oa;L[15]=Da*ea+Ea*fa+Ja*X+Ka*O;return L}function p(L,O,ha){const pa=ha[0],ya=ha[1];ha=ha[2];if(O===L)L[12]=O[0]*pa+O[4]*ya+O[8]*ha+O[12],L[13]=O[1]*pa+O[5]*ya+O[9]*ha+O[13],L[14]=O[2]*pa+O[6]*ya+O[10]*ha+O[14],L[15]=O[3]*pa+O[7]*ya+O[11]*ha+O[15];else{const Y=O[0],ea=O[1],ma=O[2],ja=O[3],S=O[4],fa=O[5],R=O[6],Q=O[7],Z=O[8],X=O[9],M=O[10],aa=O[11];L[0]=Y;L[1]=ea;L[2]=ma;L[3]=ja;L[4]=S;L[5]=fa;
L[6]=R;L[7]=Q;L[8]=Z;L[9]=X;L[10]=M;L[11]=aa;L[12]=Y*pa+S*ya+Z*ha+O[12];L[13]=ea*pa+fa*ya+X*ha+O[13];L[14]=ma*pa+R*ya+M*ha+O[14];L[15]=ja*pa+Q*ya+aa*ha+O[15]}return L}function l(L,O,ha){const pa=ha[0],ya=ha[1];ha=ha[2];L[0]=O[0]*pa;L[1]=O[1]*pa;L[2]=O[2]*pa;L[3]=O[3]*pa;L[4]=O[4]*ya;L[5]=O[5]*ya;L[6]=O[6]*ya;L[7]=O[7]*ya;L[8]=O[8]*ha;L[9]=O[9]*ha;L[10]=O[10]*ha;L[11]=O[11]*ha;L[12]=O[12];L[13]=O[13];L[14]=O[14];L[15]=O[15];return L}function m(L,O,ha,pa){let ya=pa[0],Y=pa[1];pa=pa[2];let ea=Math.sqrt(ya*
ya+Y*Y+pa*pa);var ma=void 0,ja=void 0;let S=void 0,fa=void 0,R=void 0,Q=void 0,Z=void 0,X=void 0,M=void 0,aa=void 0,oa=void 0,Da=void 0,Ea=void 0,Ja=void 0,Ka=void 0,Sa=void 0,Ta=void 0,Va=void 0,Xa=void 0,Za=void 0,$a=void 0,cb=void 0;ja=ma=void 0;if(ea<c.getEpsilon())return null;ea=1/ea;ya*=ea;Y*=ea;pa*=ea;ma=Math.sin(ha);ja=Math.cos(ha);S=1-ja;fa=O[0];R=O[1];Q=O[2];Z=O[3];X=O[4];M=O[5];aa=O[6];oa=O[7];Da=O[8];Ea=O[9];Ja=O[10];Ka=O[11];Sa=ya*ya*S+ja;Ta=Y*ya*S+pa*ma;Va=pa*ya*S-Y*ma;Xa=ya*Y*S-pa*
ma;Za=Y*Y*S+ja;$a=pa*Y*S+ya*ma;cb=ya*pa*S+Y*ma;ma=Y*pa*S-ya*ma;ja=pa*pa*S+ja;L[0]=fa*Sa+X*Ta+Da*Va;L[1]=R*Sa+M*Ta+Ea*Va;L[2]=Q*Sa+aa*Ta+Ja*Va;L[3]=Z*Sa+oa*Ta+Ka*Va;L[4]=fa*Xa+X*Za+Da*$a;L[5]=R*Xa+M*Za+Ea*$a;L[6]=Q*Xa+aa*Za+Ja*$a;L[7]=Z*Xa+oa*Za+Ka*$a;L[8]=fa*cb+X*ma+Da*ja;L[9]=R*cb+M*ma+Ea*ja;L[10]=Q*cb+aa*ma+Ja*ja;L[11]=Z*cb+oa*ma+Ka*ja;O!==L&&(L[12]=O[12],L[13]=O[13],L[14]=O[14],L[15]=O[15]);return L}function t(L,O,ha){const pa=Math.sin(ha);ha=Math.cos(ha);const ya=O[4],Y=O[5],ea=O[6],ma=O[7],ja=
O[8],S=O[9],fa=O[10],R=O[11];O!==L&&(L[0]=O[0],L[1]=O[1],L[2]=O[2],L[3]=O[3],L[12]=O[12],L[13]=O[13],L[14]=O[14],L[15]=O[15]);L[4]=ya*ha+ja*pa;L[5]=Y*ha+S*pa;L[6]=ea*ha+fa*pa;L[7]=ma*ha+R*pa;L[8]=ja*ha-ya*pa;L[9]=S*ha-Y*pa;L[10]=fa*ha-ea*pa;L[11]=R*ha-ma*pa;return L}function f(L,O,ha){const pa=Math.sin(ha);ha=Math.cos(ha);const ya=O[0],Y=O[1],ea=O[2],ma=O[3],ja=O[8],S=O[9],fa=O[10],R=O[11];O!==L&&(L[4]=O[4],L[5]=O[5],L[6]=O[6],L[7]=O[7],L[12]=O[12],L[13]=O[13],L[14]=O[14],L[15]=O[15]);L[0]=ya*ha-
ja*pa;L[1]=Y*ha-S*pa;L[2]=ea*ha-fa*pa;L[3]=ma*ha-R*pa;L[8]=ya*pa+ja*ha;L[9]=Y*pa+S*ha;L[10]=ea*pa+fa*ha;L[11]=ma*pa+R*ha;return L}function q(L,O,ha){const pa=Math.sin(ha);ha=Math.cos(ha);const ya=O[0],Y=O[1],ea=O[2],ma=O[3],ja=O[4],S=O[5],fa=O[6],R=O[7];O!==L&&(L[8]=O[8],L[9]=O[9],L[10]=O[10],L[11]=O[11],L[12]=O[12],L[13]=O[13],L[14]=O[14],L[15]=O[15]);L[0]=ya*ha+ja*pa;L[1]=Y*ha+S*pa;L[2]=ea*ha+fa*pa;L[3]=ma*ha+R*pa;L[4]=ja*ha-ya*pa;L[5]=S*ha-Y*pa;L[6]=fa*ha-ea*pa;L[7]=R*ha-ma*pa;return L}function v(L,
O){L[0]=1;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=1;L[6]=0;L[7]=0;L[8]=0;L[9]=0;L[10]=1;L[11]=0;L[12]=O[0];L[13]=O[1];L[14]=O[2];L[15]=1;return L}function x(L,O){L[0]=O[0];L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=O[1];L[6]=0;L[7]=0;L[8]=0;L[9]=0;L[10]=O[2];L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}function z(L,O,ha){if(0===O)return n(L);let pa=ha[0],ya=ha[1];ha=ha[2];let Y=Math.sqrt(pa*pa+ya*ya+ha*ha),ea=void 0,ma=void 0,ja=void 0;if(Y<c.getEpsilon())return null;Y=1/Y;pa*=Y;ya*=Y;ha*=Y;ea=Math.sin(O);ma=
Math.cos(O);ja=1-ma;L[0]=pa*pa*ja+ma;L[1]=ya*pa*ja+ha*ea;L[2]=ha*pa*ja-ya*ea;L[3]=0;L[4]=pa*ya*ja-ha*ea;L[5]=ya*ya*ja+ma;L[6]=ha*ya*ja+pa*ea;L[7]=0;L[8]=pa*ha*ja+ya*ea;L[9]=ya*ha*ja-pa*ea;L[10]=ha*ha*ja+ma;L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}function y(L,O){const ha=Math.sin(O);O=Math.cos(O);L[0]=1;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=O;L[6]=ha;L[7]=0;L[8]=0;L[9]=-ha;L[10]=O;L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}function A(L,O){const ha=Math.sin(O);O=Math.cos(O);L[0]=O;L[1]=0;
L[2]=-ha;L[3]=0;L[4]=0;L[5]=1;L[6]=0;L[7]=0;L[8]=ha;L[9]=0;L[10]=O;L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}function B(L,O){const ha=Math.sin(O);O=Math.cos(O);L[0]=O;L[1]=ha;L[2]=0;L[3]=0;L[4]=-ha;L[5]=O;L[6]=0;L[7]=0;L[8]=0;L[9]=0;L[10]=1;L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}function E(L,O,ha){var pa=O[0],ya=O[1],Y=O[2],ea=O[3],ma=pa+pa,ja=ya+ya;const S=Y+Y;O=pa*ma;const fa=pa*ja;pa*=S;const R=ya*ja;ya*=S;Y*=S;ma*=ea;ja*=ea;ea*=S;L[0]=1-(R+Y);L[1]=fa+ea;L[2]=pa-ja;L[3]=0;L[4]=
fa-ea;L[5]=1-(O+Y);L[6]=ya+ma;L[7]=0;L[8]=pa+ja;L[9]=ya-ma;L[10]=1-(O+R);L[11]=0;L[12]=ha[0];L[13]=ha[1];L[14]=ha[2];L[15]=1;return L}function w(L,O){const ha=sa,pa=-O[0],ya=-O[1],Y=-O[2],ea=O[3],ma=O[4],ja=O[5],S=O[6],fa=O[7],R=pa*pa+ya*ya+Y*Y+ea*ea;0<R?(ha[0]=2*(ma*ea+fa*pa+ja*Y-S*ya)/R,ha[1]=2*(ja*ea+fa*ya+S*pa-ma*Y)/R,ha[2]=2*(S*ea+fa*Y+ma*ya-ja*pa)/R):(ha[0]=2*(ma*ea+fa*pa+ja*Y-S*ya),ha[1]=2*(ja*ea+fa*ya+S*pa-ma*Y),ha[2]=2*(S*ea+fa*Y+ma*ya-ja*pa));E(L,O,ha);return L}function D(L,O){L[0]=O[12];
L[1]=O[13];L[2]=O[14];return L}function C(L,O){const ha=O[0],pa=O[1],ya=O[2],Y=O[4],ea=O[5],ma=O[6],ja=O[8],S=O[9];O=O[10];L[0]=Math.sqrt(ha*ha+pa*pa+ya*ya);L[1]=Math.sqrt(Y*Y+ea*ea+ma*ma);L[2]=Math.sqrt(ja*ja+S*S+O*O);return L}function F(L,O){const ha=O[0]+O[5]+O[10];let pa=0;0<ha?(pa=2*Math.sqrt(ha+1),L[3]=.25*pa,L[0]=(O[6]-O[9])/pa,L[1]=(O[8]-O[2])/pa,L[2]=(O[1]-O[4])/pa):O[0]>O[5]&&O[0]>O[10]?(pa=2*Math.sqrt(1+O[0]-O[5]-O[10]),L[3]=(O[6]-O[9])/pa,L[0]=.25*pa,L[1]=(O[1]+O[4])/pa,L[2]=(O[8]+O[2])/
pa):O[5]>O[10]?(pa=2*Math.sqrt(1+O[5]-O[0]-O[10]),L[3]=(O[8]-O[2])/pa,L[0]=(O[1]+O[4])/pa,L[1]=.25*pa,L[2]=(O[6]+O[9])/pa):(pa=2*Math.sqrt(1+O[10]-O[0]-O[5]),L[3]=(O[1]-O[4])/pa,L[0]=(O[8]+O[2])/pa,L[1]=(O[6]+O[9])/pa,L[2]=.25*pa);return L}function G(L,O,ha,pa){var ya=O[0],Y=O[1],ea=O[2],ma=O[3],ja=ya+ya,S=Y+Y,fa=ea+ea;O=ya*ja;const R=ya*S;ya*=fa;const Q=Y*S;Y*=fa;ea*=fa;ja*=ma;S*=ma;ma*=fa;fa=pa[0];const Z=pa[1];pa=pa[2];L[0]=(1-(Q+ea))*fa;L[1]=(R+ma)*fa;L[2]=(ya-S)*fa;L[3]=0;L[4]=(R-ma)*Z;L[5]=
(1-(O+ea))*Z;L[6]=(Y+ja)*Z;L[7]=0;L[8]=(ya+S)*pa;L[9]=(Y-ja)*pa;L[10]=(1-(O+Q))*pa;L[11]=0;L[12]=ha[0];L[13]=ha[1];L[14]=ha[2];L[15]=1;return L}function H(L,O,ha,pa,ya){var Y=O[0],ea=O[1],ma=O[2],ja=O[3],S=Y+Y,fa=ea+ea,R=ma+ma;O=Y*S;var Q=Y*fa,Z=Y*R;Y=ea*fa;ea*=R;var X=ma*R;ma=ja*S;fa*=ja;const M=ja*R;var aa=pa[0],oa=pa[1];R=pa[2];pa=ya[0];ja=ya[1];ya=ya[2];S=(1-(Y+X))*aa;const Da=(Q+M)*aa;aa*=Z-fa;Q=(Q-M)*oa;X=(1-(O+X))*oa;oa*=ea+ma;Z=(Z+fa)*R;ea=(ea-ma)*R;O=(1-(O+Y))*R;L[0]=S;L[1]=Da;L[2]=aa;L[3]=
0;L[4]=Q;L[5]=X;L[6]=oa;L[7]=0;L[8]=Z;L[9]=ea;L[10]=O;L[11]=0;L[12]=ha[0]+pa-(S*pa+Q*ja+Z*ya);L[13]=ha[1]+ja-(Da*pa+X*ja+ea*ya);L[14]=ha[2]+ya-(aa*pa+oa*ja+O*ya);L[15]=1;return L}function I(L,O){var ha=O[0],pa=O[1],ya=O[2];O=O[3];var Y=ha+ha,ea=pa+pa;const ma=ya+ya;ha*=Y;const ja=pa*Y;pa*=ea;const S=ya*Y,fa=ya*ea;ya*=ma;Y*=O;ea*=O;O*=ma;L[0]=1-pa-ya;L[1]=ja+O;L[2]=S-ea;L[3]=0;L[4]=ja-O;L[5]=1-ha-ya;L[6]=fa+Y;L[7]=0;L[8]=S+ea;L[9]=fa-Y;L[10]=1-ha-pa;L[11]=0;L[12]=0;L[13]=0;L[14]=0;L[15]=1;return L}
function J(L,O,ha,pa,ya,Y,ea){const ma=1/(ha-O),ja=1/(ya-pa),S=1/(Y-ea);L[0]=2*Y*ma;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=2*Y*ja;L[6]=0;L[7]=0;L[8]=(ha+O)*ma;L[9]=(ya+pa)*ja;L[10]=(ea+Y)*S;L[11]=-1;L[12]=0;L[13]=0;L[14]=ea*Y*2*S;L[15]=0;return L}function K(L,O,ha,pa,ya){O=1/Math.tan(O/2);let Y=void 0;L[0]=O/ha;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=O;L[6]=0;L[7]=0;L[8]=0;L[9]=0;L[11]=-1;L[12]=0;L[13]=0;L[15]=0;null!=ya&&Infinity!==ya?(Y=1/(pa-ya),L[10]=(ya+pa)*Y,L[14]=2*ya*pa*Y):(L[10]=-1,L[14]=-2*pa);return L}
function N(L,O,ha,pa){const ya=Math.tan(O.upDegrees*Math.PI/180),Y=Math.tan(O.downDegrees*Math.PI/180),ea=Math.tan(O.leftDegrees*Math.PI/180);O=Math.tan(O.rightDegrees*Math.PI/180);const ma=2/(ea+O),ja=2/(ya+Y);L[0]=ma;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=ja;L[6]=0;L[7]=0;L[8]=-((ea-O)*ma*.5);L[9]=(ya-Y)*ja*.5;L[10]=pa/(ha-pa);L[11]=-1;L[12]=0;L[13]=0;L[14]=pa*ha/(ha-pa);L[15]=0;return L}function U(L,O,ha,pa,ya,Y,ea){const ma=1/(O-ha),ja=1/(pa-ya),S=1/(Y-ea);L[0]=-2*ma;L[1]=0;L[2]=0;L[3]=0;L[4]=0;L[5]=
-2*ja;L[6]=0;L[7]=0;L[8]=0;L[9]=0;L[10]=2*S;L[11]=0;L[12]=(O+ha)*ma;L[13]=(ya+pa)*ja;L[14]=(ea+Y)*S;L[15]=1;return L}function ba(L,O,ha,pa){var ya=void 0;let Y=void 0;var ea=void 0,ma=void 0;let ja=void 0,S=void 0;var fa=void 0,R=void 0;let Q=void 0,Z=void 0;const X=O[0],M=O[1];O=O[2];ea=pa[0];ma=pa[1];pa=pa[2];fa=ha[0];R=ha[1];ha=ha[2];ya=c.getEpsilon();if(Math.abs(X-fa)<ya&&Math.abs(M-R)<ya&&Math.abs(O-ha)<ya)return n(L);fa=X-fa;R=M-R;Q=O-ha;Z=1/Math.sqrt(fa*fa+R*R+Q*Q);fa*=Z;R*=Z;Q*=Z;ya=ma*Q-
pa*R;Y=pa*fa-ea*Q;ea=ea*R-ma*fa;(Z=Math.sqrt(ya*ya+Y*Y+ea*ea))?(Z=1/Z,ya*=Z,Y*=Z,ea*=Z):ea=Y=ya=0;ma=R*ea-Q*Y;ja=Q*ya-fa*ea;S=fa*Y-R*ya;(Z=Math.sqrt(ma*ma+ja*ja+S*S))?(Z=1/Z,ma*=Z,ja*=Z,S*=Z):S=ja=ma=0;L[0]=ya;L[1]=ma;L[2]=fa;L[3]=0;L[4]=Y;L[5]=ja;L[6]=R;L[7]=0;L[8]=ea;L[9]=S;L[10]=Q;L[11]=0;L[12]=-(ya*X+Y*M+ea*O);L[13]=-(ma*X+ja*M+S*O);L[14]=-(fa*X+R*M+Q*O);L[15]=1;return L}function ka(L,O,ha,pa){const ya=O[0],Y=O[1];O=O[2];var ea=pa[0];const ma=pa[1];var ja=pa[2];pa=ya-ha[0];let S=Y-ha[1];ha=O-
ha[2];let fa=pa*pa+S*S+ha*ha;0<fa&&(fa=1/Math.sqrt(fa),pa*=fa,S*=fa,ha*=fa);let R=ma*ha-ja*S;ja=ja*pa-ea*ha;ea=ea*S-ma*pa;fa=R*R+ja*ja+ea*ea;0<fa&&(fa=1/Math.sqrt(fa),R*=fa,ja*=fa,ea*=fa);L[0]=R;L[1]=ja;L[2]=ea;L[3]=0;L[4]=S*ea-ha*ja;L[5]=ha*R-pa*ea;L[6]=pa*ja-S*R;L[7]=0;L[8]=pa;L[9]=S;L[10]=ha;L[11]=0;L[12]=ya;L[13]=Y;L[14]=O;L[15]=1;return L}function P(L){return"mat4("+L[0]+", "+L[1]+", "+L[2]+", "+L[3]+", "+L[4]+", "+L[5]+", "+L[6]+", "+L[7]+", "+L[8]+", "+L[9]+", "+L[10]+", "+L[11]+", "+L[12]+
", "+L[13]+", "+L[14]+", "+L[15]+")"}function V(L){return Math.sqrt(L[0]**2+L[1]**2+L[2]**2+L[3]**2+L[4]**2+L[5]**2+L[6]**2+L[7]**2+L[8]**2+L[9]**2+L[10]**2+L[11]**2+L[12]**2+L[13]**2+L[14]**2+L[15]**2)}function ca(L,O,ha){L[0]=O[0]+ha[0];L[1]=O[1]+ha[1];L[2]=O[2]+ha[2];L[3]=O[3]+ha[3];L[4]=O[4]+ha[4];L[5]=O[5]+ha[5];L[6]=O[6]+ha[6];L[7]=O[7]+ha[7];L[8]=O[8]+ha[8];L[9]=O[9]+ha[9];L[10]=O[10]+ha[10];L[11]=O[11]+ha[11];L[12]=O[12]+ha[12];L[13]=O[13]+ha[13];L[14]=O[14]+ha[14];L[15]=O[15]+ha[15];return L}
function ra(L,O,ha){L[0]=O[0]-ha[0];L[1]=O[1]-ha[1];L[2]=O[2]-ha[2];L[3]=O[3]-ha[3];L[4]=O[4]-ha[4];L[5]=O[5]-ha[5];L[6]=O[6]-ha[6];L[7]=O[7]-ha[7];L[8]=O[8]-ha[8];L[9]=O[9]-ha[9];L[10]=O[10]-ha[10];L[11]=O[11]-ha[11];L[12]=O[12]-ha[12];L[13]=O[13]-ha[13];L[14]=O[14]-ha[14];L[15]=O[15]-ha[15];return L}function ta(L,O,ha){L[0]=O[0]*ha;L[1]=O[1]*ha;L[2]=O[2]*ha;L[3]=O[3]*ha;L[4]=O[4]*ha;L[5]=O[5]*ha;L[6]=O[6]*ha;L[7]=O[7]*ha;L[8]=O[8]*ha;L[9]=O[9]*ha;L[10]=O[10]*ha;L[11]=O[11]*ha;L[12]=O[12]*ha;L[13]=
O[13]*ha;L[14]=O[14]*ha;L[15]=O[15]*ha;return L}function Ba(L,O,ha,pa){L[0]=O[0]+ha[0]*pa;L[1]=O[1]+ha[1]*pa;L[2]=O[2]+ha[2]*pa;L[3]=O[3]+ha[3]*pa;L[4]=O[4]+ha[4]*pa;L[5]=O[5]+ha[5]*pa;L[6]=O[6]+ha[6]*pa;L[7]=O[7]+ha[7]*pa;L[8]=O[8]+ha[8]*pa;L[9]=O[9]+ha[9]*pa;L[10]=O[10]+ha[10]*pa;L[11]=O[11]+ha[11]*pa;L[12]=O[12]+ha[12]*pa;L[13]=O[13]+ha[13]*pa;L[14]=O[14]+ha[14]*pa;L[15]=O[15]+ha[15]*pa;return L}function Ha(L,O){return L[0]===O[0]&&L[1]===O[1]&&L[2]===O[2]&&L[3]===O[3]&&L[4]===O[4]&&L[5]===O[5]&&
L[6]===O[6]&&L[7]===O[7]&&L[8]===O[8]&&L[9]===O[9]&&L[10]===O[10]&&L[11]===O[11]&&L[12]===O[12]&&L[13]===O[13]&&L[14]===O[14]&&L[15]===O[15]}function da(L,O){if(L===O)return!0;const ha=L[0],pa=L[1],ya=L[2],Y=L[3],ea=L[4],ma=L[5],ja=L[6],S=L[7],fa=L[8],R=L[9],Q=L[10],Z=L[11],X=L[12],M=L[13],aa=L[14];L=L[15];const oa=O[0],Da=O[1],Ea=O[2],Ja=O[3],Ka=O[4],Sa=O[5],Ta=O[6],Va=O[7],Xa=O[8],Za=O[9],$a=O[10],cb=O[11],Wa=O[12],eb=O[13],Oa=O[14];O=O[15];const T=c.getEpsilon();return Math.abs(ha-oa)<=T*Math.max(1,
Math.abs(ha),Math.abs(oa))&&Math.abs(pa-Da)<=T*Math.max(1,Math.abs(pa),Math.abs(Da))&&Math.abs(ya-Ea)<=T*Math.max(1,Math.abs(ya),Math.abs(Ea))&&Math.abs(Y-Ja)<=T*Math.max(1,Math.abs(Y),Math.abs(Ja))&&Math.abs(ea-Ka)<=T*Math.max(1,Math.abs(ea),Math.abs(Ka))&&Math.abs(ma-Sa)<=T*Math.max(1,Math.abs(ma),Math.abs(Sa))&&Math.abs(ja-Ta)<=T*Math.max(1,Math.abs(ja),Math.abs(Ta))&&Math.abs(S-Va)<=T*Math.max(1,Math.abs(S),Math.abs(Va))&&Math.abs(fa-Xa)<=T*Math.max(1,Math.abs(fa),Math.abs(Xa))&&Math.abs(R-Za)<=
T*Math.max(1,Math.abs(R),Math.abs(Za))&&Math.abs(Q-$a)<=T*Math.max(1,Math.abs(Q),Math.abs($a))&&Math.abs(Z-cb)<=T*Math.max(1,Math.abs(Z),Math.abs(cb))&&Math.abs(X-Wa)<=T*Math.max(1,Math.abs(X),Math.abs(Wa))&&Math.abs(M-eb)<=T*Math.max(1,Math.abs(M),Math.abs(eb))&&Math.abs(aa-Oa)<=T*Math.max(1,Math.abs(aa),Math.abs(Oa))&&Math.abs(L-O)<=T*Math.max(1,Math.abs(L),Math.abs(O))}function la(L){const O=c.getEpsilon(),ha=L[0],pa=L[1],ya=L[2],Y=L[4],ea=L[5],ma=L[6],ja=L[8],S=L[9];L=L[10];return Math.abs(1-
(ha*ha+Y*Y+ja*ja))<=O&&Math.abs(1-(pa*pa+ea*ea+S*S))<=O&&Math.abs(1-(ya*ya+ma*ma+L*L))<=O}const sa=b.create();b=Object.freeze(Object.defineProperty({__proto__:null,copy:e,set:d,identity:n,transpose:u,invert:r,adjoint:h,determinant:g,multiply:k,translate:p,scale:l,rotate:m,rotateX:t,rotateY:f,rotateZ:q,fromTranslation:v,fromScaling:x,fromRotation:z,fromXRotation:y,fromYRotation:A,fromZRotation:B,fromRotationTranslation:E,fromQuat2:w,getTranslation:D,getScaling:C,getRotation:F,fromRotationTranslationScale:G,
fromRotationTranslationScaleOrigin:H,fromQuat:I,frustum:J,perspective:K,perspectiveFromFieldOfView:N,ortho:U,lookAt:ba,targetTo:ka,str:P,frob:V,add:ca,subtract:ra,multiplyScalar:ta,multiplyScalarAndAdd:Ba,exactEquals:Ha,equals:da,isOrthoNormal:la,mul:k,sub:ra},Symbol.toStringTag,{value:"Module"}));a.add=ca;a.adjoint=h;a.copy=e;a.determinant=g;a.equals=da;a.exactEquals=Ha;a.frob=V;a.fromQuat=I;a.fromQuat2=w;a.fromRotation=z;a.fromRotationTranslation=E;a.fromRotationTranslationScale=G;a.fromRotationTranslationScaleOrigin=
H;a.fromScaling=x;a.fromTranslation=v;a.fromXRotation=y;a.fromYRotation=A;a.fromZRotation=B;a.frustum=J;a.getRotation=F;a.getScaling=C;a.getTranslation=D;a.identity=n;a.invert=r;a.isOrthoNormal=la;a.lookAt=ba;a.mat4=b;a.mul=k;a.multiply=k;a.multiplyScalar=ta;a.multiplyScalarAndAdd=Ba;a.ortho=U;a.perspective=K;a.perspectiveFromFieldOfView=N;a.rotate=m;a.rotateX=t;a.rotateY=f;a.rotateZ=q;a.scale=l;a.set=d;a.str=P;a.sub=ra;a.subtract=ra;a.targetTo=ka;a.translate=p;a.transpose=u})},"esri/chunks/pe":function(){define(["require",
"exports","./_rollupPluginBabelHelpers","../assets","../core/has"],function(a,b,c,e,d){function n(){return!!b._pe}function u(){return!!d("esri-wasm")}function r(){return m?m:m=(new Promise((f,q)=>a(["./pe-wasm"],f,q))).then(f=>f.peWasm).then(({default:f})=>f({locateFile:q=>e.getAssetUrl(`esri/geometry/support/${q}`)})).then(f=>{h(f)})}function h(f){function q(z,y,A){z[y]=A(z[y])}b._pe=f;b.PeDefs.init();b.PeGTlistExtended.init();b.PeNotationMgrs.init();b.PeNotationUtm.init();b.PePCSInfo.init();b.PeGCSExtent=
function(z){function y(){return z.apply(this,arguments)||this}c._inheritsLoose(y,z);y.prototype.destroy=function(){b._pe.destroy(this)};return y}(b._pe.PeGCSExtent);f=[b._pe.PeDatum,b._pe.PeGeogcs,b._pe.PeGeogtran,b._pe.PeObject,b._pe.PeParameter,b._pe.PePrimem,b._pe.PeProjcs,b._pe.PeSpheroid,b._pe.PeUnit];for(var v of f)q(v.prototype,"getName",z=>function(){return z.call(this,Array(b.PeDefs.PE_NAME_MAX))});for(const z of[b._pe.PeGeogtran,b._pe.PeProjcs])q(z.prototype,"getParameters",y=>function(){const A=
Array(b.PeDefs.PE_PARM_MAX);let B=y.call(this);for(let E=0;E<A.length;E++){const w=b._pe.getValue(B,"*");A[E]=w?b._pe.wrapPointer(w,b._pe.PeParameter):null;B+=Int32Array.BYTES_PER_ELEMENT}return A});q(b._pe.PeHorizon.prototype,"getCoord",z=>function(){const y=this.getSize();if(!y)return null;const A=[],B=z.call(this);l(A,y,B);return A});q(b._pe.PeGTlistExtendedEntry.prototype,"getEntries",z=>{const y=b._pe._pe_getPeGTlistExtendedGTsSize();return function(){let A=null;var B=z.call(this);if(!b._pe.compare(B,
b._pe.NULL)){A=[B];const E=this.getSteps();if(1<E){B=b._pe.getPointer(B);for(let w=1;w<E;w++)A.push(b._pe.wrapPointer(B+y*w,b._pe.PeGTlistExtendedGTs))}}return A}});const x=b._pe._pe_getPeHorizonSize();v=z=>function(){let y=this._cache;y||(this._cache=y=new Map);if(y.has(z))return y.get(z);let A=null;var B=z.call(this);if(!b._pe.compare(B,b._pe.NULL)){A=[B];const E=B.getNump();if(1<E){B=b._pe.getPointer(B);for(let w=1;w<E;w++)A.push(b._pe.wrapPointer(B+x*w,b._pe.PeHorizon))}}y.set(z,A);return A};
q(b._pe.PeProjcs.prototype,"horizonGcsGenerate",v);q(b._pe.PeProjcs.prototype,"horizonPcsGenerate",v);b._pe.PeObject.prototype.toString=function(z=b.PeDefs.PE_STR_OPTS_NONE){b._pe.ensureCache.prepare();const y=b._pe.getPointer(this),A=b._pe.ensureInt8(Array(b.PeDefs.PE_BUFFER_MAX));return b._pe.UTF8ToString(b._pe._pe_object_to_string_ext(y,z,A))}}function g(f){if(f){var q=b._pe.getClass(f);q&&(q=b._pe.getCache(q))&&(f=b._pe.getPointer(f))&&delete q[f]}}function k(f,q){const v=[];q=Array(q);for(let x=
0;x<f;x++)v.push(b._pe.ensureInt8(q));return v}function p(f){let q;Array.isArray(f[0])?(q=[],f.forEach(v=>{q.push(v[0],v[1])})):q=f;return q}function l(f,q,v,x=!1){if(x)for(x=0;x<2*q;x++)f[x]=b._pe.getValue(v+x*Float64Array.BYTES_PER_ELEMENT,"double");else{x=0===f.length;for(let z=0;z<q;z++)x&&(f[z]=Array(2)),f[z][0]=b._pe.getValue(v,"double"),f[z][1]=b._pe.getValue(v+Float64Array.BYTES_PER_ELEMENT,"double"),v+=2*Float64Array.BYTES_PER_ELEMENT}}let m;b._pe=null;b.PeCSTransformations=void 0;(function(f){function q(z,
y,A){b._pe.ensureCache.prepare();var B=p(A);const E=A===B;B=b._pe.ensureFloat64(B);(z=b._pe._pe_geog_to_proj(b._pe.getPointer(z),y,B))&&l(A,y,B,E);return z}function v(z,y,A){return x(z,y,A,0)}function x(z,y,A,B){b._pe.ensureCache.prepare();var E=p(A);const w=A===E;E=b._pe.ensureFloat64(E);(z=b._pe._pe_proj_to_geog_center(b._pe.getPointer(z),y,E,B))&&l(A,y,E,w);return z}f.geogToProj=q;f.projGeog=function(z,y,A,B){switch(B){case b.PeDefs.PE_TRANSFORM_P_TO_G:return v(z,y,A);case b.PeDefs.PE_TRANSFORM_G_TO_P:return q(z,
y,A)}return 0};f.projToGeog=v;f.projToGeogCenter=x})(b.PeCSTransformations||(b.PeCSTransformations={}));b.PeDefs=void 0;(function(f){f.init=function(){f.PE_BUFFER_MAX=b._pe.PeDefs.prototype.PE_BUFFER_MAX;f.PE_NAME_MAX=b._pe.PeDefs.prototype.PE_NAME_MAX;f.PE_MGRS_MAX=b._pe.PeDefs.prototype.PE_MGRS_MAX;f.PE_USNG_MAX=b._pe.PeDefs.prototype.PE_USNG_MAX;f.PE_DD_MAX=b._pe.PeDefs.prototype.PE_DD_MAX;f.PE_DDM_MAX=b._pe.PeDefs.prototype.PE_DDM_MAX;f.PE_DMS_MAX=b._pe.PeDefs.prototype.PE_DMS_MAX;f.PE_UTM_MAX=
b._pe.PeDefs.prototype.PE_UTM_MAX;f.PE_PARM_MAX=b._pe.PeDefs.prototype.PE_PARM_MAX;f.PE_TYPE_NONE=b._pe.PeDefs.prototype.PE_TYPE_NONE;f.PE_TYPE_GEOGCS=b._pe.PeDefs.prototype.PE_TYPE_GEOGCS;f.PE_TYPE_PROJCS=b._pe.PeDefs.prototype.PE_TYPE_PROJCS;f.PE_TYPE_GEOGTRAN=b._pe.PeDefs.prototype.PE_TYPE_GEOGTRAN;f.PE_TYPE_COORDSYS=b._pe.PeDefs.prototype.PE_TYPE_COORDSYS;f.PE_TYPE_UNIT=b._pe.PeDefs.prototype.PE_TYPE_UNIT;f.PE_TYPE_LINUNIT=b._pe.PeDefs.prototype.PE_TYPE_LINUNIT;f.PE_STR_OPTS_NONE=b._pe.PeDefs.prototype.PE_STR_OPTS_NONE;
f.PE_STR_AUTH_NONE=b._pe.PeDefs.prototype.PE_STR_AUTH_NONE;f.PE_STR_AUTH_TOP=b._pe.PeDefs.prototype.PE_STR_AUTH_TOP;f.PE_STR_NAME_CANON=b._pe.PeDefs.prototype.PE_STR_NAME_CANON;f.PE_PARM_X0=b._pe.PeDefs.prototype.PE_PARM_X0;f.PE_PARM_ND=b._pe.PeDefs.prototype.PE_PARM_ND;f.PE_TRANSFORM_1_TO_2=b._pe.PeDefs.prototype.PE_TRANSFORM_1_TO_2;f.PE_TRANSFORM_2_TO_1=b._pe.PeDefs.prototype.PE_TRANSFORM_2_TO_1;f.PE_TRANSFORM_P_TO_G=b._pe.PeDefs.prototype.PE_TRANSFORM_P_TO_G;f.PE_TRANSFORM_G_TO_P=b._pe.PeDefs.prototype.PE_TRANSFORM_G_TO_P;
f.PE_HORIZON_RECT=b._pe.PeDefs.prototype.PE_HORIZON_RECT;f.PE_HORIZON_POLY=b._pe.PeDefs.prototype.PE_HORIZON_POLY;f.PE_HORIZON_LINE=b._pe.PeDefs.prototype.PE_HORIZON_LINE;f.PE_HORIZON_DELTA=b._pe.PeDefs.prototype.PE_HORIZON_DELTA}})(b.PeDefs||(b.PeDefs={}));b.PeFactory=void 0;(function(f){function q(y,A){let B=null,E=v[y];E||(E={},v[y]=E);E.hasOwnProperty(String(A))?B=E[A]:(y=b._pe.PeFactory.prototype.factoryByType(y,A),b._pe.compare(y,b._pe.NULL)||(B=y,E[A]=B));return B=z(B)}const v={},x={},z=y=>
{if(y){const A=y.getType();switch(A){case b.PeDefs.PE_TYPE_GEOGCS:y=b._pe.castObject(y,b._pe.PeGeogcs);break;case b.PeDefs.PE_TYPE_PROJCS:y=b._pe.castObject(y,b._pe.PeProjcs);break;case b.PeDefs.PE_TYPE_GEOGTRAN:y=b._pe.castObject(y,b._pe.PeGeogtran);break;default:A&b.PeDefs.PE_TYPE_UNIT&&(y=b._pe.castObject(y,b._pe.PeUnit))}}return y};f.initialize=function(){b._pe.PeFactory.prototype.initialize(null)};f.coordsys=function(y){return q(b.PeDefs.PE_TYPE_COORDSYS,y)};f.factoryByType=q;f.fromString=function(y,
A){let B=null,E=x[y];E||(E={},x[y]=E);E.hasOwnProperty(A)?B=E[A]:(y=b._pe.PeFactory.prototype.fromString(y,A),b._pe.compare(y,b._pe.NULL)||(B=y,E[A]=B));return B=z(B)};f.geogcs=function(y){return q(b.PeDefs.PE_TYPE_GEOGCS,y)};f.geogtran=function(y){return q(b.PeDefs.PE_TYPE_GEOGTRAN,y)};f.getCode=function(y){return b._pe.PeFactory.prototype.getCode(y)};f.projcs=function(y){return q(b.PeDefs.PE_TYPE_PROJCS,y)};f.unit=function(y){return q(b.PeDefs.PE_TYPE_UNIT,y)}})(b.PeFactory||(b.PeFactory={}));b.PeGCSExtent=
null;b.PeGTlistExtended=void 0;(function(f){let q;f.init=function(){f.PE_GTLIST_OPTS_COMMON=b._pe.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON;q=b._pe._pe_getPeGTlistExtendedEntrySize()};f.getGTlist=function(v,x,z,y,A,B){let E=null;const w=new b._pe.PeInteger(B);try{const D=b._pe.PeGTlistExtended.prototype.getGTlist(v,x,z,y,A,w);if(B=w.val)if(E=[D],1<B){const C=b._pe.getPointer(D);for(v=1;v<B;v++)E.push(b._pe.wrapPointer(C+q*v,b._pe.PeGTlistExtendedEntry))}}finally{b._pe.destroy(w)}return E}})(b.PeGTlistExtended||
(b.PeGTlistExtended={}));b.PeGTlistExtendedEntry=void 0;(function(f){f.destroy=function(q){if(q&&q.length){for(const v of q)g(v),v.getEntries().forEach(x=>{g(x);x=x.getGeogtran();g(x);x.getParameters().forEach(g);[x.getGeogcs1(),x.getGeogcs2()].forEach(z=>{g(z);const y=z.getDatum();g(y);g(y.getSpheroid());g(z.getPrimem());g(z.getUnit())})});b._pe.PeGTlistExtendedEntry.prototype.Delete(q[0])}}})(b.PeGTlistExtendedEntry||(b.PeGTlistExtendedEntry={}));b.PeGTTransformations=void 0;(function(f){f.geogToGeog=
function(q,v,x,z,y){b._pe.ensureCache.prepare();var A=p(x);const B=x===A;A=b._pe.ensureFloat64(A);let E=0;z&&(E=b._pe.ensureFloat64(z));(q=b._pe._pe_geog_to_geog(b._pe.getPointer(q),v,A,E,y))&&l(x,v,A,B);return q}})(b.PeGTTransformations||(b.PeGTTransformations={}));b.PeNotationDms=void 0;(function(f){const q=(x,z,y,A,B,E)=>{b._pe.ensureCache.prepare();switch(x){case "dd":var w=b._pe._pe_geog_to_dd;var D=b.PeDefs.PE_DD_MAX;break;case "ddm":w=b._pe._pe_geog_to_ddm;D=b.PeDefs.PE_DDM_MAX;break;case "dms":w=
b._pe._pe_geog_to_dms,D=b.PeDefs.PE_DMS_MAX}x=0;z&&(x=b._pe.getPointer(z));z=p(A);z=b._pe.ensureFloat64(z);D=k(y,D);A=b._pe.ensureInt32(D);if(B=w(x,y,z,B,A))for(w=0;w<y;w++)E[w]=b._pe.UTF8ToString(D[w]);return B},v=(x,z,y,A,B)=>{b._pe.ensureCache.prepare();switch(x){case "dd":var E=b._pe._pe_dd_to_geog;break;case "ddm":E=b._pe._pe_ddm_to_geog;break;case "dms":E=b._pe._pe_dms_to_geog}x=0;z&&(x=b._pe.getPointer(z));z=A.map(w=>b._pe.ensureString(w));A=b._pe.ensureInt32(z);z=b._pe.ensureFloat64(Array(2*
y));(E=E(x,y,A,z))&&l(B,y,z);return E};f.geogToDms=function(x,z,y,A,B){return q("dms",x,z,y,A,B)};f.dmsToGeog=function(x,z,y,A){return v("dms",x,z,y,A)};f.geogToDdm=function(x,z,y,A,B){return q("ddm",x,z,y,A,B)};f.ddmToGeog=function(x,z,y,A){return v("ddm",x,z,y,A)};f.geogToDd=function(x,z,y,A,B){return q("dd",x,z,y,A,B)};f.ddToGeog=function(x,z,y,A){return v("dd",x,z,y,A)}})(b.PeNotationDms||(b.PeNotationDms={}));b.PeNotationMgrs=void 0;(function(f){f.init=function(){f.PE_MGRS_STYLE_NEW=b._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW;
f.PE_MGRS_STYLE_OLD=b._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD;f.PE_MGRS_STYLE_AUTO=b._pe.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO;f.PE_MGRS_180_ZONE_1_PLUS=b._pe.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS;f.PE_MGRS_ADD_SPACES=b._pe.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES};f.geogToMgrsExtended=function(q,v,x,z,y,A,B){b._pe.ensureCache.prepare();let E=0;q&&(E=b._pe.getPointer(q));q=p(x);x=b._pe.ensureFloat64(q);q=k(v,b.PeDefs.PE_MGRS_MAX);const w=b._pe.ensureInt32(q);if(z=b._pe._pe_geog_to_mgrs_extended(E,
v,x,z,y,A,w))for(y=0;y<v;y++)B[y]=b._pe.UTF8ToString(q[y]);return z};f.mgrsToGeogExtended=function(q,v,x,z,y){b._pe.ensureCache.prepare();let A=0;q&&(A=b._pe.getPointer(q));q=x.map(B=>b._pe.ensureString(B));x=b._pe.ensureInt32(q);q=b._pe.ensureFloat64(Array(2*v));(z=b._pe._pe_mgrs_to_geog_extended(A,v,x,z,q))&&l(y,v,q);return z}})(b.PeNotationMgrs||(b.PeNotationMgrs={}));b.PeNotationUsng=void 0;(function(f){f.geogToUsng=function(q,v,x,z,y,A,B){b._pe.ensureCache.prepare();let E=0;q&&(E=b._pe.getPointer(q));
q=p(x);x=b._pe.ensureFloat64(q);q=k(v,b.PeDefs.PE_MGRS_MAX);const w=b._pe.ensureInt32(q);if(z=b._pe._pe_geog_to_usng(E,v,x,z,y,A,w))for(y=0;y<v;y++)B[y]=b._pe.UTF8ToString(q[y]);return z};f.usngToGeog=function(q,v,x,z){b._pe.ensureCache.prepare();var y=0;q&&(y=b._pe.getPointer(q));q=x.map(A=>b._pe.ensureString(A));x=b._pe.ensureInt32(q);q=b._pe.ensureFloat64(Array(2*v));(y=b._pe._pe_usng_to_geog(y,v,x,q))&&l(z,v,q);return y}})(b.PeNotationUsng||(b.PeNotationUsng={}));b.PeNotationUtm=void 0;(function(f){f.init=
function(){f.PE_UTM_OPTS_NONE=b._pe.PeNotationUtm.prototype.PE_UTM_OPTS_NONE;f.PE_UTM_OPTS_ADD_SPACES=b._pe.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES;f.PE_UTM_OPTS_NS=b._pe.PeNotationUtm.prototype.PE_UTM_OPTS_NS};f.geogToUtm=function(q,v,x,z,y){b._pe.ensureCache.prepare();var A=0;q&&(A=b._pe.getPointer(q));q=p(x);x=b._pe.ensureFloat64(q);q=k(v,b.PeDefs.PE_UTM_MAX);const B=b._pe.ensureInt32(q);if(z=b._pe._pe_geog_to_utm(A,v,x,z,B))for(A=0;A<v;A++)y[A]=b._pe.UTF8ToString(q[A]);return z};f.utmToGeog=
function(q,v,x,z,y){b._pe.ensureCache.prepare();let A=0;q&&(A=b._pe.getPointer(q));q=x.map(B=>b._pe.ensureString(B));x=b._pe.ensureInt32(q);q=b._pe.ensureFloat64(Array(2*v));(z=b._pe._pe_utm_to_geog(A,v,x,z,q))&&l(y,v,q);return z}})(b.PeNotationUtm||(b.PeNotationUtm={}));b.PePCSInfo=void 0;(function(f){const q=new Map;f.init=function(){f.PE_PCSINFO_OPTION_NONE=b._pe.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE;f.PE_PCSINFO_OPTION_DOMAIN=b._pe.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN;f.PE_POLE_OUTSIDE_BOUNDARY=
b._pe.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY;f.PE_POLE_POINT=b._pe.PePCSInfo.prototype.PE_POLE_POINT};f.generate=function(v,x=f.PE_PCSINFO_OPTION_DOMAIN){let z=null,y=null;q.has(v)&&(y=q.get(v),y[x]&&(z=y[x]));z||(z=b._pe.PePCSInfo.prototype.generate(v,x),y||(y=[],q.set(v,y)),y[x]=z);return z}})(b.PePCSInfo||(b.PePCSInfo={}));b.PeVersion=void 0;(function(f){f.versionString=function(){return b._pe.PeVersion.prototype.version_string()}})(b.PeVersion||(b.PeVersion={}));const t=Object.freeze(Object.defineProperty({__proto__:null,
get _pe(){return b._pe},isLoaded:n,isSupported:u,load:r,get PeCSTransformations(){return b.PeCSTransformations},get PeDefs(){return b.PeDefs},get PeFactory(){return b.PeFactory},get PeGCSExtent(){return b.PeGCSExtent},get PeGTlistExtended(){return b.PeGTlistExtended},get PeGTlistExtendedEntry(){return b.PeGTlistExtendedEntry},get PeGTTransformations(){return b.PeGTTransformations},get PeNotationDms(){return b.PeNotationDms},get PeNotationMgrs(){return b.PeNotationMgrs},get PeNotationUsng(){return b.PeNotationUsng},
get PeNotationUtm(){return b.PeNotationUtm},get PePCSInfo(){return b.PePCSInfo},get PeVersion(){return b.PeVersion},_init:h},Symbol.toStringTag,{value:"Module"}));b._init=h;b.isLoaded=n;b.isSupported=u;b.load=r;b.pe=t})},"esri/geometry/support/aaBoundingRect":function(){define(["exports","../../core/has","../../core/mathUtils","../../core/maybe","../Extent"],function(a,b,c,e,d){function n(m=l){return[m[0],m[1],m[2],m[3]]}function u(m,t){m!==t&&(m[0]=t[0],m[1]=t[1],m[2]=t[2],m[3]=t[3]);return m}function r(m){return e.isNone(m)||
m[0]>=m[2]?0:m[2]-m[0]}function h(m){return m[1]>=m[3]?0:m[3]-m[1]}function g(m,t,f){return t>=m[0]&&f>=m[1]&&t<=m[2]&&f<=m[3]}function k(m){return null!=m&&4===m.length}const p=[Infinity,Infinity,-Infinity,-Infinity],l=[0,0,0,0];a.NEGATIVE_INFINITY=p;a.POSITIVE_INFINITY=[-Infinity,-Infinity,Infinity,Infinity];a.UNIT=[0,0,1,1];a.ZERO=l;a.allFinite=function(m){for(let t=0;4>t;t++)if(!isFinite(m[t]))return!1;return!0};a.area=function(m){return r(m)*h(m)};a.center=function(m,t=[0,0]){t[0]=(m[0]+m[2])/
2;t[1]=(m[1]+m[3])/2;return t};a.clone=function(m){return[m[0],m[1],m[2],m[3]]};a.contains=function(m,t){return t[0]>=m[0]&&t[2]<=m[2]&&t[1]>=m[1]&&t[3]<=m[3]};a.containsPoint=function(m,t){return g(m,t[0],t[1])};a.containsPointObject=function(m,t){return g(m,t.x,t.y)};a.containsPointWithMargin=function(m,t,f){return t[0]>=m[0]-f&&t[1]>=m[1]-f&&t[0]<=m[2]+f&&t[1]<=m[3]+f};a.containsXY=g;a.containsXYWithMargin=function(m,t,f,q){return t>=m[0]-q&&f>=m[1]-q&&t<=m[2]+q&&f<=m[3]+q};a.copy=u;a.create=n;
a.distance=function(m,t){const f=(m[1]+m[3])/2,q=Math.max(Math.abs(t[0]-(m[0]+m[2])/2)-r(m)/2,0);m=Math.max(Math.abs(t[1]-f)-h(m)/2,0);return Math.sqrt(q*q+m*m)};a.empty=function(m){return m?u(m,p):n(p)};a.equals=function(m,t){return k(m)&&k(t)?m[0]===t[0]&&m[1]===t[1]&&m[2]===t[2]&&m[3]===t[3]:m===t};a.expand=function(m,t,f){if(e.isNone(t))u(f,m);else if("length"in t)if(k(t))f[0]=Math.min(m[0],t[0]),f[1]=Math.min(m[1],t[1]),f[2]=Math.max(m[2],t[2]),f[3]=Math.max(m[3],t[3]);else{if(2===t.length||
3===t.length)f[0]=Math.min(m[0],t[0]),f[1]=Math.min(m[1],t[1]),f[2]=Math.max(m[2],t[0]),f[3]=Math.max(m[3],t[1])}else switch(t.type){case "extent":f[0]=Math.min(m[0],t.xmin);f[1]=Math.min(m[1],t.ymin);f[2]=Math.max(m[2],t.xmax);f[3]=Math.max(m[3],t.ymax);break;case "point":f[0]=Math.min(m[0],t.x),f[1]=Math.min(m[1],t.y),f[2]=Math.max(m[2],t.x),f[3]=Math.max(m[3],t.y)}};a.expandPointInPlace=function(m,t){t[0]<m[0]&&(m[0]=t[0]);t[0]>m[2]&&(m[2]=t[0]);t[1]<m[1]&&(m[1]=t[1]);t[1]>m[3]&&(m[3]=t[1])};a.expandWithNestedArray=
function(m,t,f=m){const q=t.length;let v=m[0],x=m[1],z=m[2];m=m[3];for(let y=0;y<q;y++){const A=t[y];v=Math.min(v,A[0]);x=Math.min(x,A[1]);z=Math.max(z,A[0]);m=Math.max(m,A[1])}f[0]=v;f[1]=x;f[2]=z;f[3]=m;return f};a.fromExtent=function(m,t=n()){t[0]=m.xmin;t[1]=m.ymin;t[2]=m.xmax;t[3]=m.ymax;return t};a.fromValues=function(m,t,f,q,v=n()){v[0]=m;v[1]=t;v[2]=f;v[3]=q;return v};a.height=h;a.intersection=function(m,t,f){if(e.isNone(t))return u(f,m);const q=t[0],v=t[1],x=t[2];t=t[3];f[0]=c.clamp(m[0],
q,x);f[1]=c.clamp(m[1],v,t);f[2]=c.clamp(m[2],q,x);f[3]=c.clamp(m[3],v,t);return f};a.intersects=function(m,t){return Math.max(t[0],m[0])<=Math.min(t[2],m[2])&&Math.max(t[1],m[1])<=Math.min(t[3],m[3])};a.intersectsSegment=function(m,t,f){const q=m[0],v=m[1],x=m[2];m=m[3];const {x:z,y}=t,{x:A,y:B}=f;var E=(D,C)=>0>(B-y)*D+(z-A)*C+(A*y-z*B);t=E(q,m);f=E(x,m);const w=E(x,v);E=E(q,v);return t===f&&f===w&&w===E&&E===t||z<q&&A<q||z>x&&A>x||y>m&&B>m||y<v&&B<v?!1:!0};a.intersectsSphere=function(m,t){const f=
t[3];var q=Math.abs(t[0]-.5*(m[0]+m[2]));const v=.5*(m[2]-m[0]);if(q>f+v)return!1;var x=.5*(m[3]-m[1]);m=Math.abs(t[1]-.5*(m[1]+m[3]));if(m>f+x)return!1;if(q<v||m<x)return!0;q-=v;x=m-x;return q*q+x*x<=f*f};a.is=k;a.isPoint=function(m){return(0===r(m)||!isFinite(m[0]))&&(0===h(m)||!isFinite(m[1]))};a.offset=function(m,t,f,q=m){q[0]=m[0]+t;q[1]=m[1]+f;q[2]=m[2]+t;q[3]=m[3]+f;return q};a.pad=function(m,t,f=m){f[0]=m[0]-t;f[1]=m[1]-t;f[2]=m[2]+t;f[3]=m[3]+t;return f};a.setMax=function(m,t,f=m){f[2]=t[0];
f[3]=t[1];f!==m&&(f[0]=m[0],f[1]=m[1]);return m};a.setMin=function(m,t,f=m){f[0]=t[0];f[1]=t[1];f!==m&&(f[2]=m[2],f[3]=m[3]);return f};a.size=function(m,t){t[0]=m[2]-m[0];t[1]=m[3]-m[1]};a.toExtent=function(m,t){return new d({xmin:m[0],ymin:m[1],xmax:m[2],ymax:m[3],spatialReference:t})};a.width=r;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/geodesicConstants":function(){define(["exports","./Ellipsoid"],function(a,b){const c=Math.PI/
180;var e=b.earth.radius;const d=b.earth.eccentricitySquared;e={a1:e*d,a2:e*d*e*d,a3:e*d*d/2,a4:e*d*e*d*2.5,a5:e*d+e*d*d/2,a6:1-d};b={4267:{a:6378206.4,f:1/294.9786982},4269:{a:6378137,f:1/298.257222101},4326:{a:b.earth.radius,f:b.earth.flattening},104900:{a:2439700,f:0},104901:{a:6051E3,f:0},104902:{a:6051800,f:0},104903:{a:b.moon.radius,f:b.moon.flattening},104904:{a:3393400,f:.005207166853303471},104905:{a:b.mars.radius,f:b.mars.flattening},104906:{a:6200,f:0},104907:{a:11100,f:0},104908:{a:71492E3,
f:.06487439154031222},104909:{a:8200,f:0},104910:{a:83500,f:0},104911:{a:1E4,f:0},104912:{a:2409300,f:0},104913:{a:15E3,f:0},104914:{a:4E4,f:0},104915:{a:1562090,f:0},104916:{a:2632345,f:0},104917:{a:85E3,f:0},104918:{a:1821460,f:0},104919:{a:5E3,f:0},104920:{a:12E3,f:0},104921:{a:3E4,f:3},104922:{a:18E3,f:0},104923:{a:14E3,f:0},104924:{a:49300,f:0},104925:{a:60268E3,f:.09796243445941462},104926:{a:16E3,f:0},104927:{a:9500,f:0},104928:{a:56E4,f:0},104929:{a:249400,f:0},104930:{a:59500,f:0},104931:{a:16E3,
f:0},104932:{a:133E3,f:0},104933:{a:718E3,f:0},104934:{a:888E3,f:0},104935:{a:1986300,f:0},104936:{a:1E4,f:0},104937:{a:41900,f:0},104938:{a:11E4,f:0},104939:{a:50100,f:0},104940:{a:764E3,f:0},104941:{a:11E3,f:0},104942:{a:529800,f:0},104943:{a:2575E3,f:0},104944:{a:25559E3,f:.022927344575296365},104945:{a:578900,f:0},104946:{a:33E3,f:0},104947:{a:21E3,f:0},104948:{a:13E3,f:0},104949:{a:31E3,f:0},104950:{a:27E3,f:0},104951:{a:42E3,f:0},104952:{a:235800,f:0},104953:{a:761400,f:0},104954:{a:15E3,f:0},
104955:{a:54E3,f:0},104956:{a:77E3,f:0},104957:{a:27E3,f:0},104958:{a:788900,f:0},104959:{a:584700,f:0},104960:{a:24764E3,f:.01708124697141011},104961:{a:74E3,f:0},104962:{a:79E3,f:0},104963:{a:104E3,f:.14423076923076922},104964:{a:29E3,f:0},104965:{a:17E4,f:0},104966:{a:208E3,f:0},104967:{a:4E4,f:0},104968:{a:1352600,f:0},104969:{a:1195E3,f:0},104970:{a:593E3,f:0},104971:{a:b.mars.radius,f:0},104972:{a:47E4,f:0},104973:{a:255E3,f:0},104974:{a:2439400,f:0}};a.WKT_SPHEROID_REGEX=/SPHEROID\[([^\]]+)]/i;
a.earthEllipsoidConstants=e;a.spheroids=b;a.toRadians=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/GeographicTransformation":function(){define(["./GeographicTransformationStep"],function(a){return function(){function b(e){this.steps=[];this._cachedProjection={};this._chain="";this._gtlistentry=null;if(e&&e.steps)for(const d of e.steps)d instanceof a?this.steps.push(d):this.steps.push(new a({wkid:d.wkid,wkt:d.wkt,isInverse:d.isInverse}))}
b.cacheKey=function(e,d){return[void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():"",void 0!==d.wkid&&null!==d.wkid?d.wkid.toString():"-1",void 0!==d.wkt&&null!==d.wkt?d.wkt.toString():""].join()};b.fromGE=function(e){const d=new b;let n="";for(const u of e.steps)e=a.fromGE(u),d.steps.push(e),n+=e.uid.toString()+",";d._cachedProjection={};d._gtlistentry=null;d._chain=n;return d};var c=b.prototype;c.getInverse=function(){const e=new b;e.steps=[];for(let d=
this.steps.length-1;0<=d;d--)e.steps.push(this.steps[d].getInverse());return e};c.getGTListEntry=function(){let e="";for(const d of this.steps)e+=d.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);return this._gtlistentry};c.assignCachedGe=function(e,d,n){this._cachedProjection[b.cacheKey(e,d)]=n};c.getCachedGeTransformation=function(e,d){let n="";for(const u of this.steps)n+=u.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cachedProjection=
{},this._chain=n);e=this._cachedProjection[b.cacheKey(e,d)];return void 0===e?null:e};return b}()})},"esri/geometry/support/GeographicTransformationStep":function(){define(["../../chunks/_rollupPluginBabelHelpers"],function(a){let b=0;return function(){function c(e){this.uid=b++;e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse?!0===e.isInverse:!1):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}c.fromGE=function(e){const d=new c;d._wkt=e.wkt;
d._wkid=e.wkid;d._isInverse=e.isInverse;return d};c.prototype.getInverse=function(){const e=new c;e._wkt=this.wkt;e._wkid=this._wkid;e._isInverse=!this.isInverse;return e};a._createClass(c,[{key:"wkt",get:function(){return this._wkt},set:function(e){this._wkt=e;this.uid=b++}},{key:"wkid",get:function(){return this._wkid},set:function(e){this._wkid=e;this.uid=b++}},{key:"isInverse",get:function(){return this._isInverse},set:function(e){this._isInverse=e;this.uid=b++}}]);return c}()})},"esri/geometry/support/zscale":function(){define(["exports",
"../../core/maybe","../../core/unitUtils","./spatialReferenceUtils"],function(a,b,c,e){a.getGeometryZScaler=function(d,n,u){if(b.isNone(n)||b.isNone(u)||u.vcsWkid||e.equals(n,u))return null;n=c.getMetersPerVerticalUnitForSR(n);u=c.getMetersPerVerticalUnitForSR(u);const r=n/u;if(1===r)return null;switch(d){case "point":case "esriGeometryPoint":return h=>{h&&null!=h.z&&(h.z*=r)};case "polyline":case "esriGeometryPolyline":return h=>{if(h)for(const g of h.paths)for(const k of g)2<k.length&&(k[2]*=r)};
case "polygon":case "esriGeometryPolygon":return h=>{if(h)for(const g of h.rings)for(const k of g)2<k.length&&(k[2]*=r)};case "multipoint":case "esriGeometryMultipoint":return h=>{if(h)for(const g of h.points)2<g.length&&(g[2]*=r)};case "extent":case "esriGeometryExtent":return h=>{h&&null!=h.zmin&&null!=h.zmax&&(h.zmin*=r,h.zmax*=r)};default:return null}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/styleUtils":function(){define(["exports",
"../../chunks/_rollupPluginBabelHelpers","../../core/asyncUtils","../../core/promiseUtils","../../core/Warning"],function(a,b,c,e,d){function n(){n=b._asyncToGenerator(function*(u,r,h){var g=u&&u.getAtOrigin&&u.getAtOrigin("renderer",r.origin);g&&"unique-value"===g.type&&g.styleOrigin&&(g=yield c.result(g.populateFromStyle()),e.throwIfAborted(h),!1===g.ok&&(h=g.error,r&&r.messages&&r.messages.push(new d("renderer:style-reference",`Failed to create unique value renderer from style reference: ${h.message}`,
{error:h,context:r})),u.clear("renderer",r?.origin)))});return n.apply(this,arguments)}a.loadStyleRenderer=function(u,r,h){return n.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/requestPresets":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","../request"],function(a,b,c){function e(){e=b._asyncToGenerator(function*(d){({data:d}=yield c(d,{responseType:"json",query:{f:"json"}}));return d});return e.apply(this,
arguments)}a.requestArcGISServiceJSON=function(d){return e.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/FeatureLayer":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../PopupTemplate ../renderers/ClassBreaksRenderer ../renderers/DictionaryRenderer ../renderers/DotDensityRenderer ../renderers/HeatmapRenderer ../renderers/PieChartRenderer ../renderers/Renderer ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/support/jsonUtils ../renderers/support/types ../request ../symbols ../core/Clonable ../core/Collection ../core/Error ../core/Handles ../core/lang ../core/Logger ../core/maybe ../core/MultiOriginJSONSupport ../core/object ../core/promiseUtils ../core/sql ../core/urlUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/extensions/serializableProperty/reader ../form/FormTemplate ../geometry/SpatialReference ./Layer ./graphics/sources/MemorySource ./mixins/APIKeyMixin ./mixins/ArcGISService ./mixins/BlendLayer ./mixins/CustomParametersMixin ./mixins/EditBusLayer ./mixins/FeatureEffectLayer ./mixins/FeatureLayerBase ./mixins/FeatureReductionLayer ./mixins/OperationalLayer ./mixins/OrderedLayer ./mixins/PortalLayer ./mixins/PublishableLayer ./mixins/RefreshableLayer ./mixins/ScaleRangeLayer ./mixins/TemporalLayer ./support/arcgisLayerUrl ./support/commonProperties ./support/featureLayerUtils ./support/FeatureTemplate ./support/FeatureType ./support/fieldProperties ./support/fieldUtils ./support/LabelClass ./support/labelingInfo ./support/serviceCapabilitiesUtils ./support/TimeInfo ./support/versionUtils ./support/source/DataLayerSource ../renderers/support/styleUtils ../rest/support/FeatureSet ../rest/support/Query ../rest/support/TopFeaturesQuery ../support/popupUtils ../webdoc/support/opacityUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C,F,G,H,I,J,K,N,U,ba,ka,P,V,ca,ra,ta,Ba,Ha,da,la,sa,L,O,ha,pa,ya,Y,ea,ma,ja,S,fa,R,Q,Z,X,M,aa,oa,Da,Ea,Ja,Ka,Sa,Ta,Va){function Xa(Wa,eb){return new x("layer:unsupported",`Layer (${Wa.title}, ${Wa.id}) of type '${Wa.declaredClass}' ${eb}`,{layer:Wa})}function Za(Wa,eb,Oa){Wa=!!Oa?.writeLayerSchema;return{enabled:Wa,ignoreOrigin:Wa}}const $a=A.getLogger("esri.layers.FeatureLayer");d=R.defineFieldProperties();q=function(Wa){function eb(...T){T=
Wa.call(this,...T)||this;T._handles=new z;T.charts=null;T.copyright=null;T.displayField=null;T.dynamicDataSource=null;T.fields=null;T.fieldsIndex=null;T.formTemplate=null;T.fullExtent=null;T.geometryType=null;T.hasM=void 0;T.hasZ=void 0;T.infoFor3D=null;T.isTable=!1;T.labelsVisible=!0;T.labelingInfo=null;T.legendEnabled=!0;T.objectIdField=null;T.outFields=null;T.path=null;T.popupEnabled=!0;T.popupTemplate=null;T.screenSizePerspectiveEnabled=!0;T.spatialReference=ba.WGS84;T.subtypeCode=null;T.templates=
null;T.timeInfo=null;T.title=null;T.sublayerTitleMode="item-title";T.type="feature";T.typeIdField=null;T.types=null;T.visible=!0;return T}b._inheritsLoose(eb,Wa);var Oa=eb.prototype;Oa.destroy=function(){this.source?.destroy();this._handles=B.destroyMaybe(this._handles)};Oa.normalizeCtorArgs=function(T,W){return"string"===typeof T?{url:T,...W}:T};Oa.load=function(T){var W=this;const wa=B.isSome(T)?T.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(wa).then(ia=>
this.initLayerProperties(ia))),Promise.resolve(this);const Aa=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},T).catch(D.throwIfAbortError).then(b._asyncToGenerator(function*(){if(W.url&&null==W.layerId&&/FeatureServer|MapServer\/*$/i.test(W.url)){const ia=yield W._fetchFirstLayerId(wa);null!=ia&&(W.layerId=ia)}if(!W.url&&!W._hasMemorySource())throw new x("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return W.initLayerProperties(yield W.createGraphicsSource(wa))})).then(()=>
this.finishLoadEditablePortalLayer(T));this.addResolvingPromise(Aa);return Promise.resolve(this)};Oa.readCapabilities=function(T,W){W=W.layerDefinition||W;return M.getFeatureLayerCapabilities(W,this.url)};Oa.readEditingEnabled=function(T,W){return this._readEditingEnabled(W,!1)};Oa.readEditingEnabledFromWebMap=function(T,W,wa){return this._readEditingEnabled(W,!0,wa)};Oa.writeEditingEnabled=function(T,W){this._writeEditingEnabled(T,W,!1)};Oa.writeEditingEnabledToWebMap=function(T,W,wa,Aa){this._writeEditingEnabled(T,
W,!0,Aa)};Oa.readIsTable=function(T,W){W=W?.layerDefinition??W;return"Table"===W.type||!W.geometryType};Oa.writeIsTable=function(T,W,wa,Aa){Aa?.writeLayerSchema&&w.setDeepValue(wa,T?"Table":"Feature Layer",W)};Oa.readGlobalIdField=function(T,W){return ja.readGlobalIdField(W.layerDefinition||W)};Oa.readObjectIdField=function(T,W){return ja.readObjectIdField(W.layerDefinition||W)};Oa.readRenderer=function(T,W,wa){W=W.layerDefinition||W;if(T=W.drawingInfo?.renderer)return(T=l.read(T,W,wa)??void 0)||
$a.error("Failed to create renderer",{rendererDefinition:W.drawingInfo.renderer,layer:this,context:wa}),T;if(W.defaultSymbol)return W.types&&W.types.length?new p({defaultSymbol:cb(W.defaultSymbol,W,wa),field:W.typeIdField,uniqueValueInfos:W.types.map(Aa=>({id:Aa.id,symbol:cb(Aa.symbol,Aa,wa)}))}):new k({symbol:cb(W.defaultSymbol,W,wa)})};Oa.castSource=function(T){return T?Array.isArray(T)||T instanceof v?new P.MemorySource({layer:this,items:T}):T:null};Oa.readSource=function(T,W){T=Ja.fromJSON(W.featureSet);
return new P.MemorySource({layer:this,items:T?.features??[]})};Oa.readTemplates=function(T,W){var wa=W.editFieldsInfo;W=wa&&wa.creatorField;wa=wa&&wa.editorField;T=T&&T.map(Aa=>S.fromJSON(Aa));this._fixTemplates(T,W);this._fixTemplates(T,wa);return T};Oa.readTitle=function(T,W){T=W.layerDefinition?.name??W.name;W=W.title||W.layerDefinition&&W.layerDefinition.title;if(T){W=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?ea.titleFromUrlAndName(this.url,
T):T;if(!T&&this.url){const wa=ea.parse(this.url);B.isSome(wa)&&(T=wa.title)}if(!T)return;"item-title-and-service-name"===this.sublayerTitleMode&&W&&W!==T&&(T=W+" - "+T);return ea.cleanTitle(T)}if("item-title"===this.sublayerTitleMode&&W)return W};Oa.readTitleFromWebMap=function(T,W){return W.title||W.layerDefinition&&W.layerDefinition.name};Oa.readTypeIdField=function(T,W){W=W.layerDefinition||W;let wa=W.typeIdField;wa&&W.fields&&(wa=wa.toLowerCase(),T=W.fields.find(Aa=>Aa.name.toLowerCase()===wa))&&
(wa=T.name);return wa};Oa.readTypes=function(T,W){W=W.layerDefinition||W;T=W.types;const wa=(W=W.editFieldsInfo)&&W.creatorField,Aa=W&&W.editorField;return T&&T.map(ia=>{ia=fa.fromJSON(ia);this._fixTemplates(ia.templates,wa);this._fixTemplates(ia.templates,Aa);return ia})};Oa.readVisible=function(T,W){if(W.layerDefinition&&null!=W.layerDefinition.defaultVisibility)return!!W.layerDefinition.defaultVisibility;if(null!=W.visibility)return!!W.visibility};Oa.addAttachment=function(){var T=b._asyncToGenerator(function*(W,
wa){return ja.addAttachment(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.updateAttachment=function(){var T=b._asyncToGenerator(function*(W,wa,Aa){return ja.updateAttachment(this,W,wa,Aa,"FeatureLayer")});return function(W,wa,Aa){return T.apply(this,arguments)}}();Oa.applyEdits=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.applyEdits(this,W,wa)});return function(W,wa){return T.apply(this,arguments)}}();Oa.on=function(T,W){return Wa.prototype.on.call(this,
T,W)};Oa.createPopupTemplate=function(T){return Ta.createPopupTemplate(this,T)};Oa.createGraphicsSource=function(){var T=b._asyncToGenerator(function*(W){if(this._hasMemorySource()&&this.source)return this.source.load({signal:W});const {default:wa}=yield D.whenOrAbort(new Promise((Aa,ia)=>a(["./graphics/sources/FeatureLayerSource"],Pa=>Aa(Object.freeze(Object.defineProperty({__proto__:null,default:Pa},Symbol.toStringTag,{value:"Module"}))),ia)),W);return(new wa({layer:this})).load({signal:W})});return function(W){return T.apply(this,
arguments)}}();Oa.createQuery=function(){const T=ja.createQuery(this);T.dynamicDataSource=this.dynamicDataSource;var W=B.isSome(this.subtypeCode)?`${this.subtypeField} = ${this.subtypeCode}`:null;W=C.sqlAnd(this.definitionExpression,W);T.where=W||"1\x3d1";return T};Oa.deleteAttachments=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.deleteAttachments(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.fetchRecomputedExtents=function(){var T=b._asyncToGenerator(function*(W){return ja.fetchRecomputedExtents(this,
W,"FeatureLayer")});return function(W){return T.apply(this,arguments)}}();Oa.getFeatureType=function(T){const {typeIdField:W,types:wa}=this;if(!W||!T)return null;const Aa=T.attributes?T.attributes[W]:void 0;if(null==Aa)return null;let ia=null;wa?.some(Pa=>{const {id:Ra}=Pa;if(null==Ra)return!1;Ra.toString()===Aa.toString()&&(ia=Pa);return!!ia});return ia};Oa.getFieldDomain=function(T,W){return(W=this.getFeatureType(W&&W.feature))&&(W=W.domains&&W.domains[T])&&"inherited"!==W.type?W:this._getLayerDomain(T)};
Oa.getField=function(T){return this.fieldsIndex.get(T)};Oa.queryAttachments=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.queryAttachments(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryFeatures=function(){var T=b._asyncToGenerator(function*(W,wa){const Aa=yield this.load();W=yield Aa.source.queryFeatures(Ka.from(W)??Aa.createQuery(),wa);if(W?.features)for(const ia of W.features)ia.layer=ia.sourceLayer=Aa;return W});return function(W,
wa){return T.apply(this,arguments)}}();Oa.queryObjectIds=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.queryObjectIds(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryFeatureCount=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.queryFeatureCount(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryExtent=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.queryExtent(this,
W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryRelatedFeatures=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.queryRelatedFeatures(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryRelatedFeaturesCount=function(){var T=b._asyncToGenerator(function*(W,wa){return ja.queryRelatedFeaturesCount(this,W,wa,"FeatureLayer")});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryTopFeatures=function(){var T=
b._asyncToGenerator(function*(W,wa){const {source:Aa,capabilities:ia}=yield this.load();if(!Aa.queryTopFeatures||!ia?.query?.supportsTopFeaturesQuery)throw new x("FeatureLayer","Layer source does not support queryTopFeatures capability");W=yield Aa.queryTopFeatures(Sa.from(W),wa);if(W?.features)for(const Pa of W.features)Pa.layer=Pa.sourceLayer=this;return W});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryTopObjectIds=function(){var T=b._asyncToGenerator(function*(W,wa){const {source:Aa,
capabilities:ia}=yield this.load();if(!Aa.queryTopObjectIds||!ia?.query.supportsTopFeaturesQuery)throw new x("FeatureLayer","Layer source does not support queryTopObjectIds capability");return Aa.queryTopObjectIds(Sa.from(W),wa)});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryTopFeaturesExtent=function(){var T=b._asyncToGenerator(function*(W,wa){const {source:Aa,capabilities:ia}=yield this.load();if(!Aa.queryTopExtents||!ia?.query?.supportsTopFeaturesQuery)throw new x("FeatureLayer",
"Layer source does not support queryTopExtents capability");return Aa.queryTopExtents(Sa.from(W),wa)});return function(W,wa){return T.apply(this,arguments)}}();Oa.queryTopFeatureCount=function(){var T=b._asyncToGenerator(function*(W,wa){const {source:Aa,capabilities:ia}=yield this.load();if(!Aa.queryTopCount||!ia?.query?.supportsTopFeaturesQuery)throw new x("FeatureLayer","Layer source does not support queryFeatureCount capability");return Aa.queryTopCount(Sa.from(W),wa)});return function(W,wa){return T.apply(this,
arguments)}}();Oa.read=function(T,W){const wa=T.featureCollection;if(wa){const Aa=wa.layers;Aa&&1===Aa.length&&(Wa.prototype.read.call(this,Aa[0],W),null!=wa.showLegend&&Wa.prototype.read.call(this,{showLegend:wa.showLegend},W))}Wa.prototype.read.call(this,T,W);W&&"service"===W.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")};Oa.write=function(T,W){W={...W,origin:W?.origin??void 0,writeLayerSchema:W?.writeLayerSchema??this._hasMemorySource()};const {origin:wa,
layerContainerType:Aa,messages:ia}=W;if(this.dynamicDataSource)return ia?.push(Xa(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if("web-scene"===wa||"web-map"===wa&&"tables"!==Aa)return ia?.push(Xa(this,"using a table source cannot be written to web scenes and web maps")),null;if(this._hasMemorySource())return ia?.push(Xa(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&
"web-map"===wa&&"tables"===Aa)return ia?.push(Xa(this,"using a non-table source cannot be written to tables in web maps")),null;return Wa.prototype.write.call(this,T,W)};Oa.clone=function(){if(this._hasMemorySource())throw new x("FeatureLayer",`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return Wa.prototype.clone.call(this)};Oa.serviceSupportsSpatialReference=function(T){return this.loaded?"memory"===this.source?.type?!0:oa.serviceSupportsSpatialReference(this,
T):!1};Oa.save=function(){var T=b._asyncToGenerator(function*(W){return(yield new Promise((wa,Aa)=>a(["./save/featureLayerUtils"],wa,Aa))).save(this,W)});return function(W){return T.apply(this,arguments)}}();Oa.saveAs=function(){var T=b._asyncToGenerator(function*(W,wa){return(yield new Promise((Aa,ia)=>a(["./save/featureLayerUtils"],Aa,ia))).saveAs(this,W,wa)});return function(W,wa){return T.apply(this,arguments)}}();Oa._readEditingEnabled=function(T,W,wa){let Aa=T.layerDefinition?.capabilities;
if(Aa)return this._hasEditingCapability(Aa);Aa=T.capabilities;if(W&&"web-map"===wa?.origin&&!this._hasMemorySource()&&Aa)return this._hasEditingCapability(Aa)};Oa._hasEditingCapability=function(T){return T.toLowerCase().split(",").map(W=>W.trim()).includes("editing")};Oa._writeEditingEnabled=function(T,W,wa,Aa){T||(T=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query",w.setDeepValue("layerDefinition.capabilities",T,W),wa&&!Aa?.writeLayerSchema&&(W.capabilities=T))};Oa._getLayerDomain=
function(T){return(T=this.fieldsIndex.get(T))?T.domain:null};Oa._fetchFirstLayerId=function(T){return t(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:T}).then(W=>{if(W=W.data){if(Array.isArray(W.layers)&&0<W.layers.length)return W.layers[0].id;if(Array.isArray(W.tables)&&0<W.tables.length)return W.tables[0].id}})};Oa.initLayerProperties=function(){var T=b._asyncToGenerator(function*(W){this._set("source",W);W.sourceJSON&&(this.sourceJSON=W.sourceJSON,
this.read(W.sourceJSON,{origin:"service",url:this.parsedUrl}));this._verifySource();this._verifyFields();Q.fixRendererFields(this.renderer,this.fieldsIndex);Q.fixTimeInfoFields(this.timeInfo,this.fieldsIndex);return Ea.loadStyleRenderer(this,{origin:"service"})});return function(W){return T.apply(this,arguments)}}();Oa.hasDataChanged=function(){var T=b._asyncToGenerator(function*(){return ja.hasDataChanged(this)});return function(){return T.apply(this,arguments)}}();Oa.fetchPublishingStatus=function(){var T=
b._asyncToGenerator(function*(){const W=this.source;return W?.fetchPublishingStatus?W.fetchPublishingStatus():"unavailable"});return function(){return T.apply(this,arguments)}}();Oa._verifyFields=function(){const T=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+T+")");this.isTable||this._hasMemorySource()||-1!==T.search(/\/FeatureServer\//i)||this.fields?.some(W=>"geometry"===W.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+
T+")")};Oa._fixTemplates=function(T,W){T&&T.forEach(wa=>{(wa=wa.prototype&&wa.prototype.attributes)&&W&&delete wa[W]})};Oa._verifySource=function(){if(this._hasMemorySource()){if(this.url)throw new x("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url");}else if(!this.url)throw new x("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source");};Oa._initMemorySource=function(T){T.forEach(W=>{W.layer=
this;W.sourceLayer=this});this._handles.add([T.on("after-add",W=>{W.item.layer=this;W.item.sourceLayer=this}),T.on("after-remove",W=>{W.item.layer=null;W.item.sourceLayer=null})],"fl-source")};Oa._resetMemorySource=function(T){T.forEach(W=>{W.layer=null;W.sourceLayer=null});this._handles.remove("fl-source")};Oa._hasMemorySource=function(){return!(this.url||!this.source)};b._createClass(eb,[{key:"createQueryVersion",get:function(){this.commitProperty("definitionExpression");this.commitProperty("dynamicDataSource");
this.commitProperty("timeExtent");this.commitProperty("timeOffset");this.commitProperty("geometryType");this.commitProperty("gdbVersion");this.commitProperty("historicMoment");this.commitProperty("returnZ");this.commitProperty("capabilities");this.commitProperty("returnM");return(this._get("createQueryVersion")??0)+1}},{key:"editingEnabled",get:function(){return this.loaded&&!this.capabilities?.operations.supportsEditing?!1:this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||
this.userHasEditingPrivileges},set:function(T){this._overrideIfSome("editingEnabled",T)}},{key:"parsedUrl",get:function(){const T=F.urlToObject(this.url);null!=T&&(null!=this.dynamicDataSource?T.path=F.join(T.path,"dynamicLayer"):null!=this.layerId&&(T.path=F.join(T.path,this.layerId.toString())));return T}},{key:"defaultPopupTemplate",get:function(){return this.createPopupTemplate()}},{key:"renderer",set:function(T){Q.fixRendererFields(T,this.fieldsIndex);this._set("renderer",T)}},{key:"source",
set:function(T){const W=this._get("source");W!==T&&(W&&W instanceof v&&this._resetMemorySource(W),T&&T instanceof v&&this._initMemorySource(T),this._set("source",T))}}]);return eb}(da.FeatureLayerBase(la.FeatureReductionLayer(Ha.FeatureEffectLayer(ha.PublishableLayer(Ba.EditBusLayer(ra.BlendLayer(L.OrderedLayer(Y.TemporalLayer(ya.ScaleRangeLayer(pa.RefreshableLayer(ca.ArcGISService(sa.OperationalLayer(O.PortalLayer(E.MultiOriginJSONMixin(ta.CustomParametersMixin(V.APIKeyMixin(q.ClonableMixin(ka))))))))))))))))));
c.__decorate([I.reader("service","capabilities")],q.prototype,"readCapabilities",null);c.__decorate([G.property({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],q.prototype,"charts",void 0);c.__decorate([G.property({readOnly:!0})],q.prototype,"createQueryVersion",null);c.__decorate([G.property({json:{read:{source:"layerDefinition.copyrightText"}}})],q.prototype,"copyright",void 0);c.__decorate([G.property({json:{read:{source:"layerDefinition.displayField"}}})],q.prototype,"displayField",
void 0);c.__decorate([G.property({types:f.symbolTypes,readOnly:!0})],q.prototype,"defaultSymbol",void 0);c.__decorate([G.property({type:Da.DataLayerSource})],q.prototype,"dynamicDataSource",void 0);c.__decorate([G.property({type:Boolean})],q.prototype,"editingEnabled",null);c.__decorate([I.reader(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],q.prototype,"readEditingEnabled",null);c.__decorate([I.reader("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],
q.prototype,"readEditingEnabledFromWebMap",null);c.__decorate([K.writer(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],q.prototype,"writeEditingEnabled",null);c.__decorate([K.writer("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],q.prototype,"writeEditingEnabledToWebMap",null);c.__decorate([G.property({...d.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",
overridePolicy:Za}}}}})],q.prototype,"fields",void 0);c.__decorate([G.property(d.fieldsIndex)],q.prototype,"fieldsIndex",void 0);c.__decorate([G.property({type:U,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],q.prototype,"formTemplate",void 0);c.__decorate([G.property({json:{read:{source:"layerDefinition.extent"}}})],q.prototype,"fullExtent",void 0);c.__decorate([G.property({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Za,writer(Wa,
eb,Oa){(Wa=Wa?ja.geometryTypeKebabDict.toJSON(Wa):null)&&w.setDeepValue(Oa,Wa,eb)}}}},read:{source:"layerDefinition.geometryType",reader:ja.geometryTypeKebabDict.read}}})],q.prototype,"geometryType",void 0);c.__decorate([G.property({json:{read:{source:"layerDefinition.hasM"}}})],q.prototype,"hasM",void 0);c.__decorate([G.property({json:{read:{source:"layerDefinition.hasZ"}}})],q.prototype,"hasZ",void 0);c.__decorate([G.property(ma.id)],q.prototype,"id",void 0);c.__decorate([G.property({readOnly:!0,
json:{origins:{service:{read:!0}},read:!1}})],q.prototype,"infoFor3D",void 0);c.__decorate([G.property({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],q.prototype,"isTable",void 0);c.__decorate([I.reader("service","isTable",["type","geometryType"]),I.reader("isTable",["layerDefinition.type","layerDefinition.geometryType"])],q.prototype,"readIsTable",null);c.__decorate([K.writer("web-map","isTable")],q.prototype,"writeIsTable",null);c.__decorate([G.property(ma.labelsVisible)],
q.prototype,"labelsVisible",void 0);c.__decorate([G.property({type:[Z],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:X.reader},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:X.reader},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],q.prototype,"labelingInfo",void 0);c.__decorate([G.property((()=>{const Wa=y.clone(ma.opacityDrawingInfo);Wa.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",
writer(eb,Oa,T){w.setDeepValue(T,Va.opacityToTransparency(eb),Oa)}}};return Wa})())],q.prototype,"opacity",void 0);c.__decorate([G.property(ma.legendEnabled)],q.prototype,"legendEnabled",void 0);c.__decorate([G.property({type:["show","hide"],json:(()=>{const Wa=y.clone(ma.listMode.json);Wa.origins["portal-item"]={read:!1,write:!1};return Wa})()})],q.prototype,"listMode",void 0);c.__decorate([I.reader("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],q.prototype,"readGlobalIdField",
null);c.__decorate([G.property({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Za}}}}})],q.prototype,"objectIdField",void 0);c.__decorate([I.reader("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],q.prototype,"readObjectIdField",null);c.__decorate([G.property({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],q.prototype,"operationalLayerType",void 0);c.__decorate([G.property(d.outFields)],q.prototype,"outFields",void 0);
c.__decorate([G.property({readOnly:!0})],q.prototype,"parsedUrl",null);c.__decorate([G.property({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],q.prototype,"path",void 0);c.__decorate([G.property(ma.popupEnabled)],q.prototype,"popupEnabled",void 0);c.__decorate([G.property({type:e,json:{name:"popupInfo",write:!0}})],q.prototype,"popupTemplate",void 0);c.__decorate([G.property({readOnly:!0})],q.prototype,"defaultPopupTemplate",null);c.__decorate([G.property({types:m.rendererTypes,
json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:m.webSceneRendererTypes,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(Wa,eb,Oa){return{ignoreOrigin:Oa?.writeLayerSchema}}}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy(Wa,eb,Oa){return{ignoreOrigin:Oa?.writeLayerSchema}}}}})],q.prototype,"renderer",null);c.__decorate([I.reader("service","renderer",["drawingInfo.renderer","defaultSymbol"]),I.reader("renderer",["layerDefinition.drawingInfo.renderer",
"layerDefinition.defaultSymbol"])],q.prototype,"readRenderer",null);c.__decorate([G.property((()=>{const Wa=y.clone(ma.screenSizePerspectiveEnabled);Wa.json.origins["portal-item"]={read:!1,write:!1};return Wa})())],q.prototype,"screenSizePerspectiveEnabled",void 0);c.__decorate([G.property({clonable:!1})],q.prototype,"source",null);c.__decorate([H.cast("source")],q.prototype,"castSource",null);c.__decorate([I.reader("portal-item","source",["featureSet"]),I.reader("web-map","source",["featureSet"])],
q.prototype,"readSource",null);c.__decorate([G.property({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],q.prototype,"spatialReference",void 0);c.__decorate([G.property({type:Number})],q.prototype,"subtypeCode",void 0);c.__decorate([G.property({type:[S]})],q.prototype,"templates",void 0);c.__decorate([I.reader("templates",["editFieldsInfo","creatorField","editorField","templates"])],q.prototype,"readTemplates",null);c.__decorate([G.property({type:aa})],q.prototype,"timeInfo",void 0);
c.__decorate([G.property()],q.prototype,"title",void 0);c.__decorate([I.reader("service","title",["name"]),I.reader("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],q.prototype,"readTitle",null);c.__decorate([I.reader("web-map","title",["layerDefinition.name","title"])],q.prototype,"readTitleFromWebMap",null);c.__decorate([G.property({type:String})],q.prototype,"sublayerTitleMode",void 0);c.__decorate([G.property({json:{read:!1}})],q.prototype,"type",void 0);c.__decorate([G.property({type:String})],
q.prototype,"typeIdField",void 0);c.__decorate([I.reader("service","typeIdField"),I.reader("typeIdField",["layerDefinition.typeIdField"])],q.prototype,"readTypeIdField",null);c.__decorate([G.property({type:[fa]})],q.prototype,"types",void 0);c.__decorate([I.reader("service","types",["types"]),I.reader("types",["layerDefinition.types"])],q.prototype,"readTypes",null);c.__decorate([G.property({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],q.prototype,
"visible",void 0);c.__decorate([I.reader("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],q.prototype,"readVisible",null);q=c.__decorate([J.subclass("esri.layers.FeatureLayer")],q);const cb=N.createTypeReader({types:f.symbolTypesRenderer});return q})},"esri/PopupTemplate":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/Clonable ./core/Collection ./core/JSONSupport ./core/lang ./core/Logger ./core/promiseUtils ./core/accessorSupport/decorators/property ./core/accessorSupport/decorators/cast ./core/accessorSupport/decorators/reader ./core/accessorSupport/decorators/subclass ./core/accessorSupport/decorators/writer ./core/accessorSupport/ensureType ./layers/support/fieldUtils ./popup/content ./popup/ExpressionInfo ./popup/FieldInfo ./popup/LayerOptions ./popup/RelatedRecordsInfo ./popup/content/support/mediaInfoTypes ./support/actions/ActionBase ./support/actions/ActionButton ./support/actions/ActionToggle ./popup/content/MediaContent ./popup/content/TextContent ./popup/content/AttachmentsContent ./popup/content/FieldsContent ./popup/content/ExpressionContent ./popup/content/RelationshipContent ./popup/content/Content ./popup/content/CustomContent".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C,F,G,H,I,J){const K=u.getLogger("esri.PopupTemplate");u=e.ofType({key:"type",defaultKeyValue:"button",base:A,typeMap:{button:B,toggle:E}});const N={base:I,key:"type",typeMap:{media:w,custom:J,text:D,attachments:C,fields:F,expression:G,relationship:H}},U="attachments fields media text expression relationship".split(" ");c=function(ba){function ka(){var V=ba.apply(this,arguments)||this;V.actions=null;V.content="";V.expressionInfos=null;V.fieldInfos=
null;V.layerOptions=null;V.lastEditInfoEnabled=!0;V.outFields=null;V.overwriteActions=!1;V.returnGeometry=!1;V.title="";return V}a._inheritsLoose(ka,ba);var P=ka.prototype;P.castContent=function(V){if(Array.isArray(V))return V.map(ca=>m.ensureOneOfType(N,ca));if("string"===typeof V||"function"===typeof V||V instanceof HTMLElement||r.isPromiseLike(V))return V;K.error("content error","unsupported content value",{value:V});return null};P.readContent=function(V,ca){({popupElements:V}=ca);return Array.isArray(V)&&
0<V.length?this._readPopupInfoElements(ca.description,ca.mediaInfos,V):this._readPopupInfo(ca)};P.writeContent=function(V,ca,ra,ta){"string"===typeof V?ca.description=V:Array.isArray(V)&&(ca.popupElements=V.filter(Ba=>U.includes(Ba.type)).map(Ba=>Ba&&Ba.toJSON(ta)),ca.popupElements.forEach(Ba=>{"attachments"===Ba.type?this._writeAttachmentContent(ca):"media"===Ba.type?this._writeMediaContent(Ba,ca):"text"===Ba.type?this._writeTextContent(Ba,ca):"relationship"===Ba.type&&this._writeRelationshipContent(Ba,
ca)}))};P.writeFieldInfos=function(V,ca,ra,ta){({content:ra}=this);ra=Array.isArray(ra)?ra:null;if(V){const Ba=ra?ra.filter(da=>"fields"===da.type):[],Ha=Ba.length&&Ba.every(da=>da.fieldInfos?.length);ca.fieldInfos=V.filter(Boolean).map(da=>{da=da.toJSON(ta);Ha&&(da.visible=!1);return da})}if(ra)for(const Ba of ra)"fields"===Ba.type&&this._writeFieldsContent(Ba,ca)};P.writeLayerOptions=function(V,ca,ra,ta){ca[ra]=!V||null===V.showNoDataRecords&&null===V.returnTopmostRaster?null:V.toJSON(ta)};P.writeTitle=
function(V,ca){ca.title=V||""};P.collectRequiredFields=function(){var V=a._asyncToGenerator(function*(ca,ra){const ta=this.expressionInfos||[];yield this._collectExpressionInfoFields(ca,ra,[...ta,...this._getContentExpressionInfos(this.content,ta)]);t.collectFields(ca,ra,[...(this.outFields||[]),...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])});return function(ca,ra){return V.apply(this,arguments)}}();P.getRequiredFields=function(){var V=
a._asyncToGenerator(function*(ca){const ra=new Set;yield this.collectRequiredFields(ra,ca);return[...ra].sort()});return function(ca){return V.apply(this,arguments)}}();P._writeFieldsContent=function(V,ca){Array.isArray(V.fieldInfos)&&V.fieldInfos.length&&(V=n.clone(V.fieldInfos),Array.isArray(ca.fieldInfos)?V.forEach(ra=>{const ta=ca.fieldInfos.find(Ba=>Ba.fieldName.toLowerCase()===ra.fieldName.toLowerCase());ta?ta.visible=!0:ca.fieldInfos.push(ra)}):ca.fieldInfos=V)};P._writeAttachmentContent=function(V){V.showAttachments||
(V.showAttachments=!0)};P._writeRelationshipContent=function(V,ca){var ra=V.orderByFields?.map(ta=>this._toFieldOrderJSON(ta,V.relationshipId))||[];ra=[...(ca.relatedRecordsInfo?.orderByFields||[]),...ra];ca.relatedRecordsInfo={showRelatedRecords:!0,...(ra?.length&&{orderByFields:ra})}};P._writeTextContent=function(V,ca){!ca.description&&V.text&&(ca.description=V.text)};P._writeMediaContent=function(V,ca){Array.isArray(V.mediaInfos)&&V.mediaInfos.length&&(V=n.clone(V.mediaInfos),Array.isArray(ca.mediaInfos)?
ca.mediaInfos=[...ca.mediaInfos,...V]:ca.mediaInfos=V)};P._readPopupInfoElements=function(V,ca,ra){var ta=!1,Ba=!1;return ra.map(Ha=>{if("media"===Ha.type)return Ha.mediaInfos||!ca||Ba||(Ha.mediaInfos=ca,Ba=!0),w.fromJSON(Ha);if("text"===Ha.type)return Ha.text||!V||ta||(Ha.text=V,ta=!0),D.fromJSON(Ha);if("attachments"===Ha.type)return C.fromJSON(Ha);if("fields"===Ha.type)return F.fromJSON(Ha);if("expression"===Ha.type)return G.fromJSON(Ha);if("relationship"===Ha.type)return H.fromJSON(Ha)}).filter(Boolean)};
P._toRelationshipContent=function(V){const {field:ca,order:ra}=V;if(!ca?.startsWith("relationships/"))return null;var ta=ca.replace("relationships/","").split("/");if(2!==ta.length)return null;V=parseInt(ta[0],10);ta=ta[1];return"number"===typeof V&&ta?H.fromJSON({relationshipId:V,orderByFields:[{field:ta,order:ra}]}):null};P._toFieldOrderJSON=function(V,ca){const {order:ra,field:ta}=V;return{field:`${"relationships/"}${ca}/${ta}`,order:ra}};P._readPopupInfo=function({description:V,mediaInfos:ca,
showAttachments:ra,relatedRecordsInfo:ta={showRelatedRecords:!1}}){const Ba=[];V?Ba.push(new D({text:V})):Ba.push(new F);Array.isArray(ca)&&ca.length&&Ba.push(w.fromJSON({mediaInfos:ca}));ra&&Ba.push(C.fromJSON({displayType:"auto"}));const {showRelatedRecords:Ha,orderByFields:da}=ta;Ha&&da?.length&&da.forEach(la=>{(la=this._toRelationshipContent(la))&&Ba.push(la)});return Ba.length?Ba:V};P._getContentElementFields=function(V){var ca=V?.type;return"attachments"===ca?[...this._extractFieldNames(V.title),
...this._extractFieldNames(V.description)]:"custom"===ca?V.outFields||[]:"fields"===ca?[...this._extractFieldNames(V.title),...this._extractFieldNames(V.description),...this._getFieldInfoFields(V.fieldInfos??this.fieldInfos)]:"media"===ca?(ca=V.mediaInfos||[],[...this._extractFieldNames(V.title),...this._extractFieldNames(V.description),...ca.reduce((ra,ta)=>[...ra,...this._getMediaInfoFields(ta)],[])]):"text"===ca?this._extractFieldNames(V.text):[]};P._getMediaInfoFields=function(V){const {caption:ca,
title:ra,value:ta}=V,{fields:Ba,normalizeField:Ha,tooltipField:da,sourceURL:la,linkURL:sa}=ta||{};V=[...this._extractFieldNames(ra),...this._extractFieldNames(ca),...this._extractFieldNames(la),...this._extractFieldNames(sa),...(Ba??[])];Ha&&V.push(Ha);da&&V.push(da);return V};P._getContentExpressionInfos=function(V,ca){return Array.isArray(V)?V.reduce((ra,ta)=>[...ra,...("expression"===ta.type&&ta.expressionInfo?[ta.expressionInfo]:[])],ca):[]};P._getContentFields=function(V){return"string"===typeof V?
this._extractFieldNames(V):Array.isArray(V)?V.reduce((ca,ra)=>[...ca,...this._getContentElementFields(ra)],[]):[]};P._collectExpressionInfoFields=function(){var V=a._asyncToGenerator(function*(ca,ra,ta){ta&&(yield Promise.all(ta.map(Ba=>t.collectArcadeFieldNames(ca,ra,Ba.expression))))});return function(ca,ra,ta){return V.apply(this,arguments)}}();P._getFieldInfoFields=function(V){return V?V.filter(ca=>"undefined"===typeof ca.visible?!0:!!ca.visible).map(ca=>ca.fieldName).filter(ca=>!ca.startsWith("relationships/")&&
!ca.startsWith("expression/")):[]};P._getActionsFields=function(V){return V?V.toArray().reduce((ca,ra)=>[...ca,...this._getActionFields(ra)],[]):[]};P._getActionFields=function(V){const {className:ca,title:ra,type:ta}=V;V="button"===ta||"toggle"===ta?V.image:"";return[...this._extractFieldNames(ra),...this._extractFieldNames(ca),...this._extractFieldNames(V)]};P._getTitleFields=function(V){return"string"===typeof V?this._extractFieldNames(V):[]};P._extractFieldNames=function(V){if(!V||"string"!==
typeof V)return[];V=V.match(/{[^}]*}/g);if(!V)return[];const ca=/\{(\w+):.+\}/;return(V=V.filter(ra=>!(0===ra.indexOf("{relationships/")||0===ra.indexOf("{expression/"))).map(ra=>ra.replace(ca,"{$1}")))?V.map(ra=>ra.slice(1,-1)):[]};return ka}(c.ClonableMixin(d.JSONSupport));b.__decorate([h.property({type:u})],c.prototype,"actions",void 0);b.__decorate([h.property()],c.prototype,"content",void 0);b.__decorate([g.cast("content")],c.prototype,"castContent",null);b.__decorate([k.reader("content","description fieldInfos popupElements mediaInfos showAttachments relatedRecordsInfo".split(" "))],
c.prototype,"readContent",null);b.__decorate([l.writer("content",{popupElements:{type:e.ofType(f.persistableTypes)},showAttachments:{type:Boolean},mediaInfos:{type:e.ofType(y.types)},description:{type:String},relatedRecordsInfo:{type:z}})],c.prototype,"writeContent",null);b.__decorate([h.property({type:[q],json:{write:!0}})],c.prototype,"expressionInfos",void 0);b.__decorate([h.property({type:[v]})],c.prototype,"fieldInfos",void 0);b.__decorate([l.writer("fieldInfos")],c.prototype,"writeFieldInfos",
null);b.__decorate([h.property({type:x})],c.prototype,"layerOptions",void 0);b.__decorate([l.writer("layerOptions")],c.prototype,"writeLayerOptions",null);b.__decorate([h.property({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],c.prototype,"lastEditInfoEnabled",void 0);b.__decorate([h.property()],c.prototype,"outFields",void 0);b.__decorate([h.property()],c.prototype,"overwriteActions",void 0);b.__decorate([h.property()],c.prototype,"returnGeometry",
void 0);b.__decorate([h.property({json:{type:String}})],c.prototype,"title",void 0);b.__decorate([l.writer("title")],c.prototype,"writeTitle",null);return c=b.__decorate([p.subclass("esri.PopupTemplate")],c)})},"esri/popup/content":function(){define("exports ./content/AttachmentsContent ./content/Content ./content/CustomContent ./content/ExpressionContent ./content/FieldsContent ./content/MediaContent ./content/RelationshipContent ./content/TextContent".split(" "),function(a,b,c,e,d,n,u,r,h){const g=
{base:null,key:"type",typeMap:{attachment:b,media:u,text:h,expression:d,field:n,relationship:r}};a.AttachmentsContent=b;a.BaseContent=c;a.CustomContent=e;a.ExpressionContent=d;a.FieldsContent=n;a.MediaContent=u;a.RelationshipContent=r;a.TextContent=h;a.isContent=function(k){return k instanceof c};a.persistableTypes=g;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/popup/content/AttachmentsContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.description=null;k.displayType="auto";k.title=null;k.type="attachments";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({description:this.description,displayType:this.displayType,title:this.title})};return g}(u);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"description",void 0);b.__decorate([c.property({type:["auto","preview","list"],json:{write:!0}})],e.prototype,
"displayType",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"title",void 0);b.__decorate([c.property({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.popup.content.AttachmentsContent")],e)})},"esri/popup/content/Content":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.type=null;return g}a._inheritsLoose(h,r);return h}(c.JSONSupport);b.__decorate([e.property({type:"attachments custom fields media text expression relationship".split(" "),readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.popup.content.Content")],c)})},"esri/popup/content/CustomContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
function(a,b,c,e,d,n,u){var r;d=r=function(h){function g(k){k=h.call(this,k)||this;k.creator=null;k.destroyer=null;k.outFields=null;k.type="custom";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?c.clone(this.outFields):null})};return g}(u);b.__decorate([e.property()],d.prototype,"creator",void 0);b.__decorate([e.property()],d.prototype,"destroyer",void 0);b.__decorate([e.property()],d.prototype,
"outFields",void 0);b.__decorate([e.property({type:["custom"],readOnly:!0})],d.prototype,"type",void 0);return d=r=b.__decorate([n.subclass("esri.popup.content.CustomContent")],d)})},"esri/popup/content/ExpressionContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../ElementExpressionInfo ./Content".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.expressionInfo=null;p.type="expression";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({expressionInfo:this.expressionInfo?.clone()})};return k}(r);b.__decorate([c.property({type:u,json:{write:!0}})],e.prototype,"expressionInfo",void 0);b.__decorate([c.property({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=h=b.__decorate([n.subclass("esri.popup.content.ExpressionContent")],
e)})},"esri/popup/ElementExpressionInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.title=null;k.expression=null;k.returnType="dictionary";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({title:this.title,
expression:this.expression})};return g}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([e.property({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"returnType",void 0);return c=r=b.__decorate([u.subclass("esri.popup.ElementExpressionInfo")],c)})},"esri/popup/content/FieldsContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../FieldInfo ./Content".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;d=g=function(k){function p(m){m=k.call(this,m)||this;m.attributes=null;m.description=null;m.fieldInfos=null;m.title=null;m.type="fields";return m}a._inheritsLoose(p,k);var l=p.prototype;l.writeFieldInfos=function(m,t){t.fieldInfos=m&&m.map(f=>f.toJSON())};l.clone=function(){return new g(c.clone({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))};return p}(h);b.__decorate([e.property({type:Object,json:{write:!0}})],
d.prototype,"attributes",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"description",void 0);b.__decorate([e.property({type:[r]})],d.prototype,"fieldInfos",void 0);b.__decorate([u.writer("fieldInfos")],d.prototype,"writeFieldInfos",null);b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"title",void 0);b.__decorate([e.property({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],d.prototype,"type",void 0);return d=g=b.__decorate([n.subclass("esri.popup.content.FieldsContent")],
d)})},"esri/popup/FieldInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./support/FieldInfoFormat".split(" "),function(a,b,c,e,d,n,u,r,h,g){var k;e=k=function(p){function l(m){m=p.call(this,m)||this;m.fieldName=null;m.format=null;m.isEditable=!1;m.label=
null;m.stringFieldOption="text-box";m.statisticType=null;m.tooltip=null;m.visible=!0;return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new k({fieldName:this.fieldName,format:this.format?d.clone(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})};return l}(e.JSONSupport);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"fieldName",void 0);
b.__decorate([n.property({type:g,json:{write:!0}})],e.prototype,"format",void 0);b.__decorate([n.property({type:Boolean,json:{write:!0,default:!1}})],e.prototype,"isEditable",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"label",void 0);b.__decorate([r.enumeration(new c.JSONMap({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],e.prototype,"stringFieldOption",void 0);b.__decorate([n.property({type:"count sum min max avg stddev var".split(" "),
json:{write:!0}})],e.prototype,"statisticType",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"tooltip",void 0);b.__decorate([n.property({type:Boolean,json:{write:!0}})],e.prototype,"visible",void 0);return e=k=b.__decorate([h.subclass("esri.popup.FieldInfo")],e)})},"esri/popup/support/FieldInfoFormat":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/date ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../intl/date ../../intl/number".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;e=p=function(l){function m(f){f=l.call(this,f)||this;f.dateFormat=null;f.dateTimeFormatOptions=null;f.digitSeparator=!1;f.places=null;return f}a._inheritsLoose(m,l);var t=m.prototype;t.clone=function(){return new p({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})};t.format=function(f){return this.dateFormat?g.formatDate(f,{...g.convertDateFormatToIntlOptions(this.dateFormat),...this.dateTimeFormatOptions}):k.formatNumber(f,k.convertNumberFormatToIntlOptions(this))};
t.formatRasterPixelValue=function(f){if(f.includes("-"))return f;let q;return f.trim().includes(",")?(q=",",this._formatDelimitedString(f,q,q+" ",this)):f.trim().includes(";")?(q=";",this._formatDelimitedString(f,q,q+" ",this)):f.trim().includes(" ")?this._formatDelimitedString(f," "," ",this):this.format(Number(f))};t._formatDelimitedString=function(f,q,v,x){return f&&q&&v&&x?f.trim().split(q).map(z=>this.format(Number(z))).join(v):f};return m}(e.JSONSupport);b.__decorate([r.enumeration(c.dictionary)],
e.prototype,"dateFormat",void 0);b.__decorate([d.property({type:Object,json:{read:!1}})],e.prototype,"dateTimeFormatOptions",void 0);b.__decorate([d.property({type:Boolean,json:{write:!0}})],e.prototype,"digitSeparator",void 0);b.__decorate([d.property({type:u.Integer,json:{write:!0}})],e.prototype,"places",void 0);return e=p=b.__decorate([h.subclass("esri.popup.support.FieldInfoFormat")],e)})},"esri/core/date":function(){define(["exports","./jsonMap"],function(a,b){const c={"short-date":"(datePattern: 'M/d/y', selector: 'date')",
"short-date-short-time":"(datePattern: 'M/d/y', timePattern: 'h:mm a', selector: 'date and time')","short-date-short-time-24":"(datePattern: 'M/d/y', timePattern: 'H:mm', selector: 'date and time')","short-date-long-time":"(datePattern: 'M/d/y', timePattern: 'h:mm:ss a', selector: 'date and time')","short-date-long-time-24":"(datePattern: 'M/d/y', timePattern: 'H:mm:ss', selector: 'date and time')","short-date-le":"(datePattern: 'd/M/y', selector: 'date')","short-date-le-short-time":"(datePattern: 'd/M/y', timePattern: 'h:mm a', selector: 'date and time')",
"short-date-le-short-time-24":"(datePattern: 'd/M/y', timePattern: 'H:mm', selector: 'date and time')","short-date-le-long-time":"(datePattern: 'd/M/y', timePattern: 'h:mm:ss a', selector: 'date and time')","short-date-le-long-time-24":"(datePattern: 'd/M/y', timePattern: 'H:mm:ss', selector: 'date and time')","long-month-day-year":"(datePattern: 'MMMM d, y', selector: 'date')","long-month-day-year-short-time":"(datePattern: 'MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')","long-month-day-year-short-time-24":"(datePattern: 'MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",
"long-month-day-year-long-time":"(datePattern: 'MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')","long-month-day-year-long-time-24":"(datePattern: 'MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')","day-short-month-year":"(datePattern: 'd MMM y', selector: 'date')","day-short-month-year-short-time":"(datePattern: 'd MMM y', timePattern: 'h:mm a', selector: 'date and time')","day-short-month-year-short-time-24":"(datePattern: 'd MMM y', timePattern: 'H:mm', selector: 'date and time')",
"day-short-month-year-long-time":"(datePattern: 'd MMM y', timePattern: 'h:mm:ss a', selector: 'date and time')","day-short-month-year-long-time-24":"(datePattern: 'd MMM y', timePattern: 'H:mm:ss', selector: 'date and time')","long-date":"(datePattern: 'EEEE, MMMM d, y', selector: 'date')","long-date-short-time":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm a', selector: 'date and time')","long-date-short-time-24":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm', selector: 'date and time')",
"long-date-long-time":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'h:mm:ss a', selector: 'date and time')","long-date-long-time-24":"(datePattern: 'EEEE, MMMM d, y', timePattern: 'H:mm:ss', selector: 'date and time')","long-month-year":"(datePattern: 'MMMM y', selector: 'date')","short-month-year":"(datePattern: 'MMM y', selector: 'date')",year:"(datePattern: 'y', selector: 'date')"};b=b.strict()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",
shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",
longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",
longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});const e=b.toJSON.bind(b),d=b.fromJSON.bind(b);a.dictionary=b;a.formats=c;a.fromJSON=d;a.getFormat=function(n){return c[n]};a.toJSON=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl/date":function(){define(["exports","../core/jsonMap","./locale"],function(a,b,c){function e(t){t=t||m;var f=l.get(t);f||(f=c.getLocale(),f=p[c.getLocale()]||f,f=new Intl.DateTimeFormat(f,
t),l.set(t,f));return f}var d={year:"numeric",month:"numeric",day:"numeric"},n={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"};const r={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},g={...h,second:"numeric"},k={"short-date":d,"short-date-short-time":{...d,...h},"short-date-short-time-24":{...d,...h,hour12:!1},"short-date-long-time":{...d,...g},"short-date-long-time-24":{...d,...g,hour12:!1},"short-date-le":d,
"short-date-le-short-time":{...d,...h},"short-date-le-short-time-24":{...d,...h,hour12:!1},"short-date-le-long-time":{...d,...g},"short-date-le-long-time-24":{...d,...g,hour12:!1},"long-month-day-year":n,"long-month-day-year-short-time":{...n,...h},"long-month-day-year-short-time-24":{...n,...h,hour12:!1},"long-month-day-year-long-time":{...n,...g},"long-month-day-year-long-time-24":{...n,...g,hour12:!1},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...h},"day-short-month-year-short-time-24":{...u,
...h,hour12:!1},"day-short-month-year-long-time":{...u,...g},"day-short-month-year-long-time-24":{...u,...g,hour12:!1},"long-date":r,"long-date-short-time":{...r,...h},"long-date-short-time-24":{...r,...h,hour12:!1},"long-date-long-time":{...r,...g},"long-date-long-time-24":{...r,...g,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":g};b=b.strict()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",
shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",
longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",
longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});d=b.apiValues;n=b.toJSON.bind(b);u=b.fromJSON.bind(b);const p={ar:"ar-u-nu-latn-ca-gregory"};let l=new WeakMap,m=k["short-date-short-time"];c.beforeLocaleChange(()=>{l=new WeakMap;m=k["short-date-short-time"]});a.convertDateFormatToIntlOptions=function(t){return t?k[t]:null};a.dateFormats=d;a.dictionary=b;a.formatDate=function(t,f){return e(f).format(t)};
a.fromJSON=u;a.getDateTimeFormatter=e;a.toJSON=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl/number":function(){define(["exports","../core/maybe","./locale"],function(a,b,c){function e(r){const h=r||u;if(!n.has(h)){var g=c.getLocale();g=d[c.getLocale()]||g;n.set(h,new Intl.NumberFormat(g,r))}return b.assumeNonNull(n.get(h))}const d={ar:"ar-u-nu-latn"};let n=new WeakMap,u={};c.beforeLocaleChange(()=>{n=new WeakMap;u={}});a.convertNumberFormatToIntlOptions=
function(r={}){const h={};null!=r.digitSeparator&&(h.useGrouping=r.digitSeparator);null!=r.places&&(h.minimumFractionDigits=h.maximumFractionDigits=r.places);return h};a.formatNumber=function(r,h){-0===r&&(r=0);return e(h).format(r)};a.getFormatter=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/popup/content/MediaContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./BarChartMediaInfo ./ColumnChartMediaInfo ./Content ./ImageMediaInfo ./LineChartMediaInfo ./PieChartMediaInfo ./support/mediaInfoTypes".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){var f;d=f=function(q){function v(z){z=q.call(this,z)||this;z.activeMediaInfoIndex=null;z.attributes=null;z.description=null;z.mediaInfos=null;z.title=null;z.type="media";return z}a._inheritsLoose(v,q);var x=v.prototype;x.readMediaInfos=function(z){return z&&z.map(y=>{if("image"===y.type)return p.fromJSON(y);if("barchart"===y.type)return h.fromJSON(y);if("columnchart"===y.type)return g.fromJSON(y);if("linechart"===y.type)return l.fromJSON(y);if("piechart"===
y.type)return m.fromJSON(y)}).filter(Boolean)};x.writeMediaInfos=function(z,y){y.mediaInfos=z&&z.map(A=>A.toJSON())};x.clone=function(){return new f(c.clone({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))};return v}(k);b.__decorate([e.property()],d.prototype,"activeMediaInfoIndex",void 0);b.__decorate([e.property({type:Object,json:{write:!0}})],d.prototype,"attributes",void 0);b.__decorate([e.property({type:String,
json:{write:!0}})],d.prototype,"description",void 0);b.__decorate([e.property({types:[t.types]})],d.prototype,"mediaInfos",void 0);b.__decorate([n.reader("mediaInfos")],d.prototype,"readMediaInfos",null);b.__decorate([r.writer("mediaInfos")],d.prototype,"writeMediaInfos",null);b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"title",void 0);b.__decorate([e.property({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],d.prototype,"type",void 0);return d=f=b.__decorate([u.subclass("esri.popup.content.MediaContent")],
d)})},"esri/popup/content/BarChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.type="bar-chart";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({altText:this.altText,
title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return k}(u);b.__decorate([c.property({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:r.chartTypeKebabDict.write}})],e.prototype,"type",void 0);return e=h=b.__decorate([n.subclass("esri.popup.content.BarChartMediaInfo")],e)})},"esri/popup/content/mixins/ChartMediaInfo":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./MediaInfo ../support/ChartMediaInfoValue".split(" "),
function(a,b,c,e,d,n,u,r){e=function(h){function g(k){k=h.call(this,k)||this;k.type=null;k.value=null;return k}a._inheritsLoose(g,h);return g}(u);b.__decorate([c.property({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],e.prototype,"type",void 0);b.__decorate([c.property({type:r,json:{write:!0}})],e.prototype,"value",void 0);return e=b.__decorate([n.subclass("esri.popup.content.mixins.ChartMediaInfo")],e)})},"esri/popup/content/mixins/MediaInfo":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.altText=null;g.caption="";g.title="";g.type=null;return g}a._inheritsLoose(h,r);return h}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"altText",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"caption",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);b.__decorate([e.property({type:["image","bar-chart","column-chart",
"line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.popup.content.mixins.MediaInfo")],c)})},"esri/popup/content/support/ChartMediaInfoValue":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/lang ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./ChartMediaInfoValueSeries".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.fields=[];p.normalizeField=null;p.series=[];p.tooltipField=null;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({fields:e.clone(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})};return k}(c.JSONSupport);b.__decorate([d.property({type:[String],json:{write:!0}})],c.prototype,"fields",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,
"normalizeField",void 0);b.__decorate([d.property({type:[r],json:{read:!1}})],c.prototype,"series",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"tooltipField",void 0);return c=h=b.__decorate([u.subclass("esri.popup.content.support.ChartMediaInfoValue")],c)})},"esri/popup/content/support/ChartMediaInfoValueSeries":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.fieldName=null;k.tooltip=null;k.value=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})};return g}(c);b.__decorate([e.property()],c.prototype,"fieldName",void 0);b.__decorate([e.property()],c.prototype,"tooltip",void 0);b.__decorate([e.property()],c.prototype,"value",void 0);return c=r=b.__decorate([u.subclass("esri.popup.content.support.ChartMediaInfoValueSeries")],
c)})},"esri/popup/content/support/chartMediaInfoUtils":function(){define(["exports","../../../core/jsonMap"],function(a,b){b=b.strict()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});a.chartTypeKebabDict=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/popup/content/ColumnChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.type="column-chart";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return k}(u);b.__decorate([c.property({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:r.chartTypeKebabDict.write}})],e.prototype,"type",void 0);return e=h=b.__decorate([n.subclass("esri.popup.content.ColumnChartMediaInfo")],
e)})},"esri/popup/content/ImageMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/MediaInfo ./support/ImageMediaInfoValue".split(" "),function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.refreshInterval=null;p.type="image";p.value=null;return p}a._inheritsLoose(k,
g);k.prototype.clone=function(){return new h({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})};return k}(u);b.__decorate([c.property({type:Number,json:{write:!0}})],e.prototype,"refreshInterval",void 0);b.__decorate([c.property({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],e.prototype,"type",void 0);b.__decorate([c.property({type:r,json:{write:!0}})],e.prototype,"value",void 0);return e=h=b.__decorate([n.subclass("esri.popup.content.ImageMediaInfo")],
e)})},"esri/popup/content/support/ImageMediaInfoValue":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.linkURL=null;k.sourceURL=null;return k}a._inheritsLoose(g,h);g.prototype.clone=
function(){return new r({linkURL:this.linkURL,sourceURL:this.sourceURL})};return g}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"linkURL",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"sourceURL",void 0);return c=r=b.__decorate([u.subclass("esri.popup.content.support.ImageMediaInfoValue")],c)})},"esri/popup/content/LineChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.type="line-chart";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return k}(u);b.__decorate([c.property({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:r.chartTypeKebabDict.write}})],e.prototype,"type",void 0);return e=h=b.__decorate([n.subclass("esri.popup.content.LineChartMediaInfo")],
e)})},"esri/popup/content/PieChartMediaInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./mixins/ChartMediaInfo ./support/chartMediaInfoUtils".split(" "),function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.type="pie-chart";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({altText:this.altText,
title:this.title,caption:this.caption,value:this.value?this.value.clone():null})};return k}(u);b.__decorate([c.property({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:r.chartTypeKebabDict.write}})],e.prototype,"type",void 0);return e=h=b.__decorate([n.subclass("esri.popup.content.PieChartMediaInfo")],e)})},"esri/popup/content/support/mediaInfoTypes":function(){define("exports ../BarChartMediaInfo ../ColumnChartMediaInfo ../ImageMediaInfo ../LineChartMediaInfo ../PieChartMediaInfo ../mixins/MediaInfo".split(" "),
function(a,b,c,e,d,n,u){a.types={base:u,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":b,"column-chart":c,"line-chart":d,"pie-chart":n,image:e}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/popup/content/RelationshipContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content ../support/RelatedRecordsInfoFieldOrder".split(" "),
function(a,b,c,e,d,n,u,r,h){c=function(g){function k(p){p=g.call(this,p)||this;p.description=null;p.displayCount=null;p.displayType="list";p.orderByFields=null;p.relationshipId=null;p.title=null;p.type="relationship";return p}a._inheritsLoose(k,g);return k}(c.ClonableMixin(r));b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([e.property({type:Number,json:{type:n.Integer,write:!0}})],c.prototype,"displayCount",void 0);b.__decorate([e.property({type:["list"],
json:{write:!0}})],c.prototype,"displayType",void 0);b.__decorate([e.property({type:[h],json:{write:!0}})],c.prototype,"orderByFields",void 0);b.__decorate([e.property({type:Number,json:{type:n.Integer,write:!0}})],c.prototype,"relationshipId",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);b.__decorate([e.property({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.popup.content.RelationshipContent")],
c)})},"esri/popup/support/RelatedRecordsInfoFieldOrder":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.field=null;k.order=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({field:this.field,
order:this.order})};return g}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"field",void 0);b.__decorate([e.property({type:["asc","desc"],json:{write:!0}})],c.prototype,"order",void 0);return c=r=b.__decorate([u.subclass("esri.popup.support.RelatedRecordsInfoFieldOrder")],c)})},"esri/popup/content/TextContent":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Content".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.text=null;k.type="text";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({text:this.text})};return g}(u);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"text",void 0);b.__decorate([c.property({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.popup.content.TextContent")],e)})},"esri/popup/ExpressionInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.name=null;k.title=null;k.expression=null;k.returnType=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})};return g}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);
b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([e.property({type:["string","number"],json:{write:!0}})],c.prototype,"returnType",void 0);return c=r=b.__decorate([u.subclass("esri.popup.ExpressionInfo")],c)})},"esri/popup/LayerOptions":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.returnTopmostRaster=null;k.showNoDataRecords=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})};return g}(c.JSONSupport);b.__decorate([e.property({type:Boolean,json:{write:!0}})],c.prototype,"returnTopmostRaster",void 0);b.__decorate([e.property({type:Boolean,json:{write:!0}})],c.prototype,"showNoDataRecords",
void 0);return c=r=b.__decorate([u.subclass("esri.popup.LayerOptions")],c)})},"esri/popup/RelatedRecordsInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/RelatedRecordsInfoFieldOrder".split(" "),function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.showRelatedRecords=null;
p.orderByFields=null;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?e.clone(this.orderByFields):null})};return k}(c.JSONSupport);b.__decorate([d.property({type:Boolean,json:{write:!0}})],c.prototype,"showRelatedRecords",void 0);b.__decorate([d.property({type:[r],json:{write:!0}})],c.prototype,"orderByFields",void 0);return c=h=b.__decorate([u.subclass("esri.popup.RelatedRecordsInfo")],c)})},"esri/support/actions/ActionBase":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Identifiable ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.active=!1;p.className=null;p.disabled=!1;p.id=null;p.indicator=!1;p.title=null;p.type=null;p.visible=!0;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})};return k}(e.IdentifiableMixin(c));b.__decorate([d.property()],c.prototype,"active",void 0);b.__decorate([d.property()],
c.prototype,"className",void 0);b.__decorate([d.property()],c.prototype,"disabled",void 0);b.__decorate([d.property()],c.prototype,"id",void 0);b.__decorate([d.property()],c.prototype,"indicator",void 0);b.__decorate([d.property()],c.prototype,"title",void 0);b.__decorate([d.property()],c.prototype,"type",void 0);b.__decorate([d.property()],c.prototype,"visible",void 0);return c=h=b.__decorate([r.subclass("esri.support.actions.ActionBase")],c)})},"esri/support/actions/ActionButton":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.image=null;k.type="button";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})};return g}(u);b.__decorate([c.property()],e.prototype,"image",void 0);return e=r=b.__decorate([n.subclass("esri.support.Action.ActionButton")],e)})},"esri/support/actions/ActionToggle":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ActionBase".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.image=null;k.type="toggle";k.value=!1;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})};return g}(u);b.__decorate([c.property()],e.prototype,"image",void 0);b.__decorate([c.property()],e.prototype,"value",void 0);return e=
r=b.__decorate([n.subclass("esri.support.Action.ActionToggle")],e)})},"esri/renderers/ClassBreaksRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../symbols ../core/jsonMap ../core/lang ../core/Logger ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/ensureType ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/ClassBreakInfo ./support/commonProperties ./support/LegendOptions ../support/arcadeOnDemand".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y){var A;e=new e.JSONMap({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});const B=m.ensureType(v);f=A=function(E){function w(C){C=E.call(this,C)||this;C._compiledValueExpression={valueExpression:null,compiledFunction:null};C.backgroundFillSymbol=null;C.classBreakInfos=null;C.defaultLabel=null;C.defaultSymbol=null;C.field=null;C.isMaxInclusive=!0;C.legendOptions=null;C.normalizationField=null;
C.normalizationTotal=null;C.type="class-breaks";C.valueExpression=null;C.valueExpressionTitle=null;C._set("classBreakInfos",[]);return C}a._inheritsLoose(w,E);var D=w.prototype;D.readClassBreakInfos=function(C,F,G){if(Array.isArray(C)){var H=F.minValue;return C.map(I=>{const J=new v;J.read(I,G);null==J.minValue&&(J.minValue=H);null==J.maxValue&&(J.maxValue=J.minValue);H=J.maxValue;return J})}};D.writeClassBreakInfos=function(C,F,G,H){C=C.map(I=>I.write({},H));this._areClassBreaksConsecutive()&&C.forEach(I=>
delete I.classMinValue);F[G]=C};D.castField=function(C){return null==C?C:"function"===typeof C?(n.getLogger(this.declaredClass).error(".field: field must be a string value"),null):m.ensureString(C)};D.addClassBreakInfo=function(C,F,G){let H=null;H="number"===typeof C?new v({minValue:C,maxValue:F,symbol:c.ensureType(G)}):B(d.clone(C));this.classBreakInfos.push(H);1===this.classBreakInfos.length&&this.notifyChange("minValue")};D.removeClassBreakInfo=function(C,F){const G=this.classBreakInfos.length;
for(let H=0;H<G;H++){const I=[this.classBreakInfos[H].minValue,this.classBreakInfos[H].maxValue];if(I[0]===C&&I[1]===F){this.classBreakInfos.splice(H,1);break}}};D.getBreakIndex=function(C,F){this.valueExpression&&(u.isNone(F)||u.isNone(F.arcade))&&n.getLogger(this.declaredClass).warn("");return this.valueExpression?this._getBreakIndexForExpression(C,F):this._getBreakIndexForField(C)};D.getClassBreakInfo=function(){var C=a._asyncToGenerator(function*(F,G){let H=G;this.valueExpression&&(u.isNone(G)||
u.isNone(G.arcade))&&(H={...H,arcade:yield y.loadArcade()});F=this.getBreakIndex(F,H);return-1!==F?this.classBreakInfos[F]:null});return function(F,G){return C.apply(this,arguments)}}();D.getSymbol=function(C,F){if(this.valueExpression&&(u.isNone(F)||u.isNone(F.arcade)))n.getLogger(this.declaredClass).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");else return C=this.getBreakIndex(C,F),-1<C?this.classBreakInfos[C].symbol:this.defaultSymbol};D.getSymbolAsync=function(){var C=
a._asyncToGenerator(function*(F,G){let H=G;if(this.valueExpression&&(u.isNone(G)||u.isNone(G.arcade))){G=yield y.loadArcade();const {arcadeUtils:I}=G;I.hasGeometryOperations(this.valueExpression)&&(yield I.enableGeometryOperations());H={...H,arcade:G}}F=this.getBreakIndex(F,H);return-1<F?this.classBreakInfos[F].symbol:this.defaultSymbol});return function(F,G){return C.apply(this,arguments)}}();D.getSymbols=function(){const C=[];this.classBreakInfos.forEach(F=>{F.symbol&&C.push(F.symbol)});this.defaultSymbol&&
C.push(this.defaultSymbol);return C};D.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((C,F)=>C+F.getAttributeHash(),"")};D.getMeshHash=function(){const C=JSON.stringify(this.backgroundFillSymbol),F=JSON.stringify(this.defaultSymbol),G=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`,H=this.classBreakInfos.reduce((I,J)=>I+J.getMeshHash(),"");return`${C}.${F}.${H}.${G}.${this.field}.${this.valueExpression}`};D.clone=function(){return new A({field:this.field,
backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:d.clone(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:d.clone(this.visualVariables),
legendOptions:d.clone(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})};D.collectRequiredFields=function(){var C=a._asyncToGenerator(function*(F,G){F=[this.collectVVRequiredFields(F,G),this.collectSymbolFields(F,G)];yield Promise.all(F)});return function(F,G){return C.apply(this,arguments)}}();D.collectSymbolFields=function(){var C=a._asyncToGenerator(function*(F,G){const H=[...this.getSymbols().map(I=>I.collectRequiredFields(F,G)),t.collectArcadeFieldNames(F,G,this.valueExpression)];
t.collectField(F,G,this.field);t.collectField(F,G,this.normalizationField);yield Promise.all(H)});return function(F,G){return C.apply(this,arguments)}}();D._getBreakIndexForExpression=function(C,F){const {viewingMode:G,scale:H,spatialReference:I,arcade:J}=u.unwrapOr(F,{});({valueExpression:F}=this);var K=this._compiledValueExpression.valueExpression===F?this._compiledValueExpression.compiledFunction:null;const N=u.unwrap(J).arcadeUtils;K||(K=N.createSyntaxTree(F),K=N.createFunction(K),this._compiledValueExpression.compiledFunction=
K);this._compiledValueExpression.valueExpression=F;C=N.executeFunction(K,N.createExecContext(C,N.getViewInfo({viewingMode:G,scale:H,spatialReference:I})));return this._getBreakIndexfromInfos(C)};D._getBreakIndexForField=function(C){var F=C.attributes;C=this.normalizationType;let G=parseFloat(F[this.field]);if(C){const H=this.normalizationTotal;F=parseFloat(this.normalizationField?F[this.normalizationField]:void 0);if("log"===C)G=Math.log(G)*Math.LOG10E;else if("percent-of-total"===C&&null!=H&&!isNaN(H))G=
G/H*100;else if("field"===C&&!isNaN(F)){if(isNaN(G)||isNaN(F))return-1;G/=F}}return this._getBreakIndexfromInfos(G)};D._getBreakIndexfromInfos=function(C){const F=this.isMaxInclusive;if(null!=C&&"number"===typeof C&&!isNaN(C))for(let G=0;G<this.classBreakInfos.length;G++){const H=[this.classBreakInfos[G].minValue,this.classBreakInfos[G].maxValue];if(H[0]<=C&&(F?C<=H[1]:C<H[1]))return G}return-1};D._areClassBreaksConsecutive=function(){const C=this.classBreakInfos,F=C.length;for(let G=1;G<F;G++)if(C[G-
1].maxValue!==C[G].minValue)return!1;return!0};a._createClass(w,[{key:"minValue",get:function(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}},{key:"normalizationType",get:function(){let C=this._get("normalizationType");const F=!!this.normalizationField,G=null!=this.normalizationTotal;if(F||G)C=F&&"field"||G&&"percent-of-total"||null,F&&G&&n.getLogger(this.declaredClass).warn("warning: both normalizationField and normalizationTotal are set!");else if("field"===
C||"percent-of-total"===C)C=null;return C},set:function(C){this._set("normalizationType",C)}},{key:"arcadeRequired",get:function(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}}]);return w}(q.VisualVariablesMixin(f));b.__decorate([r.property(x.rendererBackgroundFillSymbolProperty)],f.prototype,"backgroundFillSymbol",void 0);b.__decorate([r.property({type:[v]})],f.prototype,"classBreakInfos",void 0);b.__decorate([k.reader("classBreakInfos")],f.prototype,"readClassBreakInfos",
null);b.__decorate([l.writer("classBreakInfos")],f.prototype,"writeClassBreakInfos",null);b.__decorate([r.property({type:String,json:{write:!0}})],f.prototype,"defaultLabel",void 0);b.__decorate([r.property(x.rendererSymbolProperty)],f.prototype,"defaultSymbol",void 0);b.__decorate([r.property({type:String,json:{write:!0}})],f.prototype,"field",void 0);b.__decorate([h.cast("field")],f.prototype,"castField",null);b.__decorate([r.property({type:Boolean})],f.prototype,"isMaxInclusive",void 0);b.__decorate([r.property({type:z.LegendOptions,
json:{write:!0}})],f.prototype,"legendOptions",void 0);b.__decorate([r.property({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],f.prototype,"minValue",null);b.__decorate([r.property({type:String,json:{write:!0}})],f.prototype,"normalizationField",void 0);b.__decorate([r.property({type:Number,cast:E=>m.ensureNumber(E),json:{write:!0}})],f.prototype,"normalizationTotal",
void 0);b.__decorate([r.property({type:e.apiValues,value:null,json:{type:e.jsonValues,read:e.read,write:e.write}})],f.prototype,"normalizationType",null);b.__decorate([g.enumeration({classBreaks:"class-breaks"})],f.prototype,"type",void 0);b.__decorate([r.property({type:String,json:{write:!0}})],f.prototype,"valueExpression",void 0);b.__decorate([r.property({type:String,json:{write:!0}})],f.prototype,"valueExpressionTitle",void 0);return f=A=b.__decorate([p.subclass("esri.renderers.ClassBreaksRenderer")],
f)})},"esri/symbols":function(){define("exports ./core/accessorSupport/ensureType ./core/accessorSupport/extensions/serializableProperty/reader ./symbols/CIMSymbol ./symbols/ExtrudeSymbol3DLayer ./symbols/FillSymbol ./symbols/FillSymbol3DLayer ./symbols/Font ./symbols/IconSymbol3DLayer ./symbols/LabelSymbol3D ./symbols/LineSymbol3D ./symbols/LineSymbol3DLayer ./symbols/MarkerSymbol ./symbols/MeshSymbol3D ./symbols/ObjectSymbol3DLayer ./symbols/PathSymbol3DLayer ./symbols/PictureFillSymbol ./symbols/PictureMarkerSymbol ./symbols/PointSymbol3D ./symbols/PolygonSymbol3D ./symbols/SimpleFillSymbol ./symbols/SimpleLineSymbol ./symbols/SimpleMarkerSymbol ./symbols/Symbol ./symbols/Symbol3D ./symbols/Symbol3DLayer ./symbols/TextSymbol ./symbols/TextSymbol3DLayer ./symbols/WaterSymbol3DLayer ./symbols/WebStyleSymbol ./symbols/callouts/LineCallout3D ./chunks/LineCallout3DBorder".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C,F,G,H,I,J){const K={base:E,key:"type",typeMap:{"simple-fill":y,"picture-fill":q,"picture-marker":v,"simple-line":A,"simple-marker":B,text:C,"label-3d":g,"line-3d":k,"mesh-3d":m,"point-3d":x,"polygon-3d":z,"web-style":H,cim:e},errorContext:"symbol"},N={base:E,key:"type",typeMap:{"picture-marker":v,"simple-marker":B,text:C,"web-style":H,cim:e},errorContext:"symbol"};c=c.createTypeReader({types:K});const U={base:E,key:"type",typeMap:{"simple-fill":y,
"picture-fill":q,"picture-marker":v,"simple-line":A,"simple-marker":B,text:C,"line-3d":k,"mesh-3d":m,"point-3d":x,"polygon-3d":z,"web-style":H,cim:e},errorContext:"symbol"},ba={base:E,key:"type",typeMap:{text:C,"label-3d":g},errorContext:"symbol"},ka={base:E,key:"type",typeMap:{"label-3d":g,"line-3d":k,"mesh-3d":m,"point-3d":x,"polygon-3d":z,"web-style":H},errorContext:"symbol"},P={base:E,key:"type",typeMap:{"line-3d":k,"mesh-3d":m,"point-3d":x,"polygon-3d":z,"web-style":H,cim:e},errorContext:"symbol"},
V={base:E,key:"type",typeMap:{"label-3d":g},errorContext:"symbol"};b=b.ensureOneOfType(K);a.CIMSymbol=e;a.ExtrudeSymbol3DLayer=d;a.BaseFillSymbol=n;a.FillSymbol3DLayer=u;a.Font=r;a.IconSymbol3DLayer=h;a.LabelSymbol3D=g;a.LineSymbol3D=k;a.LineSymbol3DLayer=p;a.BaseMarkerSymbol=l;a.MeshSymbol3D=m;a.ObjectSymbol3DLayer=t;a.PathSymbol3DLayer=f;a.PictureFillSymbol=q;a.PictureMarkerSymbol=v;a.PointSymbol3D=x;a.PolygonSymbol3D=z;a.SimpleFillSymbol=y;a.SimpleLineSymbol=A;a.SimpleMarkerSymbol=B;a.BaseSymbol=
E;a.BaseSymbol3D=w;a.BaseSymbol3DLayer=D;a.TextSymbol=C;a.TextSymbol3DLayer=F;a.WaterSymbol3DLayer=G;a.WebStyleSymbol=H;a.LineCallout3D=I;a.LineCallout3DBorder=J.LineCallout3DBorder;a.ensureType=b;a.isSymbol=function(ca){return ca instanceof E};a.isSymbol2D=function(ca){if(!ca)return!1;switch(ca.type){case "picture-fill":case "picture-marker":case "simple-fill":case "simple-line":case "simple-marker":case "text":case "cim":return!0;default:return!1}};a.isSymbol3D=function(ca){if(!ca)return!1;switch(ca.type){case "label-3d":case "line-3d":case "mesh-3d":case "point-3d":case "polygon-3d":return!0;
default:return!1}};a.readSymbol=c;a.symbolTypes=K;a.symbolTypes3D=ka;a.symbolTypesCluster=N;a.symbolTypesLabel=ba;a.symbolTypesLabel3D=V;a.symbolTypesRenderer=U;a.symbolTypesRenderer3D=P;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/CIMSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/string ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Symbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;n=l=function(m){function t(q){q=m.call(this,q)||this;q.data=null;q.type="cim";return q}a._inheritsLoose(t,m);var f=t.prototype;f.readData=function(q,v){return v};f.writeData=function(q,v){if(q)for(const x in q)v[x]=q[x]};f.collectRequiredFields=function(){var q=a._asyncToGenerator(function*(v,x){if("CIMSymbolReference"===this.data?.type){var z=this.data.primitiveOverrides;z&&(z=z.map(y=>k.collectArcadeFieldNames(v,x,y.valueExpressionInfo.expression)),yield Promise.all(z))}});
return function(v,x){return q.apply(this,arguments)}}();f.clone=function(){return new l({data:c.clone(this.data)})};f.hash=function(){return e.numericHash(JSON.stringify(this.data)).toString()};return t}(p);b.__decorate([d.property({json:{write:!1}})],n.prototype,"color",void 0);b.__decorate([d.property({json:{write:!0}})],n.prototype,"data",void 0);b.__decorate([r.reader("data",["symbol"])],n.prototype,"readData",null);b.__decorate([g.writer("data",{})],n.prototype,"writeData",null);b.__decorate([u.enumeration({CIMSymbolReference:"cim"},
{readOnly:!0})],n.prototype,"type",void 0);return n=l=b.__decorate([h.subclass("esri.symbols.CIMSymbol")],n)})},"esri/symbols/Symbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h,g){e=new e.JSONMap({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 k=0;d=function(p){function l(t){t=p.call(this,t)||this;t.id=`sym${k++}`;t.type=null;t.color=new c([0,0,0,1]);return t}a._inheritsLoose(l,p);var m=l.prototype;m.readColor=function(t){return t&&
null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t};m.collectRequiredFields=function(){var t=a._asyncToGenerator(function*(f,q){});return function(f,q){return t.apply(this,arguments)}}();m.hash=function(){return JSON.stringify(this.toJSON())};m.clone=function(){};return l}(d.JSONSupport);b.__decorate([n.property({type:e.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:e.write}}})],d.prototype,"type",void 0);b.__decorate([n.property({type:c,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0);
b.__decorate([h.reader("color")],d.prototype,"readColor",null);return d=b.__decorate([g.subclass("esri.symbols.Symbol")],d)})},"esri/symbols/ExtrudeSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./support/Symbol3DMaterial".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;d=p=function(l){function m(t){t=l.call(this,t)||this;t.type="extrude";t.size=1;t.material=null;t.castShadows=!0;t.edges=null;return t}a._inheritsLoose(m,l);m.prototype.clone=function(){return new p({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:c.isSome(this.material)?this.material.clone():null,castShadows:this.castShadows,size:this.size})};return m}(h);b.__decorate([u.enumeration({Extrude:"extrude"},{readOnly:!0})],d.prototype,"type",void 0);
b.__decorate([e.property({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],d.prototype,"size",void 0);b.__decorate([e.property({type:k.Symbol3DMaterial,json:{write:!0}})],d.prototype,"material",void 0);b.__decorate([e.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],d.prototype,"castShadows",void 0);b.__decorate([e.property(g.symbol3dEdgesProperty)],d.prototype,"edges",void 0);return d=p=b.__decorate([r.subclass("esri.symbols.ExtrudeSymbol3DLayer")],d)})},"esri/symbols/Symbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,e,d,n,u,r){c=function(h){function g(k){k=h.call(this,k)||this;k.enabled=!0;k.type=null;return k}a._inheritsLoose(g,h);g.prototype.writeEnabled=function(k,p,l){k||(p[l]=k)};return g}(c.JSONSupport);b.__decorate([e.property({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],c.prototype,"enabled",void 0);b.__decorate([r.writer("enabled")],c.prototype,"writeEnabled",null);b.__decorate([e.property({type:"icon object line path fill water extrude text".split(" "),readOnly:!0})],
c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.symbols.Symbol3DLayer")],c)})},"esri/symbols/edges/utils":function(){define(["exports","./Edges3D","./SketchEdges3D","./SolidEdges3D"],function(a,b,c,e){a.symbol3dEdgesProperty={types:{key:"type",base:b,typeMap:{solid:e,sketch:c}},json:{write:!0}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/edges/Edges3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){e=function(k){function p(m){m=k.call(this,m)||this;m.color=new c([0,0,0,1]);m.extensionLength=0;m.size=n.px2pt(1);return m}a._inheritsLoose(p,k);var l=p.prototype;l.clone=function(){};l.cloneProperties=function(){return{color:d.clone(this.color),size:this.size,extensionLength:this.extensionLength}};return p}(e.JSONSupport);b.__decorate([u.property({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],e.prototype,"type",void 0);b.__decorate([u.property(g.colorAndTransparencyProperty)],
e.prototype,"color",void 0);b.__decorate([u.property({...g.screenSizeProperty,json:{write:{overridePolicy(k){return{enabled:!!k}}}}})],e.prototype,"extensionLength",void 0);b.__decorate([u.property(g.screenSizeProperty)],e.prototype,"size",void 0);return e=b.__decorate([h.subclass("esri.symbols.edges.Edges3D")],e)})},"esri/core/screenUtils":function(){define(["exports"],function(a){function b(e){return e?72*e/96:0}const c=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;a.castRenderScreenPointArray=function(e){return e};
a.castRenderScreenPointArray3=function(e){return e};a.castScreenPointArray=function(e){return e};a.createRenderScreenPoint=function(e=0,d=0){return{x:e,y:d}};a.createRenderScreenPointArray=function(e=0,d=0){return[e,d]};a.createRenderScreenPointArray3=function(e=0,d=0,n=0){return[e,d,n]};a.createScreenPoint=function(e=0,d=0){return{x:e,y:d}};a.createScreenPointArray=function(e=0,d=0){return[e,d]};a.pt2px=function(e){return e?e/72*96:0};a.px2pt=b;a.screenPointArrayToObject=function(e,d){return d?(d.x=
e[0],d.y=e[1],d):{x:e[0],y:e[1]}};a.screenPointObjectToArray=function(e,d){return d?(d[0]=e.x,d[1]=e.y,2<d.length&&(d[2]=0),d):[e.x,e.y]};a.toPt=function(e){if("string"===typeof e){var d=e.match(c);if(d){var n=Number(d[1]);d=d[3]&&d[3].toLowerCase();e="-"===e.charAt(0);n="px"===d?b(n):n;return e?-n:n}console.warn("screenUtils.toPt: input not recognized!");return null}return e};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/materialUtils":function(){define(["exports",
"../../Color","../../core/screenUtils","../../core/accessorSupport/ensureType","../../webdoc/support/opacityUtils"],function(a,b,c,e,d){c={type:Number,cast:c.toPt,json:{write:!0}};a.colorAndTransparencyProperty={type:b,json:{type:[e.Integer],default:null,read:{source:["color","transparency"],reader:function(n,u){n=null!=u.transparency?d.transparencyToOpacity(u.transparency):1;return(u=u.color)&&Array.isArray(u)?new b([u[0]||0,u[1]||0,u[2]||0,n]):null}},write:{target:{color:{type:[e.Integer]},transparency:{type:e.Integer}},
writer:function(n,u){u.color=n.toJSON().slice(0,3);n=d.opacityToTransparency(n.a);0!==n&&(u.transparency=n)}}}};a.screenSizeProperty=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/edges/SketchEdges3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/Error ../../core/has ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=k=function(p){function l(m){m=p.call(this,m)||this;m.type="sketch";return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new k(this.cloneProperties())};return l}(g);b.__decorate([r.enumeration({sketch:"sketch"},{readOnly:!0})],c.prototype,"type",void 0);return c=k=b.__decorate([h.subclass("esri.symbols.edges.SketchEdges3D")],c)})},"esri/symbols/edges/SolidEdges3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/Error ../../core/has ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Edges3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=k=function(p){function l(m){m=p.call(this,m)||this;m.type="solid";return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new k(this.cloneProperties())};return l}(g);b.__decorate([r.enumeration({solid:"solid"},{readOnly:!0})],c.prototype,"type",void 0);return c=k=b.__decorate([h.subclass("esri.symbols.support.SolidEdges3D")],c)})},"esri/symbols/support/Symbol3DMaterial":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;a.Symbol3DMaterial=k=function(p){function l(m){m=p.call(this,m)||this;m.color=null;return m}b._inheritsLoose(l,p);l.prototype.clone=function(){const m={color:d.isSome(this.color)?this.color.clone():null};return new k(m)};return l}(e.JSONSupport);c.__decorate([n.property(g.colorAndTransparencyProperty)],a.Symbol3DMaterial.prototype,"color",void 0);a.Symbol3DMaterial=k=c.__decorate([h.subclass("esri.symbols.support.Symbol3DMaterial")],a.Symbol3DMaterial);Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/FillSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./SimpleLineSymbol ./Symbol".split(" "),function(a,b,c,e,d,n,u,r){e=function(h){function g(k){k=h.call(this,k)||this;k.outline=null;k.type=null;return k}a._inheritsLoose(g,h);g.prototype.hash=
function(){return`${this.type}.${this.outline&&this.outline.hash()}`};return g}(r);b.__decorate([c.property({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":u}},json:{default:null,write:!0}})],e.prototype,"outline",void 0);b.__decorate([c.property({type:["simple-fill","picture-fill"],readOnly:!0})],e.prototype,"type",void 0);return e=b.__decorate([n.subclass("esri.symbols.FillSymbol")],e)})},"esri/symbols/SimpleLineSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol ./LineSymbolMarker".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;c=new c.JSONMap({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});g=p=function(l){function m(...f){f=l.call(this,...f)||this;f.type="simple-line";
f.style="solid";f.cap="round";f.join="round";f.marker=null;f.miterLimit=2;return f}a._inheritsLoose(m,l);var t=m.prototype;t.normalizeCtorArgs=function(f,q,v,x,z,y){if(f&&"string"!==typeof f)return f;const A={};null!=f&&(A.style=f);null!=q&&(A.color=q);null!=v&&(A.width=d.toPt(v));null!=x&&(A.cap=x);null!=z&&(A.join=z);null!=y&&(A.miterLimit=d.toPt(y));return A};t.clone=function(){return new p({color:e.clone(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,
marker:this.marker?.clone()})};t.hash=function(){return`${l.prototype.hash.call(this)}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`};return m}(g);b.__decorate([r.enumeration({esriSLS:"simple-line"},{readOnly:!0})],g.prototype,"type",void 0);b.__decorate([n.property({type:c.apiValues,json:{read:c.read,write:c.write}})],g.prototype,"style",void 0);b.__decorate([n.property({type:["butt","round","square"],json:{write:{overridePolicy:(l,m,t)=>
({enabled:"round"!==l&&(null==t||null==t.origin)})}}})],g.prototype,"cap",void 0);b.__decorate([n.property({type:["miter","round","bevel"],json:{write:{overridePolicy:(l,m,t)=>({enabled:"round"!==l&&(null==t||null==t.origin)})}}})],g.prototype,"join",void 0);b.__decorate([n.property({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":k}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],g.prototype,"marker",void 0);b.__decorate([n.property({type:Number,json:{read:!1,
write:!1}})],g.prototype,"miterLimit",void 0);return g=p=b.__decorate([h.subclass("esri.symbols.SimpleLineSymbol")],g)})},"esri/symbols/LineSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),function(a,b,c,e,d,n,u,r,h){d=function(g){function k(p){p=
g.call(this,p)||this;p.type="simple-line";p.width=.75;return p}a._inheritsLoose(k,g);k.prototype.hash=function(){return`${this.type}.${this.width}`};return k}(h);b.__decorate([u.enumeration({esriSLS:"simple-line"},{readOnly:!0})],d.prototype,"type",void 0);b.__decorate([e.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"width",void 0);return d=b.__decorate([r.subclass("esri.symbols.LineSymbol")],d)})},"esri/symbols/LineSymbolMarker":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./support/lineMarkers".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;e=l=function(m){function t(q){q=m.call(this,q)||this;q.placement="begin-end";q.type="line-marker";q.style="arrow";return q}a._inheritsLoose(t,m);var f=t.prototype;f.writeStyle=function(q,v,x,z){v[x]="web-map"===z?.origin?"arrow":q};f.readColor=function(q){return q&&null!=q[0]?[q[0],q[1],q[2],q[3]/255]:q};f.writeColor=function(q,v,x,z){"web-map"!==z?.origin&&(v[x]=q)};f.clone=function(){return new l({color:d.clone(this.color),placement:this.placement,style:this.style})};
f.hash=function(){return`${this.placement}.${this.color?.hash()}.${this.style}`};a._createClass(t,[{key:"color",set:function(q){this._set("color",q)}}]);return t}(e.JSONSupport);b.__decorate([n.property({type:["begin","end","begin-end"],json:{write:!0}})],e.prototype,"placement",void 0);b.__decorate([r.enumeration({"line-marker":"line-marker"},{readOnly:!0}),n.property({json:{origins:{"web-map":{write:!1}}}})],e.prototype,"type",void 0);b.__decorate([n.property({type:p.lineMarkerStyles})],e.prototype,
"style",void 0);b.__decorate([k.writer("style")],e.prototype,"writeStyle",null);b.__decorate([n.property({type:c,value:null,json:{write:{allowNull:!0}}})],e.prototype,"color",null);b.__decorate([h.reader("color")],e.prototype,"readColor",null);b.__decorate([k.writer("color")],e.prototype,"writeColor",null);return e=l=b.__decorate([g.subclass("esri.symbols.LineSymbolMarker")],e)})},"esri/symbols/support/lineMarkers":function(){define(["exports"],function(a){a.lineMarkerPlacements=["begin","end","begin-end"];
a.lineMarkerStyles="arrow circle square diamond cross x".split(" ");Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/FillSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./edges/utils ./patterns/LineStylePattern3D ./patterns/StylePattern3D ./patterns/utils ./support/colors ./support/Symbol3DFillMaterial ./support/Symbol3DOutline".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f){var q;d=q=function(v){function x(z){z=v.call(this,z)||this;z.type="fill";z.material=null;z.pattern=null;z.castShadows=!0;z.outline=null;z.edges=null;return z}a._inheritsLoose(x,v);x.prototype.clone=function(){const z={edges:c.isSome(this.edges)?this.edges.clone():null,enabled:this.enabled,material:c.isSome(this.material)?this.material.clone():null,pattern:c.isSome(this.pattern)?this.pattern.clone():null,castShadows:this.castShadows,outline:c.isSome(this.outline)?
this.outline.clone():null};return new q(z)};x.fromSimpleFillSymbol=function(z){const y=z.outline&&z.outline.style&&"inside-frame"!==z.outline.style&&"solid"!==z.outline.style?new k({style:z.outline.style}):null,A={size:z.outline?.width??0,color:(z.outline?.color??m.white).clone(),pattern:y};y&&z.outline?.cap&&(A.patternCap=z.outline.cap);return new q({material:new t.Symbol3DFillMaterial({color:(z.color??m.transparentWhite).clone()}),pattern:z.style&&"solid"!==z.style?new p({style:z.style}):null,outline:A})};
return x}(h);b.__decorate([u.enumeration({Fill:"fill"},{readOnly:!0})],d.prototype,"type",void 0);b.__decorate([e.property({type:t.Symbol3DFillMaterial,json:{write:!0}})],d.prototype,"material",void 0);b.__decorate([e.property(l.symbol3dPatternProperty)],d.prototype,"pattern",void 0);b.__decorate([e.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],d.prototype,"castShadows",void 0);b.__decorate([e.property({type:f.Symbol3DOutline,json:{write:!0}})],d.prototype,"outline",void 0);
b.__decorate([e.property(g.symbol3dEdgesProperty)],d.prototype,"edges",void 0);return d=q=b.__decorate([r.subclass("esri.symbols.FillSymbol3DLayer")],d)})},"esri/symbols/patterns/LineStylePattern3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./LinePattern3D ./lineStyles".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=c.strict()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});h=k=function(p){function l(m){m=p.call(this,m)||this;m.type="style";m.style="solid";return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new k({style:this.style})};
return l}(h);b.__decorate([e.property({type:["style"]})],h.prototype,"type",void 0);b.__decorate([u.enumeration(c),e.property({type:g.lineStyles})],h.prototype,"style",void 0);return h=k=b.__decorate([r.subclass("esri.symbols.patterns.LineStylePattern3D")],h)})},"esri/symbols/patterns/LinePattern3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){return r.call(this,g)||this}a._inheritsLoose(h,r);h.prototype.clone=function(){};return h}(c.JSONSupport);b.__decorate([e.property({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.symbols.patterns.LinePattern3D")],c)})},"esri/symbols/patterns/lineStyles":function(){define(["exports"],function(a){a.lineStyles="dash dash-dot dot long-dash long-dash-dot long-dash-dot-dot none short-dash short-dash-dot short-dash-dot-dot short-dot solid".split(" ");
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/patterns/StylePattern3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Pattern3D ./styles".split(" "),function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.type="style";p.style=
"solid";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({style:this.style})};return k}(u);b.__decorate([c.property({type:["style"]})],e.prototype,"type",void 0);b.__decorate([c.property({type:r,json:{read:!0,write:!0}})],e.prototype,"style",void 0);return e=h=b.__decorate([n.subclass("esri.symbols.patterns.StylePattern3D")],e)})},"esri/symbols/patterns/Pattern3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){return r.call(this,g)||this}a._inheritsLoose(h,r);h.prototype.clone=function(){};return h}(c.JSONSupport);b.__decorate([e.property({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.symbols.patterns.Pattern3D")],c)})},"esri/symbols/patterns/styles":function(){define(function(){return"backward-diagonal cross diagonal-cross forward-diagonal horizontal none solid vertical".split(" ")})},
"esri/symbols/patterns/utils":function(){define(["exports","./LinePattern3D","./LineStylePattern3D","./Pattern3D","./StylePattern3D"],function(a,b,c,e,d){e={types:{key:"type",base:e,typeMap:{style:d}},json:{write:!0}};a.symbol3dLinePatternProperty={types:{key:"type",base:b,typeMap:{style:c}},json:{write:!0}};a.symbol3dPatternProperty=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/colors":function(){define(["exports","../../Color"],
function(a,b){const c=new b("white"),e=new b("black");b=new b([255,255,255,0]);a.black=e;a.isBlack=function(d){return 0===d.r&&0===d.g&&0===d.b};a.transparentWhite=b;a.white=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/Symbol3DFillMaterial":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/maybe ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/Error ../../core/has ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Symbol3DMaterial".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;a.Symbol3DFillMaterial=l=function(m){function t(f){f=m.call(this,f)||this;f.colorMixMode=null;return f}b._inheritsLoose(t,m);t.prototype.clone=function(){const f={color:e.isSome(this.color)?this.color.clone():null,colorMixMode:this.colorMixMode};return new l(f)};return t}(p.Symbol3DMaterial);c.__decorate([g.enumeration({multiply:"multiply",replace:"replace",tint:"tint"})],a.Symbol3DFillMaterial.prototype,"colorMixMode",void 0);a.Symbol3DFillMaterial=l=c.__decorate([k.subclass("esri.symbols.support.Symbol3DFillMaterial")],
a.Symbol3DFillMaterial);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/Symbol3DOutline":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../patterns/utils ./materialUtils ./symbolLayerUtils3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){var t;a.Symbol3DOutline=t=function(f){function q(v){v=f.call(this,v)||this;v.color=new e([0,0,0,1]);v.size=u.px2pt(1);v.pattern=null;v.patternCap="butt";return v}b._inheritsLoose(q,f);q.prototype.clone=function(){const v={color:n.isSome(this.color)?this.color.clone():null,size:this.size,pattern:n.isSome(this.pattern)?this.pattern.clone():null,patternCap:this.patternCap};return new t(v)};return q}(d.JSONSupport);c.__decorate([r.property(l.colorAndTransparencyProperty)],
a.Symbol3DOutline.prototype,"color",void 0);c.__decorate([r.property(l.screenSizeProperty)],a.Symbol3DOutline.prototype,"size",void 0);c.__decorate([r.property(p.symbol3dLinePatternProperty)],a.Symbol3DOutline.prototype,"pattern",void 0);c.__decorate([r.property({type:m.lineCaps,json:{default:"butt",write:{overridePolicy(){return{enabled:n.isSome(this.pattern)}}}}})],a.Symbol3DOutline.prototype,"patternCap",void 0);a.Symbol3DOutline=t=c.__decorate([k.subclass("esri.symbols.support.Symbol3DOutline")],
a.Symbol3DOutline);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/symbolLayerUtils3D":function(){define(["exports","../../core/has","../../chunks/vec3f64","../../geometry/support/aaBoundingBox"],function(a,b,c,e){const d=e.fromValues(-.5,-.5,-.5,.5,.5,.5),n=e.fromValues(-.5,-.5,0,.5,.5,1),u=e.fromValues(-.5,-.5,0,.5,.5,.5);b=["butt","square","round"];e=[...b,"none"];a.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_TETRAHEDRON=u;a.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_UNIT_CUBE=
d;a.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_UNIT_CYLINDER=n;a.lineCaps=b;a.lineJoins=["miter","bevel","round"];a.objectSymbolLayerPrimitiveBoundingBox=function(r){switch(r){case "sphere":case "cube":case "diamond":return d;case "cylinder":case "cone":case "inverted-cone":return n;case "tetrahedron":return u}};a.objectSymbolLayerSizeWithResourceSize=function(r,{isPrimitive:h,width:g,depth:k,height:p}){h=h?10:1;if(null==g&&null==p&&null==k)return[h*r[0],h*r[1],h*r[2]];g=c.fromValues(g,k,p);let l;for(k=0;3>
k;k++)if(p=g[k],null!=p){l=p/r[k];break}for(k=0;3>k;k++)null==g[k]&&(g[k]=r[k]*l);return g};a.pathCaps=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/aaBoundingBox":function(){define(["exports","../../core/maybe","../Extent","./aaBoundingRect"],function(a,b,c,e){function d(f=m){return[f[0],f[1],f[2],f[3],f[4],f[5]]}function n(f,q,v,x,z,y,A=d()){A[0]=f;A[1]=q;A[2]=v;A[3]=x;A[4]=z;A[5]=y;return A}function u(f){return f[0]>=f[3]?0:
f[3]-f[0]}function r(f){return f[1]>=f[4]?0:f[4]-f[1]}function h(f){return f[2]>=f[5]?0:f[5]-f[2]}function g(f,q){return Math.max(q[0],f[0])<=Math.min(q[3],f[3])&&Math.max(q[1],f[1])<=Math.min(q[4],f[4])&&Math.max(q[2],f[2])<=Math.min(q[5],f[5])}function k(f,q){f[0]=q[0];f[1]=q[1];f[2]=q[2];f[3]=q[3];f[4]=q[4];f[5]=q[5];return f}function p(f){return 6===f.length}const l=[Infinity,Infinity,Infinity,-Infinity,-Infinity,-Infinity],m=[0,0,0,0,0,0],t=d();a.NEGATIVE_INFINITY=l;a.POSITIVE_INFINITY=[-Infinity,
-Infinity,-Infinity,Infinity,Infinity,Infinity];a.ZERO=m;a.allFinite=function(f){for(let q=0;6>q;q++)if(!isFinite(f[q]))return!1;return!0};a.center=function(f,q=[0,0,0]){q[0]=f[0]+u(f)/2;q[1]=f[1]+r(f)/2;q[2]=f[2]+h(f)/2;return q};a.contains=function(f,q){return q[0]>=f[0]&&q[1]>=f[1]&&q[2]>=f[2]&&q[3]<=f[3]&&q[4]<=f[4]&&q[5]<=f[5]};a.containsPoint=function(f,q){return q[0]>=f[0]&&q[1]>=f[1]&&q[2]>=f[2]&&q[0]<=f[3]&&q[1]<=f[4]&&q[2]<=f[5]};a.containsPointWithMargin=function(f,q,v){return q[0]>=f[0]-
v&&q[1]>=f[1]-v&&q[2]>=f[2]-v&&q[0]<=f[3]+v&&q[1]<=f[4]+v&&q[2]<=f[5]+v};a.create=d;a.depth=r;a.diameter=function(f){const q=u(f),v=h(f);f=r(f);return Math.sqrt(q*q+v*v+f*f)};a.empty=function(f){return f?k(f,l):d(l)};a.equals=function(f,q,v){if(b.isNone(f)||b.isNone(q))return f===q;if(!p(f)||!p(q))return!1;if(v)for(let x=0;x<f.length;x++){if(!v(f[x],q[x]))return!1}else for(v=0;v<f.length;v++)if(f[v]!==q[v])return!1;return!0};a.expandWithAABB=function(f,q){f[0]=Math.min(f[0],q[0]);f[1]=Math.min(f[1],
q[1]);f[2]=Math.min(f[2],q[2]);f[3]=Math.max(f[3],q[3]);f[4]=Math.max(f[4],q[4]);f[5]=Math.max(f[5],q[5])};a.expandWithBuffer=function(f,q,v=0,x=q.length/3){let z=f[0],y=f[1],A=f[2],B=f[3],E=f[4],w=f[5];for(let D=0;D<x;D++)z=Math.min(z,q[v+3*D]),y=Math.min(y,q[v+3*D+1]),A=Math.min(A,q[v+3*D+2]),B=Math.max(B,q[v+3*D]),E=Math.max(E,q[v+3*D+1]),w=Math.max(w,q[v+3*D+2]);f[0]=z;f[1]=y;f[2]=A;f[3]=B;f[4]=E;f[5]=w};a.expandWithNestedArray=function(f,q,v){const x=q.length;let z=f[0],y=f[1],A=f[2],B=f[3],
E=f[4],w=f[5];if(v)for(v=0;v<x;v++){var D=q[v];z=Math.min(z,D[0]);y=Math.min(y,D[1]);A=Math.min(A,D[2]);B=Math.max(B,D[0]);E=Math.max(E,D[1]);w=Math.max(w,D[2])}else for(v=0;v<x;v++)D=q[v],z=Math.min(z,D[0]),y=Math.min(y,D[1]),B=Math.max(B,D[0]),E=Math.max(E,D[1]);f[0]=z;f[1]=y;f[2]=A;f[3]=B;f[4]=E;f[5]=w};a.expandWithOffset=function(f,q,v,x){f[0]=Math.min(f[0],f[0]+q);f[3]=Math.max(f[3],f[3]+q);f[1]=Math.min(f[1],f[1]+v);f[4]=Math.max(f[4],f[4]+v);f[2]=Math.min(f[2],f[2]+x);f[5]=Math.max(f[5],f[5]+
x)};a.expandWithRect=function(f,q){f[0]=Math.min(f[0],q[0]);f[1]=Math.min(f[1],q[1]);f[3]=Math.max(f[3],q[2]);f[4]=Math.max(f[4],q[3])};a.expandWithVec3=function(f,q){f[0]=Math.min(f[0],q[0]);f[1]=Math.min(f[1],q[1]);f[2]=Math.min(f[2],q[2]);f[3]=Math.max(f[3],q[0]);f[4]=Math.max(f[4],q[1]);f[5]=Math.max(f[5],q[2])};a.fromExtent=function(f,q=d()){q[0]=f.xmin;q[1]=f.ymin;q[2]=f.hasZ?f.zmin:-Infinity;q[3]=f.xmax;q[4]=f.ymax;q[5]=f.hasZ?f.zmax:Infinity;return q};a.fromMinMax=function(f,q,v=d()){v[0]=
f[0];v[1]=f[1];v[2]=f[2];v[3]=q[0];v[4]=q[1];v[5]=q[2];return v};a.fromRect=function(f,q){f[0]=q[0];f[1]=q[1];f[2]=Number.NEGATIVE_INFINITY;f[3]=q[2];f[4]=q[3];f[5]=Number.POSITIVE_INFINITY;return f};a.fromValues=n;a.getMax=function(f,q){q[0]=f[3];q[1]=f[4];q[2]=f[5];return q};a.getMin=function(f,q){q[0]=f[0];q[1]=f[1];q[2]=f[2];return q};a.height=h;a.intersects=g;a.intersectsClippingArea=function(f,q){return b.isNone(q)?!0:g(f,q)};a.is=p;a.isPoint=function(f){return 0===u(f)&&0===r(f)&&0===h(f)};
a.maximumDimension=function(f){return Math.max(u(f),h(f),r(f))};a.offset=function(f,q,v,x,z=f){z[0]=f[0]+q;z[1]=f[1]+v;z[2]=f[2]+x;z[3]=f[3]+q;z[4]=f[4]+v;z[5]=f[5]+x;return z};a.scale=function(f,q,v=f){const x=f[0]+u(f)/2,z=f[1]+r(f)/2,y=f[2]+h(f)/2;v[0]=x+(f[0]-x)*q;v[1]=z+(f[1]-z)*q;v[2]=y+(f[2]-y)*q;v[3]=x+(f[3]-x)*q;v[4]=z+(f[4]-z)*q;v[5]=y+(f[5]-y)*q;return v};a.set=k;a.setMax=function(f,q,v=f){v[3]=q[0];v[4]=q[1];v[5]=q[2];v!==f&&(v[0]=f[0],v[1]=f[1],v[2]=f[2]);return f};a.setMin=function(f,
q,v=f){v[0]=q[0];v[1]=q[1];v[2]=q[2];v!==f&&(v[3]=f[3],v[4]=f[4],v[5]=f[5]);return v};a.size=function(f,q=[0,0,0]){q[0]=u(f);q[1]=r(f);q[2]=h(f);return q};a.toExtent=function(f,q){return isFinite(f[2])||isFinite(f[5])?new c({xmin:f[0],xmax:f[3],ymin:f[1],ymax:f[4],zmin:f[2],zmax:f[5],spatialReference:q}):new c({xmin:f[0],xmax:f[3],ymin:f[1],ymax:f[4],spatialReference:q})};a.toRect=function(f,q){q||(q=e.create());q[0]=f[0];q[1]=f[1];q[2]=f[3];q[3]=f[4];return q};a.width=u;a.wrap=function(f,q,v,x,z,
y){return n(f,q,v,x,z,y,t)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/Font":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/subclass ./support/textUtils".split(" "),function(a,b,c,e,d,n,u,r,h){var g;c=g=function(k){function p(m){m=k.call(this,
m)||this;m.decoration="none";m.family="sans-serif";m.size=9;m.style="normal";m.weight="normal";return m}a._inheritsLoose(p,k);var l=p.prototype;l.castSize=function(m){return e.toPt(m)};l.clone=function(){return new g({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})};l.hash=function(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`};return p}(c.JSONSupport);b.__decorate([d.property({type:h.fontDecorations,json:{default:"none",
write:!0}})],c.prototype,"decoration",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"family",void 0);b.__decorate([d.property({type:Number,json:{write:{overridePolicy(k,p,l){return{enabled:!l||!l.textSymbol3D}}}}})],c.prototype,"size",void 0);b.__decorate([u.cast("size")],c.prototype,"castSize",null);b.__decorate([d.property({type:h.fontStyles,json:{default:"normal",write:!0}})],c.prototype,"style",void 0);b.__decorate([d.property({type:h.fontWeights,json:{default:"normal",
write:!0}})],c.prototype,"weight",void 0);return c=g=b.__decorate([r.subclass("esri.symbols.Font")],c)})},"esri/symbols/support/textUtils":function(){define(["exports","../../core/mathUtils","../../core/accessorSupport/ensureType"],function(a,b,c){const e={type:Number,cast:h=>{h=c.ensureNumber(h);return 0===h?1:b.clamp(h,.1,4)},nonNullable:!0},d=["left","right","center"],n=["baseline","top","middle","bottom"],u={type:d,nonNullable:!0},r={type:n,nonNullable:!0};a.fontDecorations=["none","underline",
"line-through"];a.fontStyles=["normal","italic","oblique"];a.fontWeights=["normal","lighter","bold","bolder"];a.horizontalAlignmentProperty=u;a.horizontalAlignments=d;a.lineHeightProperty=e;a.verticalAlignmentProperty=r;a.verticalAlignments=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/IconSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/urlUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/colors ./support/IconSymbol3DLayerResource ./support/materialUtils ./support/Symbol3DAnchorPosition2D ./support/Symbol3DIconOutline ./support/Symbol3DMaterial".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q){function v(A){const B="width"in A?A.width:A.size,E="height"in A?A.height:A.size,w=x(A.xoffset);A=x(A.yoffset);return(w||A)&&B&&E?{x:-w/B,y:A/E}:null}function x(A){return isFinite(A)?A:0}var z;u=z=function(A){function B(E){E=A.call(this,E)||this;E.material=null;E.resource=null;E.type="icon";E.size=12;E.anchor="center";E.anchorPosition=null;E.outline=null;return E}a._inheritsLoose(B,A);B.prototype.clone=function(){return new z({anchor:this.anchor,anchorPosition:this.anchorPosition&&
this.anchorPosition.clone(),enabled:this.enabled,material:e.isSome(this.material)?this.material.clone():null,outline:e.isSome(this.outline)?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})};B.fromSimpleMarkerSymbol=function(E){const w=E.color||p.white,D=v(E),C=E.outline&&0<E.outline.width?{size:E.outline.width,color:(E.outline.color||p.white).clone()}:null;var F=z,G=E.size;{E=E.style;const H=y[E];H?E=H:(c.getLogger("esri.symbols.IconSymbol3DLayer").warn(`${E} cannot be mapped to Icon symbol. Fallback to "circle"`),
E="circle")}return new F({size:G,resource:{primitive:E},material:{color:w},outline:C,anchor:D?"relative":void 0,anchorPosition:D})};B.fromPictureMarkerSymbol=function(E){const w=!E.color||p.isBlack(E.color)?p.white:E.color,D=v(E);return new z({size:E.width<=E.height?E.height:E.width,resource:{href:E.url},material:{color:w.clone()},anchor:D?"relative":void 0,anchorPosition:D})};B.fromCIMSymbol=function(E){return new z({resource:{href:d.makeData({mediaType:"application/json",data:JSON.stringify(E.data)})}})};
return B}(k);b.__decorate([n.property({type:q.Symbol3DMaterial,json:{write:!0}})],u.prototype,"material",void 0);b.__decorate([n.property({type:l.IconSymbol3DLayerResource,json:{write:!0}})],u.prototype,"resource",void 0);b.__decorate([h.enumeration({Icon:"icon"},{readOnly:!0})],u.prototype,"type",void 0);b.__decorate([n.property(m.screenSizeProperty)],u.prototype,"size",void 0);b.__decorate([h.enumeration({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",
bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),n.property({json:{default:"center"}})],u.prototype,"anchor",void 0);b.__decorate([n.property({type:t.Symbol3DAnchorPosition2D,json:{type:[Number],read:{reader:A=>new t.Symbol3DAnchorPosition2D({x:A[0],y:A[1]})},write:{writer:(A,B)=>{B.anchorPosition=[A.x,A.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],u.prototype,"anchorPosition",void 0);b.__decorate([n.property({type:f.Symbol3DIconOutline,json:{write:!0}})],
u.prototype,"outline",void 0);u=z=b.__decorate([g.subclass("esri.symbols.IconSymbol3DLayer")],u);const y={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};return u})},"esri/symbols/support/IconSymbol3DLayerResource":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/urlUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../chunks/persistableUrlUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){var t;e=e.strict()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});a.IconSymbol3DLayerResource=t=function(f){function q(x){return f.call(this,x)||this}b._inheritsLoose(q,f);var v=q.prototype;v.readHref=function(x,z,y){return x?m.fromJSON(x,y):z.dataURI};v.writeHref=function(x,z,y,A){x&&(n.isDataProtocol(x)?z.dataURI=x:(z.href=m.toJSON(x,A),n.isAbsolute(z.href)&&(z.href=n.normalize(z.href))))};v.clone=function(){return new t({href:this.href,
primitive:this.primitive})};return q}(d.JSONSupport);c.__decorate([u.property({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],a.IconSymbol3DLayerResource.prototype,"href",void 0);c.__decorate([k.reader("href")],a.IconSymbol3DLayerResource.prototype,"readHref",null);c.__decorate([l.writer("href",{href:{type:String},dataURI:{type:String}})],a.IconSymbol3DLayerResource.prototype,"writeHref",null);c.__decorate([g.enumeration(e)],a.IconSymbol3DLayerResource.prototype,"primitive",void 0);
a.IconSymbol3DLayerResource=t=c.__decorate([p.subclass("esri.symbols.support.IconSymbol3DLayerResource")],a.IconSymbol3DLayerResource);a.defaultPrimitive="circle";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/Symbol3DAnchorPosition2D":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){var h;a.Symbol3DAnchorPosition2D=h=function(g){function k(){var p=g.apply(this,arguments)||this;p.x=0;p.y=0;return p}b._inheritsLoose(k,g);k.prototype.clone=function(){return new h({x:this.x,y:this.y})};return k}(e);c.__decorate([d.property({type:Number})],a.Symbol3DAnchorPosition2D.prototype,"x",void 0);c.__decorate([d.property({type:Number})],a.Symbol3DAnchorPosition2D.prototype,"y",void 0);a.Symbol3DAnchorPosition2D=h=c.__decorate([r.subclass("esri.symbols.support.Symbol3DAnchorPosition2D")],
a.Symbol3DAnchorPosition2D);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/Symbol3DIconOutline":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;a.Symbol3DIconOutline=l=function(m){function t(f){f=m.call(this,f)||this;f.color=new e([0,0,0,1]);f.size=u.px2pt(1);return f}b._inheritsLoose(t,m);t.prototype.clone=function(){const f={color:n.isSome(this.color)?this.color.clone():null,size:this.size};return new l(f)};return t}(d.JSONSupport);c.__decorate([r.property(p.colorAndTransparencyProperty)],a.Symbol3DIconOutline.prototype,"color",void 0);c.__decorate([r.property(p.screenSizeProperty)],a.Symbol3DIconOutline.prototype,
"size",void 0);a.Symbol3DIconOutline=l=c.__decorate([k.subclass("esri.symbols.support.Symbol3DIconOutline")],a.Symbol3DIconOutline);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/LabelSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;const m=c.ofType({base:null,key:"type",typeMap:{text:g}});c=l=function(t){function f(v){v=t.call(this,v)||this;v.verticalOffset=null;v.callout=null;v.styleOrigin=null;v.symbolLayers=new m;v.type="label-3d";return v}a._inheritsLoose(f,t);var q=f.prototype;q.supportsCallout=function(){return!0};q.hasVisibleCallout=function(){return k.hasVisibleCallout(this)};q.hasVisibleVerticalOffset=function(){return k.hasVisibleVerticalOffset(this)};q.clone=function(){return new l({styleOrigin:e.clone(this.styleOrigin),
symbolLayers:e.clone(this.symbolLayers),thumbnail:e.clone(this.thumbnail),callout:e.clone(this.callout),verticalOffset:e.clone(this.verticalOffset)})};f.fromTextSymbol=function(v){return new l({symbolLayers:[g.fromTextSymbol(v)]})};return f}(h);b.__decorate([d.property({type:p,json:{write:!0}})],c.prototype,"verticalOffset",void 0);b.__decorate([d.property(k.calloutProperty)],c.prototype,"callout",void 0);b.__decorate([d.property({json:{read:!1,write:!1}})],c.prototype,"styleOrigin",void 0);b.__decorate([d.property({type:m})],
c.prototype,"symbolLayers",void 0);b.__decorate([u.enumeration({LabelSymbol3D:"label-3d"},{readOnly:!0})],c.prototype,"type",void 0);return c=l=b.__decorate([r.subclass("esri.symbols.LabelSymbol3D")],c)})},"esri/symbols/Symbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/collectionUtils ../core/Logger ../core/urlUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../portal/Portal ../chunks/persistableUrlUtils ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./PathSymbol3DLayer ./Symbol ./Symbol3DLayer ./TextSymbol3DLayer ./WaterSymbol3DLayer ./support/StyleOrigin ./support/Thumbnail".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C){const F={icon:v,object:z,line:x,path:y,fill:q,extrude:f,text:E,water:w};h=c.ofType({base:B,key:"type",typeMap:F,errorContext:"symbol-layer"});A=function(G){function H(J){J=G.call(this,J)||this;J.styleOrigin=null;J.thumbnail=null;J.type=null;const K=J.__accessor__&&J.__accessor__.metadatas&&J.__accessor__.metadatas.symbolLayers;J._set("symbolLayers",new (K&&K.type||c));return J}a._inheritsLoose(H,G);var I=H.prototype;I.readStyleOrigin=
function(J,K,N){if(J.styleUrl&&J.name)return K=t.fromJSON(J.styleUrl,N),new D({styleUrl:K,name:J.name});if(J.styleName&&J.name)return new D({portal:N&&N.portal||m.getDefault(),styleName:J.styleName,name:J.name});N&&N.messages&&N.messages.push(new u("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:N,definition:J}))};I.writeStyleOrigin=function(J,K,N,U){J.styleUrl&&J.name?(N=t.toJSON(J.styleUrl,U),n.isAbsolute(N)&&(N=n.normalize(N)),
K.styleOrigin={styleUrl:N,name:J.name}):J.styleName&&J.name&&(J.portal&&U&&U.portal&&!n.hasSamePortal(J.portal.restUrl,U.portal.restUrl)?U&&U.messages&&U.messages.push(new u("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):K.styleOrigin={styleName:J.styleName,name:J.name})};I.normalizeCtorArgs=function(J){return J instanceof B||J&&F[J.type]?{symbolLayers:[J]}:Array.isArray(J)?{symbolLayers:J}:
J};a._createClass(H,[{key:"color",get:function(){return null},set:function(J){this.constructed&&d.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}},{key:"symbolLayers",set:function(J){e.referenceSetter(J,this._get("symbolLayers"))}}]);return H}(A);b.__decorate([r.property({json:{read:!1,write:!1}})],A.prototype,"color",null);b.__decorate([r.property({type:h,nonNullable:!0,json:{write:!0}}),
g.cast(e.castForReferenceSetter)],A.prototype,"symbolLayers",null);b.__decorate([r.property({type:D})],A.prototype,"styleOrigin",void 0);b.__decorate([k.reader("styleOrigin")],A.prototype,"readStyleOrigin",null);b.__decorate([l.writer("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],A.prototype,"writeStyleOrigin",null);b.__decorate([r.property({type:C.Thumbnail,json:{read:!1}})],A.prototype,"thumbnail",void 0);b.__decorate([r.property({type:["point-3d",
"line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],A.prototype,"type",void 0);return A=b.__decorate([p.subclass("esri.symbols.Symbol3D")],A)})},"esri/symbols/LineSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineStyleMarker3D ./Symbol3DLayer ./patterns/LineStylePattern3D ./patterns/utils ./support/colors ./support/materialUtils ./support/Symbol3DMaterial ./support/symbolLayerUtils3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q){var v;n=v=function(x){function z(y){y=x.call(this,y)||this;y.material=null;y.type="line";y.join="miter";y.cap="butt";y.size=e.px2pt(1);y.pattern=null;y.marker=null;return y}a._inheritsLoose(z,x);z.prototype.clone=function(){const y={enabled:this.enabled,material:c.isSome(this.material)?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:c.isSome(this.pattern)?this.pattern.clone():null,marker:c.isSome(this.marker)?this.marker.clone():
null};return new v(y)};z.fromSimpleLineSymbol=function(y){y={enabled:!0,size:y.width??e.px2pt(1),cap:y.cap||"butt",join:y.join||"miter",pattern:y.style&&"inside-frame"!==y.style?new p({style:y.style}):null,material:new f.Symbol3DMaterial({color:(y.color||m.white).clone()}),marker:y.marker?new g({placement:y.marker.placement,style:y.marker.style,color:y.marker.color?.clone()??null}):null};return new v(y)};return z}(k);b.__decorate([d.property({type:f.Symbol3DMaterial,json:{write:!0}})],n.prototype,
"material",void 0);b.__decorate([r.enumeration({Line:"line"},{readOnly:!0})],n.prototype,"type",void 0);b.__decorate([d.property({type:q.lineJoins,json:{write:!0,default:"miter"}})],n.prototype,"join",void 0);b.__decorate([d.property({type:q.lineCaps,json:{write:!0,default:"butt"}})],n.prototype,"cap",void 0);b.__decorate([d.property(t.screenSizeProperty)],n.prototype,"size",void 0);b.__decorate([d.property(l.symbol3dLinePatternProperty)],n.prototype,"pattern",void 0);b.__decorate([d.property({types:{key:"type",
base:g,typeMap:{style:g}},json:{write:!0}})],n.prototype,"marker",void 0);return n=v=b.__decorate([h.subclass("esri.symbols.LineSymbol3DLayer")],n)})},"esri/symbols/LineStyleMarker3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/Clonable ../core/JSONSupport ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/lineMarkers".split(" "),function(a,
b,c,e,d,n,u,r,h,g,k){e=function(p){function l(m){m=p.call(this,m)||this;m.type="style";m.placement="begin-end";m.style="arrow";m.color=null;return m}a._inheritsLoose(l,p);l.prototype.equals=function(m){return n.isSome(m)&&m.placement===this.placement&&m.style===this.style&&(n.isNone(this.color)&&n.isNone(m.color)||n.isSome(this.color)&&n.isSome(m.color)&&this.color.toJSON()===m.color.toJSON())};return l}(e.ClonableMixin(d.JSONSupport));b.__decorate([u.property({type:["style"],readOnly:!0,json:{read:!0,
write:{ignoreOrigin:!0}}})],e.prototype,"type",void 0);b.__decorate([u.property({type:k.lineMarkerPlacements,json:{default:"begin-end",write:!0}})],e.prototype,"placement",void 0);b.__decorate([u.property({type:k.lineMarkerStyles,json:{default:"arrow",write:!0}})],e.prototype,"style",void 0);b.__decorate([u.property({type:c,json:{type:[h.Integer],default:null,write:!0}})],e.prototype,"color",void 0);return e=b.__decorate([g.subclass("esri.symbols.LineStyleMarker3D")],e)})},"esri/symbols/ObjectSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/ObjectSymbol3DLayerResource ./support/Symbol3DAnchorPosition3D ./support/Symbol3DMaterial".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;d=l=function(m){function t(f){f=m.call(this,f)||this;f.material=null;f.castShadows=!0;f.resource=null;f.type="object";f.width=void 0;f.height=void 0;f.depth=void 0;f.anchor=void 0;f.anchorPosition=void 0;f.heading=void 0;f.tilt=void 0;f.roll=void 0;return f}a._inheritsLoose(t,m);t.prototype.clone=function(){return new l({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,
enabled:this.enabled,height:this.height,material:c.isSome(this.material)?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})};a._createClass(t,[{key:"isPrimitive",get:function(){return!this.resource||"string"!==typeof this.resource.href}}]);return t}(h);b.__decorate([e.property({type:p.Symbol3DMaterial,json:{write:!0}})],d.prototype,"material",void 0);b.__decorate([e.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],
d.prototype,"castShadows",void 0);b.__decorate([e.property({type:g.ObjectSymbol3DLayerResource,json:{write:!0}})],d.prototype,"resource",void 0);b.__decorate([u.enumeration({Object:"object"},{readOnly:!0})],d.prototype,"type",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"width",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"height",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"depth",void 0);b.__decorate([u.enumeration({center:"center",
top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),e.property({json:{default:"origin"}})],d.prototype,"anchor",void 0);b.__decorate([e.property({type:k.Symbol3DAnchorPosition3D,json:{type:[Number],read:{reader:m=>new k.Symbol3DAnchorPosition3D({x:m[0],y:m[1],z:m[2]})},write:{writer:(m,t)=>{t.anchorPosition=[m.x,m.y,m.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],d.prototype,"anchorPosition",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,
"heading",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"tilt",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"roll",void 0);b.__decorate([e.property({readOnly:!0})],d.prototype,"isPrimitive",null);return d=l=b.__decorate([r.subclass("esri.symbols.ObjectSymbol3DLayer")],d)})},"esri/symbols/support/ObjectSymbol3DLayerResource":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../chunks/persistableUrlUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;e=e.strict()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});a.ObjectSymbol3DLayerResource=p=function(l){function m(){return l.apply(this,arguments)||this}b._inheritsLoose(m,l);m.prototype.clone=function(){return new p({href:this.href,primitive:this.primitive})};return m}(d.JSONSupport);c.__decorate([n.property({type:String,json:{read:k.read,write:k.write}})],a.ObjectSymbol3DLayerResource.prototype,
"href",void 0);c.__decorate([h.enumeration(e)],a.ObjectSymbol3DLayerResource.prototype,"primitive",void 0);a.ObjectSymbol3DLayerResource=p=c.__decorate([g.subclass("esri.symbols.support.ObjectSymbol3DLayerResource")],a.ObjectSymbol3DLayerResource);a.defaultPrimitive="sphere";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/Symbol3DAnchorPosition3D":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){var h;a.Symbol3DAnchorPosition3D=h=function(g){function k(){var p=g.apply(this,arguments)||this;p.x=0;p.y=0;p.z=0;return p}b._inheritsLoose(k,g);k.prototype.clone=function(){return new h({x:this.x,y:this.y,z:this.z})};return k}(e);c.__decorate([d.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"x",void 0);c.__decorate([d.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,"y",void 0);c.__decorate([d.property({type:Number})],a.Symbol3DAnchorPosition3D.prototype,
"z",void 0);a.Symbol3DAnchorPosition3D=h=c.__decorate([r.subclass("esri.symbols.support.Symbol3DAnchorPosition3D")],a.Symbol3DAnchorPosition3D);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/PathSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/maybe ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./Symbol3DLayer ./support/Symbol3DMaterial ./support/symbolLayerUtils3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;d=l=function(m){function t(q){q=m.call(this,q)||this;q.material=null;q.castShadows=!0;q.type="path";q.profile="circle";q.join="miter";q.cap="butt";q.width=void 0;q.height=void 0;q.anchor="center";q.profileRotation="all";return q}a._inheritsLoose(t,m);var f=t.prototype;f.readWidth=function(q,v){return null!=q?q:null==v.height&&null!=v.size?v.size:void 0};f.readHeight=function(q,v){return null!=q?q:null==v.width&&null!=v.size?v.size:void 0};f.clone=function(){return new l({enabled:this.enabled,
material:c.isSome(this.material)?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})};return t}(g);b.__decorate([e.property({type:k.Symbol3DMaterial,json:{write:!0}})],d.prototype,"material",void 0);b.__decorate([e.property({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],d.prototype,"castShadows",void 0);b.__decorate([u.enumeration({Path:"path"},
{readOnly:!0})],d.prototype,"type",void 0);b.__decorate([e.property({type:["circle","quad"],json:{write:!0,default:"circle"}})],d.prototype,"profile",void 0);b.__decorate([e.property({type:p.lineJoins,json:{write:!0,default:"miter"}})],d.prototype,"join",void 0);b.__decorate([e.property({type:p.pathCaps,json:{write:!0,default:"butt"}})],d.prototype,"cap",void 0);b.__decorate([e.property({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],d.prototype,"width",void 0);
b.__decorate([r.reader("width",["width","size","height"])],d.prototype,"readWidth",null);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"height",void 0);b.__decorate([r.reader("height",["height","size","width"])],d.prototype,"readHeight",null);b.__decorate([e.property({type:["center","bottom","top"],json:{write:!0,default:"center"}})],d.prototype,"anchor",void 0);b.__decorate([e.property({type:["heading","all"],json:{write:!0,default:"all"}})],d.prototype,"profileRotation",void 0);
return d=l=b.__decorate([h.subclass("esri.symbols.PathSymbol3DLayer")],d)})},"esri/symbols/TextSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol3DLayer ./support/materialUtils ./support/Symbol3DHalo ./support/Symbol3DMaterial ./support/Symbol3DTextBackground ./support/textUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f){var q;n=q=function(v){function x(y){y=v.call(this,y)||this;y._userSize=void 0;y.halo=null;y.horizontalAlignment="center";y.lineHeight=1;y.material=null;y.background=null;y.text=null;y.type="text";y.verticalAlignment="baseline";return y}a._inheritsLoose(x,v);var z=x.prototype;z.writeFont=function(y,A,B,E){A.font=y.write({},{...E,textSymbol3D:!0});delete A.font.size};z.clone=function(){const y=new q({enabled:this.enabled,font:this.font&&c.clone(this.font),halo:this.halo&&
c.clone(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:e.isSome(this.material)?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:c.clone(this.background)});y._userSize=this._userSize;return y};x.fromTextSymbol=function(y){var A=q,B=e.isSome(y.font)?y.font.clone():new g;var E=y.haloColor;var w=y.haloSize;E=E&&null!=w&&0<w?new l.Symbol3DHalo({color:c.clone(E),size:w}):null;return new A({font:B,halo:E,horizontalAlignment:y.horizontalAlignment,
lineHeight:y.lineHeight,material:y.color?new m.Symbol3DMaterial({color:y.color.clone()}):null,text:y.text,verticalAlignment:y.verticalAlignment,background:y.backgroundColor?new t.Symbol3DTextBackground({color:y.backgroundColor.clone()}):null})};a._createClass(x,[{key:"font",get:function(){return this._get("font")||null},set:function(y){e.isSome(y)&&e.isSome(this._userSize)&&(y.size=this._userSize);this._set("font",y)}},{key:"size",get:function(){return e.isSome(this._userSize)?this._userSize:e.isSome(this.font)&&
null!=this.font.size?this.font.size:9},set:function(y){this._userSize=y;e.isSome(this.font)&&(this.font.size=this._userSize);this.notifyChange("size")}}]);return x}(k);b.__decorate([d.property({type:g,json:{write:!0}})],n.prototype,"font",null);b.__decorate([h.writer("font")],n.prototype,"writeFont",null);b.__decorate([d.property({type:l.Symbol3DHalo,json:{write:!0}})],n.prototype,"halo",void 0);b.__decorate([d.property({...f.horizontalAlignmentProperty,json:{default:"center",write:!0}})],n.prototype,
"horizontalAlignment",void 0);b.__decorate([d.property({...f.lineHeightProperty,json:{default:1,write:!0}})],n.prototype,"lineHeight",void 0);b.__decorate([d.property({type:m.Symbol3DMaterial,json:{write:!0}})],n.prototype,"material",void 0);b.__decorate([d.property({type:t.Symbol3DTextBackground,json:{write:!0}})],n.prototype,"background",void 0);b.__decorate([d.property(p.screenSizeProperty)],n.prototype,"size",null);b.__decorate([d.property({type:String,json:{write:!0}})],n.prototype,"text",void 0);
b.__decorate([u.enumeration({Text:"text"},{readOnly:!0})],n.prototype,"type",void 0);b.__decorate([d.property({...f.verticalAlignmentProperty,json:{default:"baseline",write:!0}})],n.prototype,"verticalAlignment",void 0);return n=q=b.__decorate([r.subclass("esri.symbols.TextSymbol3DLayer")],n)})},"esri/symbols/support/Symbol3DHalo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;a.Symbol3DHalo=k=function(p){function l(){var m=p.apply(this,arguments)||this;m.color=new e([0,0,0,1]);m.size=0;return m}b._inheritsLoose(l,p);l.prototype.clone=function(){const m={color:n.clone(this.color),size:this.size};return new k(m)};return l}(d.JSONSupport);c.__decorate([u.property(g.colorAndTransparencyProperty)],a.Symbol3DHalo.prototype,"color",void 0);c.__decorate([u.property(g.screenSizeProperty)],a.Symbol3DHalo.prototype,"size",void 0);a.Symbol3DHalo=
k=c.__decorate([h.subclass("esri.symbols.support.Symbol3DHalo")],a.Symbol3DHalo);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/Symbol3DTextBackground":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){a.Symbol3DTextBackground=function(k){function p(l){l=k.call(this,l)||this;l.color=null;return l}b._inheritsLoose(p,k);return p}(e.ClonableMixin(d.JSONSupport));c.__decorate([n.property(g.colorAndTransparencyProperty)],a.Symbol3DTextBackground.prototype,"color",void 0);a.Symbol3DTextBackground=c.__decorate([h.subclass("esri.symbols.support.Symbol3DTextBackground")],a.Symbol3DTextBackground);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/symbols/WaterSymbol3DLayer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Symbol3DLayer".split(" "),function(a,b,c,e,d,n,u,r,h){var g;h=g=function(p){function l(m){m=p.call(this,m)||this;m.color=k.clone();m.type="water";m.waterbodySize="medium";m.waveDirection=null;m.waveStrength=
"moderate";return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new g({color:e.clone(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})};return l}(h);b.__decorate([d.property({type:c,nonNullable:!0,json:{type:[n.Integer],write:(p,l,m)=>l[m]=p.toArray(c.AlphaMode.UNLESS_OPAQUE),default:()=>k.clone(),defaultEquals:p=>p.toCss(!0)===k.toCss(!0)}})],h.prototype,"color",void 0);b.__decorate([u.enumeration({Water:"water"},{readOnly:!0})],
h.prototype,"type",void 0);b.__decorate([d.property({type:["small","medium","large"],json:{write:!0,default:"medium"}})],h.prototype,"waterbodySize",void 0);b.__decorate([d.property({type:Number,json:{write:!0,default:null}})],h.prototype,"waveDirection",void 0);b.__decorate([d.property({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],h.prototype,"waveStrength",void 0);h=g=b.__decorate([r.subclass("esri.symbols.WaterSymbol3DLayer")],h);const k=new c([0,119,190]);
return h})},"esri/symbols/support/StyleOrigin":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../portal/Portal".split(" "),function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.name=null;p.styleUrl=null;p.styleName=null;p.portal=null;return p}a._inheritsLoose(k,
g);k.prototype.clone=function(){return new h({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})};return k}(c);b.__decorate([e.property({type:String})],c.prototype,"name",void 0);b.__decorate([e.property({type:String})],c.prototype,"styleUrl",void 0);b.__decorate([e.property({type:String})],c.prototype,"styleName",void 0);b.__decorate([e.property({type:r})],c.prototype,"portal",void 0);return c=h=b.__decorate([u.subclass("esri.symbols.support.StyleOrigin")],c)})},
"esri/symbols/support/Thumbnail":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){var h;a.Thumbnail=h=function(g){function k(){var p=g.apply(this,arguments)||this;p.url="";return p}b._inheritsLoose(k,g);k.prototype.clone=function(){return new h({url:this.url})};
return k}(e);c.__decorate([d.property({type:String})],a.Thumbnail.prototype,"url",void 0);a.Thumbnail=h=c.__decorate([r.subclass("esri.symbols.support.Thumbnail")],a.Thumbnail);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/callouts/calloutUtils":function(){define(["exports","../../core/maybe","./Callout3D","./LineCallout3D"],function(a,b,c,e){function d(n){if(!n)return!1;n=n.verticalOffset;return!n||0>=n.screenLength||b.isSome(n.maxWorldLength)&&
0>=n.maxWorldLength?!1:!0}a.calloutProperty={types:{key:"type",base:c,typeMap:{line:e}},json:{write:!0}};a.hasCalloutSupport=function(n){return"point-3d"===n.type||"label-3d"===n.type};a.hasVisibleCallout=function(n){if(!n||!n.supportsCallout||!n.supportsCallout())return!1;const u=n.callout;return u&&u.visible?d(n)?!0:!1:!1};a.hasVisibleVerticalOffset=d;a.textSymbolLayerSupportsVerticalOffset=function(n){return"center"===n.horizontalAlignment};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/symbols/callouts/Callout3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.visible=!0;return g}a._inheritsLoose(h,r);h.prototype.clone=function(){};return h}(c.JSONSupport);b.__decorate([e.property({type:["line"],
readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],c.prototype,"type",void 0);b.__decorate([e.property({readOnly:!0})],c.prototype,"visible",void 0);return c=b.__decorate([u.subclass("esri.symbols.callouts.Callout3D")],c)})},"esri/symbols/callouts/LineCallout3D":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/maybe ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Callout3D ../../chunks/LineCallout3DBorder ../support/materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){var m;r=m=function(t){function f(q){q=t.call(this,q)||this;q.type="line";q.color=new c([0,0,0,1]);q.size=n.px2pt(1);q.border=null;return q}a._inheritsLoose(f,t);f.prototype.clone=function(){return new m({color:e.clone(this.color),size:this.size,border:e.clone(this.border)})};a._createClass(f,[{key:"visible",get:function(){return 0<this.size&&d.isSome(this.color)&&0<this.color.a}}]);return f}(k);b.__decorate([h.enumeration({line:"line"},{readOnly:!0})],r.prototype,
"type",void 0);b.__decorate([u.property(l.colorAndTransparencyProperty)],r.prototype,"color",void 0);b.__decorate([u.property(l.screenSizeProperty)],r.prototype,"size",void 0);b.__decorate([u.property({type:p.LineCallout3DBorder$1,json:{write:!0}})],r.prototype,"border",void 0);b.__decorate([u.property({readOnly:!0})],r.prototype,"visible",null);return r=m=b.__decorate([g.subclass("esri.symbols.callouts.LineCallout3D")],r)})},"esri/chunks/LineCallout3DBorder":function(){define("exports ./_rollupPluginBabelHelpers ./tslib.es6 ../Color ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../symbols/support/materialUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;d=k=function(p){function l(){var m=p.apply(this,arguments)||this;m.color=new e("white");return m}b._inheritsLoose(l,p);l.prototype.clone=function(){return new k({color:n.clone(this.color)})};return l}(d.JSONSupport);c.__decorate([u.property(g.colorAndTransparencyProperty)],d.prototype,"color",void 0);c=d=k=c.__decorate([h.subclass("esri.symbols.callouts.LineCallout3DBorder")],d);u=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,
{value:"Module"}));a.LineCallout3DBorder=u;a.LineCallout3DBorder$1=c})},"esri/symbols/support/Symbol3DVerticalOffset":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./materialUtils".split(" "),function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.screenLength=
0;p.minWorldLength=0;p.maxWorldLength=null;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})};return k}(c.JSONSupport);b.__decorate([e.property(r.screenSizeProperty)],c.prototype,"screenLength",void 0);b.__decorate([e.property({type:Number,nonNullable:!0,json:{write:!0,default:0}})],c.prototype,"minWorldLength",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],
c.prototype,"maxWorldLength",void 0);return c=h=b.__decorate([u.subclass("esri.symbols.support.Symbol3DVerticalOffset")],c)})},"esri/symbols/LineSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./LineSymbol3DLayer ./PathSymbol3DLayer ./Symbol3D".split(" "),function(a,
b,c,e,d,n,u,r,h,g,k){var p;const l=c.ofType({base:null,key:"type",typeMap:{line:h,path:g}});c=c.ofType({base:null,key:"type",typeMap:{line:h,path:g}});k=p=function(m){function t(f){f=m.call(this,f)||this;f.symbolLayers=new l;f.type="line-3d";return f}a._inheritsLoose(t,m);t.prototype.clone=function(){return new p({styleOrigin:e.clone(this.styleOrigin),symbolLayers:e.clone(this.symbolLayers),thumbnail:e.clone(this.thumbnail)})};t.fromSimpleLineSymbol=function(f){return new p({symbolLayers:[h.fromSimpleLineSymbol(f)]})};
return t}(k);b.__decorate([d.property({type:l,json:{type:c}})],k.prototype,"symbolLayers",void 0);b.__decorate([u.enumeration({LineSymbol3D:"line-3d"},{readOnly:!0})],k.prototype,"type",void 0);return k=p=b.__decorate([r.subclass("esri.symbols.LineSymbol3D")],k)})},"esri/symbols/MarkerSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./Symbol".split(" "),
function(a,b,c,e,d,n,u,r){d=function(h){function g(k){k=h.call(this,k)||this;k.angle=0;k.type=null;k.xoffset=0;k.yoffset=0;k.size=9;return k}a._inheritsLoose(g,h);g.prototype.hash=function(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`};return g}(r);b.__decorate([e.property({type:Number,json:{read:h=>h&&-1*h,write:(h,g)=>g.angle=h&&-1*h}})],d.prototype,"angle",void 0);b.__decorate([e.property({type:["simple-marker","picture-marker"],readOnly:!0})],d.prototype,"type",
void 0);b.__decorate([e.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"xoffset",void 0);b.__decorate([e.property({type:Number,cast:c.toPt,json:{write:!0}})],d.prototype,"yoffset",void 0);b.__decorate([e.property({type:Number,cast:h=>"auto"===h?h:c.toPt(h),json:{write:!0}})],d.prototype,"size",void 0);return d=b.__decorate([u.subclass("esri.symbols.MarkerSymbol")],d)})},"esri/symbols/MeshSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol3DLayer ./Symbol3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;const p=c.ofType({base:null,key:"type",typeMap:{fill:h}});c=k=function(l){function m(t){t=l.call(this,t)||this;t.symbolLayers=new p;t.type="mesh-3d";return t}a._inheritsLoose(m,l);m.prototype.clone=function(){return new k({styleOrigin:e.clone(this.styleOrigin),symbolLayers:e.clone(this.symbolLayers),thumbnail:e.clone(this.thumbnail)})};m.fromSimpleFillSymbol=function(t){return new k({symbolLayers:[h.fromSimpleFillSymbol(t)]})};return m}(g);b.__decorate([d.property({type:p})],
c.prototype,"symbolLayers",void 0);b.__decorate([u.enumeration({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],c.prototype,"type",void 0);return c=k=b.__decorate([r.subclass("esri.symbols.MeshSymbol3D")],c)})},"esri/symbols/PictureFillSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./support/urlUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;n=k=function(p){function l(...t){t=p.call(this,...t)||this;t.type="picture-fill";t.url=null;t.xscale=1;t.yscale=1;t.width=12;t.height=12;t.xoffset=0;t.yoffset=0;t.source=null;return t}a._inheritsLoose(l,p);var m=l.prototype;m.normalizeCtorArgs=function(t,f,q,v){if(t&&"string"!==typeof t&&null==t.imageData)return t;const x={};t&&(x.url=t);f&&(x.outline=f);null!=q&&(x.width=e.toPt(q));null!=v&&(x.height=e.toPt(v));return x};m.clone=function(){const t=new k({color:c.clone(this.color),
height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});t._set("source",c.clone(this.source));return t};m.hash=function(){return`${p.prototype.hash.call(this)}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`};return l}(h);b.__decorate([u.enumeration({esriPFS:"picture-fill"},{readOnly:!0})],n.prototype,"type",
void 0);b.__decorate([d.property(g.urlPropertyDefinition)],n.prototype,"url",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"xscale",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"yscale",void 0);b.__decorate([d.property({type:Number,cast:e.toPt,json:{write:!0}})],n.prototype,"width",void 0);b.__decorate([d.property({type:Number,cast:e.toPt,json:{write:!0}})],n.prototype,"height",void 0);b.__decorate([d.property({type:Number,cast:e.toPt,
json:{write:!0}})],n.prototype,"xoffset",void 0);b.__decorate([d.property({type:Number,cast:e.toPt,json:{write:!0}})],n.prototype,"yoffset",void 0);b.__decorate([d.property(g.sourcePropertyDefinition)],n.prototype,"source",void 0);return n=k=b.__decorate([r.subclass("esri.symbols.PictureFillSymbol")],n)})},"esri/symbols/support/urlUtils":function(){define(["exports","../../core/urlUtils","../../chunks/persistableUrlUtils"],function(a,b,c){function e(r,h,g){return h.imageData?b.makeData({mediaType:h.contentType||
"image/png",isBase64:!0,data:h.imageData}):d(h.url,g)}function d(r,h){return null==h||"service"!==h.origin&&"portal-item"!==h.origin||"feature"!==h.layer?.type&&"stream"!==h.layer?.type||b.isAbsolute(r)||!h?.layer?.parsedUrl?c.fromJSON(r,h):b.join(h.layer.parsedUrl.path,"images",r)}function n(r,h,g,k){if(b.isDataProtocol(r)){if(r=b.dataComponents(r))h.contentType=r.mediaType,h.imageData=r.data,g&&g.imageData===h.imageData&&g.url&&c.write(g.url,h,"url",k)}else c.write(r,h,"url",k)}const u={json:{read:{source:["imageData",
"url"],reader:e},write:{writer(r,h,g,k){n(r,h,this.source,k)}}}};a.read=d;a.readImageDataOrUrl=e;a.sourcePropertyDefinition={readOnly:!0,json:{read:{source:["imageData","url"],reader(r,h,g){r={};h.imageData&&(r.imageData=h.imageData);h.contentType&&(r.contentType=h.contentType);h.url&&(r.url=d(h.url,g));return r}}}};a.urlPropertyDefinition=u;a.writeImageDataAndUrl=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/PictureMarkerSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ./MarkerSymbol ./support/urlUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;n=p=function(l){function m(...f){f=l.call(this,...f)||this;f.color=null;f.type="picture-marker";f.url=null;f.source=null;f.height=12;f.width=12;f.size=null;return f}a._inheritsLoose(m,l);var t=m.prototype;t.normalizeCtorArgs=function(f,q,v){if(f&&"string"!==typeof f&&null==f.imageData)return f;const x={};f&&(x.url=f);null!=q&&(x.width=e.toPt(q));null!=v&&(x.height=e.toPt(v));return x};t.readHeight=function(f,q){return q.size||f};t.readWidth=function(f,q){return q.size||
f};t.clone=function(){const f=new p({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});f._set("source",c.clone(this.source));return f};t.hash=function(){return`${l.prototype.hash.call(this)}.${this.height}.${this.url}.${this.width}`};return m}(g);b.__decorate([d.property({json:{write:!1}})],n.prototype,"color",void 0);b.__decorate([u.enumeration({esriPMS:"picture-marker"},{readOnly:!0})],n.prototype,"type",void 0);b.__decorate([d.property(k.urlPropertyDefinition)],
n.prototype,"url",void 0);b.__decorate([d.property(k.sourcePropertyDefinition)],n.prototype,"source",void 0);b.__decorate([d.property({type:Number,cast:e.toPt,json:{write:!0}})],n.prototype,"height",void 0);b.__decorate([r.reader("height",["height","size"])],n.prototype,"readHeight",null);b.__decorate([d.property({type:Number,cast:e.toPt,json:{write:!0}})],n.prototype,"width",void 0);b.__decorate([d.property({json:{write:!1}})],n.prototype,"size",void 0);return n=p=b.__decorate([h.subclass("esri.symbols.PictureMarkerSymbol")],
n)})},"esri/symbols/PointSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./IconSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./callouts/calloutUtils ./support/Symbol3DVerticalOffset".split(" "),function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){var t;const f=
c.ofType({base:null,key:"type",typeMap:{icon:h,object:g,text:p}});c=t=function(q){function v(z){z=q.call(this,z)||this;z.verticalOffset=null;z.callout=null;z.symbolLayers=new f;z.type="point-3d";return z}a._inheritsLoose(v,q);var x=v.prototype;x.supportsCallout=function(){if(1>(this.symbolLayers?this.symbolLayers.length:0))return!1;for(const z of this.symbolLayers.items)switch(z.type){case "icon":case "text":case "object":continue;default:return!1}return!0};x.hasVisibleCallout=function(){return l.hasVisibleCallout(this)};
x.hasVisibleVerticalOffset=function(){return l.hasVisibleVerticalOffset(this)};x.clone=function(){return new t({verticalOffset:e.clone(this.verticalOffset),callout:e.clone(this.callout),styleOrigin:e.clone(this.styleOrigin),symbolLayers:e.clone(this.symbolLayers),thumbnail:e.clone(this.thumbnail)})};v.fromSimpleMarkerSymbol=function(z){return new t({symbolLayers:[h.fromSimpleMarkerSymbol(z)]})};v.fromPictureMarkerSymbol=function(z){return new t({symbolLayers:[h.fromPictureMarkerSymbol(z)]})};v.fromCIMSymbol=
function(z){return"CIMPointSymbol"!==z.data?.symbol?.type?null:z.data.symbol?.callout?new t({symbolLayers:[h.fromCIMSymbol(z)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}):new t({symbolLayers:[h.fromCIMSymbol(z)]})};v.fromTextSymbol=function(z){return new t({symbolLayers:[p.fromTextSymbol(z)]})};return v}(k);b.__decorate([d.property({type:m,json:{write:!0}})],c.prototype,"verticalOffset",void 0);b.__decorate([d.property(l.calloutProperty)],c.prototype,"callout",void 0);
b.__decorate([d.property({type:f,json:{origins:{"web-scene":{write:!0}}}})],c.prototype,"symbolLayers",void 0);b.__decorate([u.enumeration({PointSymbol3D:"point-3d"},{readOnly:!0})],c.prototype,"type",void 0);return c=t=b.__decorate([r.subclass("esri.symbols.PointSymbol3D")],c)})},"esri/symbols/PolygonSymbol3D":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Collection ../core/lang ../core/maybe ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./ExtrudeSymbol3DLayer ./FillSymbol3DLayer ./IconSymbol3DLayer ./LineSymbol3DLayer ./ObjectSymbol3DLayer ./Symbol3D ./TextSymbol3DLayer ./WaterSymbol3DLayer".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q){var v;const x=c.ofType({base:null,key:"type",typeMap:{extrude:g,fill:k,icon:p,line:l,object:m,text:f,water:q}});c=v=function(z){function y(A){A=z.call(this,A)||this;A.symbolLayers=new x;A.type="polygon-3d";return A}a._inheritsLoose(y,z);y.prototype.clone=function(){return new v({styleOrigin:e.clone(this.styleOrigin),symbolLayers:e.clone(this.symbolLayers),thumbnail:e.clone(this.thumbnail)})};y.fromJSON=function(A){const B=new v;B.read(A);if(2===B.symbolLayers.length&&
"fill"===B.symbolLayers.getItemAt(0).type&&"line"===B.symbolLayers.getItemAt(1).type){const E=B.symbolLayers.getItemAt(0),w=B.symbolLayers.getItemAt(1);!w.enabled||A.symbolLayers&&A.symbolLayers[1]&&!1===A.symbolLayers[1].enable||(E.outline={size:w.size,color:d.isSome(w.material)?w.material.color:null});B.symbolLayers.removeAt(1)}return B};y.fromSimpleFillSymbol=function(A){return new v({symbolLayers:[k.fromSimpleFillSymbol(A)]})};return y}(t);b.__decorate([n.property({type:x,json:{write:!0}})],c.prototype,
"symbolLayers",void 0);b.__decorate([r.enumeration({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],c.prototype,"type",void 0);return c=v=b.__decorate([h.subclass("esri.symbols.PolygonSymbol3D")],c)})},"esri/symbols/SimpleFillSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./FillSymbol ./SimpleLineSymbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;e=new e.JSONMap({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});g=p=function(l){function m(...f){f=l.call(this,...f)||this;f.color=new c([0,0,0,.25]);f.outline=new k;f.type="simple-fill";f.style="solid";return f}a._inheritsLoose(m,l);var t=m.prototype;t.normalizeCtorArgs=
function(f,q,v){if(f&&"string"!==typeof f)return f;const x={};f&&(x.style=f);q&&(x.outline=q);v&&(x.color=v);return x};t.clone=function(){return new p({color:d.clone(this.color),outline:this.outline&&this.outline.clone(),style:this.style})};t.hash=function(){return`${l.prototype.hash.call(this)}${this.style}.${this.color&&this.color.hash()}`};return m}(g);b.__decorate([n.property()],g.prototype,"color",void 0);b.__decorate([n.property()],g.prototype,"outline",void 0);b.__decorate([r.enumeration({esriSFS:"simple-fill"},
{readOnly:!0})],g.prototype,"type",void 0);b.__decorate([n.property({type:e.apiValues,json:{read:e.read,write:e.write}})],g.prototype,"style",void 0);return g=p=b.__decorate([h.subclass("esri.symbols.SimpleFillSymbol")],g)})},"esri/symbols/SimpleMarkerSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/jsonMap ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./MarkerSymbol ./SimpleLineSymbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){var m;e=new e.JSONMap({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});p=m=function(t){function f(...v){v=t.call(this,...v)||this;v.color=new c([255,255,255,.25]);v.type="simple-marker";v.size=12;v.style="circle";v.outline=new l;return v}a._inheritsLoose(f,t);var q=f.prototype;q.normalizeCtorArgs=function(v,x,z,y){if(v&&"string"!==typeof v)return v;const A={};
v&&(A.style=v);null!=x&&(A.size=n.toPt(x));z&&(A.outline=z);y&&(A.color=y);return A};q.writeColor=function(v,x){v&&"x"!==this.style&&"cross"!==this.style&&(x.color=v.toJSON());null===v&&(x.color=null)};q.clone=function(){return new m({angle:this.angle,color:d.clone(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})};q.hash=function(){return`${t.prototype.hash.call(this)}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`};
a._createClass(f,[{key:"path",set:function(v){this.style="path";this._set("path",v)}}]);return f}(p);b.__decorate([u.property()],p.prototype,"color",void 0);b.__decorate([k.writer("color")],p.prototype,"writeColor",null);b.__decorate([h.enumeration({esriSMS:"simple-marker"},{readOnly:!0})],p.prototype,"type",void 0);b.__decorate([u.property()],p.prototype,"size",void 0);b.__decorate([u.property({type:e.apiValues,json:{read:e.read,write:e.write}})],p.prototype,"style",void 0);b.__decorate([u.property({type:String,
json:{write:!0}})],p.prototype,"path",null);b.__decorate([u.property({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l}},json:{default:null,write:!0}})],p.prototype,"outline",void 0);return p=m=b.__decorate([g.subclass("esri.symbols.SimpleMarkerSymbol")],p)})},"esri/symbols/TextSymbol":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./Font ./Symbol ./support/textUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){var m;p=m=function(t){function f(...v){v=t.call(this,...v)||this;v.backgroundColor=null;v.borderLineColor=null;v.borderLineSize=null;v.font=new k;v.horizontalAlignment="center";v.kerning=!0;v.haloColor=null;v.haloSize=null;v.rightToLeft=null;v.rotated=!1;v.text="";v.type="text";v.verticalAlignment="baseline";v.xoffset=0;v.yoffset=0;v.angle=0;v.width=null;v.lineWidth=192;v.lineHeight=1;return v}a._inheritsLoose(f,t);var q=f.prototype;q.normalizeCtorArgs=function(v,
x,z){if(v&&"string"!==typeof v)return v;const y={};v&&(y.text=v);x&&(y.font=x);z&&(y.color=z);return y};q.writeLineWidth=function(v,x,z,y){y&&"string"!==typeof y||(x[z]=v)};q.castLineWidth=function(v){return d.toPt(v)};q.writeLineHeight=function(v,x,z,y){y&&"string"!==typeof y||(x[z]=v)};q.clone=function(){return new m({angle:this.angle,backgroundColor:e.clone(this.backgroundColor),borderLineColor:e.clone(this.borderLineColor),borderLineSize:this.borderLineSize,color:e.clone(this.color),font:this.font&&
this.font.clone(),haloColor:e.clone(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})};q.hash=function(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&
this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`};return f}(p);b.__decorate([n.property({type:c,json:{write:!0}})],p.prototype,"backgroundColor",void 0);b.__decorate([n.property({type:c,json:{write:!0}})],p.prototype,"borderLineColor",void 0);b.__decorate([n.property({type:Number,
json:{write:!0}})],p.prototype,"borderLineSize",void 0);b.__decorate([n.property({type:k,json:{write:!0}})],p.prototype,"font",void 0);b.__decorate([n.property({...l.horizontalAlignmentProperty,json:{write:!0}})],p.prototype,"horizontalAlignment",void 0);b.__decorate([n.property({type:Boolean,json:{write:!0}})],p.prototype,"kerning",void 0);b.__decorate([n.property({type:c,json:{write:!0}})],p.prototype,"haloColor",void 0);b.__decorate([n.property({type:Number,cast:d.toPt,json:{write:!0}})],p.prototype,
"haloSize",void 0);b.__decorate([n.property({type:Boolean,json:{write:!0}})],p.prototype,"rightToLeft",void 0);b.__decorate([n.property({type:Boolean,json:{write:!0}})],p.prototype,"rotated",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],p.prototype,"text",void 0);b.__decorate([r.enumeration({esriTS:"text"},{readOnly:!0})],p.prototype,"type",void 0);b.__decorate([n.property({...l.verticalAlignmentProperty,json:{write:!0}})],p.prototype,"verticalAlignment",void 0);b.__decorate([n.property({type:Number,
cast:d.toPt,json:{write:!0}})],p.prototype,"xoffset",void 0);b.__decorate([n.property({type:Number,cast:d.toPt,json:{write:!0}})],p.prototype,"yoffset",void 0);b.__decorate([n.property({type:Number,json:{read:t=>t&&-1*t,write:(t,f)=>f.angle=t&&-1*t}})],p.prototype,"angle",void 0);b.__decorate([n.property({type:Number,json:{write:!0}})],p.prototype,"width",void 0);b.__decorate([n.property({type:Number})],p.prototype,"lineWidth",void 0);b.__decorate([g.writer("lineWidth")],p.prototype,"writeLineWidth",
null);b.__decorate([u.cast("lineWidth")],p.prototype,"castLineWidth",null);b.__decorate([n.property(l.lineHeightProperty)],p.prototype,"lineHeight",void 0);b.__decorate([g.writer("lineHeight")],p.prototype,"writeLineHeight",null);return p=m=b.__decorate([h.subclass("esri.symbols.TextSymbol")],p)})},"esri/symbols/WebStyleSymbol":function(){define("require ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../portal/Portal ../chunks/persistableUrlUtils ./Symbol ./support/Thumbnail".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){function f(){return new Promise((v,x)=>a(["./support/webStyleSymbolUtils"],v,x))}var q;r=q=function(v){function x(y){y=v.call(this,y)||this;y.styleName=null;y.portal=null;y.styleUrl=null;y.thumbnail=null;y.name=null;y.type="web-style";return y}b._inheritsLoose(x,v);var z=x.prototype;z.read=function(y,A){this.portal=A?A.portal:void 0;v.prototype.read.call(this,y,A)};z.clone=function(){return new q({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,
portal:this.portal})};z.fetchSymbol=function(y){return this._fetchSymbol("webRef",y)};z.fetchCIMSymbol=function(y){return this._fetchSymbol("cimRef",y)};z._fetchSymbol=function(){var y=b._asyncToGenerator(function*(A,B){const E=d.isSome(B)?B.cache:null,w=E?this._fetchCacheKey:null;if(d.isSome(E)){var D=w&&E.get(w);if(D)return D.clone()}D=yield f();n.throwIfAborted(B);B=D.resolveWebStyleSymbol(this,{portal:this.portal},A,B);B.catch(C=>{e.getLogger(this.declaredClass).error("#fetchSymbol()","Failed to create symbol from style",
C)});B=yield B;if(!("webRef"===A&&"point-3d"===B.type||"cimRef"===A&&"cim"===B.type))return null;d.isSome(E)&&E.set(w,B.clone());return B});return function(A,B){return y.apply(this,arguments)}}();b._createClass(x,[{key:"_fetchCacheKey",get:function(){const y=d.isSome(this.portal)?this.portal:p.getDefault();return`${this.styleName}:${this.styleUrl}:${this.name}:${y.user?y.user.username:null}:${y.url}`}}]);return x}(m);c.__decorate([u.property({json:{write:!1}})],r.prototype,"color",void 0);c.__decorate([u.property({type:String,
json:{write:!0}})],r.prototype,"styleName",void 0);c.__decorate([u.property({type:p,json:{write:!1}})],r.prototype,"portal",void 0);c.__decorate([u.property({type:String,json:{read:l.read,write:l.write}})],r.prototype,"styleUrl",void 0);c.__decorate([u.property({type:t.Thumbnail,json:{read:!1}})],r.prototype,"thumbnail",void 0);c.__decorate([u.property({type:String,json:{write:!0}})],r.prototype,"name",void 0);c.__decorate([g.enumeration({styleSymbolReference:"web-style"},{readOnly:!0})],r.prototype,
"type",void 0);c.__decorate([u.property()],r.prototype,"_fetchCacheKey",null);return r=q=c.__decorate([k.subclass("esri.symbols.WebStyleSymbol")],r)})},"esri/renderers/Renderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/jsonMap ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./support/AuthoringInfo".split(" "),function(a,b,c,e,d,n,u,r,h){c=new c.JSONMap({simple:"simple",
uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});e=function(g){function k(l){l=g.call(this,l)||this;l.authoringInfo=null;l.type=null;return l}a._inheritsLoose(k,g);var p=k.prototype;p.getRequiredFields=function(){var l=a._asyncToGenerator(function*(m){if(!this.collectRequiredFields)return[];const t=new Set;yield this.collectRequiredFields(t,m);return Array.from(t).sort()});return function(m){return l.apply(this,
arguments)}}();p.getSymbol=function(l,m){};p.getSymbolAsync=function(){var l=a._asyncToGenerator(function*(m,t){});return function(m,t){return l.apply(this,arguments)}}();p.getSymbols=function(){return[]};p.getAttributeHash=function(){return JSON.stringify(this)};p.getMeshHash=function(){return JSON.stringify(this)};return k}(e.JSONSupport);b.__decorate([d.property({type:h,json:{write:!0}})],e.prototype,"authoringInfo",void 0);b.__decorate([d.property({type:c.apiValues,readOnly:!0,json:{type:c.jsonValues,
read:!1,write:{writer:c.write,ignoreOrigin:!0}}})],e.prototype,"type",void 0);return e=b.__decorate([r.subclass("esri.renderers.Renderer")],e)})},"esri/renderers/support/AuthoringInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./AuthoringInfoFieldInfo ./AuthoringInfoVisualVariable ../../rest/support/colorRamps".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;const m=new c.JSONMap({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),t=new c.JSONMap({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",
dotDensity:"dot-density",flow:"flow"});c=new c.JSONMap({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"});const f="inches feet yards miles nautical-miles millimeters centimeters decimeters meters kilometers decimal-degrees".split(" ");e=l=function(q){function v(z){z=q.call(this,z)||this;z.colorRamp=null;z.fadeRatio=null;z.isAutoGenerated=!1;z.lengthUnit=null;
z.maxSliderValue=null;z.minSliderValue=null;z.visualVariables=null;return z}a._inheritsLoose(v,q);var x=v.prototype;x.readColorRamp=function(z){return z?p.fromJSON(z):void 0};x.clone=function(){return new l({classificationMethod:this.classificationMethod,colorRamp:d.clone(this.colorRamp),fadeRatio:d.clone(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:d.clone(this.field1),field2:d.clone(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,
maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map(z=>z.clone()),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})};a._createClass(v,[{key:"classificationMethod",get:function(){const z=this._get("classificationMethod"),y=this.type;
return y&&"relationship"!==y?"class-breaks-size"===y||"class-breaks-color"===y?z||"manual":null:z},set:function(z){this._set("classificationMethod",z)}},{key:"fields",get:function(){return this.type&&"predominance"!==this.type?null:this._get("fields")},set:function(z){this._set("fields",z)}},{key:"field1",get:function(){return this.type&&"relationship"!==this.type?null:this._get("field1")},set:function(z){this._set("field1",z)}},{key:"field2",get:function(){return this.type&&"relationship"!==this.type?
null:this._get("field2")},set:function(z){this._set("field2",z)}},{key:"flowTheme",get:function(){return"flow"===this.type?this._get("flowTheme"):null},set:function(z){this._set("flowTheme",z)}},{key:"focus",get:function(){return this.type&&"relationship"!==this.type?null:this._get("focus")},set:function(z){this._set("focus",z)}},{key:"numClasses",get:function(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")},set:function(z){this._set("numClasses",z)}},{key:"statistics",
get:function(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null},set:function(z){this._set("statistics",z)}},{key:"standardDeviationInterval",get:function(){const z=this.type;return z&&"relationship"!==z&&"class-breaks-size"!==z&&"class-breaks-color"!==z?null:this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")},set:function(z){this._set("standardDeviationInterval",z)}},
{key:"type",get:function(){return this._get("type")},set:function(z){let y=z;"classed-size"===z?y="class-breaks-size":"classed-color"===z&&(y="class-breaks-color");this._set("type",y)}},{key:"univariateSymbolStyle",get:function(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null},set:function(z){this._set("univariateSymbolStyle",z)}},{key:"univariateTheme",get:function(){return"univariate-color-size"===this.type?this._get("univariateTheme"):
null},set:function(z){this._set("univariateTheme",z)}}]);return v}(e.JSONSupport);b.__decorate([n.property({type:m.apiValues,value:null,json:{type:m.jsonValues,read:m.read,write:m.write,origins:{"web-document":{default:"manual",type:m.jsonValues,read:m.read,write:m.write}}}})],e.prototype,"classificationMethod",null);b.__decorate([n.property({types:p.types,json:{write:!0}})],e.prototype,"colorRamp",void 0);b.__decorate([r.reader("colorRamp")],e.prototype,"readColorRamp",null);b.__decorate([n.property({json:{write:!0,
origins:{"web-scene":{write:!1,read:!1}}}})],e.prototype,"fadeRatio",void 0);b.__decorate([n.property({type:[String],value:null,json:{write:!0}})],e.prototype,"fields",null);b.__decorate([n.property({type:g.AuthoringInfoFieldInfo,value:null,json:{write:!0}})],e.prototype,"field1",null);b.__decorate([n.property({type:g.AuthoringInfoFieldInfo,value:null,json:{write:!0}})],e.prototype,"field2",null);b.__decorate([n.property({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],
e.prototype,"flowTheme",null);b.__decorate([n.property({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],e.prototype,"focus",null);b.__decorate([n.property({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],e.prototype,"isAutoGenerated",void 0);b.__decorate([n.property({type:Number,value:null,json:{type:u.Integer,write:!0}})],e.prototype,"numClasses",null);b.__decorate([n.property({type:f,json:{type:f,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],
e.prototype,"lengthUnit",void 0);b.__decorate([n.property({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],e.prototype,"maxSliderValue",void 0);b.__decorate([n.property({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],e.prototype,"minSliderValue",void 0);b.__decorate([n.property({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],e.prototype,"statistics",null);b.__decorate([n.property({type:[.25,.33,.5,1],value:null,json:{type:[.25,
.33,.5,1],write:!0}})],e.prototype,"standardDeviationInterval",null);b.__decorate([n.property({type:t.apiValues,value:null,json:{type:t.jsonValues,read:t.read,write:t.write,origins:{"web-scene":{type:c.jsonValues,write:{writer:c.write,overridePolicy(q){return{enabled:"flow"!==q}}}}}}})],e.prototype,"type",null);b.__decorate([n.property({type:[k],json:{write:!0}})],e.prototype,"visualVariables",void 0);b.__decorate([n.property({type:"caret circle-caret arrow circle-arrow plus-minus circle-plus-minus square circle triangle happy-sad thumb custom".split(" "),
value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],e.prototype,"univariateSymbolStyle",null);b.__decorate([n.property({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],e.prototype,"univariateTheme",null);return e=l=b.__decorate([h.subclass("esri.renderers.support.AuthoringInfo")],e)})},"esri/renderers/support/AuthoringInfoFieldInfo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./AuthoringInfoClassBreakInfo".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;a.AuthoringInfoFieldInfo=g=function(k){function p(l){l=k.call(this,l)||this;l.field="";l.normalizationField="";l.label="";l.classBreakInfos=[];return l}b._inheritsLoose(p,k);p.prototype.clone=function(){return new g({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:d.clone(this.classBreakInfos)})};return p}(e.JSONSupport);c.__decorate([n.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"field",
void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"normalizationField",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"label",void 0);c.__decorate([n.property({type:[h.AuthoringInfoClassBreakInfo],json:{write:!0}})],a.AuthoringInfoFieldInfo.prototype,"classBreakInfos",void 0);a.AuthoringInfoFieldInfo=g=c.__decorate([r.subclass("esri.renderers.support.AuthoringInfoFieldInfo")],a.AuthoringInfoFieldInfo);
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/AuthoringInfoClassBreakInfo":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){var h;a.AuthoringInfoClassBreakInfo=h=function(g){function k(p){p=
g.call(this,p)||this;p.minValue=0;p.maxValue=0;return p}b._inheritsLoose(k,g);k.prototype.clone=function(){return new h({minValue:this.minValue,maxValue:this.maxValue})};return k}(e.JSONSupport);c.__decorate([d.property({type:Number,json:{write:!0}})],a.AuthoringInfoClassBreakInfo.prototype,"minValue",void 0);c.__decorate([d.property({type:Number,json:{write:!0}})],a.AuthoringInfoClassBreakInfo.prototype,"maxValue",void 0);a.AuthoringInfoClassBreakInfo=h=c.__decorate([r.subclass("esri.renderer.support.AuthoringInfoClassBreakInfo")],
a.AuthoringInfoClassBreakInfo);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/AuthoringInfoVisualVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){var h;
n=new c.JSONMap({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"});c=new c.JSONMap({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"});const g={key(m){return"number"===typeof m?"number":"string"},typeMap:{number:Number,string:String},base:null},k=["high-to-low","above-and-below","centered-on","extremes"],p=[...(new Set("high-to-low above-and-below centered-on extremes 90-10 above below high-to-low above-and-below 90-10 above below".split(" ")))],
l="seconds minutes hours days months years".split(" ");e=h=function(m){function t(q){q=m.call(this,q)||this;q.endTime=null;q.field=null;q.maxSliderValue=null;q.minSliderValue=null;q.startTime=null;q.type=null;q.units=null;return q}a._inheritsLoose(t,m);var f=t.prototype;f.castEndTime=function(q){return"string"===typeof q||"number"===typeof q?q:null};f.castStartTime=function(q){return"string"===typeof q||"number"===typeof q?q:null};f.clone=function(){return new h({endTime:this.endTime,field:this.field,
maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})};a._createClass(t,[{key:"style",get:function(){return"color"===this.type?this._get("style"):null},set:function(q){this._set("style",q)}},{key:"theme",get:function(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null},set:function(q){this._set("theme",q)}}]);return t}(e.JSONSupport);b.__decorate([d.property({types:g,
json:{write:!0}})],e.prototype,"endTime",void 0);b.__decorate([u.cast("endTime")],e.prototype,"castEndTime",null);b.__decorate([d.property({type:String,json:{write:!0}})],e.prototype,"field",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],e.prototype,"maxSliderValue",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],e.prototype,"minSliderValue",void 0);b.__decorate([d.property({types:g,json:{write:!0}})],e.prototype,"startTime",void 0);b.__decorate([u.cast("startTime")],
e.prototype,"castStartTime",null);b.__decorate([d.property({type:n.apiValues,value:null,json:{type:n.jsonValues,read:n.read,write:n.write}})],e.prototype,"style",null);b.__decorate([d.property({type:p,value:null,json:{type:p,origins:{"web-scene":{type:k,write:{writer:(m,t)=>{k.includes(m)&&(t.theme=m)}}}},write:!0}})],e.prototype,"theme",null);b.__decorate([d.property({type:c.apiValues,json:{type:c.jsonValues,read:c.read,write:c.write}})],e.prototype,"type",void 0);b.__decorate([d.property({type:l,
json:{type:l,write:!0}})],e.prototype,"units",void 0);return e=h=b.__decorate([r.subclass("esri.renderers.support.AuthoringInfoVisualVariable")],e)})},"esri/rest/support/colorRamps":function(){define(["exports","./AlgorithmicColorRamp","./ColorRamp","./MultipartColorRamp"],function(a,b,c,e){c={key:"type",base:c,typeMap:{algorithmic:b,multipart:e}};a.fromJSON=function(d){return d&&d.type?"algorithmic"===d.type?b.fromJSON(d):"multipart"===d.type?e.fromJSON(d):null:null};a.types=c;Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/support/AlgorithmicColorRamp":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./ColorRamp".split(" "),function(a,b,c,e,d,n,u,r,h){var g;h=g=function(k){function p(l){l=k.call(this,l)||
this;l.algorithm=null;l.fromColor=null;l.toColor=null;l.type="algorithmic";return l}a._inheritsLoose(p,k);p.prototype.clone=function(){return new g({fromColor:e.clone(this.fromColor),toColor:e.clone(this.toColor),algorithm:this.algorithm})};return p}(h);b.__decorate([u.enumeration({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0);b.__decorate([d.property({type:c,json:{type:[n.Integer],write:!0}})],h.prototype,"fromColor",void 0);
b.__decorate([d.property({type:c,json:{type:[n.Integer],write:!0}})],h.prototype,"toColor",void 0);b.__decorate([d.property({type:["algorithmic"]})],h.prototype,"type",void 0);return h=g=b.__decorate([r.subclass("esri.rest.support.AlgorithmicColorRamp")],h)})},"esri/rest/support/ColorRamp":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.type=null;return g}a._inheritsLoose(h,r);return h}(c.JSONSupport);b.__decorate([e.property({readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.rest.support.ColorRamp")],c)})},"esri/rest/support/MultipartColorRamp":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./AlgorithmicColorRamp ./ColorRamp".split(" "),
function(a,b,c,e,d,n,u,r){var h;d=h=function(g){function k(p){p=g.call(this,p)||this;p.colorRamps=null;p.type="multipart";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({colorRamps:c.clone(this.colorRamps)})};return k}(r);b.__decorate([e.property({type:[u],json:{write:!0}})],d.prototype,"colorRamps",void 0);b.__decorate([e.property({type:["multipart"]})],d.prototype,"type",void 0);return d=h=b.__decorate([n.subclass("esri.rest.support.MultipartColorRamp")],d)})},"esri/renderers/mixins/VisualVariablesMixin":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/fieldUtils ../support/randomRotationExpression ../visualVariables/ColorVariable ../visualVariables/OpacityVariable ../visualVariables/RotationVariable ../visualVariables/SizeVariable ../visualVariables/VisualVariable ../visualVariables/VisualVariableFactory".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v){const x={base:q,key:"type",typeMap:{opacity:m,color:l,rotation:t,size:f}};a.VisualVariablesMixin=z=>{z=function(y){function A(){var E=y.apply(this,arguments)||this;E._vvFactory=new v;return E}b._inheritsLoose(A,y);var B=A.prototype;B.readVisualVariables=function(E,w,D){return this._vvFactory.readVariables(E,w,D)};B.writeVisualVariables=function(E,w,D,C){w[D]=this._vvFactory.writeVariables(E,C)};B.hasVisualVariables=function(E,w){return E?0<this.getVisualVariablesForType(E,
w).length:0<this.getVisualVariablesForType("size",w).length||0<this.getVisualVariablesForType("color",w).length||0<this.getVisualVariablesForType("opacity",w).length||0<this.getVisualVariablesForType("rotation",w).length};B.getVisualVariablesForType=function(E,w){const D=this.visualVariables;return D?D.filter(C=>C.type===E&&("string"===typeof w?C.target===w:!1===w?!C.target:!0)):[]};B.collectVVRequiredFields=function(){var E=b._asyncToGenerator(function*(w,D){var C=[];this.visualVariables&&(C=C.concat(this.visualVariables));
for(const G of C)if(G&&(G.field&&k.collectField(w,D,G.field),G.normalizationField&&k.collectField(w,D,G.normalizationField),G.valueExpression)){{C=w;var F=D;const H=p.matchRandomRotationExpression(G.valueExpression);e.isSome(H)?(k.collectField(C,F,H),C=!0):C=!1}C||(yield k.collectArcadeFieldNames(w,D,G.valueExpression))}});return function(w,D){return E.apply(this,arguments)}}();b._createClass(A,[{key:"visualVariables",set:function(E){this._vvFactory.visualVariables=E;this._set("visualVariables",this._vvFactory.visualVariables)}},
{key:"arcadeRequiredForVisualVariables",get:function(){if(!this.visualVariables)return!1;for(const E of this.visualVariables)if(E.arcadeRequired)return!0;return!1}}]);return A}(z);c.__decorate([d.property({types:[x],value:null,json:{write:!0}})],z.prototype,"visualVariables",null);c.__decorate([r.reader("visualVariables",["visualVariables","rotationType","rotationExpression"])],z.prototype,"readVisualVariables",null);c.__decorate([g.writer("visualVariables")],z.prototype,"writeVisualVariables",null);
return z=c.__decorate([h.subclass("esri.renderers.mixins.VisualVariablesMixin")],z)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/randomRotationExpression":function(){define(["exports"],function(a){const b=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;a.matchRandomRotationExpression=function(c){return c.match(b)?.[1]?.replace(/\\'/g,"'")??null};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/renderers/visualVariables/ColorVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/ColorStop".split(" "),function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(l){l=g.call(this,l)||this;l.type="color";l.normalizationField=null;return l}a._inheritsLoose(k,g);var p=k.prototype;
p.clone=function(){return new h({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(l=>l.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})};p.getAttributeHash=function(){return`${g.prototype.getAttributeHash.call(this)}-${this.normalizationField}`};p._interpolateData=function(){return this.stops&&this.stops.map(l=>l.value||0)};a._createClass(k,[{key:"cache",
get:function(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}},{key:"stops",set:function(l){l&&Array.isArray(l)&&(l=l.filter(m=>!!m),l.sort((m,t)=>m.value-t.value));this._set("stops",l)}}]);return k}(u);b.__decorate([c.property({readOnly:!0})],e.prototype,"cache",null);b.__decorate([c.property({type:["color"],json:{type:["colorInfo"]}})],e.prototype,"type",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"normalizationField",
void 0);b.__decorate([c.property({type:[r],json:{write:!0}})],e.prototype,"stops",null);return e=h=b.__decorate([n.subclass("esri.renderers.visualVariables.ColorVariable")],e)})},"esri/renderers/visualVariables/VisualVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType ./support/VisualVariableLegendOptions".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){c=new c.JSONMap({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});e=function(p){function l(t){t=p.call(this,t)||this;t.index=null;t.type=null;t.field=null;t.valueExpression=null;t.valueExpressionTitle=null;t.legendOptions=null;return t}a._inheritsLoose(l,p);var m=l.prototype;m.castField=function(t){return null==t?t:"function"===typeof t?(d.getLogger(this.declaredClass).error(".field: field must be a string value"),null):g.ensureString(t)};
m.clone=function(){};m.getAttributeHash=function(){return`${this.type}-${this.field}-${this.valueExpression}`};a._createClass(l,[{key:"arcadeRequired",get:function(){return!!this.valueExpression}}]);return l}(e.JSONSupport);b.__decorate([n.property()],e.prototype,"index",void 0);b.__decorate([n.property({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],e.prototype,"type",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"field",void 0);b.__decorate([r.cast("field")],
e.prototype,"castField",null);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"valueExpression",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"valueExpressionTitle",void 0);b.__decorate([n.property({readOnly:!0})],e.prototype,"arcadeRequired",null);b.__decorate([n.property({type:k,json:{write:!0}})],e.prototype,"legendOptions",void 0);return e=b.__decorate([h.subclass("esri.renderers.visualVariables.VisualVariable")],e)})},"esri/renderers/visualVariables/support/VisualVariableLegendOptions":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../support/LegendOptions".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(){var k=h.apply(this,arguments)||this;k.showLegend=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({title:this.title,showLegend:this.showLegend})};return g}(u.LegendOptions);b.__decorate([c.property({type:Boolean,json:{write:!0}})],e.prototype,"showLegend",void 0);return e=r=b.__decorate([n.subclass("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],e)})},"esri/renderers/support/LegendOptions":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){var h;a.LegendOptions=h=function(g){function k(){var p=g.apply(this,arguments)||this;p.title=null;return p}b._inheritsLoose(k,g);k.prototype.clone=function(){return new h({title:this.title})};return k}(e.JSONSupport);c.__decorate([d.property({type:String,json:{write:!0}})],a.LegendOptions.prototype,"title",void 0);a.LegendOptions=h=c.__decorate([r.subclass("esri.renderers.support.LegendOptions")],a.LegendOptions);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/renderers/visualVariables/support/ColorStop":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../Color ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer".split(" "),function(a,b,c,e,d,n,u,r,h){var g;e=g=function(k){function p(m){m=k.call(this,m)||this;m.color=null;
m.label=null;m.value=null;return m}a._inheritsLoose(p,k);var l=p.prototype;l.writeValue=function(m,t,f){t[f]=null==m?0:m};l.clone=function(){return new g({color:this.color&&this.color.clone(),label:this.label,value:this.value})};return p}(e.JSONSupport);b.__decorate([d.property({type:c,json:{type:[u.Integer],write:!0}})],e.prototype,"color",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],e.prototype,"label",void 0);b.__decorate([d.property({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],
e.prototype,"value",void 0);b.__decorate([h.writer("value")],e.prototype,"writeValue",null);return e=g=b.__decorate([r.subclass("esri.renderers.visualVariables.support.ColorStop")],e)})},"esri/renderers/visualVariables/OpacityVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./VisualVariable ./support/OpacityStop".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(l){l=g.call(this,l)||this;l.type="opacity";l.normalizationField=null;return l}a._inheritsLoose(k,g);var p=k.prototype;p.clone=function(){return new h({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map(l=>l.clone()),legendOptions:this.legendOptions&&this.legendOptions.clone()})};p.getAttributeHash=function(){return`${g.prototype.getAttributeHash.call(this)}-${this.normalizationField}`};
p._interpolateData=function(){return this.stops&&this.stops.map(l=>l.value||0)};a._createClass(k,[{key:"cache",get:function(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}},{key:"stops",set:function(l){l&&Array.isArray(l)&&(l=l.filter(m=>!!m),l.sort((m,t)=>m.value-t.value));this._set("stops",l)}}]);return k}(u);b.__decorate([c.property({readOnly:!0})],e.prototype,"cache",null);b.__decorate([c.property({type:["opacity"],json:{type:["transparencyInfo"]}})],
e.prototype,"type",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"normalizationField",void 0);b.__decorate([c.property({type:[r],json:{write:!0}})],e.prototype,"stops",null);return e=h=b.__decorate([n.subclass("esri.renderers.visualVariables.OpacityVariable")],e)})},"esri/renderers/visualVariables/support/OpacityStop":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ../../../webdoc/support/opacityUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=k=function(p){function l(t){t=p.call(this,t)||this;t.label=null;t.opacity=null;t.value=null;return t}a._inheritsLoose(l,p);var m=l.prototype;m.readOpacity=function(t,f){return g.transparencyToOpacity(f.transparency)};m.writeOpacity=function(t,f,q){f[q]=g.opacityToTransparency(t)};m.clone=function(){return new k({label:this.label,opacity:this.opacity,value:this.value})};return l}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,
"label",void 0);b.__decorate([e.property({type:Number,json:{type:n.Integer,write:{target:"transparency"}}})],c.prototype,"opacity",void 0);b.__decorate([u.reader("opacity",["transparency"])],c.prototype,"readOpacity",null);b.__decorate([h.writer("opacity")],c.prototype,"writeOpacity",null);b.__decorate([e.property({type:Number,json:{write:!0}})],c.prototype,"value",void 0);return c=k=b.__decorate([r.subclass("esri.renderers.visualVariables.support.OpacityStop")],c)})},"esri/renderers/visualVariables/RotationVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;d=g=function(k){function p(m){m=k.call(this,m)||this;m.axis=null;m.type="rotation";m.rotationType="geographic";m.valueExpressionTitle=null;return m}a._inheritsLoose(p,k);var l=p.prototype;l.writeValueExpressionTitleWebScene=function(m,t,f,q){q&&q.messages&&q.messages.push(new c("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:`visualVariables[${this.index}]`+
".valueExpressionTitle",context:q}))};l.clone=function(){return new g({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})};a._createClass(p,[{key:"cache",get:function(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}}]);return p}(h);b.__decorate([e.property({readOnly:!0})],d.prototype,"cache",null);b.__decorate([e.property({type:["heading",
"tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],d.prototype,"axis",void 0);b.__decorate([e.property({type:["rotation"],json:{type:["rotationInfo"]}})],d.prototype,"type",void 0);b.__decorate([e.property({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],d.prototype,"rotationType",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0);b.__decorate([r.writer("web-scene",
"valueExpressionTitle")],d.prototype,"writeValueExpressionTitleWebScene",null);return d=g=b.__decorate([u.subclass("esri.renderers.visualVariables.RotationVariable")],d)})},"esri/renderers/visualVariables/SizeVariable":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/jsonMap ../../core/Logger ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./VisualVariable ./support/SizeStop ./support/SizeVariableLegendOptions ./support/sizeVariableUtils ./support/visualVariableUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q){function v(B){if(null!=B){if("string"===typeof B||"number"===typeof B)return n.toPt(B);if("size"===B.type){if(f.isSizeVariable(B))return B;B={...B};delete B.type;return new A(B)}}}function x(B,E,w){if("object"!==typeof B)return B;E=new A;E.read(B,w);return E}var z;r=new e.JSONMap({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"});const y=new e.JSONMap({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles",
"nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});let A=z=function(B){function E(D){D=B.call(this,D)||this;D.axis=null;D.legendOptions=null;D.normalizationField=null;D.scaleBy=null;D.target=null;D.type="size";D.useSymbolValue=null;D.valueExpression=null;D.valueRepresentation=null;D.valueUnit=null;return D}a._inheritsLoose(E,B);var w=E.prototype;w.castMaxSize=function(D){return v(D)};
w.readMaxSize=function(D,C,F){return x(D,C,F)};w.castMinSize=function(D){return v(D)};w.readMinSize=function(D,C,F){return x(D,C,F)};w.readValueExpression=function(D,C){return D||C.expression&&"$view.scale"};w.writeValueExpressionWebScene=function(D,C,F,G){"$view.scale"===D?G&&G.messages&&(D=this.index,G.messages.push(new c("property:unsupported",this.type+"VisualVariable.valueExpression \x3d '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,
propertyName:("string"===typeof D?D:`visualVariables[${D}]`)+".valueExpression",context:G}))):C[F]=D};w.readValueUnit=function(D){return D?y.read(D):null};w.clone=function(){return new z({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:f.isSizeVariable(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:f.isSizeVariable(this.minSize)?this.minSize.clone():this.minSize,
normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(D=>D.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})};w.flipSizes=function(){if(this.transformationType===f.TransformationType.ClampedLinear){const {minSize:D,maxSize:C}=this;this.minSize=C;this.maxSize=D;return this}if(this.transformationType===f.TransformationType.Stops){const D=
this.stops;if(!D)return this;const C=D.map(G=>G.size).reverse(),F=D.length;for(let G=0;G<F;G++)D[G].size=C[G]}return this};w.getAttributeHash=function(){return`${B.prototype.getAttributeHash.call(this)}-${this.target}-${this.normalizationField}`};w._interpolateData=function(){return this.stops&&this.stops.map(D=>D.value||0)};a._createClass(E,[{key:"cache",get:function(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&
q.viewScaleRE.test(this.valueExpression)}}},{key:"expression",set:function(D){d.getLogger(this.declaredClass).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'.");"view.scale"===D?(this.valueExpression="$view.scale",this._set("expression",D)):this._set("expression",null)}},{key:"index",set:function(D){f.isSizeVariable(this.maxSize)&&(this.maxSize.index=`visualVariables[${D}].maxSize`);f.isSizeVariable(this.minSize)&&(this.minSize.index=
`visualVariables[${D}].minSize`);this._set("index",D)}},{key:"inputValueType",get:function(){return f.getInputValueType(this)}},{key:"maxDataValue",set:function(D){D&&this.stops&&(d.getLogger(this.declaredClass).warn("cannot set maxDataValue when stops is not null."),D=null);this._set("maxDataValue",D)}},{key:"maxSize",set:function(D){D&&this.stops&&(d.getLogger(this.declaredClass).warn("cannot set maxSize when stops is not null."),D=null);this._set("maxSize",D)}},{key:"minDataValue",set:function(D){D&&
this.stops&&(d.getLogger(this.declaredClass).warn("cannot set minDataValue when stops is not null."),D=null);this._set("minDataValue",D)}},{key:"minSize",set:function(D){D&&this.stops&&(d.getLogger(this.declaredClass).warn("cannot set minSize when stops is not null."),D=null);this._set("minSize",D)}},{key:"arcadeRequired",get:function(){return this.valueExpression?!0:null!=this.minSize&&"object"===typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"===typeof this.maxSize&&
this.maxSize.arcadeRequired}},{key:"stops",set:function(D){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?D&&Array.isArray(D)&&(D=D.filter(C=>!!C),D.sort((C,F)=>C.value-F.value)):D&&(d.getLogger(this.declaredClass).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),D=null);this._set("stops",D)}},{key:"transformationType",get:function(){return f.getTransformationType(this,this.inputValueType)}}]);return E}(l);b.__decorate([u.property({readOnly:!0})],
A.prototype,"cache",null);b.__decorate([u.property({type:r.apiValues,json:{type:r.jsonValues,origins:{"web-map":{read:!1}},read:r.read,write:r.write}})],A.prototype,"axis",void 0);b.__decorate([u.property({type:String,value:null,json:{read:!1}})],A.prototype,"expression",null);b.__decorate([u.property()],A.prototype,"index",null);b.__decorate([u.property({type:String,readOnly:!0})],A.prototype,"inputValueType",null);b.__decorate([u.property({type:t,json:{write:!0}})],A.prototype,"legendOptions",void 0);
b.__decorate([u.property({type:Number,value:null,json:{write:!0}})],A.prototype,"maxDataValue",null);b.__decorate([u.property({type:Number,value:null,json:{write:!0}})],A.prototype,"maxSize",null);b.__decorate([h.cast("maxSize")],A.prototype,"castMaxSize",null);b.__decorate([g.reader("maxSize")],A.prototype,"readMaxSize",null);b.__decorate([u.property({type:Number,value:null,json:{write:!0}})],A.prototype,"minDataValue",null);b.__decorate([u.property({type:Number,value:null,json:{write:!0}})],A.prototype,
"minSize",null);b.__decorate([h.cast("minSize")],A.prototype,"castMinSize",null);b.__decorate([g.reader("minSize")],A.prototype,"readMinSize",null);b.__decorate([u.property({type:String,json:{write:!0}})],A.prototype,"normalizationField",void 0);b.__decorate([u.property({readOnly:!0})],A.prototype,"arcadeRequired",null);b.__decorate([u.property({type:String})],A.prototype,"scaleBy",void 0);b.__decorate([u.property({type:[m],value:null,json:{write:!0}})],A.prototype,"stops",null);b.__decorate([u.property({type:["outline"],
json:{write:!0}})],A.prototype,"target",void 0);b.__decorate([u.property({type:String,readOnly:!0})],A.prototype,"transformationType",null);b.__decorate([u.property({type:["size"],json:{type:["sizeInfo"]}})],A.prototype,"type",void 0);b.__decorate([u.property({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],A.prototype,"useSymbolValue",void 0);b.__decorate([u.property({type:String,json:{write:!0}})],A.prototype,"valueExpression",void 0);b.__decorate([g.reader("valueExpression",["valueExpression",
"expression"])],A.prototype,"readValueExpression",null);b.__decorate([p.writer("web-scene","valueExpression")],A.prototype,"writeValueExpressionWebScene",null);b.__decorate([u.property({type:["radius","diameter","area","width","distance"],json:{write:!0}})],A.prototype,"valueRepresentation",void 0);b.__decorate([u.property({type:y.apiValues,json:{write:y.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],A.prototype,"valueUnit",void 0);b.__decorate([g.reader("valueUnit")],A.prototype,
"readValueUnit",null);return A=z=b.__decorate([k.subclass("esri.renderers.visualVariables.SizeVariable")],A)})},"esri/renderers/visualVariables/support/SizeStop":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/screenUtils ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,
r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.label=null;p.size=null;p.value=null;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({label:this.label,size:this.size,value:this.value})};return k}(c.JSONSupport);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([d.property({type:Number,cast:e.toPt,json:{write:!0}})],c.prototype,"size",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],c.prototype,
"value",void 0);return c=h=b.__decorate([r.subclass("esri.renderers.visualVariables.support.SizeStop")],c)})},"esri/renderers/visualVariables/support/SizeVariableLegendOptions":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./VisualVariableLegendOptions".split(" "),function(a,b,c,e,d,n,u){var r;
e=r=function(h){function g(){var k=h.apply(this,arguments)||this;k.customValues=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})};return g}(u);b.__decorate([c.property({type:[Number],json:{write:!0}})],e.prototype,"customValues",void 0);return e=r=b.__decorate([n.subclass("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],e)})},"esri/renderers/visualVariables/support/sizeVariableUtils":function(){define(["exports"],
function(a){function b(c){return c.valueExpression?a.InputValueType.Expression:c.field&&"string"===typeof c.field?a.InputValueType.Field:a.InputValueType.Unknown}a.InputValueType=void 0;(function(c){c.Unknown="unknown";c.Expression="expression";c.Field="field"})(a.InputValueType||(a.InputValueType={}));a.TransformationType=void 0;(function(c){c.Unknown="unknown";c.Stops="stops";c.ClampedLinear="clamped-linear";c.Proportional="proportional";c.Additive="additive";c.Constant="constant";c.Identity="identity";
c.RealWorldSize="real-world-size"})(a.TransformationType||(a.TransformationType={}));a.getInputValueType=b;a.getTransformationType=function(c,e){return(e||b(c))===a.InputValueType.Unknown?a.TransformationType.Constant:c.stops?a.TransformationType.Stops:null!=c.minSize&&null!=c.maxSize&&null!=c.minDataValue&&null!=c.maxDataValue?a.TransformationType.ClampedLinear:"unknown"===(c.valueUnit||"unknown")?null!=c.minSize&&null!=c.minDataValue?c.minSize&&c.minDataValue?a.TransformationType.Proportional:a.TransformationType.Additive:
a.TransformationType.Identity:a.TransformationType.RealWorldSize};a.isSizeVariable=function(c){return c&&"esri.renderers.visualVariables.SizeVariable"===c.declaredClass};a.isValidNumber=function(c){return null!=c&&!isNaN(c)&&isFinite(c)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/visualVariables/support/visualVariableUtils":function(){define("exports ../../../Color ../../../Graphic ../../../core/compilerUtils ../../../core/Logger ../../../core/maybe ../../support/lengthUtils ./sizeVariableUtils".split(" "),
function(a,b,c,e,d,n,u,r){function h(y,A,B){if(y="visualVariables"in y&&y.visualVariables?y.visualVariables.find(I=>"color"===I.type):y)if("esri.renderers.visualVariables.ColorVariable"!==y.declaredClass)v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");else{var E="number"===typeof A,w=E?null:A,D=w&&w.attributes,C=E?A:null,F=y.field,{ipData:G,hasExpression:H}=y.cache;A=y.cache.compiledFunc;if(!F&&!H)return(B=y.stops)&&B[0]&&B[0].color;if("number"!==
typeof C)if(H){if(n.isNone(B)||n.isNone(B.arcade)){v.error("Use of arcade expressions requires an arcade context");return}C=B.arcade.arcadeUtils;F=C.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});w=C.createExecContext(w,F);A||(A=C.createSyntaxTree(y.valueExpression),A=C.createFunction(A),y.cache.compiledFunc=A);C=C.executeFunction(A,w)}else D&&(C=D[F]);w=y.normalizationField;D=null!=D&&null!=w?parseFloat(D[w]):void 0;if(null!=C&&(!w||E||!isNaN(D)&&0!==D)&&
(isNaN(D)||E||(C/=D),E=q(C,G)))return D=E[0],w=E[1],B=D===w?y.stops[D].color:b.blendColors(y.stops[D].color,y.stops[w].color,E[2],n.isSome(B)?B.color:void 0),new b(B)}}function g(y,A,B){if(y="visualVariables"in y&&y.visualVariables?y.visualVariables.find(I=>"opacity"===I.type):y)if("esri.renderers.visualVariables.OpacityVariable"!==y.declaredClass)v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");else{var E="number"===typeof A,w=E?null:A,D=w&&w.attributes,
C=E?A:null,F=y.field,{ipData:G,hasExpression:H}=y.cache;A=y.cache.compiledFunc;if(!F&&!H)return(y=y.stops)&&y[0]&&y[0].opacity;if("number"!==typeof C)if(H){if(n.isNone(B)||n.isNone(B.arcade)){v.error("Use of arcade expressions requires an arcade context");return}C=B.arcade.arcadeUtils;B=C.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});B=C.createExecContext(w,B);A||(w=C.createSyntaxTree(y.valueExpression),A=C.createFunction(w),y.cache.compiledFunc=A);C=C.executeFunction(A,
B)}else D&&(C=D[F]);B=y.normalizationField;D=null!=D&&null!=B?parseFloat(D[B]):void 0;if(null!=C&&(!B||E||!isNaN(D)&&0!==D)&&(isNaN(D)||E||(C/=D),E=q(C,G))){B=E[0];D=E[1];if(B===D)return y.stops[B].opacity;B=y.stops[B].opacity;return B+(y.stops[D].opacity-B)*E[2]}}}function k(y,A,B){if(y="visualVariables"in y&&y.visualVariables?y.visualVariables.find(I=>"rotation"===I.type):y)if("esri.renderers.visualVariables.RotationVariable"!==y.declaredClass)v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");
else{var E=y.axis||"heading",w="heading"===E&&"arithmetic"===y.rotationType?90:0;E="heading"===E&&"arithmetic"===y.rotationType?-1:1;var D="number"===typeof A?null:A,C=D&&D.attributes,F=y.field,{hasExpression:G}=y.cache;A=y.cache.compiledFunc;var H=0;if(!F&&!G)return H;if(G){if(n.isNone(B)||n.isNone(B.arcade)){v.error("Use of arcade expressions requires an arcade context");return}C=B.arcade.arcadeUtils;B=C.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});
B=C.createExecContext(D,B);A||(A=C.createSyntaxTree(y.valueExpression),A=C.createFunction(A),y.cache.compiledFunc=A);H=C.executeFunction(A,B)}else C&&(H=C[F]||0);return H="number"!==typeof H||isNaN(H)?null:w+E*H}}function p(y,A,B){const E="number"===typeof A;var w=E?null:A;const D=w&&w.attributes;var C=E?A:null;const {isScaleDriven:F}=y.cache;A=y.cache.compiledFunc;if(F)w=n.isSome(B)?B.scale:void 0,B=n.isSome(B)?B.view:void 0,null==w||"3d"===B?(w=B=null,(w=y.stops)?(B=w[0].value,w=w[w.length-1].value):
(B=y.minDataValue||0,w=y.maxDataValue||0),B=(B+w)/2):B=w,C=B;else if(!E)switch(y.inputValueType){case r.InputValueType.Expression:if(n.isNone(B)||n.isNone(B.arcade)){v.error("Use of arcade expressions requires an arcade context");return}C=B.arcade.arcadeUtils;B=C.getViewInfo({viewingMode:B.viewingMode,scale:B.scale,spatialReference:B.spatialReference});B=C.createExecContext(w,B);A||(w=C.createSyntaxTree(y.valueExpression),A=C.createFunction(w),y.cache.compiledFunc=A);C=C.executeFunction(A,B);break;
case r.InputValueType.Field:D&&(C=D[y.field]);break;case r.InputValueType.Unknown:C=null}if(!r.isValidNumber(C))return null;if(E||!y.normalizationField)return C;y=D?parseFloat(D[y.normalizationField]):null;return r.isValidNumber(y)&&0!==y?C/y:null}function l(y,A,B){if(y="visualVariables"in y&&y.visualVariables?y.visualVariables.find(w=>"size"===w.type):y)if("esri.renderers.visualVariables.SizeVariable"!==y.declaredClass)v.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");
else{var E=p(y,A,B);A=f(E,y,A,B,y.cache.ipData);return null===A||void 0===A||isNaN(A)?0:A}}function m(y,A,B){return null==y?null:r.isSizeVariable(y)?l(y,A,B):r.isValidNumber(y)?y:null}function t(y,A,B){return r.isValidNumber(B)&&y>B?B:r.isValidNumber(A)&&y<A?A:y}function f(y,A,B,E,w){switch(A.transformationType){case r.TransformationType.Additive:return E=m(A.minSize,B,E),y+((E||A.minDataValue)??0);case r.TransformationType.Constant:return y=(y=A.stops)&&y.length&&y[0].size,null==y&&(y=A.minSize),
m(y,B,E);case r.TransformationType.ClampedLinear:w=(y-A.minDataValue)/(A.maxDataValue-A.minDataValue);var D=m(A.minSize,B,E);B=m(A.maxSize,B,E);E=n.isSome(E)?E.shape:void 0;y<=A.minDataValue?A=D:y>=A.maxDataValue?A=B:null==D||null==B?A=null:"area"===A.scaleBy&&E?(y=(A="circle"===E)?z*(D/2)**2:D*D,y+=w*((A?z*(B/2)**2:B*B)-y),A=A?2*Math.sqrt(y/z):Math.sqrt(y)):A=D+w*(B-D);return A;case r.TransformationType.Proportional:return w=n.isSome(E)?E.shape:void 0,y/=A.minDataValue,D=m(A.minSize,B,E),A=m(A.maxSize,
B,E),E=null,E="circle"===w?2*Math.sqrt(y*(D/2)**2):"square"===w||"diamond"===w||"image"===w?Math.sqrt(y*D**2):y*D,t(E,D,A);case r.TransformationType.Stops:{const [C,F,G]=q(y,w);C===F?A=m(A.stops?.[C].size,B,E):(y=m(A.stops?.[C].size,B,E),A=m(A.stops?.[F].size,B,E),A=y+(A-y)*G)}return A;case r.TransformationType.RealWorldSize:return w=(n.isSome(E)&&E.resolution?E.resolution:1)*u.meterIn[A.valueUnit],D=m(A.minSize,B,E),E=m(A.maxSize,B,E),{valueRepresentation:A}=A,B=null,B="area"===A?2*Math.sqrt(y/z)/
w:"radius"===A||"distance"===A?2*y/w:y/w,t(B,D,E);case r.TransformationType.Identity:return y;case r.TransformationType.Unknown:return null}}function q(y,A){if(A){var B=0,E=A.length-1;A.some((w,D)=>{if(y<w)return E=D,!0;B=D;return!1});return[B,E,(y-A[B])/(A[E]-A[B])]}}const v=d.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),x=new c,z=Math.PI;a.getAllSizes=function(y,A,B){const E=["proportional","proportional","proportional"];for(const w of y)switch(y=w.useSymbolValue?"symbol-value":
l(w,A,B),w.axis){case "width":E[0]=y;break;case "depth":E[1]=y;break;case "height":E[2]=y;break;case "width-and-depth":E[0]=y;E[1]=y;break;case "all":case void 0:case null:E[0]=y;E[1]=y;E[2]=y;break;default:e.neverReached(w.axis)}return E};a.getColor=h;a.getOpacity=g;a.getRotationAngle=k;a.getSize=l;a.getSizeForValue=f;a.getSizeFromNumberOrVariable=m;a.getSizeRangeAtScale=function(y,A,B){const {isScaleDriven:E}=y.cache;if(!(E&&"3d"===B||A))return null;B={scale:A,view:B};A=m(y.minSize,x,B);y=m(y.maxSize,
x,B);if(null!=A||null!=y)return A>y&&(B=y,y=A,A=B),{minSize:A,maxSize:y}};a.getVisualVariableValues=function(y,A,B){if(y.visualVariables){var E=[],w=[],D=[],C=[],F=[];for(const G of y.visualVariables)switch(G.type){case "color":w.push(G);break;case "opacity":D.push(G);break;case "rotation":F.push(G);break;case "size":C.push(G)}w.forEach(G=>{const H=h(G,A,B);E.push({variable:G,value:H})});D.forEach(G=>{const H=g(G,A,B);E.push({variable:G,value:H})});F.forEach(G=>{const H=k(G,A,B);E.push({variable:G,
value:H})});C.forEach(G=>{const H=l(G,A,B);E.push({variable:G,value:H})});return E.filter(G=>null!=G.value)}};a.viewScaleRE=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/Graphic":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./geometry ./PopupTemplate ./symbols ./core/Clonable ./core/JSONSupport ./core/maybe ./core/uid ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./geometry/support/jsonUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){n=function(t){function f(...v){v=t.call(this,...v)||this;v.isAggregate=!1;v.layer=null;v.popupTemplate=null;v.sourceLayer=null;Object.defineProperty(a._assertThisInitialized(v),"uid",{value:h.generateUID(),configurable:!0});return v}a._inheritsLoose(f,t);var q=f.prototype;q.normalizeCtorArgs=function(v,x,z,y){return v&&!v.declaredClass?v:{geometry:v,symbol:x,attributes:z,popupTemplate:y}};q.getEffectivePopupTemplate=function(v=!1){if(this.popupTemplate)return this.popupTemplate;
for(const x of[this.sourceLayer,this.layer])if(x){if("popupTemplate"in x&&x.popupTemplate)return x.popupTemplate;if(v&&"defaultPopupTemplate"in x&&r.isSome(x.defaultPopupTemplate))return x.defaultPopupTemplate}return null};q.getAttribute=function(v){return this.attributes?.[v]};q.setAttribute=function(v,x){if(this.attributes){const z=this.getAttribute(v);this.attributes[v]=x;this._notifyLayer("attributes",z,x,v)}else this.attributes={[v]:x},this._notifyLayer("attributes",void 0,x,v)};q.getObjectId=
function(){return this.sourceLayer?"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null:null};q.toJSON=function(){var v=this.aggregateGeometries;if(r.isSome(v)){var x={};for(const z in v){const y=v[z];y&&(x[z]=y.toJSON())}v=0!==Object.keys(x).length?x:null}else v=null;return{aggregateGeometries:v,geometry:r.isSome(this.geometry)?this.geometry.toJSON():null,symbol:r.isSome(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},
popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}};q.notifyGeometryChanged=function(){this._notifyLayer("geometry",this.geometry,this.geometry)};q.notifyMeshTransformChanged=function(){r.isSome(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)};q._notifyLayer=function(v,x,z,y){this.layer&&"graphicChanged"in this.layer&&(x={graphic:this,property:v,oldValue:x,newValue:z},"attributes"===v&&(x.attributeName=y),this.layer.graphicChanged(x))};
a._createClass(f,[{key:"aggregateGeometries",set:function(v){const x=this._get("aggregateGeometries");JSON.stringify(x)!==JSON.stringify(v)&&this._set("aggregateGeometries",v)}},{key:"attributes",set:function(v){const x=this._get("attributes");x!==v&&(this._set("attributes",v),this._notifyLayer("attributes",x,v))}},{key:"geometry",set:function(v){const x=this._get("geometry");x!==v&&(this._set("geometry",v),this._notifyLayer("geometry",x,v))}},{key:"symbol",set:function(v){const x=this._get("symbol");
x!==v&&(this._set("symbol",v),this._notifyLayer("symbol",x,v))}},{key:"visible",set:function(v){const x=this._get("visible");x!==v&&(this._set("visible",v),this._notifyLayer("visible",x,v))}}]);return f}(n.ClonableMixin(u.JSONSupport));b.__decorate([g.property({value:null,json:{read:function(t){if(!t)return null;const f={};for(const q in t){const v=m.fromJSON(t[q]);v&&(f[q]=v)}return 0!==Object.keys(f).length?f:null}}})],n.prototype,"aggregateGeometries",null);b.__decorate([g.property({value:null})],
n.prototype,"attributes",null);b.__decorate([g.property({value:null,types:c.geometryTypes,json:{read:m.fromJSON}})],n.prototype,"geometry",null);b.__decorate([g.property({type:Boolean})],n.prototype,"isAggregate",void 0);b.__decorate([g.property({clonable:"reference"})],n.prototype,"layer",void 0);b.__decorate([g.property({type:e})],n.prototype,"popupTemplate",void 0);b.__decorate([g.property({clonable:"reference"})],n.prototype,"sourceLayer",void 0);b.__decorate([g.property({value:null,types:d.symbolTypes})],
n.prototype,"symbol",null);b.__decorate([g.property({type:Boolean,value:!0})],n.prototype,"visible",null);n=b.__decorate([l.subclass("esri.Graphic")],n);(n||(n={})).generateUID=h.generateUID;return n})},"esri/renderers/visualVariables/VisualVariableFactory":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/jsonMap ../../core/Logger ../../core/Warning ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ColorVariable ./OpacityVariable ./RotationVariable ./SizeVariable".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){const t={color:k,size:m,opacity:p,rotation:l},f=new e.JSONMap({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),q=/^\[([^\]]+)\]$/i;c=function(v){function x(){var y=v.apply(this,arguments)||this;y.colorVariables=null;y.opacityVariables=null;y.rotationVariables=null;y.sizeVariables=null;return y}a._inheritsLoose(x,v);var z=x.prototype;z.readVariables=function(y,A,B){const {rotationExpression:E,rotationType:w}=A;if(A=(A=E&&
E.match(q))&&A[1])y||(y=[]),y.push({type:"rotationInfo",rotationType:w,field:A});if(y)return y.map(D=>{var C=f.read(D.type);const F=t[C];F||(d.getLogger(this.declaredClass).warn(`Unknown variable type: ${C}`),B&&B.messages&&B.messages.push(new n("visual-variable:unsupported",`visualVariable of type '${C}' is not supported`,{definition:D,context:B})));C=new F;C.read(D,B);return C})};z.writeVariables=function(y,A){const B=[];for(const E of y)(y=E.toJSON(A))&&B.push(y);return B};z._resetVariables=function(){this.colorVariables=
[];this.opacityVariables=[];this.rotationVariables=[];this.sizeVariables=[]};a._createClass(x,[{key:"visualVariables",set:function(y){this._resetVariables();if((y=y&&y.filter(B=>!!B))&&y.length){for(var A of y)switch(A.type){case "color":this.colorVariables.push(A);break;case "opacity":this.opacityVariables.push(A);break;case "rotation":this.rotationVariables.push(A);break;case "size":this.sizeVariables.push(A)}this.sizeVariables.length&&this.sizeVariables.some(B=>!!B.target)&&y.sort((B,E)=>{let w=
null;return w=B.target===E.target?0:B.target?1:-1});for(A=0;A<y.length;A++)y[A].index=A}this._set("visualVariables",y)}}]);return x}(c);b.__decorate([u.property()],c.prototype,"visualVariables",null);return c=b.__decorate([g.subclass("esri.renderers.visualVariables.VisualVariableFactory")],c)})},"esri/renderers/support/ClassBreakInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(l){l=g.call(this,l)||this;l.description=null;l.label=null;l.minValue=null;l.maxValue=0;l.symbol=null;return l}a._inheritsLoose(k,g);var p=k.prototype;p.clone=function(){return new h({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})};p.getMeshHash=function(){const l=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${l}`};return k}(c.JSONSupport);
b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([e.property({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],c.prototype,"minValue",void 0);b.__decorate([e.property({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],c.prototype,"maxValue",void 0);b.__decorate([e.property(r.rendererSymbolProperty)],
c.prototype,"symbol",void 0);return c=h=b.__decorate([u.subclass("esri.renderers.support.ClassBreakInfo")],c)})},"esri/renderers/support/commonProperties":function(){define("exports ../../symbols ../../core/accessorSupport/extensions/serializableProperty/reader ../../symbols/support/jsonUtils ../../symbols/Symbol ../../symbols/PolygonSymbol3D".split(" "),function(a,b,c,e,d,n){c={types:b.symbolTypesRenderer,json:{write:{writer:e.write},origins:{"web-scene":{types:b.symbolTypesRenderer3D,write:{writer:e.write},
read:{reader:c.createTypeReader({types:b.symbolTypesRenderer3D})}}}}};const u={cast:r=>null==r||"string"===typeof r||"number"===typeof r?r:`${r}`,json:{type:String,write:{writer:(r,h)=>{h.value=r?.toString()}}}};a.rendererBackgroundFillSymbolProperty={types:{base:d,key:"type",typeMap:{"simple-fill":b.symbolTypes.typeMap["simple-fill"],"picture-fill":b.symbolTypes.typeMap["picture-fill"],"polygon-3d":b.symbolTypes.typeMap["polygon-3d"]}},json:{write:{writer:e.write},origins:{"web-scene":{type:n,write:{writer:e.write}}}}};
a.rendererSymbolProperty=c;a.uniqueValueProperty=u;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/jsonUtils":function(){define("exports ../../symbols ../../core/Error ../../core/maybe ../Symbol3D ./symbolConversion ../WebStyleSymbol".split(" "),function(a,b,c,e,d,n,u){function r(g,k,p){if(e.isNone(g))return null;const {context:l,isLabelSymbol:m}=p;var t=l?.origin;p=l?.messages;if("web-scene"===t&&!(g instanceof d||g instanceof u)){t=
n.to3D(g,{retainCIM:!0,hasLabelingContext:m});if(e.isSome(t.symbol))return t.symbol.write(k,l);p?.push(new c("symbol:unsupported",`Symbols of type '${g.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:g,context:l,error:t.error}));return null}const f=l?.layer?.type;return"web-map"!==t&&("portal-item"!==t||f&&h.includes(f))||!(g instanceof d||g instanceof u)?g.write(k,l):(p?.push(new c("symbol:unsupported",`Symbols of type '${g.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,
{symbol:g,context:l})),null)}const h=["building-scene","integrated-mesh","point-cloud","scene"];a.fromJSON=function(g,k){return b.readSymbol(g,null,k)};a.write=function(g,k,p,l){g=r(g,{},{context:l,isLabelSymbol:!1});e.isSome(g)&&(k[p]=g)};a.writeLabelSymbol=function(g,k,p,l){g=r(g,{},{context:l,isLabelSymbol:!0});e.isSome(g)&&(k[p]=g)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/symbolConversion":function(){define("exports ../../symbols ../../core/Error ../WebStyleSymbol ../PointSymbol3D ../SimpleLineSymbol ../LineSymbol3D ../SimpleMarkerSymbol ../PictureMarkerSymbol ../SimpleFillSymbol ../MeshSymbol3D ../PolygonSymbol3D ../TextSymbol ../LabelSymbol3D".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){const t={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};a.defaultTo3DOptions=t;a.to3D=function(f,q=t){if(!f)return{symbol:null};const {retainId:v=t.retainId,ignoreDrivers:x=t.ignoreDrivers,hasLabelingContext:z=t.hasLabelingContext,retainCIM:y=t.retainCIM}=q;var A=null;if(b.isSymbol3D(f)||f instanceof e)A=f.clone();else if("cim"===f.type){A=f.data?.symbol?.type;if("CIMPointSymbol"!==A)return{error:new c("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${A||
"unknown"}' is unsupported in 3D`,{symbol:f})};A=y?f.clone():d.fromCIMSymbol(f)}else if(f instanceof n)A=u.fromSimpleLineSymbol(f);else if(f instanceof r)A=d.fromSimpleMarkerSymbol(f);else if(f instanceof h)A=d.fromPictureMarkerSymbol(f);else if(f instanceof g)A=q.geometryType&&"mesh"===q.geometryType?k.fromSimpleFillSymbol(f):p.fromSimpleFillSymbol(f);else if(f instanceof l)A=z?m.fromTextSymbol(f):d.fromTextSymbol(f);else return{error:new c("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${f.type||
f.declaredClass}' is unsupported in 3D`,{symbol:f})};v&&A&&"cim"!==A.type&&(A.id=f.id);if(x&&b.isSymbol3D(A))for(f=0;f<A.symbolLayers.length;++f)A.symbolLayers.getItemAt(f)._ignoreDrivers=!0;return{symbol:A}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/DictionaryRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/DictionaryLoader".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){var p;d=p=function(l){function m(f){f=l.call(this,f)||this;f.config=null;f.fieldMap=null;f.scaleExpression=null;f.scaleExpressionTitle=null;f.url=null;f.type="dictionary";return f}a._inheritsLoose(m,l);var t=m.prototype;t.writeData=function(f,q){f&&(q.scalingExpressionInfo={expression:f,returnType:"number"})};t.writeVisualVariables=function(f,q,v,x){x?.origin||l.prototype.writeVisualVariables.call(this,f,q,v,x)};t.clone=function(){return new p({config:c.clone(this.config),
scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:c.clone(this.fieldMap),url:c.clone(this.url),visualVariables:c.clone(this.visualVariables)})};t.getSymbolAsync=function(){var f=a._asyncToGenerator(function*(q,v){return this._loader.getSymbolAsync(q,v)});return function(q,v){return f.apply(this,arguments)}}();t.collectRequiredFields=function(){var f=a._asyncToGenerator(function*(q,v){yield this.collectVVRequiredFields(q,v);this.scaleExpression&&(yield r.collectArcadeFieldNames(q,
v,this.scaleExpression));for(const x in this.fieldMap){const z=this.fieldMap[x];v.has(z)&&q.add(z)}});return function(q,v){return f.apply(this,arguments)}}();t.getSymbol=function(){return null};t.getSymbols=function(){return[]};t.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((f,q)=>f+q.getAttributeHash(),"")};t.getMeshHash=function(){return`${this.url}-${JSON.stringify(this.fieldMap)}`};t.getSymbolFields=function(){return this._loader.getSymbolFields()};a._createClass(m,
[{key:"_loader",get:function(){return new k.DictionaryLoader(this.url,this.config,this.fieldMap)}},{key:"arcadeRequired",get:function(){return!0}}]);return m}(g.VisualVariablesMixin(h));b.__decorate([e.property({type:k.DictionaryLoader})],d.prototype,"_loader",null);b.__decorate([e.property({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],d.prototype,"config",void 0);b.__decorate([e.property({type:Object,json:{write:!0}})],d.prototype,"fieldMap",void 0);b.__decorate([e.property({type:String,
json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],d.prototype,"scaleExpression",void 0);b.__decorate([u.writer("scaleExpression")],d.prototype,"writeData",null);b.__decorate([e.property({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(l){return{enabled:!!l&&!!this.scaleExpression}}}}})],d.prototype,"scaleExpressionTitle",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"url",void 0);
b.__decorate([u.writer("visualVariables")],d.prototype,"writeVisualVariables",null);return d=p=b.__decorate([n.subclass("esri.renderers.DictionaryRenderer")],d)})},"esri/renderers/support/DictionaryLoader":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../Color ../../request ../../core/Error ../../core/Logger ../../core/LRUCache ../../core/maybe ../../core/promiseUtils ../../core/string ../../support/arcadeOnDemand ../../symbols/CIMSymbol".split(" "),function(a,b,c,e,d,n,u,r,
h,g,k,p){function l(f,q){if(f&&(f=f.symbolLayers))for(var v=f.length;v--;){var x=f[v];if(x&&!1!==x.enable)switch(x.type){case "CIMVectorMarker":var z=q;if(x=x.markerGraphics)for(const y of x)if(y&&(x=y.symbol))switch(x.type){case "CIMPointSymbol":case "CIMLineSymbol":case "CIMPolygonSymbol":l(x,z);break;case "CIMTextSymbol":x.fieldMap=z}}}}const m={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};let t=function(){function f(v,
x,z){this.url=this.fieldMap=this.config=null;this._ongoingRequests=new Map;this._symbolCache=new u(100);this._dictionaryPromise=null;this.url=v;this.config=x;this.fieldMap=z}var q=f.prototype;q.getSymbolFields=function(){return this._symbolFields};q.getSymbolAsync=function(){var v=b._asyncToGenerator(function*(x,z){this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(z));try{var y=yield this._dictionaryPromise}catch(C){if(h.isAbortError(C))return this._dictionaryPromise=null}var A=
{};if(this.fieldMap)for(var B of this._symbolFields){var E=this.fieldMap[B];A[B]=E&&null!=x.attributes[E]?""+x.attributes[E]:""}y=y?.(A,z);if(!y||"string"!==typeof y)return null;const w=g.numericHash(y).toString();if(A=this._symbolCache.get(w))return A.catch(()=>{this._symbolCache.pop(w)}),A;B=y.split(";");y=[];A=[];for(const C of B)if(C)if(C.includes("po:")){var D=C.substr(3).split("|");3===D.length&&(B=D[0],E=D[1],D=D[2],"DashTemplate"===E?D=D.split(" ").map(F=>Number(F)):"Color"===E?(D=(new c(D)).toRgba(),
D=[D[0],D[1],D[2],255*D[3]]):D=Number(D),A.push({primitiveName:B,propertyName:E,value:D}))}else if(C.includes("|"))for(const F of C.split("|")){if(this._itemNames.has(F)){y.push(F);break}}else this._itemNames.has(C)&&y.push(C);x=r.isSome(x.geometry)&&(x.geometry.hasZ||"point"!==x.geometry.type)?!1:!0;z=this._cimPartsToCIMSymbol(y,A,x,z);this._symbolCache.put(w,z,1);return z});return function(x,z){return v.apply(this,arguments)}}();q.fetchResources=function(){var v=b._asyncToGenerator(function*(x){if(this._dictionaryPromise)return this._dictionaryPromise;
if(this.url){var z=e(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:r.isSome(x)?x.signal:null}),[{data:y}]=yield Promise.all([z,k.loadArcade()]);if(!y)throw this._dictionaryPromise=null,new d("esri.renderers.DictionaryRenderer","Bad dictionary data!");z=y.expression;var A=y.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+y.cimRefTemplateUrl;this._itemNames=new Set(y.itemsNames);this._symbolFields=A.symbol;y={};if(this.config){const w=this.config;
for(var B in w)y[B]=w[B]}if(A.configuration)for(var E of A.configuration)y.hasOwnProperty(E.name)||(y[E.name]=E.value);B=[];if(r.isSome(x)&&x.fields&&this.fieldMap)for(const w of this._symbolFields){const D=this.fieldMap[w];E=x.fields.filter(C=>C.name===D);0<E.length&&B.push({...E[0],name:w})}return this._dictionaryPromise=x=k.createDictionaryExpression(z,r.isSome(x)?x.spatialReference:null,B,y).then(w=>{const D={scale:0};return(C,F)=>{if(r.isNone(w))return null;C=w.repurposeFeature({geometry:null,
attributes:C});D.scale=r.isSome(F)?F.scale:void 0;return w.evaluate({$feature:C,$view:D})}}).catch(w=>{n.getLogger("esri.renderers.support.DictionaryLoader").error("Creating dictinoary expression failed:",w);return null})}n.getLogger("esri.renderers.support.DictionaryLoader").error("no valid URL!")});return function(x){return v.apply(this,arguments)}}();q._cimPartsToCIMSymbol=function(){var v=b._asyncToGenerator(function*(x,z,y,A){const B=Array(x.length);for(let E=0;E<x.length;E++)B[E]=this._getSymbolPart(x[E],
A);x=yield Promise.all(B);if(A=this.fieldMap)for(const E of x)l(E,A);return new p({data:this._combineSymbolParts(x,z,y)})});return function(x,z,y,A){return v.apply(this,arguments)}}();q._getSymbolPart=function(){var v=b._asyncToGenerator(function*(x,z){if(this._ongoingRequests.has(x))return this._ongoingRequests.get(x).then(A=>A.data);const y=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,x);z=e(y,{responseType:"json",query:{f:"json"},...z});this._ongoingRequests.set(x,z);try{return(yield z).data}catch(A){throw this._ongoingRequests.delete(x),
A;}});return function(x,z){return v.apply(this,arguments)}}();q._combineSymbolParts=function(v,x,z){if(!v||0===v.length)return null;const y={...v[0]};if(1<v.length){y.symbolLayers=[];for(const A of v)y.symbolLayers.unshift(...A.symbolLayers)}z&&(y.callout=m);return{type:"CIMSymbolReference",symbol:y,primitiveOverrides:x}};return f}();a.DictionaryLoader=t;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/LRUCache":function(){define(["../chunks/_rollupPluginBabelHelpers",
"./MemCache"],function(a,b){return function(){function c(d,n){this._storage=new b.MemCacheStorage;this._storage.maxSize=d;n&&this._storage.registerRemoveFunc("",n)}var e=c.prototype;e.put=function(d,n,u){this._storage.put(d,n,u,1)};e.pop=function(d){return this._storage.pop(d)};e.get=function(d){return this._storage.get(d)};e.clear=function(){this._storage.clearAll()};e.destroy=function(){this._storage.destroy()};a._createClass(c,[{key:"maxSize",get:function(){return this._storage.maxSize},set:function(d){this._storage.maxSize=
d}}]);return c}()})},"esri/core/MemCache":function(){define(["exports","../chunks/_rollupPluginBabelHelpers","./maybe","./PooledArray"],function(a,b,c,e){a.RemoveMode=void 0;(function(u){u[u.ALL=0]="ALL";u[u.SOME=1]="SOME"})(a.RemoveMode||(a.RemoveMode={}));let d=function(){function u(h,g,k){this._namespace=h;this._storage=g;this._removeFunc=!1;this._miss=this._hit=0;this._storage.register(this);this._namespace+=":";k&&(this._storage.registerRemoveFunc(this._namespace,k),this._removeFunc=!0)}var r=
u.prototype;r.destroy=function(){this._storage.clear(this._namespace);this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace);this._storage.deregister(this);this._storage=null};r.resetHitRate=function(){this._hit=this._miss=0};r.put=function(h,g,k,p=0){this._storage.put(this._namespace+h,g,k,p)};r.get=function(h){h=this._storage.get(this._namespace+h);void 0===h?++this._miss:++this._hit;return h};r.pop=function(h){h=this._storage.pop(this._namespace+h);void 0===h?++this._miss:++this._hit;
return h};r.updateSize=function(h,g,k){this._storage.updateSize(this._namespace+h,g,k)};r.clear=function(){this._storage.clear(this._namespace)};r.clearAll=function(){this._storage.clearAll()};r.getStats=function(){return this._storage.getStats()};r.resetStats=function(){this._storage.resetStats()};b._createClass(u,[{key:"namespace",get:function(){return this._namespace.slice(0,-1)}},{key:"hitRate",get:function(){return this._hit/(this._hit+this._miss)}},{key:"size",get:function(){return this._storage.size}},
{key:"maxSize",get:function(){return this._storage.maxSize}}]);return u}(),n=function(){function u(h=10485760){this._maxSize=h;this._db=new Map;this._miss=this._hit=this._size=0;this._removeFuncs=new e;this._users=new e}var r=u.prototype;r.destroy=function(){this.clearAll();this._removeFuncs.clear();this._users.clear();this._db=null};r.register=function(h){this._users.push(h)};r.deregister=function(h){this._users.removeUnordered(h)};r.registerRemoveFunc=function(h,g){this._removeFuncs.push([h,g])};
r.deregisterRemoveFunc=function(h){this._removeFuncs.filterInPlace(g=>g[0]!==h)};r.put=function(h,g,k,p){const l=this._db.get(h);l&&(this._size-=l.size,this._db.delete(h),l.entry!==g&&this._notifyRemove(h,l.entry,a.RemoveMode.ALL));k>this._maxSize?this._notifyRemove(h,g,a.RemoveMode.ALL):void 0===g?console.warn("Refusing to cache undefined entry "):!k||0>k?console.warn("Refusing to cache entry with invalid size "+k):(p=1+Math.max(p,-3)- -3,this._db.set(h,{entry:g,size:k,lifetime:p,lives:p}),this._size+=
k,this._checkSizeLimit())};r.updateSize=function(h,g,k){const p=this._db.get(h);if(p&&p.entry===g){for(this._size-=p.size;k>this._maxSize;)if(k=this._notifyRemove(h,g,a.RemoveMode.SOME),!(c.isSome(k)&&0<k)){this._db.delete(h);return}p.size=k;this._size+=k;this._checkSizeLimit()}};r.pop=function(h){const g=this._db.get(h);if(g)return this._size-=g.size,this._db.delete(h),++this._hit,g.entry;++this._miss};r.get=function(h){const g=this._db.get(h);if(void 0===g)++this._miss;else return this._db.delete(h),
g.lives=g.lifetime,this._db.set(h,g),++this._hit,g.entry};r.getStats=function(){const h={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},g={},k=[];this._db.forEach((m,t)=>{const f=m.lifetime;k[f]=(k[f]||0)+m.size;this._users.forAll(q=>{q=q.namespace;t.startsWith(q)&&(g[q]=(g[q]||0)+m.size)})});const p={};this._users.forAll(m=>{const t=m.namespace;!isNaN(m.hitRate)&&0<m.hitRate?(g[t]=
g[t]||0,p[t]=Math.round(100*m.hitRate)+"%"):p[t]="0%"});var l=Object.keys(g);l.sort((m,t)=>g[t]-g[m]);l.forEach(m=>h[m]=Math.round(g[m]/2**20)+"MB / "+p[m]);for(l=k.length-1;0<=l;--l){const m=k[l];m&&(h["Priority "+(l+-3-1)]=Math.round(m/this.size*100)+"%")}return h};r.resetStats=function(){this._hit=this._miss=0;this._users.forAll(h=>h.resetHitRate())};r.clear=function(h){this._db.forEach((g,k)=>{k.startsWith(h)&&(this._size-=g.size,this._db.delete(k),this._notifyRemove(k,g.entry,a.RemoveMode.ALL))})};
r.clearAll=function(){this._db.forEach((h,g)=>this._notifyRemove(g,h.entry,a.RemoveMode.ALL));this._size=0;this._db.clear()};r._getHitRate=function(){return this._hit/(this._hit+this._miss)};r._notifyRemove=function(h,g,k){let p;this._removeFuncs.some(l=>h.startsWith(l[0])?(l=l[1](g,k),"number"===typeof l&&(p=l),!0):!1);return p};r._checkSizeLimit=function(){if(!(this._size<=this._maxSize))for(const [h,g]of this._db){this._db.delete(h);if(1>=g.lives){this._size-=g.size;const k=this._notifyRemove(h,
g.entry,a.RemoveMode.SOME);c.isSome(k)&&0<k&&(this._size+=k,g.lives=g.lifetime,g.size=k,this._db.set(h,g))}else--g.lives,this._db.set(h,g);if(this._size<=.9*this.maxSize)break}};b._createClass(u,[{key:"size",get:function(){return this._size}},{key:"maxSize",get:function(){return this._maxSize},set:function(h){this._maxSize=Math.max(h,0);this._checkSizeLimit()}}]);return u}();a.MIN_PRIORITY=-3;a.MemCache=d;a.MemCacheStorage=n;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/renderers/DotDensityRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/AttributeColorInfo ./support/DotDensityLegendOptions ../symbols/SimpleFillSymbol ../symbols/SimpleLineSymbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){var f;n=f=function(q){function v(z){z=q.call(this,z)||this;z.attributes=null;z.backgroundColor=new c([0,0,0,0]);z.dotBlendingEnabled=!0;z.dotShape="square";z.dotSize=1;z.legendOptions=null;z.outline=new t;z.dotValue=null;z.referenceScale=null;z.seed=1;z.type="dot-density";return z}a._inheritsLoose(v,q);var x=v.prototype;x.calculateDotValue=function(z){if(null==this.referenceScale)return this.dotValue;z=z/this.referenceScale*this.dotValue;return 1>z?1:z};x.getSymbol=
function(){return new m({outline:this.outline})};x.getSymbolAsync=function(){var z=a._asyncToGenerator(function*(){return this.getSymbol()});return function(){return z.apply(this,arguments)}}();x.getSymbols=function(){return[this.getSymbol()]};x.getAttributeHash=function(){return this.attributes?.reduce((z,y)=>z+y.getAttributeHash(),"")??""};x.getMeshHash=function(){return JSON.stringify(this.outline)};x.clone=function(){return new f({attributes:e.clone(this.attributes),backgroundColor:e.clone(this.backgroundColor),
dotBlendingEnabled:e.clone(this.dotBlendingEnabled),dotShape:e.clone(this.dotShape),dotSize:e.clone(this.dotSize),dotValue:e.clone(this.dotValue),legendOptions:e.clone(this.legendOptions),outline:e.clone(this.outline),referenceScale:e.clone(this.referenceScale),visualVariables:e.clone(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})};x.getControllerHash=function(){const z=this.attributes?.map(A=>A.field||A.valueExpression||""),y=this.outline&&JSON.stringify(this.outline.toJSON())||
"";return`${z}-${y}`};x.collectRequiredFields=function(){var z=a._asyncToGenerator(function*(y,A){yield this.collectVVRequiredFields(y,A);for(const B of this.attributes??[])B.valueExpression&&(yield h.collectArcadeFieldNames(y,A,B.valueExpression)),B.field&&y.add(B.field)});return function(y,A){return z.apply(this,arguments)}}();return v}(k.VisualVariablesMixin(g));b.__decorate([d.property({type:[p],json:{write:!0}})],n.prototype,"attributes",void 0);b.__decorate([d.property({type:c,json:{write:!0}})],
n.prototype,"backgroundColor",void 0);b.__decorate([d.property({type:Boolean,json:{write:!0}})],n.prototype,"dotBlendingEnabled",void 0);b.__decorate([d.property({type:String,json:{write:!1}})],n.prototype,"dotShape",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"dotSize",void 0);b.__decorate([d.property({type:l,json:{write:!0}})],n.prototype,"legendOptions",void 0);b.__decorate([d.property({type:t,json:{default:null,write:!0}})],n.prototype,"outline",void 0);b.__decorate([d.property({type:Number,
json:{write:!0}})],n.prototype,"dotValue",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"referenceScale",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],n.prototype,"seed",void 0);b.__decorate([u.enumeration({dotDensity:"dot-density"})],n.prototype,"type",void 0);return n=f=b.__decorate([r.subclass("esri.renderers.DotDensityRenderer")],n)})},"esri/renderers/support/AttributeColorInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/ensureType".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;e=k=function(p){function l(t){t=p.call(this,t)||this;t.color=null;t.field=null;t.label=null;t.valueExpression=null;t.valueExpressionTitle=null;return t}a._inheritsLoose(l,p);var m=l.prototype;m.castField=function(t){return null==t?t:"function"===typeof t?(d.getLogger(this.declaredClass).error(".field: field must be a string value"),null):g.ensureString(t)};m.getAttributeHash=function(){return`${this.field}-${this.valueExpression}`};m.clone=function(){return new k({color:this.color&&
this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})};return l}(e.JSONSupport);b.__decorate([n.property({type:c,json:{type:[Number],write:!0}})],e.prototype,"color",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"field",void 0);b.__decorate([r.cast("field")],e.prototype,"castField",null);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"label",void 0);b.__decorate([n.property({type:String,
json:{write:!0}})],e.prototype,"valueExpression",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"valueExpressionTitle",void 0);return e=k=b.__decorate([h.subclass("esri.renderers.support.AttributeColorInfo")],e)})},"esri/renderers/support/DotDensityLegendOptions":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(){var k=h.apply(this,arguments)||this;k.unit=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({unit:this.unit})};return g}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"unit",void 0);return c=r=b.__decorate([u.subclass("esri.renderers.support.DotDensityLegendOptions")],c)})},"esri/renderers/HeatmapRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../symbols ../core/deprecate ../core/lang ../core/Logger ../core/scheduling ../core/screenUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/utils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./support/AuthoringInfo ./support/HeatmapColorStop ./support/HeatmapLegendOptions ./support/heatmapUtils ../symbols/SimpleMarkerSymbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y){function A(w){if(null!=w){const {maxDensity:D,minDensity:C,radius:F}=w;if(null!=D||null!=C||null!=F){const {blurRadius:G,maxPixelIntensity:H,minPixelIntensity:I,...J}=w;return J}}return w}var B;const E=u.getLogger("esri.renderers.HeatmapRenderer");e=B=function(w){function D(F){F=w.call(this,F)||this;F.authoringInfo=null;F.colorStops=[new v({ratio:0,color:new c("rgba(255, 140, 0, 0)")}),new v({ratio:.75,color:new c("rgba(255, 140, 0, 1)")}),new v({ratio:.9,
color:new c("rgba(255, 0,   0, 1)")})];F.field=null;F.fieldOffset=0;F.legendOptions=null;F.maxDensity=.04;F.minDensity=0;F.radius=18;F.referenceScale=0;F.type="heatmap";F.valueExpression=null;F.valueExpressionTitle=null;F._warnedProps={blurRadius:!1,maxPixelIntensity:!1,minPixelIntensity:!1};return F}a._inheritsLoose(D,w);var C=D.prototype;C.normalizeCtorArgs=function(F){return A(F)};C._warnAboutDeprecatedGaussianBlurProp=function(F,G){this._warnedProps[F]||"user"!==k.getProperties(this).getDefaultOrigin()||
(this._warnedProps[F]=!0,r.schedule(()=>{d.deprecatedProperty(E,F,{replacement:`${String(G)} (suggested value: ${this._get(G)})`,version:"4.24"})}))};C.read=function(F,G){F=A(F);w.prototype.read.call(this,F,G)};C.getSymbol=function(){return new y};C.getSymbolAsync=function(){var F=a._asyncToGenerator(function*(){return this.getSymbol()});return function(){return F.apply(this,arguments)}}();C.getSymbols=function(){return[this.getSymbol()]};C.collectRequiredFields=function(){var F=a._asyncToGenerator(function*(G,
H){const I=this.field,J=this.valueExpression;I&&"string"===typeof I&&(yield t.collectField(G,H,I));J&&"string"===typeof J&&(yield t.collectArcadeFieldNames(G,H,J))});return function(G,H){return F.apply(this,arguments)}}();C.getAttributeHash=function(){return null};C.getMeshHash=function(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`};C.clone=function(){return new B({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:n.clone(this.colorStops),field:this.field,
legendOptions:n.clone(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})};a._createClass(D,[{key:"blurRadius",get:function(){return z.kernelDensityRadiusPtToGaussianBlurRadiusPx(this.radius)},set:function(F){const G=this.maxPixelIntensity,H=this.minPixelIntensity;this._set("radius",z.gaussianBlurRadiusPxToKernelDensityRadiusPt(F));this._warnAboutDeprecatedGaussianBlurProp("blurRadius",
"radius");this._set("maxDensity",G*this._pixelIntensityToDensity);this._set("minDensity",H*this._pixelIntensityToDensity)}},{key:"maxPixelIntensity",get:function(){return this.maxDensity/this._pixelIntensityToDensity},set:function(F){this._set("maxDensity",F*this._pixelIntensityToDensity);this._warnAboutDeprecatedGaussianBlurProp("maxPixelIntensity","maxDensity")}},{key:"minPixelIntensity",get:function(){return this.minDensity/this._pixelIntensityToDensity},set:function(F){this._set("minDensity",
F*this._pixelIntensityToDensity);this._warnAboutDeprecatedGaussianBlurProp("minPixelIntensity","minDensity")}},{key:"_pixelIntensityToDensity",get:function(){return 24/(z.MAGIC_KERNEL_DENSITY_RADIUS_INFLATION_FACTOR**2*this.blurRadius**4)}}]);return D}(f);b.__decorate([g.property({type:q,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],e.prototype,"authoringInfo",void 0);b.__decorate([g.property({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],e.prototype,
"blurRadius",null);b.__decorate([g.property({type:[v],json:{write:!0}})],e.prototype,"colorStops",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],e.prototype,"field",void 0);b.__decorate([g.property({type:Number,json:{write:{overridePolicy:(w,D,C)=>({enabled:null==C})},origins:{"web-scene":{write:!1}}}})],e.prototype,"fieldOffset",void 0);b.__decorate([g.property({type:x.HeatmapLegendOptions,json:{write:!0}})],e.prototype,"legendOptions",void 0);b.__decorate([g.property({type:Number,
json:{write:!0}})],e.prototype,"maxDensity",void 0);b.__decorate([g.property({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],e.prototype,"maxPixelIntensity",null);b.__decorate([g.property({type:Number,json:{write:!0}})],e.prototype,"minDensity",void 0);b.__decorate([g.property({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],e.prototype,"minPixelIntensity",null);b.__decorate([g.property({type:Number,cast:h.toPt,json:{write:!0}})],e.prototype,
"radius",void 0);b.__decorate([g.property({type:Number,range:{min:0},json:{default:0,write:!0}})],e.prototype,"referenceScale",void 0);b.__decorate([l.enumeration({heatmap:"heatmap"})],e.prototype,"type",void 0);b.__decorate([g.property({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],e.prototype,"valueExpression",void 0);b.__decorate([g.property({type:String})],e.prototype,"valueExpressionTitle",void 0);b.__decorate([g.property({readOnly:!0})],e.prototype,
"_pixelIntensityToDensity",null);return e=B=b.__decorate([m.subclass("esri.renderers.HeatmapRenderer")],e)})},"esri/renderers/support/HeatmapColorStop":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,
p)||this;p.color=null;p.ratio=null;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({color:this.color,ratio:this.ratio})};return k}(e.JSONSupport);b.__decorate([d.property({type:c,json:{type:[u.Integer],default:null,write:!0}})],e.prototype,"color",void 0);b.__decorate([d.property({type:Number,json:{write:!0}})],e.prototype,"ratio",void 0);return e=h=b.__decorate([r.subclass("esri.renderers.support.HeatmapColorStop")],e)})},"esri/renderers/support/HeatmapLegendOptions":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){a.HeatmapLegendOptions=function(g){function k(){var p=g.apply(this,arguments)||this;p.minLabel=null;p.maxLabel=null;p.title=null;return p}b._inheritsLoose(k,g);return k}(e.ClonableMixin(d.JSONSupport));c.__decorate([n.property({type:String,json:{write:!0}})],a.HeatmapLegendOptions.prototype,"minLabel",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.HeatmapLegendOptions.prototype,"maxLabel",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],
a.HeatmapLegendOptions.prototype,"title",void 0);a.HeatmapLegendOptions=c.__decorate([h.subclass("esri.renderers.support.HeatmapLegendOptions")],a.HeatmapLegendOptions);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/heatmapUtils":function(){define(["exports","../../core/mathUtils","../../core/screenUtils","../../chunks/vec4","../../chunks/vec4f64"],function(a,b,c,e,d){function n(g,k,p,l){let {color:m,ratio:t}=k,{color:f,ratio:q}=
p;q===t&&(1===q?t-=1E-6:q+=1E-6);k=b.clamp((l-t)/(q-t),0,1);e.lerp(g,m.toArray(),f.toArray(),k)}function u(g,k,p,l,m){g=new Uint32Array(g*g);k="buffer"in k?k:new Float64Array(k);p="buffer"in p?new Uint32Array(p.buffer):new Uint32Array((new Uint8Array(p)).buffer);m=p.length/(m-l);for(let t=0;t<k.length;t++)g[t]=p[b.clamp(Math.floor((k[t]-l)*m),0,p.length-1)];return g.buffer}function r(g,k,p){g=Math.sqrt(g**2+k**2)/p;return 1<g?0:3/(Math.PI*p**2)*(1-g**2)**2}function h(g,k){return null!=g?"string"===
typeof k?p=>-1*+p.readAttribute(g):p=>+p.readAttribute(g)+k:p=>1}a.MAGIC_KERNEL_DENSITY_RADIUS_INFLATION_FACTOR=2.4;a.calculateHeatmapIntensityInfoReaders=function(g,k,p,l){const {radius:m,fieldOffset:t,field:f}=k;k=Math.round(c.pt2px(m));const q=new Float64Array(p*l);let v=Number.NEGATIVE_INFINITY;const x=h(f,t),z=new Set;for(const E of g)for(g=E.getCursor();g.next();){var y=g.getObjectId();if(z.has(y))continue;z.add(y);y=g.readLegacyPointGeometry();if(-128>y.x||y.x>=p+128||-128>y.y||y.y>l+128)continue;
const w=+x(g),D=Math.max(0,Math.round(y.x)-k);var A=Math.max(0,Math.round(y.y)-k);const C=Math.min(l,Math.round(y.y)+k),F=Math.min(p,Math.round(y.x)+k);for(;A<C;A++)for(let G=D;G<F;G++){var B=A*p+G;const H=r(y.x-G,y.y-A,k);B=q[B]+=H*w;B>v&&(v=B)}}return{matrix:q.buffer,max:v}};a.createHeatmapImageData=u;a.createValueFunction=function(g,k){return"function"===typeof g?g:g?"string"===typeof k?p=>-1*+p[g]:p=>+p[g]+k:()=>1};a.createValueFunctionCursor=h;a.drawHeatmap=function(g,k,p,l,m,t){g.canvas.width=
g.canvas.height=k;g.clearRect(0,0,k,k);const f=g.getImageData(0,0,k,k);p&&l&&f.data.set(new Uint8ClampedArray(u(k,p,l,m,t)));g.putImageData(f,0,0)};a.evaluateDensityKernel=r;a.gaussianBlurRadiusPxToKernelDensityRadiusPt=function(g){return c.px2pt(2.4*g)};a.generateGradient=function(g){const k=new Uint8ClampedArray(2048);g=g.filter(({ratio:f})=>0<=f&&1>=f).sort((f,q)=>f.ratio-q.ratio).map(({color:f,ratio:q})=>({color:f,ratio:Math.max(q,.001)}));if(1>g.length)return k;let p=g[0],l=g[0],m=1;const t=
d.create();for(let f=0;512>f;f++){const q=(f+.5)/512;for(;q>l.ratio&&m<g.length;)p=l,l=g[m++];n(t,p,l,q);k.set(t,4*f)}return k};a.kernelDensityRadiusPtToGaussianBlurRadiusPx=function(g){return c.pt2px(g)/2.4};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/vec4f64":function(){define(["exports"],function(a){function b(){return[0,0,0,0]}function c(z){return[z[0],z[1],z[2],z[3]]}function e(z,y,A,B){return[z,y,A,B]}function d(z){const y=b(),A=Math.min(4,
z.length);for(let B=0;B<A;++B)y[B]=z[B];return y}function n(z,y){return new Float64Array(z,y,4)}function u(){return b()}function r(){return[1,1,1,1]}function h(){return[1,0,0,0]}function g(){return[0,1,0,0]}function k(){return[0,0,1,0]}function p(){return[0,0,0,1]}const l=b(),m=r(),t=h(),f=g(),q=k(),v=p(),x=Object.freeze(Object.defineProperty({__proto__:null,create:b,clone:c,fromValues:e,fromArray:d,createView:n,zeros:u,ones:r,unitX:h,unitY:g,unitZ:k,unitW:p,ZEROS:l,ONES:m,UNIT_X:t,UNIT_Y:f,UNIT_Z:q,
UNIT_W:v},Symbol.toStringTag,{value:"Module"}));a.ONES=m;a.UNIT_W=v;a.UNIT_X=t;a.UNIT_Y=f;a.UNIT_Z=q;a.ZEROS=l;a.clone=c;a.create=b;a.createView=n;a.fromArray=d;a.fromValues=e;a.ones=r;a.unitW=p;a.unitX=h;a.unitY=g;a.unitZ=k;a.vec4f64=x;a.zeros=u})},"esri/renderers/PieChartRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Color ../symbols ../core/Clonable ../core/maybe ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ../layers/support/fieldUtils ./Renderer ./mixins/VisualVariablesMixin ./support/AttributeColorInfo ./support/OthersCategory ./support/PieChartLegendOptions ../symbols/SimpleMarkerSymbol ../symbols/SimpleFillSymbol ../symbols/SimpleLineSymbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y){e=function(A){function B(w){w=A.call(this,w)||this;w.attributes=null;w.backgroundFillSymbol=null;w.defaultColor=new c([0,0,0,0]);w.defaultLabel=null;w.holePercentage=0;w.othersCategory=new q.OthersCategory;w.legendOptions=null;w.outline=null;w.size=12;w.type="pie-chart";return w}a._inheritsLoose(B,A);var E=B.prototype;E.getSymbol=function(){return new x({size:this.size?this.size/2+(this.outline?.width||0):0})};E.getSymbolAsync=function(){var w=a._asyncToGenerator(function*(){return this.getSymbol()});
return function(){return w.apply(this,arguments)}}();E.getSymbols=function(){return[this.getSymbol(),this.backgroundFillSymbol].filter(n.isSome)};E.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((w,D)=>w+D.getAttributeHash(),"")};E.getMeshHash=function(){return this.getSymbols().reduce((w,D)=>w+=JSON.stringify(D),"")};E.collectRequiredFields=function(){var w=a._asyncToGenerator(function*(D,C){yield this.collectVVRequiredFields(D,C);for(const F of this.attributes)F.valueExpression&&
(yield l.collectArcadeFieldNames(D,C,F.valueExpression)),F.field&&D.add(F.field)});return function(D,C){return w.apply(this,arguments)}}();return B}(t.VisualVariablesMixin(d.ClonableMixin(m)));b.__decorate([r.property({type:[f],json:{write:!0}})],e.prototype,"attributes",void 0);b.__decorate([r.property({type:z,json:{default:null,write:!0}})],e.prototype,"backgroundFillSymbol",void 0);b.__decorate([r.property({type:c,json:{write:!0}})],e.prototype,"defaultColor",void 0);b.__decorate([r.property({type:String,
json:{write:!0}})],e.prototype,"defaultLabel",void 0);b.__decorate([r.property({type:Number,range:{min:0,max:1},json:{write:!0}})],e.prototype,"holePercentage",void 0);b.__decorate([r.property({type:q.OthersCategory,json:{write:!0}})],e.prototype,"othersCategory",void 0);b.__decorate([r.property({type:v.PieChartLegendOptions,json:{write:!0}})],e.prototype,"legendOptions",void 0);b.__decorate([r.property({type:y,json:{default:null,write:!0}})],e.prototype,"outline",void 0);b.__decorate([r.property({type:Number,
cast:u.toPt,json:{write:!0}})],e.prototype,"size",void 0);b.__decorate([k.enumeration({pieChart:"pie-chart"})],e.prototype,"type",void 0);return e=b.__decorate([p.subclass("esri.renderers.PieChartRenderer")],e)})},"esri/renderers/support/OthersCategory":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../Color ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g){a.OthersCategory=function(k){function p(){var l=k.apply(this,arguments)||this;l.color=new e([0,0,0,0]);l.label=null;l.threshold=0;return l}b._inheritsLoose(p,k);return p}(d.ClonableMixin(n.JSONSupport));c.__decorate([u.property({type:e,json:{write:!0}})],a.OthersCategory.prototype,"color",void 0);c.__decorate([u.property({type:String,json:{write:!0}})],a.OthersCategory.prototype,"label",void 0);c.__decorate([u.property({type:Number,range:{min:0,max:1},json:{write:!0}})],
a.OthersCategory.prototype,"threshold",void 0);a.OthersCategory=c.__decorate([g.subclass("esri.renderers.support.OthersCategory")],a.OthersCategory);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/PieChartLegendOptions":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){a.PieChartLegendOptions=function(g){function k(){var p=g.apply(this,arguments)||this;p.title=null;return p}b._inheritsLoose(k,g);return k}(e.ClonableMixin(d.JSONSupport));c.__decorate([n.property({type:String,json:{write:!0}})],a.PieChartLegendOptions.prototype,"title",void 0);a.PieChartLegendOptions=c.__decorate([h.subclass("esri.renderers.support.PieChartLegendOptions")],a.PieChartLegendOptions);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/renderers/SimpleRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/subclass ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties".split(" "),function(a,b,c,e,d,n,u,r,h,g){var k;d=k=function(p){function l(t){t=p.call(this,t)||this;t.description=null;t.label=null;t.symbol=null;
t.type="simple";return t}a._inheritsLoose(l,p);var m=l.prototype;m.collectRequiredFields=function(){var t=a._asyncToGenerator(function*(f,q){yield Promise.all([this.collectSymbolFields(f,q),this.collectVVRequiredFields(f,q)])});return function(f,q){return t.apply(this,arguments)}}();m.collectSymbolFields=function(){var t=a._asyncToGenerator(function*(f,q){yield Promise.all(this.getSymbols().map(v=>v.collectRequiredFields(f,q)))});return function(f,q){return t.apply(this,arguments)}}();m.getSymbol=
function(t,f){return this.symbol};m.getSymbolAsync=function(){var t=a._asyncToGenerator(function*(f,q){return this.symbol});return function(f,q){return t.apply(this,arguments)}}();m.getSymbols=function(){return this.symbol?[this.symbol]:[]};m.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((t,f)=>t+f.getAttributeHash(),"")};m.getMeshHash=function(){return this.getSymbols().reduce((t,f)=>t+=JSON.stringify(f),"")};m.clone=function(){return new k({description:this.description,
label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:c.clone(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})};a._createClass(l,[{key:"arcadeRequired",get:function(){return this.arcadeRequiredForVisualVariables}}]);return l}(h.VisualVariablesMixin(r));b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"description",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],d.prototype,"label",void 0);b.__decorate([e.property(g.rendererSymbolProperty)],
d.prototype,"symbol",void 0);b.__decorate([n.enumeration({simple:"simple"})],d.prototype,"type",void 0);return d=k=b.__decorate([u.subclass("esri.renderers.SimpleRenderer")],d)})},"esri/renderers/UniqueValueRenderer":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../symbols ../core/Error ../core/lang ../core/Logger ../core/maybe ../core/object ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/enumeration ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ../core/accessorSupport/diffUtils ../core/accessorSupport/ensureType ../layers/support/fieldUtils ../portal/Portal ./Renderer ./mixins/VisualVariablesMixin ./support/commonProperties ./support/LegendOptions ./support/UniqueValue ./support/UniqueValueClass ./support/UniqueValueGroup ./support/UniqueValueInfo ../support/arcadeOnDemand ../chunks/persistableUrlUtils ../symbols/support/styleUtils ../symbols/WebStyleSymbol".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C,F,G,H,I){function J(ba){const {field1:ka,field2:P,field3:V,fieldDelimiter:ca,uniqueValueInfos:ra,valueExpression:ta}=ba,Ba=!(!ka||!P);return[{classes:(ra??[]).map(Ha=>{const {symbol:da,label:la,value:sa,description:L}=Ha,[O,ha,pa]=Ba?sa?.toString()?.split(ca||"")||[]:[sa];Ha=[];(ka||ta)&&Ha.push(O);P&&Ha.push(ha);V&&Ha.push(pa);return{symbol:da,label:la,values:[Ha],description:L}})}]}var K;const N=n.getLogger("esri.renderers.UniqueValueRenderer"),
U=q.ensureType(C);n=K=function(ba){function ka(V){V=ba.call(this,V)||this;V._valueInfoMap={};V._isDefaultSymbolDerived=!1;V._isInfosSource=null;V.type="unique-value";V.backgroundFillSymbol=null;V.valueExpressionTitle=null;V.legendOptions=null;V.defaultLabel=null;V.portal=null;V.styleOrigin=null;V.diff={uniqueValueInfos(ca,ra){if(ca||ra){if(!ca||!ra)return{type:"complete",oldValue:ca,newValue:ra};var ta=!1,Ba={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let Ha=0;Ha<ra.length;Ha++){const da=
ca.find(la=>la.value===ra[Ha].value);da?f.diff(da,ra[Ha])?(Ba.changed.push({type:"complete",oldValue:da,newValue:ra[Ha]}),ta=!0):Ba.unchanged.push({oldValue:da,newValue:ra[Ha]}):(Ba.added.push(ra[Ha]),ta=!0)}for(let Ha=0;Ha<ca.length;Ha++)ra.find(da=>da.value===ca[Ha].value)||(Ba.removed.push(ca[Ha]),ta=!0);return ta?Ba:void 0}}};V._set("uniqueValueInfos",[]);V._set("uniqueValueGroups",[]);return V}a._inheritsLoose(ka,ba);var P=ka.prototype;P.castField=function(V){return null==V||"function"===typeof V?
V:q.ensureString(V)};P.writeField=function(V,ca,ra,ta){"string"===typeof V?ca[ra]=V:ta&&ta.messages?ta.messages.push(new e("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):N.error(".field: cannot write field to JSON since it's not a string value")};P.readPortal=function(V,ca,ra){return ra.portal||x.getDefault()};P.readStyleOrigin=function(V,ca,ra){if(ca.styleName)return Object.freeze({styleName:ca.styleName});if(ca.styleUrl)return V=G.fromJSON(ca.styleUrl,
ra),Object.freeze({styleUrl:V})};P.writeStyleOrigin=function(V,ca,ra,ta){V.styleName?ca.styleName=V.styleName:V.styleUrl&&(ca.styleUrl=G.toJSON(V.styleUrl,ta))};P.addUniqueValueInfo=function(V,ca){this.styleOrigin?N.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(V="object"===typeof V?U(V):new C({value:V,symbol:c.ensureType(ca)}),this.uniqueValueInfos?.push(V),this._valueInfoMap[V.value]=V,this._updateGroupsFromInfos(),this._isInfosSource=
!0,this._watchUniqueValueInfos())};P.removeUniqueValueInfo=function(V){if(this.styleOrigin)N.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else{var ca=this.uniqueValueInfos;if(ca)for(let ra=0;ra<ca.length;ra++)if(ca[ra].value===V+""){delete this._valueInfoMap[V];ca.splice(ra,1);break}this._updateGroupsFromInfos();this._isInfosSource=!0;this._watchUniqueValueInfos()}};P.getUniqueValueInfo=function(){var V=a._asyncToGenerator(function*(ca,
ra){let ta=ra;this.valueExpression&&(u.isNone(ra)||u.isNone(ra.arcade))&&(ta={...ta,arcade:yield F.loadArcade()});return this._getUniqueValueInfo(ca,ta)});return function(ca,ra){return V.apply(this,arguments)}}();P.getSymbol=function(V,ca){if(this.valueExpression&&(u.isNone(ca)||u.isNone(ca.arcade)))N.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");else return(V=this._getUniqueValueInfo(V,ca))&&V.symbol||this.defaultSymbol};P.getSymbolAsync=function(){var V=a._asyncToGenerator(function*(ca,
ra){if(this.valueExpression&&(u.isNone(ra)||u.isNone(ra.arcade))){const ta=yield F.loadArcade(),{arcadeUtils:Ba}=ta;Ba.hasGeometryOperations(this.valueExpression)&&(yield Ba.enableGeometryOperations());ra={...ra,arcade:ta}}return(ca=this._getUniqueValueInfo(ca,ra))&&ca.symbol||this.defaultSymbol});return function(ca,ra){return V.apply(this,arguments)}}();P.getSymbols=function(){const V=[];for(const ca of this.uniqueValueInfos??[])ca.symbol&&V.push(ca.symbol);this.defaultSymbol&&V.push(this.defaultSymbol);
return V};P.getAttributeHash=function(){return this.visualVariables&&this.visualVariables.reduce((V,ca)=>V+ca.getAttributeHash(),"")};P.getMeshHash=function(){const V=JSON.stringify(this.backgroundFillSymbol),ca=JSON.stringify(this.defaultSymbol),ra=this.uniqueValueInfos?.reduce((ta,Ba)=>ta+Ba.getMeshHash(),"");return`${V}.${ca}.${ra}.${`${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}`}.${this.valueExpression}`};P.clone=function(){const V=new K({field:this.field,field2:this.field2,
field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:d.clone(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:d.clone(this.visualVariables),legendOptions:d.clone(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:d.clone(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(V._isDefaultSymbolDerived=!0);V._set("portal",this.portal);
const ca=d.clone(this.uniqueValueInfos),ra=d.clone(this.uniqueValueGroups);this.styleOrigin&&(V._set("styleOrigin",Object.freeze(d.clone(this.styleOrigin))),Object.freeze(ca),Object.freeze(ra));V._set("uniqueValueInfos",ca);V._updateValueInfoMap();V._set("uniqueValueGroups",ra);V._isInfosSource=this._isInfosSource;V._watchUniqueValueInfosAndGroups();return V};P.collectRequiredFields=function(){var V=a._asyncToGenerator(function*(ca,ra){ca=[this.collectVVRequiredFields(ca,ra),this.collectSymbolFields(ca,
ra)];yield Promise.all(ca)});return function(ca,ra){return V.apply(this,arguments)}}();P.collectSymbolFields=function(){var V=a._asyncToGenerator(function*(ca,ra){const ta=[...this.getSymbols().map(Ba=>Ba.collectRequiredFields(ca,ra)),v.collectArcadeFieldNames(ca,ra,this.valueExpression)];v.collectField(ca,ra,this.field);v.collectField(ca,ra,this.field2);v.collectField(ca,ra,this.field3);yield Promise.all(ta)});return function(ca,ra){return V.apply(this,arguments)}}();P.populateFromStyle=function(){return H.fetchStyle(this.styleOrigin,
{portal:this.portal}).then(V=>{const ca=[];this._valueInfoMap={};V&&V.data&&Array.isArray(V.data.items)&&V.data.items.forEach(ra=>{var ta=new I({styleUrl:V.styleUrl,styleName:V.styleName,portal:this.portal,name:ra.name});this.defaultSymbol||ra.name!==V.data.defaultItem||(this.defaultSymbol=ta,this._isDefaultSymbolDerived=!0);ta=new C({value:ra.name,symbol:ta});ca.push(ta);this._valueInfoMap[ra.name]=ta});this._set("uniqueValueInfos",Object.freeze(ca));this._updateGroupsFromInfos(!0);this._isInfosSource=
null;this._watchUniqueValueInfos();!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0);return this})};P._updateFieldDelimiter=function(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")};P._updateUniqueValues=function(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())};P._updateValueInfoMap=function(){this._valueInfoMap={};const {uniqueValueInfos:V}=
this;if(V)for(const ca of V)this._valueInfoMap[ca.value+""]=ca};P._watchUniqueValueInfosAndGroups=function(){this._watchUniqueValueInfos();this._watchUniqueValueGroups()};P._watchUniqueValueInfos=function(){this.removeHandles("uvInfos-watcher");const {uniqueValueInfos:V}=this;if(V){const ca=[];for(const ra of V)ca.push(h.watch(()=>({symbol:ra.symbol,value:ra.value,label:ra.label,description:ra.description}),(ta,Ba)=>{ta!==Ba&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)},{sync:!0}));this.addHandles(ca,
"uvInfos-watcher")}};P._watchUniqueValueGroups=function(){this.removeHandles("uvGroups-watcher");const {uniqueValueGroups:V}=this;if(V){const ca=[];for(const ra of V){ca.push(h.watch(()=>({classes:ra.classes}),(ta,Ba)=>{ta!==Ba&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}));for(const ta of ra.classes)ca.push(h.watch(()=>({symbol:ta.symbol,values:ta.values,label:ta.label,description:ta.description}),(Ba,Ha)=>{Ba!==Ha&&(this._updateInfosFromGroups(),this._isInfosSource=!1)},{sync:!0}))}this.addHandles(ca,
"uvGroups-watcher")}};P._updateInfosFromGroups=function(){if(this.uniqueValueGroups){var V=[],{field:ca,field2:ra,field3:ta,fieldDelimiter:Ba,uniqueValueGroups:Ha,valueExpression:da}=this;if(ca||da){var la=!(!ca||!ra);for(const L of Ha)for(const O of L.classes??[]){const {symbol:ha,label:pa,values:ya,description:Y}=O;for(const ea of ya??[]){const {value:ma,value2:ja,value3:S}=ea;var sa=[ma];ra&&sa.push(ja);ta&&sa.push(S);sa=la?sa.join(Ba||""):sa[0];V.push(new C({symbol:ha,label:pa,value:sa,description:Y}))}}}this._set("uniqueValueInfos",
V)}else this._set("uniqueValueInfos",null);this._updateValueInfoMap();this._watchUniqueValueInfos()};P._updateGroupsFromInfos=function(V=!1){if(this.uniqueValueInfos){var {field:ca,field2:ra,valueExpression:ta,fieldDelimiter:Ba,uniqueValueInfos:Ha}=this;if((ca||ta)&&Ha.length){var da=!(!ca||!ra),la=Ha.map(sa=>{const {symbol:L,label:O,value:ha,description:pa}=sa,[ya,Y,ea]=da?ha?.toString()?.split(Ba||"")||[]:[ha];return new w({symbol:L,label:O,description:pa,values:[new E({value:ya,value2:Y,value3:ea})]})});
la=[new D({classes:la})];V&&Object.freeze(la);this._set("uniqueValueGroups",la)}else this._set("uniqueValueGroups",[])}else this._set("uniqueValueGroups",null);this._watchUniqueValueGroups()};P._getUniqueValueInfo=function(V,ca){return this.valueExpression?this._getUnqiueValueInfoForExpression(V,ca):this._getUnqiueValueInfoForFields(V)};P._getUnqiueValueInfoForExpression=function(V,ca){const {viewingMode:ra,scale:ta,spatialReference:Ba,arcade:Ha}=u.unwrapOr(ca,{});var da=this._cache.compiledFunc;
ca=u.unwrap(Ha).arcadeUtils;da||(da=ca.createSyntaxTree(this.valueExpression),da=ca.createFunction(da),this._cache.compiledFunc=da);V=ca.executeFunction(da,ca.createExecContext(V,ca.getViewInfo({viewingMode:ra,scale:ta,spatialReference:Ba})));return this._valueInfoMap[V+""]};P._getUnqiueValueInfoForFields=function(V){const ca=this.field,ra=V.attributes;if("function"!==typeof ca&&this.field2){V=this.field2;var ta=this.field3;const Ba=[];ca&&Ba.push(ra[ca]);V&&Ba.push(ra[V]);ta&&Ba.push(ra[ta]);ta=
Ba.join(this.fieldDelimiter||"")}else"function"===typeof ca?ta=ca(V):ca&&(ta=ra[ca]);return this._valueInfoMap[ta+""]};ka.fromPortalStyle=function(V,ca){const ra=new K(ca&&ca.properties);ra._set("styleOrigin",Object.freeze({styleName:V}));ra._set("portal",ca&&ca.portal||x.getDefault());ca=ra.populateFromStyle();ca.catch(ta=>{N.error(`#fromPortalStyle('${V}'[, ...])`,"Failed to create unique value renderer from style name",ta)});return ca};ka.fromStyleUrl=function(V,ca){ca=new K(ca&&ca.properties);
ca._set("styleOrigin",Object.freeze({styleUrl:V}));ca=ca.populateFromStyle();ca.catch(ra=>{N.error(`#fromStyleUrl('${V}'[, ...])`,"Failed to create unique value renderer from style URL",ra)});return ca};a._createClass(ka,[{key:"_cache",get:function(){return{compiledFunc:null}}},{key:"field",set:function(V){this._set("field",V);this._updateFieldDelimiter();this._updateUniqueValues()}},{key:"field2",set:function(V){this._set("field2",V);this._updateFieldDelimiter();this._updateUniqueValues()}},{key:"field3",
set:function(V){this._set("field3",V);this._updateUniqueValues()}},{key:"valueExpression",set:function(V){this._set("valueExpression",V);this._updateUniqueValues()}},{key:"defaultSymbol",set:function(V){this._isDefaultSymbolDerived=!1;this._set("defaultSymbol",V)}},{key:"fieldDelimiter",set:function(V){this._set("fieldDelimiter",V);this._updateUniqueValues()}},{key:"uniqueValueGroups",set:function(V){this.styleOrigin?N.error("#uniqueValueGroups\x3d","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):
(this._set("uniqueValueGroups",V),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}},{key:"uniqueValueInfos",set:function(V){this.styleOrigin?N.error("#uniqueValueInfos\x3d","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",V),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}},{key:"arcadeRequired",get:function(){return this.arcadeRequiredForVisualVariables||
!!this.valueExpression}}]);return ka}(y.VisualVariablesMixin(z));b.__decorate([g.property({readOnly:!0})],n.prototype,"_cache",null);b.__decorate([p.enumeration({uniqueValue:"unique-value"})],n.prototype,"type",void 0);b.__decorate([g.property(A.rendererBackgroundFillSymbolProperty)],n.prototype,"backgroundFillSymbol",void 0);b.__decorate([g.property({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],n.prototype,"field",null);b.__decorate([k.cast("field")],n.prototype,
"castField",null);b.__decorate([t.writer("field")],n.prototype,"writeField",null);b.__decorate([g.property({type:String,value:null,json:{write:!0}})],n.prototype,"field2",null);b.__decorate([g.property({type:String,value:null,json:{write:!0}})],n.prototype,"field3",null);b.__decorate([g.property({type:String,value:null,json:{write:!0}})],n.prototype,"valueExpression",null);b.__decorate([g.property({type:String,json:{write:!0}})],n.prototype,"valueExpressionTitle",void 0);b.__decorate([g.property({type:B.LegendOptions,
json:{write:!0}})],n.prototype,"legendOptions",void 0);b.__decorate([g.property({type:String,json:{write:!0}})],n.prototype,"defaultLabel",void 0);b.__decorate([g.property(r.deepMerge({...A.rendererSymbolProperty},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],n.prototype,"defaultSymbol",null);b.__decorate([g.property({type:String,value:null,json:{write:!0}})],n.prototype,
"fieldDelimiter",null);b.__decorate([g.property({type:x,readOnly:!0})],n.prototype,"portal",void 0);b.__decorate([l.reader("portal",["styleName"])],n.prototype,"readPortal",null);b.__decorate([g.property({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],n.prototype,"styleOrigin",void 0);b.__decorate([l.reader("styleOrigin",["styleName","styleUrl"])],n.prototype,"readStyleOrigin",null);b.__decorate([t.writer("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],
n.prototype,"writeStyleOrigin",null);b.__decorate([g.property({type:[D],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(ba,ka,P)=>(ka.uniqueValueGroups||J(ka)).map(V=>D.fromJSON(V,P))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],n.prototype,"uniqueValueGroups",null);b.__decorate([g.property({type:[C],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],n.prototype,"uniqueValueInfos",null);return n=K=b.__decorate([m.subclass("esri.renderers.UniqueValueRenderer")],
n)})},"esri/core/reactiveUtils":function(){define("exports ./events ./handleUtils ./maybe ./promiseUtils ./accessorSupport/watch ./accessorSupport/trackingUtils".split(" "),function(a,b,c,e,d,n,u){function r(l,m,t={}){return h(l,m,t,k)}function h(l,m,t={},f){let q=null;const v=t.once?(x,z)=>{f(x)&&(e.removeMaybe(q),m(x,z))}:(x,z)=>{f(x)&&m(x,z)};q=n.watchTracked(l,v,t.sync,t.equals);t.initial&&(l=l(),v(l,l));return q}function g(l,m,t){if(d.isAborted(t))return Promise.reject(d.createAbortError());
const f=l();if(m?.(f))return Promise.resolve(f);let q=null;return new Promise((v,x)=>{q=c.handlesGroup([d.onAbort(t,()=>{q=e.removeMaybe(q);x(d.createAbortError())}),h(l,z=>{q=e.removeMaybe(q);v(z)},{sync:!1,once:!0},m??k)])})}function k(l){return!0}function p(l){return!!l}a.autorun=u.autorun;a.initial={initial:!0};a.on=function(l,m,t,f={}){function q(){x&&z&&(z.remove(),f.onListenerRemove?.(x),z=x=null)}function v(B){f.once&&f.once&&e.removeMaybe(y);t(B)}let x=null,z=null,y=null;const A=r(l,(B,E)=>
{q();b.isEventTarget(B)&&(x=B,z=b.on(B,m,v),f.onListenerAdd?.(B))},{sync:f.sync,initial:!0});return y=c.makeHandle(()=>{A.remove();q()})};a.once=function(l,m){return g(l,null,m)};a.pausable=function(l,m,t={}){let f=!1;const q=r(l,(v,x)=>{f||m(v,x)},t);return{remove(){q.remove()},pause(){f=!0},resume(){f=!1}}};a.sync={sync:!0};a.syncAndInitial={sync:!0,initial:!0};a.watch=r;a.when=function(l,m,t={}){return h(l,m,t,p)};a.whenOnce=function(l,m){return g(l,p,m)};Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/diffUtils":function(){define(["exports","../Accessor","../Collection","../maybe","./utils"],function(a,b,c,e,d){function n(m){return m instanceof c?Object.keys(m.items):m instanceof b?d.getProperties(m).keys():m?Object.keys(m):[]}function u(m,t){return m instanceof c?m.items[t]:m[t]}function r(m,t){return Array.isArray(m)&&Array.isArray(t)?m.length!==t.length:!1}function h(m){return m?m.declaredClass:null}function g(m,t){const f=
m.diff;if(f&&"function"===typeof f)return f(m,t);const q=n(m),v=n(t);if(0!==q.length||0!==v.length){if(!q.length||!v.length||r(m,t))return{type:"complete",oldValue:m,newValue:t};var x=v.filter(A=>!q.includes(A)),z=q.filter(A=>!v.includes(A));z=q.filter(A=>v.includes(A)&&u(m,A)!==u(t,A)).concat(x,z).sort();if((x=h(m))&&l.includes(x)&&z.length)return{type:"complete",oldValue:m,newValue:t};var y;x=m instanceof b&&t instanceof b;for(const A of z){z=u(m,A);const B=u(t,A);if((x||"function"!==typeof z&&
"function"!==typeof B)&&z!==B&&(null!=z||null!=B)){if(f&&f[A]&&"function"===typeof f[A])z=f[A](z,B);else if(z instanceof Date&&B instanceof Date){if(z.getTime()===B.getTime())continue;z={type:"complete",oldValue:z,newValue:B}}else z="object"===typeof z&&"object"===typeof B&&h(z)===h(B)?g(z,B):{type:"complete",oldValue:z,newValue:B};e.isSome(z)&&(e.isSome(y)?y.diff[A]=z:y={type:"partial",diff:{[A]:z}})}}return y}}function k(m,t){if(e.isNone(m))return!1;t=t.split(".");for(const f of t){if("complete"===
m.type)break;if("partial"===m.type){if(m=m.diff[f],!m)return!1}else return!1}return!0}function p(m){if(e.isNone(m))return!0;switch(m.type){case "complete":return!1;case "collection":for(const t of m.added)if(!p(t))return!1;for(const t of m.removed)if(!p(t))return!1;for(const t of m.changed)if(!p(t))return!1;return!0;case "partial":for(const t in m.diff)if(!p(m.diff[t]))return!1;return!0}}const l=["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"];
a.diff=function(m,t){if(!("function"===typeof m||"function"===typeof t||e.isNone(m)&&e.isNone(t)))return e.isNone(m)||e.isNone(t)||"object"===typeof m&&"object"===typeof t&&h(m)!==h(t)?{type:"complete",oldValue:m,newValue:t}:g(m,t)};a.hasDiff=k;a.hasDiffAny=function(m,t){for(const f of t)if(k(m,f))return!0;return!1};a.isEmpty=p;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/UniqueValue":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),
function(a,b,c,e,d,n,u,r,h){c=function(g){function k(p){p=g.call(this,p)||this;p.value=null;p.value2=null;p.value3=null;return p}a._inheritsLoose(k,g);return k}(c.ClonableMixin(e.JSONSupport));b.__decorate([d.property(h.uniqueValueProperty)],c.prototype,"value",void 0);b.__decorate([d.property(h.uniqueValueProperty)],c.prototype,"value2",void 0);b.__decorate([d.property(h.uniqueValueProperty)],c.prototype,"value3",void 0);return c=b.__decorate([r.subclass("esri.renderers.support.UniqueValue")],c)})},
"esri/renderers/support/UniqueValueClass":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ./commonProperties ./UniqueValue".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){c=function(p){function l(m){m=p.call(this,m)||this;m.description=null;m.label=null;
m.symbol=null;m.values=null;return m}a._inheritsLoose(l,p);l.prototype.castValues=function(m){if(null==m)return null;m=Array.isArray(m)?m:[m];const t=typeof m[0];return"string"===t||"number"===t?m.map(f=>new k({value:f})):"object"===t?m[0]instanceof k?m:m.map(f=>new k(f)):null};return l}(c.ClonableMixin(e.JSONSupport));b.__decorate([n.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([n.property(g.rendererSymbolProperty)],
c.prototype,"symbol",void 0);b.__decorate([n.property({type:[k],json:{type:[[String]],read:{reader:p=>p?p.map(l=>new k({value:l[0],value2:l[1],value3:l[2]})):null},write:{writer:(p,l)=>{const m=[];for(const t of p)p=[t.value,t.value2,t.value3].filter(d.isSome).map(f=>f.toString()),m.push(p);l.values=m}}}})],c.prototype,"values",void 0);b.__decorate([r.cast("values")],c.prototype,"castValues",null);return c=b.__decorate([h.subclass("esri.renderers.support.UniqueValueClass")],c)})},"esri/renderers/support/UniqueValueGroup":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./UniqueValueClass".split(" "),
function(a,b,c,e,d,n,u,r,h){c=function(g){function k(p){p=g.call(this,p)||this;p.heading=null;p.classes=null;return p}a._inheritsLoose(k,g);return k}(c.ClonableMixin(e.JSONSupport));b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"heading",void 0);b.__decorate([d.property({type:[h],json:{write:!0}})],c.prototype,"classes",void 0);return c=b.__decorate([r.subclass("esri.renderers.support.UniqueValueGroup")],c)})},"esri/renderers/support/UniqueValueInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./commonProperties".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(l){l=g.call(this,l)||this;l.description=null;l.label=null;l.symbol=null;l.value=null;return l}a._inheritsLoose(k,g);var p=k.prototype;p.clone=function(){return new h({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})};p.getMeshHash=function(){const l=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${l}`};return k}(c.JSONSupport);b.__decorate([e.property({type:String,
json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([e.property(r.rendererSymbolProperty)],c.prototype,"symbol",void 0);b.__decorate([e.property(r.uniqueValueProperty)],c.prototype,"value",void 0);return c=h=b.__decorate([u.subclass("esri.renderers.support.UniqueValueInfo")],c)})},"esri/symbols/support/styleUtils":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../request ../../core/Error ../../core/maybe ../../core/promiseUtils ../../core/urlUtils ../../portal/Portal ../../portal/PortalQueryParams ../../support/featureFlags".split(" "),
function(a,b,c,e,d,n,u,r,h,g){function k(q,v){return p.apply(this,arguments)}function p(){p=b._asyncToGenerator(function*(q,v){try{return{data:(yield t(q,v)).data,baseUrl:u.removeFile(q),styleUrl:q}}catch(x){return n.throwIfAbortError(x),null}});return p.apply(this,arguments)}function l(q,v,x){v=d.isSome(v.portal)?v.portal:r.getDefault();let z;const y=`${v.url} - ${v.user&&v.user.username} - ${q}`;f[y]||(f[y]=m(q,v,x).then(A=>{z=A;return A.fetchData()}).then(A=>({data:A,baseUrl:z.itemUrl??"",styleName:q})));
return f[y]}function m(q,v,x){return v.load(x).then(()=>{const z=new h({disableExtraQuery:!0,query:`owner:${"esri_en"} AND type:${"Style"} AND typekeywords:"${q}"`});return v.queryItems(z,x)}).then(({results:z})=>{let y=null;const A=q.toLowerCase();if(z&&Array.isArray(z))for(const B of z)if(B.typeKeywords?.some(E=>E.toLowerCase()===A)&&"Style"===B.type&&"esri_en"===B.owner){y=B;break}if(!y)throw new e("symbolstyleutils:style-not-found",`The style '${q}' could not be found`,{styleName:q});return y.load(x)})}
function t(q,v){v={responseType:"json",query:{f:"json"},...v};return c(u.normalize(q),v)}const f={};a.Style2DUrlTemplate="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f\x3djson";a.fetchStyle=function(q,v,x){return q&&d.isSome(q.styleUrl)?k(q.styleUrl,x):q&&d.isSome(q.styleName)?l(q.styleName,v,x):Promise.reject(new e("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))};
a.makeCIMSymbolRef=function(q){return null===q||"CIMSymbolReference"===q.type?q:{type:"CIMSymbolReference",symbol:q}};a.requestJSON=t;a.symbolUrlFromStyleItem=function(q,v){if("cimRef"===v)return q.cimRef;if(q.formatInfos&&!g.enableWebStyleForceWOSR())for(const x of q.formatInfos)if("gltf"===x.type)return x.href;return q.webRef};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/featureFlags":function(){define(["exports","../core/has"],function(a,
b){const c=()=>b.cache["enable-feature:direct-3d-object-feature-layer-display"]=!0;a.enableDirect3DObjectFeatureLayerDisplay=()=>!!b("enable-feature:direct-3d-object-feature-layer-display");a.enableSceneLayerEditing=()=>{b.cache["enable-feature:SceneLayer-editing"]=!0;c()};a.enableWebStyleForceWOSR=()=>!!b("enable-feature:force-wosr");a.sceneLayerEditingEnabled=()=>!!b("enable-feature:SceneLayer-editing");a.turnOnDirect3DObjectFeatureLayerDisplay=c;Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/jsonUtils":function(){define(["exports","../../core/Warning","../../core/accessorSupport/extensions/serializableProperty/reader","./types"],function(a,b,c,e){function d(u,r,h){return u?u&&(u.styleName||u.styleUrl)&&"uniqueValue"!==u.type?(h&&h.messages&&h.messages.push(new b("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+u.type+"'",{definition:u,context:h})),null):n(u,r,h):null}const n=
c.createTypeReader({types:e.rendererTypes});a.fromJSON=function(u,r){return d(u,null,r)};a.read=d;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/renderers/support/types":function(){define("exports ../ClassBreaksRenderer ../DictionaryRenderer ../DotDensityRenderer ../HeatmapRenderer ../PieChartRenderer ../Renderer ../SimpleRenderer ../UniqueValueRenderer".split(" "),function(a,b,c,e,d,n,u,r,h){const g={key:"type",base:u,typeMap:{simple:r,"unique-value":h,
"class-breaks":b,heatmap:d},errorContext:"renderer"};a.rendererTypes={key:"type",base:u,typeMap:{heatmap:d,simple:r,"unique-value":h,"class-breaks":b,"dot-density":e,dictionary:c,"pie-chart":n},errorContext:"renderer"};a.webSceneRendererTypes=g;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/MultiOriginJSONSupport":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./ReadOnlyMultiOriginJSONSupport ./accessorSupport/PropertyOrigin ./accessorSupport/utils ./accessorSupport/write ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){const g=p=>{p=function(l){function m(...f){return l.call(this,...f)||this}b._inheritsLoose(m,l);var t=m.prototype;t.clear=function(f,q="user"){return u.getProperties(this).store.delete(f,n.nameToId(q))};t.write=function(f={},q){f=f||{};r.write(this,f,q);return f};t.setAtOrigin=function(f,q,v){u.getProperties(this).setAtOrigin(f,q,n.nameToId(v))};t.removeOrigin=function(f){const q=u.getProperties(this).store;f=n.nameToId(f);const v=q.keys(f);for(const x of v)q.originOf(x)===
f&&q.set(x,q.get(x,f),n.OriginId.USER)};t.updateOrigin=function(f,q){const v=u.getProperties(this).store;q=n.nameToId(q);const x=this.get(f);for(let z=q+1;z<n.OriginIdNum;++z)v.delete(f,z);v.set(f,x,q)};t.toJSON=function(f){return this.write({},f)};return m}(p);p=c.__decorate([h.subclass("esri.core.WriteableMultiOriginJSONSupport")],p);p.prototype.toJSON.isDefaultToJSON=!0;return p},k=p=>{p=function(l){function m(...t){return l.call(this,...t)||this}b._inheritsLoose(m,l);return m}(g(d.ReadOnlyMultiOriginJSONMixin(p)));
return p=c.__decorate([h.subclass("esri.core.MultiOriginJSONSupport")],p)};a.MultiOriginJSONSupport=function(p){function l(){return p.apply(this,arguments)||this}b._inheritsLoose(l,p);return l}(k(e));a.MultiOriginJSONSupport=c.__decorate([h.subclass("esri.core.MultiOriginJSONSupport")],a.MultiOriginJSONSupport);a.MultiOriginJSONMixin=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/ReadOnlyMultiOriginJSONSupport":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./maybe ./accessorSupport/defaultsStoreUtils ./accessorSupport/MultiOriginStore ./accessorSupport/PropertyOrigin ./accessorSupport/read ./accessorSupport/utils ./accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k){const p=l=>{l=function(m){function t(...q){q=m.call(this,...q)||this;const v=d.assumeNonNull(g.getProperties(b._assertThisInitialized(q))),x=v.store,z=new u;v.store=z;n.setupConstructedDefaults(v,x,z);return q}b._inheritsLoose(t,m);var f=t.prototype;f.read=function(q,v){h.read(this,q,v)};f.getAtOrigin=function(q,v){const x=g.getProperties(this).store,z=r.nameToId(v);if("string"===typeof q)return x.get(q,z);const y={};q.forEach(A=>{y[A]=x.get(A,z)});return y};f.originOf=
function(q){return r.idToName(this.originIdOf(q))};f.originIdOf=function(q){return g.getProperties(this).store.originOf(q)};f.revert=function(q,v){const x=g.getProperties(this).store,z=r.nameToId(v),y=g.getProperties(this);("string"===typeof q?"*"===q?x.keys(z):[q]:q).forEach(A=>{y.invalidate(A);x.revert(A,z);y.commit(A)})};return t}(l);return l=c.__decorate([k.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")],l)};a.ReadOnlyMultiOriginJSONSupport=function(l){function m(){return l.apply(this,arguments)||
this}b._inheritsLoose(m,l);return m}(p(e));a.ReadOnlyMultiOriginJSONSupport=c.__decorate([k.subclass("esri.core.ReadOnlyMultiOriginJSONSupport")],a.ReadOnlyMultiOriginJSONSupport);a.ReadOnlyMultiOriginJSONMixin=p;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/MultiOriginStore":function(){define(["../lang","../maybe","./PropertyOrigin"],function(a,b,c){return function(){function e(){this._propertyOriginMap=new Map;this._originStores=
Array(c.OriginIdNum);this._values=new Map;this.multipleOriginsSupported=!0}var d=e.prototype;d.clone=function(n){const u=new e;var r=this._originStores[c.OriginId.DEFAULTS];r&&r.forEach((h,g)=>{u.set(g,a.clone(h),c.OriginId.DEFAULTS)});for(let h=c.OriginId.SERVICE;h<c.OriginIdNum;h++)(r=this._originStores[h])&&r.forEach((g,k)=>{n&&n.has(k)||u.set(k,a.clone(g),h)});return u};d.get=function(n,u){return(u=void 0===u?this._values:this._originStores[u])?u.get(n):void 0};d.keys=function(n){return(n=null==
n?this._values:this._originStores[n])?[...n.keys()]:[]};d.set=function(n,u,r=c.OriginId.USER){var h=this._originStores[r];h||(h=new Map,this._originStores[r]=h);h.set(n,u);return!this._values.has(n)||b.assumeNonNull(this._propertyOriginMap.get(n))<=r?(h=this._values.get(n),this._values.set(n,u),this._propertyOriginMap.set(n,r),h!==u):!1};d.delete=function(n,u=c.OriginId.USER){var r=this._originStores[u];if(r){var h=r.get(n);r.delete(n);if(this._values.has(n)&&this._propertyOriginMap.get(n)===u)for(this._values.delete(n),
--u;0<=u;u--)if((r=this._originStores[u])&&r.has(n)){this._values.set(n,r.get(n));this._propertyOriginMap.set(n,u);break}return h}};d.has=function(n,u){return(u=void 0===u?this._values:this._originStores[u])?u.has(n):!1};d.revert=function(n,u){for(;0<u&&!this.has(n,u);)--u;var r=this._originStores[u];r=r&&r.get(n);const h=this._values.get(n);this._values.set(n,r);this._propertyOriginMap.set(n,u);return h!==r};d.originOf=function(n){return this._propertyOriginMap.get(n)||c.OriginId.DEFAULTS};d.forEach=
function(n){this._values.forEach(n)};return e}()})},"esri/core/sql":function(){define(["require","exports","../chunks/_rollupPluginBabelHelpers","./maybe"],function(a,b,c,e){function d(){d=c._asyncToGenerator(function*(n,u){const {WhereClause:r}=yield new Promise((h,g)=>a(["./sql/WhereClause"],h,g));return r.create(n,u)});return d.apply(this,arguments)}b.parseWhereClause=function(n,u){return d.apply(this,arguments)};b.sqlAnd=function(n,u){return e.isSome(n)?e.isSome(u)?`(${n}) AND (${u})`:n:u};Object.defineProperties(b,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/form/FormTemplate":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/lang ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer ./ExpressionInfo ./elements/GroupElement ./support/elements".split(" "),function(a,b,c,e,d,
n,u,r,h,g,k,p){var l;const m=p.buildTypeMaps(k);c=l=function(t){function f(v){v=t.call(this,v)||this;v.description=null;v.elements=null;v.expressionInfos=null;v.preserveFieldValuesWhenHidden=!1;v.title=null;return v}a._inheritsLoose(f,t);var q=f.prototype;q.castElements=function(v){return p.ensureType(v,m)};q.readElements=function(v,x){return p.fromJSON(x.formElements,m)};q.writeElements=function(v,x){x.formElements=p.toJSON(v,m)};q.clone=function(){return new l({description:this.description,expressionInfos:e.clone(this.expressionInfos),
elements:e.clone(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})};return f}(c.JSONSupport);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([d.property({json:{write:!0}})],c.prototype,"elements",void 0);b.__decorate([n.cast("elements")],c.prototype,"castElements",null);b.__decorate([u.reader("elements",["formElements"])],c.prototype,"readElements",null);b.__decorate([h.writer("elements")],c.prototype,
"writeElements",null);b.__decorate([d.property({type:[g],json:{write:!0}})],c.prototype,"expressionInfos",void 0);b.__decorate([d.property({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"preserveFieldValuesWhenHidden",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);return c=l=b.__decorate([r.subclass("esri.form.FormTemplate")],c)})},"esri/form/ExpressionInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/JSONSupport ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.expression=null;k.name=null;k.returnType="boolean";k.title=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})};return g}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"name",
void 0);b.__decorate([e.property({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);return c=r=b.__decorate([u.subclass("esri.form.ExpressionInfo")],c)})},"esri/form/elements/GroupElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./Element ../support/elements".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;h=k=function(l){function m(f){f=l.call(this,f)||this;f.elements=null;f.initialState="expanded";f.type="group";return f}a._inheritsLoose(m,l);var t=m.prototype;t.castElements=function(f){return g.ensureType(f,p,!1)};t.readElements=function(f,q){return g.fromJSON(q.formElements,p,!1)};t.writeElements=function(f,q){q.formElements=g.toJSON(f,p,!1)};t.clone=function(){return new k({description:this.description,elements:c.clone(this.elements),initialState:this.initialState,
label:this.label,visibilityExpression:this.visibilityExpression})};return m}(h);b.__decorate([e.property({json:{write:!0}})],h.prototype,"elements",void 0);b.__decorate([d.cast("elements")],h.prototype,"castElements",null);b.__decorate([n.reader("elements",["formElements"])],h.prototype,"readElements",null);b.__decorate([r.writer("elements")],h.prototype,"writeElements",null);b.__decorate([e.property({type:["collapsed","expanded"],json:{write:!0}})],h.prototype,"initialState",void 0);b.__decorate([e.property({type:String,
json:{read:!1,write:!0}})],h.prototype,"type",void 0);h=k=b.__decorate([u.subclass("esri.form.elements.GroupElement")],h);const p=g.buildTypeMaps(h);return h})},"esri/form/elements/Element":function(){define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/JSONSupport","../../core/accessorSupport/decorators/property","../../core/accessorSupport/decorators/subclass"],function(a,b,c,e,d){c=function(n){function u(r){r=n.call(this,r)||this;r.description=null;r.label=null;
r.type=null;r.visibilityExpression=null;return r}a._inheritsLoose(u,n);return u}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"label",void 0);b.__decorate([e.property()],c.prototype,"type",void 0);b.__decorate([e.property({type:String,json:{write:!0}})],c.prototype,"visibilityExpression",void 0);return c=b.__decorate([d.subclass("esri.form.elements.Element")],c)})},"esri/form/support/elements":function(){define("exports ../../core/accessorSupport/ensureType ../elements/AttachmentElement ../elements/Element ../elements/FieldElement ../elements/RelationshipElement".split(" "),
function(a,b,c,e,d,n){a.buildTypeMaps=function(u){return{typesWithGroup:{base:e,key:"type",typeMap:{attachment:c,field:d,group:u,relationship:n}},typesWithoutGroup:{base:e,key:"type",typeMap:{attachment:c,field:d,relationship:n}}}};a.ensureType=function(u,r,h=!0){return u?u.map(g=>b.ensureOneOfType(h?r.typesWithGroup:r.typesWithoutGroup,g)):null};a.fromJSON=function(u,r,h=!0){if(!u)return null;const g=h?r.typesWithGroup.typeMap:r.typesWithoutGroup.typeMap;return u.filter(k=>g[k.type]).map(k=>g[k.type].fromJSON(k))};
a.toJSON=function(u,r,h=!0){if(!u)return null;const g=h?r.typesWithGroup.typeMap:r.typesWithoutGroup.typeMap;return u.filter(k=>g[k.type]).map(k=>k.toJSON())};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/form/elements/AttachmentElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Element ./inputs/AttachmentInput".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.attachmentKeyword=null;p.editable=!0;p.input=null;p.type="attachment";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})};return k}(u);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"attachmentKeyword",
void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],e.prototype,"editable",void 0);b.__decorate([c.property({type:r,json:{read:{source:"inputType"},write:{target:"inputType"}}})],e.prototype,"input",void 0);b.__decorate([c.property({type:["attachment"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=h=b.__decorate([n.subclass("esri.form.elements.AttachmentElement")],e)})},"esri/form/elements/inputs/AttachmentInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=h.call(this,k)||this;k.type=null;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({type:this.type})};return g}(c.JSONSupport);b.__decorate([e.property({type:"attachment audio document image signature video".split(" "),json:{write:!0}})],c.prototype,"type",void 0);return c=r=b.__decorate([u.subclass("esri.form.elements.inputs.AttachmentInput")],c)})},"esri/form/elements/FieldElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Element ./support/inputs ../../layers/support/domains".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;e=g=function(k){function p(l){l=k.call(this,l)||this;l.domain=null;l.editable=!0;l.editableExpression=null;l.fieldName=null;l.hint=null;l.input=null;l.requiredExpression=null;l.type="field";l.valueExpression=null;return l}a._inheritsLoose(p,k);p.prototype.clone=function(){return new g({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,
requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})};return p}(u);b.__decorate([c.property({types:h.types,json:{read:{reader:h.fromJSON},write:!0}})],e.prototype,"domain",void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],e.prototype,"editable",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"editableExpression",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,
"fieldName",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"hint",void 0);b.__decorate([c.property({types:r.types,json:{read:{source:"inputType"},write:{target:"inputType"}}})],e.prototype,"input",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"requiredExpression",void 0);b.__decorate([c.property({type:String,json:{read:!1,write:!0}})],e.prototype,"type",void 0);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"valueExpression",
void 0);return e=g=b.__decorate([n.subclass("esri.form.elements.FieldElement")],e)})},"esri/form/elements/support/inputs":function(){define("exports ../inputs/BarcodeScannerInput ../inputs/ComboBoxInput ../inputs/DateTimePickerInput ../inputs/Input ../inputs/RadioButtonsInput ../inputs/SwitchInput ../inputs/TextAreaInput ../inputs/TextBoxInput".split(" "),function(a,b,c,e,d,n,u,r,h){a.types={base:d,key:"type",typeMap:{"barcode-scanner":b,"combo-box":c,"datetime-picker":e,"radio-buttons":n,switch:u,
"text-area":r,"text-box":h}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/form/elements/inputs/BarcodeScannerInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=
h.call(this,k)||this;k.type="barcode-scanner";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({maxLength:this.maxLength,minLength:this.minLength})};return g}(u);b.__decorate([c.property({type:["barcode-scanner"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.form.elements.inputs.BarcodeScannerInput")],e)})},"esri/form/elements/inputs/TextInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,e,d,n,u){e=function(r){function h(g){g=r.call(this,g)||this;g.maxLength=null;g.minLength=0;return g}a._inheritsLoose(h,r);return h}(u);b.__decorate([c.property({type:Number,json:{write:!0}})],e.prototype,"maxLength",void 0);b.__decorate([c.property({type:Number,json:{write:!0}})],e.prototype,"minLength",void 0);return e=b.__decorate([n.subclass("esri.form.elements.inputs.TextInput")],e)})},"esri/form/elements/inputs/Input":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(g){g=r.call(this,g)||this;g.type=null;return g}a._inheritsLoose(h,r);return h}(c.JSONSupport);b.__decorate([e.property()],c.prototype,"type",void 0);return c=b.__decorate([u.subclass("esri.form.elements.inputs.Input")],c)})},"esri/form/elements/inputs/ComboBoxInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.noValueOptionLabel=null;k.showNoValueOption=!0;k.type="combo-box";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})};return g}(u);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"noValueOptionLabel",void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],e.prototype,"showNoValueOption",
void 0);b.__decorate([c.property({type:["combo-box"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.form.elements.inputs.ComboBoxInput")],e)})},"esri/form/elements/inputs/DateTimePickerInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ./Input".split(" "),
function(a,b,c,e,d,n,u,r,h){function g(p){return null!=p?new Date(p):null}var k;e=k=function(p){function l(t){t=p.call(this,t)||this;t.includeTime=!1;t.max=null;t.min=null;t.type="datetime-picker";return t}a._inheritsLoose(l,p);var m=l.prototype;m.readMax=function(t,f){return g(f.max)};m.writeMax=function(t,f){f.max=t?t.getTime():null};m.readMin=function(t,f){return g(f.min)};m.writeMin=function(t,f){f.min=t?t.getTime():null};m.clone=function(){return new k({includeTime:this.includeTime,max:this.max,
min:this.min,type:this.type})};return l}(h);b.__decorate([c.property({type:Boolean,json:{write:!0}})],e.prototype,"includeTime",void 0);b.__decorate([c.property({type:Date,json:{type:Number,write:!0}})],e.prototype,"max",void 0);b.__decorate([n.reader("max")],e.prototype,"readMax",null);b.__decorate([r.writer("max")],e.prototype,"writeMax",null);b.__decorate([c.property({type:Date,json:{type:Number,write:!0}})],e.prototype,"min",void 0);b.__decorate([n.reader("min")],e.prototype,"readMin",null);b.__decorate([r.writer("min")],
e.prototype,"writeMin",null);b.__decorate([c.property({type:["datetime-picker"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=k=b.__decorate([u.subclass("esri.form.elements.inputs.DateTimePickerInput")],e)})},"esri/form/elements/inputs/RadioButtonsInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.noValueOptionLabel=null;k.showNoValueOption=!0;k.type="radio-buttons";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})};return g}(u);b.__decorate([c.property({type:String,json:{write:!0}})],e.prototype,"noValueOptionLabel",void 0);b.__decorate([c.property({type:Boolean,json:{write:!0}})],e.prototype,"showNoValueOption",
void 0);b.__decorate([c.property({type:["radio-buttons"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.form.elements.inputs.RadioButtonsInput")],e)})},"esri/form/elements/inputs/SwitchInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./Input".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.offValue=null;k.onValue=null;k.type="switch";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({offValue:this.offValue,onValue:this.onValue})};return g}(u);b.__decorate([c.property({type:[String,Number],json:{write:!0}})],e.prototype,"offValue",void 0);b.__decorate([c.property({type:[String,Number],json:{write:!0}})],e.prototype,"onValue",void 0);b.__decorate([c.property({type:["switch"],json:{read:!1,
write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.form.elements.inputs.SwitchInput")],e)})},"esri/form/elements/inputs/TextAreaInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=
h.call(this,k)||this;k.type="text-area";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({maxLength:this.maxLength,minLength:this.minLength})};return g}(u);b.__decorate([c.property({type:["text-area"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.form.elements.inputs.TextAreaInput")],e)})},"esri/form/elements/inputs/TextBoxInput":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./TextInput".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.type="text-box";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({maxLength:this.maxLength,minLength:this.minLength})};return g}(u);b.__decorate([c.property({type:["text-box"],json:{read:!1,write:!0}})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.form.elements.inputs.TextBoxInput")],e)})},"esri/layers/support/domains":function(){define("exports ../../core/has ./CodedValueDomain ./Domain ./InheritedDomain ./RangeDomain".split(" "),
function(a,b,c,e,d,n){b={key:"type",base:e,typeMap:{range:n,"coded-value":c,inherited:d}};a.CodedValueDomain=c;a.DomainBase=e;a.InheritedDomain=d;a.RangeDomain=n;a.fromJSON=function(u){if(!u||!u.type)return null;switch(u.type){case "range":return n.fromJSON(u);case "codedValue":return c.fromJSON(u);case "inherited":return d.fromJSON(u)}return null};a.types=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/CodedValueDomain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./CodedValue ./Domain".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;d=g=function(k){function p(m){m=k.call(this,m)||this;m.codedValues=null;m.type="coded-value";return m}a._inheritsLoose(p,k);var l=p.prototype;l.getName=function(m){let t=null;if(this.codedValues){const f=String(m);this.codedValues.some(q=>{String(q.code)===f&&(t=q.name);return!!t})}return t};l.clone=function(){return new g({codedValues:c.clone(this.codedValues),name:this.name})};return p}(h);b.__decorate([e.property({type:[r.CodedValue],json:{write:!0}})],d.prototype,
"codedValues",void 0);b.__decorate([n.enumeration({codedValue:"coded-value"})],d.prototype,"type",void 0);return d=g=b.__decorate([u.subclass("esri.layers.support.CodedValueDomain")],d)})},"esri/layers/support/CodedValue":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,
b,c,e,d,n,u,r){var h;a.CodedValue=h=function(g){function k(p){p=g.call(this,p)||this;p.name=null;p.code=null;return p}b._inheritsLoose(k,g);k.prototype.clone=function(){return new h({name:this.name,code:this.code})};return k}(e.JSONSupport);c.__decorate([d.property({type:String,json:{write:!0}})],a.CodedValue.prototype,"name",void 0);c.__decorate([d.property({type:[String,Number],json:{write:!0}})],a.CodedValue.prototype,"code",void 0);a.CodedValue=h=c.__decorate([r.subclass("esri.layers.support.CodedValue")],
a.CodedValue);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/Domain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h){c=
new c.JSONMap({inherited:"inherited",codedValue:"coded-value",range:"range"});e=function(g){function k(p){p=g.call(this,p)||this;p.name=null;p.type=null;return p}a._inheritsLoose(k,g);return k}(e.JSONSupport);b.__decorate([d.property({type:String,json:{write:!0}})],e.prototype,"name",void 0);b.__decorate([r.enumeration(c)],e.prototype,"type",void 0);return e=b.__decorate([h.subclass("esri.layers.support.Domain")],e)})},"esri/layers/support/InheritedDomain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/accessorSupport/ensureType ../../core/arrayUtils ../../core/Error ../../core/has ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=k=function(p){function l(m){m=p.call(this,m)||this;m.type="inherited";return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new k};return l}(g);b.__decorate([r.enumeration({inherited:"inherited"})],c.prototype,"type",void 0);return c=k=b.__decorate([h.subclass("esri.layers.support.InheritedDomain")],c)})},"esri/layers/support/RangeDomain":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ./Domain".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.maxValue=null;p.minValue=null;p.type="range";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({maxValue:this.maxValue,minValue:this.minValue,name:this.name})};return k}(r);b.__decorate([c.property({type:Number,json:{type:[Number],read:{source:"range",reader(g,k){return k.range&&k.range[1]}},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",
writer(g,k,p){k[p]=[this.minValue||0,g]}}}})],e.prototype,"maxValue",void 0);b.__decorate([c.property({type:Number,json:{type:[Number],read:{source:"range",reader(g,k){return k.range&&k.range[0]}},write:{target:"range",writer(g,k,p){k[p]=[g,this.maxValue||0]}}}})],e.prototype,"minValue",void 0);b.__decorate([n.enumeration({range:"range"})],e.prototype,"type",void 0);return e=h=b.__decorate([u.subclass("esri.layers.support.RangeDomain")],e)})},"esri/form/elements/RelationshipElement":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./Element ../../popup/support/RelatedRecordsInfoFieldOrder".split(" "),
function(a,b,c,e,d,n,u,r){var h;d=h=function(g){function k(p){p=g.call(this,p)||this;p.displayCount=null;p.displayType="list";p.editable=!0;p.orderByFields=null;p.relationshipId=null;p.type="relationship";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:c.clone(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})};
return k}(u);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"displayCount",void 0);b.__decorate([e.property({type:["list"],json:{write:!0}})],d.prototype,"displayType",void 0);b.__decorate([e.property({type:Boolean,json:{write:!0}})],d.prototype,"editable",void 0);b.__decorate([e.property({type:[r],json:{write:!0}})],d.prototype,"orderByFields",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],d.prototype,"relationshipId",void 0);b.__decorate([e.property({type:["relationship"],
json:{read:!1,write:!0}})],d.prototype,"type",void 0);return d=h=b.__decorate([n.subclass("esri.form.elements.RelationshipElement")],d)})},"esri/layers/graphics/sources/MemorySource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../core/Collection ../../../core/Error ../../../core/HandleOwner ../../../core/has ../../../core/Loadable ../../../core/Logger ../../../core/maybe ../../../core/Promise ../../../core/workers/workers ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/shared ../../../core/accessorSupport/decorators/subclass ../../../rest/query/operations/editsZScale ../../../rest/query/operations/queryZScale ../../../rest/support/FeatureSet ../../../geometry/Extent ../../../geometry/Polygon ../../../geometry/support/typeUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w){let D=0;const C=k.getLogger("esri.layers.graphics.sources.MemorySource");a.MemorySource=function(F){function G(I){I=F.call(this,I)||this;I._idToClientGraphic=null;I.type="memory";return I}b._inheritsLoose(G,F);var H=G.prototype;H.load=function(I){I=p.isSome(I)?I.signal:null;this.addResolvingPromise(this._startWorker(I));return Promise.resolve(this)};H.destroy=function(){this._connection?.close();this._connection=null};H.applyEdits=function(I){return this.load().then(()=>
this._applyEdits(I))};H.openPorts=function(){return this.load().then(()=>this._connection.openPorts())};H.queryFeatures=function(){var I=b._asyncToGenerator(function*(J,K={}){yield this.load(K);K=yield this._connection.invoke("queryFeatures",J?J.toJSON():null,K);y.applyFeatureSetZUnitScaling(J,this.layer.spatialReference,K);J=A.fromJSON(K);if(!this._requiresClientGraphicMapping())return J;K=this.layer.objectIdField;for(const N of J.features){const U=this._idToClientGraphic.get(N.attributes[K]);U&&
(N.geometry=U.geometry)}J.geometryType=this.layer.geometryType;return J});return function(J){return I.apply(this,arguments)}}();H.queryFeaturesJSON=function(){var I=b._asyncToGenerator(function*(J,K={}){if(this._requiresClientGraphicMapping())throw new u("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");yield this.load(K);K=yield this._connection.invoke("queryFeatures",J?J.toJSON():null,K);y.applyFeatureSetZUnitScaling(J,this.layer.spatialReference,
K);return K});return function(J){return I.apply(this,arguments)}}();H.queryFeatureCount=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("queryFeatureCount",I?I.toJSON():null,J))};H.queryObjectIds=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("queryObjectIds",I?I.toJSON():null,J))};H.queryExtent=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("queryExtent",I?I.toJSON():null,J)).then(K=>({count:K.count,extent:B.fromJSON(K.extent)}))};
H.querySnapping=function(I,J={}){return this.load(J).then(()=>this._connection.invoke("querySnapping",I,J))};H._applyEdits=function(){var I=b._asyncToGenerator(function*(J){if(!this._connection)throw new u("feature-layer-source:edit-failure","Memory source not loaded");const K=this.layer.objectIdField;let N=null;const U=[],ba=[];yield Promise.all([this._prepareClientMapping(J.addFeatures,null),this._prepareClientMapping(J.updateFeatures,null)]);const ka=ra=>"objectId"in ra&&null!=ra.objectId?ra.objectId:
"attributes"in ra&&null!=ra.attributes[K]?ra.attributes[K]:null;J.addFeatures&&(N=this._prepareAddFeatures(J.addFeatures));if(J.deleteFeatures)for(var P of J.deleteFeatures){const ra=ka(P);null!=ra&&U.push(ra)}P=J.updateFeatures&&this._idToClientGraphic?new Map:null;if(J.updateFeatures)for(const ra of J.updateFeatures)ba.push(this._serializeFeature(ra)),P&&(J=ka(ra),null!=J&&P.set(J,ra));z.unapplyEditsZUnitScaling(N?N.features:null,ba,this.layer.spatialReference);const {fullExtent:V,featureEditResults:ca}=
yield this._connection.invoke("applyEdits",{adds:N?N.features:[],updates:ba,deletes:U});this.fullExtent=V;N&&N.finish(ca.uidToObjectId);this._updateClientGraphicIds(P,ca);return this._createEditsResult(ca)});return function(J){return I.apply(this,arguments)}}();H._prepareClientMapping=function(){var I=b._asyncToGenerator(function*(J,K){if("mesh"===this._layerOrSourceGeometryType&&!p.isNone(J)){var N=[];for(const {geometry:U}of J)!p.isSome(U)||"mesh"!==U.type||U.hasExtent||U.loaded||N.push(U.load({signal:K}));
N.length&&(yield Promise.all(N))}});return function(J,K){return I.apply(this,arguments)}}();H._updateClientGraphicIds=function(I,J){if(this._idToClientGraphic){if(I)for(const K of J.updateResults){if(!K.success)continue;const N=I.get(K.objectId);null!=N&&this._addIdToClientGraphic(N)}for(const K of J.deleteResults)K.success&&this._idToClientGraphic.delete(K.objectId)}};H._createEditsResult=function(I){return{addFeatureResults:I.addResults?I.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:I.updateResults?
I.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:I.deleteResults?I.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}};H._createFeatureEditResult=function(I){const J=!0===I.success?null:I.error||{code:void 0,description:void 0};return{objectId:I.objectId,globalId:I.globalId,error:J?new u("feature-layer-source:edit-failure",J.description,{code:J.code}):null}};H._prepareAddFeatures=function(I){const J=
new Map,K=Array(I.length);let N=null;for(let ba=0;ba<I.length;ba++){const ka=I[ba],P=this._serializeFeature(ka);!N&&p.isSome(ka.geometry)&&(N=ka.geometry.type);K[ba]=P;J.set(`${P.uid}`,ka)}const U=this;return{features:K,inferredGeometryType:N,finish(ba){const ka=U.sourceJSON.objectIdField;for(const P in ba){const V=ba[P],ca=J.get(P);ca&&(ca.attributes||(ca.attributes={}),-1===V?delete ca.attributes[ka]:ca.attributes[ka]=V,U._addIdToClientGraphic(ca))}}}};H._addIdToClientGraphic=function(I){if(this._idToClientGraphic){var J=
this.sourceJSON.objectIdField;J=I.attributes&&I.attributes[J];null!=J&&this._idToClientGraphic.set(J,I)}};H._requiresClientGraphicMapping=function(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)};H._geometryRequiresClientGraphicMapping=function(I){return this._geometryTypeRequiresClientGraphicMapping(I.type)};H._geometryTypeRequiresClientGraphicMapping=function(I){return"mesh"===I||"multipatch"===I||"extent"===I};H._serializeFeature=function(I){const {attributes:J}=
I;I=this._geometryForSerialization(I);const K=(D++).toString();return I?{uid:K,geometry:I.toJSON(),attributes:J}:{uid:K,attributes:J}};H._geometryForSerialization=function(I){({geometry:I}=I);return p.isNone(I)?null:this._geometryRequiresClientGraphicMapping(I)?I.extent?E.fromExtent(I.extent):null:I};H._startWorker=function(){var I=b._asyncToGenerator(function*(J){this._connection=yield m.open("MemorySourceWorker",{strategy:h("feature-layers-workers")?"dedicated":"local",signal:J});const {fields:K,
spatialReference:N,objectIdField:U,hasM:ba,hasZ:ka,timeInfo:P}=this.layer;var V="defaults"===this.layer.originOf("spatialReference");yield this._prepareClientMapping(this.items,J);const ca=this._prepareAddFeatures(this.items);this.handles.add(this.on("before-changes",ta=>{C.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead");ta.preventDefault()}));V={features:ca.features,fields:K&&K.map(ta=>ta.toJSON()),geometryType:w.typeKebabDictionary.toJSON(this._workerGeometryType),
hasM:"mesh"===this._layerOrSourceGeometryType?!1:ba,hasZ:"mesh"===this._layerOrSourceGeometryType?!0:ka,objectIdField:U,spatialReference:V?null:N&&N.toJSON(),timeInfo:P?P.toJSON():null};J=yield this._connection.invoke("load",V,{signal:J});for(var ra of J.warnings)C.warn(ra.message,{layer:this.layer,warning:ra});J.featureErrors.length&&C.warn(`Encountered ${J.featureErrors.length} validation errors while loading features`,J.featureErrors);ra=J.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(ca.inferredGeometryType)&&
(ra.geometryType=w.typeKebabDictionary.toJSON(ca.inferredGeometryType));this.sourceJSON=ra;this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map);ca.finish(J.assignedObjectIds)});return function(J){return I.apply(this,arguments)}}();b._createClass(G,[{key:"_workerGeometryType",get:function(){const I=this.layer?.geometryType;return I?this._geometryTypeRequiresClientGraphicMapping(I)?"polygon":I:null}},{key:"_layerOrSourceGeometryType",get:function(){return this.layer?.geometryType??
this.sourceJSON?.geometryType}}]);return G}(g.LoadableMixin(l.EsriPromiseMixin(r.HandleOwnerMixin(n))));c.__decorate([v.shared({Type:d,ensureType:q.ensureType(d)})],a.MemorySource.prototype,"itemType",void 0);c.__decorate([t.property()],a.MemorySource.prototype,"type",void 0);c.__decorate([t.property({constructOnly:!0})],a.MemorySource.prototype,"layer",void 0);c.__decorate([t.property({readOnly:!0})],a.MemorySource.prototype,"_workerGeometryType",null);c.__decorate([t.property()],a.MemorySource.prototype,
"sourceJSON",void 0);a.MemorySource=c.__decorate([x.subclass("esri.layers.graphics.sources.MemorySource")],a.MemorySource);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/HandleOwner":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ./Accessor ./Handles ./accessorSupport/decorators/property ./accessorSupport/decorators/subclass ./support/WatchUpdatingTracking".split(" "),function(a,b,c,e,d,n,u,r){const h=g=>{g=
function(k){function p(){return k.apply(this,arguments)||this}b._inheritsLoose(p,k);p.prototype.destroy=function(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())};b._createClass(p,[{key:"handles",get:function(){return this._get("handles")||new d}},{key:"updatingHandles",get:function(){return this._get("updatingHandles")||new r.WatchUpdatingTracking}}]);return p}(g);c.__decorate([n.property({readOnly:!0})],g.prototype,"handles",null);c.__decorate([n.property({readOnly:!0})],
g.prototype,"updatingHandles",null);return g=c.__decorate([u.subclass("esri.core.HandleOwner")],g)};a.HandleOwner=function(g){function k(){return g.apply(this,arguments)||this}b._inheritsLoose(k,g);return k}(h(e));a.HandleOwner=c.__decorate([u.subclass("esri.core.HandleOwner")],a.HandleOwner);a.HandleOwnerMixin=h;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/support/WatchUpdatingTracking":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../Accessor ../Handles ../maybe ../reactiveUtils ../scheduling ../accessorSupport/decorators/property ../accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g){a.WatchUpdatingTracking=function(k){function p(){var m=k.apply(this,arguments)||this;m.updating=!1;m._handleId=0;m._handles=new d;m._scheduleHandleId=0;m._pendingPromises=new Set;return m}b._inheritsLoose(p,k);var l=p.prototype;l.destroy=function(){this.removeAll();this._handles.destroy()};l.add=function(m,t,f={}){return this._installWatch(m,t,f,u.watch)};l.addWhen=function(m,t,f={}){return this._installWatch(m,t,f,u.when)};l.addOnCollectionChange=function(m,t,{initial:f=
!1,final:q=!1}={}){const v=++this._handleId;this._handles.add([u.on(m,"after-changes",this._createSyncUpdatingCallback(),u.sync),u.on(m,"change",t,{onListenerAdd:f?x=>t({added:x.toArray(),removed:[]}):void 0,onListenerRemove:q?x=>t({added:[],removed:x.toArray()}):void 0})],v);return{remove:()=>this._handles.remove(v)}};l.addPromise=function(m){if(n.isNone(m))return m;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(m)&&(0!==this._pendingPromises.size||this._handles.has(-42)||
this._set("updating",!1))}},t);this._pendingPromises.add(m);this._set("updating",!0);const f=()=>this._handles.remove(t);m.then(f,f);return m};l.removeAll=function(){this._pendingPromises.clear();this._handles.removeAll();this._set("updating",!1)};l._installWatch=function(m,t,f={},q){const v=++this._handleId;f.sync||this._installSyncUpdatingWatch(m,v);m=q(m,t,f);this._handles.add(m,v);return{remove:()=>this._handles.remove(v)}};l._installSyncUpdatingWatch=function(m,t){const f=this._createSyncUpdatingCallback();
m=u.watch(m,f,{sync:!0,equals:()=>!1});this._handles.add(m,t);return m};l._createSyncUpdatingCallback=function(){return()=>{this._handles.remove(-42);++this._scheduleHandleId;const m=this._scheduleHandleId;this._get("updating")||this._set("updating",!0);this._handles.add(r.schedule(()=>{m===this._scheduleHandleId&&(this._set("updating",0<this._pendingPromises.size),this._handles.remove(-42))}),-42)}};return p}(e);c.__decorate([h.property({readOnly:!0})],a.WatchUpdatingTracking.prototype,"updating",
void 0);a.WatchUpdatingTracking=c.__decorate([g.subclass("esri.core.support.WatchUpdatingTracking")],a.WatchUpdatingTracking);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/workers/workers":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../Error ../has ../promiseUtils ./Connection ./RemoteClient ./WorkerOwner".split(" "),function(a,b,c,e,d,n,u,r,h){function g(y){if(y&&y.__esModule)return y;const A=Object.create(null,
{[Symbol.toStringTag]:{value:"Module"}});if(y)for(const B in y)if("default"!==B){const E=Object.getOwnPropertyDescriptor(y,B);Object.defineProperty(A,B,E.get?E:{enumerable:!0,get:()=>y[B]})}A.default=y;return Object.freeze(A)}function k(y,A){return p.apply(this,arguments)}function p(){p=c._asyncToGenerator(function*(y,A){const B=new u;yield B.open(y,A);return B});return p.apply(this,arguments)}function l(){l=c._asyncToGenerator(function*(y,A={}){if("string"!==typeof y)throw new e("workers:undefined-module",
"modulePath is missing");var B=A.strategy||"distributed";d("host-webworker")&&!d("esri-workers")&&(B="local");if("local"===B){var E=yield r.loadWorker(y);E||(E=yield new Promise((w,D)=>a([y],C=>w(g(C)),D)));n.throwIfAborted(A.signal);B=A.client||E;E=r.connect(E);return k([E],{...A,client:B})}yield m();n.throwIfAborted(A.signal);if("dedicated"===B)return B=q++%f,B=yield v[B].open(y,A),k([B],A);if(A.maxNumWorkers&&0<A.maxNumWorkers&&(B=Math.min(A.maxNumWorkers,f),B<f)){E=Array(B);for(let w=0;w<B;++w){const D=
q++%f;E[w]=v[D].open(y,A)}return k(E,A)}B=v.map(w=>w.open(y,A));return k(B,A)});return l.apply(this,arguments)}function m(){return t.apply(this,arguments)}function t(){t=c._asyncToGenerator(function*(){if(x)return x;z=new AbortController;const y=[];for(let A=0;A<f;A++){const B=h.create(A).then(E=>v[A]=E);y.push(B)}return x=Promise.all(y)});return t.apply(this,arguments)}let f=d("esri-workers-debug")?1:d("esri-mobile")?Math.min(navigator.hardwareConcurrency-1,3):d("host-browser")?navigator.hardwareConcurrency-
1:0;f||(f=d("safari")&&d("mac")||d("trident")?7:2);let q=0;const v=[];let x=null,z;b.Connection=u;b.RemoteClient=r;b.initialize=function(){m()};b.open=function(y){return l.apply(this,arguments)};b.openWithPorts=function(y,A){return k(y,{client:A})};b.terminate=function(){x&&(z.abort(),x=null);for(let y=0;y<v.length;y++)v[y]&&v[y].terminate();v.length=0};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/workers/Connection":function(){define("../../chunks/_rollupPluginBabelHelpers ../handleUtils ../Logger ../promiseUtils ../Queue ./RemoteClient".split(" "),
function(a,b,c,e,d,n){return function(){function u(){this._inUseClients=[];this._clients=[];this._clientPromises=[];this._ongoingJobsQueue=new d}var r=u.prototype;r.destroy=function(){this.close()};r.open=function(h,g){return new Promise((k,p)=>{let l=!0;const m=t=>{e.throwIfAborted(g.signal);l&&(l=!1,t())};this._clients.length=h.length;this._clientPromises.length=h.length;this._inUseClients.length=h.length;for(let t=0;t<h.length;++t){const f=h[t];e.isPromiseLike(f)?this._clientPromises[t]=f.then(q=>
{this._clients[t]=new n(q,g,()=>this._ongoingJobsQueue.pop()??null);m(k);return this._clients[t]},()=>{m(p);return null}):(this._clients[t]=new n(f,g,()=>this._ongoingJobsQueue.pop()??null),this._clientPromises[t]=Promise.resolve(this._clients[t]),m(k))}})};r.broadcast=function(h,g,k){const p=Array(this._clientPromises.length);for(let l=0;l<this._clientPromises.length;++l)p[l]=this._clientPromises[l].then(m=>m?.invoke(h,g,k));return p};r.close=function(){let h;for(;h=this._ongoingJobsQueue.pop();)h.deferred.reject(e.createAbortError(`Worker closing, aborting job calling '${h.methodName}'`));
for(const g of this._clientPromises)g.then(k=>k?.close());this._clients.length=0;this._clientPromises.length=0};r.invoke=function(h,g,k){let p;Array.isArray(k)?(c.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),p={transferList:k}):p=k;k=e.createDeferred();this._ongoingJobsQueue.push({methodName:h,data:g,invokeOptions:p,deferred:k});for(h=0;h<this._clientPromises.length;h++)(g=this._clients[h])?g.jobAdded():this._clientPromises[h].then(l=>
l?.jobAdded());return k.promise};r.on=function(h,g){return Promise.all(this._clientPromises).then(()=>b.handlesGroup(this._clients.map(k=>k.on(h,g))))};r.openPorts=function(){return new Promise(h=>{const g=Array(this._clientPromises.length);let k=g.length;for(let p=0;p<this._clientPromises.length;++p)this._clientPromises[p].then(l=>{l&&(g[p]=l.openPort());0===--k&&h(g)})})};a._createClass(u,[{key:"closed",get:function(){return!this._clients||!this._clients.length}},{key:"test",get:function(){return{numClients:this._clients.length}}}]);
return u}()})},"esri/core/Queue":function(){define(["../chunks/_rollupPluginBabelHelpers","./maybe"],function(a,b){return function(){function c(d=n=>n.values().next().value){this._peeker=d;this._items=new Set}var e=c.prototype;e.clear=function(){this._items.clear()};e.last=function(){if(0!==this._items.size){for(var d of this._items);return d}};e.peek=function(){if(0!==this._items.size)return this._peeker(this._items)};e.push=function(d){this.contains(d)||this._items.add(d)};e.contains=function(d){return this._items.has(d)};
e.pop=function(){if(0!==this.length){var d=this.peek();this._items.delete(b.assumeNonNull(d));return d}};e.popLast=function(){if(0!==this.length){var d=this.last();this._items.delete(b.assumeNonNull(d));return d}};e.remove=function(d){this._items.delete(d)};e.filter=function(d){this._items.forEach(n=>{d(n)||this._items.delete(n)});return this};a._createClass(c,[{key:"length",get:function(){return this._items.size}}]);return c}()})},"esri/core/workers/RemoteClient":function(){define("require ../../kernel ../Error ../events ../maybe ../promiseUtils ./utils ../../support/revision".split(" "),
function(a,b,c,e,d,n,u,r){const h=x=>Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),g={statsWorker:()=>new Promise((x,z)=>a(["../../smartMapping/statistics/support/statsWorker"],x,z)),geometryEngineWorker:()=>new Promise((x,z)=>a(["../../geometry/geometryEngineWorker"],x,z)),CSVSourceWorker:()=>new Promise((x,z)=>a(["../../layers/graphics/sources/support/CSVSourceWorker"],y=>x(h(y)),z)),EdgeProcessingWorker:()=>new Promise((x,z)=>a(["../../views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker"],
y=>x(h(y)),z)),ElevationSamplerWorker:()=>new Promise((x,z)=>a(["../../geometry/support/meshUtils/ElevationSamplerWorker"],y=>x(h(y)),z)),FeatureServiceSnappingSourceWorker:()=>new Promise((x,z)=>a(["../../views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker"],y=>x(h(y)),z)),GeoJSONSourceWorker:()=>new Promise((x,z)=>a(["../../layers/graphics/sources/geojson/GeoJSONSourceWorker"],y=>x(h(y)),z)),LercWorker:()=>new Promise((x,z)=>a(["../../layers/support/LercWorker"],
y=>x(h(y)),z)),MemorySourceWorker:()=>new Promise((x,z)=>a(["../../layers/graphics/sources/support/MemorySourceWorker"],y=>x(h(y)),z)),PBFDecoderWorker:()=>new Promise((x,z)=>a(["../../views/3d/support/PBFDecoderWorker"],y=>x(h(y)),z)),Pipeline:()=>new Promise((x,z)=>a(["../../views/2d/layers/features/Pipeline"],y=>x(h(y)),z)),PointCloudWorker:()=>new Promise((x,z)=>a(["../../views/3d/layers/PointCloudWorker"],y=>x(h(y)),z)),RasterWorker:()=>new Promise((x,z)=>a(["../../layers/support/RasterWorker"],
y=>x(h(y)),z)),SceneLayerSnappingSourceWorker:()=>new Promise((x,z)=>a(["../../views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker"],y=>x(h(y)),z)),SceneLayerWorker:()=>new Promise((x,z)=>a(["../../views/3d/layers/SceneLayerWorker"],x,z)),WFSSourceWorker:()=>new Promise((x,z)=>a(["../../layers/graphics/sources/WFSSourceWorker"],y=>x(h(y)),z)),WorkerTileHandler:()=>new Promise((x,z)=>a(["../../views/2d/engine/vectorTiles/WorkerTileHandler"],y=>x(h(y)),z))},{CLOSE:k,
ABORT:p,INVOKE:l,RESPONSE:m,OPEN_PORT:t,ON:f}=u.MessageType;let q=function(){function x(y){this._timer=null;this._cancelledJobIds=new Set;this._invokeMessages=[];this._invoke=y;this._timer=null;this._process=this._process.bind(this)}var z=x.prototype;z.push=function(y){y.type===u.MessageType.ABORT?this._cancelledJobIds.add(y.jobId):(this._invokeMessages.push(y),null===this._timer&&(this._timer=setTimeout(this._process,0)))};z.clear=function(){this._invokeMessages.length=0;this._cancelledJobIds.clear();
this._timer=null};z._process=function(){this._timer=null;for(const y of this._invokeMessages)this._cancelledJobIds.has(y.jobId)||this._invoke(y);this._cancelledJobIds.clear();this._invokeMessages.length=0};return x}(),v=function(){function x(y,A,B){this._port=y;this._getNextJob=B;this._outJobs=new Map;this._inJobs=new Map;this._invokeQueue=new q(E=>this._onInvokeMessage(E));this._client=A.client;this._onMessage=this._onMessage.bind(this);this._channel=A.channel;this._schedule=A.schedule;this._port.addEventListener("message",
this._onMessage);this._port.start()}x.connect=function(y){const A=new MessageChannel;y="function"===typeof y?new y:"default"in y&&"function"===typeof y.default?new y.default:y;const B=new x(A.port1,{channel:A,client:y},()=>null);"object"===typeof y&&"remoteClient"in y&&(y.remoteClient=B);x.clients.set(B,y);return A.port2};x.loadWorker=function(y){return(y=g[y])?y():Promise.resolve(null)};var z=x.prototype;z.close=function(){this._post({type:k});this._close()};z.isBusy=function(){return 0<this._outJobs.size};
z.invoke=function(y,A,B){const E=B&&B.signal,w=B&&B.transferList;if(!this._port)return Promise.reject(new c("worker:port-closed",`Cannot call invoke('${y}'), port is closed`,{methodName:y,data:A}));const D=u.newJobId();return new Promise((C,F)=>{if(n.isAborted(E))this._processWork(),F(n.createAbortError());else{var G=n.onAbort(E,()=>{const H=this._outJobs.get(D);H&&(this._outJobs.delete(D),this._processWork(),d.removeMaybe(H.abortHandle),this._post({type:p,jobId:D}),F(n.createAbortError()))});this._outJobs.set(D,
{resolve:C,reject:F,abortHandle:G,debugInfo:y});this._post({type:l,jobId:D,methodName:y,abortable:null!=E},A,w)}})};z.on=function(y,A){function B(w){A(w.data)}const E=new MessageChannel;this._port.postMessage({type:u.MessageType.ON,eventType:y,port:E.port2},[E.port2]);E.port1.addEventListener("message",B);E.port1.start();return{remove(){E.port1.postMessage({type:u.MessageType.CLOSE});E.port1.close();E.port1.removeEventListener("message",B)}}};z.jobAdded=function(){this._processWork()};z.openPort=
function(){const y=new MessageChannel;this._post({type:t,port:y.port2});return y.port1};z._processWork=function(){if(!(2<=this._outJobs.size)){var y=this._getNextJob();if(y){var {methodName:A,data:B,invokeOptions:E,deferred:w}=y;this.invoke(A,B,E).then(D=>w.resolve(D)).catch(D=>w.reject(D))}}};z._close=function(){this._channel&&(this._channel=void 0);this._port.removeEventListener("message",this._onMessage);this._port.close();this._outJobs.forEach(y=>{d.removeMaybe(y.abortHandle);y.reject(n.createAbortError(`Worker closing, aborting job calling '${y.debugInfo}'`))});
this._inJobs.clear();this._outJobs.clear();this._invokeQueue.clear();this._port=this._client=this._schedule=null};z._onMessage=function(y){d.isSome(this._schedule)?this._schedule(()=>this._processMessage(y)):this._processMessage(y)};z._processMessage=function(y){if(y=u.receiveMessage(y))switch(y.type){case m:this._onResponseMessage(y);break;case l:this._invokeQueue.push(y);break;case p:this._onAbortMessage(y);break;case k:this._onCloseMessage();break;case t:this._onOpenPortMessage(y);break;case f:this._onOnMessage(y)}};
z._onAbortMessage=function(y){const A=this._inJobs,B=y.jobId,E=A.get(B);this._invokeQueue.push(y);E&&(E.controller&&E.controller.abort(),A.delete(B))};z._onCloseMessage=function(){const y=this._client;this._close();y&&"destroy"in y&&x.clients.get(this)===y&&y.destroy();x.clients.delete(this);y&&y.remoteClient&&(y.remoteClient=null)};z._onInvokeMessage=function(y){const {methodName:A,jobId:B,data:E,abortable:w}=y;y=w?new AbortController:null;const D=this._inJobs;let C=this._client,F=C[A],G;try{if(!F&&
A&&A.includes(".")){const H=A.split(".");for(let I=0;I<H.length-1;I++)C=C[H[I]],F=C[H[I+1]]}if("function"!==typeof F)throw new TypeError(`${A} is not a function`);G=F.call(C,E,{client:this,signal:y?y.signal:null})}catch(H){this._post({type:m,jobId:B,error:u.toInvokeError(H)});return}n.isPromiseLike(G)?(D.set(B,{controller:y,promise:G}),G.then(H=>{D.has(B)&&(D.delete(B),this._post({type:m,jobId:B},H))},H=>{D.has(B)&&(D.delete(B),n.isAbortError(H)||this._post({type:m,jobId:B,error:u.toInvokeError(H||
{message:`Error encountered at method ${A}`})}))})):this._post({type:m,jobId:B},G)};z._onOpenPortMessage=function(y){new x(y.port,{client:this._client},()=>null)};z._onOnMessage=function(y){const {port:A}=y,B=this._client.on(y.eventType,w=>{A.postMessage(w)}),E=e.on(y.port,"message",w=>{u.receiveMessage(w)?.type===u.MessageType.CLOSE&&(E.remove(),B.remove(),A.close())})};z._onResponseMessage=function(y){const {jobId:A,error:B,data:E}=y;y=this._outJobs;if(y.has(A)){var w=y.get(A);y.delete(A);this._processWork();
d.removeMaybe(w.abortHandle);B?w.reject(c.fromJSON(JSON.parse(B))):w.resolve(E)}};z._post=function(y,A,B){return u.postMessage(this._port,y,A,B)};return x}();v.kernelInfo={revision:r.commitHash,version:b.version,buildDate:r.buildDate};v.clients=new Map;return v})},"esri/core/workers/utils":function(){define(["exports","../has"],function(a,b){function c(r){return r&&"object"===typeof r&&("result"in r||"transferList"in r)}function e(r){return r?"string"===typeof r?JSON.stringify({name:"message",message:r}):
r.toJSON?JSON.stringify(r):JSON.stringify({name:r.name,message:r.message,details:r.details||{stack:r.stack}}):null}function d(r,h,g,k){if(h.type===a.MessageType.OPEN_PORT)r.postMessage(h,[h.port]);else if(h.type!==a.MessageType.INVOKE&&h.type!==a.MessageType.RESPONSE)r.postMessage(h);else if(c(g)?(k=n(g.transferList),h.data=g.result):(k=n(k),h.data=g),k){if(b("ff"))for(const p of k)if("byteLength"in p&&267386880<p.byteLength)switch(h.type){case a.MessageType.INVOKE:throw"Worker call with large ArrayBuffer would crash Firefox";
case a.MessageType.RESPONSE:d(r,{type:a.MessageType.RESPONSE,jobId:h.jobId,error:e("Worker call with large ArrayBuffer would crash Firefox")});return}r.postMessage(h,k)}else r.postMessage(h)}function n(r){if(!r||!r.length)return null;if(b("esri-workers-arraybuffer-transfer"))return r;r=r.filter(h=>!(h instanceof ArrayBuffer||h&&h.constructor&&"ArrayBuffer"===h.constructor.name));return r.length?r:null}a.MessageType=void 0;(function(r){r[r.HANDSHAKE=0]="HANDSHAKE";r[r.OPEN=1]="OPEN";r[r.OPENED=2]=
"OPENED";r[r.RESPONSE=3]="RESPONSE";r[r.INVOKE=4]="INVOKE";r[r.ABORT=5]="ABORT";r[r.CLOSE=6]="CLOSE";r[r.OPEN_PORT=7]="OPEN_PORT";r[r.ON=8]="ON"})(a.MessageType||(a.MessageType={}));let u=0;a.isTranferableResult=c;a.newJobId=function(){return u++};a.postMessage=d;a.receiveMessage=function(r){return r?(r=r.data)?"string"===typeof r?JSON.parse(r):r:null:null};a.toInvokeError=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/workers/WorkerOwner":function(){define("../../chunks/_rollupPluginBabelHelpers ../../kernel ../Error ../Logger ../maybe ../promiseUtils ./utils ./workerFactory".split(" "),
function(a,b,c,e,d,n,u,r){const {ABORT:h,INVOKE:g,OPEN:k,OPENED:p,RESPONSE:l}=u.MessageType;return function(){function m(f,q){this._outJobs=new Map;this._inJobs=new Map;this.worker=f;this.id=q;f.addEventListener("message",this._onMessage.bind(this));f.addEventListener("error",v=>{v.preventDefault();e.getLogger("esri.core.workers.WorkerOwner").error(v)})}m.create=function(){var f=a._asyncToGenerator(function*(q){const v=yield r.createWorker();return new m(v,q)});return function(q){return f.apply(this,
arguments)}}();var t=m.prototype;t.terminate=function(){this.worker.terminate()};t.open=function(){var f=a._asyncToGenerator(function*(q,v={}){const {signal:x}=v,z=u.newJobId();return new Promise((y,A)=>{const B=n.onAbortOrThrow(x,()=>{this._outJobs.delete(z);this._post({type:h,jobId:z})});this._outJobs.set(z,{resolve:y,reject:A,abortHandle:B});this._post({type:k,jobId:z,modulePath:q})})});return function(q){return f.apply(this,arguments)}}();t._onMessage=function(f){if(f=u.receiveMessage(f))switch(f.type){case p:this._onOpenedMessage(f);
break;case l:this._onResponseMessage(f);break;case h:this._onAbortMessage(f);break;case g:this._onInvokeMessage(f)}};t._onAbortMessage=function(f){const q=this._inJobs;f=f.jobId;const v=q.get(f);v&&(v.controller&&v.controller.abort(),q.delete(f))};t._onInvokeMessage=function(f){const {methodName:q,jobId:v,data:x,abortable:z}=f;f=z?new AbortController:null;const y=this._inJobs,A=b.workerMessages[q];let B;try{if("function"!==typeof A)throw new TypeError(`${q} is not a function`);B=A.call(null,x,{signal:f?
f.signal:null})}catch(E){this._post({type:l,jobId:v,error:u.toInvokeError(E)});return}n.isPromiseLike(B)?(y.set(v,{controller:f,promise:B}),B.then(E=>{y.has(v)&&(y.delete(v),this._post({type:l,jobId:v},E))},E=>{y.has(v)&&(y.delete(v),E||(E={message:"Error encountered at method"+q}),n.isAbortError(E)||this._post({type:l,jobId:v,error:u.toInvokeError(E||{message:`Error encountered at method ${q}`})}))})):this._post({type:l,jobId:v},B)};t._onOpenedMessage=function(f){const {jobId:q,data:v}=f;if(f=this._outJobs.get(q))this._outJobs.delete(q),
d.removeMaybe(f.abortHandle),f.resolve(v)};t._onResponseMessage=function(f){const {jobId:q,error:v,data:x}=f;if(f=this._outJobs.get(q))this._outJobs.delete(q),d.removeMaybe(f.abortHandle),v?f.reject(c.fromJSON(JSON.parse(v))):f.resolve(x)};t._post=function(f,q,v){return u.postMessage(this.worker,f,q,v)};return m}()})},"esri/core/workers/workerFactory":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../assets ../../config ../../intl ../../kernel ../has ../Logger ../urlUtils ./loaderConfig ./utils ./WorkerFallback ../../intl/locale ../../support/revision".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){function t(){t=b._asyncToGenerator(function*(){if(!u("esri-workers")||(u("mozilla"),0))return f(new p);if(!z&&!y)try{var B=["let globalId\x3d0;const outgoing\x3dnew Map,configuration\x3dJSON.parse(",');self.esriConfig\x3dconfiguration.esriConfig;const workerPath\x3dself.esriConfig.workers.workerPath,HANDSHAKE\x3d0,OPEN\x3d1,OPENED\x3d2,RESPONSE\x3d3,INVOKE\x3d4,ABORT\x3d5;function createAbortError(){const e\x3dnew Error("Aborted");return e.name\x3d"AbortError",e}function receiveMessage(e){return e\x26\x26e.data?"string"\x3d\x3dtypeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t\x3dr\x26\x26r.signal,n\x3dglobalId++;return new Promise(((r,i)\x3d\x3e{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()\x3d\x3e{outgoing.get(n)\x26\x26(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!\x3dt,data:o})}))}let workerRevisionChecked\x3d!1;function checkWorkerRevision(e){if(!workerRevisionChecked\x26\x26e.kernelInfo){workerRevisionChecked\x3d!0;const{revision:o,version:r}\x3dconfiguration.kernelInfo,{revision:t,version:n}\x3de.kernelInfo;esriConfig.assetsPath!\x3d\x3desriConfig.defaultAssetsPath\x26\x26o!\x3d\x3dt\x26\x26console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n}`)}}function messageHandler(e){const o\x3dreceiveMessage(e);if(!o)return;const r\x3do.jobId;switch(o.type){case 1:let n;function t(e){const o\x3dn.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"\x3d\x3dtypeof define\x26\x26define.amd?require([workerPath],(e\x3d\x3e{n\x3de.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e\x3d\x3ee||new Promise((e\x3d\x3e{require([o.modulePath],e)})))).then(t)})):"System"in self\x26\x26"function"\x3d\x3dtypeof System.import?System.import(workerPath).then((e\x3d\x3e(n\x3de.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e\x3d\x3ee||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e\x3d\x3e{n\x3de.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e\x3d\x3ee||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n\x3dself.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i\x3doutgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.resolve(o.data)}}}self.dojoConfig\x3dconfiguration.loaderConfig,esriConfig.workers.loaderUrl\x26\x26(self.importScripts(esriConfig.workers.loaderUrl),"function"\x3d\x3dtypeof require\x26\x26"function"\x3d\x3dtypeof require.config\x26\x26require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'],
E=B.join;let C;if(null!=e["default"]){const I={...e};delete I["default"];C=JSON.parse(JSON.stringify(I))}else C=JSON.parse(JSON.stringify(e));C.assetsPath=h.makeAbsolute(C.assetsPath);C.defaultAssetsPath=C.defaultAssetsPath?h.makeAbsolute(C.defaultAssetsPath):void 0;C.request.interceptors=[];C.log.interceptors=[];C.locale=l.getLocale();C.has={"esri-csp-restrictions":u("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":u("esri-2d-update-debug"),"featurelayer-pbf":u("featurelayer-pbf"),
"featurelayer-simplify-thresholds":u("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":u("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":u("featurelayer-simplify-mobile-factor"),"esri-atomics":u("esri-atomics"),"esri-shared-array-buffer":u("esri-shared-array-buffer"),"esri-tiles-debug":u("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":u("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":u("feature-polyline-generalization-factor"),
"host-webworker":1,"polylabel-placement-enabled":u("polylabel-placement-enabled")};C.workers.loaderUrl?C.workers.loaderUrl=h.makeAbsolute(C.workers.loaderUrl):g.DEFAULT_LOADER_URL&&(C.workers.loaderUrl=g.DEFAULT_LOADER_URL);C.workers.workerPath=C.workers.workerPath?h.makeAbsolute(C.workers.workerPath):"esri/core/workers/RemoteClient";C.workers.useDynamicImport=!1;const F=e.workers.loaderConfig,G=g.loaderConfig({baseUrl:F?.baseUrl,locale:l.getLocale(),has:{"csp-restrictions":1,"dojo-test-sniff":0,
"host-webworker":1,...F?.has},map:{...F?.map},paths:{...F?.paths},packages:F?.packages||[]});var w=JSON.stringify({esriConfig:C,loaderConfig:G,kernelInfo:{version:n.version,buildDate:m.buildDate,revision:m.commitHash}});const H=E.call(B,`'${w}'`);z=URL.createObjectURL(new Blob([H],{type:"text/javascript"}))}catch(C){y=C||{}}let D;if(z)try{D=new Worker(z,{name:`esri-worker-${A++}`})}catch(C){v.warn("Failed to create Worker. Fallback to execute module in main thread",y),D=new p}else v.warn("Failed to create Worker. Fallback to execute module in main thread",
y),D=new p;return f(D)});return t.apply(this,arguments)}function f(B){return q.apply(this,arguments)}function q(){q=b._asyncToGenerator(function*(B){return new Promise(E=>{function w(C){(C=k.receiveMessage(C))&&C.type===x&&(B.removeEventListener("message",w),B.removeEventListener("error",D),E(B))}function D(C){C.preventDefault();B.removeEventListener("message",w);B.removeEventListener("error",D);v.warn("Failed to create Worker. Fallback to execute module in main thread",C);B=new p;B.addEventListener("message",
w);B.addEventListener("error",D)}B.addEventListener("message",w);B.addEventListener("error",D)})});return q.apply(this,arguments)}const v=r.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:x}=k.MessageType;let z,y,A=0;a.createWorker=function(){return t.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl":function(){define("exports ./intl/date ./intl/number ./intl/substitute ./intl/locale ./intl/messages ./intl/t9n ./assets".split(" "),
function(a,b,c,e,d,n,u,r){n.registerMessageBundleLoader(u.createJSONLoader({pattern:"esri/",location:r.getAssetUrl}));a.convertDateFormatToIntlOptions=b.convertDateFormatToIntlOptions;a.formatDate=b.formatDate;a.convertNumberFormatToIntlOptions=c.convertNumberFormatToIntlOptions;a.formatNumber=c.formatNumber;a.substitute=e.substitute;a.getLocale=d.getLocale;a.onLocaleChange=d.onLocaleChange;a.prefersRTL=d.prefersRTL;a.setLocale=d.setLocale;a.fetchMessageBundle=n.fetchMessageBundle;a.normalizeMessageBundleLocale=
n.normalizeMessageBundleLocale;a.registerMessageBundleLoader=n.registerMessageBundleLoader;a.createJSONLoader=u.createJSONLoader;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl/substitute":function(){define("exports ../core/Logger ../core/object ../core/string ./date ./number".split(" "),function(a,b,c,e,d,n){function u(h){switch(typeof h){case "string":return h;case "number":return n.formatNumber(h);case "boolean":return""+h;default:return h instanceof
Date?d.formatDate(h):""}}const r=b.getLogger("esri.intl.substitute");a.substitute=function(h,g,k={}){const {format:p={}}=k;return e.replace(h,l=>{{const f=l.indexOf(":");if(-1===f)var m=l.trim();else{m=l.slice(0,f).trim();var t=l.slice(f+1).trim()}if(m)if(l=c.getDeepValue(m,g),null==l)t="";else if(m=(t?p?.[t]:null)??p?.[m])b:switch(m.type){case "date":t=d.formatDate(l,m.intlOptions);break b;case "number":t=n.formatNumber(l,m.intlOptions);break b;default:r.warn("missing format descriptor for key {key}"),
t=u(l)}else if(t)b:switch(t.toLowerCase()){case "dateformat":t=d.formatDate(l);break b;case "numberformat":t=n.formatNumber(l);break b;default:r.warn(`inline format is unsupported since 4.12: ${t}`),t=/^(dateformat|datestring)/i.test(t)?d.formatDate(l):/^numberformat/i.test(t)?n.formatNumber(l):u(l)}else t=u(l);else t=""}return t})};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/intl/t9n":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../request ../core/Error ../core/maybe ./messages".split(" "),
function(a,b,c,e,d,n){function u(l,m,t,f){return r.apply(this,arguments)}function r(){r=b._asyncToGenerator(function*(l,m,t,f){var q=m.exec(t);if(!q)throw new e("esri-intl:invalid-bundle",`Bundle id "${t}" is not compatible with the pattern "${m}"`);m=q[1]?`${q[1]}/`:"";q=q[2];const v=n.normalizeMessageBundleLocale(f);f=`${m}${q}.json`;m=v?`${m}${q}_${v}.json`:f;let x;try{x=yield h(l(m))}catch(z){if(m===f)throw new e("intl:unknown-bundle",`Bundle "${t}" cannot be loaded`,{error:z});try{x=yield h(l(f))}catch(y){throw new e("intl:unknown-bundle",
`Bundle "${t}" cannot be loaded`,{error:y});}}return x});return r.apply(this,arguments)}function h(l){return g.apply(this,arguments)}function g(){g=b._asyncToGenerator(function*(l){if(d.isSome(p.fetchBundleAsset))return p.fetchBundleAsset(l);l=yield c(l,{responseType:"text"});return JSON.parse(l.data)});return g.apply(this,arguments)}let k=function(){function l({base:m="",pattern:t,location:f=new URL(window.location.href)}){let q;q="string"===typeof f?v=>(new URL(v,new URL(f,window.location.href))).href:
f instanceof URL?v=>(new URL(v,f)).href:f;this.pattern="string"===typeof t?new RegExp(`^${t}`):t;this.getAssetUrl=q;m=m?m.endsWith("/")?m:m+"/":"";this.matcher=new RegExp(`^${m}(?:(.*)/)?(.*)$`)}l.prototype.fetchMessageBundle=function(m,t){return u(this.getAssetUrl,this.matcher,m,t)};return l}();const p={};a.JSONLoader=k;a.createJSONLoader=function(l){return new k(l)};a.test=p;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/workers/loaderConfig":function(){define(["exports",
"../../assets","../has","../urlUtils"],function(a,b,c,e){a.DEFAULT_LOADER_URL=null;a.DEFAULT_LOADER_URL=e.makeAbsolute("node_modules/dojo/dojo.js");var d=e.makeAbsolute(b.getAssetUrl("dojo/"));var n=[{name:"esri",location:"../esri"}];a.loaderConfig=function(u){const r={async:u.async,isDebug:u.isDebug,locale:u.locale,baseUrl:u.baseUrl,has:{...u.has},map:{...u.map},packages:u.packages&&u.packages.concat()||[],paths:{...u.paths}};u.hasOwnProperty("async")||(r.async=!0);u.hasOwnProperty("isDebug")||
(r.isDebug=!1);u.baseUrl||(r.baseUrl=d);n?.forEach(h=>{a:{var g=r.packages??[];for(const k of g)if(k.name===h.name)break a;g.push(h)}});return r};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/workers/WorkerFallback":function(){define(["require","../../chunks/_rollupPluginBabelHelpers","../nextTick","./RemoteClient","./utils"],function(a,b,c,e,d){function n(r){if(r&&r.__esModule)return r;const h=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});
if(r)for(const g in r)if("default"!==g){const k=Object.getOwnPropertyDescriptor(r,g);Object.defineProperty(h,g,k.get?k:{enumerable:!0,get:()=>r[g]})}h.default=r;return Object.freeze(h)}let u=function(){const r=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(h=>{this[h]=(...g)=>r[h](...g)})};return function(){function r(){this._dispatcher=new u;this._workerPostMessage({type:d.MessageType.HANDSHAKE})}var h=r.prototype;h.terminate=function(){};h.postMessage=
function(g){c.nextTick(()=>{this._workerMessageHandler(new MessageEvent("message",{data:g}))})};h.dispatchEvent=function(g){return this._dispatcher.dispatchEvent(g)};h.addEventListener=function(g,k,p){this._dispatcher.addEventListener(g,k,p)};h.removeEventListener=function(g,k,p){this._dispatcher.removeEventListener(g,k,p)};h._workerPostMessage=function(g){c.nextTick(()=>{this.dispatchEvent(new MessageEvent("message",{data:g}))})};h._workerMessageHandler=function(){var g=b._asyncToGenerator(function*(k){if((k=
d.receiveMessage(k))&&k.type===d.MessageType.OPEN){const {modulePath:p,jobId:l}=k;(k=yield e.loadWorker(p))||(k=yield new Promise((m,t)=>a([p],f=>m(n(f)),t)));k=e.connect(k);this._workerPostMessage({type:d.MessageType.OPENED,jobId:l,data:k})}});return function(k){return g.apply(this,arguments)}}();b._createClass(r,[{key:"onmessage",get:function(){return this._onmessageHandler},set:function(g){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler);(this._onmessageHandler=
g)&&this.addEventListener("message",g)}},{key:"onmessageerror",get:function(){return this._onmessageerrorHandler},set:function(g){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler);(this._onmessageerrorHandler=g)&&this.addEventListener("messageerror",g)}},{key:"onerror",get:function(){return this._onerrorHandler},set:function(g){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler);(this._onerrorHandler=g)&&this.addEventListener("error",
g)}}]);return r}()})},"esri/rest/query/operations/editsZScale":function(){define(["exports","../../../core/maybe","../../../core/unitUtils","../../../geometry/support/spatialReferenceUtils"],function(a,b,c,e){function d(u,r,h){if(null==u.hasM||u.hasZ)for(const g of r)for(const k of g)2<k.length&&(k[2]*=h)}function n(u,r,h){if(u)for(const p of u){u=p.geometry;var g=r,k=h;if(!b.isNone(u)&&u.spatialReference&&!e.equals(u.spatialReference,g)&&(g=c.getMetersPerVerticalUnitForSR(u.spatialReference)/k,1!==
g))if("x"in u)null!=u.z&&(u.z*=g);else if("rings"in u)d(u,u.rings,g);else if("paths"in u)d(u,u.paths,g);else if("points"in u&&(null==u.hasM||u.hasZ))for(const l of u.points)2<l.length&&(l[2]*=g)}}a.unapplyEditsZUnitScaling=function(u,r,h){if((u||r)&&h){var g=c.getMetersPerVerticalUnitForSR(h);n(u,h,g);n(r,h,g)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/operations/queryZScale":function(){define(["exports","../../../core/maybe","../../../geometry/support/zscale"],
function(a,b,c){a.applyFeatureSetZUnitScaling=function(e,d,n){if(n&&n.features&&n.hasZ&&(e=c.getGeometryZScaler(n.geometryType,d,e.outSpatialReference),!b.isNone(e)))for(const u of n.features)e(u.geometry)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/support/FeatureSet":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../Graphic ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/SpatialReference ../../geometry/support/jsonUtils ../../layers/support/Field".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f){var q;const v=new d.JSONMap({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});d=q=function(x){function z(A){A=x.call(this,A)||this;A.displayFieldName=null;A.exceededTransferLimit=!1;A.features=[];A.fields=null;A.geometryType=null;A.hasM=!1;A.hasZ=!1;A.queryGeometry=null;A.spatialReference=null;return A}a._inheritsLoose(z,x);var y=
z.prototype;y.readFeatures=function(A,B){B=m.fromJSON(B.spatialReference);const E=[];for(let C=0;C<A.length;C++){var w=A[C];const F=e.fromJSON(w);var D=w.geometry&&w.geometry.spatialReference;r.isSome(F.geometry)&&!D&&(F.geometry.spatialReference=B);w=w.aggregateGeometries;D=F.aggregateGeometries;if(w&&r.isSome(D))for(const G in D){const H=D[G],I=w[G]?.spatialReference;r.isSome(H)&&!I&&(H.spatialReference=B)}E.push(F)}return E};y.writeGeometryType=function(A,B,E,w){if(A)v.write(A,B,E,w);else if({features:A}=
this,A)for(const D of A)if(D&&r.isSome(D.geometry)){v.write(D.geometry.type,B,E,w);break}};y.readQueryGeometry=function(A,B){if(!A)return null;const E=!!A.spatialReference;(A=t.fromJSON(A))&&!E&&B.spatialReference&&(A.spatialReference=m.fromJSON(B.spatialReference));return A};y.writeSpatialReference=function(A,B){if(A)B.spatialReference=A.toJSON();else if({features:A}=this,A)for(const E of A)if(E&&r.isSome(E.geometry)&&E.geometry.spatialReference){B.spatialReference=E.geometry.spatialReference.toJSON();
break}};y.clone=function(){return new q(this.cloneProperties())};y.cloneProperties=function(){return u.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})};y.toJSON=function(A){const B=this.write();if(B.features&&Array.isArray(A)&&0<A.length)for(let E=0;E<
B.features.length;E++){const w=B.features[E];if(w.geometry){const D=A&&A[E];w.geometry=D&&D.toJSON()||w.geometry}}return B};y.quantize=function(A){const {scale:[B,E],translate:[w,D]}=A,C=this.features,F=this._getQuantizationFunction(this.geometryType,G=>Math.round((G-w)/B),G=>Math.round((D-G)/E));for(let G=0,H=C.length;G<H;G++)F?.(r.unwrap(C[G].geometry))||(C.splice(G,1),G--,H--);this.transform=A;return this};y.unquantize=function(){const {geometryType:A,features:B,transform:E}=this;if(!E)return this;
const {translate:[w,D],scale:[C,F]}=E,G=this._getHydrationFunction(A,H=>H*C+w,H=>D-H*F);for(const {geometry:H}of B)r.isSome(H)&&G&&G(H);this.transform=null;return this};y._quantizePoints=function(A,B,E){let w,D;const C=[];for(let G=0,H=A.length;G<H;G++){var F=A[G];if(0<G){const I=B(F[0]);F=E(F[1]);if(I!==w||F!==D)C.push([I-w,F-D]),w=I,D=F}else w=B(F[0]),D=E(F[1]),C.push([w,D])}return 0<C.length?C:null};y._getQuantizationFunction=function(A,B,E){return"point"===A?w=>{w.x=B(w.x);w.y=E(w.y);return w}:
"polyline"===A||"polygon"===A?w=>{const D=t.isPolygon(w)?w.rings:w.paths,C=[];for(let F=0,G=D.length;F<G;F++){const H=this._quantizePoints(D[F],B,E);H&&C.push(H)}return 0<C.length?(t.isPolygon(w)?w.rings=C:w.paths=C,w):null}:"multipoint"===A?w=>{const D=this._quantizePoints(w.points,B,E);return D&&0<D.length?(w.points=D,w):null}:"extent"===A?w=>w:null};y._getHydrationFunction=function(A,B,E){return"point"===A?w=>{w.x=B(w.x);w.y=E(w.y)}:"polyline"===A||"polygon"===A?w=>{w=t.isPolygon(w)?w.rings:w.paths;
let D,C;for(let F=0,G=w.length;F<G;F++){const H=w[F];for(let I=0,J=H.length;I<J;I++){const K=H[I];0<I?(D+=K[0],C+=K[1]):(D=K[0],C=K[1]);K[0]=B(D);K[1]=E(C)}}}:"extent"===A?w=>{w.xmin=B(w.xmin);w.ymin=E(w.ymin);w.xmax=B(w.xmax);w.ymax=E(w.ymax)}:"multipoint"===A?w=>{w=w.points;let D,C;for(let F=0,G=w.length;F<G;F++){const H=w[F];0<F?(D+=H[0],C+=H[1]):(D=H[0],C=H[1]);H[0]=B(D);H[1]=E(C)}}:null};return z}(n.JSONSupport);b.__decorate([h.property({type:String,json:{write:!0}})],d.prototype,"displayFieldName",
void 0);b.__decorate([h.property({type:Boolean,json:{write:{overridePolicy(x){return{enabled:x}}}}})],d.prototype,"exceededTransferLimit",void 0);b.__decorate([h.property({type:[e],json:{write:!0}})],d.prototype,"features",void 0);b.__decorate([k.reader("features")],d.prototype,"readFeatures",null);b.__decorate([h.property({type:[f],json:{write:!0}})],d.prototype,"fields",void 0);b.__decorate([h.property({type:"point multipoint polyline polygon extent mesh".split(" "),json:{read:{reader:v.read}}})],
d.prototype,"geometryType",void 0);b.__decorate([l.writer("geometryType")],d.prototype,"writeGeometryType",null);b.__decorate([h.property({type:Boolean,json:{write:{overridePolicy(x){return{enabled:x}}}}})],d.prototype,"hasM",void 0);b.__decorate([h.property({type:Boolean,json:{write:{overridePolicy(x){return{enabled:x}}}}})],d.prototype,"hasZ",void 0);b.__decorate([h.property({types:c.geometryTypes,json:{write:!0}})],d.prototype,"queryGeometry",void 0);b.__decorate([k.reader("queryGeometry")],d.prototype,
"readQueryGeometry",null);b.__decorate([h.property({type:m,json:{write:!0}})],d.prototype,"spatialReference",void 0);b.__decorate([l.writer("spatialReference")],d.prototype,"writeSpatialReference",null);b.__decorate([h.property({json:{write:!0}})],d.prototype,"transform",void 0);d=q=b.__decorate([p.subclass("esri.rest.support.FeatureSet")],d);d.prototype.toJSON.isDefaultToJSON=!0;return d})},"esri/layers/support/Field":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ./domains ./fieldType".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;const m=new c.JSONMap({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});c=l=function(t){function f(v){v=t.call(this,v)||this;
v.alias=null;v.defaultValue=void 0;v.description=null;v.domain=null;v.editable=!0;v.length=-1;v.name=null;v.nullable=!0;v.type=null;v.valueType=null;v.visible=!0;return v}a._inheritsLoose(f,t);var q=f.prototype;q.readDescription=function(v,{description:x}){v=null;try{v=x?JSON.parse(x):null}catch(z){}return v?.value??null};q.readValueType=function(v,{description:x}){v=null;try{v=x?JSON.parse(x):null}catch(z){}return v?m.fromJSON(v.fieldValueType):null};q.clone=function(){return new l({alias:this.alias,
defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})};return f}(e.JSONSupport);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"alias",void 0);b.__decorate([d.property({type:[String,Number],json:{write:{allowNull:!0}}})],c.prototype,"defaultValue",void 0);b.__decorate([d.property()],
c.prototype,"description",void 0);b.__decorate([h.reader("description")],c.prototype,"readDescription",null);b.__decorate([d.property({types:k.types,json:{read:{reader:k.fromJSON},write:!0}})],c.prototype,"domain",void 0);b.__decorate([d.property({type:Boolean,json:{write:!0}})],c.prototype,"editable",void 0);b.__decorate([d.property({type:u.Integer,json:{write:!0}})],c.prototype,"length",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([d.property({type:Boolean,
json:{write:!0}})],c.prototype,"nullable",void 0);b.__decorate([r.enumeration(p.kebabDict)],c.prototype,"type",void 0);b.__decorate([d.property()],c.prototype,"valueType",void 0);b.__decorate([h.reader("valueType",["description"])],c.prototype,"readValueType",null);b.__decorate([d.property({type:Boolean,json:{read:!1}})],c.prototype,"visible",void 0);return c=l=b.__decorate([g.subclass("esri.layers.support.Field")],c)})},"esri/layers/support/fieldType":function(){define(["exports","../../core/jsonMap"],
function(a,b){b=new b.JSONMap({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"});a.kebabDict=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/mixins/APIKeyMixin":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){a.APIKeyMixin=r=>{r=function(h){function g(){return h.apply(this,arguments)||this}b._inheritsLoose(g,h);b._createClass(g,[{key:"apiKey",get:function(){return this._isOverridden("apiKey")?this._get("apiKey"):
"portalItem"in this?this.portalItem?.apiKey:null},set:function(k){null!=k?this._override("apiKey",k):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}}]);return g}(r);c.__decorate([e.property({type:String})],r.prototype,"apiKey",null);return r=c.__decorate([u.subclass("esri.layers.mixins.APIKeyMixin")],r)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/ArcGISService":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Logger ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/arcgisLayerUrl".split(" "),
function(a,b,c,e,d,n,u,r,h,g){a.ArcGISService=k=>{k=function(p){function l(){return p.apply(this,arguments)||this}b._inheritsLoose(l,p);b._createClass(l,[{key:"title",get:function(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const m=g.parse(this.url);if(d.isSome(m)&&m.title)return m.title}return this._get("title")||""},set:function(m){this._set("title",m)}},{key:"url",set:function(m){this._set("url",g.sanitizeUrl(m,e.getLogger(this.declaredClass)))}}]);
return l}(k);c.__decorate([n.property()],k.prototype,"title",null);c.__decorate([n.property({type:String})],k.prototype,"url",null);return k=c.__decorate([h.subclass("esri.layers.mixins.ArcGISService")],k)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/BlendLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../effects/jsonUtils".split(" "),
function(a,b,c,e,d,n,u,r){const h={read:{reader:r.read},write:{allowNull:!0,writer:r.write}};a.BlendLayer=g=>{g=function(k){function p(){var l=k.apply(this,arguments)||this;l.blendMode="normal";l.effect=null;return l}b._inheritsLoose(p,k);return p}(g);c.__decorate([e.property({type:"average color-burn color-dodge color darken destination-atop destination-in destination-out destination-over difference exclusion hard-light hue invert lighten lighter luminosity minus multiply normal overlay plus reflect saturation screen soft-light source-atop source-in source-out vivid-light xor".split(" "),
nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],g.prototype,"blendMode",void 0);c.__decorate([e.property({json:{read:!1,write:!1,origins:{"web-map":h,"portal-item":h}}})],g.prototype,"effect",void 0);return g=c.__decorate([u.subclass("esri.layers.mixins.BlendLayer")],g)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/effects/jsonUtils":function(){define(["exports","../../core/Error",
"../../core/object","./parser","./utils"],function(a,b,c,e,d){function n(g){return(g=e.parse(g))?d.isEffectFunctions(g)?g.map(k=>k.toJSON()):g.map(({scale:k,effects:p})=>({scale:k,value:p.map(l=>l.toJSON())})):null}function u(g){if(!g||0===g.length)return null;var k=(k=g[0])?"scale"in k:!1;if(k){k=[];for(const p of g)k.push({scale:p.scale,value:r(p.value)});return k}return r(g)}function r(g){if(!g||!g.length)return"";const k=[];for(const t of g){g=[];switch(t.type){case "grayscale":case "sepia":case "saturate":case "invert":case "brightness":case "contrast":case "opacity":g=
[h(t,"amount")];break;case "blur":g=[h(t,"radius","pt")];break;case "hue-rotate":g=[h(t,"angle","deg")];break;case "drop-shadow":g=h(t,"xoffset","pt");var p=h(t,"yoffset","pt"),l=h(t,"blurRadius","pt"),m=t;if(null==m.color)throw new b("effect:missing-parameter",`Missing parameter '${"color"}' in ${m.type} effect`,{effect:m});m=m.color;g=[g,p,l,`rgba(${m[0]||0}, ${m[1]||0}, ${m[2]||0}, ${m[3]/255||0})`];break;case "bloom":g=[h(t,"strength"),h(t,"radius","pt"),h(t,"threshold")]}g=`${t.type}(${g.filter(Boolean).join(" ")})`;
e.parse(g);k.push(g)}return k.join(" ")}function h(g,k,p){if(null==g[k])throw new b("effect:missing-parameter",`Missing parameter '${k}' in ${g.type} effect`,{effect:g});return p?g[k]+p:""+g[k]}a.effectFunctionsFromJSON=r;a.fromJSON=u;a.read=function(g,k,p){try{return u(g)}catch(l){p?.messages?.push(l)}return null};a.toJSON=n;a.write=function(g,k,p,l){try{const m=n(g);c.setDeepValue(p,m,k)}catch(m){l.messages&&l.messages.push(m)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/effects/parser":function(){define("exports ../../colorUtils ../../core/Error ./effects ../../chunks/_commonjsHelpers ./utils".split(" "),function(a,b,c,e,d,n){function u(z){let y;if(!z)return[];try{y=t.exports.parse(z)}catch(A){throw new c("effect:invalid-syntax","Invalid effect syntax",{value:z,error:A});}return y.map(A=>r(A))}function r(z){try{switch(z.name){case "grayscale":case "sepia":case "saturate":case "invert":case "brightness":case "contrast":var y=1;h(z.parameters,1);1===z.parameters.length&&
(y=p(z.parameters[0]));return new e.ColorMatrixEffect(z.name,y);case "opacity":return y=1,h(z.parameters,1),1===z.parameters.length&&(y=p(z.parameters[0])),new e.OpacityEffect(y);case "hue-rotate":y=0;h(z.parameters,1);if(1===z.parameters.length){var A=z.parameters[0];if("quantity"!==A.type||!(0===A.value&&null===A.unit||A.unit&&null!=f[A.unit]))throw new c("effect:type-error",`Expected <angle>, Actual: ${g(A)}`,{term:A});y=A.value*f[A.unit]||0}return new e.HueRotateEffect(y);case "blur":return y=
0,h(z.parameters,1),1===z.parameters.length&&(y=l(z.parameters[0]),k(y,z.parameters[0])),new e.BlurEffect(y);case "drop-shadow":const C=[];let F=null;for(const G of z.parameters)if("color"===G.type){C.length&&Object.freeze(C);if(F)throw new c("effect:type-error","Accepts only one color",{});a:{A=void 0;var B=G;switch(B.colorType){case "hex":F=b.hex2rgba(B.value);break a;case "named":F=m(B.value);break a;case "function":y=B.value;h(y.parameters,4);if(v.test(y.name))A=[p(y.parameters[0]),p(y.parameters[1]),
p(y.parameters[2]),y.parameters[3]?p(y.parameters[3]):1];else if(x.test(y.name)){B=b;var E=B.hsla2rgba,w=y.parameters[0],D=w;if("quantity"!==D.type||null!==D.unit)throw new c("effect:type-error",`Expected <double>, Actual: ${g(D)}`,{term:D});k(w.value,w);A=E.call(B,w.value,p(y.parameters[1]),p(y.parameters[2]),y.parameters[3]?p(y.parameters[3]):1)}else throw new c("effect:syntax-error",`Invalid color function '${y.name}'`,{colorFunction:y});F=A;break a}F=void 0}}else{const H=l(G);if(Object.isFrozen(C))throw new c("effect:type-error",
"\x3clength\x3e parameters not consecutive",{lengths:C});C.push(H);3===C.length&&k(H,G)}if(2>C.length||3<C.length)throw new c("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${C.length}}`,{lengths:C});return new e.DropShadowEffect(C[0],C[1],C[2]||0,F||m("black"));case "bloom":return y=1,w=E=0,h(z.parameters,3),z.parameters[0]&&(y=p(z.parameters[0])),z.parameters[1]&&(E=l(z.parameters[1]),k(E,z.parameters[1])),z.parameters[2]&&(w=p(z.parameters[2])),new e.BloomEffect(y,E,w)}}catch(C){throw C.details.filter=
z,C;}throw new c("effect:unknown-effect",`Effect '${z.name}' is not supported`,{effect:z});}function h(z,y){if(z.length>y)throw new c("effect:type-error",`Function supports up to ${y} parameters, Actual: ${z.length}`,{parameters:z});}function g(z){if("color"===z.type)return"\x3ccolor\x3e";if(z.unit){if(q[z.unit])return"\x3clength\x3e";if(f[z.unit])return"\x3cangle\x3e";if("%"===z.unit)return"\x3cpercentage\x3e"}return"\x3cdouble\x3e"}function k(z,y){if(0>z)throw new c("effect:type-error",`Negative values are not allowed, Actual: ${z}`,
{term:y});}function p(z){if("quantity"!==z.type||null!==z.unit&&"%"!==z.unit)throw new c("effect:type-error",`Expected <double> or <percentage>, Actual: ${g(z)}`,{term:z});const y=z.value;k(y,z);return"%"===z.unit?.01*y:y}function l(z){if("quantity"!==z.type||!(0===z.value&&null===z.unit||z.unit&&null!=q[z.unit]))throw new c("effect:type-error",`Expected <length>, Actual: ${g(z)}`,{term:z});return z.value*q[z.unit]||0}function m(z){if(!b.isNamedColor(z))throw new c("effect:unknown-color",`color '${z}' isn't valid`,
{namedColor:z});return b.getNamedColorCopy(z)}var t={exports:{}};(function(z){(function(y,A){z.exports&&(z.exports=A())})(d.commonjsGlobal,function(){function y(B,E,w,D){B=Error.call(this,B);Object.setPrototypeOf&&Object.setPrototypeOf(B,y.prototype);B.expected=E;B.found=w;B.location=D;B.name="SyntaxError";return B}function A(B,E,w){w=w||" ";if(B.length>E)return B;E-=B.length;w+=w.repeat(E);return B+w.slice(0,E)}(function(B,E){function w(){this.constructor=B}w.prototype=E.prototype;B.prototype=new w})(y,
Error);y.prototype.format=function(B){var E="Error: "+this.message;if(this.location){var w=null,D;for(D=0;D<B.length;D++)if(B[D].source===this.location.source){w=B[D].text.split(/\r\n|\n|\r/g);break}B=this.location.start;D=this.location.source+":"+B.line+":"+B.column;if(w){var C=this.location.end,F=A("",B.line.toString().length," ");w=w[B.line-1];C=(B.line===C.line?C.column:w.length+1)-B.column||1;E+="\n --\x3e "+D+"\n"+F+" |\n"+B.line+" | "+w+"\n"+F+" | "+A("",B.column-1," ")+A("",C,"^")}else E+=
"\n at "+D}return E};y.buildMessage=function(B,E){function w(H){return H.charCodeAt(0).toString(16).toUpperCase()}function D(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(I){return"\\x0"+w(I)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(I){return"\\x"+w(I)})}function C(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,
"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(I){return"\\x0"+w(I)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(I){return"\\x"+w(I)})}function F(H){return G[H.type](H)}var G={literal:function(H){return'"'+D(H.text)+'"'},class:function(H){var I=H.parts.map(function(J){return Array.isArray(J)?C(J[0])+"-"+C(J[1]):C(J)});return"["+(H.inverted?"^":"")+I.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};
return"Expected "+function(H){H=H.map(F);var I,J;H.sort();if(0<H.length){for(J=I=1;I<H.length;I++)H[I-1]!==H[I]&&(H[J]=H[I],J++);H.length=J}switch(H.length){case 1:return H[0];case 2:return H[0]+" or "+H[1];default:return H.slice(0,-1).join(", ")+", or "+H[H.length-1]}}(B)+" but "+(E?'"'+D(E)+'"':"end of input")+" found."};return{SyntaxError:y,parse:function(B,E){function w(Ia,xa){return{type:"literal",text:Ia,ignoreCase:xa}}function D(Ia,xa,Ga){return{type:"class",parts:Ia,inverted:xa,ignoreCase:Ga}}
function C(Ia){return{type:"other",description:Ia}}function F(Ia){var xa=na[Ia],Ga;if(!xa){for(Ga=Ia-1;!na[Ga];)Ga--;xa=na[Ga];for(xa={line:xa.line,column:xa.column};Ga<Ia;)10===B.charCodeAt(Ga)?(xa.line++,xa.column=1):xa.column++,Ga++;na[Ia]=xa}return xa}function G(Ia,xa){var Ga=F(Ia),Ma=F(xa);return{source:V,start:{offset:Ia,line:Ga.line,column:Ga.column},end:{offset:xa,line:Ma.line,column:Ma.column}}}function H(Ia){Ca<va||(Ca>va&&(va=Ca,qa=[]),qa.push(Ia))}function I(){za++;var Ia=Ca;N();if(B.substr(Ca,
4)===ta){var xa=ta;Ca+=4}else xa=P,0===za&&H(Da);xa!==P?(N(),Qa=Ia,Ia=[]):(Ca=Ia,Ia=P);za--;Ia===P&&0===za&&H(oa);if(Ia===P)if(Ia=[],xa=J(),xa!==P)for(;xa!==P;)Ia.push(xa),xa=J();else Ia=P;return Ia}function J(){var Ia=Ca;N();za++;var xa=Ca;var Ga=U();if(Ga!==P){if(40===B.charCodeAt(Ca)){var Ma=da;Ca++}else Ma=P,0===za&&H(Va);Ma!==P?(Qa=xa,xa=Ga):(Ca=xa,xa=P)}else Ca=xa,xa=P;za--;xa===P&&(Ga=P,0===za&&H(Ta));if(xa!==P){N();Ga=Ca;Ma=K();if(Ma!==P){var bb=[];var ab=Ca;var gb=N();if(44===B.charCodeAt(Ca)){var jb=
Ha;Ca++}else jb=P,0===za&&H(Ja);jb===P&&(jb=null);var kb=N();var lb=K();lb!==P?ab=gb=[gb,jb,kb,lb]:(Ca=ab,ab=P);for(;ab!==P;)bb.push(ab),ab=Ca,gb=N(),44===B.charCodeAt(Ca)?(jb=Ha,Ca++):(jb=P,0===za&&H(Ja)),jb===P&&(jb=null),kb=N(),lb=K(),lb!==P?ab=gb=[gb,jb,kb,lb]:(Ca=ab,ab=P);Qa=Ga;Ga=0<bb.length?[Ma].concat(ka(bb,3)):[Ma]}else Ca=Ga,Ga=P;Ga===P&&(Ga=null);N();41===B.charCodeAt(Ca)?(Ma=Ba,Ca++):(Ma=P,0===za&&H(Ea));Ma!==P?(N(),Qa=Ia,Ia={type:"function",name:xa,parameters:Ga||[]}):(Ca=Ia,Ia=P)}else Ca=
Ia,Ia=P;return Ia}function K(){var Ia=Ca;za++;var xa=Ca;N();var Ga=ba();if(Ga!==P){if(37===B.charCodeAt(Ca)){var Ma=la;Ca++}else Ma=P,0===za&&H(cb);Ma!==P?(Qa=xa,xa={value:Ga,unit:"%"}):(Ca=xa,xa=P)}else Ca=xa,xa=P;za--;xa===P&&0===za&&H($a);xa===P&&(za++,xa=Ca,N(),Ga=ba(),Ga!==P?(B.substr(Ca,2)===sa?(Ma=sa,Ca+=2):(Ma=P,0===za&&H(eb)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"px"}):(Ca=xa,xa=P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,N(),Ga=ba(),Ga!==P?(B.substr(Ca,2)===L?(Ma=L,Ca+=2):(Ma=P,0===za&&H(Oa)),Ma!==P?(Qa=
xa,xa={value:Ga,unit:"cm"}):(Ca=xa,xa=P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,N(),Ga=ba(),Ga!==P?(B.substr(Ca,2)===O?(Ma=O,Ca+=2):(Ma=P,0===za&&H(T)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"mm"}):(Ca=xa,xa=P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,N(),Ga=ba(),Ga!==P?(B.substr(Ca,2)===ha?(Ma=ha,Ca+=2):(Ma=P,0===za&&H(W)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"in"}):(Ca=xa,xa=P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,N(),Ga=ba(),Ga!==P?(B.substr(Ca,2)===pa?(Ma=pa,Ca+=2):(Ma=P,0===za&&H(wa)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"pt"}):(Ca=xa,xa=
P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,N(),Ga=ba(),Ga!==P?(B.substr(Ca,2)===ya?(Ma=ya,Ca+=2):(Ma=P,0===za&&H(Aa)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"pc"}):(Ca=xa,xa=P)):(Ca=xa,xa=P)))))),za--,xa===P&&0===za&&H(Wa),xa===P&&(za++,xa=Ca,Ga=ba(),Ga!==P?(B.substr(Ca,3)===Y?(Ma=Y,Ca+=3):(Ma=P,0===za&&H(Pa)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"deg"}):(Ca=xa,xa=P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,Ga=ba(),Ga!==P?(B.substr(Ca,3)===ea?(Ma=ea,Ca+=3):(Ma=P,0===za&&H(Ra)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"rad"}):(Ca=xa,xa=P)):
(Ca=xa,xa=P),xa===P&&(xa=Ca,Ga=ba(),Ga!==P?(B.substr(Ca,4)===ma?(Ma=ma,Ca+=4):(Ma=P,0===za&&H(Ua)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"grad"}):(Ca=xa,xa=P)):(Ca=xa,xa=P),xa===P&&(xa=Ca,Ga=ba(),Ga!==P?(B.substr(Ca,4)===ja?(Ma=ja,Ca+=4):(Ma=P,0===za&&H(Ya)),Ma!==P?(Qa=xa,xa={value:Ga,unit:"turn"}):(Ca=xa,xa=P)):(Ca=xa,xa=P)))),za--,xa===P&&(Ga=P,0===za&&H(ia)),xa===P&&(za++,xa=Ca,N(),Ga=ba(),Ga!==P?(Qa=xa,xa={value:Ga,unit:null}):(Ca=xa,xa=P),za--,xa===P&&0===za&&H(db))));xa!==P&&(Qa=Ia,xa={type:"quantity",
value:xa.value,unit:xa.unit});Ia=xa;if(Ia===P){Ia=Ca;za++;xa=Ca;35===B.charCodeAt(Ca)?(Ga=S,Ca++):(Ga=P,0===za&&H(ib));if(Ga!==P){Ga=[];X.test(B.charAt(Ca))?(Ma=B.charAt(Ca),Ca++):(Ma=P,0===za&&H(hb));if(Ma!==P)for(;Ma!==P;)Ga.push(Ma),X.test(B.charAt(Ca))?(Ma=B.charAt(Ca),Ca++):(Ma=P,0===za&&H(hb));else Ga=P;Ga!==P?(Qa=xa,xa={type:"hex",value:B.substring(Qa,Ca)}):(Ca=xa,xa=P)}else Ca=xa,xa=P;xa===P&&(xa=Ca,Ga=J(),Ga!==P&&(Qa=xa,Ga={type:"function",value:Ga}),xa=Ga,xa===P&&(xa=Ca,Ga=U(),Ga!==P&&(Qa=
xa,Ga={type:"named",value:B.substring(Qa,Ca)}),xa=Ga));za--;xa===P&&(Ga=P,0===za&&H(fb));xa!==P&&(Qa=Ia,xa={type:"color",colorType:xa.type,value:xa.value});Ia=xa}return Ia}function N(){za++;var Ia=[];if(Q.test(B.charAt(Ca))){var xa=B.charAt(Ca);Ca++}else xa=P,0===za&&H(Sa);for(;xa!==P;)Ia.push(xa),Q.test(B.charAt(Ca))?(xa=B.charAt(Ca),Ca++):(xa=P,0===za&&H(Sa));za--;xa=P;0===za&&H(Ka);return Ia}function U(){za++;var Ia=Ca;var xa=[];if(Z.test(B.charAt(Ca))){var Ga=B.charAt(Ca);Ca++}else Ga=P,0===za&&
H(Za);if(Ga!==P)for(;Ga!==P;)xa.push(Ga),Z.test(B.charAt(Ca))?(Ga=B.charAt(Ca),Ca++):(Ga=P,0===za&&H(Za));else xa=P;xa!==P&&(Qa=Ia,xa=B.substring(Qa,Ca));Ia=xa;za--;Ia===P&&(xa=P,0===za&&H(Xa));return Ia}function ba(){var Ia=Ca;M.test(B.charAt(Ca))?(B.charAt(Ca),Ca++):0===za&&H(ua);var xa=Ca;var Ga=[];if(aa.test(B.charAt(Ca))){var Ma=B.charAt(Ca);Ca++}else Ma=P,0===za&&H(Fa);for(;Ma!==P;)Ga.push(Ma),aa.test(B.charAt(Ca))?(Ma=B.charAt(Ca),Ca++):(Ma=P,0===za&&H(Fa));46===B.charCodeAt(Ca)?(Ma=fa,Ca++):
(Ma=P,0===za&&H(La));if(Ma!==P){var bb=[];if(aa.test(B.charAt(Ca))){var ab=B.charAt(Ca);Ca++}else ab=P,0===za&&H(Fa);if(ab!==P)for(;ab!==P;)bb.push(ab),aa.test(B.charAt(Ca))?(ab=B.charAt(Ca),Ca++):(ab=P,0===za&&H(Fa));else bb=P;bb!==P?xa=Ga=[Ga,Ma,bb]:(Ca=xa,xa=P)}else Ca=xa,xa=P;if(xa===P)if(xa=[],aa.test(B.charAt(Ca))?(Ga=B.charAt(Ca),Ca++):(Ga=P,0===za&&H(Fa)),Ga!==P)for(;Ga!==P;)xa.push(Ga),aa.test(B.charAt(Ca))?(Ga=B.charAt(Ca),Ca++):(Ga=P,0===za&&H(Fa));else xa=P;if(xa!==P){Ga=Ca;101===B.charCodeAt(Ca)?
(Ma=R,Ca++):(Ma=P,0===za&&H(Na));if(Ma!==P){M.test(B.charAt(Ca))?(bb=B.charAt(Ca),Ca++):(bb=P,0===za&&H(ua));bb===P&&(bb=null);ab=[];aa.test(B.charAt(Ca))?(xa=B.charAt(Ca),Ca++):(xa=P,0===za&&H(Fa));if(xa!==P)for(;xa!==P;)ab.push(xa),aa.test(B.charAt(Ca))?(xa=B.charAt(Ca),Ca++):(xa=P,0===za&&H(Fa));else ab=P;ab!==P?Ga=Ma=[Ma,bb,ab]:(Ca=Ga,Ga=P)}else Ca=Ga,Ga=P;Ga===P&&(Ga=null);Qa=Ia;Ia=parseFloat(B.substring(Qa,Ca))}else Ca=Ia,Ia=P;return Ia}function ka(Ia,xa){return Ia.map(function(Ga){return Ga[xa]})}
E=void 0!==E?E:{};var P={},V=E.grammarSource,ca={start:I},ra=I,ta="none",Ba=")",Ha=",",da="(",la="%",sa="px",L="cm",O="mm",ha="in",pa="pt",ya="pc",Y="deg",ea="rad",ma="grad",ja="turn",S="#",fa=".",R="e",Q=/^[ \t\n\r]/,Z=/^[a-z\-]/,X=/^[0-9a-fA-F]/,M=/^[+\-]/,aa=/^[0-9]/,oa=C("none"),Da=w("none",!1),Ea=w(")",!1),Ja=w(",",!1),Ka=C("whitespace"),Sa=D([" ","\t","\n","\r"],!1,!1),Ta=C("function"),Va=w("(",!1),Xa=C("identifier"),Za=D([["a","z"],"-"],!1,!1),$a=C("percentage"),cb=w("%",!1),Wa=C("length"),
eb=w("px",!1),Oa=w("cm",!1),T=w("mm",!1),W=w("in",!1),wa=w("pt",!1),Aa=w("pc",!1),ia=C("angle"),Pa=w("deg",!1),Ra=w("rad",!1),Ua=w("grad",!1),Ya=w("turn",!1),db=C("number"),fb=C("color"),ib=w("#",!1),hb=D([["0","9"],["a","f"],["A","F"]],!1,!1),ua=D(["+","-"],!1,!1),Fa=D([["0","9"]],!1,!1),La=w(".",!1),Na=w("e",!1),Ca=0,Qa=0,na=[{line:1,column:1}],va=0,qa=[],za=0;if("startRule"in E){if(!(E.startRule in ca))throw Error("Can't start parsing from rule \""+E.startRule+'".');ra=ca[E.startRule]}E=ra();if(E!==
P&&Ca===B.length)return E;E!==P&&Ca<B.length&&H({type:"end"});throw function(Ia,xa,Ga){return new y(y.buildMessage(Ia,xa),Ia,xa,Ga)}(qa,va<B.length?B.charAt(va):null,va<B.length?G(va,va+1):G(va,va));}}})})(t);const f={deg:1,grad:.9,rad:180/Math.PI,turn:360},q={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72},v=/^rgba?/i,x=/^hsla?/i;a.parse=function(z){if(!z||0===z.length)return null;if("string"===typeof z)return(z=u(z))&&0!==z.length?z:null;z=z.map(y=>{if(!Number.isFinite(y.scale)||0>=y.scale)throw new c("effect:invalid-scale",
"scale must be finite and greater than 0",{stop:y});return{scale:y.scale,effects:u(y.value)}});z.sort((y,A)=>A.effects.length-y.effects.length);for(let y=0;y<z.length-1;y++){if(!n.canInterpolateEffects(z[y].effects,z[y+1].effects))throw new c("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:z[y].effects,b:z[y+1].effects});n.normalizeEffects(z[y].effects,z[y+1].effects)}z.sort((y,A)=>A.scale-y.scale);return z};Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/effects/effects":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../colorUtils ../../core/screenUtils ../../chunks/mat4f32 ./colorMatrixFunctions".split(" "),function(a,b,c,e,d,n){function u(t,f,q){return t+(f-t)*q}function r(t){return Math.round(1E3*e.px2pt(t))/1E3}let h=function(){function t(q,v,x){this.strength=q;this.radius=v;this.threshold=x;this.type="bloom"}var f=t.prototype;f.interpolate=function(q,v,x){this.strength=
u(q.strength,v.strength,x);this.radius=u(q.radius,v.radius,x);this.threshold=u(q.threshold,v.threshold,x)};f.clone=function(){return new t(this.strength,this.radius,this.threshold)};f.toJSON=function(){return{type:"bloom",radius:r(this.radius),strength:this.strength,threshold:this.threshold}};return t}(),g=function(){function t(q){this.radius=q;this.type="blur"}var f=t.prototype;f.interpolate=function(q,v,x){this.radius=Math.round(u(q.radius,v.radius,x))};f.clone=function(){return new t(this.radius)};
f.toJSON=function(){return{type:"blur",radius:r(this.radius)}};return t}(),k=function(){function t(q,v){this.type=q;this.amount=v;if("invert"===this.type||"grayscale"===this.type||"sepia"===this.type)this.amount=Math.min(this.amount,1)}var f=t.prototype;f.interpolate=function(q,v,x){this.amount=u(q.amount,v.amount,x);this._updateMatrix()};f.clone=function(){return new t(this.type,this.amount)};f.toJSON=function(){return{type:this.type,amount:this.amount}};f._updateMatrix=function(){const q=this._colorMatrix||
d.create();switch(this.type){case "brightness":this._colorMatrix=n.brightness(q,this.amount);break;case "contrast":this._colorMatrix=n.contrast(q,this.amount);break;case "grayscale":this._colorMatrix=n.grayscale(q,this.amount);break;case "invert":this._colorMatrix=n.invert(q,this.amount);break;case "saturate":this._colorMatrix=n.saturate(q,this.amount);break;case "sepia":this._colorMatrix=n.sepia(q,this.amount)}};b._createClass(t,[{key:"colorMatrix",get:function(){this._colorMatrix||this._updateMatrix();
return this._colorMatrix}}]);return t}(),p=function(){function t(q,v,x,z){this.offsetX=q;this.offsetY=v;this.blurRadius=x;this.color=z;this.type="drop-shadow"}var f=t.prototype;f.interpolate=function(q,v,x){this.offsetX=u(q.offsetX,v.offsetX,x);this.offsetY=u(q.offsetY,v.offsetY,x);this.blurRadius=u(q.blurRadius,v.blurRadius,x);this.color[0]=Math.round(u(q.color[0],v.color[0],x));this.color[1]=Math.round(u(q.color[1],v.color[1],x));this.color[2]=Math.round(u(q.color[2],v.color[2],x));this.color[3]=
u(q.color[3],v.color[3],x)};f.clone=function(){return new t(this.offsetX,this.offsetY,this.blurRadius,[...this.color])};f.toJSON=function(){const q=[...this.color];q[3]*=255;return{type:"drop-shadow",xoffset:r(this.offsetX),yoffset:r(this.offsetY),blurRadius:r(this.blurRadius),color:q}};return t}(),l=function(){function t(q){this.angle=q;this.type="hue-rotate"}var f=t.prototype;f.interpolate=function(q,v,x){this.angle=u(q.angle,v.angle,x);this._updateMatrix()};f.clone=function(){return new t(this.angle)};
f.toJSON=function(){return{type:"hue-rotate",angle:this.angle}};f._updateMatrix=function(){const q=this._colorMatrix||d.create();this._colorMatrix=n.rotateHue(q,this.angle)};b._createClass(t,[{key:"colorMatrix",get:function(){this._colorMatrix||this._updateMatrix();return this._colorMatrix}}]);return t}(),m=function(){function t(q){this.amount=q;this.type="opacity";this.amount=Math.min(this.amount,1)}var f=t.prototype;f.interpolate=function(q,v,x){this.amount=u(q.amount,v.amount,x)};f.clone=function(){return new t(this.amount)};
f.toJSON=function(){return{type:"opacity",amount:this.amount}};return t}();a.BloomEffect=h;a.BlurEffect=g;a.ColorMatrixEffect=k;a.DropShadowEffect=p;a.HueRotateEffect=l;a.OpacityEffect=m;a.createEffectWithInitialValues=function(t){switch(t.type){case "grayscale":case "sepia":case "invert":return new k(t.type,0);case "saturate":case "brightness":case "contrast":return new k(t.type,1);case "opacity":return new m(1);case "hue-rotate":return new l(0);case "blur":return new g(0);case "drop-shadow":return new p(0,
0,0,[...c.getNamedColor("transparent")]);case "bloom":return new h(0,0,1)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/mat4f32":function(){define(["exports"],function(a){function b(){const r=new Float32Array(16);r[0]=1;r[5]=1;r[10]=1;r[15]=1;return r}function c(r){const h=new Float32Array(16);h[0]=r[0];h[1]=r[1];h[2]=r[2];h[3]=r[3];h[4]=r[4];h[5]=r[5];h[6]=r[6];h[7]=r[7];h[8]=r[8];h[9]=r[9];h[10]=r[10];h[11]=r[11];h[12]=r[12];h[13]=r[13];
h[14]=r[14];h[15]=r[15];return h}function e(r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B){const E=new Float32Array(16);E[0]=r;E[1]=h;E[2]=g;E[3]=k;E[4]=p;E[5]=l;E[6]=m;E[7]=t;E[8]=f;E[9]=q;E[10]=v;E[11]=x;E[12]=z;E[13]=y;E[14]=A;E[15]=B;return E}function d(r,h){return new Float32Array(r,h,16)}const n=b(),u=Object.freeze(Object.defineProperty({__proto__:null,create:b,clone:c,fromValues:e,createView:d,IDENTITY:n},Symbol.toStringTag,{value:"Module"}));a.IDENTITY=n;a.clone=c;a.create=b;a.createView=d;a.fromValues=
e;a.mat4f32=u})},"esri/layers/effects/colorMatrixFunctions":function(){define(["exports","../../chunks/mat4"],function(a,b){a.brightness=(c,e)=>{c=b.set(c,e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1);return b.transpose(c,c)};a.contrast=(c,e)=>{c=b.set(c,e,0,0,.5-.5*e,0,e,0,.5-.5*e,0,0,e,.5-.5*e,0,0,0,1);return b.transpose(c,c)};a.grayscale=(c,e)=>{e=1-e;c=b.set(c,.2126+.7874*e,.7152-.7152*e,.0722-.0722*e,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,1);return b.transpose(c,
c)};a.invert=(c,e)=>{const d=1-2*e;c=b.set(c,d,0,0,e,0,d,0,e,0,0,d,e,0,0,0,1);return b.transpose(c,c)};a.rotateHue=(c,e)=>{const d=Math.sin(e*Math.PI/180);e=Math.cos(e*Math.PI/180);c=b.set(c,.213+.787*e-.213*d,.715-.715*e-.715*d,.072-.072*e+.928*d,0,.213-.213*e+.143*d,.715+.285*e+.14*d,.072-.072*e-.283*d,0,.213-.213*e-.787*d,.715-.715*e+.715*d,.072+.928*e+.072*d,0,0,0,0,1);return b.transpose(c,c)};a.saturate=(c,e)=>{c=b.set(c,.213+.787*e,.715-.715*e,.072-.072*e,0,.213-.213*e,.715+.285*e,.072-.072*
e,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,1);return b.transpose(c,c)};a.sepia=(c,e)=>{e=1-e;c=b.set(c,.393+.607*e,.769-.769*e,.189-.189*e,0,.349-.349*e,.686+.314*e,.168-.168*e,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,1);return b.transpose(c,c)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/_commonjsHelpers":function(){define(["exports"],function(a){a.commonjsGlobal="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?
window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};a.commonjsRequire=function(b){throw Error('Could not dynamically require "'+b+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');};a.getDefaultExportFromCjs=function(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b["default"]:b}})},"esri/layers/effects/utils":function(){define(["exports",
"./effects"],function(a,b){a.canInterpolateEffects=function(c,e){const d=c.length>e.length?c:e;return(c.length>e.length?e:c).every((n,u)=>n.type===d[u].type)};a.isEffectFunctions=function(c){return(c=c[0])?"type"in c:!1};a.normalizeEffects=function(c,e){const d=c.length>e.length?c:e;c=c.length>e.length?e:c;for(e=c.length;e<d.length;e++)c.push(b.createEffectWithInitialValues(d[e]))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/CustomParametersMixin":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){a.CustomParametersMixin=r=>{r=function(h){function g(){var k=h.apply(this,arguments)||this;k.customParameters=null;return k}b._inheritsLoose(g,h);return g}(r);c.__decorate([e.property({type:Object,json:{write:{overridePolicy(h){return{enabled:!!(h&&0<Object.keys(h).length)}}}}})],r.prototype,"customParameters",void 0);return r=c.__decorate([u.subclass("esri.layers.mixins.CustomParametersMixin")],r)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/mixins/EditBusLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Evented ../../core/lang ../../core/Logger ../../core/accessorSupport/ensureType ../../core/Error ../../core/has ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h,g){const k=new e.EventEmitter,p=Symbol("esri.layers.mixins.EditBusLayer");a.EditBusLayer=l=>{l=function(t){function f(...q){var v=t.call(this,...q)||this;v[m]=!0;v.when().then(()=>
{v.own([k.on("edits",x=>{const z="layer"in x?x.layer?.url:x.serviceUrl,y="layer"in x?x.layer?.layerId:x.layerId;var A=x.event;if(("layer"in x?x.layer:null)!==b._assertThisInitialized(v)&&z===v.url)if(null!=y&&null!=v.layerId&&y===v.layerId)v.emit("edits",d.clone(A));else if(x=A.editedFeatures?.find(({layerId:B})=>B===v.layerId)){const {adds:B,updates:E,deletes:w}=x.editedFeatures;A={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:B?B.map(({attributes:D})=>
({objectId:v.objectIdField&&D[v.objectIdField],globalId:v.globalIdField&&D[v.globalIdField]})):[],deletedFeatures:w?w.map(({attributes:D})=>({objectId:v.objectIdField&&D[v.objectIdField],globalId:v.globalIdField&&D[v.globalIdField]})):[],updatedFeatures:E?E.map(({current:{attributes:D}})=>({objectId:v.objectIdField&&D[v.objectIdField],globalId:v.globalIdField&&D[v.globalIdField]})):[],editedFeatures:d.clone(A.editedFeatures)};v.emit("edits",A)}})])},()=>{});return v}b._inheritsLoose(f,t);return f}(l);
var m=p;return l=c.__decorate([g.subclass("esri.layers.mixins.EditBusLayer")],l)};a.editEventBus=k;a.isEditBusLayer=function(l){return null!=l&&"object"===typeof l&&p in l};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/FeatureEffectLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/FeatureEffect".split(" "),
function(a,b,c,e,d,n,u,r){const h={write:{allowNull:!0}};a.FeatureEffectLayer=g=>{g=function(k){function p(){var l=k.apply(this,arguments)||this;l.featureEffect=null;return l}b._inheritsLoose(p,k);return p}(g);c.__decorate([e.property({type:r,json:{origins:{"web-map":h,"portal-item":h}}})],g.prototype,"featureEffect",void 0);return g=c.__decorate([u.subclass("esri.layers.mixins.FeatureEffectLayer")],g)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/FeatureEffect":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Error ../../core/JSONSupport ../../core/maybe ../../core/object ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../effects/jsonUtils ./FeatureFilter".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;r={read:{reader:k.read},write:{writer:k.write,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}};k={read:{reader:k.read},write:{writer:k.write,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}};h={name:"showExcludedLabels",default:!0};e=l=function(m){function t(q){q=m.call(this,q)||this;q.filter=null;q.includedEffect=null;q.excludedEffect=null;q.excludedLabelsVisible=
!1;return q}a._inheritsLoose(t,m);var f=t.prototype;f.write=function(q,v){q=m.prototype.write.call(this,q,v);if(v?.origin){if(q.filter){const x=Object.keys(q.filter);if(1<x.length||"where"!==x[0])return v.messages?.push(new c("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:v.layer,effect:this})),null}if("showExcludedLabels"in q)return v.messages?.push(new c("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",
{layer:v.layer,effect:this})),null}return q};f.clone=function(){return new l({filter:d.isSome(this.filter)?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})};return t}(e.JSONSupport);b.__decorate([u.property({type:p,json:{write:{allowNull:!0,writer(m,t,f,q){(m=m?.write({},q))&&0!==Object.keys(m).length?n.setDeepValue(f,m,t):n.setDeepValue(f,null,t)}}}})],e.prototype,"filter",void 0);b.__decorate([u.property({json:{write:!0,
origins:{"web-map":r,"portal-item":r}}})],e.prototype,"includedEffect",void 0);b.__decorate([u.property({json:{write:!0,origins:{"web-map":k,"portal-item":k}}})],e.prototype,"excludedEffect",void 0);b.__decorate([u.property({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":h,"portal-item":h}}})],e.prototype,"excludedLabelsVisible",void 0);return e=l=b.__decorate([g.subclass("esri.layers.support.FeatureEffect")],e)})},"esri/layers/support/FeatureFilter":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../rest/support/Query".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;g=new d.JSONMap({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});d=new d.JSONMap({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",
esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});n=l=function(m){function t(q){q=m.call(this,q)||this;q.where=null;q.geometry=null;q.spatialRelationship="intersects";q.distance=void 0;q.objectIds=null;q.units=null;q.timeExtent=null;return q}a._inheritsLoose(t,m);var f=t.prototype;f.createQuery=function(q={}){const {where:v,geometry:x,spatialRelationship:z,timeExtent:y,objectIds:A,units:B,distance:E}=this;
return new p({geometry:u.clone(x),objectIds:u.clone(A),spatialRelationship:z,timeExtent:u.clone(y),where:v,units:B,distance:E,...q})};f.clone=function(){const {where:q,geometry:v,spatialRelationship:x,timeExtent:z,objectIds:y,units:A,distance:B}=this;return new l({geometry:u.clone(v),objectIds:u.clone(y),spatialRelationship:x,timeExtent:u.clone(z),where:q,units:A,distance:B})};return t}(n.JSONSupport);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"where",void 0);b.__decorate([h.property({types:c.geometryTypes,
json:{write:!0}})],n.prototype,"geometry",void 0);b.__decorate([h.property({type:g.apiValues,json:{name:"spatialRel",read:{reader:g.read},write:{allowNull:!1,writer:g.write,overridePolicy(){return{enabled:r.isSome(this.geometry)}}}}})],n.prototype,"spatialRelationship",void 0);b.__decorate([h.property({type:Number,json:{write:{overridePolicy(m){return{enabled:null!=m&&null!=this.geometry}}}}})],n.prototype,"distance",void 0);b.__decorate([h.property({type:[Number],json:{write:!0}})],n.prototype,"objectIds",
void 0);b.__decorate([h.property({type:d.apiValues,json:{read:d.read,write:{writer:d.write,overridePolicy(m){return{enabled:null!=m&&null!=this.geometry}}}}})],n.prototype,"units",void 0);b.__decorate([h.property({type:e,json:{write:!0}})],n.prototype,"timeExtent",void 0);return n=l=b.__decorate([k.subclass("esri.layers.support.FeatureFilter")],n)})},"esri/rest/support/Query":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/ensureType ../../geometry/support/jsonUtils ../../layers/support/source/DataLayerSource ./FullTextSearch ./QuantizationParameters ./StatisticDefinition ../../geometry/SpatialReference ../../geometry/Point".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y){var A;const B=new d.JSONMap({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});d=new d.JSONMap({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",
esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});n=A=function(E){function w(C){C=E.call(this,C)||this;C.aggregateIds=null;C.cacheHint=void 0;C.compactGeometryEnabled=!1;C.datumTransformation=null;C.defaultSpatialReferenceEnabled=!1;C.distance=void 0;C.dynamicDataSource=void 0;C.formatOf3DObjects=null;C.fullText=null;C.gdbVersion=null;C.geometry=null;C.geometryPrecision=void 0;C.groupByFieldsForStatistics=
null;C.having=null;C.historicMoment=null;C.maxAllowableOffset=void 0;C.maxRecordCountFactor=1;C.multipatchOption=null;C.num=void 0;C.objectIds=null;C.orderByFields=null;C.outFields=null;C.outSpatialReference=null;C.outStatistics=null;C.parameterValues=null;C.pixelSize=null;C.quantizationParameters=null;C.rangeValues=null;C.relationParameter=null;C.resultType=null;C.returnCentroid=!1;C.returnDistinctValues=!1;C.returnExceededLimitFeatures=!0;C.returnGeometry=!1;C.returnQueryGeometry=!1;C.returnM=void 0;
C.returnZ=void 0;C.sourceSpatialReference=null;C.spatialRelationship="intersects";C.start=void 0;C.sqlFormat=null;C.text=null;C.timeExtent=null;C.timeReferenceUnknownClient=!1;C.units=null;C.where=null;return C}a._inheritsLoose(w,E);w.from=function(C){return m.ensureClass(A,C)};var D=w.prototype;D.castDatumTransformation=function(C){return"number"===typeof C||"object"===typeof C?C:null};D.writeHistoricMoment=function(C,F){F.historicMoment=C&&C.getTime()};D.writeParameterValues=function(C,F){if(C){const G=
{};for(const H in C){const I=C[H];Array.isArray(I)?G[H]=I.map(J=>J instanceof Date?J.getTime():J):G[H]=I instanceof Date?I.getTime():I}F.parameterValues=G}};D.writeStart=function(C,F){F.resultOffset=this.start;F.resultRecordCount=this.num||10;F.where="1\x3d1"};D.writeWhere=function(C,F){F.where=C||"1\x3d1"};D.clone=function(){return new A(u.clone({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,
defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:r.isSome(this.historicMoment)?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,
num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,
returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))};return w}(n.JSONSupport);n.MAX_MAX_RECORD_COUNT_FACTOR=
5;b.__decorate([h.property({json:{write:!0}})],n.prototype,"aggregateIds",void 0);b.__decorate([h.property({type:Boolean,json:{write:!0}})],n.prototype,"cacheHint",void 0);b.__decorate([h.property({type:Boolean,json:{default:!1,write:!0}})],n.prototype,"compactGeometryEnabled",void 0);b.__decorate([h.property({json:{write:!0}})],n.prototype,"datumTransformation",void 0);b.__decorate([g.cast("datumTransformation")],n.prototype,"castDatumTransformation",null);b.__decorate([h.property({type:Boolean,
json:{default:!1,write:!0}})],n.prototype,"defaultSpatialReferenceEnabled",void 0);b.__decorate([h.property({type:Number,json:{write:{overridePolicy(E){return{enabled:0<E}}}}})],n.prototype,"distance",void 0);b.__decorate([h.property({type:f.DataLayerSource,json:{write:!0}})],n.prototype,"dynamicDataSource",void 0);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"formatOf3DObjects",void 0);b.__decorate([h.property({type:[q],json:{write:{enabled:!0,overridePolicy(){return{enabled:r.isSome(this.fullText)&&
0<this.fullText.length}}}}})],n.prototype,"fullText",void 0);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"gdbVersion",void 0);b.__decorate([h.property({types:c.geometryTypes,json:{read:t.fromJSON,write:!0}})],n.prototype,"geometry",void 0);b.__decorate([h.property({type:Number,json:{write:!0}})],n.prototype,"geometryPrecision",void 0);b.__decorate([h.property({type:[String],json:{write:!0}})],n.prototype,"groupByFieldsForStatistics",void 0);b.__decorate([h.property({type:String,
json:{write:!0}})],n.prototype,"having",void 0);b.__decorate([h.property({type:Date})],n.prototype,"historicMoment",void 0);b.__decorate([l.writer("historicMoment")],n.prototype,"writeHistoricMoment",null);b.__decorate([h.property({type:Number,json:{write:!0}})],n.prototype,"maxAllowableOffset",void 0);b.__decorate([h.property({type:Number,cast(E){return 1>E?1:E>A.MAX_MAX_RECORD_COUNT_FACTOR?A.MAX_MAX_RECORD_COUNT_FACTOR:E},json:{write:{overridePolicy(E){return{enabled:1<E}}}}})],n.prototype,"maxRecordCountFactor",
void 0);b.__decorate([h.property({type:["xyFootprint"],json:{write:!0}})],n.prototype,"multipatchOption",void 0);b.__decorate([h.property({type:Number,json:{read:{source:"resultRecordCount"}}})],n.prototype,"num",void 0);b.__decorate([h.property({json:{write:!0}})],n.prototype,"objectIds",void 0);b.__decorate([h.property({type:[String],json:{write:!0}})],n.prototype,"orderByFields",void 0);b.__decorate([h.property({type:[String],json:{write:!0}})],n.prototype,"outFields",void 0);b.__decorate([h.property({type:z,
json:{name:"outSR",write:!0}})],n.prototype,"outSpatialReference",void 0);b.__decorate([h.property({type:[x],json:{write:{enabled:!0,overridePolicy(){return{enabled:r.isSome(this.outStatistics)&&0<this.outStatistics.length}}}}})],n.prototype,"outStatistics",void 0);b.__decorate([h.property({json:{write:!0}})],n.prototype,"parameterValues",void 0);b.__decorate([l.writer("parameterValues")],n.prototype,"writeParameterValues",null);b.__decorate([h.property({type:y,json:{write:!0}})],n.prototype,"pixelSize",
void 0);b.__decorate([h.property({type:v,json:{write:!0}})],n.prototype,"quantizationParameters",void 0);b.__decorate([h.property({type:[Object],json:{write:!0}})],n.prototype,"rangeValues",void 0);b.__decorate([h.property({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],n.prototype,"relationParameter",void 0);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"resultType",
void 0);b.__decorate([h.property({type:Boolean,json:{default:!1,write:!0}})],n.prototype,"returnCentroid",void 0);b.__decorate([h.property({type:Boolean,json:{default:!1,write:!0}})],n.prototype,"returnDistinctValues",void 0);b.__decorate([h.property({type:Boolean,json:{default:!0,write:!0}})],n.prototype,"returnExceededLimitFeatures",void 0);b.__decorate([h.property({type:Boolean,json:{write:!0}})],n.prototype,"returnGeometry",void 0);b.__decorate([h.property({type:Boolean,json:{default:!1,write:!0}})],
n.prototype,"returnQueryGeometry",void 0);b.__decorate([h.property({type:Boolean,json:{default:!1,write:!0}})],n.prototype,"returnM",void 0);b.__decorate([h.property({type:Boolean,json:{write:{overridePolicy(E){return{enabled:E}}}}})],n.prototype,"returnZ",void 0);b.__decorate([h.property({type:z,json:{write:!0}})],n.prototype,"sourceSpatialReference",void 0);b.__decorate([k.enumeration(B,{ignoreUnknown:!1,name:"spatialRel"})],n.prototype,"spatialRelationship",void 0);b.__decorate([h.property({type:Number,
json:{read:{source:"resultOffset"}}})],n.prototype,"start",void 0);b.__decorate([l.writer("start"),l.writer("num")],n.prototype,"writeStart",null);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"sqlFormat",void 0);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"text",void 0);b.__decorate([h.property({type:e,json:{write:!0}})],n.prototype,"timeExtent",void 0);b.__decorate([h.property({type:Boolean,json:{default:!1,write:!0}})],n.prototype,"timeReferenceUnknownClient",
void 0);b.__decorate([k.enumeration(d,{ignoreUnknown:!1}),h.property({json:{write:{overridePolicy(E){return{enabled:!!E&&null!=this.distance&&0<this.distance}}}}})],n.prototype,"units",void 0);b.__decorate([h.property({type:String,json:{write:{overridePolicy(E){return{enabled:null!=E||null!=this.start&&0<this.start}}}}})],n.prototype,"where",void 0);b.__decorate([l.writer("where")],n.prototype,"writeWhere",null);return n=A=b.__decorate([p.subclass("esri.rest.support.Query")],n)})},"esri/layers/support/source/DataLayerSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/jsonMap ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/decorators/cast ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/reader ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/extensions/serializableProperty/reader ../Field ./MapLayerSource ./QueryTableDataSource ./RasterDataSource ./TableDataSource".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v){function x(){B||(B=l.createTypeReader({types:z()}));return B}function z(){E||(E={key:"type",base:null,typeMap:{"data-layer":a.DataLayerSource,"map-layer":t.MapLayerSource}});return E}var y,A;e=e.strict()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});a.JoinTableDataSource=y=function(w){function D(F){F=w.call(this,F)||this;F.type="join-table";return F}b._inheritsLoose(D,w);var C=D.prototype;C.readLeftTableSource=function(F,G,
H){return x()(F,G,H)};C.castLeftTableSource=function(F){return p.ensureOneOfType(z(),F)};C.readRightTableSource=function(F,G,H){return x()(F,G,H)};C.castRightTableSource=function(F){return p.ensureOneOfType(z(),F)};C.clone=function(){const {leftTableKey:F,rightTableKey:G,leftTableSource:H,rightTableSource:I,joinType:J}=this,K={leftTableKey:F,rightTableKey:G,leftTableSource:H?.clone()??void 0,rightTableSource:I?.clone()??void 0,joinType:J};return new y(K)};return D}(d.JSONSupport);c.__decorate([h.enumeration({joinTable:"join-table"})],
a.JoinTableDataSource.prototype,"type",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.JoinTableDataSource.prototype,"leftTableKey",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.JoinTableDataSource.prototype,"rightTableKey",void 0);c.__decorate([n.property({json:{write:!0}})],a.JoinTableDataSource.prototype,"leftTableSource",void 0);c.__decorate([g.reader("leftTableSource")],a.JoinTableDataSource.prototype,"readLeftTableSource",null);c.__decorate([r.cast("leftTableSource")],
a.JoinTableDataSource.prototype,"castLeftTableSource",null);c.__decorate([n.property({json:{write:!0}})],a.JoinTableDataSource.prototype,"rightTableSource",void 0);c.__decorate([g.reader("rightTableSource")],a.JoinTableDataSource.prototype,"readRightTableSource",null);c.__decorate([r.cast("rightTableSource")],a.JoinTableDataSource.prototype,"castRightTableSource",null);c.__decorate([h.enumeration(e)],a.JoinTableDataSource.prototype,"joinType",void 0);a.JoinTableDataSource=y=c.__decorate([k.subclass("esri.layers.support.source.JoinTableDataSource")],
a.JoinTableDataSource);let B=null,E=null;r={key:"type",base:null,typeMap:{"join-table":a.JoinTableDataSource,"query-table":f.QueryTableDataSource,raster:q.RasterDataSource,table:v.TableDataSource}};a.DataLayerSource=A=function(w){function D(C){C=w.call(this,C)||this;C.type="data-layer";return C}b._inheritsLoose(D,w);D.prototype.clone=function(){const {fields:C,dataSource:F}=this;return new A({fields:C,dataSource:F})};return D}(d.JSONSupport);c.__decorate([h.enumeration({dataLayer:"data-layer"})],
a.DataLayerSource.prototype,"type",void 0);c.__decorate([n.property({type:[m],json:{write:!0}})],a.DataLayerSource.prototype,"fields",void 0);c.__decorate([n.property({types:r,json:{write:!0}})],a.DataLayerSource.prototype,"dataSource",void 0);a.DataLayerSource=A=c.__decorate([k.subclass("esri.layers.support.source.DataLayerSource")],a.DataLayerSource);a.DataLayerSource.from=p.ensureType(a.DataLayerSource);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/support/source/MapLayerSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h){var g;a.MapLayerSource=g=function(k){function p(l){l=k.call(this,l)||this;l.type=
"map-layer";return l}b._inheritsLoose(p,k);p.prototype.clone=function(){const {mapLayerId:l,gdbVersion:m}=this;return new g({mapLayerId:l,gdbVersion:m})};return p}(e.JSONSupport);c.__decorate([r.enumeration({mapLayer:"map-layer"})],a.MapLayerSource.prototype,"type",void 0);c.__decorate([d.property({type:u.Integer,json:{write:!0}})],a.MapLayerSource.prototype,"mapLayerId",void 0);c.__decorate([d.property({type:String,json:{write:!0}})],a.MapLayerSource.prototype,"gdbVersion",void 0);a.MapLayerSource=
g=c.__decorate([h.subclass("esri.layers.support.source.MapLayerSource")],a.MapLayerSource);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/source/QueryTableDataSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass ../../../geometry/SpatialReference ../../../geometry/support/typeUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){var l;a.QueryTableDataSource=l=function(m){function t(f){f=m.call(this,f)||this;f.type="query-table";return f}b._inheritsLoose(t,m);t.prototype.clone=function(){const {workspaceId:f,query:q,oidFields:v,spatialReference:x,geometryType:z}=this,y={workspaceId:f,query:q,oidFields:v,spatialReference:x?.clone()??void 0,geometryType:z};return new l(y)};return t}(d.JSONSupport);c.__decorate([h.enumeration({queryTable:"query-table"})],a.QueryTableDataSource.prototype,"type",
void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.QueryTableDataSource.prototype,"workspaceId",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.QueryTableDataSource.prototype,"query",void 0);c.__decorate([n.property({type:String,json:{write:!0}})],a.QueryTableDataSource.prototype,"oidFields",void 0);c.__decorate([n.property({type:k,json:{write:!0}})],a.QueryTableDataSource.prototype,"spatialReference",void 0);c.__decorate([h.enumeration(p.featureGeometryTypeKebabDictionary)],
a.QueryTableDataSource.prototype,"geometryType",void 0);a.QueryTableDataSource=l=c.__decorate([g.subclass("esri.layers.support.source.QueryTableDataSource")],a.QueryTableDataSource);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/source/RasterDataSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;a.RasterDataSource=g=function(k){function p(l){l=k.call(this,l)||this;l.type="raster";return l}b._inheritsLoose(p,k);p.prototype.clone=function(){const {workspaceId:l,dataSourceName:m}=this;return new g({workspaceId:l,dataSourceName:m})};return p}(e.JSONSupport);c.__decorate([r.enumeration({raster:"raster"})],a.RasterDataSource.prototype,"type",void 0);c.__decorate([d.property({type:String,json:{write:!0}})],a.RasterDataSource.prototype,"dataSourceName",void 0);c.__decorate([d.property({type:String,
json:{write:!0}})],a.RasterDataSource.prototype,"workspaceId",void 0);a.RasterDataSource=g=c.__decorate([h.subclass("esri.layers.support.source.RasterDataSource")],a.RasterDataSource);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/source/TableDataSource":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/JSONSupport ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/enumeration ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;a.TableDataSource=g=function(k){function p(l){l=k.call(this,l)||this;l.type="table";return l}b._inheritsLoose(p,k);p.prototype.clone=function(){const {workspaceId:l,gdbVersion:m,dataSourceName:t}=this;return new g({workspaceId:l,gdbVersion:m,dataSourceName:t})};return p}(e.JSONSupport);c.__decorate([r.enumeration({table:"table"})],a.TableDataSource.prototype,"type",void 0);c.__decorate([d.property({type:String,json:{write:!0}})],a.TableDataSource.prototype,"workspaceId",
void 0);c.__decorate([d.property({type:String,json:{write:!0}})],a.TableDataSource.prototype,"gdbVersion",void 0);c.__decorate([d.property({type:String,json:{write:!0}})],a.TableDataSource.prototype,"dataSourceName",void 0);a.TableDataSource=g=c.__decorate([h.subclass("esri.layers.support.source.TableDataSource")],a.TableDataSource);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/support/FullTextSearch":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){c=function(g){function k(p){p=g.call(this,p)||this;p.onFields=null;p.operator=null;p.searchTerm=null;p.searchType=null;return p}a._inheritsLoose(k,g);return k}(c.ClonableMixin(e.JSONSupport));b.__decorate([n.property({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:d.isSome(this.onFields)&&0<this.onFields.length}}}}})],c.prototype,"onFields",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],c.prototype,"operator",void 0);b.__decorate([n.property({type:String,
json:{write:!0}})],c.prototype,"searchTerm",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],c.prototype,"searchType",void 0);return c=b.__decorate([h.subclass("esri.rest.support.FullTextSearch")],c)})},"esri/rest/support/QuantizationParameters":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../geometry/Extent".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=new e.JSONMap({upperLeft:"upper-left",lowerLeft:"lower-left"});d=k=function(p){function l(m){m=p.call(this,m)||this;m.extent=null;m.mode="view";m.originPosition="upper-left";m.tolerance=1;return m}a._inheritsLoose(l,p);l.prototype.clone=function(){return new k(n.clone({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))};return l}(d.JSONSupport);b.__decorate([u.property({type:g,json:{write:{overridePolicy(){return{enabled:"view"===
this.mode}}}}})],d.prototype,"extent",void 0);b.__decorate([u.property({type:["view","edit"],json:{write:!0}})],d.prototype,"mode",void 0);b.__decorate([u.property({type:String,json:{read:c.read,write:c.write}})],d.prototype,"originPosition",void 0);b.__decorate([u.property({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"tolerance",void 0);return d=k=b.__decorate([h.subclass("esri.rest.support.QuantizationParameters")],d)})},"esri/rest/support/StatisticDefinition":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;c=new c.JSONMap({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});e=g=function(k){function p(m){m=k.call(this,m)||this;m.maxPointCount=void 0;m.maxRecordCount=void 0;m.maxVertexCount=void 0;m.onStatisticField=
null;m.outStatisticFieldName=null;m.statisticType=null;m.statisticParameters=null;return m}a._inheritsLoose(p,k);var l=p.prototype;l.writeStatisticParameters=function(m,t){if("percentile-continuous"===this.statisticType||"percentile-discrete"===this.statisticType)t.statisticParameters=d.clone(m)};l.clone=function(){return new g({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,
statisticType:this.statisticType,statisticParameters:d.clone(this.statisticParameters)})};return p}(e.JSONSupport);b.__decorate([n.property({type:Number,json:{write:!0}})],e.prototype,"maxPointCount",void 0);b.__decorate([n.property({type:Number,json:{write:!0}})],e.prototype,"maxRecordCount",void 0);b.__decorate([n.property({type:Number,json:{write:!0}})],e.prototype,"maxVertexCount",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],e.prototype,"onStatisticField",void 0);b.__decorate([n.property({type:String,
json:{write:!0}})],e.prototype,"outStatisticFieldName",void 0);b.__decorate([n.property({type:String,json:{read:{source:"statisticType",reader:c.read},write:{target:"statisticType",writer:c.write}}})],e.prototype,"statisticType",void 0);b.__decorate([n.property({type:Object})],e.prototype,"statisticParameters",void 0);b.__decorate([h.writer("statisticParameters")],e.prototype,"writeStatisticParameters",null);return e=g=b.__decorate([r.subclass("esri.rest.support.StatisticDefinition")],e)})},"esri/layers/mixins/FeatureLayerBase":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Collection ../../core/lang ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/Extent ../../geometry/HeightModelInfo ../../geometry/SpatialReference ../support/arcgisLayerUrl ../support/commonProperties ../support/FeatureIndex ../support/featureLayerUtils ../support/GeometryFieldsInfo ../support/LayerFloorInfo ../support/Relationship ../support/serviceCapabilitiesUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A){a.FeatureLayerBase=B=>{B=function(E){function w(){var C=E.apply(this,arguments)||this;C.capabilities=null;C.copyright=null;C.datesInUnknownTimezone=!1;C.displayField=null;C.definitionExpression=null;C.editFieldsInfo=null;C.editingInfo=null;C.elevationInfo=null;C.floorInfo=null;C.fullExtent=null;C.gdbVersion=null;C.geometryFieldsInfo=null;C.geometryType=null;C.hasM=void 0;C.hasZ=void 0;C.heightModelInfo=null;C.historicMoment=null;C.isTable=!1;C.layerId=
void 0;C.minScale=0;C.maxScale=0;C.globalIdField=null;C.objectIdField=null;C.relationships=null;C.sourceJSON=null;C.returnM=void 0;C.returnZ=void 0;C.serviceDefinitionExpression=null;C.spatialReference=m.WGS84;C.subtypeField=null;C.trackIdField=null;C.indexes=new (e.ofType(q.FeatureIndex));C.userIsAdmin=!1;C.version=void 0;return C}b._inheritsLoose(w,E);var D=w.prototype;D.readCapabilitiesFromService=function(C,F){return A.getFeatureLayerCapabilities(F,this.url)};D.readEditingInfo=function(C,F){({editingInfo:C}=
F);return C?{lastEditDate:null!=C.lastEditDate?new Date(C.lastEditDate):null}:null};D.readIsTableFromService=function(C,F){return"Table"===F.type};D.readMinScale=function(C,F){return F.effectiveMinScale||C||0};D.readMaxScale=function(C,F){return F.effectiveMaxScale||C||0};D.readGlobalIdFieldFromService=function(C,F){return v.readGlobalIdField(F)};D.readObjectIdFieldFromService=function(C,F){return v.readObjectIdField(F)};D.readServiceDefinitionExpression=function(C,F){return F.definitionQuery||F.definitionExpression};
D.writeUrl=function(C,F,G,H){t.writeUrlWithLayerId(this,C,null,F,H)};D.readVersion=function(C,F){return v.readVersion(F)};b._createClass(w,[{key:"url",set:function(C){C=t.sanitizeUrlWithLayerId({layer:this,url:C,nonStandardUrlAllowed:!0,logger:n.getLogger(this.declaredClass)});this._set("url",C.url);null!=C.layerId&&this._set("layerId",C.layerId)}}]);return w}(B);c.__decorate([u.property({readOnly:!0,json:{read:!1,origins:{service:{read:{source:"advancedQueryCapabilities allowGeometryUpdates allowUpdateWithoutMValues archivingInfo capabilities datesInUnknownTimezone hasAttachments hasM hasZ maxRecordCount maxRecordCountFactor ownershipBasedAccessControlForFeatures standardMaxRecordCount supportedQueryFormats supportsAdvancedQueries supportsApplyEditsWithGlobalIds supportsAttachmentsByUploadId supportsAttachmentsResizing supportsCalculate supportsCoordinatesQuantization supportsExceedsLimitStatistics supportsFieldDescriptionProperty supportsQuantizationEditMode supportsRollbackOnFailureParameter supportsStatistics supportsTruncate supportsValidateSql tileMaxRecordCount useStandardizedQueries".split(" ")}}}}})],
B.prototype,"capabilities",void 0);c.__decorate([h.reader("service","capabilities")],B.prototype,"readCapabilitiesFromService",null);c.__decorate([u.property({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],B.prototype,"copyright",void 0);c.__decorate([u.property({type:Boolean})],B.prototype,"datesInUnknownTimezone",void 0);c.__decorate([u.property({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],B.prototype,"displayField",void 0);c.__decorate([u.property({type:String,
json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],B.prototype,"definitionExpression",void 0);c.__decorate([u.property({readOnly:!0})],B.prototype,"editFieldsInfo",void 0);c.__decorate([u.property({readOnly:!0})],B.prototype,"editingInfo",void 0);c.__decorate([h.reader("editingInfo")],B.prototype,"readEditingInfo",null);c.__decorate([u.property((()=>{const E=d.clone(f.elevationInfo),w=E.json.origins;w["web-map"]={read:!1,write:!1};
w["portal-item"]={read:!1,write:!1};return E})())],B.prototype,"elevationInfo",void 0);c.__decorate([u.property({type:z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],B.prototype,"floorInfo",void 0);c.__decorate([u.property({type:p,json:{origins:{service:{read:{source:"extent"}}}}})],B.prototype,"fullExtent",void 0);c.__decorate([u.property()],B.prototype,"gdbVersion",void 0);c.__decorate([u.property({readOnly:!0,type:x,json:{read:{source:"geometryProperties"}}})],
B.prototype,"geometryFieldsInfo",void 0);c.__decorate([u.property({type:"point polygon polyline multipoint multipatch mesh".split(" "),json:{origins:{service:{read:v.geometryTypeKebabDict.read}}}})],B.prototype,"geometryType",void 0);c.__decorate([u.property({type:Boolean,json:{origins:{service:{read:!0}}}})],B.prototype,"hasM",void 0);c.__decorate([u.property({type:Boolean,json:{origins:{service:{read:!0}}}})],B.prototype,"hasZ",void 0);c.__decorate([u.property({readOnly:!0,type:l})],B.prototype,
"heightModelInfo",void 0);c.__decorate([u.property({type:Date})],B.prototype,"historicMoment",void 0);c.__decorate([u.property({readOnly:!0})],B.prototype,"isTable",void 0);c.__decorate([h.reader("service","isTable",["type"])],B.prototype,"readIsTableFromService",null);c.__decorate([u.property({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],B.prototype,"layerId",void 0);c.__decorate([u.property(f.minScale)],B.prototype,"minScale",void 0);
c.__decorate([h.reader("service","minScale",["minScale","effectiveMinScale"])],B.prototype,"readMinScale",null);c.__decorate([u.property(f.maxScale)],B.prototype,"maxScale",void 0);c.__decorate([h.reader("service","maxScale",["maxScale","effectiveMaxScale"])],B.prototype,"readMaxScale",null);c.__decorate([u.property({type:String})],B.prototype,"globalIdField",void 0);c.__decorate([h.reader("service","globalIdField",["globalIdField","fields"])],B.prototype,"readGlobalIdFieldFromService",null);c.__decorate([u.property({type:String})],
B.prototype,"objectIdField",void 0);c.__decorate([h.reader("service","objectIdField",["objectIdField","fields"])],B.prototype,"readObjectIdFieldFromService",null);c.__decorate([u.property({type:[y],readOnly:!0})],B.prototype,"relationships",void 0);c.__decorate([u.property()],B.prototype,"sourceJSON",void 0);c.__decorate([u.property({type:Boolean})],B.prototype,"returnM",void 0);c.__decorate([u.property({type:Boolean})],B.prototype,"returnZ",void 0);c.__decorate([u.property({readOnly:!0})],B.prototype,
"serviceDefinitionExpression",void 0);c.__decorate([h.reader("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],B.prototype,"readServiceDefinitionExpression",null);c.__decorate([u.property({type:m,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],B.prototype,"spatialReference",void 0);c.__decorate([u.property({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],B.prototype,"subtypeField",void 0);c.__decorate([u.property({type:String,
json:{read:{source:"timeInfo.trackIdField"}}})],B.prototype,"trackIdField",void 0);c.__decorate([u.property({readOnly:!0,json:{write:!1}})],B.prototype,"serverGens",void 0);c.__decorate([u.property({type:e.ofType(q.FeatureIndex),readOnly:!0})],B.prototype,"indexes",void 0);c.__decorate([u.property(f.url)],B.prototype,"url",null);c.__decorate([k.writer("url")],B.prototype,"writeUrl",null);c.__decorate([u.property({readOnly:!0})],B.prototype,"userIsAdmin",void 0);c.__decorate([u.property({json:{origins:{service:{read:!0}},
read:!1}})],B.prototype,"version",void 0);c.__decorate([h.reader("service","version","currentVersion capabilities drawingInfo hasAttachments htmlPopupType relationships timeInfo typeIdField types".split(" "))],B.prototype,"readVersion",null);return B=c.__decorate([g.subclass("esri.layers.mixins.FeatureLayerBase")],B)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/HeightModelInfo":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/arrayUtils ../core/jsonMap ../core/JSONSupport ../core/unitUtils ../core/Warning ../core/accessorSupport/decorators/property ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/decorators/writer".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){function l(q,v){return new u("height-unit:unsupported",`Height unit of value '${q}' is not supported`,v)}var m;const t=e.strict()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"});h=t.jsonValues.slice();c.removeUnordered(h,"orthometric");const f=e.strict()({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"});c=m=function(q){function v(z){z=q.call(this,z)||this;z.heightModel="gravity-related-height";z.heightUnit="meters";z.vertCRS=null;return z}a._inheritsLoose(v,q);var x=v.prototype;
x.writeHeightModel=function(z,y,A){return t.write(z,y,A)};x.readHeightModel=function(z,y,A){if(y=t.read(z))return y;if(A&&A.messages){y=A.messages;var B=y.push;z=new u("height-model:unsupported",`Height model of value '${z}' is not supported`,{context:A});B.call(y,z)}return null};x.readHeightUnit=function(z,y,A){if(y=f.read(z))return y;A&&A.messages&&A.messages.push(l(z,{context:A}));return null};x.readHeightUnitService=function(z,y,A){if(y=n.unitFromRESTJSON(z)||f.read(z))return y;A&&A.messages&&
A.messages.push(l(z,{context:A}));return null};x.readVertCRS=function(z,y){return y.vertCRS||y.ellipsoid||y.geoid};x.clone=function(){return new m({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})};x.equals=function(z){return z?this===z?!0:this.heightModel===z.heightModel&&this.heightUnit===z.heightUnit&&this.vertCRS===z.vertCRS:!1};v.deriveUnitFromSR=function(z,y){y=n.getVerticalUnitStringForSR(y);return new m({heightModel:z.heightModel,heightUnit:y,vertCRS:z.vertCRS})};
x.write=function(z,y){y={origin:"web-scene",...y};return q.prototype.write.call(this,z,y)};v.fromJSON=function(z){if(!z)return null;const y=new m;y.read(z,{origin:"web-scene"});return y};return v}(d.JSONSupport);b.__decorate([r.property({type:t.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:h,default:"ellipsoidal"}}}})],c.prototype,"heightModel",void 0);b.__decorate([p.writer("web-scene","heightModel")],c.prototype,"writeHeightModel",null);b.__decorate([g.reader(["web-scene","service"],
"heightModel")],c.prototype,"readHeightModel",null);b.__decorate([r.property({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],c.prototype,"heightUnit",void 0);b.__decorate([g.reader("web-scene","heightUnit")],c.prototype,"readHeightUnit",null);b.__decorate([g.reader("service","heightUnit")],c.prototype,"readHeightUnitService",null);b.__decorate([r.property({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],c.prototype,"vertCRS",
void 0);b.__decorate([g.reader("service","vertCRS",["vertCRS","ellipsoid","geoid"])],c.prototype,"readVertCRS",null);return c=m=b.__decorate([k.subclass("esri.geometry.HeightModelInfo")],c)})},"esri/layers/support/FeatureIndex":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){a.FeatureIndex=function(g){function k(p){return g.call(this,p)||this}b._inheritsLoose(k,g);return k}(e.ClonableMixin(d.JSONSupport));c.__decorate([n.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"name",void 0);c.__decorate([n.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"fields",void 0);c.__decorate([n.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"isAscending",void 0);c.__decorate([n.property({constructOnly:!0,
json:{write:!0}})],a.FeatureIndex.prototype,"indexType",void 0);c.__decorate([n.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"isUnique",void 0);c.__decorate([n.property({constructOnly:!0,json:{write:!0}})],a.FeatureIndex.prototype,"description",void 0);a.FeatureIndex=c.__decorate([h.subclass("esri.layers.support.FeatureIndex")],a.FeatureIndex);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/featureLayerUtils":function(){define("require exports ../../chunks/_rollupPluginBabelHelpers ../../core/Error ../../core/jsonMap ../../core/maybe ../../core/sql ../../rest/support/AttachmentQuery ../../rest/support/Query ../../rest/support/RelationshipQuery".split(" "),
function(a,b,c,e,d,n,u,r,h,g){function k(){k=c._asyncToGenerator(function*(E,w,D,C){const {source:F}=yield E.load();yield p(E,w,C);if(!F.addAttachment)throw new e(C,"Layer source does not support addAttachment capability");return F.addAttachment(w,D)});return k.apply(this,arguments)}function p(E,w,D){const {attributes:C}=w,{objectIdField:F}=E;return E.get("capabilities.data.supportsAttachment")?w?C?F&&C[F]?Promise.resolve():Promise.reject(new e(D,`feature is missing the identifying attribute ${F}`)):
Promise.reject(new e(D,"'attributes' are required on a feature to query attachments")):Promise.reject(new e(D,"A feature is required to add/delete/update attachments")):Promise.reject(new e(D,"this layer doesn't support attachments"))}function l(){l=c._asyncToGenerator(function*(E,w,D,C,F){const {source:G}=yield E.load();yield p(E,w,F);if(!G.updateAttachment)throw new e(F,"Layer source does not support updateAttachment capability");return G.updateAttachment(w,D,C)});return l.apply(this,arguments)}
function m(){m=c._asyncToGenerator(function*(E,w,D){const C=yield new Promise((F,G)=>a(["../graphics/editingSupport"],F,G));E=yield E.load();return C.applyEdits(E,E.source,w,D)});return m.apply(this,arguments)}function t(){t=c._asyncToGenerator(function*(E,w,D,C){const {source:F}=yield E.load();yield p(E,w,C);if(!F.deleteAttachments)throw new e(C,"Layer source does not support deleteAttachments capability");return F.deleteAttachments(w,D)});return t.apply(this,arguments)}function f(){f=c._asyncToGenerator(function*(E,
w,D){({source:E}=yield E.load({signal:w?.signal}));if(!E.fetchRecomputedExtents)throw new e(D,"Layer source does not support fetchUpdates capability");return E.fetchRecomputedExtents(w)});return f.apply(this,arguments)}function q(){q=c._asyncToGenerator(function*(E,w,D,C){w=r.from(w);const {source:F,capabilities:G}=yield E.load();if(!G?.data?.supportsAttachment)throw new e(C,"this layer doesn't support attachments");const {attachmentTypes:H,objectIds:I,globalIds:J,num:K,size:N,start:U,where:ba}=w;
if(!G?.operations?.supportsQueryAttachments&&(0<H?.length||0<J?.length||0<N?.length||K||U||ba))throw new e(C,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",w);if(!(I?.length||J?.length||ba))throw new e(C,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",w);if(!F.queryAttachments)throw new e(C,"Layer source does not support queryAttachments capability",w);return F.queryAttachments(w)});return q.apply(this,arguments)}function v(){v=
c._asyncToGenerator(function*(E,w,D,C){const {source:F}=yield E.load();if(!F.queryObjectIds)throw new e(C,"Layer source does not support queryObjectIds capability");return F.queryObjectIds(h.from(w)??E.createQuery(),D)});return v.apply(this,arguments)}function x(){x=c._asyncToGenerator(function*(E,w,D,C){const {source:F}=yield E.load();if(!F.queryFeatureCount)throw new e(C,"Layer source does not support queryFeatureCount capability");return F.queryFeatureCount(h.from(w)??E.createQuery(),D)});return x.apply(this,
arguments)}function z(){z=c._asyncToGenerator(function*(E,w,D,C){const {source:F}=yield E.load();if(!F.queryExtent)throw new e(C,"Layer source does not support queryExtent capability");return F.queryExtent(h.from(w)??E.createQuery(),D)});return z.apply(this,arguments)}function y(){y=c._asyncToGenerator(function*(E,w,D,C){({source:E}=yield E.load());if(!E.queryRelatedFeatures)throw new e(C,"Layer source does not support queryRelatedFeatures capability");return E.queryRelatedFeatures(g.from(w),D)});
return y.apply(this,arguments)}function A(){A=c._asyncToGenerator(function*(E,w,D,C){({source:E}=yield E.load());if(!E.queryRelatedFeaturesCount)throw new e(C,"Layer source does not support queryRelatedFeaturesCount capability");return E.queryRelatedFeaturesCount(g.from(w),D)});return A.apply(this,arguments)}function B(){B=c._asyncToGenerator(function*(E){const w=E.source;if(w?.refresh)try{const {dataChanged:D,updates:C}=yield w.refresh();n.isSome(C)&&(E.sourceJSON={...E.sourceJSON,...C},E.read(C,
{origin:"service",url:E.parsedUrl}));if(D)return!0}catch{}if(E.definitionExpression)try{return(yield u.parseWhereClause(E.definitionExpression,E.fieldsIndex)).hasDateFunctions}catch{}return!1});return B.apply(this,arguments)}d=new d.JSONMap({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});b.addAttachment=function(E,w,D,C){return k.apply(this,arguments)};b.applyEdits=function(E,w,D){return m.apply(this,
arguments)};b.createQuery=function(E){const w=new h,D=E.get("capabilities.data"),C=E.get("capabilities.query");w.historicMoment=E.historicMoment;w.gdbVersion=E.gdbVersion;w.returnGeometry=!0;C&&(w.compactGeometryEnabled=C.supportsCompactGeometry,w.defaultSpatialReferenceEnabled=C.supportsDefaultSpatialReference);D&&(D.supportsZ&&null!=E.returnZ&&(w.returnZ=E.returnZ),D.supportsM&&null!=E.returnM&&(w.returnM=E.returnM));w.outFields=["*"];const {timeOffset:F,timeExtent:G}=E;w.timeExtent=null!=F&&null!=
G?G.offset(-F.value,F.unit):G||null;w.multipatchOption="multipatch"===E.geometryType?"xyFootprint":null;return w};b.deleteAttachments=function(E,w,D,C){return t.apply(this,arguments)};b.fetchRecomputedExtents=function(E,w,D){return f.apply(this,arguments)};b.geometryTypeKebabDict=d;b.hasDataChanged=function(E){return B.apply(this,arguments)};b.queryAttachments=function(E,w,D,C){return q.apply(this,arguments)};b.queryExtent=function(E,w,D,C){return z.apply(this,arguments)};b.queryFeatureCount=function(E,
w,D,C){return x.apply(this,arguments)};b.queryObjectIds=function(E,w,D,C){return v.apply(this,arguments)};b.queryRelatedFeatures=function(E,w,D,C){return y.apply(this,arguments)};b.queryRelatedFeaturesCount=function(E,w,D,C){return A.apply(this,arguments)};b.readGlobalIdField=function(E){const {globalIdField:w,fields:D}=E;if(w)return w;if(D)for(const C of D)if("esriFieldTypeGlobalID"===C.type)return C.name};b.readObjectIdField=function(E){const {objectIdField:w,fields:D}=E;if(w)return w;if(D)for(const C of D)if("esriFieldTypeOID"===
C.type)return C.name};b.readVersion=function(E){return E.currentVersion?E.currentVersion:E.hasOwnProperty("capabilities")||E.hasOwnProperty("drawingInfo")||E.hasOwnProperty("hasAttachments")||E.hasOwnProperty("htmlPopupType")||E.hasOwnProperty("relationships")||E.hasOwnProperty("timeInfo")||E.hasOwnProperty("typeIdField")||E.hasOwnProperty("types")?10:9.3};b.updateAttachment=function(E,w,D,C,F){return l.apply(this,arguments)};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/rest/support/AttachmentQuery":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer".split(" "),function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(l){l=g.call(this,l)||this;l.attachmentTypes=null;l.attachmentsWhere=null;l.cacheHint=void 0;l.keywords=
null;l.globalIds=null;l.name=null;l.num=null;l.objectIds=null;l.returnMetadata=!1;l.size=null;l.start=null;l.where=null;return l}a._inheritsLoose(k,g);var p=k.prototype;p.writeStart=function(l,m){m.resultOffset=this.start;m.resultRecordCount=this.num||10};p.clone=function(){return new h(e.clone({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,
returnMetadata:this.returnMetadata,size:this.size,start:this.start}))};return k}(c.JSONSupport);b.__decorate([d.property({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0);b.__decorate([d.property({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0);b.__decorate([d.property({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0);b.__decorate([d.property({type:[String],
json:{write:!0}})],c.prototype,"keywords",void 0);b.__decorate([d.property({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0);b.__decorate([d.property({json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([d.property({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0);b.__decorate([d.property({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0);b.__decorate([d.property({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",
void 0);b.__decorate([d.property({type:[Number],json:{write:!0}})],c.prototype,"size",void 0);b.__decorate([d.property({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0);b.__decorate([r.writer("start"),r.writer("num")],c.prototype,"writeStart",null);b.__decorate([d.property({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0);c=h=b.__decorate([u.subclass("esri.rest.support.AttachmentQuery")],c);c.from=
n.ensureType(c);return c})},"esri/rest/support/RelationshipQuery":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../layers/support/source/DataLayerSource ../../geometry/SpatialReference".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){var p;
c=p=function(l){function m(f){f=l.call(this,f)||this;f.cacheHint=void 0;f.dynamicDataSource=void 0;f.gdbVersion=null;f.geometryPrecision=void 0;f.historicMoment=null;f.maxAllowableOffset=void 0;f.objectIds=null;f.orderByFields=null;f.outFields=null;f.outSpatialReference=null;f.relationshipId=void 0;f.start=void 0;f.num=void 0;f.returnGeometry=!1;f.returnM=void 0;f.returnZ=void 0;f.where=null;return f}a._inheritsLoose(m,l);var t=m.prototype;t._writeHistoricMoment=function(f,q){q.historicMoment=f&&
f.getTime()};t.writeStart=function(f,q){q.resultOffset=this.start;q.resultRecordCount=this.num||10;0<this.start&&null==this.where&&(q.definitionExpression="1\x3d1")};t.clone=function(){return new p(d.clone({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,
outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))};return m}(e.JSONSupport);b.__decorate([n.property({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0);b.__decorate([n.property({type:g.DataLayerSource,json:{write:!0}})],c.prototype,"dynamicDataSource",void 0);b.__decorate([n.property({type:String,json:{write:!0}})],
c.prototype,"gdbVersion",void 0);b.__decorate([n.property({type:Number,json:{write:!0}})],c.prototype,"geometryPrecision",void 0);b.__decorate([n.property({type:Date})],c.prototype,"historicMoment",void 0);b.__decorate([h.writer("historicMoment")],c.prototype,"_writeHistoricMoment",null);b.__decorate([n.property({type:Number,json:{write:!0}})],c.prototype,"maxAllowableOffset",void 0);b.__decorate([n.property({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0);b.__decorate([n.property({type:[String],
json:{write:!0}})],c.prototype,"orderByFields",void 0);b.__decorate([n.property({type:[String],json:{write:!0}})],c.prototype,"outFields",void 0);b.__decorate([n.property({type:k,json:{read:{source:"outSR"},write:{target:"outSR"}}})],c.prototype,"outSpatialReference",void 0);b.__decorate([n.property({json:{write:!0}})],c.prototype,"relationshipId",void 0);b.__decorate([n.property({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0);b.__decorate([h.writer("start"),h.writer("num")],
c.prototype,"writeStart",null);b.__decorate([n.property({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0);b.__decorate([n.property({json:{write:!0}})],c.prototype,"returnGeometry",void 0);b.__decorate([n.property({type:Boolean,json:{write:{overridePolicy(l){return{enabled:l}}}}})],c.prototype,"returnM",void 0);b.__decorate([n.property({type:Boolean,json:{write:{overridePolicy(l){return{enabled:l}}}}})],c.prototype,"returnZ",void 0);b.__decorate([n.property({type:String,
json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0);c=p=b.__decorate([r.subclass("esri.rest.support.RelationshipQuery")],c);c.from=u.ensureType(c);return c})},"esri/layers/support/GeometryFieldsInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){c=function(g){function k(p){p=g.call(this,p)||this;p.shapeAreaField=null;p.shapeLengthField=null;p.units=null;return p}a._inheritsLoose(k,g);return k}(c.ClonableMixin(e.JSONSupport));b.__decorate([n.property({type:String,json:{read:{source:"shapeAreaFieldName"}}})],c.prototype,"shapeAreaField",void 0);b.__decorate([n.property({type:String,json:{read:{source:"shapeLengthFieldName"}}})],c.prototype,"shapeLengthField",void 0);b.__decorate([n.property({type:String,json:{read:g=>
d.areaUnitsJSONMap.read(g)||d.lengthUnitsJSONMap.read(g)}})],c.prototype,"units",void 0);return c=b.__decorate([h.subclass("esri.layers.support.GeometryFieldsInfo")],c)})},"esri/layers/support/LayerFloorInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Collection ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){var h;e=h=function(g){function k(p){p=g.call(this,p)||this;p.floorField=null;p.viewAllMode=!1;p.viewAllLevelIds=new c;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})};return k}(e.JSONSupport);b.__decorate([d.property({type:String,json:{write:!0}})],e.prototype,"floorField",void 0);b.__decorate([d.property({json:{read:!1,write:!1}})],e.prototype,"viewAllMode",
void 0);b.__decorate([d.property({json:{read:!1,write:!1}})],e.prototype,"viewAllLevelIds",void 0);return e=h=b.__decorate([r.subclass("esri.layers.support.LayerFloorInfo")],e)})},"esri/layers/support/Relationship":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){u=new e.JSONMap({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"});e=new e.JSONMap({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});c=function(g){function k(p){p=g.call(this,p)||this;p.cardinality=null;p.composite=null;p.id=null;p.keyField=null;p.keyFieldInRelationshipTable=null;p.name=null;p.relatedTableId=null;p.relationshipTableId=null;p.role=null;return p}a._inheritsLoose(k,
g);return k}(c.ClonableMixin(d.JSONSupport));b.__decorate([n.property({json:{read:u.read,write:u.write}})],c.prototype,"cardinality",void 0);b.__decorate([n.property({json:{read:!0,write:!0}})],c.prototype,"composite",void 0);b.__decorate([n.property({json:{read:!0,write:!0}})],c.prototype,"id",void 0);b.__decorate([n.property({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0);b.__decorate([n.property({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0);b.__decorate([n.property({json:{read:!0,
write:!0}})],c.prototype,"name",void 0);b.__decorate([n.property({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0);b.__decorate([n.property({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0);b.__decorate([n.property({json:{read:e.read,write:e.write}})],c.prototype,"role",void 0);return c=b.__decorate([h.subclass("esri.layers.support.Relationship")],c)})},"esri/layers/support/serviceCapabilitiesUtils":function(){define(["exports","../../core/has","../../core/maybe",
"./arcgisLayerUrl"],function(a,b,c,e){function d(l,m,t){return!(l&&l.hasOwnProperty(m)?!l[m]:!t)}function n(l,m,t){return l&&l.hasOwnProperty(m)?l[m]:t}function u(l){l=l?.supportedSpatialAggregationStatistics?.map(m=>m.toLowerCase());return{envelope:!!l?.includes("envelopeaggregate"),centroid:!!l?.includes("centroidaggregate"),convexHull:!!l?.includes("convexhullaggregate")}}function r(l,m){return!!l?.supportedOperationsWithCacheHint?.map(t=>t.toLowerCase())?.includes(m.toLowerCase())}function h(l){const m=
l.attachmentProperties,t={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:r(l.advancedQueryCapabilities,"queryAttachments"),supportsResize:d(l,"supportsAttachmentsResizing",!1)};m&&Array.isArray(m)&&m.forEach(f=>{const q=p[f.name];q&&(t[q]=!!f.isEnabled)});return t}function g(l,m,t){l=l?l.toLowerCase().split(",").map(A=>A.trim()):[];t=t?e.parse(t):null;t=l.includes(c.isSome(t)&&"MapServer"===t.serverType?"data":"query");const f=l.includes("editing")&&
!m.datesInUnknownTimezone;let q=f&&l.includes("create"),v=f&&l.includes("delete"),x=f&&l.includes("update");const z=l.includes("changetracking"),y=m.advancedQueryCapabilities;!f||q||v||x||(q=v=x=!0);return{supportsCalculate:d(m,"supportsCalculate",!1),supportsTruncate:d(m,"supportsTruncate",!1),supportsValidateSql:d(m,"supportsValidateSql",!1),supportsAdd:q,supportsDelete:v,supportsEditing:f,supportsChangeTracking:z,supportsQuery:t,supportsQueryAnalytics:d(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:d(y,
"supportsQueryAttachments",!1),supportsQueryTopFeatures:d(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:d(m,"supportsAttachmentsResizing",!1),supportsSync:l.includes("sync"),supportsUpdate:x,supportsExceedsLimitStatistics:d(m,"supportsExceedsLimitStatistics",!1)}}function k(l,m){const t=l.advancedQueryCapabilities,f=l.ownershipBasedAccessControlForFeatures,q=l.archivingInfo;var v=l.currentVersion;v=!m?.includes("MapServer")||v>=b("mapserver-pbf-version-support");m=e.isHostedAgolService(m);
const x=new Set((l.supportedQueryFormats??"").split(",").map(z=>z.toLowerCase().trim()));return{supportsStatistics:d(t,"supportsStatistics",l.supportsStatistics),supportsPercentileStatistics:d(t,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:d(t,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:u(t),supportsCentroid:d(t,"supportsReturningGeometryCentroid",!1),supportsDistance:d(t,"supportsQueryWithDistance",!1),supportsDistinct:d(t,"supportsDistinct",
l.supportsAdvancedQueries),supportsExtent:d(t,"supportsReturningQueryExtent",!1),supportsGeometryProperties:d(t,"supportsReturningGeometryProperties",!1),supportsHavingClause:d(t,"supportsHavingClause",!1),supportsOrderBy:d(t,"supportsOrderBy",l.supportsAdvancedQueries),supportsPagination:d(t,"supportsPagination",!1),supportsQuantization:d(l,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:d(l,"supportsQuantizationEditMode",!1),supportsQueryGeometry:d(l,"supportsReturningQueryGeometry",
!1),supportsResultType:d(t,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:d(t,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:d(t,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:d(l,"useStandardizedQueries",!1),supportsTopFeaturesQuery:d(t,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:d(f,"allowOthersToQuery",!0),supportsHistoricMoment:d(q,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:v&&x.has("pbf"),supportsDisjointSpatialRelationship:d(t,"supportsDisjointSpatialRel",
!1),supportsCacheHint:d(t,"supportsQueryWithCacheHint",!1)||r(t,"query"),supportsDefaultSpatialReference:d(t,"supportsDefaultSR",!1),supportsCompactGeometry:m,supportsFullTextSearch:d(t,"supportsFullTextSearch",!1),maxRecordCountFactor:n(l,"maxRecordCountFactor",void 0),maxRecordCount:n(l,"maxRecordCount",void 0),standardMaxRecordCount:n(l,"standardMaxRecordCount",void 0),tileMaxRecordCount:n(l,"tileMaxRecordCount",void 0)}}const p={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",
keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};a.getFeatureLayerCapabilities=function(l,m){var t={supportsCacheHint:r(l.advancedQueryCapabilities,"queryAnalytics")},f=h(l);var q={isVersioned:d(l,"isDataVersioned",!1),supportsAttachment:d(l,"hasAttachments",!1),supportsM:d(l,"hasM",!1),supportsZ:d(l,"hasZ",!1)};var v={supportsAdvancedFieldProperties:d(l,"supportsFieldDescriptionProperty",!1)},x=g(l.capabilities,l,m);m=k(l,m);var z=l.advancedQueryCapabilities;var y=d(z,"supportsAdvancedQueryRelated",
!1);z={supportsPagination:d(z,"supportsQueryRelatedPagination",!1),supportsCount:y,supportsOrderBy:y,supportsCacheHint:r(z,"queryRelated")};y={supportsCacheHint:r(l.advancedQueryCapabilities,"queryTopFilter")};const A=l.ownershipBasedAccessControlForFeatures;l={supportsGeometryUpdate:d(l,"allowGeometryUpdates",!0),supportsGlobalId:d(l,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:d(l,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:d(l,
"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:d(l,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:d(l,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:d(A,"allowAnonymousToDelete",!0),supportsDeleteByOthers:d(A,"allowOthersToDelete",!0),supportsUpdateByAnonymous:d(A,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:d(A,"allowOthersToUpdate",!0)};return{analytics:t,attachment:f,data:q,metadata:v,operations:x,query:m,queryRelated:z,queryTopFeatures:y,editing:l}};
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/FeatureReductionLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/AggregateField ../support/featureReductionUtils ../../views/2d/layers/support/clusterUtils".split(" "),function(a,
b,c,e,d,n,u,r,h,g){a.FeatureReductionLayer=k=>{k=function(p){function l(...m){var t=p.call(this,...m)||this;t.own(t.watch("renderer",()=>{if(t.featureReduction){const f=t._normalizeFeatureReduction(t.featureReduction);t._set("featureReduction",f)}},!0));return t}b._inheritsLoose(l,p);l.prototype._normalizeFeatureReduction=function(m){if("cluster"!==m?.type)return m;const t=m.clone(),f=[new r({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],q=(t.fields??[]).filter(v=>!v.isAutoGenerated);
if(m.renderer&&!m.renderer.authoringInfo?.isAutoGenerated)return t.fields=[...f,...q],t;if(m.symbol)return t.fields=[...f,...q],t.renderer=null,t;if(!this.renderer)return m;m=g.createClusterRenderer(f,this.renderer,m,null,!1);t.fields=[...f,...q];t.renderer=m;return t};b._createClass(l,[{key:"featureReduction",set:function(m){m=this._normalizeFeatureReduction(m);this._set("featureReduction",m)}},{key:"renderer",set:function(m){}}]);return l}(k);c.__decorate([e.property(h.featureReductionProperty)],
k.prototype,"featureReduction",null);return k=c.__decorate([u.subclass("esri.layers.mixins.FeatureReductionLayer")],k)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/AggregateField":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./ExpressionInfo".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(p){p=g.call(this,p)||this;p.isAutoGenerated=!1;p.name=null;p.alias=null;p.onStatisticField=null;p.onStatisticExpression=null;p.statisticType=null;return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:e.clone(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})};return k}(c.JSONSupport);
b.__decorate([d.property({type:Boolean,json:{write:!0}})],c.prototype,"isAutoGenerated",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"alias",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0);b.__decorate([d.property({type:r,json:{write:!0}})],c.prototype,"onStatisticExpression",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],
c.prototype,"statisticType",void 0);return c=h=b.__decorate([u.subclass("esri.layers.support.AggregateField")],c)})},"esri/layers/support/ExpressionInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){c=function(h){function g(k){k=h.call(this,
k)||this;k.expression=null;k.title=null;k.returnType=null;return k}a._inheritsLoose(g,h);return g}(c.ClonableMixin(e.JSONSupport));b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"expression",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"title",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"returnType",void 0);return c=b.__decorate([r.subclass("esri.layers.support.ExpressionInfo")],c)})},"esri/layers/support/featureReductionUtils":function(){define(["exports",
"./FeatureReduction","./FeatureReductionBinning","./FeatureReductionCluster","./FeatureReductionSelection"],function(a,b,c,e,d){const n={key:"type",base:b.FeatureReduction,typeMap:{cluster:e,binning:c}};a.featureReductionProperty={types:{key:"type",base:b.FeatureReduction,typeMap:{selection:d,cluster:e,binning:c}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:n},"portal-item":{types:n},"web-scene":{types:{key:"type",base:b.FeatureReduction,typeMap:{selection:d}}}}}};
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/FeatureReduction":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){a.FeatureReduction=function(h){function g(){var k=h.apply(this,arguments)||
this;k.type=null;return k}b._inheritsLoose(g,h);return g}(e.JSONSupport);c.__decorate([d.property({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],a.FeatureReduction.prototype,"type",void 0);a.FeatureReduction=c.__decorate([r.subclass("esri.layers.support.FeatureReduction")],a.FeatureReduction);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/FeatureReductionBinning":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../PopupTemplate ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../renderers/support/types ../../symbols ../../core/lang ../../core/object ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/extensions/serializableProperty/reader ./AggregateField ./commonProperties ./FeatureReduction ./LabelClass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C){var F;const G=B.createTypeReader({types:m.symbolTypesRenderer});e=F=function(H){function I(K){K=H.call(this,K)||this;K.type="binning";K.binType="geohash";K.fixedBinLevel=3;K.labelingInfo=null;K.labelsVisible=!0;K.popupEnabled=!0;K.popupTemplate=null;K.fields=[];K.renderer=null;return K}a._inheritsLoose(I,H);var J=I.prototype;J.writeFields=function(K,N,U){K=K.filter(ba=>"avg_angle"!==ba.statisticType).map(ba=>ba.toJSON());f.setDeepValue(U,
K,N)};J.readRenderer=function(K,N,U){return(K=N.drawingInfo?.renderer)?p.read(K,N,U)??void 0:N.defaultSymbol?N.types&&N.types.length?new k({defaultSymbol:G(N.defaultSymbol,N,U),field:N.typeIdField,uniqueValueInfos:N.types.map(ba=>({id:ba.id,symbol:G(ba.symbol,ba,U)}))}):new g({symbol:G(N.defaultSymbol,N,U)}):null};J.clone=function(){return new F({fields:t.clone(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:t.clone(this.labelingInfo),labelsVisible:this.labelsVisible,popupEnabled:this.popupEnabled,
popupTemplate:t.clone(this.popupTemplate),renderer:t.clone(this.renderer)})};return I}(D.FeatureReduction);b.__decorate([x.enumeration({binning:"binning"})],e.prototype,"type",void 0);b.__decorate([x.enumeration({geohash:"geohash"})],e.prototype,"binType",void 0);b.__decorate([q.property({type:Number,range:{min:1,max:9},json:{write:!0}})],e.prototype,"fixedBinLevel",void 0);b.__decorate([q.property({type:[C],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],
e.prototype,"labelingInfo",void 0);b.__decorate([q.property(w.labelsVisible)],e.prototype,"labelsVisible",void 0);b.__decorate([q.property(w.popupEnabled)],e.prototype,"popupEnabled",void 0);b.__decorate([q.property({type:c,json:{name:"popupInfo",write:!0}})],e.prototype,"popupTemplate",void 0);b.__decorate([q.property({type:[E],json:{write:!0}})],e.prototype,"fields",void 0);b.__decorate([A.writer("fields")],e.prototype,"writeFields",null);b.__decorate([q.property({types:l.rendererTypes,json:{write:{target:"drawingInfo.renderer"}}})],
e.prototype,"renderer",void 0);b.__decorate([z.reader("renderer",["drawingInfo.renderer"])],e.prototype,"readRenderer",null);return e=F=b.__decorate([y.subclass("esri.layers.support.FeatureReductionBinning")],e)})},"esri/layers/support/LabelClass":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../symbols ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./LabelExpressionInfo ./labelUtils ../../symbols/support/defaults ../../symbols/support/jsonUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f){function q(z){return z?"service"===z.origin?!1:"map-image"!==z.layer?.type:!0}function v(z){return"map-image"===z?.type?!!z.capabilities?.exportMap?.supportsArcadeExpressionForLabeling:!1}var x;e=new e.JSONMap({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});d=x=function(z){function y(B){B=z.call(this,B)||this;B.type="label";B.name=null;B.allowOverrun=!1;B.deconflictionStrategy="static";B.labelExpression=null;B.labelExpressionInfo=null;B.labelPlacement=null;B.labelPosition="curved";B.maxScale=0;B.minScale=0;B.repeatLabel=!0;B.repeatLabelDistance=null;B.symbol=t.defaultTextSymbol2D;B.useCodedValues=void 0;B.where=null;return B}a._inheritsLoose(y,z);y.evaluateWhere=function(B,E){const w=(D,C,F)=>{switch(C){case "\x3d":return D==F?!0:
!1;case "\x3c\x3e":return D!=F?!0:!1;case "\x3e":return D>F?!0:!1;case "\x3e\x3d":return D>=F?!0:!1;case "\x3c":return D<F?!0:!1;case "\x3c\x3d":return D<=F?!0:!1}return!1};try{if(null==B)return!0;const D=B.split(" ");if(3===D.length)return w(E[D[0]],D[1],D[2]);if(7===D.length){const C=w(E[D[0]],D[1],D[2]),F=D[3],G=w(E[D[4]],D[5],D[6]);switch(F){case "AND":return C&&G;case "OR":return C||G}}return!1}catch(D){console.log("Error.: can't parse \x3d "+B)}};var A=y.prototype;A.readLabelExpression=function(B,
E){E=E.labelExpressionInfo;if(!E||!E.value&&!E.expression)return B};A.writeLabelExpression=function(B,E,w){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)B=m.templateStringToSql(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const D=m.getSingleFieldArcadeExpression(this.labelExpressionInfo.expression);D&&(B="["+D+"]")}null!=B&&(E[w]=B)};A.writeLabelExpressionInfo=function(B,E,w,D){if(null==B&&null!=this.labelExpression&&q(D))B=new l({expression:this.getLabelExpressionArcade()});
else if(!B)return;B=B.toJSON(D);B.expression&&(E[w]=B)};A.writeMaxScale=function(B,E){if(B||this.minScale)E.maxScale=B};A.writeMinScale=function(B,E){if(B||this.maxScale)E.minScale=B};A.getLabelExpression=function(){return m.getLabelExpression(this)};A.getLabelExpressionArcade=function(){return m.getLabelExpressionArcade(this)};A.getLabelExpressionSingleField=function(){return m.getLabelExpressionSingleField(this)};A.hash=function(){return JSON.stringify(this)};A.clone=function(){return new x({allowOverrun:this.allowOverrun,
deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:n.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:n.clone(this.symbol),where:this.where,useCodedValues:this.useCodedValues})};return y}(d.JSONSupport);b.__decorate([r.property({type:String,json:{write:!0}})],
d.prototype,"name",void 0);b.__decorate([r.property({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],d.prototype,"allowOverrun",void 0);b.__decorate([r.property({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1}}}})],d.prototype,"deconflictionStrategy",void 0);b.__decorate([r.property({type:String,json:{write:{overridePolicy(z,y,A){return this.labelExpressionInfo&&"service"===A?.origin&&v(A.layer)?{enabled:!1}:{allowNull:!0}}}}})],d.prototype,
"labelExpression",void 0);b.__decorate([g.reader("labelExpression")],d.prototype,"readLabelExpression",null);b.__decorate([p.writer("labelExpression")],d.prototype,"writeLabelExpression",null);b.__decorate([r.property({type:l,json:{write:{overridePolicy(z,y,A){return q(A)||v(A.layer)?{allowNull:!0}:{enabled:!1}}}}})],d.prototype,"labelExpressionInfo",void 0);b.__decorate([p.writer("labelExpressionInfo")],d.prototype,"writeLabelExpressionInfo",null);b.__decorate([r.property({type:e.apiValues,json:{type:e.jsonValues,
read:e.read,write:e.write}})],d.prototype,"labelPlacement",void 0);b.__decorate([r.property({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],d.prototype,"labelPosition",void 0);b.__decorate([r.property({type:Number})],d.prototype,"maxScale",void 0);b.__decorate([p.writer("maxScale")],d.prototype,"writeMaxScale",null);b.__decorate([r.property({type:Number})],d.prototype,"minScale",void 0);b.__decorate([p.writer("minScale")],
d.prototype,"writeMinScale",null);b.__decorate([r.property({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:!1}}}})],d.prototype,"repeatLabel",void 0);b.__decorate([r.property({type:Number,cast:u.toPt,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"repeatLabelDistance",void 0);b.__decorate([r.property({types:c.symbolTypesLabel,json:{origins:{"web-scene":{types:c.symbolTypesLabel3D,write:f.writeLabelSymbol,default:null}},write:f.writeLabelSymbol,default:null}})],
d.prototype,"symbol",void 0);b.__decorate([r.property({type:Boolean,json:{write:!0}})],d.prototype,"useCodedValues",void 0);b.__decorate([r.property({type:String,json:{write:!0}})],d.prototype,"where",void 0);return d=x=b.__decorate([k.subclass("esri.layers.support.LabelClass")],d)})},"esri/layers/support/LabelExpressionInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./labelUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;c=k=function(p){function l(){var t=p.apply(this,arguments)||this;t.expression=null;t.title=null;t.value=null;return t}a._inheritsLoose(l,p);var m=l.prototype;m.readExpression=function(t,f){return f.value?g.convertTemplatedStringToArcade(f.value):t};m.writeExpression=function(t,f,q){null!=this.value&&(t=g.convertTemplatedStringToArcade(this.value));null!=t&&(f[q]=t)};m.clone=function(){return new k({expression:this.expression,title:this.title,value:this.value})};
return l}(c.JSONSupport);b.__decorate([e.property({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0);b.__decorate([u.reader("expression",["expression","value"])],c.prototype,"readExpression",null);b.__decorate([h.writer("expression")],c.prototype,"writeExpression",null);b.__decorate([e.property({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0);b.__decorate([e.property({json:{read:!1,write:!1}})],c.prototype,"value",void 0);
return c=k=b.__decorate([r.subclass("esri.layers.support.LabelExpressionInfo")],c)})},"esri/layers/support/labelUtils":function(){define(["exports","../../core/string"],function(a,b){function c(f){return f.replace(RegExp("\\[","g"),"{").replace(RegExp("\\]","g"),"}")}function e(f){const q={expression:"",type:"none"};f.labelExpressionInfo?f.labelExpressionInfo.value?(q.expression=f.labelExpressionInfo.value,q.type="conventional"):f.labelExpressionInfo.expression&&(q.expression=f.labelExpressionInfo.expression,
q.type="arcade"):null!=f.labelExpression&&(q.expression=c(f.labelExpression),q.type="conventional");return q}function d(f){f?(f=b.replace(f,q=>'__begin__$feature["'+q+'"]__end__'),f=g.test(f)?f.replace(g,""):'"'+f,f=k.test(f)?f.replace(k,""):f+'"',f=f.replace(r,'" + ').replace(h,' + "')):f='""';return f}function n(f){return(f=f.match(p))&&f[1].trim()||null}function u(f){if(!f)return null;let q=l.exec(f)||m.exec(f);return q?q[1]||q[3]:(q=t.exec(f))?q[2]:null}const r=RegExp("__begin__","ig"),h=RegExp("__end__",
"ig"),g=RegExp("^__begin__","i"),k=RegExp("__end__$","i"),p=/^\s*\{([^}]+)\}\s*$/i,l=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,t=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;a.convertTemplatedStringToArcade=d;a.getLabelExpression=e;a.getLabelExpressionArcade=function(f){f=e(f);if(!f)return null;switch(f.type){case "conventional":return d(f.expression);
case "arcade":return f.expression}return null};a.getLabelExpressionSingleField=function(f){f=e(f);if(!f)return null;switch(f.type){case "conventional":return n(f.expression);case "arcade":return u(f.expression)}return null};a.getSingleFieldArcadeExpression=u;a.getSingleFieldTemplatedString=n;a.sqlToTemplateString=c;a.templateStringToSql=function(f){return f.replace(RegExp("\\{","g"),"[").replace(RegExp("\\}","g"),"]")};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/symbols/support/defaults":function(){define("exports ../../core/has ../../core/maybe ../SimpleFillSymbol ../SimpleLineSymbol ../SimpleMarkerSymbol ../TextSymbol ./defaultsJSON".split(" "),function(a,b,c,e,d,n,u,r){const h=n.fromJSON(r.defaultPointSymbolJSON),g=d.fromJSON(r.defaultPolylineSymbolJSON),k=e.fromJSON(r.defaultPolygonSymbolJSON);b=u.fromJSON(r.defaultTextSymbolJSON);n=n.fromJSON(r.errorPointSymbolJSON);d=d.fromJSON(r.errorPolylineSymbolJSON);e=e.fromJSON(r.errorPolygonSymbolJSON);
a.defaultPointSymbol2D=h;a.defaultPolygonSymbol2D=k;a.defaultPolylineSymbol2D=g;a.defaultTextSymbol2D=b;a.errorPointSymbol2D=n;a.errorPolygonSymbol2D=e;a.errorPolylineSymbol2D=d;a.getDefaultSymbol2D=function(p){if(c.isNone(p))return null;switch(p.type){case "point":case "multipoint":return h;case "polyline":return g;case "polygon":case "extent":return k}return null};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/support/defaultsJSON":function(){define(["exports"],
function(a){const b=[252,146,31,255],c={type:"esriSMS",style:"esriSMSCircle",size:6,color:b,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},e={type:"esriSLS",style:"esriSLSSolid",width:.75,color:b};a.defaultColor=b;a.defaultOutlineColor=[153,153,153,255];a.defaultPointSymbolJSON=c;a.defaultPolygonSymbolJSON={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}};a.defaultPolylineSymbolJSON=
e;a.defaultTextSymbolJSON={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0};a.errorPointSymbolJSON={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5};a.errorPolygonSymbolJSON={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null};a.errorPolylineSymbolJSON={type:"esriSLS",style:"esriSLSSolid",
color:[0,0,0,255],width:1.5};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/FeatureReductionCluster":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../PopupTemplate ../../renderers/ClassBreaksRenderer ../../renderers/DictionaryRenderer ../../renderers/DotDensityRenderer ../../renderers/HeatmapRenderer ../../renderers/PieChartRenderer ../../renderers/Renderer ../../renderers/SimpleRenderer ../../renderers/UniqueValueRenderer ../../renderers/support/jsonUtils ../../renderers/support/types ../../symbols ../../core/JSONSupport ../../core/lang ../../core/object ../../core/screenUtils ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/extensions/serializableProperty/reader ./AggregateField ./commonProperties ./LabelClass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C){var F;const G=E.createTypeReader({types:m.symbolTypesRenderer});e=F=function(H){function I(K){K=H.call(this,K)||this;K.type="cluster";K.clusterRadius=v.toPt("80px");K.clusterMinSize=v.toPt("12px");K.clusterMaxSize=v.toPt("50px");K.popupEnabled=!0;K.popupTemplate=null;K.renderer=null;K.symbol=null;K.labelingInfo=null;K.labelsVisible=!0;K.fields=null;return K}a._inheritsLoose(I,H);var J=I.prototype;J.readRenderer=function(K,N,U){K=N.drawingInfo?.renderer;
return K?.authoringInfo?.isAutoGenerated?null:K?"simple"!==K.type||K.visualVariables?.length?p.read(K,N,U)??void 0:null:N.defaultSymbol?N.types&&N.types.length?new k({defaultSymbol:G(N.defaultSymbol,N,U),field:N.typeIdField,uniqueValueInfos:N.types.map(ba=>({id:ba.id,symbol:G(ba.symbol,ba,U)}))}):new g({symbol:G(N.defaultSymbol,N,U)}):null};J.readSymbol=function(K,N,U){K=N.drawingInfo?.renderer;return K?.authoringInfo?.isAutoGenerated?null:K&&"simple"===K.type&&!K.visualVariables?.length?p.read(K,
N,U)?.symbol:null};J.writeSymbol=function(K,N,U,ba){U=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||U)K=new g({symbol:K}),N.drawingInfo={renderer:K.write({},ba)}};J.writeFields=function(K,N,U){K=K.filter(ba=>"avg_angle"!==ba.statisticType).map(ba=>ba.toJSON());q.setDeepValue(U,K,N)};J.readFields=function(K,N,U){return K.filter(ba=>!ba.isAutoGenerated).map(ba=>w.fromJSON(ba))};J.clone=function(){return new F({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,
labelingInfo:f.clone(this.labelingInfo),labelsVisible:this.labelsVisible,fields:f.clone(this.fields),renderer:f.clone(this.renderer),symbol:f.clone(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:f.clone(this.popupTemplate)})};return I}(t.JSONSupport);b.__decorate([x.property({type:["cluster"],readOnly:!0,json:{write:!0}})],e.prototype,"type",void 0);b.__decorate([x.property({type:Number,cast:H=>"auto"===H?H:v.toPt(H),json:{write:!0}})],e.prototype,"clusterRadius",void 0);b.__decorate([x.property({type:Number,
cast:v.toPt,json:{write:!0}})],e.prototype,"clusterMinSize",void 0);b.__decorate([x.property({type:Number,cast:v.toPt,json:{write:!0}})],e.prototype,"clusterMaxSize",void 0);b.__decorate([x.property(D.popupEnabled)],e.prototype,"popupEnabled",void 0);b.__decorate([x.property({type:c,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],e.prototype,"popupTemplate",void 0);b.__decorate([x.property({types:l.rendererTypes,json:{write:{target:"drawingInfo.renderer"}}})],e.prototype,"renderer",
void 0);b.__decorate([y.reader("renderer",["drawingInfo.renderer"])],e.prototype,"readRenderer",null);b.__decorate([x.property({types:m.symbolTypesCluster})],e.prototype,"symbol",void 0);b.__decorate([y.reader("symbol",["drawingInfo.renderer"])],e.prototype,"readSymbol",null);b.__decorate([B.writer("symbol")],e.prototype,"writeSymbol",null);b.__decorate([x.property({type:[C],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],e.prototype,"labelingInfo",void 0);
b.__decorate([x.property(D.labelsVisible)],e.prototype,"labelsVisible",void 0);b.__decorate([x.property({type:[w],json:{write:!0}})],e.prototype,"fields",void 0);b.__decorate([B.writer("fields")],e.prototype,"writeFields",null);b.__decorate([y.reader("fields")],e.prototype,"readFields",null);return e=F=b.__decorate([A.subclass("esri.layers.support.FeatureReductionCluster")],e)})},"esri/layers/support/FeatureReductionSelection":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./FeatureReduction".split(" "),
function(a,b,c,e,d,n,u){var r;e=r=function(h){function g(k){k=h.call(this,k)||this;k.type="selection";return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r};return g}(u.FeatureReduction);b.__decorate([c.property({type:["selection"]})],e.prototype,"type",void 0);return e=r=b.__decorate([n.subclass("esri.layers.support.FeatureReductionSelection")],e)})},"esri/views/2d/layers/support/clusterUtils":function(){define("exports ../../../../core/Error ../../../../core/has ../../../../core/Logger ../../../../core/maybe ../../../../core/MD5 ../../../../layers/support/AggregateField ../../../../layers/support/ExpressionInfo ../../../../renderers/support/AuthoringInfo ../../../../renderers/visualVariables/SizeVariable ../../../../renderers/visualVariables/support/SizeStop ../../engine/LevelDependentSizeVariable".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){function l(A,B,E){switch(A){case "sum":return`cluster_sum_${B}`;case "avg":case "avg_angle":return`cluster_avg_${B}`;case "mode":return`cluster_type_${B}`;case "avg_norm":return A=B.toLowerCase()+",norm:field,"+E.toLowerCase(),"cluster_avg_"+n.createMD5Hash(A)}}function m(A,B,E,w){const D=n.createMD5Hash(B),C="mode"===E?`cluster_type_${D}`:"sum"===E?`cluster_sum_${D}`:`cluster_avg_${D}`;A.some(F=>F.name===C)||A.push(new u({name:C,isAutoGenerated:!0,onStatisticExpression:new r({expression:B,
returnType:w}),statisticType:E}));return C}function t(A,B,E,w,D){if("cluster_count"===B||A.some(F=>F.name===B))return B;const C=l(E,B,D);A.some(F=>F.name===C)||("avg_norm"===E?A.push(new u({name:C,isAutoGenerated:!0,onStatisticExpression:new r({expression:`$feature.${B} / $feature.${D}`,returnType:w}),statisticType:"avg"})):A.push(new u({name:C,isAutoGenerated:!0,onStatisticField:B,statisticType:E})));return C}const f=e.getLogger("esri.views.2d.layers.support.clusterUtils");c.add("esri-cluster-arcade-enabled",
!0);const q=c("esri-cluster-arcade-enabled"),v=A=>{for(const B of A)if("size"===B.type)return B;return null},x=A=>{for(const B of A)if("cluster_count"===B.field)return!0;return!1},z=(A,B)=>{const E=[new k({value:0,size:0}),new k({value:1})];if(d.isNone(B))return new g({field:"cluster_count",stops:[...E,new k({value:2,size:0})]});const w=Object.keys(B).reduce((D,C)=>({...D,[C]:[...E,new k({value:Math.max(2,B[C].minValue),size:A.clusterMinSize}),new k({value:Math.max(3,B[C].maxValue),size:A.clusterMaxSize})]}),
{});return new p.LevelDependentSizeVariable({field:"cluster_count",levels:w})},y=A=>{const B=E=>f.error(new b("Unsupported-renderer",E,{renderer:A}));switch(A.type){case "unique-value":if(A.field2||A.field3)return B("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case "class-breaks":if(A.normalizationField){const E=A.normalizationType;if("field"!==E)return B(`FeatureReductionCluster does not support a normalizationType of ${E}`),!1;break}case "simple":case "pie-chart":break;
default:return B(`FeatureReductionCluster does not support renderers of type ${A.type}`),!1}if(!q){if("valueExpression"in A&&A.valueExpression)return B("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in A&&A.visualVariables||[]).some(E=>!!("valueExpression"in E&&E.valueExpression)))return B("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),
!1}return!0};a.createClusterCountSizeVariable=z;a.createClusterRenderer=(A,B,E,w,D)=>{B=B.clone();if(!y(B))return B;B.authoringInfo||(B.authoringInfo=new h);B.authoringInfo.isAutoGenerated=!0;if("visualVariables"in B){const C=(B.visualVariables||[]).filter(G=>"$view.scale"!==G.valueExpression),F=v(C);C.forEach(G=>{"rotation"===G.type?G.field?G.field=t(A,G.field,"avg_angle","number"):G.valueExpression&&(G.field=m(A,G.valueExpression,"avg_angle","number"),G.valueExpression=null):G.normalizationField?
(G.field=t(A,G.field,"avg_norm","number",G.normalizationField),G.normalizationField=null):G.field?G.field=t(A,G.field,"avg","number"):G.valueExpression&&(G.field=m(A,G.valueExpression,"avg","number"),G.valueExpression=null)});d.isNone(F)&&!x(C)&&D&&(C.push(z(E,w)),B.dynamicClusterSize=!0);B.visualVariables=C}switch(B.type){case "pie-chart":for(const C of B.attributes)C.field?C.field=t(A,C.field,"sum","number"):C.valueExpression&&(C.field=m(A,C.valueExpression,"sum","number"),C.valueExpression=null);
break;case "unique-value":B.field?B.field=t(A,B.field,"mode","string"):B.valueExpression&&(B.field=m(A,B.valueExpression,"mode","string"),B.valueExpression=null);break;case "class-breaks":B.normalizationField?(B.field=t(A,B.field,"avg_norm","number",B.normalizationField),B.normalizationField=null):B.field?B.field=t(A,B.field,"avg","number"):B.valueExpression&&(B.field=m(A,B.valueExpression,"avg","number"),B.valueExpression=null)}return B};a.findSizeVV=v;a.hasClusterCountVV=x;a.injectDynamicLevelDependentSizeVisualVariable=
function(A,B,E){A=A.clone();let w=!1;if("visualVariables"in A){var D=(A.visualVariables||[]).filter(C=>"$view.scale"!==C.valueExpression);D=v(D);d.isNone(D)&&(A.visualVariables||(A.visualVariables=[]),A.visualVariables.push(z(B,E)),w=A.dynamicClusterSize=!0)}return{renderer:A,didInject:w}};a.isClusterCompatibleRenderer=y;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/MD5":function(){define(["exports"],function(a){function b(r,h){const g=(r&65535)+
(h&65535);return(r>>16)+(h>>16)+(g>>16)<<16|g&65535}function c(r,h,g,k,p,l){r=b(b(h,r),b(k,l));return b(r<<p|r>>>32-p,g)}function e(r,h,g,k,p,l,m){return c(h&g|~h&k,r,h,p,l,m)}function d(r,h,g,k,p,l,m){return c(h&k|g&~k,r,h,p,l,m)}function n(r,h,g,k,p,l,m){return c(g^(h|~k),r,h,p,l,m)}const u={Base64:0,Hex:1,String:2,Raw:3};a.createMD5Hash=function(r,h=u.Hex){h=h||u.Base64;var g=[];for(let m=0,t=8*r.length;m<t;m+=8)g[m>>5]|=(r.charCodeAt(m/8)&255)<<m%32;r=8*r.length;g[r>>5]|=128<<r%32;g[(r+64>>>9<<
4)+14]=r;r=1732584193;var k=-271733879;let p=-1732584194,l=271733878;for(let m=0;m<g.length;m+=16){const t=r,f=k,q=p,v=l;r=e(r,k,p,l,g[m+0],7,-680876936);l=e(l,r,k,p,g[m+1],12,-389564586);p=e(p,l,r,k,g[m+2],17,606105819);k=e(k,p,l,r,g[m+3],22,-1044525330);r=e(r,k,p,l,g[m+4],7,-176418897);l=e(l,r,k,p,g[m+5],12,1200080426);p=e(p,l,r,k,g[m+6],17,-1473231341);k=e(k,p,l,r,g[m+7],22,-45705983);r=e(r,k,p,l,g[m+8],7,1770035416);l=e(l,r,k,p,g[m+9],12,-1958414417);p=e(p,l,r,k,g[m+10],17,-42063);k=e(k,p,l,r,
g[m+11],22,-1990404162);r=e(r,k,p,l,g[m+12],7,1804603682);l=e(l,r,k,p,g[m+13],12,-40341101);p=e(p,l,r,k,g[m+14],17,-1502002290);k=e(k,p,l,r,g[m+15],22,1236535329);r=d(r,k,p,l,g[m+1],5,-165796510);l=d(l,r,k,p,g[m+6],9,-1069501632);p=d(p,l,r,k,g[m+11],14,643717713);k=d(k,p,l,r,g[m+0],20,-373897302);r=d(r,k,p,l,g[m+5],5,-701558691);l=d(l,r,k,p,g[m+10],9,38016083);p=d(p,l,r,k,g[m+15],14,-660478335);k=d(k,p,l,r,g[m+4],20,-405537848);r=d(r,k,p,l,g[m+9],5,568446438);l=d(l,r,k,p,g[m+14],9,-1019803690);p=
d(p,l,r,k,g[m+3],14,-187363961);k=d(k,p,l,r,g[m+8],20,1163531501);r=d(r,k,p,l,g[m+13],5,-1444681467);l=d(l,r,k,p,g[m+2],9,-51403784);p=d(p,l,r,k,g[m+7],14,1735328473);k=d(k,p,l,r,g[m+12],20,-1926607734);r=c(k^p^l,r,k,g[m+5],4,-378558);l=c(r^k^p,l,r,g[m+8],11,-2022574463);p=c(l^r^k,p,l,g[m+11],16,1839030562);k=c(p^l^r,k,p,g[m+14],23,-35309556);r=c(k^p^l,r,k,g[m+1],4,-1530992060);l=c(r^k^p,l,r,g[m+4],11,1272893353);p=c(l^r^k,p,l,g[m+7],16,-155497632);k=c(p^l^r,k,p,g[m+10],23,-1094730640);r=c(k^p^l,
r,k,g[m+13],4,681279174);l=c(r^k^p,l,r,g[m+0],11,-358537222);p=c(l^r^k,p,l,g[m+3],16,-722521979);k=c(p^l^r,k,p,g[m+6],23,76029189);r=c(k^p^l,r,k,g[m+9],4,-640364487);l=c(r^k^p,l,r,g[m+12],11,-421815835);p=c(l^r^k,p,l,g[m+15],16,530742520);k=c(p^l^r,k,p,g[m+2],23,-995338651);r=n(r,k,p,l,g[m+0],6,-198630844);l=n(l,r,k,p,g[m+7],10,1126891415);p=n(p,l,r,k,g[m+14],15,-1416354905);k=n(k,p,l,r,g[m+5],21,-57434055);r=n(r,k,p,l,g[m+12],6,1700485571);l=n(l,r,k,p,g[m+3],10,-1894986606);p=n(p,l,r,k,g[m+10],15,
-1051523);k=n(k,p,l,r,g[m+1],21,-2054922799);r=n(r,k,p,l,g[m+8],6,1873313359);l=n(l,r,k,p,g[m+15],10,-30611744);p=n(p,l,r,k,g[m+6],15,-1560198380);k=n(k,p,l,r,g[m+13],21,1309151649);r=n(r,k,p,l,g[m+4],6,-145523070);l=n(l,r,k,p,g[m+11],10,-1120210379);p=n(p,l,r,k,g[m+2],15,718787259);k=n(k,p,l,r,g[m+9],21,-343485551);r=b(r,t);k=b(k,f);p=b(p,q);l=b(l,v)}g=[r,k,p,l];switch(h){case u.Raw:return g;case u.Hex:h=[];for(let m=0,t=4*g.length;m<t;m++)h.push("0123456789abcdef".charAt(g[m>>2]>>m%4*8+4&15)+"0123456789abcdef".charAt(g[m>>
2]>>m%4*8&15));return h.join("");case u.String:h=[];for(let m=0,t=32*g.length;m<t;m+=8)h.push(String.fromCharCode(g[m>>5]>>>m%32&255));return h.join("");case u.Base64:h=[];for(let m=0,t=4*g.length;m<t;m+=3)for(r=(g[m>>2]>>m%4*8&255)<<16|(g[m+1>>2]>>(m+1)%4*8&255)<<8|g[m+2>>2]>>(m+2)%4*8&255,k=0;4>k;k++)8*m+6*k>32*g.length?h.push("\x3d"):h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-k)&63));return h.join("")}};a.outputTypes=u;Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/LevelDependentSizeVariable":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/lang ../../../core/accessorSupport/decorators/property ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../../core/accessorSupport/decorators/writer ../../../renderers/visualVariables/SizeVariable ../../../renderers/visualVariables/support/sizeVariableUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g){var k;a.LevelDependentSizeVariable=k=function(p){function l(){return p.apply(this,arguments)||this}b._inheritsLoose(l,p);var m=l.prototype;m.writeLevels=function(t,f,q){for(const v in t){f.stops=this.levels[v];break}};m.clone=function(){return new k({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:g.isSizeVariable(this.maxSize)?this.maxSize.clone():this.maxSize,
minDataValue:this.minDataValue,minSize:g.isSizeVariable(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map(t=>t.clone()),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone(),levels:e.clone(this.levels)})};return l}(h);c.__decorate([d.property()],a.LevelDependentSizeVariable.prototype,"levels",void 0);
c.__decorate([r.writer("levels")],a.LevelDependentSizeVariable.prototype,"writeLevels",null);a.LevelDependentSizeVariable=k=c.__decorate([u.subclass("esri.views.2d.engine.LevelDependentSizeVariable")],a.LevelDependentSizeVariable);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/mixins/OrderedLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/object ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/OrderByInfo".split(" "),
function(a,b,c,e,d,n,u,r,h){function g(p,l,m){if(!p)return null;p=p.find(t=>!!t.field);if(!p)return null;l=new h;l.read(p,m);return[l]}function k(p,l,m,t){(p=p.find(f=>!!f.field))&&e.setDeepValue(m,[p.toJSON()],l)}a.OrderedLayer=p=>{p=function(l){function m(){var t=l.apply(this,arguments)||this;t.orderBy=null;return t}b._inheritsLoose(m,l);return m}(p);c.__decorate([d.property({type:[h],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:g},write:{target:"layerDefinition.orderBy",
writer:k}}})],p.prototype,"orderBy",void 0);return p=c.__decorate([r.subclass("esri.layers.mixins.OrderedLayer")],p)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/OrderByInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r){var h;c=new c.JSONMap({asc:"ascending",desc:"descending"});e=h=function(g){function k(p){p=g.call(this,p)||this;p.field=null;p.valueExpression=null;p.order="ascending";return p}a._inheritsLoose(k,g);k.prototype.clone=function(){return new h({field:this.field,valueExpression:this.valueExpression,order:this.order})};return k}(e.JSONSupport);b.__decorate([d.property({type:String,json:{write:!0}})],e.prototype,"field",void 0);b.__decorate([d.property({type:String,json:{write:!0}})],
e.prototype,"valueExpression",void 0);b.__decorate([d.property({type:c.apiValues,json:{read:c.read,write:c.write}})],e.prototype,"order",void 0);return e=h=b.__decorate([r.subclass("esri.layers.support.OrderByInfo")],e)})},"esri/layers/mixins/PublishableLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../support/PublishingInfo".split(" "),
function(a,b,c,e,d,n,u,r){const h=Symbol("esri.layers.mixins.PublishableLayer");a.PublishableLayer=g=>{g=function(k){function p(){return k.apply(this,arguments)||this}b._inheritsLoose(p,k);p.prototype._checkPublishingStatus=function(l){var m=this;let t=0;const f=function(){var v=b._asyncToGenerator(function*(x){l.updating=!0;let z;try{z=yield m.fetchPublishingStatus()}catch(y){z="unavailable"}if("published"===z||"unavailable"===z)"publishing"===l.status&&m.refresh(),q.remove();l.status=z;l.updating=
!1;q.removed||(t=setTimeout(f,x,x+125))});return function(x){return v.apply(this,arguments)}}(),q={removed:!1,remove(){this.removed=!0;clearTimeout(t)}};this.when().catch(()=>q.remove());f(250);this.own(q)};b._createClass(p,[{key:"publishingInfo",get:function(){if(this.destroyed)return null;var l=this._get("publishingInfo");if(l)return l;l=new r;this._checkPublishingStatus(l);return l}}]);return p}(g);c.__decorate([e.property({readOnly:!0,clonable:!1})],g.prototype,"publishingInfo",null);return g=
c.__decorate([u.subclass("esri.layers.mixins.PublishableLayer")],g)};a.isPublishableLayer=function(g){return g&&"object"===typeof g&&h in g};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/PublishingInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(){var g=r.apply(this,arguments)||this;g.updating=!1;g.status="unknown";return g}a._inheritsLoose(h,r);return h}(c);b.__decorate([e.property()],c.prototype,"updating",void 0);b.__decorate([e.property()],c.prototype,"status",void 0);return c=b.__decorate([u.subclass("esri.layers.support.PublishingInfo")],c)})},"esri/layers/mixins/TemporalLayer":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../TimeExtent ../../TimeInterval ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../support/fieldUtils ../support/TimeInfo ../../portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){a.TemporalLayer=m=>{m=function(t){function f(){var q=t.apply(this,arguments)||this;q.timeExtent=null;q.timeOffset=null;q.useViewTime=!0;return q}b._inheritsLoose(f,t);f.prototype.readOffset=function(q,v){v=v.timeInfo.exportOptions;if(!v)return null;q=v.timeOffset;v=l.timeUnitKebabDictionary.fromJSON(v.timeOffsetUnits);return q&&v?new d({value:q,unit:v}):null};b._createClass(f,[{key:"timeInfo",set:function(q){k.fixTimeInfoFields(q,this.fieldsIndex);this._set("timeInfo",
q)}}]);return f}(m);c.__decorate([n.property({type:e,json:{write:!1}})],m.prototype,"timeExtent",void 0);c.__decorate([n.property({type:d})],m.prototype,"timeOffset",void 0);c.__decorate([h.reader("service","timeOffset",["timeInfo.exportOptions"])],m.prototype,"readOffset",null);c.__decorate([n.property({value:null,type:p,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],m.prototype,"timeInfo",null);c.__decorate([n.property({type:Boolean,json:{read:{source:"timeAnimation"},
write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],m.prototype,"useViewTime",void 0);return m=c.__decorate([g.subclass("esri.layers.mixins.TemporalLayer")],m)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/TimeInterval":function(){define("./chunks/_rollupPluginBabelHelpers ./chunks/tslib.es6 ./core/JSONSupport ./core/timeUtils ./core/accessorSupport/decorators/property ./core/arrayUtils ./core/accessorSupport/ensureType ./core/accessorSupport/decorators/subclass ./portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,e,d,n,u,r,h){var g;c=g=function(k){function p(m){m=k.call(this,m)||this;m.value=0;m.unit="milliseconds";return m}a._inheritsLoose(p,k);var l=p.prototype;l.toMilliseconds=function(){return e.convertTime(this.value,this.unit,"milliseconds")};l.clone=function(){return new g({value:this.value,unit:this.unit})};return p}(c.JSONSupport);b.__decorate([d.property({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0);b.__decorate([d.property({type:h.timeUnitKebabDictionary.apiValues,
json:{type:h.timeUnitKebabDictionary.jsonValues,read:h.timeUnitKebabDictionary.read,write:h.timeUnitKebabDictionary.write},nonNullable:!0})],c.prototype,"unit",void 0);return c=g=b.__decorate([r.subclass("esri.TimeInterval")],c)})},"esri/portal/timeUnitKebabDictionary":function(){define(["exports","../core/jsonMap"],function(a,b){b=b.strict()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",
esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0});a.timeUnitKebabDictionary=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/TimeInfo":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../TimeExtent ../../TimeInterval ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./TimeReference ../../portal/timeUnitKebabDictionary".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){var t;d=t=function(f){function q(x){x=f.call(this,x)||this;x.cumulative=!1;x.endField=null;x.fullTimeExtent=null;x.hasLiveData=!1;x.interval=null;x.startField=null;x.timeReference=null;x.trackIdField=null;x.useTime=!0;return x}a._inheritsLoose(q,f);var v=q.prototype;v.readFullTimeExtent=function(x,z){return z.timeExtent&&Array.isArray(z.timeExtent)&&2===z.timeExtent.length?new c({start:new Date(z.timeExtent[0]),end:new Date(z.timeExtent[1])}):null};v.writeFullTimeExtent=
function(x,z){x&&u.isSome(x.start)&&u.isSome(x.end)?z.timeExtent=[x.start.getTime(),x.end.getTime()]:z.timeExtent=null};v.readInterval=function(x,z){return z.timeInterval&&z.timeIntervalUnits?new e({value:z.timeInterval,unit:m.timeUnitKebabDictionary.fromJSON(z.timeIntervalUnits)}):z.defaultTimeInterval&&z.defaultTimeIntervalUnits?new e({value:z.defaultTimeInterval,unit:m.timeUnitKebabDictionary.fromJSON(z.defaultTimeIntervalUnits)}):null};v.writeInterval=function(x,z){x?(x=x.toJSON(),z.timeInterval=
x.value,z.timeIntervalUnits=x.unit):(z.timeInterval=null,z.timeIntervalUnits=null)};v.clone=function(){const {cumulative:x,endField:z,hasLiveData:y,interval:A,startField:B,timeReference:E,fullTimeExtent:w,trackIdField:D,useTime:C}=this;return new t({cumulative:x,endField:z,hasLiveData:y,interval:A,startField:B,timeReference:n.clone(E),fullTimeExtent:n.clone(w),trackIdField:D,useTime:C})};return q}(d.JSONSupport);b.__decorate([r.property({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},
write:{target:"exportOptions.timeDataCumulative"}}})],d.prototype,"cumulative",void 0);b.__decorate([r.property({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],d.prototype,"endField",void 0);b.__decorate([r.property({type:c,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"fullTimeExtent",void 0);b.__decorate([g.reader("fullTimeExtent",["timeExtent"])],d.prototype,"readFullTimeExtent",null);b.__decorate([p.writer("fullTimeExtent")],d.prototype,"writeFullTimeExtent",
null);b.__decorate([r.property({type:Boolean,json:{write:!0}})],d.prototype,"hasLiveData",void 0);b.__decorate([r.property({type:e,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"interval",void 0);b.__decorate([g.reader("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],d.prototype,"readInterval",null);b.__decorate([p.writer("interval")],d.prototype,"writeInterval",null);b.__decorate([r.property({type:String,json:{read:{source:"startTimeField"},
write:{target:"startTimeField",allowNull:!0}}})],d.prototype,"startField",void 0);b.__decorate([r.property({type:l,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"timeReference",void 0);b.__decorate([r.property({type:String,json:{write:{enabled:!0,allowNull:!0}}})],d.prototype,"trackIdField",void 0);b.__decorate([r.property({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],d.prototype,"useTime",void 0);return d=t=b.__decorate([k.subclass("esri.layers.support.TimeInfo")],
d)})},"esri/layers/support/TimeReference":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){var h;c=h=function(g){function k(l){l=g.call(this,l)||this;l.respectsDaylightSaving=!1;l.timezone=null;return l}a._inheritsLoose(k,
g);var p=k.prototype;p.readRespectsDaylightSaving=function(l,m){return void 0!==m.respectsDaylightSaving?m.respectsDaylightSaving:void 0!==m.respectDaylightSaving?m.respectDaylightSaving:!1};p.clone=function(){const {respectsDaylightSaving:l,timezone:m}=this;return new h({respectsDaylightSaving:l,timezone:m})};return k}(c.JSONSupport);b.__decorate([e.property({type:Boolean,json:{write:!0}})],c.prototype,"respectsDaylightSaving",void 0);b.__decorate([u.reader("respectsDaylightSaving",["respectsDaylightSaving",
"respectDaylightSaving"])],c.prototype,"readRespectsDaylightSaving",null);b.__decorate([e.property({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],c.prototype,"timezone",void 0);return c=h=b.__decorate([r.subclass("esri.layers.support.TimeReference")],c)})},"esri/layers/support/FeatureTemplate":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){e=new e.JSONMap({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"});c=function(g){function k(p){p=g.call(this,p)||this;p.name=null;p.description=null;p.drawingTool=null;p.prototype=null;p.thumbnail=null;return p}a._inheritsLoose(k,g);return k}(c.ClonableMixin(d.JSONSupport));b.__decorate([n.property({json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([n.property({json:{write:!0}})],c.prototype,"description",void 0);b.__decorate([n.property({json:{read:e.read,
write:e.write}})],c.prototype,"drawingTool",void 0);b.__decorate([n.property({json:{write:!0}})],c.prototype,"prototype",void 0);b.__decorate([n.property({json:{write:!0}})],c.prototype,"thumbnail",void 0);return c=b.__decorate([h.subclass("esri.layers.support.FeatureTemplate")],c)})},"esri/layers/support/FeatureType":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./domains ./FeatureTemplate".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){c=function(l){function m(f){f=l.call(this,f)||this;f.id=null;f.name=null;f.domains=null;f.templates=null;return f}a._inheritsLoose(m,l);var t=m.prototype;t.readDomains=function(f){const q={};for(const v of Object.keys(f))q[v]=k.fromJSON(f[v]);return q};t.writeDomains=function(f,q){const v={};for(const x of Object.keys(f))f[x]&&(v[x]=f[x]?.toJSON());q.domains=v};return m}(c.ClonableMixin(e.JSONSupport));b.__decorate([d.property({json:{write:!0}})],c.prototype,"id",
void 0);b.__decorate([d.property({json:{write:!0}})],c.prototype,"name",void 0);b.__decorate([d.property({json:{write:!0}})],c.prototype,"domains",void 0);b.__decorate([r.reader("domains")],c.prototype,"readDomains",null);b.__decorate([g.writer("domains")],c.prototype,"writeDomains",null);b.__decorate([d.property({type:[p],json:{write:!0}})],c.prototype,"templates",void 0);return c=b.__decorate([h.subclass("esri.layers.support.FeatureType")],c)})},"esri/layers/support/fieldProperties":function(){define(["exports",
"../../core/Logger","./Field","./FieldsIndex","./fieldUtils"],function(a,b,c,e,d){a.defineFieldProperties=function(){return{fields:{type:[c],value:null},fieldsIndex:{readOnly:!0,get(){return new e(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(n){this._userOutFields=n;this.notifyChange("outFields")},get:function(){const n=this._userOutFields;if(!n||!n.length)return null;if(n.includes("*"))return["*"];if(!this.fields)return n;for(const u of n)this.fieldsIndex?.has(u)||b.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",
`Invalid field ${u} found in outFields`,{layer:this,outFields:n});return d.fixFields(this.fieldsIndex,n)}}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/FieldsIndex":function(){define(["../../chunks/_rollupPluginBabelHelpers","./fieldUtils"],function(a,b){function c(d){return"oid"===d.type||"esriFieldTypeOID"===d.type}function e(d){return"global-id"===d.type||"esriFieldTypeGlobalID"===d.type}return function(){function d(u=[]){this.fields=
[];this._fieldsMap=new Map;this._normalizedFieldsMap=new Map;this._dateFieldsSet=new Set;this._numericFieldsSet=new Set;this.dateFields=[];this.numericFields=[];this._requiredFields=null;if(u){this.fields=u;var r=[];for(const h of u)if(u=h&&h.name){const g=u.trim().toLowerCase(),k=b.normalizeFieldName(u).toLowerCase();this._fieldsMap.set(u,h);this._fieldsMap.set(g,h);this._normalizedFieldsMap.set(k,h);r.push(g);"date"===h.type||"esriFieldTypeDate"===h.type?(this.dateFields.push(h),this._dateFieldsSet.add(h)):
b.isNumericField(h)&&(this._numericFieldsSet.add(h),this.numericFields.push(h));c(h)||e(h)||(h.editable=null==h.editable?!0:!!h.editable,h.nullable=null==h.nullable?!0:!!h.nullable)}r.sort();this.uid=r.join(",")}}var n=d.prototype;n.destroy=function(){this._fieldsMap.clear()};n.has=function(u){return null!=this.get(u)};n.get=function(u){if(u){var r=this._fieldsMap.get(u);if(r)return r;(r=this._fieldsMap.get(u.trim().toLowerCase())??this._normalizedFieldsMap.get(b.normalizeFieldName(u).toLowerCase()))&&
this._fieldsMap.set(u,r);return r}};n.isDateField=function(u){return this._dateFieldsSet.has(this.get(u))};n.isNumericField=function(u){return this._numericFieldsSet.has(this.get(u))};n.normalizeFieldName=function(u){if(u=this.get(u))return u.name??void 0};a._createClass(d,[{key:"requiredFields",get:function(){if(!this._requiredFields){this._requiredFields=[];for(const u of this.fields)c(u)||e(u)||u.nullable||void 0!==b.getFieldDefaultValue(u)||this._requiredFields.push(u)}return this._requiredFields}}]);
return d}()})},"esri/layers/support/labelingInfo":function(){define(["exports","../../core/Error","../../core/lang","../../core/Logger","./LabelClass"],function(a,b,c,e,d){const n=e.getLogger("esri.layers.support.labelingInfo"),u=/\[([^\[\]]+)\]/gi,r={esriGeometryPoint:"above-right above-center above-left center-center center-left center-right below-center below-left below-right".split(" "),esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};
a.reader=function(h,g,k){return h?h.map(p=>{const l=new d;l.read(p,k);if(l.labelExpression){const m=g.fields||g.layerDefinition&&g.layerDefinition.fields||this.fields;l.labelExpression=l.labelExpression.replace(u,(t,f)=>{a:if(m){t=f.toLowerCase();for(let q=0;q<m.length;q++){const v=m[q].name;if(v.toLowerCase()===t){f=v;break a}}}return`[${f}]`})}return l}):null};a.validateLabelingInfo=function(h,g){h=c.clone(h);return h.some(k=>{{const l=k.labelPlacement;var p=r[g];k.symbol?p?(p.includes(l)||(p=p[0],
l&&n.warn(`Found invalid label placement type ${l} for ${g}. Defaulting to ${p}`),k.labelPlacement=p),k=!1):(n.error(new b("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${g}' is not supported`)),k=!0):(n.warn("No ILabelClass symbol specified."),k=!0)}return k})?[]:h};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/versionUtils":function(){define(["exports","./arcgisLayerUrl"],function(a,b){const c=
[];c.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(var d=9712;9713>=d;d++)e.add(d);for(d=9748;9749>=d;d++)e.add(d);for(d=20904;20932>=d;d++)e.add(d);for(d=21004;21032>=d;d++)e.add(d);for(d=21207;21264>=d;d++)e.add(d);for(d=21307;21364>=d;d++)e.add(d);for(d=102759;102760>=d;d++)e.add(d);for(d=102901;102955>=d;d++)e.add(d);return e}]);c.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(var d=9356;9360>=d;d++)e.add(d);
for(d=9404;9407>=d;d++)e.add(d);for(d=9476;9482>=d;d++)e.add(d);for(d=9487;9494>=d;d++)e.add(d);for(d=9697;9699>=d;d++)e.add(d);return e}]);c.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(var d=9248;9254>=d;d++)e.add(d);for(d=9271;9273>=d;d++)e.add(d);for(d=9284;9285>=d;d++)e.add(d);for(d=21453;21463>=d;d++)e.add(d);return e}]);c.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(var d=8035;8036>=d;d++)e.add(d);
for(d=8455;8456>=d;d++)e.add(d);for(d=8518;8529>=d;d++)e.add(d);for(d=8533;8536>=d;d++)e.add(d);for(d=8538;8540>=d;d++)e.add(d);for(d=8677;8679>=d;d++)e.add(d);for(d=8902;8903>=d;d++)e.add(d);for(d=8907;8910>=d;d++)e.add(d);for(d=8949;8951>=d;d++)e.add(d);for(d=8972;8987>=d;d++)e.add(d);for(d=9039;9040>=d;d++)e.add(d);for(d=9068;9069>=d;d++)e.add(d);for(d=9140;9141>=d;d++)e.add(d);for(d=9148;9150>=d;d++)e.add(d);for(d=9153;9159>=d;d++)e.add(d);for(d=9205;9218>=d;d++)e.add(d);for(d=9221;9222>=d;d++)e.add(d);
for(d=54098;54101>=d;d++)e.add(d);return e}]);c.push([10.71,()=>{const e=new Set([6316]);for(var d=8351;8353>=d;d++)e.add(d);for(d=9294;9297>=d;d++)e.add(d);for(d=103586;103594>=d;d++)e.add(d);for(d=103696;103698>=d;d++)e.add(d);return e}]);c.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(var d=8065;8068>=d;d++)e.add(d);for(d=8082;8083>=d;d++)e.add(d);for(d=8379;8385>=d;d++)e.add(d);for(d=8836;8840>=d;d++)e.add(d);for(d=8857;8860>=d;d++)e.add(d);
for(d=53035;53037>=d;d++)e.add(d);for(d=54090;54091>=d;d++)e.add(d);for(d=102498;102499>=d;d++)e.add(d);return e}]);c.push([10.61,()=>new Set([102497])]);c.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(var d=7755;7787>=d;d++)e.add(d);for(d=7791;7795>=d;d++)e.add(d);for(d=7799;7801>=d;d++)e.add(d);for(d=7825;7831>=d;d++)e.add(d);for(d=7877;7878>=d;d++)e.add(d);for(d=7882;7883>=d;d++)e.add(d);for(d=7991;7992>=d;d++)e.add(d);for(d=8042;8043>=
d;d++)e.add(d);for(d=8058;8059>=d;d++)e.add(d);for(d=8311;8348>=d;d++)e.add(d);for(d=9060;9067>=d;d++)e.add(d);for(d=102562;102568>=d;d++)e.add(d);for(d=102799;102900>=d;d++)e.add(d);return e}]);c.push([10.51,()=>{const e=new Set([7683,7881,7886,7899,8888,9E3]);for(var d=8013;8032>=d;d++)e.add(d);for(d=9053;9057>=d;d++)e.add(d);for(d=104017;104018>=d;d++)e.add(d);for(d=104971;104974>=d;d++)e.add(d);return e}]);c.push([10.5,()=>{const e=new Set([6962,7035,7037,7039,7041,7084,7086,7133,7798,102399]);
for(var d=4087;4088>=d;d++)e.add(d);for(d=5896;5899>=d;d++)e.add(d);for(d=7005;7007>=d;d++)e.add(d);for(d=7057;7070>=d;d++)e.add(d);for(d=7073;7082>=d;d++)e.add(d);for(d=7109;7128>=d;d++)e.add(d);for(d=7844;7859>=d;d++)e.add(d);return e}]);a.serviceSupportsSpatialReference=function(e,d){if(b.isHostedAgolService(e.url??""))return!0;({wkid:d}=d);for(const n of c){if((e.version??0)>=n[0])break;"function"===typeof n[1]&&(n[1]=n[1]());if(n[1].has(d))return!1}return!0};Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/support/TopFeaturesQuery":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/maybe ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./TopFilter ../../geometry/SpatialReference".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){var f;const q=new d.JSONMap({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});d=new d.JSONMap({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",
esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});n=f=function(v){function x(y){y=v.call(this,y)||this;y.cacheHint=void 0;y.distance=void 0;y.geometry=null;y.geometryPrecision=void 0;y.maxAllowableOffset=void 0;y.num=void 0;y.objectIds=null;y.orderByFields=null;y.outFields=null;y.outSpatialReference=null;y.resultType=null;y.returnGeometry=!1;y.returnM=void 0;y.returnZ=void 0;y.start=void 0;y.spatialRelationship=
"intersects";y.timeExtent=null;y.topFilter=void 0;y.units=null;y.where="1\x3d1";return y}a._inheritsLoose(x,v);var z=x.prototype;z.writeStart=function(y,A){A.resultOffset=this.start;A.resultRecordCount=this.num||10};z.clone=function(){return new f(u.clone({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,
outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))};return x}(n.JSONSupport);b.__decorate([h.property({type:Boolean,json:{write:!0}})],n.prototype,"cacheHint",void 0);b.__decorate([h.property({type:Number,json:{write:{overridePolicy(v){return{enabled:0<
v}}}}})],n.prototype,"distance",void 0);b.__decorate([h.property({types:c.geometryTypes,json:{read:l.fromJSON,write:!0}})],n.prototype,"geometry",void 0);b.__decorate([h.property({type:Number,json:{write:!0}})],n.prototype,"geometryPrecision",void 0);b.__decorate([h.property({type:Number,json:{write:!0}})],n.prototype,"maxAllowableOffset",void 0);b.__decorate([h.property({type:Number,json:{read:{source:"resultRecordCount"}}})],n.prototype,"num",void 0);b.__decorate([h.property({json:{write:!0}})],
n.prototype,"objectIds",void 0);b.__decorate([h.property({type:[String],json:{write:!0}})],n.prototype,"orderByFields",void 0);b.__decorate([h.property({type:[String],json:{write:!0}})],n.prototype,"outFields",void 0);b.__decorate([h.property({type:t,json:{read:{source:"outSR"},write:{target:"outSR"}}})],n.prototype,"outSpatialReference",void 0);b.__decorate([h.property({type:String,json:{write:!0}})],n.prototype,"resultType",void 0);b.__decorate([h.property({json:{write:!0}})],n.prototype,"returnGeometry",
void 0);b.__decorate([h.property({type:Boolean,json:{write:{overridePolicy(v){return{enabled:v}}}}})],n.prototype,"returnM",void 0);b.__decorate([h.property({type:Boolean,json:{write:{overridePolicy(v){return{enabled:v}}}}})],n.prototype,"returnZ",void 0);b.__decorate([h.property({type:Number,json:{read:{source:"resultOffset"}}})],n.prototype,"start",void 0);b.__decorate([p.writer("start"),p.writer("num")],n.prototype,"writeStart",null);b.__decorate([h.property({type:String,json:{read:{source:"spatialRel",
reader:q.read},write:{target:"spatialRel",writer:q.write}}})],n.prototype,"spatialRelationship",void 0);b.__decorate([h.property({type:e,json:{write:!0}})],n.prototype,"timeExtent",void 0);b.__decorate([h.property({type:m,json:{write:!0}})],n.prototype,"topFilter",void 0);b.__decorate([h.property({type:String,json:{read:d.read,write:{writer:d.write,overridePolicy(v){return{enabled:r.isSome(v)&&r.isSome(this.distance)&&0<this.distance}}}}})],n.prototype,"units",void 0);b.__decorate([h.property({type:String,
json:{write:!0}})],n.prototype,"where",void 0);n=f=b.__decorate([k.subclass("esri.rest.support.TopFeaturesQuery")],n);n.from=g.ensureType(n);return n})},"esri/rest/support/TopFilter":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u){var r;c=r=function(h){function g(k){k=
h.call(this,k)||this;k.groupByFields=void 0;k.topCount=void 0;k.orderByFields=void 0;return k}a._inheritsLoose(g,h);g.prototype.clone=function(){return new r({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})};return g}(c.JSONSupport);b.__decorate([e.property({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0);b.__decorate([e.property({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0);b.__decorate([e.property({type:[String],json:{write:!0}})],
c.prototype,"orderByFields",void 0);return c=r=b.__decorate([u.subclass("esri.rest.support.TopFilter")],c)})},"esri/support/popupUtils":function(){define("exports ../PopupTemplate ../layers/support/fieldUtils ../popup/content/AttachmentsContent ../popup/content/Content ../popup/content/CustomContent ../popup/content/ExpressionContent ../popup/content/FieldsContent ../popup/content/MediaContent ../popup/content/RelationshipContent ../popup/content/TextContent ../popup/FieldInfo ../popup/support/FieldInfoFormat".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){function m(C,F){const G=C;F&&(C=C.filter(H=>!F.includes(H.type)));C===G&&(C=C.slice());C.sort(t);return C}function t(C,F){return"oid"===C.type?-1:"oid"===F.type?1:y(C)?-1:y(F)?1:(C.alias||C.name).toLocaleLowerCase().localeCompare((F.alias||F.name).toLocaleLowerCase())}function f(C,F){if(!C||!F)return!1;const {creationDateField:G,creatorField:H,editDateField:I,editorField:J}=F;return[G&&G.toLowerCase(),H&&H.toLowerCase(),I&&I.toLowerCase(),J&&J.toLowerCase()].includes(C.toLowerCase())}
function q({editFieldsInfo:C,fields:F,objectIdField:G},H){return m(F??[],H?.ignoreFieldTypes||D).map(I=>{var J=I.name;var K=I.editable&&!B.includes(I.type)&&!f(I.name,C);return new p({fieldName:J,isEditable:K,label:I.alias,format:z(I),visible:w(I,{editFieldsInfo:C,objectIdField:G,visibleFieldNames:H?.visibleFieldNames})})})}function v(C,F){return C.map(G=>new p({fieldName:G.name,isEditable:!1,label:G.alias,format:x(G,F),visible:!0}))}function x(C,F){const {onStatisticField:G,onStatisticExpression:H,
statisticType:I}=C;return G&&(C=F.find(J=>G===J.name))?z(C):"number"===H?.returnType?new l({digitSeparator:!0,places:2}):"count"===I?new l({digitSeparator:!0,places:0}):null}function z(C){switch(C.type){case "small-integer":case "integer":case "single":return new l({digitSeparator:!0,places:0});case "double":return new l({digitSeparator:!0,places:2});case "date":return new l({dateFormat:"long-month-day-year"});default:return"string"===C.type&&c.isRasterPixelValueField(C.name)?new l({digitSeparator:!0,
places:0}):null}}function y(C){return"name"===(C.name&&C.name.toLowerCase())||"name"===(C.alias&&C.alias.toLowerCase())?!0:!1}const A=["oid","global-id"],B=["oid","global-id","guid"],E=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],w=(C,{editFieldsInfo:F,objectIdField:G,visibleFieldNames:H})=>H?H.has(C.name):f(C.name,F)?!1:G&&C.name===G?!1:A.includes(C.type)?!1:!E.some(I=>I.test(C.name)),
D=["geometry","blob","raster","guid","xml"];a.createFieldInfos=q;a.createFieldsContent=function(C,F){return new r({fieldInfos:q(C,F).filter(G=>G.visible)})};a.createPopupTemplate=function({displayField:C,editFieldsInfo:F,fields:G,objectIdField:H,title:I},J){if(!G)return null;F=q({editFieldsInfo:F,fields:G,objectIdField:H},J);if(!F.length)return null;G={titleBase:I,fields:G,displayField:C};C=c.getDisplayFieldName(G);({titleBase:G}=G);C=C?`${G}: {${C.trim()}}`:G??"";G=[new r,new e];return new b({title:C,
content:G,fieldInfos:F})};a.createPopupTemplateForFeatureReduction=function(C){const {fields:F,featureReduction:G,title:H}=C;C=G.fields;if(!C)return null;C=v(C,F);if(!C.length)return null;var I=[new r];return new b({title:H,content:I,fieldInfos:C})};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/graphics/sources/FeatureLayerSource":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../geometry ../../../Graphic ../../../request ../../../TimeExtent ../../../core/Error ../../../core/has ../../../core/jsonMap ../../../core/Loadable ../../../core/maybe ../../../core/object ../../../core/promiseUtils ../../../core/urlUtils ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../../geometry/Extent ../../../geometry/support/jsonUtils ../assetEditingSupport ./support/clientSideDefaults ./support/QueryTask ../../support/arcgisLayerUrl ../../../rest/query/operations/editsZScale ../../../geometry/SpatialReference".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D){function C(J){return F.apply(this,arguments)}function F(){F=a._asyncToGenerator(function*(J){if("string"===typeof J){const K=m.dataComponents(J);return K?K:{data:J}}return new Promise((K,N)=>{const U=new FileReader;U.readAsDataURL(J);U.onload=()=>K(m.dataComponents(U.result));U.onerror=ba=>N(ba)})});return F.apply(this,arguments)}const G=new h.JSONMap({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),H=new Set(["Feature Layer",
"Table"]),I=new h.JSONMap({Started:"published",Publishing:"publishing",Stopped:"unavailable"});c=function(J){function K(){var U=J.apply(this,arguments)||this;U.type="feature-layer";U.refresh=l.debounce(a._asyncToGenerator(function*(){yield U.load();var ba=U.sourceJSON.editingInfo?.lastEditDate;if(null==ba)return{dataChanged:!0,updates:{}};try{yield U._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}ba=ba!==U.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:ba,updates:ba?{editingInfo:U.sourceJSON.editingInfo,
extent:U.sourceJSON.extent}:null}}));return U}a._inheritsLoose(K,J);var N=K.prototype;N.load=function(U){U=k.isSome(U)?U.signal:null;this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,U));return Promise.resolve(this)};N.addAttachment=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();ba=ba.attributes[this.layer.objectIdField];const P=this.layer.parsedUrl.path+"/"+ba+"/addAttachment",V=this._getLayerRequestOptions();ka=this._getFormDataForAttachment(ka,V.query);
try{const ca=yield d(P,{body:ka});return this._createFeatureEditResult(ca.data.addAttachmentResult)}catch(ca){throw this._createAttachmentErrorResult(ba,ca);}});return function(ba,ka){return U.apply(this,arguments)}}();N.updateAttachment=function(){var U=a._asyncToGenerator(function*(ba,ka,P){yield this.load();ba=ba.attributes[this.layer.objectIdField];const V=this.layer.parsedUrl.path+"/"+ba+"/updateAttachment";ka=this._getLayerRequestOptions({query:{attachmentId:ka}});P=this._getFormDataForAttachment(P,
ka.query);try{const ca=yield d(V,{body:P});return this._createFeatureEditResult(ca.data.updateAttachmentResult)}catch(ca){throw this._createAttachmentErrorResult(ba,ca);}});return function(ba,ka,P){return U.apply(this,arguments)}}();N.applyEdits=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();const P=this.layer.infoFor3D;var V=k.isSome(P),ca=V||(ka?.globalIdUsed??!1),ra=ba.addFeatures?.map(L=>this._serializeFeature(L,P)).filter(k.isSome)??[],ta=ba.updateFeatures?.map(L=>this._serializeFeature(L,
P)).filter(k.isSome)??[];const Ba=this._getFeatureIds(ba.deleteFeatures,ca);w.unapplyEditsZUnitScaling(ra,ta,this.layer.spatialReference);var Ha=[],da=[],la=[...(ba.deleteAttachments??[])];for(const L of ba.addAttachments??[])Ha.push(yield this._serializeAttachment(L));for(const L of ba.updateAttachments??[])da.push(yield this._serializeAttachment(L));da=Ha.length||da.length||la.length?{adds:Ha,updates:da,deletes:la}:null;la=void 0;Ha=null;if(V){Ha=new Map;la=[];for(const L of ba.addAssets??[])la.push(this._serializeAssetMapEditAndUploadAssets(L,
Ha));ba=yield Promise.all(la);la=ba.length?{adds:ba,updates:[],deletes:[]}:void 0}ba={gdbVersion:ka?.gdbVersion||this.layer.gdbVersion,rollbackOnFailure:ka?.rollbackOnFailureEnabled,useGlobalIds:ca,returnEditMoment:ka?.returnEditMoment,usePreviousEditMoment:ka?.usePreviousEditMoment,sessionId:ka?.sessionId};ka?.returnServiceEditsOption?(ba.edits=JSON.stringify([{id:this.layer.layerId,adds:ra,updates:ta,deletes:Ba,attachments:da,assetMaps:k.unwrap(la)}]),ba.returnServiceEditsOption=G.toJSON(ka?.returnServiceEditsOption),
ba.returnServiceEditsInSourceSR=ka?.returnServiceEditsInSourceSR):(ba.adds=ra.length?JSON.stringify(ra):null,ba.updates=ta.length?JSON.stringify(ta):null,ba.deletes=Ba.length?ca?JSON.stringify(Ba):Ba.join(","):null,ba.attachments=da&&JSON.stringify(da),ba.assetMaps=k.isSome(la)?JSON.stringify(la):void 0);ra=this._getLayerRequestOptions({method:"post",query:ba});ca=ka?.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path;ka=yield d(ca+"/applyEdits",ra);if(V&&null!=ka.data&&null!=ka.data.assetMaps){ta=
ka.data;V=this.layer.objectIdField;ra=[];for(var sa of ta.addResults)sa.success&&ra.push(sa.objectId);for(const L of ta.updateResults)L.success&&ra.push(L.objectId);sa=this._createRequestQueryOptions();if((sa=yield d(ca+"/query",{...sa,query:{f:"json",formatOf3DObjects:"3D_glb",where:`OBJECTID IN (${ra.join(",")})`,outFields:`${V}`}}))&&sa.data&&sa.data.assetMaps&&k.isSome(Ha)){sa=sa.data.assetMaps;for(const L of sa)sa=Ha.get(L.parentGlobalId).geometry,k.isSome(sa)&&"mesh"===sa.type&&sa.updateExternalSource({source:[{name:L.assetName,
source:L.assetName}],extent:sa.extent})}}return this._createEditsResult(ka)});return function(ba,ka){return U.apply(this,arguments)}}();N.deleteAttachments=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();ba=ba.attributes[this.layer.objectIdField];const P=this.layer.parsedUrl.path+"/"+ba+"/deleteAttachments";try{return(yield d(P,this._getLayerRequestOptions({query:{attachmentIds:ka.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(V){throw this._createAttachmentErrorResult(ba,
V);}});return function(ba,ka){return U.apply(this,arguments)}}();N.fetchRecomputedExtents=function(U={}){var ba=this;return this.load({signal:U.signal}).then(a._asyncToGenerator(function*(){var ka=ba._getLayerRequestOptions({...U,query:{returnUpdates:!0}});const {layerId:P,url:V}=ba.layer;({data:ka}=yield d(`${V}/${P}`,ka));const {id:ca,extent:ra,fullExtent:ta,timeExtent:Ba}=ka;ka=ra||ta;return{id:ca,fullExtent:ka&&x.fromJSON(ka),timeExtent:Ba&&n.fromJSON({start:Ba[0],end:Ba[1]})}}))};N.queryAttachments=
function(){var U=a._asyncToGenerator(function*(ba,ka={}){yield this.load();ka=this._getLayerRequestOptions(ka);return this.queryTask.executeAttachmentQuery(ba,ka)});return function(ba){return U.apply(this,arguments)}}();N.queryFeatures=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.execute(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryFeaturesJSON=function(){var U=a._asyncToGenerator(function*(ba,
ka){yield this.load();return this.queryTask.executeJSON(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryObjectIds=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeForIds(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryFeatureCount=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();
return this.queryTask.executeForCount(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryExtent=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeForExtent(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryRelatedFeatures=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeRelationshipQuery(ba,
{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryRelatedFeaturesCount=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeRelationshipQueryForCount(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryTopFeatures=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeTopFeaturesQuery(ba,
{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryTopObjectIds=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeForTopIds(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.queryTopExtents=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeForTopExtents(ba,{...ka,query:this._createRequestQueryOptions(ka)})});
return function(ba,ka){return U.apply(this,arguments)}}();N.queryTopCount=function(){var U=a._asyncToGenerator(function*(ba,ka){yield this.load();return this.queryTask.executeForTopCount(ba,{...ka,query:this._createRequestQueryOptions(ka)})});return function(ba,ka){return U.apply(this,arguments)}}();N.fetchPublishingStatus=function(){var U=a._asyncToGenerator(function*(){if(!E.isHostedAgolService(this.layer.url))return"unavailable";var ba=m.join(this.layer.url,"status");ba=yield d(ba,{query:{f:"json"}});
return I.fromJSON(ba.data.status)});return function(){return U.apply(this,arguments)}}();N._createRequestQueryOptions=function(U){U={...this.layer.customParameters,token:this.layer.apiKey,...U?.query};this.layer.datesInUnknownTimezone&&(U.timeReferenceUnknownClient=!0);return U};N._fetchService=function(){var U=a._asyncToGenerator(function*(ba,ka){ba||({data:ba}=yield d(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:ka})));
this.sourceJSON=this._patchServiceJSON(ba);ba=ba.type;if(!H.has(ba))throw new u("feature-layer-source:unsupported-type",`Source type "${ba}" is not supported`);});return function(ba,ka){return U.apply(this,arguments)}}();N._patchServiceJSON=function(U){if("Table"!==U.type&&U.geometryType&&!U?.drawingInfo?.renderer&&!U.defaultSymbol){const ba=A.createDrawingInfo(U.geometryType).renderer;p.setDeepValue("drawingInfo.renderer",ba,U)}"esriGeometryMultiPatch"===U.geometryType&&U.infoFor3D&&(U.geometryType=
"mesh");return U};N._serializeFeature=function(U,ba){const {geometry:ka,attributes:P}=U;if(k.isSome(ba)&&k.isSome(U.geometry)&&"mesh"===U.geometry.type){const ca={...P};U=U.geometry;var V=U.origin;U=U.transform;ca[ba.transformFieldRoles.originX]=V.x;ca[ba.transformFieldRoles.originY]=V.y;ca[ba.transformFieldRoles.originZ]=V.z;if(k.isSome(U)){V=U.translation;const ra=U.scale;U=U.rotation;ca[ba.transformFieldRoles.translationX]=V[0];ca[ba.transformFieldRoles.translationY]=-V[2];ca[ba.transformFieldRoles.translationZ]=
V[1];ca[ba.transformFieldRoles.scaleX]=ra[0];ca[ba.transformFieldRoles.scaleY]=ra[1];ca[ba.transformFieldRoles.scaleZ]=ra[2];ca[ba.transformFieldRoles.rotationX]=U[0];ca[ba.transformFieldRoles.rotationY]=U[2];ca[ba.transformFieldRoles.rotationZ]=U[1];ca[ba.transformFieldRoles.rotationDeg]=U[3]}return{geometry:null,attributes:ca}}return k.isNone(ka)?{attributes:P}:"mesh"===ka.type||"extent"===ka.type?null:{geometry:ka.toJSON(),attributes:P}};N._serializeAttachment=function(){var U=a._asyncToGenerator(function*(ba){const {feature:ka,
attachment:P}=ba,{globalId:V,name:ca,contentType:ra,data:ta,uploadId:Ba}=P;ba={globalId:V,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};ka&&(ba.parentGlobalId="attributes"in ka?ka.attributes&&ka.attributes[this.layer.globalIdField]:ka.globalId);if(Ba)ba.uploadId=Ba;else if(ta){const Ha=yield C(ta);Ha&&(ba.contentType=Ha.mediaType,ba.data=Ha.data);ta instanceof File&&(ba.name=ta.name)}ca&&(ba.name=ca);ra&&(ba.contentType=ra);return ba});return function(ba){return U.apply(this,
arguments)}}();N._serializeAssetMapEditAndUploadAssets=function(){var U=a._asyncToGenerator(function*(ba,ka){var P=this.layer.url,V=null;try{const ca=new Blob([ba.data],{type:ba.mimeType}),ra=new FormData;ra.append("f","json");ra.append("file",ca,`${ba.assetName}`);const {data:ta}=yield d(`${P}/uploads/upload`,{body:ra,method:"post",responseType:"json"});if(!ta.success)throw new u("feature-layer-source:upload-failure","Expected upload to be successfull.");V={assetType:ba.assetType,assetUploadId:ta.item.itemID}}catch(ca){V=
null}if(k.isNone(V)){P=yield C(new Blob([ba.data]));if(!P.isBase64)throw new u("feature-layer-source:uploadAssets-failure","Expected gltf data in base64 format after conversion.");V={assetType:ba.assetType,assetData:P.data}}if(k.isNone(V))throw new u("feature-layer-source:uploadAssets-failure","Unable to prepare uploadAsset request options.");P={method:"post",query:{f:"json",assets:JSON.stringify([V])},responseType:"json"};P=yield d(m.join(this.layer.parsedUrl.path,"uploadAssets"),P);if(1!==P.data.uploadResults.length||
!P.data.uploadResults[0].success)throw new u("feature-layer-source:uploadAssets-failure","Bad response.");P=P.data.uploadResults[0].assetHash;V=[];ba.flags&y.AssetMapEditFlags.PROJECT_VERTICES&&V.push("PROJECT_VERTICES");P={globalId:ba.assetMapGlobalId,parentGlobalId:ba.featureGlobalId,assetName:ba.assetName,assetHash:P,flags:V};ka.set(ba.featureGlobalId,ba.feature);return P});return function(ba,ka){return U.apply(this,arguments)}}();N._getFeatureIds=function(U,ba){const ka=U?.[0];return ka?this._canUseGlobalIds(ba,
U)?this._getGlobalIdsFromFeatureIdentifier(U):"objectId"in ka?this._getObjectIdsFromFeatureIdentifier(U):this._getIdsFromFeatures(U):[]};N._getIdsFromFeatures=function(U){const ba=this.layer.objectIdField;return U.map(ka=>ka.attributes&&ka.attributes[ba])};N._canUseGlobalIds=function(U,ba){return U&&"globalId"in ba[0]};N._getObjectIdsFromFeatureIdentifier=function(U){return U.map(ba=>ba.objectId)};N._getGlobalIdsFromFeatureIdentifier=function(U){return U.map(ba=>ba.globalId)};N._createEditsResult=
function(U){const ba=U.data,{layerId:ka}=this.layer;U=[];let P=null;if(Array.isArray(ba))for(var V of ba)U.push({id:V.id,editedFeatures:V.editedFeatures}),V.id===ka&&(P={addResults:V.addResults??[],updateResults:V.updateResults??[],deleteResults:V.deleteResults??[],attachments:V.attachments,editMoment:V.editMoment});else P=ba;V=P?.attachments;V={addFeatureResults:P?.addResults?.map(this._createFeatureEditResult,this)??[],updateFeatureResults:P?.updateResults?.map(this._createFeatureEditResult,this)??
[],deleteFeatureResults:P?.deleteResults?.map(this._createFeatureEditResult,this)??[],addAttachmentResults:V&&V.addResults?V.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:V&&V.updateResults?V.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:V&&V.deleteResults?V.deleteResults.map(this._createFeatureEditResult,this):[]};P?.editMoment&&(V.editMoment=P.editMoment);if(0<U.length){V.editedFeatureResults=[];for(const ca of U){const {adds:ra,
updates:ta,deletes:Ba,spatialReference:Ha}=ca.editedFeatures,da=Ha?new D(Ha):null;V.editedFeatureResults.push({layerId:ca.id,editedFeatures:{adds:ra?.map(la=>this._createEditedFeature(la,da))||[],updates:ta?.map(la=>({original:this._createEditedFeature(la[0],da),current:this._createEditedFeature(la[1],da)}))||[],deletes:Ba?.map(la=>this._createEditedFeature(la,da))||[],spatialReference:da}})}}return V};N._createEditedFeature=function(U,ba){return new e({attributes:U.attributes,geometry:z.fromJSON({...U.geometry,
spatialReference:ba})})};N._createFeatureEditResult=function(U){const ba=!0===U.success?null:U.error||{code:void 0,description:void 0};return{objectId:U.objectId,globalId:U.globalId,error:ba?new u("feature-layer-source:edit-failure",ba.description,{code:ba.code}):null}};N._createAttachmentErrorResult=function(U,ba){return{objectId:U,globalId:null,error:new u("feature-layer-source:attachment-failure",ba.details.messages&&ba.details.messages[0]||ba.message,{code:ba.details.httpStatus||ba.details.messageCode})}};
N._getFormDataForAttachment=function(U,ba){if(U=U instanceof FormData?U:U&&U.elements?new FormData(U):null)for(const ka in ba){const P=ba[ka];null!=P&&(U.set?U.set(ka,P):U.append(ka,P))}return U};N._getLayerRequestOptions=function(U={}){const {parsedUrl:ba,gdbVersion:ka,dynamicDataSource:P}=this.layer;return{...U,query:{gdbVersion:ka,layer:P?JSON.stringify({source:P}):void 0,...ba.query,f:"json",...this._createRequestQueryOptions(U)},responseType:"json"}};a._createClass(K,[{key:"queryTask",get:function(){const {capabilities:U,
parsedUrl:ba,dynamicDataSource:ka,infoFor3D:P,gdbVersion:V,spatialReference:ca,fieldsIndex:ra}=this.layer,ta=r("featurelayer-pbf")&&U?.query.supportsFormatPBF&&k.isNone(P);return new B({url:ba.path,pbfSupported:ta,fieldsIndex:ra,infoFor3D:P,dynamicDataSource:ka,gdbVersion:V,sourceSpatialReference:ca,queryAttachmentsSupported:U?.operations?.supportsQueryAttachments??!1})}}]);return K}(g);b.__decorate([t.property()],c.prototype,"type",void 0);b.__decorate([t.property({constructOnly:!0})],c.prototype,
"layer",void 0);b.__decorate([t.property({readOnly:!0})],c.prototype,"queryTask",null);return c=b.__decorate([v.subclass("esri.layers.graphics.sources.FeatureLayerSource")],c)})},"esri/layers/graphics/assetEditingSupport":function(){define(["exports"],function(a){a.AssetMapEditFlags=void 0;var b=a.AssetMapEditFlags||(a.AssetMapEditFlags={});b[b.PROJECT_VERTICES=1]="PROJECT_VERTICES";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/graphics/sources/support/clientSideDefaults":function(){define(["exports",
"../../../../core/has","../../../../core/lang","../../data/QueryEngineCapabilities","../../../../symbols/support/defaultsJSON"],function(a,b,c,e,d){const n=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;a.createCapabilities=function(r,h){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:r},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:h,supportsDelete:h,
supportsEditing:h,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:h,supportsExceedsLimitStatistics:!0},query:e.queryCapabilities,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:h,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,
supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}};a.createDefaultAttributesFunction=function(r,h){if(b("esri-csp-restrictions"))return()=>({[h]:null,...r});try{let g=`this.${h} = null;`;for(const p in r){const l=n.test(p)?`.${p}`:`["${p}"]`;g+=`this${l} = ${JSON.stringify(r[p])};`}const k=(new Function(`\n      return class AttributesClass$${u++} {\n        constructor() {\n          ${g};\n        }\n      }\n    `))();
return()=>new k}catch(g){return()=>({[h]:null,...r})}};a.createDefaultTemplate=function(r={}){return[{name:"New Feature",description:"",prototype:{attributes:c.clone(r)}}]};a.createDrawingInfo=function(r){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===r||"esriGeometryMultipoint"===r?d.defaultPointSymbolJSON:"esriGeometryPolyline"===r?d.defaultPolylineSymbolJSON:d.defaultPolygonSymbolJSON}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/graphics/data/QueryEngineCapabilities":function(){define(["exports"],
function(a){a.queryCapabilities={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,
supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/graphics/sources/support/QueryTask":function(){define("require ../../../../chunks/_rollupPluginBabelHelpers ../../../../chunks/tslib.es6 ../../../../core/Accessor ../../../../core/Error ../../../../core/has ../../../../core/maybe ../../../../core/promiseUtils ../../../../core/urlUtils ../../../../core/accessorSupport/decorators/property ../../../../core/arrayUtils ../../../../core/accessorSupport/ensureType ../../../../core/accessorSupport/decorators/subclass ../../../support/source/DataLayerSource ../../../../rest/utils ../../../../rest/query/executeForCount ../../../../rest/query/executeForExtent ../../../../rest/query/executeForIds ../../../../rest/query/executeQueryJSON ../../../../rest/query/executeQueryPBF ../../../../rest/support/FeatureSet ../../../../rest/support/Query".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A){const B=E=>Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"}));e=function(E){function w(C){C=E.call(this,C)||this;C.dynamicDataSource=null;C.fieldsIndex=null;C.gdbVersion=null;C.infoFor3D=null;C.pbfSupported=!1;C.queryAttachmentsSupported=!1;C.sourceSpatialReference=null;C.url=null;return C}b._inheritsLoose(w,E);var D=w.prototype;D.execute=function(){var C=b._asyncToGenerator(function*(F,G){const H=
yield this.executeJSON(F,G);return this.featureSetFromJSON(F,H,G)});return function(F,G){return C.apply(this,arguments)}}();D.executeJSON=function(){var C=b._asyncToGenerator(function*(F,G){const H=this._normalizeQuery(F);F=null!=F.outStatistics?.[0];const I=n("featurelayer-pbf-statistics");F=!F||I;let J;if(this.pbfSupported&&F)try{J=yield z.executeRawQueryPBF(this.url,H,G)}catch(K){if("query:parsing-pbf"===K.name)this.pbfSupported=!1;else throw K;}this.pbfSupported&&F||(J=yield x.executeRawQueryJSON(this.url,
H,G));this._normalizeFields(J.fields);return J});return function(F,G){return C.apply(this,arguments)}}();D.featureSetFromJSON=function(){var C=b._asyncToGenerator(function*(F,G,H){if(!this._queryIs3DObjectFormat(F)||u.isNone(this.infoFor3D)||!G.assetMaps||!G.features||!G.features.length)return y.fromJSON(G);({meshFeatureSetFromJSON:H}=yield r.whenOrAbort(new Promise((I,J)=>a(["../../../../rest/support/meshFeatureSet"],I,J)),H));return H(F,this.infoFor3D,G)});return function(F,G,H){return C.apply(this,
arguments)}}();D.executeForCount=function(C,F){return f.executeForCount(this.url,this._normalizeQuery(C),F)};D.executeForExtent=function(C,F){return q.executeForExtent(this.url,this._normalizeQuery(C),F)};D.executeForIds=function(C,F){return v.executeForIds(this.url,this._normalizeQuery(C),F)};D.executeRelationshipQuery=function(){var C=b._asyncToGenerator(function*(F,G){const [{default:H},{executeRelationshipQuery:I}]=yield r.whenOrAbort(Promise.all([new Promise((J,K)=>a(["../../../../rest/support/RelationshipQuery"],
N=>J(B(N)),K)),new Promise((J,K)=>a(["../../../../rest/query/executeRelationshipQuery"],J,K))]),G);F=H.from(F);if(this.gdbVersion||this.dynamicDataSource)F=F.clone(),F.gdbVersion=F.gdbVersion||this.gdbVersion,F.dynamicDataSource=F.dynamicDataSource||this.dynamicDataSource;return I(this.url,F,G)});return function(F,G){return C.apply(this,arguments)}}();D.executeRelationshipQueryForCount=function(){var C=b._asyncToGenerator(function*(F,G){const [{default:H},{executeRelationshipQueryForCount:I}]=yield r.whenOrAbort(Promise.all([new Promise((J,
K)=>a(["../../../../rest/support/RelationshipQuery"],N=>J(B(N)),K)),new Promise((J,K)=>a(["../../../../rest/query/executeRelationshipQuery"],J,K))]),G);F=H.from(F);if(this.gdbVersion||this.dynamicDataSource)F=F.clone(),F.gdbVersion=F.gdbVersion||this.gdbVersion,F.dynamicDataSource=F.dynamicDataSource||this.dynamicDataSource;return I(this.url,F,G)});return function(F,G){return C.apply(this,arguments)}}();D.executeAttachmentQuery=function(){var C=b._asyncToGenerator(function*(F,G){const {executeAttachmentQuery:H,
fetchAttachments:I,processAttachmentQueryResult:J}=yield r.whenOrAbort(new Promise((N,U)=>a(["../../../../rest/query/operations/queryAttachments"],N,U)),G),K=t.parseUrl(this.url);F=yield this.queryAttachmentsSupported?H(K,F,G):I(K,F,G);return J(K,F)});return function(F,G){return C.apply(this,arguments)}}();D.executeTopFeaturesQuery=function(){var C=b._asyncToGenerator(function*(F,G){const {executeTopFeaturesQuery:H}=yield r.whenOrAbort(new Promise((I,J)=>a(["../../../../rest/query/executeTopFeaturesQuery"],
I,J)),G);return H(this.parsedUrl,F,this.sourceSpatialReference,G)});return function(F,G){return C.apply(this,arguments)}}();D.executeForTopIds=function(){var C=b._asyncToGenerator(function*(F,G){const {executeForTopIds:H}=yield r.whenOrAbort(new Promise((I,J)=>a(["../../../../rest/query/executeForTopIds"],I,J)),G);return H(this.parsedUrl,F,G)});return function(F,G){return C.apply(this,arguments)}}();D.executeForTopExtents=function(){var C=b._asyncToGenerator(function*(F,G){const {executeForTopExtents:H}=
yield r.whenOrAbort(new Promise((I,J)=>a(["../../../../rest/query/executeForTopExtents"],I,J)),G);return H(this.parsedUrl,F,G)});return function(F,G){return C.apply(this,arguments)}}();D.executeForTopCount=function(){var C=b._asyncToGenerator(function*(F,G){const {executeForTopCount:H}=yield r.whenOrAbort(new Promise((I,J)=>a(["../../../../rest/query/executeForTopCount"],I,J)),G);return H(this.parsedUrl,F,G)});return function(F,G){return C.apply(this,arguments)}}();D._normalizeQuery=function(C){let F=
A.from(C);F.sourceSpatialReference=F.sourceSpatialReference||this.sourceSpatialReference;if(this.gdbVersion||this.dynamicDataSource)F=F===C?F.clone():F,F.gdbVersion=C.gdbVersion||this.gdbVersion,F.dynamicDataSource=C.dynamicDataSource?m.DataLayerSource.from(C.dynamicDataSource):this.dynamicDataSource;if(u.isSome(this.infoFor3D)&&this._queryIs3DObjectFormat(C)){F=F===C?F.clone():F;F.formatOf3DObjects=null;for(const G of this.infoFor3D.queryFormats){if("3D_glb"===G){F.formatOf3DObjects=G;break}"3D_gltf"!==
G||F.formatOf3DObjects||(F.formatOf3DObjects=G)}if(!F.formatOf3DObjects)throw new d("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(u.isNone(F.outFields)||!F.outFields.includes("*")){F=F===C?F.clone():F;u.isNone(F.outFields)&&(F.outFields=[]);const {originX:G,originY:H,originZ:I,translationX:J,translationY:K,translationZ:N,scaleX:U,scaleY:ba,scaleZ:ka,rotationX:P,rotationY:V,rotationZ:ca,rotationDeg:ra}=
this.infoFor3D.transformFieldRoles;F.outFields.push(G,H,I,J,K,N,U,ba,ka,P,V,ca,ra)}}return F};D._normalizeFields=function(C){if(u.isSome(this.fieldsIndex)&&u.isSome(C))for(const F of C)(C=this.fieldsIndex.get(F.name))&&Object.assign(F,C.toJSON())};D._queryIs3DObjectFormat=function(C){return u.isSome(this.infoFor3D)&&!0===C.returnGeometry&&"xyFootprint"!==C.multipatchOption&&!C.outStatistics};b._createClass(w,[{key:"parsedUrl",get:function(){return h.urlToObject(this.url)}}]);return w}(e);c.__decorate([g.property({type:m.DataLayerSource})],
e.prototype,"dynamicDataSource",void 0);c.__decorate([g.property()],e.prototype,"fieldsIndex",void 0);c.__decorate([g.property()],e.prototype,"gdbVersion",void 0);c.__decorate([g.property()],e.prototype,"infoFor3D",void 0);c.__decorate([g.property({readOnly:!0})],e.prototype,"parsedUrl",null);c.__decorate([g.property()],e.prototype,"pbfSupported",void 0);c.__decorate([g.property()],e.prototype,"queryAttachmentsSupported",void 0);c.__decorate([g.property()],e.prototype,"sourceSpatialReference",void 0);
c.__decorate([g.property({type:String})],e.prototype,"url",void 0);return e=c.__decorate([l.subclass("esri.tasks.QueryTask")],e)})},"esri/rest/utils":function(){define("exports ../config ../kernel ../core/lang ../core/urlUtils ../support/apiKeyUtils".split(" "),function(a,b,c,e,d,n){function u(r,h,g){const k={};for(const l in r)if("declaredClass"!==l){var p=r[l];if(null!=p&&"function"!==typeof p)if(Array.isArray(p)){k[l]=[];for(let m=0;m<p.length;m++)k[l][m]=u(p[m])}else"object"===typeof p?p.toJSON?
(p=p.toJSON(g&&g[l]),k[l]=h?p:JSON.stringify(p)):k[l]=h?p:JSON.stringify(p):k[l]=p}return k}a.asValidOptions=function(r,h){return h?{...h,query:{...r,...h.query}}:{query:r}};a.encode=u;a.getToken=function(r,h){return n.supportsApiKey(r)&&(h||b.apiKey)?h||b.apiKey:c.id?.findCredential(r)?.token};a.parseUrl=function(r){return"string"===typeof r?d.urlToObject(r):e.clone(r)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/executeForCount":function(){define(["exports",
"../../chunks/_rollupPluginBabelHelpers","../utils","./operations/query","../support/Query"],function(a,b,c,e,d){function n(){n=b._asyncToGenerator(function*(u,r,h){u=c.parseUrl(u);return e.executeQueryForCount(u,d.from(r),{...h}).then(g=>g.data.count)});return n.apply(this,arguments)}a.executeForCount=function(u,r,h){return n.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/operations/query":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../request ../../../core/maybe ../../../core/urlUtils ../../../geometry/support/jsonUtils ../../../geometry/support/normalizeUtils ../../operations/urlUtils ./pbfQueryUtils ./queryZScale".split(" "),
function(a,b,c,e,d,n,u,r,h,g){function k(q,v){if(v&&"extent"===q.type)return`${q.xmin},${q.ymin},${q.xmax},${q.ymax}`;if(v&&"point"===q.type)return`${q.x},${q.y}`;q=q.toJSON();delete q.spatialReference;return JSON.stringify(q)}function p(q,v){const x=q.geometry,z=q.toJSON();delete z.compactGeometryEnabled;delete z.defaultSpatialReferenceEnabled;let y,A,B;e.isSome(x)&&(A=x.spatialReference,B=x.spatialReference.wkid||JSON.stringify(x.spatialReference),z.geometryType=n.getJsonType(x),z.geometry=k(x,
q.compactGeometryEnabled),z.inSR=B);z.groupByFieldsForStatistics&&(z.groupByFieldsForStatistics=z.groupByFieldsForStatistics.join(","));z.objectIds&&(z.objectIds=z.objectIds.join(","));z.orderByFields&&(z.orderByFields=z.orderByFields.join(","));!z.outFields||!z.returnDistinctValues&&(v?.returnCountOnly||v?.returnExtentOnly||v?.returnIdsOnly)?delete z.outFields:z.outFields.includes("*")?z.outFields="*":z.outFields=z.outFields.join(",");z.outSR?(z.outSR=z.outSR.wkid||JSON.stringify(z.outSR),y=q.outSpatialReference):
x&&(z.returnGeometry||z.returnCentroid)&&(z.outSR=z.inSR,y=A);z.returnGeometry&&delete z.returnGeometry;z.outStatistics&&(z.outStatistics=JSON.stringify(z.outStatistics));z.fullText&&(z.fullText=JSON.stringify(z.fullText));z.pixelSize&&(z.pixelSize=JSON.stringify(z.pixelSize));z.quantizationParameters&&(q.defaultSpatialReferenceEnabled&&e.isSome(A)&&e.isSome(q.quantizationParameters)&&e.isSome(q.quantizationParameters.extent)&&A.equals(q.quantizationParameters.extent.spatialReference)&&delete z.quantizationParameters.extent.spatialReference,
z.quantizationParameters=JSON.stringify(z.quantizationParameters));z.parameterValues&&(z.parameterValues=JSON.stringify(z.parameterValues));z.rangeValues&&(z.rangeValues=JSON.stringify(z.rangeValues));z.dynamicDataSource&&(z.layer=JSON.stringify({source:z.dynamicDataSource}),delete z.dynamicDataSource);if(z.timeExtent){const {start:E,end:w}=z.timeExtent;if(null!=E||null!=w)z.time=E===w?E:`${null==E?"null":E},${null==w?"null":w}`;delete z.timeExtent}q.defaultSpatialReferenceEnabled&&e.isSome(A)&&e.isSome(y)&&
A.equals(y)&&(z.defaultSR=z.inSR,delete z.inSR,delete z.outSR);return z}function l(){l=b._asyncToGenerator(function*(q,v,x,z){q=e.isSome(v.timeExtent)&&v.timeExtent.isEmpty?{data:{features:[]}}:yield f(q,v,"json",z);g.applyFeatureSetZUnitScaling(v,x,q.data);return q});return l.apply(this,arguments)}function m(){m=b._asyncToGenerator(function*(q,v,x,z){if(e.isSome(v.timeExtent)&&v.timeExtent.isEmpty)return{data:x.createFeatureResult()};q=yield t(q,v,z);q.data=h.parsePBFFeatureQuery(q.data,x);return q});
return m.apply(this,arguments)}function t(q,v,x){return f(q,v,"pbf",x)}function f(q,v,x,z={},y={}){const A="string"===typeof q?d.urlToObject(q):q;q=v.geometry?[v.geometry]:[];z.responseType="pbf"===x?"array-buffer":"json";return u.normalizeCentralMeridian(q,null,z).then(B=>{B=B&&B[0];e.isSome(B)&&(v=v.clone(),v.geometry=B);B=r.mapParameters({...A.query,f:x,...y,...p(v,y)});return c(d.join(A.path,"query"),{...z,query:{...B,...z.query}})})}a.encodeGeometry=k;a.executeQuery=function(q,v,x,z){return l.apply(this,
arguments)};a.executeQueryForCount=function(q,v,x){return e.isSome(v.timeExtent)&&v.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):f(q,v,"json",x,{returnIdsOnly:!0,returnCountOnly:!0})};a.executeQueryForExtent=function(q,v,x){return e.isSome(v.timeExtent)&&v.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):f(q,v,"json",x,{returnExtentOnly:!0,returnCountOnly:!0}).then(z=>{const y=z.data;if(y.hasOwnProperty("extent"))return z;if(y.features)throw Error("Layer does not support extent calculation.");
if(y.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return z})};a.executeQueryForIds=function(q,v,x){return e.isSome(v.timeExtent)&&v.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):f(q,v,"json",x,{returnIdsOnly:!0})};a.executeQueryPBF=function(q,v,x,z){return m.apply(this,arguments)};a.executeQueryPBFBuffer=t;a.queryToQueryStringParameters=p;a.runQuery=f;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/normalizeUtils":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../config ../../core/Error ../../core/Logger ../../core/maybe ../Polygon ../Polyline ./normalizeUtilsCommon ./spatialReferenceUtils ./webMercatorUtils ../../rest/geometryService/cut ../../rest/geometryService/simplify".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){function m(A){const B=[];let E=0,w=0;for(let D=0;D<A.length;D++){const C=A[D];let F=null;for(let G=0;G<C.length;G++)F=C[G],B.push(F),0===G?w=E=F[0]:(E=Math.min(E,F[0]),w=Math.max(w,F[0]));F&&B.push([(E+w)/2,0])}return B}function t(A,B){if(!(A instanceof r||A instanceof u))throw y.error("straightLineDensify: the input geometry is neither polyline nor polygon"),new e("straightLineDensify: the input geometry is neither polyline nor polygon");var E=h.getGeometryParts(A);
const w=[];for(const C of E){E=[];w.push(E);E.push([C[0][0],C[0][1]]);for(let F=0;F<C.length-1;F++){const G=C[F][0],H=C[F][1],I=C[F+1][0],J=C[F+1][1];var D=Math.sqrt((I-G)*(I-G)+(J-H)*(J-H));const K=(J-H)/D,N=(I-G)/D,U=D/B;if(1<U){for(let ba=1;ba<=U-1;ba++){const ka=ba*B;E.push([N*ka+G,K*ka+H])}D=(D+Math.floor(U-1)*B)/2;E.push([N*D+G,K*D+H])}E.push([I,J])}}return"polygon"===A.type?new u({rings:w,spatialReference:A.spatialReference}):new r({paths:w,spatialReference:A.spatialReference})}function f(A,
B,E){B&&(A=t(A,1E6),A=k.webMercatorToGeographic(A,!0));E&&(A=h.updatePolyGeometry(A,E));return A}function q(A,B,E){if(Array.isArray(A)){var w=A[0];w>B?(E=h.offsetMagnitude(w,B),A[0]=w+-2*E*B):w<E&&(B=h.offsetMagnitude(w,E),A[0]=w+-2*B*E)}else w=A.x,w>B?(E=h.offsetMagnitude(w,B),A=A.clone().offset(-2*E*B,0)):w<E&&(B=h.offsetMagnitude(w,E),A=A.clone().offset(-2*B*E,0));return A}function v(A,B){let E=-1;for(let w=0;w<B.cutIndexes.length;w++){const D=B.cutIndexes[w],C=B.geometries[w],F=h.getGeometryParts(C);
for(let G=0;G<F.length;G++){const H=F[G];H.some(I=>{if(180>I[0])return!0;I=0;for(var J=0;J<H.length;J++){var K=H[J][0];I=K>I?K:I}I=Number(I.toFixed(9));I=-360*h.offsetMagnitude(I,180);for(J=0;J<H.length;J++)K=C.getPoint(G,J),C.setPoint(G,J,K.clone().offset(I,0));return!0})}if(D===E)if("polygon"===A[0].type)for(const G of h.getGeometryParts(C))A[D]=A[D].addRing(G);else{if("polyline"===A[0].type)for(const G of h.getGeometryParts(C))A[D]=A[D].addPath(G)}else E=D,A[D]=C}return A}function x(A,B,E){return z.apply(this,
arguments)}function z(){z=b._asyncToGenerator(function*(A,B,E){if(!Array.isArray(A))return x([A],B);B&&"string"!==typeof B&&y.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");var w="string"===typeof B?B:B?.url??c.geometryServiceUrl;let D,C,F;let G=0;var H=[];B=[];for(var I of A)if(n.isNone(I))B.push(I);else{if(!J){var J=I.spatialReference;var K=g.getInfo(J);var N=(D=J.isWebMercator)?102100:4326;C=h.cutParams[N].maxX;F=h.cutParams[N].minX;var U=h.cutParams[N].plus180Line;
N=h.cutParams[N].minus180Line}if(K)if("mesh"===I.type)B.push(I);else if("point"===I.type)B.push(q(I.clone(),C,F));else if("multipoint"===I.type){var ba=I.clone();ba.points=ba.points.map(ka=>q(ka,C,F));B.push(ba)}else if("extent"===I.type)ba=I.clone()._normalize(!1,!1,K),B.push(ba.rings?new u(ba):ba);else if(I.extent){ba=I.extent;const ka=2*h.offsetMagnitude(ba.xmin,F)*C;let P=0===ka?I.clone():h.updatePolyGeometry(I.clone(),ka);ba.offset(ka,0);ba.intersects(U)&&ba.xmax!==C?(G=ba.xmax>G?ba.xmax:G,P=
f(P,D),H.push(P),B.push("cut")):ba.intersects(N)&&ba.xmin!==F?(G=2*ba.xmax*C>G?2*ba.xmax*C:G,P=f(P,D,360),H.push(P),B.push("cut")):B.push(P)}else B.push(I.clone());else B.push(I)}J=h.offsetMagnitude(G,C);K=-90;U=J;for(I=new r;0<J;)N=-180+360*J,I.addPath([[N,K],[N,-1*K]]),K*=-1,J--;if(0<H.length&&0<U){J=yield p.cut(w,H,I,E);J=v(H,J);K=[];H=[];for(U=0;U<B.length;U++)I=B[U],"cut"!==I?H.push(I):(I=J.shift(),N=A[U],n.isSome(N)&&"polygon"===N.type&&N.rings&&1<N.rings.length&&I.rings.length>=N.rings.length?
(K.push(I),H.push("simplify")):H.push(D?k.geographicToWebMercator(I):I));if(!K.length)return H;B=yield l.simplify(w,K,E);A=[];for(E=0;E<H.length;E++)w=H[E],"simplify"!==w?A.push(w):A.push(D?k.geographicToWebMercator(B.shift()):B.shift());return A}A=[];for(E=0;E<B.length;E++)w=B[E],"cut"!==w?A.push(w):(w=H.shift(),A.push(!0===D?k.geographicToWebMercator(w):w));return A});return z.apply(this,arguments)}const y=d.getLogger("esri.geometry.support.normalizeUtils");a.getDenormalizedExtent=function(A){if(!A)return null;
const B=A.extent;if(!B)return null;var E=A.spatialReference&&g.getInfo(A.spatialReference);if(!E)return B;const [w,D]=E.valid;({width:E}=B);let {xmin:C,xmax:F}=B;[C,F]=[F,C];if("extent"===A.type||0===E||E<=D||E>2*D||C<w||F>D)return B;let G;switch(A.type){case "polygon":if(1<A.rings.length)G=m(A.rings);else return B;break;case "polyline":if(1<A.paths.length)G=m(A.paths);else return B;break;case "multipoint":G=A.points}A=B.clone();for(let H=0;H<G.length;H++){let I=G[H][0];0>I?(I+=D,F=Math.max(I,F)):
(I-=D,C=Math.min(I,C))}A.xmin=C;A.xmax=F;return A.width<E?(A.xmin-=D,A.xmax-=D,A):B};a.normalizeCentralMeridian=x;a.normalizeMapX=function(A,B){if(B=g.getInfo(B)){const [E,w]=B.valid;B=w-E;if(A<E)for(;A<E;)A+=B;if(A>w)for(;A>w;)A-=B}return A};a.straightLineDensify=t;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/normalizeUtilsCommon":function(){define(["exports","../Polyline","../SpatialReference","./jsonUtils"],function(a,b,c,e){function d(n){return e.isPolygon(n)?
n.rings:n.paths}b={102100:{maxX:2.0037508342788905E7,minX:-2.0037508342788905E7,plus180Line:new b({paths:[[[2.0037508342788905E7,-2.0037508342788905E7],[2.0037508342788905E7,2.0037508342788905E7]]],spatialReference:c.WebMercator}),minus180Line:new b({paths:[[[-2.0037508342788905E7,-2.0037508342788905E7],[-2.0037508342788905E7,2.0037508342788905E7]]],spatialReference:c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new b({paths:[[[180,-180],[180,180]]],spatialReference:c.WGS84}),minus180Line:new b({paths:[[[-180,
-180],[-180,180]]],spatialReference:c.WGS84})}};a.cutParams=b;a.getGeometryParts=d;a.offsetMagnitude=function(n,u){return Math.ceil((n-u)/(2*u))};a.updatePolyGeometry=function(n,u){const r=d(n);for(const h of r)for(const g of h)g[0]+=u;return n};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/geometryService/cut":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../../request ../../geometry/support/jsonUtils ../utils".split(" "),
function(a,b,c,e,d,n){function u(){u=b._asyncToGenerator(function*(r,h,g,k){r=n.parseUrl(r);const p=h[0].spatialReference;h={...k,query:{...r.query,f:"json",sr:JSON.stringify(p),target:JSON.stringify({geometryType:d.getJsonType(h[0]),geometries:h}),cutter:JSON.stringify(g)}};h=yield e(r.path+"/cut",h);const {cutIndexes:l,geometries:m=[]}=h.data;return{cutIndexes:l,geometries:m.map(t=>{t=d.fromJSON(t);t.spatialReference=p;return t})}});return u.apply(this,arguments)}a.cut=function(r,h,g,k){return u.apply(this,
arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/geometryService/simplify":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../request ../../core/urlUtils ../../geometry/support/jsonUtils ./utils".split(" "),function(a,b,c,e,d,n){function u(){u=b._asyncToGenerator(function*(r,h,g){const k="string"===typeof r?e.urlToObject(r):r;r=h[0].spatialReference;const p=d.getJsonType(h[0]);h={...g,query:{...k.query,f:"json",
sr:r.wkid?r.wkid:JSON.stringify(r),geometries:JSON.stringify(n.encodeGeometries(h))}};({data:h}=yield c(k.path+"/simplify",h));return n.decodeGeometries(h.geometries,p,r)});return u.apply(this,arguments)}a.simplify=function(r,h,g){return u.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/geometryService/utils":function(){define(["exports","../../geometry/support/jsonUtils"],function(a,b){a.decodeGeometries=function(c,e,d){const n=
b.getGeometryType(e);return c.map(u=>{u=n.fromJSON(u);u.spatialReference=d;return u})};a.encodeGeometries=function(c){return{geometryType:b.getJsonType(c[0]),geometries:c.map(e=>e.toJSON())}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/operations/urlUtils":function(){define(["exports"],function(a){function b(c){const e={};for(const d in c){if("declaredClass"===d)continue;const n=c[d];if(null!=n&&"function"!==typeof n)if(Array.isArray(n)){e[d]=
[];for(let u=0;u<n.length;u++)e[d][u]=b(n[u])}else"object"===typeof n?n.toJSON&&(e[d]=JSON.stringify(n)):e[d]=n}return e}a.mapParameters=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/operations/pbfQueryUtils":function(){define(["exports","./pbfFeatureServiceParser"],function(a,b){a.parsePBFFeatureQuery=function(c,e){var d=b.parseFeatureQuery(c,e);c=d.queryResult.featureResult;e=d.queryResult.queryGeometry;d=d.queryResult.queryGeometryType;
if(c&&c.features&&c.features.length&&c.objectIdFieldName){const n=c.objectIdFieldName;for(const u of c.features)u.attributes&&(u.objectId=u.attributes[n])}c&&(c.queryGeometry=e,c.queryGeometryType=d);return c};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/operations/pbfFeatureServiceParser":function(){define("exports ../../../core/Error ../../../core/maybe ../../../core/pbf ../../../layers/graphics/OptimizedGeometry ./pbfOptimizedFeatureSet".split(" "),
function(a,b,c,e,d,n){function u(w){return w>=A.length?null:A[w]}function r(w,D,C){w=w.asUnsafe();for(C=D.createPointGeometry(C);w.next();)switch(w.tag()){case 3:var F=w.getUInt32();F=w.pos()+F;let G=0;for(;w.pos()<F;)D.addCoordinatePoint(C,w.getSInt64(),G++);break;default:w.skip()}return C}function h(w,D,C){w=w.asUnsafe();const F=D.createGeometry(C);for(C=2+(C.hasZ?1:0)+(C.hasM?1:0);w.next();)switch(w.tag()){case 2:var G=w.getUInt32();G=w.pos()+G;for(var H=0;w.pos()<G;)D.addLength(F,w.getUInt32(),
H++);break;case 3:G=w.getUInt32();G=w.pos()+G;H=0;for(D.allocateCoordinates(F);w.pos()<G;)D.addCoordinate(F,w.getSInt64(),H),H++,H===C&&(H=0);break;default:w.skip()}return F}function g(w){w=w.asUnsafe();const D=new d;let C="esriGeometryPoint";for(;w.next();)switch(w.tag()){case 2:var F=w.getUInt32();for(F=w.pos()+F;w.pos()<F;)D.lengths.push(w.getUInt32());break;case 3:F=w.getUInt32();for(F=w.pos()+F;w.pos()<F;)D.coords.push(w.getSInt64());break;case 1:C=n.OPTIMIZED_GEOMETRY_TYPES[w.getEnum()];break;
default:w.skip()}return{queryGeometry:D,queryGeometryType:C}}function k(w){for(w=w.asUnsafe();w.next();)switch(w.tag()){case 1:return w.getString();case 2:return w.getFloat();case 3:return w.getDouble();case 4:return w.getSInt32();case 5:return w.getUInt32();case 6:return w.getInt64();case 7:return w.getUInt64();case 8:return w.getSInt64();case 9:return w.getBool();default:return w.skip(),null}return null}function p(w){w=w.asUnsafe();const D={type:u(0)};for(;w.next();)switch(w.tag()){case 1:D.name=
w.getString();break;case 2:D.type=u(w.getEnum());break;case 3:D.alias=w.getString();break;case 4:var C=w.getEnum();C=C>=B.length?null:B[C];D.sqlType=C;break;case 5:w.skip();break;case 6:D.defaultValue=w.getString();break;default:w.skip()}return D}function l(w){const D={};for(w=w.asUnsafe();w.next();)switch(w.tag()){case 1:D.name=w.getString();break;case 2:D.isSystemMaintained=w.getBool();break;default:w.skip()}return D}function m(w,D,C,F){const G=D.createFeature(C);let H=0;for(;w.next();)switch(w.tag()){case 1:const I=
F[H++].name;G.attributes[I]=w.processMessage(k);break;case 2:G.geometry=w.processMessageWithArgs(h,D,C);break;case 4:G.centroid=w.processMessageWithArgs(r,D,C);break;default:w.skip()}return G}function t(w){const D=[1,1,1,1];for(w=w.asUnsafe();w.next();)switch(w.tag()){case 1:D[0]=w.getDouble();break;case 2:D[1]=w.getDouble();break;case 4:D[2]=w.getDouble();break;case 3:D[3]=w.getDouble();break;default:w.skip()}return D}function f(w){const D=[0,0,0,0];for(w=w.asUnsafe();w.next();)switch(w.tag()){case 1:D[0]=
w.getDouble();break;case 2:D[1]=w.getDouble();break;case 4:D[2]=w.getDouble();break;case 3:D[3]=w.getDouble();break;default:w.skip()}return D}function q(w){const D={originPosition:0>=E.length?null:E[0]};for(w=w.asUnsafe();w.next();)switch(w.tag()){case 1:var C=w.getEnum();D.originPosition=C>=E.length?null:E[C];break;case 2:D.scale=w.processMessage(t);break;case 3:D.translate=w.processMessage(f);break;default:w.skip()}return D}function v(w){const D={};for(w=w.asUnsafe();w.next();)switch(w.tag()){case 1:D.shapeAreaFieldName=
w.getString();break;case 2:D.shapeLengthFieldName=w.getString();break;case 3:D.units=w.getString();break;default:w.skip()}return D}function x(w,D){for(D=D.createSpatialReference();w.next();)switch(w.tag()){case 1:D.wkid=w.getUInt32();break;case 5:D.wkt=w.getString();break;case 2:D.latestWkid=w.getUInt32();break;case 3:D.vcsWkid=w.getUInt32();break;case 4:D.latestVcsWkid=w.getUInt32();break;default:w.skip()}return D}function z(w,D){const C=D.createFeatureResult();w=w.asUnsafe();C.geometryType=0>=D.geometryTypes.length?
null:D.geometryTypes[0];let F=!1;for(;w.next();)switch(w.tag()){case 1:C.objectIdFieldName=w.getString();break;case 3:C.globalIdFieldName=w.getString();break;case 4:C.geohashFieldName=w.getString();break;case 5:C.geometryProperties=w.processMessage(v);break;case 7:var G=w.getEnum();C.geometryType=G>=D.geometryTypes.length?null:D.geometryTypes[G];break;case 8:C.spatialReference=w.processMessageWithArgs(x,D);break;case 10:C.hasZ=w.getBool();break;case 11:C.hasM=w.getBool();break;case 12:C.transform=
w.processMessage(q);break;case 9:G=w.getBool();C.exceededTransferLimit=G;break;case 13:D.addField(C,w.processMessage(p));break;case 15:F||(D.prepareFeatures(C),F=!0);D.addFeature(C,w.processMessageWithArgs(m,D,C,C.fields));break;case 2:C.uniqueIdField=w.processMessage(l);break;default:w.skip()}D.finishFeatureResult(C);return C}function y(w,D){const C={};let F=null;for(;w.next();)switch(w.tag()){case 4:F=w.processMessageWithArgs(g);break;case 1:C.featureResult=w.processMessageWithArgs(z,D);break;default:w.skip()}c.isSome(F)&&
C.featureResult&&D.addQueryGeometry(C,F);return C}const A="esriFieldTypeSmallInteger esriFieldTypeInteger esriFieldTypeSingle esriFieldTypeDouble esriFieldTypeString esriFieldTypeDate esriFieldTypeOID esriFieldTypeGeometry esriFieldTypeBlob esriFieldTypeRaster esriFieldTypeGUID esriFieldTypeGlobalID esriFieldTypeXML".split(" "),B="sqlTypeBigInt sqlTypeBinary sqlTypeBit sqlTypeChar sqlTypeDate sqlTypeDecimal sqlTypeDouble sqlTypeFloat sqlTypeGeometry sqlTypeGUID sqlTypeInteger sqlTypeLongNVarchar sqlTypeLongVarbinary sqlTypeLongVarchar sqlTypeNChar sqlTypeNVarchar sqlTypeOther sqlTypeReal sqlTypeSmallInt sqlTypeSqlXml sqlTypeTime sqlTypeTimestamp sqlTypeTimestamp2 sqlTypeTinyInt sqlTypeVarbinary sqlTypeVarchar".split(" "),
E=["upperLeft","lowerLeft"];a.parseFeatureQuery=function(w,D){try{const C=new e(new Uint8Array(w),new DataView(w));for(w={};C.next();)switch(C.tag()){case 2:w.queryResult=C.processMessageWithArgs(y,D);break;default:C.skip()}return w}catch(C){throw new b("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:C});}};a.parseFieldType=u;a.parseTransform=q;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/pbf":function(){define(["./has",
"./ObjectPool"],function(a,b){var c;(function(n){n[n.varint=0]="varint";n[n.fixed64=1]="fixed64";n[n.delimited=2]="delimited";n[n.fixed32=5]="fixed32";n[n.unknown=99]="unknown"})(c||(c={}));const e=new TextDecoder("utf-8"),d=a("safari")||a("ios")?6:a("ff")?12:32;a=function(){function n(r,h,g=0,k=r?r.byteLength:0){this._tag=0;this._dataType=c.unknown;this._init(r,h,g,k)}var u=n.prototype;u._init=function(r,h,g,k){this._data=r;this._dataView=h;this._pos=g;this._end=k};u.asUnsafe=function(){return this};
u.clone=function(){return new n(this._data,this._dataView,this._pos,this._end)};u.pos=function(){return this._pos};u.move=function(r){this._pos=r};u.nextTag=function(r){for(;;){if(this._pos===this._end)return!1;const h=this._decodeVarint();this._tag=h>>3;this._dataType=h&7;if(!r||r===this._tag)break;this.skip()}return!0};u.next=function(){if(this._pos===this._end)return!1;const r=this._decodeVarint();this._tag=r>>3;this._dataType=r&7;return!0};u.empty=function(){return this._pos>=this._end};u.tag=
function(){return this._tag};u.getInt32=function(){return this._decodeVarint()};u.getInt64=function(){return this._decodeVarint()};u.getUInt32=function(){let r=4294967295;r=(this._data[this._pos]&127)>>>0;if(128>this._data[this._pos++])return r;r=(r|(this._data[this._pos]&127)<<7)>>>0;if(128>this._data[this._pos++])return r;r=(r|(this._data[this._pos]&127)<<14)>>>0;if(128>this._data[this._pos++])return r;r=(r|(this._data[this._pos]&127)<<21)>>>0;if(128>this._data[this._pos++])return r;r=(r|(this._data[this._pos]&
15)<<28)>>>0;if(128>this._data[this._pos++])return r};u.getUInt64=function(){return this._decodeVarint()};u.getSInt32=function(){const r=this.getUInt32();if(void 0!==r)return r>>>1^-(r&1)|0};u.getSInt64=function(){return this._decodeSVarint()};u.getBool=function(){const r=0!==this._data[this._pos];this._skip(1);return r};u.getEnum=function(){return this._decodeVarint()};u.getFixed64=function(){var r=this._dataView;const h=this._pos;r=r.getUint32(h,!0)+4294967296*r.getUint32(h+4,!0);this._skip(8);
return r};u.getSFixed64=function(){var r=this._dataView;const h=this._pos;r=r.getUint32(h,!0)+4294967296*r.getInt32(h+4,!0);this._skip(8);return r};u.getDouble=function(){const r=this._dataView.getFloat64(this._pos,!0);this._skip(8);return r};u.getFixed32=function(){const r=this._dataView.getUint32(this._pos,!0);this._skip(4);return r};u.getSFixed32=function(){const r=this._dataView.getInt32(this._pos,!0);this._skip(4);return r};u.getFloat=function(){const r=this._dataView.getFloat32(this._pos,!0);
this._skip(4);return r};u.getString=function(){const r=this._getLength();var h=this._pos;h=this._toString(this._data,h,h+r);this._skip(r);return h};u.getBytes=function(){const r=this._getLength();var h=this._pos;h=this._toBytes(this._data,h,h+r);this._skip(r);return h};u.getLength=function(){return this._getLengthUnsafe()};u.processMessageWithArgs=function(r,h,g,k){const p=this.getMessage();r=r(p,h,g,k);p.release();return r};u.processMessage=function(r){const h=this.getMessage();r=r(h);h.release();
return r};u.getMessage=function(){const r=this._getLength(),h=n.pool.acquire();h._init(this._data,this._dataView,this._pos,this._pos+r);this._skip(r);return h};u.release=function(){n.pool.release(this)};u.dataType=function(){return this._dataType};u.skip=function(){switch(this._dataType){case c.varint:this._decodeVarint();break;case c.fixed64:this._skip(8);break;case c.delimited:this._skip(this._getLength());break;case c.fixed32:this._skip(4);break;default:throw Error("Invalid data type!");}};u.skipLen=
function(r){this._skip(r)};u._skip=function(r){if(this._pos+r>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=r};u._decodeVarint=function(){const r=this._data;let h=this._pos,g=0,k=0;if(10<=this._end-h){if(k=r[h++],g|=k&127,0!==(k&128)&&(k=r[h++],g|=(k&127)<<7,0!==(k&128)&&(k=r[h++],g|=(k&127)<<14,0!==(k&128)&&(k=r[h++],g|=(k&127)<<21,0!==(k&128)&&(k=r[h++],g+=268435456*(k&127),0!==(k&128)&&(k=r[h++],g+=34359738368*(k&127),0!==(k&128)&&(k=r[h++],g+=4398046511104*(k&127),
0!==(k&128)&&(k=r[h++],g+=562949953421312*(k&127),0!==(k&128)&&(k=r[h++],g+=72057594037927936*(k&127),0!==(k&128)&&(k=r[h++],g+=0x7fffffffffffffff*(k&127),0!==(k&128)))))))))))throw Error("Varint too long!");}else{let p=1;for(;h!==this._end;){k=r[h];if(0===(k&128))break;++h;g+=(k&127)*p;p*=128}if(h===this._end)throw Error("Varint overrun!");++h;g+=k*p}this._pos=h;return g};u._decodeSVarint=function(){const r=this._data;let h=this._pos,g=0,k=0;const p=r[h]&1;if(10<=this._end-h){if(k=r[h++],g|=k&127,
0!==(k&128)&&(k=r[h++],g|=(k&127)<<7,0!==(k&128)&&(k=r[h++],g|=(k&127)<<14,0!==(k&128)&&(k=r[h++],g|=(k&127)<<21,0!==(k&128)&&(k=r[h++],g+=268435456*(k&127),0!==(k&128)&&(k=r[h++],g+=34359738368*(k&127),0!==(k&128)&&(k=r[h++],g+=4398046511104*(k&127),0!==(k&128)&&(k=r[h++],g+=562949953421312*(k&127),0!==(k&128)&&(k=r[h++],g+=72057594037927936*(k&127),0!==(k&128)&&(k=r[h++],g+=0x7fffffffffffffff*(k&127),0!==(k&128)))))))))))throw Error("Varint too long!");}else{let l=1;for(;h!==this._end;){k=r[h];
if(0===(k&128))break;++h;g+=(k&127)*l;l*=128}if(h===this._end)throw Error("Varint overrun!");++h;g+=k*l}this._pos=h;return p?-(g+1)/2:g/2};u._getLength=function(){if(this._dataType!==c.delimited)throw Error("Not a delimited data type!");return this._decodeVarint()};u._getLengthUnsafe=function(){return this.getUInt32()};u._toString=function(r,h,g){g=Math.min(this._end,g);if(g-h>d)return r=r.subarray(h,g),e.decode(r);let k="",p="";for(;h<g;++h){const l=r[h];l&128?p+="%"+l.toString(16):(k+=decodeURIComponent(p)+
String.fromCharCode(l),p="")}p.length&&(k+=decodeURIComponent(p));return k};u._toBytes=function(r,h,g){g=Math.min(this._end,g);return new Uint8Array(r.buffer,h,g-h)};return n}();a.pool=new b(a,void 0,n=>{n._data=null;n._dataView=null});return a})},"esri/layers/graphics/OptimizedGeometry":function(){define(["../../chunks/_rollupPluginBabelHelpers"],function(a){return function(){function b(e=[],d=[],n=!1){this.lengths=e??[];this.coords=d??[];this.hasIndeterminateRingOrder=n}b.fromRect=function(e){const [d,
n,u,r]=e;e=u-d;const h=r-n;return new b([5],[d,n,e,0,0,h,-e,0,0,-h])};var c=b.prototype;c.forEachVertex=function(e){let d=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const u=this.lengths[n];for(let r=0;r<u;r++)e(this.coords[2*(r+d)],this.coords[2*(r+d)+1]);d+=u}};c.clone=function(e){return e?(e.set(this.coords),new b(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new b(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)};
a._createClass(b,[{key:"isPoint",get:function(){return 0===this.lengths.length}},{key:"maxLength",get:function(){return Math.max(...this.lengths)}},{key:"size",get:function(){return this.lengths.reduce((e,d)=>e+d)}}]);return b}()})},"esri/rest/query/operations/pbfOptimizedFeatureSet":function(){define("exports ../../../core/unitUtils ../../../geometry/support/spatialReferenceUtils ../../../layers/graphics/OptimizedFeature ../../../layers/graphics/OptimizedFeatureSet ../../../layers/graphics/OptimizedGeometry".split(" "),
function(a,b,c,e,d,n){const u=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];let r=function(){function h(k){this._options=k;this.geometryTypes=u;this._vertexDimension=this._coordinatePtr=0}var g=h.prototype;g.createFeatureResult=function(){return new d};g.prepareFeatures=function(k){this._vertexDimension=2;k.hasZ&&this._vertexDimension++;k.hasM&&this._vertexDimension++};g.finishFeatureResult=function(k){if(k&&k.features&&k.hasZ&&this._options.sourceSpatialReference&&
k.spatialReference&&!c.equals(k.spatialReference,this._options.sourceSpatialReference)&&!k.spatialReference.vcsWkid){var p=b.getMetersPerVerticalUnitForSR(this._options.sourceSpatialReference),l=b.getMetersPerVerticalUnitForSR(k.spatialReference);p/=l;if(1!==p)for(const m of k.features)if(e.hasGeometry(m))for(k=m.geometry.coords,l=2;l<k.length;l+=3)k[l]*=p}};g.addFeature=function(k,p){k.features.push(p)};g.createFeature=function(){return new e.OptimizedFeature};g.createSpatialReference=function(){return{wkid:0}};
g.createGeometry=function(){return new n};g.addField=function(k,p){k.fields.push(p)};g.allocateCoordinates=function(k){k.coords.length=k.lengths.reduce((p,l)=>p+l,0)*this._vertexDimension;this._coordinatePtr=0};g.addCoordinate=function(k,p){k.coords[this._coordinatePtr++]=p};g.addCoordinatePoint=function(k,p){k.coords.push(p)};g.addLength=function(k,p){k.lengths.push(p)};g.addQueryGeometry=function(k,p){k.queryGeometry=p.queryGeometry;k.queryGeometryType=p.queryGeometryType};g.createPointGeometry=
function(){return new n};return h}();a.OPTIMIZED_GEOMETRY_TYPES=u;a.OptimizedFeatureSetParserContext=r;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/graphics/OptimizedFeature":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../core/maybe"],function(a,b,c){let e=function(){function n(u=null,r={},h,g){this.geometry=u;this.attributes=r;this.centroid=h;this.objectId=g;this.geohashY=this.geohashX=this.displayId=0}n.prototype.weakClone=
function(){const u=new n(this.geometry,this.attributes,this.centroid,this.objectId);u.displayId=this.displayId;u.geohashX=this.geohashX;u.geohashY=this.geohashY;return u};return n}(),d=function(n){function u(){return n.apply(this,arguments)||this}b._inheritsLoose(u,n);return u}(e);a.OptimizedFeature=e;a.OptimizedFeatureWithGeometry=d;a.hasGeometry=function(n){return!(c.isNone(n.geometry)||!n.geometry.coords||!n.geometry.coords.length)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/graphics/OptimizedFeatureSet":function(){define(function(){return function(){function a(){this.spatialReference=this.geometryType=this.geometryProperties=this.geohashFieldName=this.globalIdFieldName=this.objectIdFieldName=null;this.hasM=this.hasZ=!1;this.features=[];this.fields=[];this.transform=null;this.exceededTransferLimit=!1;this.queryGeometry=this.queryGeometryType=this.uniqueIdField=null}a.prototype.weakClone=function(){const b=new a;b.objectIdFieldName=this.objectIdFieldName;
b.globalIdFieldName=this.globalIdFieldName;b.geohashFieldName=this.geohashFieldName;b.geometryProperties=this.geometryProperties;b.geometryType=this.geometryType;b.spatialReference=this.spatialReference;b.hasZ=this.hasZ;b.hasM=this.hasM;b.features=this.features;b.fields=this.fields;b.transform=this.transform;b.exceededTransferLimit=this.exceededTransferLimit;b.uniqueIdField=this.uniqueIdField;b.queryGeometry=this.queryGeometry;b.queryGeometryType=this.queryGeometryType;return b};return a}()})},"esri/rest/query/executeForExtent":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../geometry ../utils ./operations/query ../support/Query ../../geometry/Extent".split(" "),
function(a,b,c,e,d,n,u){function r(){r=b._asyncToGenerator(function*(h,g,k){h=e.parseUrl(h);return d.executeQueryForExtent(h,n.from(g),{...k}).then(p=>({count:p.data.count,extent:u.fromJSON(p.data.extent)}))});return r.apply(this,arguments)}a.executeForExtent=function(h,g,k){return r.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/executeForIds":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers",
"../utils","./operations/query","../support/Query"],function(a,b,c,e,d){function n(){n=b._asyncToGenerator(function*(u,r,h){u=c.parseUrl(u);return e.executeQueryForIds(u,d.from(r),{...h}).then(g=>g.data.objectIds)});return n.apply(this,arguments)}a.executeForIds=function(u,r,h){return n.apply(this,arguments)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/executeQueryJSON":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/query ../support/FeatureSet ../support/Query".split(" "),
function(a,b,c,e,d,n){function u(){u=b._asyncToGenerator(function*(g,k,p){g=yield r(g,k,p);return d.fromJSON(g)});return u.apply(this,arguments)}function r(g,k,p){return h.apply(this,arguments)}function h(){h=b._asyncToGenerator(function*(g,k,p){g=c.parseUrl(g);p={...p};k=n.from(k);({data:k}=yield e.executeQuery(g,k,k.sourceSpatialReference,p));return k});return h.apply(this,arguments)}a.executeQueryJSON=function(g,k,p){return u.apply(this,arguments)};a.executeRawQueryJSON=r;Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/executeQueryPBF":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../utils ./operations/pbfJSONFeatureSet ./operations/query ../support/FeatureSet ../support/Query".split(" "),function(a,b,c,e,d,n,u){function r(){r=b._asyncToGenerator(function*(k,p,l){k=yield h(k,u.from(p),l);return n.fromJSON(k)});return r.apply(this,arguments)}function h(k,p,l){return g.apply(this,arguments)}function g(){g=b._asyncToGenerator(function*(k,
p,l){k=c.parseUrl(k);l={...l};p=u.from(p);({data:p}=yield d.executeQueryPBF(k,p,new e.JSONFeatureSetParserContext({sourceSpatialReference:p.sourceSpatialReference,applyTransform:!p.quantizationParameters}),l));return p});return g.apply(this,arguments)}a.executeQueryPBF=function(k,p,l){return r.apply(this,arguments)};a.executeRawQueryPBF=h;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/rest/query/operations/pbfJSONFeatureSet":function(){define(["exports",
"../../../core/maybe","../../../geometry/support/zscale","../../../layers/graphics/featureConversionUtils"],function(a,b,c,e){function d(l,m){return m}function n(l,m,t,f){switch(t){case 0:return g(l,m+f,0);case 1:return"lowerLeft"===l.originPosition?g(l,m+f,1):k(l,m+f,1)}}function u(l,m,t,f){switch(t){case 2:return g(l,m,2);default:return n(l,m,t,f)}}function r(l,m,t,f){switch(t){case 2:return g(l,m,3);default:return n(l,m,t,f)}}function h(l,m,t,f){switch(t){case 3:return g(l,m,3);default:return u(l,
m,t,f)}}function g({translate:l,scale:m},t,f){return l[f]+t*m[f]}function k({translate:l,scale:m},t,f){return l[f]-t*m[f]}let p=function(){function l(t){this._options=t;this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];this._previousCoordinate=[0,0];this._transform=null;this._applyTransform=d;this._lengths=[];this._vertexDimension=this._toAddInCurrentPath=this._currentLengthIndex=0;this._coordinateBuffer=null;this._coordinateBufferPtr=0;
this._attributesConstructor=function(){return function(){}}()}var m=l.prototype;m.createFeatureResult=function(){return{fields:[],features:[]}};m.finishFeatureResult=function(t){this._options.applyTransform&&(t.transform=null);this._attributesConstructor=function(){return function(){}}();this._coordinateBuffer=null;this._lengths.length=0;if(t.hasZ){var f=c.getGeometryZScaler(t.geometryType,this._options.sourceSpatialReference,t.spatialReference);if(!b.isNone(f))for(const q of t.features)f(q.geometry)}};
m.createSpatialReference=function(){return{}};m.addField=function(t,f){t=t.fields;b.assertIsSome(t);t.push(f);const q=t.map(v=>v.name);this._attributesConstructor=function(){for(const v of q)this[v]=null}};m.addFeature=function(t,f){t.features.push(f)};m.prepareFeatures=function(t){this._transform=t.transform;this._options.applyTransform&&t.transform&&(this._applyTransform=this._deriveApplyTransform(t));this._vertexDimension=2;t.hasZ&&this._vertexDimension++;t.hasM&&this._vertexDimension++;switch(t.geometryType){case "esriGeometryPoint":this.addCoordinate=
(f,q,v)=>this.addCoordinatePoint(f,q,v);this.createGeometry=f=>this.createPointGeometry(f);break;case "esriGeometryPolygon":this.addCoordinate=(f,q,v)=>this._addCoordinatePolygon(f,q,v);this.createGeometry=f=>this._createPolygonGeometry(f);break;case "esriGeometryPolyline":this.addCoordinate=(f,q,v)=>this._addCoordinatePolyline(f,q,v);this.createGeometry=f=>this._createPolylineGeometry(f);break;case "esriGeometryMultipoint":this.addCoordinate=(f,q,v)=>this._addCoordinateMultipoint(f,q,v),this.createGeometry=
f=>this._createMultipointGeometry(f)}};m.createFeature=function(){this._currentLengthIndex=this._lengths.length=0;this._previousCoordinate[0]=0;this._previousCoordinate[1]=0;this._coordinateBuffer=null;this._coordinateBufferPtr=0;return{attributes:new this._attributesConstructor}};m.allocateCoordinates=function(){};m.addLength=function(t,f,q){0===this._lengths.length&&(this._toAddInCurrentPath=f);this._lengths.push(f)};m.addQueryGeometry=function(t,f){const {queryGeometry:q,queryGeometryType:v}=f;
f=e.unquantizeOptimizedGeometry(q.clone(),q,!1,!1,this._transform);f=e.convertToGeometry(f,v,!1,!1);t.queryGeometryType=v;t.queryGeometry={...f}};m.createPointGeometry=function(t){const f={x:0,y:0,spatialReference:t.spatialReference};t.hasZ&&(f.z=0);t.hasM&&(f.m=0);return f};m.addCoordinatePoint=function(t,f,q){const v=b.unwrapOrThrow(this._transform,"transform");f=this._applyTransform(v,f,q,0);switch(q){case 0:t.x=f;break;case 1:t.y=f;break;case 2:"z"in t?t.z=f:t.m=f;break;case 3:t.m=f}};m._transformPathLikeValue=
function(t,f){let q=0;1>=f&&(q=this._previousCoordinate[f],this._previousCoordinate[f]+=t);const v=b.unwrapOrThrow(this._transform,"transform");return this._applyTransform(v,t,f,q)};m._addCoordinatePolyline=function(t,f,q){this._dehydratedAddPointsCoordinate(t.paths,f,q)};m._addCoordinatePolygon=function(t,f,q){this._dehydratedAddPointsCoordinate(t.rings,f,q)};m._addCoordinateMultipoint=function(t,f,q){0===q&&t.points.push([]);f=this._transformPathLikeValue(f,q);t.points[t.points.length-1].push(f)};
m._createPolygonGeometry=function(t){return{rings:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}};m._createPolylineGeometry=function(t){return{paths:[[]],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}};m._createMultipointGeometry=function(t){return{points:[],spatialReference:t.spatialReference,hasZ:!!t.hasZ,hasM:!!t.hasM}};m._dehydratedAddPointsCoordinate=function(t,f,q){0===q&&0===this._toAddInCurrentPath--&&(t.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-
1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);f=this._transformPathLikeValue(f,q);t=t[t.length-1];0===q&&(this._coordinateBufferPtr=0,this._coordinateBuffer=Array(this._vertexDimension),t.push(this._coordinateBuffer));this._coordinateBuffer[this._coordinateBufferPtr++]=f};m._deriveApplyTransform=function(t){const {hasZ:f,hasM:q}=t;return f&&q?h:f?u:q?r:n};return l}();a.JSONFeatureSetParserContext=p;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/layers/graphics/featureConversionUtils":function(){define("exports ../../core/Error ../../core/Logger ../../core/maybe ../../geometry/support/jsonUtils ./OptimizedFeature ./OptimizedFeatureSet ./OptimizedGeometry".split(" "),function(a,b,c,e,d,n,u,r){function h(Y,ea){return Y?ea?4:3:ea?3:2}function g(Y,ea,ma,ja){if(Y){if(ma)return ea&&ja?O:sa;if(ea&&ja)return L}else if(ea&&ja)return sa;return la}function k({scale:Y,translate:ea},ma){return Math.round((ma-ea[0])/Y[0])}function p({scale:Y,translate:ea},
ma){return Math.round((ea[1]-ma)/Y[1])}function l({scale:Y,translate:ea},ma,ja){return ma*Y[ja]+ea[ja]}function m(Y){Y=Y.coords;return{x:Y[0],y:Y[1]}}function t(Y,ea){Y.coords[0]=ea.x;Y.coords[1]=ea.y;return Y}function f(Y){Y=Y.coords;return{x:Y[0],y:Y[1],z:Y[2]}}function q(Y,ea){Y.coords[0]=ea.x;Y.coords[1]=ea.y;Y.coords[2]=ea.z;return Y}function v(Y){Y=Y.coords;return{x:Y[0],y:Y[1],m:Y[2]}}function x(Y,ea){Y.coords[0]=ea.x;Y.coords[1]=ea.y;Y.coords[2]=ea.m;return Y}function z(Y){Y=Y.coords;return{x:Y[0],
y:Y[1],z:Y[2],m:Y[3]}}function y(Y,ea){Y.coords[0]=ea.x;Y.coords[1]=ea.y;Y.coords[2]=ea.z;Y.coords[3]=ea.m;return Y}function A(Y,ea){return Y&&ea?y:Y?q:ea?x:t}function B(Y,ea,ma,ja,S){ma=A(ma,ja);for(const {geometry:fa,attributes:R}of ea)ea=e.isSome(fa)?ma(new r,fa):null,Y.push(new n.OptimizedFeature(ea,R,null,S?R[S]:void 0));return Y}function E(Y,ea,ma,ja){for(const {geometry:S,attributes:fa}of ea)Y.push({attributes:fa,geometry:e.isSome(S)?w(S,ma,ja):null});return Y}function w(Y,ea,ma){if(e.isNone(Y))return null;
const ja=h(ea,ma),S=[];for(let fa=0;fa<Y.coords.length;fa+=ja){const R=[];for(let Q=0;Q<ja;Q++)R.push(Y.coords[fa+Q]);S.push(R)}return ea?ma?{points:S,hasZ:ea,hasM:ma}:{points:S,hasZ:ea}:ma?{points:S,hasM:ma}:{points:S}}function D(Y,ea,ma,ja,S){ma=h(ma,ja);for(const {geometry:fa,attributes:R}of ea)ea=e.isSome(fa)?C(new r,fa,ma):null,Y.push(new n.OptimizedFeature(ea,R,null,S?R[S]:void 0));return Y}function C(Y,ea,ma=h(ea.hasZ,ea.hasM)){Y.lengths[0]=ea.points.length;const ja=Y.coords;let S=0;for(const fa of ea.points)for(ea=
0;ea<ma;ea++)ja[S++]=fa[ea];return Y}function F(Y,ea,ma){if(!Y)return null;const ja=h(ea,ma),{coords:S,lengths:fa}=Y;Y=[];let R=0;for(const Q of fa){const Z=[];for(let X=0;X<Q;X++){const M=[];for(let aa=0;aa<ja;aa++)M.push(S[R++]);Z.push(M)}Y.push(Z)}return ea?ma?{paths:Y,hasZ:ea,hasM:ma}:{paths:Y,hasZ:ea}:ma?{paths:Y,hasM:ma}:{paths:Y}}function G(Y,ea,ma,ja,S){ma=h(ma,ja);for(const {geometry:fa,attributes:R}of ea)ea=e.isSome(fa)?H(new r,fa,ma):null,Y.push(new n.OptimizedFeature(ea,R,null,S?R[S]:
void 0));return Y}function H(Y,ea,ma=h(ea.hasZ,ea.hasM)){const {lengths:ja,coords:S}=Y;let fa=0;for(const R of ea.paths){for(const Q of R)for(ea=0;ea<ma;ea++)S[fa++]=Q[ea];ja.push(R.length)}return Y}function I(Y,ea,ma){if(!Y)return null;const ja=h(ea,ma),{coords:S,lengths:fa}=Y;Y=[];let R=0;for(const Q of fa){const Z=[];for(let X=0;X<Q;X++){const M=[];for(let aa=0;aa<ja;aa++)M.push(S[R++]);Z.push(M)}Y.push(Z)}return ea?ma?{rings:Y,hasZ:ea,hasM:ma}:{rings:Y,hasZ:ea}:ma?{rings:Y,hasM:ma}:{rings:Y}}
function J(Y,ea,ma,ja,S){for(const {geometry:fa,centroid:R,attributes:Q}of ea){ea=e.isSome(fa)?K(new r,fa,ma,ja):null;const Z=S?Q[S]:void 0;e.isSome(R)?Y.push(new n.OptimizedFeature(ea,Q,t(new r,R),Z)):Y.push(new n.OptimizedFeature(ea,Q,null,Z))}return Y}function K(Y,ea,ma=ea.hasZ,ja=ea.hasM){N(Y,ea.rings,ma,ja);return Y}function N(Y,ea,ma,ja){ma=h(ma,ja);const {lengths:S,coords:fa}=Y;ja=0;ta(Y);for(const R of ea){for(const Q of R)for(ea=0;ea<ma;ea++)fa[ja++]=Q[ea];S.push(R.length)}return Y}function U(Y,
ea,ma,ja,S,fa){Ba(Y);if(!ma){for(const R of ea)Y.push(new n.OptimizedFeature(null,R.attributes,null,fa?R.attributes[fa]:void 0));return Y}switch(ma){case "esriGeometryPoint":return B(Y,ea,ja,S,fa);case "esriGeometryMultipoint":return D(Y,ea,ja,S,fa);case "esriGeometryPolyline":return G(Y,ea,ja,S,fa);case "esriGeometryPolygon":return J(Y,ea,ja,S,fa);default:Ha.error("convertToFeatureSet:unknown-geometry",new b(`Unable to parse unknown geometry type '${ma}'`)),Ba(Y)}return Y}function ba(Y,ea,ma,ja){Y=
Y&&("coords"in Y?Y:Y.geometry);if(e.isNone(Y))return null;switch(ea){case "esriGeometryPoint":return ea=m,ma&&ja?ea=z:ma?ea=f:ja&&(ea=v),ea(Y);case "esriGeometryMultipoint":return w(Y,ma,ja);case "esriGeometryPolyline":return F(Y,ma,ja);case "esriGeometryPolygon":return I(Y,ma,ja);default:return Ha.error("convertToGeometry:unknown-geometry",new b(`Unable to parse unknown geometry type '${ea}'`)),null}}function ka(Y,ea,ma,ja,S){Ba(Y);if(e.isNone(ma)){for(const R of ea)Y.push({attributes:R.attributes});
return Y}switch(ma){case "esriGeometryPoint":ma=m;ja&&S?ma=z:ja?ma=f:S&&(ma=v);for(var fa of ea){const {geometry:R,attributes:Q}=fa;ja=e.isSome(R)?ma(R):null;Y.push({attributes:Q,geometry:ja})}break;case "esriGeometryMultipoint":return E(Y,ea,ja,S);case "esriGeometryPolyline":for(const {geometry:R,attributes:Q}of ea)Y.push({attributes:Q,geometry:e.isSome(R)?F(R,ja,S):null});break;case "esriGeometryPolygon":for(const {geometry:R,attributes:Q,centroid:Z}of ea)fa=e.isSome(R)?I(R,ja,S):null,e.isSome(Z)?
(ea=m(Z),Y.push({attributes:Q,centroid:ea,geometry:fa})):Y.push({attributes:Q,geometry:fa});break;default:Ha.error("convertToFeatureSet:unknown-geometry",new b(`Unable to parse unknown geometry type '${ma}'`))}return Y}function P(Y,ea,ma,ja,S,fa,R=ma,Q=ja){ta(Y);if(e.isNone(ea)||!ea.coords.length)return null;S=da[S];const {coords:Z,lengths:X}=ea;ea=h(ma,ja);const M=h(ma&&R,ja&&Q);ma=g(ma,ja,R,Q);if(!X.length)return ma(Y.coords,Z,0,0,k(fa,Z[0]),p(fa,Z[1])),ta(Y,ea,0),Y;let aa,oa=0,Da,Ea=0;for(const Ja of X){if(Ja<
S)continue;let Ka=0;Da=Ea;Q=ja=k(fa,Z[oa]);aa=R=p(fa,Z[oa+1]);ma(Y.coords,Z,Da,oa,Q,aa);Ka++;oa+=ea;Da+=M;for(let Sa=1;Sa<Ja;Sa++,oa+=ea)if(Q=k(fa,Z[oa]),aa=p(fa,Z[oa+1]),Q!==ja||aa!==R)ma(Y.coords,Z,Da,oa,Q-ja,aa-R),Da+=M,Ka++,ja=Q,R=aa;Ka>=S&&(Y.lengths.push(Ka),Ea=Da)}Ba(Y.coords,Ea);return Y.coords.length?Y:null}function V(Y,ea,ma,ja,S,fa,R){let Q=ja,Z=0;for(let M=fa+ma;M<R;M+=ma){var X=ea[M];const aa=ea[M+1],oa=ea[R],Da=ea[R+1];let Ea=ea[fa],Ja=ea[fa+1],Ka=oa-Ea,Sa=Da-Ja;if(0!==Ka||0!==Sa){const Ta=
((X-Ea)*Ka+(aa-Ja)*Sa)/(Ka*Ka+Sa*Sa);1<Ta?(Ea=oa,Ja=Da):0<Ta&&(Ea+=Ka*Ta,Ja+=Sa*Ta)}Ka=X-Ea;Sa=aa-Ja;X=Ka*Ka+Sa*Sa;X>Q&&(Z=M,Q=X)}Q>ja&&(Z-fa>ma&&V(Y,ea,ma,ja,S,fa,Z),S(Y,ea,Y.length,Z,ea[Z],ea[Z+1]),R-Z>ma&&V(Y,ea,ma,ja,S,Z,R))}function ca(Y,ea,ma,ja,S){const {coords:fa,lengths:R}=ea;ma=h(ma,ja);if(!fa.length)return Y!==ea&&ta(Y),Y;e.assertIsSome(S);const {originPosition:Q,scale:Z,translate:X}=S;S=ya;S.originPosition=Q;ja=S.scale;ja[0]=Z[0]??1;ja[1]=-(Z[1]??1);ja[2]=Z[2]??1;ja[3]=Z[3]??1;var M=S.translate;
M[0]=X[0]??0;M[1]=X[1]??0;M[2]=X[2]??0;M[3]=X[3]??0;if(!R.length){for(ja=0;ja<ma;++ja)Y.coords[ja]=l(S,fa[ja],ja);Y!==ea&&ta(Y,ma,0);return Y}M=0;for(let oa=0;oa<R.length;oa++){const Da=R[oa];Y.lengths[oa]=Da;for(var aa=0;aa<ma;++aa)Y.coords[M+aa]=l(S,fa[M+aa],aa);aa=Y.coords[M];let Ea=Y.coords[M+1];M+=ma;for(let Ja=1;Ja<Da;Ja++,M+=ma){aa+=fa[M]*ja[0];Ea+=fa[M+1]*ja[1];Y.coords[M]=aa;Y.coords[M+1]=Ea;for(let Ka=2;Ka<ma;++Ka)Y.coords[M+Ka]=l(S,fa[M+Ka],Ka)}}Y!==ea&&ta(Y,fa.length,R.length);return Y}
function ra(Y,ea,ma,ja){let S=0,fa=Y[ja*ea],R=Y[ja*(ea+1)];for(let Q=1;Q<ma;Q++){const Z=fa+Y[ja*(ea+Q)],X=R+Y[ja*(ea+Q)+1],M=(Z-fa)*(X+R);fa=Z;R=X;S+=M}return.5*S}function ta(Y,ea=0,ma=0){Ba(Y.lengths,ma);Ba(Y.coords,ea)}function Ba(Y,ea=0){Y.length!==ea&&(Y.length=ea)}const Ha=c.getLogger("esri.layers.graphics.featureConversionUtils"),da={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},la=(Y,ea,ma,ja,S,fa)=>{Y[ma]=S;Y[ma+1]=fa},sa=(Y,ea,ma,ja,S,fa)=>{Y[ma]=
S;Y[ma+1]=fa;Y[ma+2]=ea[ja+2]},L=(Y,ea,ma,ja,S,fa)=>{Y[ma]=S;Y[ma+1]=fa;Y[ma+2]=ea[ja+3]},O=(Y,ea,ma,ja,S,fa)=>{Y[ma]=S;Y[ma+1]=fa;Y[ma+2]=ea[ja+2];Y[ma+3]=ea[ja+3]},ha=[],pa=[],ya={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]};a.convertFromFeature=function(Y,ea,ma,ja,S){ha[0]=Y;[Y]=U(pa,ha,ea,ma,ja,S);Ba(ha);Ba(pa);return Y};a.convertFromFeatureSet=function(Y,ea){const ma=new u,{hasM:ja,hasZ:S,features:fa,objectIdFieldName:R,spatialReference:Q,geometryType:Z,exceededTransferLimit:X,
transform:M,fields:aa}=Y;aa&&(ma.fields=aa);ma.geometryType=Z??null;ma.objectIdFieldName=R??ea??null;ma.spatialReference=Q??null;if(!ma.objectIdFieldName)return Ha.error(new b("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),ma;fa&&U(ma.features,fa,Z,S,ja,ma.objectIdFieldName);X&&(ma.exceededTransferLimit=X);ja&&(ma.hasM=ja);S&&(ma.hasZ=S);M&&(ma.transform=M);return ma};a.convertFromFeatures=U;a.convertFromGeometry=function(Y,ea,ma){if(e.isNone(Y))return null;const ja=
new r;"hasZ"in Y&&null==ea&&(ea=Y.hasZ);"hasM"in Y&&null==ma&&(ma=Y.hasM);if(d.isPoint(Y))return A(null!=ea?ea:null!=Y.z,null!=ma?ma:null!=Y.m)(ja,Y);if(d.isPolygon(Y))return K(ja,Y,ea,ma);if(d.isPolyline(Y))return H(ja,Y,h(ea,ma));if(d.isMultipoint(Y))return C(ja,Y,h(ea,ma));Ha.error("convertFromGeometry:unknown-geometry",new b(`Unable to parse unknown geometry type '${Y}'`))};a.convertFromGraphics=function(Y,ea,ma,ja,S,fa){const R=Y.length;switch(ma){case "esriGeometryPoint":B(Y,ea,ja,S,fa);break;
case "esriGeometryMultipoint":D(Y,ea,ja,S,fa);break;case "esriGeometryPolyline":G(Y,ea,ja,S,fa);break;case "esriGeometryPolygon":J(Y,ea,ja,S,fa);break;default:Ha.error("convertToFeatureSet:unknown-geometry",new b(`Unable to parse unknown geometry type '${ma}'`))}for(ja=0;ja<ea.length;ja++)Y[ja+R].geometryType=ma,Y[ja+R].insertAfter=ea[ja].insertAfter,Y[ja+R].groupId=ea[ja].groupId;return Y};a.convertFromMultipoint=C;a.convertFromMultipointFeatures=D;a.convertFromNestedArray=N;a.convertFromPoint=function(Y,
ea,ma=A(null!=ea.z,null!=ea.m)){return ma(Y,ea)};a.convertFromPointFeatures=B;a.convertFromPolygon=K;a.convertFromPolyline=H;a.convertFromPolylineFeatures=G;a.convertToFeature=function(Y,ea,ma,ja){pa[0]=Y;ka(ha,pa,ea,ma,ja);Y=ha[0];Ba(ha);Ba(pa);return Y};a.convertToFeatureSet=function(Y){const {objectIdFieldName:ea,spatialReference:ma,transform:ja,fields:S,hasM:fa,hasZ:R,features:Q,geometryType:Z,exceededTransferLimit:X,uniqueIdField:M,queryGeometry:aa,queryGeometryType:oa}=Y;Y=ka([],Q,Z,R,fa);const Da=
ba(aa,oa,!1,!1);Y={features:Y,fields:S,geometryType:Z,objectIdFieldName:ea,spatialReference:ma,uniqueIdField:M,queryGeometry:Da};ja&&(Y.transform=ja);X&&(Y.exceededTransferLimit=X);fa&&(Y.hasM=fa);R&&(Y.hasZ=R);return Y};a.convertToFeatures=ka;a.convertToGeometry=ba;a.convertToMultipoint=w;a.convertToMultipointFeatures=E;a.convertToPoint=function(Y,ea,ma){return Y?ea?ma?z(Y):f(Y):ma?v(Y):m(Y):null};a.convertToPolygon=I;a.convertToPolyline=F;a.deltaDecodeGeometry=function(Y,ea){if(e.isNone(Y))return null;
const ma=Y.clone(),ja=Y.coords;Y=Y.lengths;let S=0;for(let Q=0;Q<Y.length;Q++){const Z=Y[Q];var fa=ja[ea*S],R=ja[ea*S+1];for(let X=1;X<Z;X++)fa+=ja[ea*(S+X)],R+=ja[ea*(S+X)+1],ma.coords[ea*(S+X)]=fa,ma.coords[ea*(S+X)+1]=R;S+=Z}return ma};a.deltaEncodeGeometry=function(Y,ea){const ma=Y.clone(),ja=Y.coords;Y=Y.lengths;let S=0;for(let R=0;R<Y.length;R++){const Q=Y[R];let Z=ja[ea*S];var fa=ja[ea*S+1];for(let X=1;X<Q;X++){const M=ja[ea*(S+X)],aa=ja[ea*(S+X)+1];fa=aa-fa;ma.coords[ea*(S+X)]=M-Z;ma.coords[ea*
(S+X)+1]=fa;Z=M;fa=aa}S+=Q}return ma};a.generalizeOptimizedGeometry=function(Y,ea,ma,ja,S,fa,R=ma,Q=ja){ta(Y);if(!ea||!ea.coords.length)return null;S=da[S];const {coords:Z,lengths:X}=ea;ea=h(ma,ja);const M=h(ma&&R,ja&&Q);ma=g(ma,ja,R,Q);if(!X.length)return ma(Y.coords,Z,0,0,Z[0],Z[1]),ta(Y,ea,0),Y;ja=0;fa*=fa;for(const aa of X){if(aa<S){ja+=aa*ea;continue}R=Y.coords.length/M;Q=ja;const oa=ja+(aa-1)*ea;ma(Y.coords,Z,Y.coords.length,Q,Z[Q],Z[Q+1]);V(Y.coords,Z,ea,fa,ma,Q,oa);ma(Y.coords,Z,Y.coords.length,
oa,Z[oa],Z[oa+1]);Q=Y.coords.length/M-R;Q>=S?Y.lengths.push(Q):Ba(Y.coords,R*M);ja+=aa*ea}return Y.coords.length?Y:null};a.getBoundsOptimizedGeometry=function(Y,ea,ma,ja){if(e.isNone(ea)||!ea.coords||!ea.coords.length)return null;ma=h(ma,ja);let S=ja=Number.POSITIVE_INFINITY,fa=Number.NEGATIVE_INFINITY,R=Number.NEGATIVE_INFINITY;if(ea&&ea.coords){ea=ea.coords;for(let Q=0;Q<ea.length;Q+=ma){const Z=ea[Q],X=ea[Q+1];ja=Math.min(ja,Z);fa=Math.max(fa,Z);S=Math.min(S,X);R=Math.max(R,X)}}Y[0]=ja;Y[1]=S;
Y[2]=fa;Y[3]=R;return Y};a.getQuantizedArea=function(Y,ea){const {coords:ma,lengths:ja}=Y;let S=Y=0;for(let fa=0;fa<ja.length;fa++){const R=ja[fa];S+=ra(ma,Y,R,ea);Y+=R}return Math.abs(S)};a.getQuantizedBoundsOptimizedGeometry=function(Y,ea,ma,ja){ma=h(ma,ja);const {lengths:S,coords:fa}=ea;ja=ea=Number.POSITIVE_INFINITY;let R=Number.NEGATIVE_INFINITY,Q=Number.NEGATIVE_INFINITY,Z=0;for(const X of S){let M=fa[Z],aa=fa[Z+1];ea=Math.min(M,ea);ja=Math.min(aa,ja);R=Math.max(M,R);Q=Math.max(aa,Q);Z+=ma;
for(let oa=1;oa<X;oa++,Z+=ma){const Da=fa[Z],Ea=fa[Z+1];M+=Da;aa+=Ea;0>Da&&(ea=Math.min(ea,M));0<Da&&(R=Math.max(R,M));0>Ea?ja=Math.min(ja,aa):0<Ea&&(Q=Math.max(Q,aa))}}Y[0]=ea;Y[1]=ja;Y[2]=R;Y[3]=Q;return Y};a.getSignedQuantizedRingArea=ra;a.quantizeOptimizedFeatureSet=function(Y,ea){const {geometryType:ma,features:ja,hasM:S,hasZ:fa}=ea;if(!Y)return ea;for(let R=0;R<ja.length;R++){const Q=ja[R],Z=Q.weakClone();Z.geometry=new r;P(Z.geometry,Q.geometry,S,fa,ma,Y);Q.centroid&&(Z.centroid=new r,P(Z.centroid,
Q.centroid,S,fa,"esriGeometryPoint",Y));ja[R]=Z}ea.transform=Y;return ea};a.quantizeOptimizedGeometry=P;a.quantizeX=k;a.quantizeY=p;a.removeCollinearVectices=function(Y,ea,ma,ja,S){if(!ea||!ea.coords||!ea.coords.length)return null;ma=da[ma];const {coords:fa,lengths:R}=ea;ea=g(ja,S,ja,S);ja=h(ja,S);let Q=S=0,Z=0,X=0;for(const oa of R){Q=X;ea(Y.coords,fa,Q,S,fa[S],fa[S+1]);S+=ja;var M=fa[S];let Da=fa[S+1],Ea=M,Ja=Da;var aa=Da/M;Q+=ja;ea(Y.coords,fa,Q,S,Ea,Ja);S+=ja;for(let Ka=2;Ka<oa;Ka++){M=fa[S];
Da=fa[S+1];const Sa=Da/M,Ta=aa===Sa||!isFinite(aa)&&!isFinite(Sa);aa=Ta&&isFinite(Sa)?0<=aa&&0<=Sa||0>=aa&&0>=Sa:0<=Ja&&0<=Da||0>=Ja&&0>=Da;Ta&&aa?(Ea+=M,Ja+=Da):(Ea=M,Ja=Da,Q+=ja);ea(Y.coords,fa,Q,S,Ea,Ja);S+=ja;aa=Sa}Q+=ja;M=(Q-X)/ja;M>=ma&&(Y.lengths[Z]=M,X=Q,Z++)}Y.coords.length>X&&(Y.coords.length=X);Y.lengths.length>Z&&(Y.lengths.length=Z);return Y.coords.length&&Y.lengths.length?Y:null};a.removeZMValues=function(Y,ea,ma,ja,S,fa){ta(Y);Y.lengths.push(...ea.lengths);if(ma===S&&ja===fa)for(var R=
0;R<ea.coords.length;R++)Y.coords.push(ea.coords[R]);else for(R=h(ma,ja),ma=g(ma,ja,S,fa),ea=ea.coords,ja=0;ja<ea.length;ja+=R)ma(Y.coords,ea,Y.coords.length,ja,ea[ja],ea[ja+1]);return Y};a.unquantizeOptimizedFeatureSet=function(Y){const {transform:ea,features:ma,hasM:ja,hasZ:S}=Y;if(!ea)return Y;for(const fa of ma)e.isSome(fa.geometry)&&ca(fa.geometry,fa.geometry,ja,S,ea),e.isSome(fa.centroid)&&ca(fa.centroid,fa.centroid,ja,S,ea);Y.transform=null;return Y};a.unquantizeOptimizedGeometry=ca;a.unquantizeValue=
l;a.unquantizeX=function(Y,ea){return l(Y,ea,0)};a.unquantizeY=function(Y,ea){return l(Y,-ea,1)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/View":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Map ../TimeExtent ../core/Accessor ../core/asyncUtils ../core/Collection ../core/CollectionFlattener ../core/Error ../core/Evented ../core/HandleOwner ../core/handleUtils ../core/Loadable ../core/Logger ../core/maybe ../core/Promise ../core/promiseUtils ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/support/OwningCollection ../geometry/Extent ../geometry/HeightModelInfo ../geometry/SpatialReference ../geometry/support/spatialReferenceUtils ../support/AnalysesCollection ../support/GraphicsCollection ./BasemapView ./LayerViewManager ./Magnifier ./ToolViewManager ./input/Input ./input/ViewEvents ./navigation/Navigation ./support/DefaultsFromMap".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C,F,G,H,I,J,K,N,U,ba,ka){var P;d=P=function(V){function ca(ta){var Ba=V.call(this,ta)||this;Ba._userSpatialReference=null;Ba._cursor=null;Ba.allLayerViews=new r({getCollections:()=>[Ba.basemapView?.baseLayerViews,Ba.groundView?.layerViews,Ba.layerViews,Ba.basemapView?.referenceLayerViews],getChildrenFunction:Ha=>Ha.layerViews});Ba.groundView=null;Ba.basemapView=null;Ba.fatalError=null;Ba.graphics=new G.GraphicsCollection;Ba.analyses=new F.AnalysesCollection;
Ba.typeSpecificPreconditionsReady=!0;Ba.layerViews=new u;Ba.magnifier=new J;Ba.padding={left:0,top:0,right:0,bottom:0};Ba.ready=!1;Ba.spatialReferenceWarningDelay=1E3;Ba.supportsGround=!0;Ba.timeExtent=null;Ba.type=null;Ba.scale=null;Ba.updating=!1;Ba.initialExtentRequired=!0;Ba.input=new N;Ba.navigation=new ba;Ba.layerViewManager=null;Ba.analysisViewManager=null;Ba.isHeightModelInfoRequired=!1;Ba.width=null;Ba.height=null;Ba.resizing=!1;Ba.suspended=!1;Ba.viewEvents=new U.ViewEvents(a._assertThisInitialized(Ba));
Ba.persistableViewModels=new u;Ba._isValid=!1;Ba._readyCycleForced=!1;Ba.handles.add(v.watch(()=>Ba.preconditionsReady,Ha=>{Ha?(Ba._currentSpatialReference=Ba.spatialReference,P.views.add(a._assertThisInitialized(Ba))):(Ba._currentSpatialReference=null,P.views.remove(a._assertThisInitialized(Ba)));Ba.notifyChange("spatialReference");!Ha&&Ba.ready?(Ba.toolViewManager?.detach(),t.isSome(Ba.analysisViewManager)&&Ba.analysisViewManager.detach(),Ba.layerViewManager?.clear(),Ba._teardown()):Ha&&!Ba.ready&&
(Ba._startup(),t.isSome(Ba.analysisViewManager)&&Ba.analysisViewManager.attach(),Ba.toolViewManager.attach())},v.sync));return Ba}a._inheritsLoose(ca,V);var ra=ca.prototype;ra.initialize=function(){this.addResolvingPromise(this.validate().then(()=>{this._isValid=!0;return v.whenOnce(()=>this.ready)}));this.basemapView=new H.BasemapView({view:this});this.layerViewManager=new I({view:this,layerViewImporter:{importLayerView:ta=>this.importLayerView(ta),hasLayerViewModule:ta=>this.hasLayerViewModule(ta)},
supportsGround:this.supportsGround});this.toolViewManager=new K({view:this});this._setupSpatialReferenceLogger();this.handles.add([v.watch(()=>this.initialExtentRequired,ta=>this.defaultsFromMap.required={...this.defaultsFromMap.required,extent:ta},{sync:!0,initial:!0}),v.watch(()=>this.ready,ta=>{this.defaultsFromMap&&(this.defaultsFromMap.suspended=ta,this.defaultsFromMap.userSpatialReference=ta?this.spatialReference:this._userSpatialReference)},{sync:!0}),v.watch(()=>this._userSpatialReference,
ta=>{this.defaultsFromMap&&(this.defaultsFromMap.userSpatialReference=ta)},{sync:!0,initial:!0})])};ra._setupSpatialReferenceLogger=function(){var ta=this;let Ba=null;this.handles.add([v.watch(()=>this.defaultsFromMap?.ready,Ha=>{const da=0<this.map?.allLayers.length;Ha&&!this.spatialReference&&da?t.isSome(Ba)||(Ha=p.makeHandle(()=>Ba=t.abortMaybe(Ba)),Ba=n.createTask(function(){var la=a._asyncToGenerator(function*(sa){try{yield q.after(ta.spatialReferenceWarningDelay,null,sa)}catch{return}finally{Ba=
null}m.getLogger(ta.declaredClass).warn("#spatialReference","no spatial reference could be derived from the currently added map layers")});return function(sa){return la.apply(this,arguments)}}()),this.handles.add(Ha,"spatial-reference-logger-task")):this.handles.remove("spatial-reference-logger-task")},{sync:!0})])};ra.destroy=function(){if(!this.destroyed){this.viewEvents.destroy();this.allLayerViews.destroy();this.navigation&&(this.navigation.destroy(),this._set("navigation",null));this.graphics=
t.destroyMaybe(this.graphics);this.analyses=t.destroyMaybe(this.analyses);this.handles.remove("defaultsFromMap");this.defaultsFromMap.destroy();this._set("defaultsFromMap",null);t.destroyMaybe(this.analysisViewManager);this.toolViewManager=t.destroyMaybe(this.toolViewManager);this.layerViewManager=t.destroyMaybe(this.layerViewManager);this.basemapView=t.destroyMaybe(this.basemapView);this.invalidate();this._emitter.clear();this.handles.removeAll();var ta=this.map;this.map=null;ta?.destroy()}};ra._startup=
function(){this._set("ready",!0)};ra._teardown=function(){this._set("ready",!1)};ra.whenReady=function(){return Promise.resolve(this)};ra.toMap=function(){m.getLogger(this.declaredClass).error("#toMap()","Not implemented on this instance of View");return null};ra._spatialReferenceChanged=function(ta){};ra.whenLayerView=function(ta){return this.layerViewManager.whenLayerView(ta)};ra.getDefaultSpatialReference=function(){return this.defaultsFromMap?.spatialReference};ra.getDefaultHeightModelInfo=function(){return(this.map&&
"heightModelInfo"in this.map?this.map.heightModelInfo:void 0)??this.defaultsFromMap?.heightModelInfo??null};ra.importLayerView=function(ta){throw new h("importLayerView() not implemented");};ra.hasLayerViewModule=function(ta){return!1};ra.validate=function(){var ta=a._asyncToGenerator(function*(){});return function(){return ta.apply(this,arguments)}}();ra.invalidate=function(){this._isValid=!1};ra.getSpatialReferenceSupport=function(){return{constraints:null}};ra._validateSpatialReference=function(ta){return t.isSome(this.getSpatialReferenceSupport({spatialReference:ta}))};
ra.when=function(ta,Ba){this.isResolved()&&!this.ready&&m.getLogger(this.declaredClass).warn("#when()","Calling view.when() while the view is no longer ready but was already resolved once will resolve immediately. Use reactiveUtils.whenOnce(() \x3d\x3e view.ready).then(...) instead.");return V.prototype.when.call(this,ta,Ba)};ra.forceReadyCycle=function(){this.ready&&(v.when(()=>!1===this.preconditionsReady,()=>this._readyCycleForced=!1,{once:!0}),this._readyCycleForced=!0)};ra.addAndActivateTool=
function(ta){this.toolViewManager.tools.add(ta);this.activeTool=ta};ra.tryFatalErrorRecovery=function(){this.fatalError=null};a._createClass(ca,[{key:"activeTool",get:function(){return this.toolViewManager?.activeTool},set:function(ta){this.toolViewManager&&(this.toolViewManager.activeTool=ta)}},{key:"animation",get:function(){return this._get("animation")},set:function(ta){this._set("animation",ta)}},{key:"_defaultsFromMapSettings",get:function(){return{}}},{key:"defaultsFromMap",get:function(){return new ka.DefaultsFromMap({required:{tileInfo:!1,
heightModelInfo:!1,extent:!1},map:()=>this.map,getSpatialReferenceSupport:ta=>this.getSpatialReferenceSupport(ta),...this._defaultsFromMapSettings})}},{key:"extent",get:function(){return this._get("extent")},set:function(ta){this._set("extent",ta)}},{key:"heightModelInfo",get:function(){return this.getDefaultHeightModelInfo()}},{key:"interacting",get:function(){return this.navigating}},{key:"navigating",get:function(){return!1}},{key:"preconditionsReady",get:function(){return!(this.fatalError||!this._isValid||
this._readyCycleForced||!this.map||l.isLoadable(this.map)&&!this.map.loaded||0===this.width||0===this.height||!this.spatialReference||!this._validateSpatialReference(this.spatialReference)||!this._currentSpatialReference&&!this.defaultsFromMap?.ready||!this.typeSpecificPreconditionsReady)}},{key:"map",set:function(ta){const Ba=this._get("map");ta!==Ba&&(ta?.destroyed&&(m.getLogger(this.declaredClass).warn("#map","The provided map is already destroyed",{map:ta}),ta=null),l.isLoadable(ta)&&ta.load().catch(()=>
{}),this.constructed&&(this.forceReadyCycle(),this._currentSpatialReference=null),this._set("map",ta))}},{key:"spatialReference",get:function(){let ta=this._userSpatialReference||this._currentSpatialReference||this.getDefaultSpatialReference()||null;ta&&this.defaultsFromMap?.required?.heightModelInfo&&(ta=ta.clone(),ta.vcsWkid=this.defaultsFromMap.vcsWkid,ta.latestVcsWkid=this.defaultsFromMap.latestVcsWkid);return ta},set:function(ta){const Ba=!C.equals(ta,this._get("spatialReference"));this._set("_userSpatialReference",
ta);Ba&&(this._set("spatialReference",ta),this._spatialReferenceChanged(ta))}},{key:"stationary",get:function(){return!this.animation&&!this.navigating&&!this.resizing}},{key:"tools",get:function(){return this.toolViewManager?.tools}},{key:"initialExtent",get:function(){return this.defaultsFromMap?.extent}},{key:"cursor",get:function(){const ta=this.toolViewManager?this.toolViewManager.cursor:null;return t.isSome(ta)?ta:this._cursor||"default"},set:function(ta){this._cursor=ta;this.notifyChange("cursor")}},
{key:"size",get:function(){return[this.width,this.height]}}]);return ca}(k.HandleOwnerMixin(g.EventedMixin(f.EsriPromiseMixin(d))));d.views=new u;b.__decorate([x.property()],d.prototype,"_userSpatialReference",void 0);b.__decorate([x.property()],d.prototype,"activeTool",null);b.__decorate([x.property({readOnly:!0})],d.prototype,"allLayerViews",void 0);b.__decorate([x.property()],d.prototype,"groundView",void 0);b.__decorate([x.property()],d.prototype,"animation",null);b.__decorate([x.property()],
d.prototype,"basemapView",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"_defaultsFromMapSettings",null);b.__decorate([x.property()],d.prototype,"defaultsFromMap",null);b.__decorate([x.property()],d.prototype,"fatalError",void 0);b.__decorate([x.property({type:E})],d.prototype,"extent",null);b.__decorate([x.property(B.owningCollectionProperty(G.GraphicsCollection,"graphics"))],d.prototype,"graphics",void 0);b.__decorate([x.property(B.owningCollectionProperty(F.AnalysesCollection,"analyses"))],
d.prototype,"analyses",void 0);b.__decorate([x.property({readOnly:!0,type:w})],d.prototype,"heightModelInfo",null);b.__decorate([x.property({readOnly:!0})],d.prototype,"interacting",null);b.__decorate([x.property({readOnly:!0})],d.prototype,"navigating",null);b.__decorate([x.property({readOnly:!0,dependsOn:"fatalError _isValid _readyCycleForced map map.loaded? width height spatialReference _currentSpatialReference defaultsFromMap.ready typeSpecificPreconditionsReady".split(" ")})],d.prototype,"preconditionsReady",
null);b.__decorate([x.property({readOnly:!0})],d.prototype,"typeSpecificPreconditionsReady",void 0);b.__decorate([x.property({type:u,readOnly:!0})],d.prototype,"layerViews",void 0);b.__decorate([x.property({type:J})],d.prototype,"magnifier",void 0);b.__decorate([x.property({value:null,type:c})],d.prototype,"map",null);b.__decorate([x.property()],d.prototype,"padding",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"ready",void 0);b.__decorate([x.property({type:D})],d.prototype,"spatialReference",
null);b.__decorate([x.property()],d.prototype,"spatialReferenceWarningDelay",void 0);b.__decorate([x.property()],d.prototype,"stationary",null);b.__decorate([x.property({readOnly:!0})],d.prototype,"supportsGround",void 0);b.__decorate([x.property({type:e})],d.prototype,"timeExtent",void 0);b.__decorate([x.property()],d.prototype,"tools",null);b.__decorate([x.property()],d.prototype,"toolViewManager",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"type",void 0);b.__decorate([x.property({type:Number})],
d.prototype,"scale",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"updating",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"initialExtentRequired",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"initialExtent",null);b.__decorate([x.property()],d.prototype,"cursor",null);b.__decorate([x.property({readOnly:!0})],d.prototype,"input",void 0);b.__decorate([x.property({type:ba,nonNullable:!0})],d.prototype,"navigation",void 0);b.__decorate([x.property()],d.prototype,
"layerViewManager",void 0);b.__decorate([x.property()],d.prototype,"analysisViewManager",void 0);b.__decorate([x.property()],d.prototype,"width",void 0);b.__decorate([x.property()],d.prototype,"height",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"resizing",void 0);b.__decorate([x.property({value:null,readOnly:!0})],d.prototype,"size",null);b.__decorate([x.property({readOnly:!0})],d.prototype,"suspended",void 0);b.__decorate([x.property({readOnly:!0})],d.prototype,"viewEvents",void 0);
b.__decorate([x.property({readOnly:!0})],d.prototype,"persistableViewModels",void 0);b.__decorate([x.property()],d.prototype,"_isValid",void 0);b.__decorate([x.property()],d.prototype,"_readyCycleForced",void 0);b.__decorate([x.property()],d.prototype,"_currentSpatialReference",void 0);return d=P=b.__decorate([A.subclass("esri.views.View")],d)})},"esri/core/support/OwningCollection":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../Collection ../collectionUtils ../HandleOwner ../has ../Logger ../maybe ../accessorSupport/decorators/property ../arrayUtils ../accessorSupport/ensureType ../accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){a.OwningCollection=function(m){function t(q){var v=m.call(this,q)||this;v.handles.add([v.on("before-add",x=>{h.isNone(x.item)&&x.preventDefault()}),v.on("after-add",x=>v._own(x.item)),v.on("after-remove",x=>v._release(x.item))]);return v}b._inheritsLoose(t,m);var f=t.prototype;f._ownAll=function(){for(const q of this.items)this._own(q)};f._releaseAll=function(){for(const q of this.items)this._release(q)};f._createNewInstance=function(q){return this.itemType?new (e.ofType(this.itemType.Type))(q):
new e(q)};b._createClass(t,[{key:"owner",get:function(){return this._get("owner")},set:function(q){q!==this._get("owner")&&(this._releaseAll(),this._set("owner",q),this._ownAll())}}]);return t}(n.HandleOwnerMixin(e));c.__decorate([g.property()],a.OwningCollection.prototype,"owner",null);a.OwningCollection=c.__decorate([l.subclass("esri.core.support.OwningCollection")],a.OwningCollection);a.owningCollectionProperty=function(m,t){return{type:m,cast:d.castForReferenceSetter,set(f){f=d.referenceSetter(f,
this._get(t),m);f.owner=this;this._set(t,f)}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/AnalysesCollection":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Logger ../core/maybe ../core/accessorSupport/ensureType ../core/arrayUtils ../core/Error ../core/has ../core/accessorSupport/decorators/subclass ../core/support/OwningCollection".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){a.AnalysesCollection=
function(p){function l(t){var f=p.call(this,t)||this;f.handles.add(f.on("before-add",q=>{d.isNone(q.item)||q.item.parent!==f.owner||(e.getLogger(f.declaredClass).warn("Analysis inside the collection must be unique. Not adding this element again."),q.preventDefault())}));return f}b._inheritsLoose(l,p);var m=l.prototype;m._own=function(t){t.parent=this.owner};m._release=function(t){t.parent=null};return l}(k.OwningCollection);a.AnalysesCollection=c.__decorate([g.subclass("esri.support.AnalysesCollection")],
a.AnalysesCollection);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/GraphicsCollection":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../Graphic ../core/Logger ../core/accessorSupport/ensureType ../core/arrayUtils ../core/Error ../core/has ../core/accessorSupport/decorators/shared ../core/accessorSupport/decorators/subclass ../core/support/OwningCollection".split(" "),function(a,b,c,e,d,n,u,r,h,g,k,p){a.GraphicsCollection=
function(l){function m(){return l.apply(this,arguments)||this}b._inheritsLoose(m,l);var t=m.prototype;t._own=function(f){f.layer&&"remove"in f.layer&&f.layer!==this.owner&&f.layer.remove(f);f.layer=this.owner};t._release=function(f){f.layer===this.owner&&(f.layer=null)};return m}(p.OwningCollection);c.__decorate([g.shared({Type:e,ensureType:n.ensureType(e)})],a.GraphicsCollection.prototype,"itemType",void 0);a.GraphicsCollection=c.__decorate([k.subclass("esri.support.GraphicsCollection")],a.GraphicsCollection);
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/BasemapView":function(){define("exports ../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r,h,g){a.BasemapView=function(k){function p(l){var m=k.call(this,l)||
this;m.view=null;m.baseLayerViews=new d;m.referenceLayerViews=new d;m._loadingHandle=n.watch(()=>m.view?.map?.basemap,t=>{t&&t.load().catch(()=>{})},n.initial);return m}b._inheritsLoose(p,k);p.prototype.destroy=function(){this._set("view",null);this._loadingHandle&&(this._loadingHandle.remove(),this._loadingHandle=null)};b._createClass(p,[{key:"suspended",get:function(){return this.view?this.view.suspended:!0}},{key:"updating",get:function(){if(this.view&&this.view.suspended)return!1;const l=this.view?.map?.basemap;
return l&&l.loaded?this.baseLayerViews.some(m=>m.updating)||this.referenceLayerViews.some(m=>m.updating):!1}}]);return p}(e);c.__decorate([u.property({constructOnly:!0})],a.BasemapView.prototype,"view",void 0);c.__decorate([u.property({readOnly:!0})],a.BasemapView.prototype,"baseLayerViews",void 0);c.__decorate([u.property({readOnly:!0})],a.BasemapView.prototype,"referenceLayerViews",void 0);c.__decorate([u.property({readOnly:!0})],a.BasemapView.prototype,"suspended",null);c.__decorate([u.property({type:Boolean,
readOnly:!0})],a.BasemapView.prototype,"updating",null);a.BasemapView=c.__decorate([g.subclass("esri.views.BasemapView")],a.BasemapView);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/LayerViewManager":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Error ../core/Logger ../core/MapUtils ../core/maybe ../core/promiseUtils ../core/reactiveUtils ../core/scheduling ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ../core/support/WatchUpdatingTracking".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){let f=function(){function q(x,z,y){this.layer=x;this.view=z;this.layerViewImporter=y;this._controller=new AbortController;this._deferred=r.createDeferred();this.done=this._started=!1;r.onAbort(this._controller.signal,()=>{const A=new e("cancelled:layerview-create","layerview creation cancelled",{layer:x});this._deferred.reject(A)})}var v=q.prototype;v.destroy=function(){this._controller.abort();const {layerView:x}=this;if(x){var {layer:z,view:y}=this;z.emit("layerview-destroy",
{view:y,layerView:x});y.emit("layerview-destroy",{layer:z,layerView:x});this.done=!0;this.layerViewImporter=this.view=this.layerView=this.layer=null}};v.start=function(){var x=a._asyncToGenerator(function*(){if(!this._started){this._started=!0;var {_controller:{signal:z},layer:y,view:A}=this;this._map=A.map;try{yield y.load({signal:z});"prefetchResources"in y&&(yield y.prefetchResources({signal:z}));let E;if(y.createLayerView)E=yield y.createLayerView(A,{signal:z});else{if(!this.layerViewImporter.hasLayerViewModule(y))throw new e("layer:view-not-supported",
"No layerview implementation was found");var B=yield this.layerViewImporter.importLayerView(y);r.throwIfAborted(z);E="default"in B?new B.default({layer:y,view:A}):new B({layer:y,view:A})}let w;B=()=>{w=u.removeMaybe(w);E.destroyed||E.destroy();E.layer=null;E.parent=null;E.view=null;this.done=!0};w=r.onAbort(z,B);r.throwIfAborted(z);try{yield E.when()}catch(D){throw B(),D;}this._map?.allLayers?.includes(y)?(this.layerView=E,y.emit("layerview-create",{view:A,layerView:E}),A.emit("layerview-create",
{layer:y,layerView:E}),this.done=!0,this._deferred.resolve(E)):(B(),this._deferred.reject(new e("view:no-layerview-for-layer","The layer has been removed from the map",{layer:y})))}catch(E){y.emit("layerview-create-error",{view:A,error:E}),A.emit("layerview-create-error",{layer:y,error:E}),this.done=!0,this._deferred.reject(new e("layerview:create-error","layerview creation failed",{layer:y,error:E}))}}});return function(){return x.apply(this,arguments)}}();a._createClass(q,[{key:"promise",get:function(){return this._deferred.promise}}]);
return q}();c=function(q){function v(z){var y=q.call(this,z)||this;y._layerLayerViewInfoMap=new Map;y._watchUpdatingTracking=new t.WatchUpdatingTracking;y.supportsGround=!0;y._preloadLayerViewModules=()=>{const A=y.view.map?.allLayers;if(A)for(const B of A)y.layerViewImporter.hasLayerViewModule(B)&&y.layerViewImporter.importLayerView(B)};y._reschedule=()=>{u.isNone(y._workPromise)&&(y._workPromise=r.createDeferred(),y._workPromise.promise.catch(()=>{}));y.removeHandles("reschedule");y.addHandles(g.schedule(y._doWork),
"reschedule");return y._workPromise.promise};y._doWork=()=>{var A=y.view.map;y._map!==A&&(y.clear(),y._map=A);if(u.isNone(y._workPromise))y.notifyChange("updating");else{y.removeHandles("reschedule");y.removeHandles("collection-change");var B=[],E=D=>{if(!u.isNone(D))for(const C of D)C&&(B.push(C),y._createLayerView(C),"layers"in C&&C.layers&&E(C.layers))};for(var w of y._rootCollectionNames)E(y.get(w));y._refreshCollections();for(const [D,C]of y._layerLayerViewInfoMap)B.includes(D)||(y._layerLayerViewInfoMap.delete(C.layer),
C.destroy());w=B.filter(D=>"group"===D.type).map(D=>D.layers);A=[A?.ground?.layers,A?.basemap?.baseLayers,A?.basemap?.referenceLayers,A?.layers,...w].filter(D=>!!D);y.addHandles(A.map(D=>y._watchUpdatingTracking.addOnCollectionChange(()=>D,y._reschedule)),"collection-change");y._workPromise.resolve();y._workPromise=null}};return y}a._inheritsLoose(v,q);var x=v.prototype;x.initialize=function(){this.own([h.on(()=>this.view?.map?.allLayers,"change",this._preloadLayerViewModules,{onListenerAdd:this._preloadLayerViewModules}),
h.watch(()=>{const z=this.view,y=z?.map;return[y?.basemap,y?.ground,y?.layers,z?.ready]},()=>this._reschedule(),h.syncAndInitial)]);this._preloadLayerViewModules();this._reschedule()};x.destroy=function(){this.clear();this._watchUpdatingTracking.destroy();this._map=null;u.isSome(this._workPromise)&&(this._workPromise.reject(r.createAbortError()),this._workPromise=null)};x.clear=function(){if(!this.destroyed){for(const z of this._layerLayerViewInfoMap.values())z.destroy();this._layerLayerViewInfoMap.clear();
this._refreshCollections()}};x.whenLayerView=function(){var z=a._asyncToGenerator(function*(y){yield this._reschedule();if(!this._layerLayerViewInfoMap.has(y))throw new e("view:no-layerview-for-layer","No layerview has been found for the layer",{layer:y});return this._layerLayerViewInfoMap.get(y).promise});return function(y){return z.apply(this,arguments)}}();x._refreshCollections=function(){for(const [z,y]of this._layersToLayerViews)this._populateLayerViewsOwners(this.get(z),this.get(y),this.view);
this.notifyChange("updating");this.notifyChange("updatingRemaining")};x._populateLayerViewsOwners=function(z,y,A){if(z&&y){var B=0;for(const E of z)(z=this._layerLayerViewInfoMap.get(E))&&z.layerView&&(z=z.layerView,z.layer=E,z.parent=A,y.getItemAt(B)!==z&&y.splice(B,0,z),E.layers&&this._populateLayerViewsOwners(E.layers,z.layerViews,z),B+=1);B<y.length&&y.splice(B,y.length)}else y&&y.removeAll()};x._createLayerView=function(z){if(this._layerLayerViewInfoMap.has(z))this.view.ready&&this._layerLayerViewInfoMap.get(z).start();
else{z.load().catch(()=>{});this.layerViewImporter.hasLayerViewModule(z)&&this.layerViewImporter.importLayerView(z);var y=new f(z,this.view,this.layerViewImporter);y.promise.then(()=>this._refreshCollections(),A=>{A&&(r.isAbortError(A)||"cancelled:layerview-create"===A.name)||d.getLogger(this.declaredClass).error(`Failed to create layerview for layer title:'${z.title??"no title"}', id:'${z.id??"no id"}' of type '${z.type}'.`,{layer:z,error:A});this._refreshCollections()});this._layerLayerViewInfoMap.set(z,
y);this.view.ready&&y.start()}this.notifyChange("updating");this.notifyChange("updatingRemaining")};a._createClass(v,[{key:"_layersToLayerViews",get:function(){const z=[["view.map.basemap.baseLayers","view.basemapView.baseLayerViews"],["view.map.layers","view.layerViews"],["view.map.basemap.referenceLayers","view.basemapView.referenceLayerViews"]];this.supportsGround&&z.push(["view.map.ground.layers","view.groundView.layerViews"]);return new Map(z)}},{key:"_rootCollectionNames",get:function(){return Array.from(this._layersToLayerViews.keys())}},
{key:"updating",get:function(){return u.isSome(this._workPromise)||this._watchUpdatingTracking.updating||n.someMap(this._layerLayerViewInfoMap,z=>!z.done)}},{key:"updatingRemaining",get:function(){let z=0;for(const y of this._layerLayerViewInfoMap.values())y.done||++z;return z}}]);return v}(c);b.__decorate([k.property()],c.prototype,"_workPromise",void 0);b.__decorate([k.property({readOnly:!0})],c.prototype,"_watchUpdatingTracking",void 0);b.__decorate([k.property({readOnly:!0})],c.prototype,"_layersToLayerViews",
null);b.__decorate([k.property({readOnly:!0})],c.prototype,"_rootCollectionNames",null);b.__decorate([k.property()],c.prototype,"layerViewImporter",void 0);b.__decorate([k.property()],c.prototype,"supportsGround",void 0);b.__decorate([k.property({readOnly:!0})],c.prototype,"updating",null);b.__decorate([k.property({readOnly:!0})],c.prototype,"updatingRemaining",null);b.__decorate([k.property({constructOnly:!0})],c.prototype,"view",void 0);return c=b.__decorate([m.subclass("esri.views.LayerViewManager")],
c)})},"esri/views/Magnifier":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/screenUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,e,d,n,u,r){c=function(h){function g(k){k=h.call(this,k)||this;k.factor=1.5;k.offset=e.createScreenPoint(0,0);k.position=null;k.size=120;k.maskUrl=null;k.maskEnabled=!0;k.overlayUrl=null;k.overlayEnabled=
!0;k.visible=!0;return k}a._inheritsLoose(g,h);a._createClass(g,[{key:"version",get:function(){this.commitProperty("factor");this.commitProperty("offset");this.commitProperty("position");this.commitProperty("visible");this.commitProperty("size");this.commitProperty("maskUrl");this.commitProperty("maskEnabled");this.commitProperty("overlayUrl");this.commitProperty("overlayEnabled");return(this._get("version")||0)+1}}]);return g}(c);b.__decorate([d.property({type:Number})],c.prototype,"factor",void 0);
b.__decorate([d.property({nonNullable:!0})],c.prototype,"offset",void 0);b.__decorate([d.property()],c.prototype,"position",void 0);b.__decorate([d.property({type:Number,range:{min:0}})],c.prototype,"size",void 0);b.__decorate([d.property()],c.prototype,"maskUrl",void 0);b.__decorate([d.property()],c.prototype,"maskEnabled",void 0);b.__decorate([d.property()],c.prototype,"overlayUrl",void 0);b.__decorate([d.property()],c.prototype,"overlayEnabled",void 0);b.__decorate([d.property({readOnly:!0})],
c.prototype,"version",null);b.__decorate([d.property({type:Boolean})],c.prototype,"visible",void 0);return c=b.__decorate([r.subclass("esri.views.Magnifier")],c)})},"esri/views/ToolViewManager":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/HandleOwner ../core/handleUtils ../core/has ../core/Logger ../core/maybe ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass ./3d/support/TextureCollection ./input/InputManager ./input/ViewEvents ./interactive/interactiveToolUtils ./interactive/interfaces ./interactive/ToolViewManagerManipulatorState".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z){d=function(y){function A(E){var w=y.call(this,E)||this;w._manipulatorState=new z.ToolViewManagerManipulatorState;w.tools=new e;w.cursor=null;w._forEachTool=D=>{for(const C of w.tools.items)if(D(C))break};return w}a._inheritsLoose(A,y);var B=A.prototype;B.initialize=function(){this.handles.add([this.view.on(q.eventTypes,E=>{this._handleInputEvent(E)},f.ViewEventPriorities.TOOL),...v.getToolCollectionHandles(this.tools),this.tools.on("before-add",({item:E})=>
{this._updateToolEditableFlag(E)}),this.tools.on("before-remove",({item:E})=>{this._manipulatorState.clearPointers(E,this._manipulatorStateEventArgs);this._updateCursor()}),this.tools.on("change",()=>{this._refreshToolWatchers()})])};B.destroy=function(){this.detach();this.handles.removeAll()};B.attach=function(){"3d"===this.view.type?(this._set("textures",new t.TextureCollection(this.view._stage,this.view.resourceController.scheduler)),this.handles.add([g.watch(()=>{const {state:E}=this.view;return"camera"in
E&&E.camera},()=>{this._forEachManipulator(E=>{if(null!=E.onViewChange)E.onViewChange()})}),this.view.elevationProvider.on("elevation-change",E=>{this._forEachManipulator(w=>{if(null!=w.onElevationChange)w.onElevationChange(E)})}),n.makeHandle(()=>this._set("textures",h.destroyMaybe(this.textures)))],"attached")):this.handles.add(g.watch(()=>this.view.extent,()=>{this._forEachManipulator(E=>{if(null!=E.onViewChange)E.onViewChange()})}))};B.detach=function(){h.isSome(this.activeTool)&&(this.activeTool=
null);this.tools.removeAll();this.handles.remove("attached")};B._forEachManipulator=function(E){this._forEachTool(w=>{w.manipulators&&w.manipulators.forEach(({manipulator:D})=>E(D,w))})};B._handleInputEvent=function(E){let w=!1;const D={...E,stopPropagation:()=>{w=!0;E.stopPropagation()}};h.isSome(this.activeTool)?this.activeTool.handleInputEvent&&this.activeTool.handleInputEvent(D):this._forEachTool(C=>{!w&&C.visible&&C.handleInputEvent(D)});!w&&"key-down"===E.type&&"Escape"===E.key&&this.activeTool&&
(E.stopPropagation(),this.activeTool=null);this._manipulatorState.handleInputEvent(D,this._manipulatorStateEventArgs);!w&&h.isSome(this.activeTool)&&this.activeTool.handleInputEventAfter(D);this._manipulatorState.handleHoverEvent(D,this._forEachTool);this._updateCursor()};B._refreshToolWatchers=function(){this.handles.remove("tools");this._forEachTool(E=>{if(E instanceof c){const w=g.watch(()=>[E.cursor,E.visible,E.editable],()=>{v.areToolManipulatorsEditable(E)||this._manipulatorState.clearPointers(E,
this._manipulatorStateEventArgs);this._updateCursor()});this.handles.add(w,"tools")}E.manipulators&&this.handles.add([E.manipulators.on("after-remove",w=>{this._manipulatorState.clearPointers(E,this._manipulatorStateEventArgs,!0,w.item.manipulator)}),E.manipulators.on("change",()=>{this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool);this._updateCursor()})],"tools")});this._manipulatorState.updateHoveredStateFromKnownPointers(this._forEachTool);this._updateCursor()};B._updateToolEditableFlag=
function(E){E.setEditableFlag(x.EditableFlag.MANAGER,h.isNone(this.activeTool)||E===this.activeTool)};B._updateCursor=function(){let E=this._manipulatorState.cursor;h.isNone(E)&&this._forEachTool(w=>h.isSome(w.cursor)&&w.visible?(E=w.cursor,!0):!1);this._get("cursor")!==E&&this._set("cursor",E)};B._removeIncompleteTools=function(E){this.tools.filter(w=>(h.isNone(E)||w!==E)&&!w.created&&w.removeIncompleteOnCancel).forEach(w=>{this.tools.remove(w)})};a._createClass(A,[{key:"_manipulatorStateEventArgs",
get:function(){return{forEachTool:this._forEachTool,activeTool:this.activeTool,setActiveTool:E=>{this.activeTool=E},view:this.view}}},{key:"activeTool",set:function(E){if(h.isSome(E)&&!this.view.ready)r.getLogger(this.declaredClass).error("Cannot set active tool while view is not ready.");else if(E!==this.activeTool){var w=this.activeTool;this._set("activeTool",E);h.isSome(w)&&w.deactivate();h.isSome(E)&&E.activate();this._removeIncompleteTools(E);for(const D of this.tools)this._updateToolEditableFlag(D),
E=v.areToolManipulatorsEditable(D),!h.isNone(this.activeTool)&&E||this._manipulatorState.clearPointers(D,this._manipulatorStateEventArgs,!E);this._updateCursor()}}},{key:"updating",get:function(){return this.updatingHandles.updating||this.tools.some(E=>E.updating)||(this.textures?.updating??!1)}}]);return A}(d.HandleOwner);b.__decorate([k.property({constructOnly:!0,nonNullable:!0})],d.prototype,"view",void 0);b.__decorate([k.property({readOnly:!0,nonNullable:!0})],d.prototype,"textures",void 0);b.__decorate([k.property({value:null})],
d.prototype,"activeTool",null);b.__decorate([k.property({readOnly:!0,type:e})],d.prototype,"tools",void 0);b.__decorate([k.property({readOnly:!0})],d.prototype,"cursor",void 0);b.__decorate([k.property({readOnly:!0})],d.prototype,"updating",null);return d=b.__decorate([m.subclass("esri.views.ToolViewManager")],d)})},"esri/views/3d/support/TextureCollection":function(){define("exports ../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/maybe ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../support/Scheduler".split(" "),
function(a,b,c,e,d,n,u,r,h,g){a.TextureCollection=function(k){function p(m,t){var f=k.call(this,{})||this;f._stage=m;f._textureRequests=new Map;f._frameTask=t?.registerTask(g.TaskPriority.TEXTURE_UNLOAD)??g.ImmediateTask;return f}b._inheritsLoose(p,k);var l=p.prototype;l.normalizeCtorArgs=function(){return{}};l.destroy=function(){k.prototype.destroy.call(this);this._frameTask.remove();this._textureRequests.forEach(m=>this._releaseTextureRequest(m));this._textureRequests.clear()};l.fromData=function(m,
t,f){const q=this.makeUid(m);m=this._textureRequests.get(q);m||(m={referenceCount:0,texture:t(),textureAsync:null,abortController:null,onRemove:f},this._stage&&(this._stage.add(m.texture),this._stage.loadImmediate(m.texture)),this._textureRequests.set(q,m));m.referenceCount++;return{uid:q,texture:m.texture,release:()=>this._release(q)}};l._release=function(m){const t=this._textureRequests.get(m);t?(1>t.referenceCount&&console.warn("TextureCollection: reference count is \x3c 1 for "+m),t.referenceCount--,
1>t.referenceCount&&this._frameTask.schedule(()=>this._releaseNow(m))):console.warn(`TextureCollection: texture doesn't exist: '${m}'`)};l._releaseNow=function(m){if(this._textureRequests){var t=this._textureRequests.get(m);!t||0<t.referenceCount||(this._releaseTextureRequest(t),this._textureRequests.delete(m))}};l._releaseTextureRequest=function(m){if(m.onRemove)m.onRemove();m.texture?this._stage?.remove(m.texture):m.abortController&&(m.abortController.abort(),m.abortController=null)};l.makeUid=
function(m,t=null){return d.isSome(t)?`${m}.${t}px`:m};b._createClass(p,[{key:"updating",get:function(){return this._frameTask.updating}},{key:"test",get:function(){return{textureRequests:this._textureRequests}}}]);return p}(e);c.__decorate([n.property()],a.TextureCollection.prototype,"_frameTask",void 0);c.__decorate([n.property()],a.TextureCollection.prototype,"updating",null);a.TextureCollection=c.__decorate([h.subclass("esri.views.3d.support.TextureCollection")],a.TextureCollection);Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/support/Scheduler":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/Handles ../../core/Logger ../../core/maybe ../../core/PerformanceSampler ../../core/PooledArray ../../core/promiseUtils ../../core/reactiveUtils ../../core/time ../../core/accessorSupport/tracking/ObservableValue ../../layers/support/PromiseQueue ./debugFlags ./RenderState".split(" "),function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){function t(w){return f.has(w)?
f.get(w):"number"===typeof w?w:1}a.TaskPriority=void 0;(function(w){w.RESOURCE_CONTROLLER="schedule";w.SLIDE="slide";w.STREAM_DATA_LOADER="stream loader";w.ELEVATION_QUERY="elevation query";w.TERRAIN_SURFACE="terrain";w.SURFACE_GEOMETRY_UPDATES="surface geometry updates";w.GRAPHICS_CORE="Graphics3D";w.I3S_CONTROLLER="I3S";w.POINT_CLOUD_LAYER="point cloud";w.FEATURE_TILE_FETCHER="feature fetcher";w.OVERLAY="overlay";w.STAGE="stage";w.GRAPHICS_DECONFLICTOR="graphics deconflictor";w.FILTER_VISIBILITY=
"Graphics3D filter visibility";w.SCALE_VISIBILITY="Graphics3D scale visibility";w.FRUSTUM_VISIBILITY="Graphics3D frustum visibility";w.POINT_OF_INTEREST_FREQUENT="POI frequent";w.POINT_OF_INTEREST_INFREQUENT="POI infrequent";w.LABELER="labeler";w.FEATURE_QUERY_ENGINE="feature query";w.FEATURE_TILE_TREE="feature tile tree";w.FEATURE_TILE_TREE_ACTIVE="fast feature tile tree";w.ELEVATION_ALIGNMENT="elevation alignment";w.TEXT_TEXTURE_ATLAS="text texture atlas";w.TEXTURE_UNLOAD="texture unload";w.LINE_OF_SIGHT_TOOL=
"line of sight tool";w.LINE_OF_SIGHT_TOOL_INTERACTIVE="interactive line of sight tool";w.ELEVATION_PROFILE="elevation profile";w.SNAPPING="snapping";w.SHADOW_ACCUMULATOR="shadow accumulator";w.CLOUDS_GENERATOR="cloud generator";w[w.TEST_PRIO=1]="TEST_PRIO"})(a.TaskPriority||(a.TaskPriority={}));const f=new Map([[a.TaskPriority.RESOURCE_CONTROLLER,0],[a.TaskPriority.SLIDE,0],[a.TaskPriority.STREAM_DATA_LOADER,0],[a.TaskPriority.ELEVATION_QUERY,0],[a.TaskPriority.TERRAIN_SURFACE,1],[a.TaskPriority.SURFACE_GEOMETRY_UPDATES,
1],[a.TaskPriority.GRAPHICS_CORE,2],[a.TaskPriority.I3S_CONTROLLER,2],[a.TaskPriority.POINT_CLOUD_LAYER,2],[a.TaskPriority.FEATURE_TILE_FETCHER,2],[a.TaskPriority.OVERLAY,4],[a.TaskPriority.STAGE,4],[a.TaskPriority.GRAPHICS_DECONFLICTOR,4],[a.TaskPriority.FILTER_VISIBILITY,4],[a.TaskPriority.SCALE_VISIBILITY,4],[a.TaskPriority.FRUSTUM_VISIBILITY,4],[a.TaskPriority.CLOUDS_GENERATOR,4],[a.TaskPriority.POINT_OF_INTEREST_FREQUENT,6],[a.TaskPriority.POINT_OF_INTEREST_INFREQUENT,30],[a.TaskPriority.LABELER,
8],[a.TaskPriority.FEATURE_QUERY_ENGINE,8],[a.TaskPriority.FEATURE_TILE_TREE,16],[a.TaskPriority.FEATURE_TILE_TREE_ACTIVE,0],[a.TaskPriority.ELEVATION_ALIGNMENT,12],[a.TaskPriority.TEXT_TEXTURE_ATLAS,12],[a.TaskPriority.TEXTURE_UNLOAD,12],[a.TaskPriority.LINE_OF_SIGHT_TOOL,16],[a.TaskPriority.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[a.TaskPriority.SNAPPING,0],[a.TaskPriority.SHADOW_ACCUMULATOR,30]]),q=g.Milliseconds(6.5),v=g.Milliseconds(1),x=g.Milliseconds(30),z=g.Milliseconds(1E3/30),y=g.Milliseconds(100);
var A;(function(w){let D=function(){function G(){this._updating=new k.ObservableValue(!0);this._microTaskQueued=!1;this._frameNumber=0;this.performanceInfo={total:new n("total"),tasks:new Map};this._frameTaskTimes=new Map;this._budget=new F;this._state=m.RenderState.INTERACTING;this._tasks=new u;this._runQueue=new u;this._load=0;this._idleStateCallbacks=new u;this._idleUpdatesStartFired=!1;this._maxReschedule=32;this._debug=this._forceTask=!1;this._debugHandle=h.watch(()=>l.SCHEDULER_LOG_SLOW_TASKS,
J=>this._debug=J,h.initial);for(const J of Object.keys(a.TaskPriority))this.performanceInfo.tasks.set(a.TaskPriority[J],new n(a.TaskPriority[J]));const I=this;this._test={FRAME_SAFETY_BUDGET:q,INTERACTING_BUDGET:z,IDLE_BUDGET:y,get availableBudget(){return I._budget.budget},usedBudget:0,getBudget:()=>I._budget,setBudget:J=>I._budget=J,updateTask:J=>this._updateTask(J),getState:J=>this._getState(J),getRuntime:J=>this._getRuntime(J),frameTaskTimes:this._frameTaskTimes,resetRuntimes:()=>this._resetRuntimes(),
getRunning:()=>this._getRunning()}}var H=G.prototype;H.destroy=function(){this._tasks.toArray().forEach(I=>I.remove());this._tasks.clear();d.removeMaybe(this._debugHandle);this._microTaskQueued=!1;this._updating.set(!1)};H.activate=function(){this._budget.done||this._microTaskQueued||(this._microTaskQueued=!0,queueMicrotask(()=>{this._microTaskQueued&&(this._microTaskQueued=!1,this._budget.done||(this._maxReschedule=32,this._schedule(),this.frame()))}))};H.registerTask=function(I,J){const K=t(I);
J=new C(this,I,J,K);this._tasks.push(J);this.performanceInfo.tasks.has(I)||this.performanceInfo.tasks.set(I,new n(I));return J};H.registerIdleStateCallbacks=function(I,J){const K={idleBegin:I,idleEnd:J};this._idleStateCallbacks.push(K);this.state===m.RenderState.IDLE&&this._idleUpdatesStartFired&&K.idleBegin();const N=this;return{remove:()=>this._removeIdleStateCallbacks(K),set idleBegin(U){N._idleUpdatesStartFired&&(K.idleEnd(),N._state===m.RenderState.IDLE&&U());K.idleBegin=U},set idleEnd(U){K.idleEnd=
U}}};H.updateBudget=function(I){this._test.usedBudget=0;++this._frameNumber;let J=q,K=I.frameDuration,N=v;switch(this.state){case m.RenderState.IDLE:J=g.Milliseconds(0);K=g.Milliseconds(Math.max(y,I.frameDuration));N=x;break;case m.RenderState.INTERACTING:K=g.Milliseconds(Math.max(z,I.frameDuration))}K=g.Milliseconds(K-I.elapsedFrameTime-J);if(this.state!==m.RenderState.IDLE&&K<v&&!this._forceTask)return this._forceTask=!0,!1;K=g.Milliseconds(Math.max(K,N));this._budget.reset(K,this.state);this._maxReschedule=
32;this._updateLoad();return this._schedule()};H.frame=function(){this._microTaskQueued=this._forceTask=!1;switch(this.state){case m.RenderState.IDLE:this._idleUpdatesStartFired||(this._idleUpdatesStartFired=!0,this._idleStateCallbacks.forAll(I=>I.idleBegin()));this._runIdle();break;case m.RenderState.INTERACTING:this._runInteracting();break;default:this._runAnimating()}this._test.usedBudget=this._budget.elapsed};H.stopFrame=function(){this._budget.reset(g.Milliseconds(0),this._state);this._budget.madeProgress()};
H._removeIdleStateCallbacks=function(I){this._idleUpdatesStartFired&&I.idleEnd();this._idleStateCallbacks.removeUnordered(I)};H.removeTask=function(I){this._tasks.removeUnordered(I);this._runQueue.removeUnordered(I)};H._updateTask=function(I){this._tasks.forAll(J=>{J.name===I&&J.setPriority(I)})};H._getState=function(I){if(this._runQueue.some(K=>K.name===I))return a.TaskState.SCHEDULED;let J=a.TaskState.IDLE;this._tasks.forAll(K=>{K.name===I&&K.needsUpdate&&(1>=K.schedulePriority?J=a.TaskState.READY:
J!==a.TaskState.READY&&(J=a.TaskState.WAITING))});return J};H._getRuntime=function(I){let J=0;this._tasks.forAll(K=>{K.name===I&&(J+=K.runtime)});return J};H._resetRuntimes=function(){this._tasks.forAll(I=>I.runtime=0)};H._getRunning=function(){const I=new Map;this._tasks.forAll(K=>{K.needsUpdate&&I.set(K.name,(I.get(K.name)||0)+1)});if(0===I.size)return null;let J="";I.forEach((K,N)=>{J=1<K?J+` ${K}x ${N}`:J+` ${N}`});return J};H._runIdle=function(){this._run()};H._runInteracting=function(){this._run()};
H._runAnimating=function(){this._run()};H._updateLoad=function(){const I=this._tasks.reduce((J,K)=>K.needsUpdate?++J:J,0);this._load=.9*this._load+I*(1-.9)};H._schedule=function(){if(0>=this._maxReschedule)return!1;this._runQueue.filterInPlace(I=>{if(I.needsUpdate)return!0;I.schedulePriority=I.basePriority;return!1});for(this._tasks.forAll(I=>{0===I.basePriority&&I.needsUpdate&&!this._runQueue.includes(I)&&this._runQueue.unshift(I)});0===this._runQueue.length;){let I=!1;this._tasks.forAll(J=>{if(J.needsUpdate&&
0!==J.schedulePriority&&0!==J.basePriority&&(!J.task.runOncePerFrame||J.lastFrameRun!==this._frameNumber))switch(I=!0,J.schedulePriority){case 1:J.schedulePriority=0;this._runQueue.push(J);break;default:--J.schedulePriority}});if(!I)return this._updating.set(!1),!1;--this._maxReschedule}this._updating.set(!0);return!0};H._run=function(){const I=this._budget.now();this._startFrameTaskTimes();do for(;0<this._runQueue.length;){var J=this._budget.now();const K=this._runQueue.pop();this._budget.resetProgress();
try{K.task.runTask(this._budget)}catch(N){e.getLogger("esri.views.support.Scheduler").error(`Exception in task "${K.name}"`,N)}K.schedulePriority=K.basePriority;K.lastFrameRun=this._frameNumber;J=this._budget.now()-J;K.runtime+=J;this._frameTaskTimes.set(K.priority,this._frameTaskTimes.get(K.priority)+J);this._debug&&this._budget.elapsed>2*this._budget.budget&&console.log("Task",K.name,"used",this._budget.elapsed,"of max",this._budget.budget,"ms");if(0>=this._budget.remaining){this._updating.set(this._tasks.some(N=>
N.needsUpdate));this._recordFrameTaskTimes(this._budget.now()-I);return}}while(this._schedule());this._updating.set(this._tasks.some(K=>K.needsUpdate));this._recordFrameTaskTimes(this._budget.now()-I)};H._startFrameTaskTimes=function(){for(const I of Object.keys(a.TaskPriority))this._frameTaskTimes.set(a.TaskPriority[I],0)};H._recordFrameTaskTimes=function(I){this._frameTaskTimes.forEach((J,K)=>this.performanceInfo.tasks.get(K).record(J));this.performanceInfo.total.record(I)};b._createClass(G,[{key:"updating",
get:function(){return this._updating.get()},set:function(I){this._updating.set(I)}},{key:"load",get:function(){return this._load}},{key:"state",get:function(){return this._state},set:function(I){this._state!==I&&(this._state=I,this.state!==m.RenderState.IDLE&&this._idleUpdatesStartFired&&(this._idleUpdatesStartFired=!1,this._idleStateCallbacks.forAll(J=>J.idleEnd())))}},{key:"test",get:function(){return this._test}}]);return G}();w.Scheduler=D;let C=function(){function G(I,J,K,N){this._scheduler=
I;this.name=J;this._basePriority=N;this.runtime=this.lastFrameRun=0;this._queue=new p.PromiseQueue;this._handles=new c;this.schedulePriority=this._basePriority;this._task=new k.ObservableValue(d.isSome(K)?K:this._queue);this._handles.add(h.when(()=>this.task.running,()=>I.activate()))}var H=G.prototype;H.remove=function(){this.processQueue(B);this._scheduler.removeTask(this);this.schedule=E.schedule;this.reschedule=E.reschedule;this._handles.destroy()};H.setPriority=function(I){this.name=I;I=t(I);
if(0===this._basePriority||0!==this.schedulePriority)this.schedulePriority=I;this._basePriority=I};H.schedule=function(I,J,K){return this._queue.push(I,J,K)};H.reschedule=function(I,J,K){return this._queue.unshift(I,J,K)};H.processQueue=function(I){this._queue.runTask(I)};b._createClass(G,[{key:"task",get:function(){return this._task.get()}},{key:"updating",get:function(){return this._queue.running}},{key:"basePriority",get:function(){return this._basePriority}},{key:"priority",get:function(){return this.name},
set:function(I){this.setPriority(I)}},{key:"needsUpdate",get:function(){return this.updating||this.task.running}}]);return G}(),F=function(){function G(){this._begin="undefined"!==typeof performance?performance.now():0;this._budget=0;this._state=m.RenderState.IDLE;this._done=!1;this._enabled=!0}var H=G.prototype;H.run=function(I){if(this.done)return!1;!0===I()&&this.madeProgress();return!0};H.madeProgress=function(){this._done=this.elapsed>=this._budget&&this._enabled};H.reset=function(I,J){this._begin=
this.now();this._budget=I;this._state=J;this._done=!1};H.now=function(){return performance.now()};H.resetProgress=function(){this._done=!1};b._createClass(G,[{key:"done",get:function(){return this._done}},{key:"budget",get:function(){return this._budget}},{key:"state",get:function(){return this._state}},{key:"enabled",get:function(){return this._enabled},set:function(I){this._enabled=I}},{key:"remaining",get:function(){return Math.max(this._budget-this.elapsed,0)}},{key:"elapsed",get:function(){return performance.now()-
this._begin}},{key:"hasProgressed",get:function(){return this._done}}]);return G}();w.Budget=F})(A||(A={}));a.TaskState=void 0;(function(w){w.SCHEDULED="s";w.READY="r";w.WAITING="w";w.IDLE="i"})(a.TaskState||(a.TaskState={}));const B=(()=>{const w=new A.Budget;w.enabled=!1;return w})(),E=new (function(){function w(){}var D=w.prototype;D.remove=function(){};D.processQueue=function(){};D.schedule=function(C,F,G){try{if(r.isAborted(F)){const H=r.createAbortError();return G?Promise.resolve(G(H)):Promise.reject(H)}return r.when(C(B))}catch(H){return Promise.reject(H)}};
D.reschedule=function(C,F,G){return this.schedule(C,F,G)};return w}());a.ImmediateTask=E;a.getTaskPriority=t;a.newScheduler=function(){return new A.Scheduler};a.noBudget=B;a.taskPriorities=f;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/accessorSupport/tracking/ObservableValue":function(){define(["exports","../tracking","./SimpleObservable"],function(a,b,c){let e=function(){function d(u){this._observable=new c.SimpleObservable;this._value=u}
var n=d.prototype;n.get=function(){b.trackAccess(this._observable);return this._value};n.set=function(u){u!==this._value&&(this._value=u,this._observable.notify())};return d}();a.ObservableValue=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/layers/support/PromiseQueue":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../core/promiseUtils","../../core/accessorSupport/tracking/ObservableValue"],function(a,b,c,e){let d=function(){function u(){this._tasks=
[];this._running=new e.ObservableValue(!1)}var r=u.prototype;r.destroy=function(){this.cancelAll()};r.runTask=function(h){for(;!h.done&&this._process(h);)h.madeProgress()};r.push=function(h,g,k){this._running.set(!0);return new Promise((p,l)=>this._tasks.push(new n(p,l,h,g,k)))};r.unshift=function(h,g,k){this._running.set(!0);return new Promise((p,l)=>this._tasks.unshift(new n(p,l,h,g,k)))};r._process=function(h){if(0===this._tasks.length)return!1;const g=this._tasks.shift();try{const k=c.isAborted(g.signal);
if(k&&!g.abortCallback)g.reject(c.createAbortError());else{const p=k?g.abortCallback?.(c.createAbortError()):g.callback(h);c.isPromiseLike(p)?p.then(g.resolve,g.reject):g.resolve(p)}}catch(k){g.reject(k)}this._running.set(0<this._tasks.length);return!0};r.cancelAll=function(){const h=c.createAbortError();for(const g of this._tasks)if(g.abortCallback){const k=g.abortCallback(h);g.resolve(k)}else g.reject(h);this._tasks.length=0;this._running.set(!1)};b._createClass(u,[{key:"length",get:function(){return this._tasks.length}},
{key:"running",get:function(){return this._running.get()}}]);return u}(),n=function(u,r,h,g,k){this.resolve=u;this.reject=r;this.callback=h;this.signal=g;this.abortCallback=k};a.PromiseQueue=d;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/support/debugFlags":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(r){function h(){var g=r.apply(this,arguments)||this;g.SCHEDULER_LOG_SLOW_TASKS=!1;g.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1;return g}a._inheritsLoose(h,r);return h}(c);b.__decorate([e.property()],c.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0);b.__decorate([e.property()],c.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0);c=b.__decorate([u.subclass("esri.views.support.DebugFlags")],c);return new c})},"esri/views/support/RenderState":function(){define(["exports"],
function(a){a.RenderState=void 0;var b=a.RenderState||(a.RenderState={});b[b.ANIMATING=0]="ANIMATING";b[b.INTERACTING=1]="INTERACTING";b[b.IDLE=2]="IDLE";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/InputManager":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Logger ../../core/maybe ../../core/Queue ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../3d/support/PropertiesPool ./keys ./handlers/LatestPointer ./handlers/MultiTouch".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){a.InputManager=function(z){function y(B){var E=z.call(this,B)||this;E._pointerCaptures=new Map;E._nameToGroup={};E._handlers=[];E._handlersPriority=[];E._currentPropagation=null;E._updateDependenciesAfterPropagation=!1;E._sourceEvents=new Set;E._keyModifiers=new Set;E._activeKeyModifiers=new Set;E._stoppedPropagationEventIds=new Set;E.primaryKey=l.primaryKey;E._latestPointerType="mouse";E._propertiesPool=new p.PropertiesPool({latestPointerLocation:x},b._assertThisInitialized(E));
E.latestPointerLocation=null;E.test={timestamp:void 0,hasCurrentPropagation:()=>!!E._currentPropagation};return E}b._inheritsLoose(y,z);var A=y.prototype;A.initialize=function(){this.eventSource.onEventReceived=this._onEventReceived.bind(this);this._installRecognizers()};A.destroy=function(){const B=Object.keys(this._nameToGroup);for(const E of B)this.uninstallHandlers(E);this.eventSource.destroy();this._currentPropagation=null;this._propertiesPool.destroy()};A.installHandlers=function(B,E,w=v.INTERNAL){if(this._nameToGroup[B])d.getLogger(this.declaredClass).error("There is already an InputHandler group registered under the name `"+
B+"`");else if(0===E.length)d.getLogger(this.declaredClass).error("Can't register a group of zero handlers");else{var D={name:B,handlers:E.map(C=>({handler:C,active:!0,removed:!1,priorityIndex:0,groupPriority:w,eventCallback:null,uninstallCallback:null}))};this._nameToGroup[B]=D;for(B=D.handlers.length-1;0<=B;B--){const C=D.handlers[B];this._handlers.push(C);C.handler.onInstall({updateDependencies:()=>{this.updateDependencies()},emit:(F,G,H,I,J)=>{this._emitInputEvent(C.priorityIndex+1,F,G,H,J,I)},
setPointerCapture:(F,G)=>{this._setPointerCapture(D,C,F,G)},setEventCallback:F=>{C.eventCallback=F},setUninstallCallback:F=>{C.uninstallCallback=F},refreshHasPendingInputs:()=>{this.notifyChange("hasPendingInputs")}})}this.updateDependencies()}};A.uninstallHandlers=function(B){const E=this._nameToGroup[B];E?(E.handlers.forEach(w=>{w.removed=!0;w.uninstallCallback?.()}),delete this._nameToGroup[B],this._currentPropagation?this._currentPropagation.needsHandlerGarbageCollect=!0:this._garbageCollectRemovedHandlers()):
d.getLogger(this.declaredClass).error("There is no InputHandler group registered under the name `"+B+"`")};A.hasHandlers=function(B){return void 0!==this._nameToGroup[B]};A.updateDependencies=function(){if(this._currentPropagation)this._updateDependenciesAfterPropagation=!0;else{this._updateDependenciesAfterPropagation=!1;var B=new Set,E=new Set;this._handlersPriority=[];for(var w=this._handlers.length-1;0<=w;w--){var D=this._handlers[w];D.priorityIndex=w;this._handlersPriority.push(D)}this._handlersPriority=
this._sortHandlersPriority(this._handlersPriority);for(w=this._handlersPriority.length-1;0<=w;w--){D=this._handlersPriority[w];D.priorityIndex=w;let C=D.handler.hasSideEffects;if(!C)for(const F of D.handler.outgoingEventTypes)if(B.has(F)){C=!0;break}if(C)for(const F of D.handler.incomingEventMatches){B.add(F.eventType);for(const G of F.keyModifiers)l.isSystemModifier(G)||E.add(G)}D.active=C}this._sourceEvents=B;this._keyModifiers=E;0<this._pointerCaptures.size&&this._sourceEvents.add("pointer-capture-lost");
0<this._keyModifiers.size&&(this._sourceEvents.add("key-down"),this._sourceEvents.add("key-up"));this.eventSource&&(this.eventSource.activeEvents=this._sourceEvents)}};A._setLatestPointer=function(B,E,w){this._latestPointerType=B;B=this._get("latestPointerLocation");if(n.isNone(B)||B.x!==E||B.y!==w)B=this._propertiesPool.get("latestPointerLocation"),B.x=E,B.y=w,this._set("latestPointerLocation",B)};A._onEventReceived=function(B,E){"pointer-capture-lost"===B&&this._pointerCaptures.delete(E.native.pointerId);
this._updateKeyModifiers(B,E);this._emitInputEventFromSource(B,E,null!=this.test.timestamp?this.test.timestamp:E.native?E.native.timestamp:void 0,E.native?E.native.cancelable:void 0)};A._updateKeyModifiers=function(B,E){if(E){var w=!1,D=()=>{if(!w){const F=new Set;this._activeKeyModifiers.forEach(G=>{F.add(G)});this._activeKeyModifiers=F;w=!0}},C=(F,G)=>{G&&!this._activeKeyModifiers.has(F)?(D(),this._activeKeyModifiers.add(F)):!G&&this._activeKeyModifiers.has(F)&&(D(),this._activeKeyModifiers.delete(F))};
if("key-down"===B||"key-up"===B){const F=E.key;this._keyModifiers.has(F)&&C(F,"key-down"===B)}B=E.native;C("Alt",!(!B||!B.altKey));C("Ctrl",!(!B||!B.ctrlKey));C("Shift",!(!B||!B.shiftKey));C("Meta",!(!B||!B.metaKey));C("Primary",this._activeKeyModifiers.has(this.primaryKey))}};A._installRecognizers=function(){this._latestPointerHandler=new m.LatestPointer((B,E,w)=>this._setLatestPointer(B,E,w));this._multiTouchHandler=new t.MultiTouch;this.installHandlers("input-manager-logic",[this._latestPointerHandler,
this._multiTouchHandler],v.ALWAYS);0<this.recognizers.length&&this.installHandlers("default",this.recognizers,v.INTERNAL)};A._setPointerCapture=function(B,E,w,D){B=B.name+"-"+E.priorityIndex;E=this._pointerCaptures.get(w.pointerId)||new Set;this._pointerCaptures.set(w.pointerId,E);D?(E.add(B),1===E.size&&this.eventSource&&this.eventSource.setPointerCapture(w,!0)):E.has(B)&&(E.delete(B),0===E.size&&(this._pointerCaptures.delete(w.pointerId),this.eventSource&&this.eventSource.setPointerCapture(w,!1)))};
A._garbageCollectRemovedHandlers=function(){this._handlers=this._handlers.filter(B=>!B.removed);this.updateDependencies()};A._emitInputEventFromSource=function(B,E,w,D){this._emitInputEvent(0,B,E,w,D)};A._emitInputEvent=function(B,E,w,D,C,F){D=void 0!==D?D:this._currentPropagation?this._currentPropagation.timestamp:performance.now();B={event:new f(E,w,D,F||this._activeKeyModifiers,void 0!==C?C:!1),priorityIndex:B};this._currentPropagation?this._currentPropagation.events.push(B):this._doNewPropagation(B)};
A._doNewPropagation=function(B){this._currentPropagation={events:new u,currentHandler:null,needsHandlerGarbageCollect:!1,timestamp:B.event.timestamp};this._currentPropagation.events.push(B);this._continuePropagation()};A._continuePropagation=function(){const B=n.unwrapOrThrow(this._currentPropagation);for(;0<B.events.length;){const {event:E,priorityIndex:w}=B.events.pop(),D=E.data&&E.data.eventId;if(null==D||!this._stoppedPropagationEventIds.has(D))for(B.currentHandler=this._handlersPriority[w];B.currentHandler;){if(B.currentHandler.removed)B.needsHandlerGarbageCollect=
!0;else{B.currentHandler.active&&!E.shouldStopPropagation()&&B.currentHandler.eventCallback?.(E);if(E.shouldStopPropagation()){null!=D&&this._stoppedPropagationEventIds.add(D);break}if(E.shouldPausePropagation(()=>this._continuePropagation())){this._pausePropagation({event:E,priorityIndex:B.currentHandler.priorityIndex+1});return}}B.currentHandler=this._handlersPriority[B.currentHandler.priorityIndex+1]}}B.needsHandlerGarbageCollect&&this._garbageCollectRemovedHandlers();this.hasPendingInputs||this._stoppedPropagationEventIds.clear();
this._currentPropagation=null;this._updateDependenciesAfterPropagation&&this.updateDependencies()};A._pausePropagation=function(B){const E=new u;E.push(B);if(B=this._currentPropagation){for(;B.events.length;)E.push(B.events.pop());B.events=E;B.currentHandler=null}};A._compareHandlerPriority=function(B,E){if(B.handler.hasSideEffects!==E.handler.hasSideEffects)return B.handler.hasSideEffects?1:-1;if(B.groupPriority!==E.groupPriority)return B.groupPriority>E.groupPriority?-1:1;for(const w of B.handler.incomingEventMatches)for(const D of E.handler.incomingEventMatches){if(w.eventType!==
D.eventType)continue;const C=w.keyModifiers.filter(F=>D.keyModifiers.includes(F));if(C.length===w.keyModifiers.length!==(C.length===D.keyModifiers.length))return w.keyModifiers.length>D.keyModifiers.length?-1:1}return B.priorityIndex>E.priorityIndex?-1:1};A._sortHandlersPriority=function(B){const E=[];for(const w of B){for(B=0;B<E.length&&0<=this._compareHandlerPriority(w,E[B]);)B++;E.splice(B,0,w)}return E};b._createClass(y,[{key:"hasPendingInputs",get:function(){return this._handlers.some(B=>B.handler.hasPendingInputs)}},
{key:"latestPointerType",get:function(){return this._latestPointerType}},{key:"multiTouchActive",get:function(){return this._multiTouchHandler.multiTouchActive}},{key:"debug",get:function(){const B=E=>{const w=this._setPointerCapture;this._setPointerCapture=()=>{};E();this._setPointerCapture=w};return{injectEvent:(E,w)=>{B(()=>{this._onEventReceived(E,w)})},disablePointerCapture:B}}}]);return y}(e);c.__decorate([r.property({readOnly:!0})],a.InputManager.prototype,"hasPendingInputs",null);c.__decorate([r.property({constructOnly:!0})],
a.InputManager.prototype,"eventSource",void 0);c.__decorate([r.property({constructOnly:!0})],a.InputManager.prototype,"recognizers",void 0);c.__decorate([r.property()],a.InputManager.prototype,"_latestPointerType",void 0);c.__decorate([r.property()],a.InputManager.prototype,"latestPointerType",null);c.__decorate([r.property()],a.InputManager.prototype,"multiTouchActive",null);c.__decorate([r.property({readOnly:!0})],a.InputManager.prototype,"latestPointerLocation",void 0);a.InputManager=c.__decorate([k.subclass("esri.views.input.InputManager")],
a.InputManager);let f=function(){function z(A,B,E,w,D){this.type=A;this.data=B;this.timestamp=E;this.modifiers=w;this.cancelable=D;this._propagationState=q.NONE;this._resumeCallback=null}var y=z.prototype;y.stopPropagation=function(){this._propagationState|=q.STOPPED};y.shouldStopPropagation=function(){return 0!==(this._propagationState&q.STOPPED)};y.async=function(A){this._propagationState|=q.PAUSED;const B=(E,w)=>{this._propagationState&=~q.PAUSED;const D=this._resumeCallback;this._resumeCallback=
null;D&&D();if(w)throw E;return E};return("function"===typeof A?A():A).then(E=>B(E,!1),E=>B(E,!0))};y.shouldPausePropagation=function(A){return this._propagationState&q.PAUSED?(this._resumeCallback=A,!0):!1};y.preventDefault=function(){this.data.native.preventDefault()};return z}();var q;(function(z){z[z.NONE=0]="NONE";z[z.STOPPED=1]="STOPPED";z[z.PAUSED=2]="PAUSED"})(q||(q={}));const v={ALWAYS:1,DEFAULT:0,TOOL:-1,WIDGET:-2,INTERNAL:-3};let x=function(){};a.ViewEventPriorities=v;Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/3d/support/PropertiesPool":function(){define(["exports","../../../core/ReentrantObjectPool","../../../core/accessorSupport/watch"],function(a,b,c){let e=function(){function d(u,r){this._owner=r;this._properties={};this._afterDispatchHandle=null;for(const h in u)r=new b.ReentrantObjectPool(u[h],void 0,void 0,2,2),this._properties[h]={pool:r,acquired:[]};this._afterDispatchHandle=c.afterDispatch(()=>this._release())}var n=
d.prototype;n.destroy=function(){this._afterDispatchHandle&&(this._afterDispatchHandle.remove(),this._afterDispatchHandle=null);for(const u in this._properties){const r=this._properties[u];for(const h of r.acquired)c.isValueInUse(h)||r.pool.release(h);r.pool.destroy();r.pool=null;r.acquired=null}this._owner=this._properties=null};n.get=function(u){const r=this._owner._get(u);u=this._properties[u];let h=u.pool.acquire();for(u.acquired.push(h);h===r;)u.acquired.push(h),h=u.pool.acquire();return h};
n._release=function(){for(const u in this._properties){const r=this._properties[u];let h=0;for(const g of r.acquired)c.isValueInUse(g)?r.acquired[h++]=g:r.pool.release(g);r.acquired.length=h}};return d}();a.PropertiesPool=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/keys":function(){define(["exports","../../core/events","../../core/has"],function(a,b,c){c=c("mac")?"Meta":"Ctrl";const e={8:"Backspace",9:"Tab",13:"Enter",27:"Escape",
33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete"};for(var d=48;58>d;d++)e[d]=String.fromCharCode(d);for(d=1;25>d;d++)e[111+d]=`F${d}`;for(d=65;91>d;d++)e[d]=[String.fromCharCode(d+32),String.fromCharCode(d)];a.eventKey=function(n){if(void 0!==n.key)return b.eventKey(n);const u=e[n.keyCode];return Array.isArray(u)?n.shiftKey?u[1]:u[0]:u};a.isSystemModifier=function(n){switch(n){case "Ctrl":case "Alt":case "Shift":case "Meta":case "Primary":return!0}return!1};
a.primaryKey=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/handlers/LatestPointer":function(){define(["exports","../../../chunks/_rollupPluginBabelHelpers","../InputHandler"],function(a,b,c){c=function(e){function d(n){var u=e.call(this,!0)||this;u._onChange=n;u._value="mouse";u._x=null;u._y=null;u.registerIncoming("pointer-move",r=>{u._update(r.data)});return u}b._inheritsLoose(d,e);d.prototype._update=function(n){const u="touch"===
n.native.pointerType?"touch":"mouse",{x:r,y:h}=n;if(u!==this._value||this._x!==r||this._y!==h)this._value=u,this._x=r,this._y=h,this._onChange(u,r,h)};return d}(c.InputHandler);a.LatestPointer=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/InputHandler":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../../core/Logger","./EventMatch"],function(a,b,c,e){const d=c.getLogger("esri.views.input.InputHandler");c=function(){function r(g){this._manager=
null;this._incoming={};this._outgoing={};this._outgoingEventTypes=this._incomingEventTypes=this._incomingEventMatches=null;this._hasSideEffects=g}var h=r.prototype;h.onInstall=function(g){this._manager?d.error("This InputHandler has already been registered with an InputManager"):(g.setEventCallback(k=>this._handleEvent(k)),g.setUninstallCallback(()=>this._onUninstall()),this._manager=g)};h.onUninstall=function(){};h.registerIncoming=function(g,k,p){"function"===typeof k?(p=k,k=[]):k=k||[];g="string"===
typeof g?new e.EventMatch(g,k):g;const l=()=>{this._incomingEventMatches=this._incomingEventTypes=null};k=m=>{const t=this._incoming[m.match.eventType];t&&(m=t.indexOf(m),t.splice(m,1),l(),this._manager&&this._manager.updateDependencies())};p=new n(g,p,{onPause:k,onRemove:k,onResume:m=>{const t=this._incoming[m.match.eventType];t&&!t.includes(m)&&(t.push(m),l(),this._manager&&this._manager.updateDependencies())}});k=this._incoming[g.eventType];k||(k=[],this._incoming[g.eventType]=k);k.push(p);l();
this._manager&&this._manager.updateDependencies();return p};h.registerOutgoing=function(g){if(this._outgoing[g])throw Error("There is already a callback registered for this outgoing InputEvent: "+g);const k=new u(g,{onEmit:(p,l,m,t)=>{this._manager?.emit(p.eventType,l,m,t)},onRemove:p=>{delete this._outgoing[p.eventType];this._manager?.updateDependencies()}});this._outgoing[g]=k;this._outgoingEventTypes=null;this._manager&&this._manager.updateDependencies();return k};h.startCapturingPointer=function(g){this._manager?.setPointerCapture(g,
!0)};h.stopCapturingPointer=function(g){this._manager?.setPointerCapture(g,!1)};h.refreshHasPendingInputs=function(){this._manager?.refreshHasPendingInputs()};h._onUninstall=function(){this._manager?(this.onUninstall(),this._manager=null):d.error("This InputHandler is not registered with an InputManager")};h._handleEvent=function(g){const k=this._incoming[g.type];if(k)for(const p of k)if(p.match.matches(g)&&(p.callback?.(g),g.shouldStopPropagation()))break};b._createClass(r,[{key:"incomingEventMatches",
get:function(){if(!this._incomingEventMatches){this._incomingEventMatches=[];for(const g in this._incoming){const k=this._incoming[g];for(const p of k)this._incomingEventMatches.push(p.match)}}return this._incomingEventMatches}},{key:"incomingEventTypes",get:function(){this._incomingEventTypes||(this._incomingEventTypes=this.incomingEventMatches.map(g=>g.eventType));return this._incomingEventTypes}},{key:"outgoingEventTypes",get:function(){this._outgoingEventTypes||(this._outgoingEventTypes=Object.keys(this._outgoing));
return this._outgoingEventTypes}},{key:"hasSideEffects",get:function(){return this._hasSideEffects}},{key:"hasPendingInputs",get:function(){return!1}}]);return r}();let n=function(){function r(g,k,p){this.match=g;this._callback=k;this._handler=p}var h=r.prototype;h.pause=function(){this._handler.onPause(this)};h.resume=function(){this._handler.onResume(this)};h.remove=function(){this._handler.onRemove(this)};b._createClass(r,[{key:"callback",get:function(){return this._callback}}]);return r}(),u=
function(){function r(g,k){this.eventType=g;this._removed=!1;this._handler=k}var h=r.prototype;h.emit=function(g,k,p){if(!this._removed)this._handler.onEmit(this,g,k,p)};h.remove=function(){this._removed=!0;this._handler.onRemove(this)};return r}();a.InputHandler=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/EventMatch":function(){define(["exports"],function(a){let b=function(){function c(e,d=[]){this.eventType=e;this.keyModifiers=
d}c.prototype.matches=function(e){if(e.type!==this.eventType)return!1;if(0===this.keyModifiers.length)return!0;e=e.modifiers;for(const d of this.keyModifiers)if(!e.has(d))return!1;return!0};return c}();a.EventMatch=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/handlers/MultiTouch":function(){define(["exports","../../../chunks/_rollupPluginBabelHelpers","../../../core/accessorSupport/tracking/ObservableValue","../InputHandler"],function(a,
b,c,e){e=function(d){function n(){var u=d.call(this,!0)||this;u._activeTouchPointerIds=new Set;u._multiTouchActive=new c.ObservableValue(!1);u._onPointerAdd=({data:r})=>{"touch"===r.pointerType&&(u._activeTouchPointerIds.add(r.native.pointerId),u._update())};u._onPointerRemove=({data:r})=>{"touch"===r.pointerType&&(u._activeTouchPointerIds.delete(r.native.pointerId),u._update())};u.registerIncoming("pointer-down",u._onPointerAdd);u.registerIncoming("pointer-up",u._onPointerRemove);u.registerIncoming("pointer-capture-lost",
u._onPointerRemove);u.registerIncoming("pointer-cancel",u._onPointerRemove);return u}b._inheritsLoose(n,d);n.prototype._update=function(){this._multiTouchActive.set(1<this._activeTouchPointerIds.size)};b._createClass(n,[{key:"multiTouchActive",get:function(){return this._multiTouchActive.get()}}]);return n}(e.InputHandler);a.MultiTouch=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/ViewEvents":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/has ../../core/mathUtils ../../core/screenUtils ./InputHandler ./InputManager ./IViewEvents".split(" "),
function(a,b,c,e,d,n,u,r){function h(m){return!!k[m]}function g(m){for(const t of m)if(!h(t))return!1;return!0}c="click double-click immediate-click immediate-double-click hold drag key-down key-up pointer-down pointer-move pointer-up pointer-drag mouse-wheel pointer-enter pointer-leave gamepad focus blur".split(" ");const k={};c.forEach(m=>{k[m]=!0});let p=function(){function m(f){this._handlers=new Map;this._counter=0;this._handlerCounts=new Map;this.view=f;this.inputManager=null}var t=m.prototype;
t.connect=function(f){f&&this.disconnect();this.inputManager=f;this._handlers.forEach(({handler:q,priority:v},x)=>this.inputManager.installHandlers(x,[q],v))};t.disconnect=function(){this.inputManager&&this._handlers.forEach((f,q)=>this.inputManager.uninstallHandlers(q));this.inputManager=null};t.destroy=function(){this.disconnect();this._handlers.clear();this.view=null};t.on=function(f,q,v,x){const z=Array.isArray(f)?f:f.split(",");if(!g(z))return z.some(h)&&console.error("Error: registering input events and other events on the view at the same time is not supported."),
null;if(Array.isArray(q))f=q;else{var y=q;f=[]}"function"===typeof v?y=v:x=v;x=null!=x?x:u.ViewEventPriorities.DEFAULT;const A=this._createUniqueGroupName();v=new l(this.view,z,f,y);this._handlers.set(A,{handler:v,priority:x});for(const B of z)y=this._handlerCounts.get(B)||0,this._handlerCounts.set(B,y+1);this.inputManager&&this.inputManager.installHandlers(A,[v],x);return{remove:()=>this._removeHandler(A,z)}};t.hasHandler=function(f){return!!this._handlerCounts.get(f)};t._removeHandler=function(f,
q){if(this._handlers.has(f)){this._handlers.delete(f);for(const v of q)q=this._handlerCounts.get(v),void 0===q?console.error("Trying to remove handler for event that has no handlers registered: ",v):1===q?this._handlerCounts.delete(v):this._handlerCounts.set(v,q-1)}this.inputManager&&this.inputManager.uninstallHandlers(f)};t._createUniqueGroupName=function(){this._counter+=1;return`viewEvents_${this._counter}`};return m}(),l=function(m){function t(q,v,x,z){var y=m.call(this,!0)||this;y.view=q;for(const A of v)switch(A){case "click":y.registerIncoming("click",
x,B=>z(y._wrapClick(B)));break;case "double-click":y.registerIncoming("double-click",x,B=>z(y._wrapDoubleClick(B)));break;case "immediate-click":y.registerIncoming("immediate-click",x,B=>z(y._wrapImmediateClick(B)));break;case "immediate-double-click":y.registerIncoming("immediate-double-click",x,B=>z(y._wrapImmediateDoubleClick(B)));break;case "hold":y.registerIncoming("hold",x,B=>z(y._wrapHold(B)));break;case "drag":y.registerIncoming("drag",x,B=>{(B=y._wrapDrag(B))&&z(B)});break;case "key-down":y.registerIncoming("key-down",
x,B=>z(y._wrapKeyDown(B)));break;case "key-up":y.registerIncoming("key-up",x,B=>z(y._wrapKeyUp(B)));break;case "pointer-down":y.registerIncoming("pointer-down",x,B=>z(y._wrapPointer(B,"pointer-down")));break;case "pointer-move":y.registerIncoming("pointer-move",x,B=>z(y._wrapPointer(B,"pointer-move")));break;case "pointer-up":y.registerIncoming("pointer-up",x,B=>z(y._wrapPointer(B,"pointer-up")));break;case "pointer-drag":y.registerIncoming("pointer-drag",x,B=>z(y._wrapPointerDrag(B)));break;case "mouse-wheel":y.registerIncoming("mouse-wheel",
x,B=>z(y._wrapMouseWheel(B)));break;case "pointer-enter":y.registerIncoming("pointer-enter",x,B=>z(y._wrapPointer(B,"pointer-enter")));break;case "pointer-leave":y.registerIncoming("pointer-leave",x,B=>z(y._wrapPointer(B,"pointer-leave")));break;case "gamepad":y.registerIncoming("gamepad",x,B=>{z(y._wrapGamepad(B))});break;case "focus":y.registerIncoming("focus",x,B=>{z(y._wrapFocus(B))});break;case "blur":y.registerIncoming("blur",x,B=>{z(y._wrapBlur(B))})}return y}b._inheritsLoose(t,m);var f=t.prototype;
f._wrapFocus=function(q){return{type:"focus",timestamp:q.timestamp,native:q.data.native,cancelable:q.cancelable,stopPropagation:()=>q.stopPropagation(),async:v=>q.async(v),preventDefault:()=>q.preventDefault()}};f._wrapBlur=function(q){return{type:"blur",timestamp:q.timestamp,native:q.data.native,cancelable:q.cancelable,stopPropagation:()=>q.stopPropagation(),async:v=>q.async(v),preventDefault:()=>q.preventDefault()}};f._wrapClick=function(q){const {pointerType:v,button:x,buttons:z,x:y,y:A,native:B,
eventId:E}=q.data,{cancelable:w,timestamp:D}=q,C=d.createScreenPoint(y,A),F=this._getMapPoint(y,A);return{type:"click",pointerType:v,button:x,buttons:z,x:y,y:A,native:B,timestamp:D,screenPoint:C,mapPoint:F,eventId:E,cancelable:w,stopPropagation:()=>q.stopPropagation(),async:G=>q.async(G),preventDefault:()=>q.preventDefault()}};f._wrapDoubleClick=function(q){const {pointerType:v,button:x,buttons:z,x:y,y:A,native:B,eventId:E}=q.data,{cancelable:w,timestamp:D}=q;return{type:"double-click",pointerType:v,
button:x,buttons:z,x:y,y:A,native:B,timestamp:D,mapPoint:this._getMapPoint(y,A),eventId:E,cancelable:w,stopPropagation:()=>q.stopPropagation(),async:C=>q.async(C),preventDefault:()=>q.preventDefault()}};f._wrapImmediateClick=function(q){const {pointerType:v,button:x,buttons:z,x:y,y:A,native:B,eventId:E}=q.data,w=B.pointerId,{cancelable:D,timestamp:C}=q;return{type:"immediate-click",pointerId:w,pointerType:v,button:x,buttons:z,x:y,y:A,native:B,timestamp:C,mapPoint:this._getMapPoint(y,A),eventId:E,
cancelable:D,stopPropagation:()=>q.stopPropagation(),async:F=>q.async(F),preventDefault:()=>q.preventDefault()}};f._wrapImmediateDoubleClick=function(q){const {pointerType:v,button:x,buttons:z,x:y,y:A,native:B,eventId:E}=q.data,w=B.pointerId,{cancelable:D,timestamp:C}=q;return{type:"immediate-double-click",pointerId:w,pointerType:v,button:x,buttons:z,x:y,y:A,native:B,timestamp:C,mapPoint:this._getMapPoint(y,A),eventId:E,cancelable:D,stopPropagation:()=>q.stopPropagation(),async:F=>q.async(F),preventDefault:()=>
q.preventDefault()}};f._wrapHold=function(q){const {pointerType:v,button:x,buttons:z,x:y,y:A,native:B}=q.data,{cancelable:E,timestamp:w}=q;return{type:"hold",pointerType:v,button:x,buttons:z,x:y,y:A,native:B,timestamp:w,mapPoint:this._getMapPoint(y,A),cancelable:E,stopPropagation:()=>q.stopPropagation(),async:D=>q.async(D),preventDefault:()=>q.preventDefault()}};f._getMapPoint=function(q,v){return this.view.toMap(d.createScreenPoint(q,v),{exclude:[]})};f._wrapDrag=function(q){const v=q.data,{x,y:z}=
v.center,{action:y,pointerType:A,button:B}=v;"start"===y&&(this._latestDragStart=v);if(this._latestDragStart){var E=v.pointer.native,w=v.buttons,{cancelable:D,timestamp:C}=q,F={x:this._latestDragStart.center.x,y:this._latestDragStart.center.y};"end"===y&&(this._latestDragStart=void 0);return{type:"drag",action:y,x,y:z,origin:F,pointerType:A,button:B,buttons:w,radius:v.radius,angle:e.rad2deg(v.angle),native:E,timestamp:C,cancelable:D,stopPropagation:()=>q.stopPropagation(),async:G=>q.async(G),preventDefault:()=>
q.preventDefault()}}};f._wrapKeyDown=function(q){const {key:v,repeat:x,native:z}=q.data,{cancelable:y,timestamp:A}=q;return{type:"key-down",key:v,repeat:x,native:z,timestamp:A,cancelable:y,stopPropagation:()=>q.stopPropagation(),async:B=>q.async(B),preventDefault:()=>q.preventDefault()}};f._wrapKeyUp=function(q){const {key:v,native:x}=q.data,{cancelable:z,timestamp:y}=q;return{type:"key-up",key:v,native:x,timestamp:y,cancelable:z,stopPropagation:()=>q.stopPropagation(),async:A=>q.async(A),preventDefault:()=>
q.preventDefault()}};f._wrapPointer=function(q,v){const {x,y:z,button:y,buttons:A,native:B,eventId:E}=q.data,w=B.pointerId,D=B.pointerType,{cancelable:C,timestamp:F}=q;return{type:v,x,y:z,pointerId:w,pointerType:D,button:y,buttons:A,native:B,timestamp:F,eventId:E,cancelable:C,stopPropagation:()=>q.stopPropagation(),async:G=>q.async(G),preventDefault:()=>q.preventDefault()}};f._wrapPointerDrag=function(q){const {x:v,y:x,buttons:z,native:y,eventId:A}=q.data.currentEvent,{button:B}=q.data.startEvent,
E=q.data.startEvent.native.pointerId,w=q.data.startEvent.native.pointerType,D=q.data.action,C={x:q.data.startEvent.x,y:q.data.startEvent.y},{cancelable:F,timestamp:G}=q;return{type:"pointer-drag",x:v,y:x,pointerId:E,pointerType:w,button:B,buttons:z,action:D,origin:C,native:y,timestamp:G,eventId:A,cancelable:F,stopPropagation:()=>q.stopPropagation(),async:H=>q.async(H),preventDefault:()=>q.preventDefault()}};f._wrapMouseWheel=function(q){const {cancelable:v,data:x,timestamp:z}=q,{x:y,y:A,deltaY:B,
native:E}=x;return{type:"mouse-wheel",x:y,y:A,deltaY:B,native:E,timestamp:z,cancelable:v,stopPropagation:()=>q.stopPropagation(),async:w=>q.async(w),preventDefault:()=>q.preventDefault()}};f._wrapGamepad=function(q){const {action:v,state:x,device:z}=q.data,{cancelable:y,timestamp:A}=q,{buttons:B,axes:E}=x;return{type:"gamepad",device:z,timestamp:A,action:v,buttons:B,axes:E,cancelable:y,stopPropagation:()=>q.stopPropagation(),async:w=>q.async(w),preventDefault:()=>q.preventDefault()}};return t}(n.InputHandler);
Object.defineProperty(a,"MouseButton",{enumerable:!0,get:()=>r.MouseButton});a.ViewEvents=p;a.eventTypes=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/IViewEvents":function(){define(["exports"],function(a){a.MouseButton=void 0;var b=a.MouseButton||(a.MouseButton={});b[b.Left=0]="Left";b[b.Middle=1]="Middle";b[b.Right=2]="Right";Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/interactive/interactiveToolUtils":function(){define(["exports",
"../../core/Logger","./interfaces"],function(a,b,c){a.areToolManipulatorsEditable=function(e){return e.visible&&e.getEditableFlag(c.EditableFlag.USER)&&e.getEditableFlag(c.EditableFlag.MANAGER)};a.getToolCollectionHandles=function(e){return[e.on("before-add",d=>{const n=d.item;if(null==n||e.includes(n))b.getLogger("esri.views.interactive.interactiveToolUtils").warn("Tool is either already in the list of tools or tool is `null`. Not adding tool."),d.preventDefault();else n.onAdd()}),e.on("after-remove",
d=>{d=d.item;d.active&&(d.view.activeTool=null);d.destroy()})]};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/interactive/interfaces":function(){define(["exports"],function(a){a.EditableFlag=void 0;(function(b){b[b.USER=0]="USER";b[b.MANAGER=1]="MANAGER"})(a.EditableFlag||(a.EditableFlag={}));a.ManipulatorStateFlags=void 0;(function(b){b[b.None=0]="None";b[b.Unfocused=1]="Unfocused";b[b.Focused=2]="Focused";b[b.Unselected=4]="Unselected";b[b.Selected=
8]="Selected";b[b.All=15]="All"})(a.ManipulatorStateFlags||(a.ManipulatorStateFlags={}));a.ManipulatorStateCustomFlags=void 0;(function(b){b[b.None=0]="None";b[b.Custom1=16]="Custom1";b[b.Custom2=32]="Custom2";b[b.Custom3=64]="Custom3";b[b.Custom4=128]="Custom4";b[b.Custom5=256]="Custom5";b[b.Custom6=512]="Custom6";b[b.Custom7=1024]="Custom7";b[b.Custom8=2048]="Custom8";b[b.Custom9=4096]="Custom9";b[b.Custom10=8192]="Custom10";b[b.Custom11=16384]="Custom11";b[b.Custom12=32768]="Custom12";b[b.All=
65520]="All"})(a.ManipulatorStateCustomFlags||(a.ManipulatorStateCustomFlags={}));Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/interactive/ToolViewManagerManipulatorState":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../core/iteratorUtils ../../core/MapUtils ../../core/mathUtils ../../core/maybe ../../core/screenUtils ./interactiveToolUtils ../support/screenUtils".split(" "),function(a,b,c,e,d,n,u,r,h){let g=function(){function k(){this._pointerLocations=
new Map;this._hoveredManipulators=new Map;this._grabbedManipulators=new Map;this._draggedManipulators=new Map;this._revertToNullActiveTool=this._stopDrag=!1;this._cursor=null}var p=k.prototype;p.handleInputEvent=function(l,m){var t=()=>l.stopPropagation();switch(l.type){case "pointer-move":"mouse"===l.pointerType&&this._pointerLocations.set(l.pointerId,{x:l.x,y:l.y,pointerType:l.pointerType});break;case "drag":0<this._grabbedManipulators.size&&(this._stopDrag=!0);this._stopDrag&&(l.stopPropagation(),
"end"===l.action&&(this._stopDrag=!1));break;case "pointer-down":if("mouse"===l.pointerType&&0!==l.button)break;t=h.createScreenPointFromEvent(l);var f=this._intersect(t,l.pointerType,m.forEachTool);if(n.isNone(f))break;var q=f.manipulator,v=f.tool;!(n.isSome(q)&&n.isSome(v)&&q.interactive)||q.grabbable&&q.grabbableForEvent(l)||!q.grabbing||q.dragging||this._ungrabManipulatorBeforeDragging(q,l,m);n.isSome(q)&&n.isSome(v)&&q.interactive&&q.grabbable&&q.grabbableForEvent(l)&&!q.grabbing&&(this._grabbedManipulators.set(l.pointerId,
{manipulator:q,tool:v,start:t,pointerType:l.pointerType}),1===this._grabbedManipulators.size&&n.isNone(m.activeTool)&&(this._revertToNullActiveTool=!0,m.setActiveTool(f.tool)),q.grabbing=!0,q.events.emit("grab-changed",{action:"start",pointerType:l.pointerType,screenPoint:t}),l.stopPropagation());break;case "pointer-up":this._draggedManipulators.has(l.pointerId)||this._handlePointerEnd(l,m);break;case "pointer-drag":if("mouse"===l.pointerType&&0!==l.button)break;v=this._grabbedManipulators.get(l.pointerId);
t=n.applySome(v,({manipulator:B})=>B);f=n.applySome(v,({tool:B})=>B);if(n.isNone(t)||n.isNone(f))break;q=h.createScreenPointFromEvent(l);q.x=d.clamp(q.x,0,m.view.width);q.y=d.clamp(q.y,0,m.view.height);v=n.unwrap(v).start;const x=this._draggedManipulators.get(l.pointerId);switch(l.action){case "start":case "update":if("update"===l.action||1===this._grabbedManipulators.size)t.dragging=!0,x?t.events.emit("drag",{action:"update",start:v,screenPoint:q}):t.events.emit("drag",{action:"start",start:v,screenPoint:q,
pointerType:l.pointerType}),this._draggedManipulators.set(l.pointerId,{tool:f,manipulator:t,start:v});break;case "end":t.dragging=!1,x&&t.events.emit("drag",{action:"end",start:v,screenPoint:q}),this._draggedManipulators.delete(l.pointerId),this._handlePointerEnd(l,m)}l.stopPropagation();break;case "immediate-click":f=h.createScreenPointFromEvent(l);const z=this._intersect(f,l.pointerType,m.forEachTool);l.native.shiftKey||m.forEachTool(B=>{if((!n.isSome(z)||z.tool!==B||B.automaticManipulatorSelection)&&
B.manipulators){let E=!1;B.manipulators.forEach(({manipulator:w})=>{w.selected&&(w.selected=!1,E=!0)});if(E&&B.onManipulatorSelectionChanged)B.onManipulatorSelectionChanged()}});if(n.isNone(z))break;const {manipulator:y,tool:A}=z;if(!y.interactive)break;if(y.selectable&&A.automaticManipulatorSelection&&(y.selected=!y.selected,A.onManipulatorSelectionChanged))A.onManipulatorSelectionChanged();y.events.emit("immediate-click",{screenPoint:f,button:l.button,pointerType:l.pointerType,shiftKey:l.native.shiftKey,
stopPropagation:t});break;case "click":t=h.createScreenPointFromEvent(l);f=this._intersect(t,l.pointerType,m.forEachTool);f=n.isSome(f)?f.manipulator:null;if(n.isNone(f)||!f.interactive)break;f.events.emit(l.type,{screenPoint:t,button:l.button,pointerType:l.pointerType,shiftKey:l.native.shiftKey});l.stopPropagation();break;case "double-click":f=h.createScreenPointFromEvent(l);q=this._intersect(f,l.pointerType,m.forEachTool);q=n.isSome(q)?q.manipulator:null;if(n.isNone(q)||!q.interactive)break;q.events.emit("double-click",
{screenPoint:f,button:l.button,pointerType:l.pointerType,shiftKey:l.native.shiftKey,stopPropagation:t});break;case "immediate-double-click":f=h.createScreenPointFromEvent(l),q=this._intersect(f,l.pointerType,m.forEachTool),q=n.isSome(q)?q.manipulator:null,!n.isNone(q)&&q.interactive&&q.events.emit("immediate-double-click",{screenPoint:f,button:l.button,pointerType:l.pointerType,shiftKey:l.native.shiftKey,stopPropagation:t})}this._onFocusChange(m.forEachTool)};p._ungrabManipulatorBeforeDragging=function(l,
m,t){l.grabbing=!1;l.events.emit("grab-changed",{action:"end",pointerType:m.pointerType,screenPoint:h.createScreenPointFromEvent(m)});this._grabbedManipulators.forEach(({manipulator:f},q)=>{f===l&&this._grabbedManipulators.delete(q)});this._afterManipulatorUngrab(t.setActiveTool)};p._handlePointerEnd=function(l,m){const t=n.applySome(this._grabbedManipulators.get(l.pointerId),({manipulator:f})=>f);!n.isNone(t)&&t.grabbing&&(t.grabbing=!1,t.events.emit("grab-changed",{action:"end",pointerType:l.pointerType,
screenPoint:h.createScreenPointFromEvent(l)}),this._grabbedManipulators.delete(l.pointerId),this._afterManipulatorUngrab(m.setActiveTool))};p._cursorFromMap=function(l){let m=null;e.someMap(l,({manipulator:t})=>{if(!n.isNone(t)&&t.interactive){if(t.grabbing&&t.grabCursor)return m=t.grabCursor,!0;if(t.cursor)return m=t.cursor,!0}return!1});return m};p._onFocusChange=function(l){this._updateCursor();this._updateFocusedManipulatorTools(l)};p._updateCursor=function(){this._cursor=0<this._grabbedManipulators.size?
this._cursorFromMap(this._grabbedManipulators)||"grabbing":0<this._hoveredManipulators.size?this._cursorFromMap(this._hoveredManipulators)||"pointer":null};p._updateFocusedManipulatorTools=function(l){const m=new Set,t=new Set;this._grabbedManipulators.forEach(({tool:f})=>{m.add(f)});this._hoveredManipulators.forEach(({tool:f})=>{t.add(f)});l(f=>{f.hasGrabbedManipulators=m.has(f);f.hasHoveredManipulators=t.has(f);var q=this._grabbedManipulators.values();q=c.find(q,({tool:v})=>v===f);f.firstGrabbedManipulator=
n.isSome(q)?q.manipulator:null})};p.clearPointers=function(l,{forEachTool:m,setActiveTool:t},f=!0,q){const v=(x,z)=>x===l&&(n.isNone(q)||q===z);this._grabbedManipulators.forEach(({tool:x,manipulator:z,pointerType:y},A)=>{v(x,z)&&(this._grabbedManipulators.delete(A),z.grabbing=!1,z.events.emit("grab-changed",{action:"end",screenPoint:null,pointerType:y}))});this._draggedManipulators.forEach(({tool:x,manipulator:z},y)=>{v(x,z)&&(this._draggedManipulators.delete(y),z.dragging=!1,z.events.emit("drag",
{action:"cancel"}))});f&&this._hoveredManipulators.forEach(({tool:x,manipulator:z},y)=>{v(x,z)&&(this._hoveredManipulators.delete(y),z.hovering=!1)});this._afterManipulatorUngrab(t);this._onFocusChange(m)};p._intersect=function(l,m,t){let f=null;t(q=>{if(null==q.manipulators||!r.areToolManipulatorsEditable(q))return!1;const v=q.manipulators.intersect(l,m);if(n.isNone(v))return!1;f={tool:q,manipulator:v};return!0});return f};p.updateHoveredStateFromKnownPointers=function(l){this._pointerLocations.forEach((m,
t)=>{this._updateHoveredStateForPointerAtScreenPosition(u.createScreenPoint(m.x,m.y),t,m.pointerType,l)})};p.handleHoverEvent=function(l,m){"pointer-up"!==l.type&&"immediate-click"!==l.type&&"pointer-move"!==l.type||"mouse"!==l.pointerType||this._updateHoveredStateForPointerAtScreenPosition(h.createScreenPointFromEvent(l),l.pointerId,l.pointerType,m)};p._updateHoveredStateForPointerAtScreenPosition=function(l,m,t,f){l=this._intersect(l,t,f);t=n.applySome(this._hoveredManipulators.get(m),({manipulator:q})=>
q);n.isSome(l)&&!l.manipulator.interactive&&(l=null);n.isSome(l)&&t===l.manipulator||(n.isSome(t)&&(t.hovering=!1),n.isSome(l)?(l.manipulator.hovering=!0,this._hoveredManipulators.set(m,l)):this._hoveredManipulators.delete(m),this._onFocusChange(f))};p._afterManipulatorUngrab=function(l){0===this._grabbedManipulators.size&&this._revertToNullActiveTool&&(l(null),this._revertToNullActiveTool=!1)};b._createClass(k,[{key:"cursor",get:function(){return this._cursor}}]);return k}();a.ToolViewManagerManipulatorState=
g;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/support/screenUtils":function(){define(["exports","../../core/has","../../core/screenUtils"],function(a,b,c){function e(n){return c.createScreenPoint(n.x,n.y)}function d(n,u){n=(n instanceof HTMLElement?n:n.surface).getBoundingClientRect();return c.createScreenPoint(u.clientX-n.left,u.clientY-n.top)}a.createScreenPointArrayFromEvent=function(n){return c.createScreenPointArray(n.x,n.y)};a.createScreenPointFromEvent=
e;a.createScreenPointFromNativeEvent=d;a.createScreenPointFromSupportedEvent=function(n,u){return u instanceof Event?d(n,u):e(u)};a.isSupportedScreenPointEvent=function(n){if(n instanceof Event)return!0;if("object"===typeof n&&"type"in n)switch(n.type){case "click":case "double-click":case "pointer-down":case "pointer-drag":case "pointer-enter":case "pointer-leave":case "pointer-up":case "pointer-move":case "immediate-click":case "immediate-double-click":case "hold":case "drag":case "mouse-wheel":return!0}return!1};
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/input/Input":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./gamepad/GamepadSettings".split(" "),function(a,b,c,e,d,n,u,r){c=function(h){function g(){var k=h.apply(this,arguments)||this;k.gamepad=
new r;return k}a._inheritsLoose(g,h);return g}(c);b.__decorate([e.property({readOnly:!0})],c.prototype,"gamepad",void 0);return c=b.__decorate([u.subclass("esri.views.input.Input")],c)})},"esri/views/input/gamepad/GamepadSettings":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/Collection ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ./GamepadInputDevice".split(" "),
function(a,b,c,e,d,n,u,r,h){c=function(g){function k(...p){p=g.call(this,...p)||this;p.devices=new e;p.enabledFocusMode="document";return p}a._inheritsLoose(k,g);return k}(c);b.__decorate([d.property({type:e.ofType(h),readOnly:!0})],c.prototype,"devices",void 0);b.__decorate([d.property({type:["document","view","none"]})],c.prototype,"enabledFocusMode",void 0);return c=b.__decorate([r.subclass("esri.views.input.gamepad.GamepadSettings")],c)})},"esri/views/input/gamepad/GamepadInputDevice":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u){c=function(g){function k(p){var l=g.call(this)||this;l.nativeIndex=null;l._detectedDeviceType="unknown";"standard"===p.mapping?l._detectedDeviceType="standard":r.test(p.id)?l._detectedDeviceType="spacemouse":l._detectedDeviceType="unknown";l.nativeIndex=p.index;return l}a._inheritsLoose(k,g);a._createClass(k,[{key:"native",get:function(){const p=navigator.getGamepads?navigator.getGamepads():[];return null!=this.nativeIndex&&this.nativeIndex<p.length?p[this.nativeIndex]:null}},
{key:"deviceType",get:function(){return this._detectedDeviceType}},{key:"axisThreshold",get:function(){return h[this.deviceType]}}]);return k}(c);b.__decorate([e.property({nonNullable:!0,readOnly:!0})],c.prototype,"nativeIndex",void 0);b.__decorate([e.property({type:String,readOnly:!0})],c.prototype,"deviceType",null);b.__decorate([e.property({type:Number,readOnly:!0})],c.prototype,"axisThreshold",null);c=b.__decorate([u.subclass("esri.views.input.gamepad.GamepadInputDevice")],c);const r=RegExp("^(3dconnexion|space(mouse|navigator|pilot|explorer))",
"i"),h={standard:.15,spacemouse:.025,unknown:0};return c})},"esri/views/navigation/Navigation":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ./gamepad/GamepadSettings".split(" "),function(a,b,c,e,d,n,u,r){c=function(h){function g(k){k=h.call(this,k)||this;k.browserTouchPanEnabled=!0;k.gamepad=
new r;k.momentumEnabled=!0;k.mouseWheelZoomEnabled=!0;return k}a._inheritsLoose(g,h);return g}(c);b.__decorate([e.property({type:Boolean})],c.prototype,"browserTouchPanEnabled",void 0);b.__decorate([e.property({type:r,nonNullable:!0})],c.prototype,"gamepad",void 0);b.__decorate([e.property({type:Boolean})],c.prototype,"momentumEnabled",void 0);b.__decorate([e.property({type:Boolean})],c.prototype,"mouseWheelZoomEnabled",void 0);return c=b.__decorate([u.subclass("esri.views.navigation.Navigation")],
c)})},"esri/views/navigation/gamepad/GamepadSettings":function(){define("../../../chunks/_rollupPluginBabelHelpers ../../../chunks/tslib.es6 ../../../core/Accessor ../../../core/accessorSupport/decorators/property ../../../core/arrayUtils ../../../core/accessorSupport/ensureType ../../../core/accessorSupport/decorators/subclass ../../input/gamepad/GamepadInputDevice".split(" "),function(a,b,c,e,d,n,u,r){c=function(h){function g(k){k=h.call(this,k)||this;k.enabled=!0;k.device=null;k.mode="pan";k.tiltDirection=
"forward-down";k.velocityFactor=1;return k}a._inheritsLoose(g,h);return g}(c);b.__decorate([e.property({type:Boolean,nonNullable:!0})],c.prototype,"enabled",void 0);b.__decorate([e.property({type:r})],c.prototype,"device",void 0);b.__decorate([e.property({type:["pan","zoom"],nonNullable:!0})],c.prototype,"mode",void 0);b.__decorate([e.property({type:["forward-down","forward-up"],nonNullable:!0})],c.prototype,"tiltDirection",void 0);b.__decorate([e.property({type:Number,nonNullable:!0})],c.prototype,
"velocityFactor",void 0);return c=b.__decorate([u.subclass("esri.views.navigation.gamepad.GamepadSettings")],c)})},"esri/views/support/DefaultsFromMap":function(){define("exports ../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/asyncUtils ../../core/maybe ../../core/promiseUtils ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../geometry/support/heightModelInfoUtils ../ViewingMode ./projectionUtils".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m){a.DefaultsFromMap=function(t){function f(v){v=t.call(this,v)||this;v.required={tileInfo:!1,heightModelInfo:!1,extent:!1};v.defaultSpatialReference=null;v.userSpatialReference=null;v.sourcePreloadCount=10;v.priorityCollection=null;v.requiresExtentInSpatialReference=!0;v.suspended=!1;v._projectExtentTask={task:null,input:null,output:null,spatialReference:null};return v}b._inheritsLoose(f,t);var q=f.prototype;q.destroy=function(){this._projectExtentTask.task&&(this._projectExtentTask.task=
n.abortMaybe(this._projectExtentTask.task));this._set("map",null)};q._narrowDownSpatialReferenceCandidates=function(v,x){if(n.isNone(v))return x;const z=[];for(const A of v)for(const B of x)if(A.spatialReference.equals(B.spatialReference)){v=A.viewingMode;var y=B.viewingMode;v=n.isSome(v)?n.isSome(y)?v===y?v:!1:v:y;if(!1!==v){z.push({spatialReference:A.spatialReference,viewingMode:v});break}}return 0<z.length?z:null};q._pickSpatialReferenceCandidate=function(v){const x=this.defaultSpatialReference;
if(n.isNone(v)||1>v.length)return n.isSome(x)?{spatialReference:x,viewingMode:null}:null;n.isSome(x)&&1<v.length&&v.some(({spatialReference:z})=>z.equals(x))&&(v=v.filter(({spatialReference:z})=>z.equals(x)));1<v.length&&v.some(({viewingMode:z})=>z!==l.ViewingMode.Local)&&(v=v.filter(({viewingMode:z})=>z!==l.ViewingMode.Local));return v[0]};q._getSupportedSpatialReferences=function(v){var x="supportedSpatialReferences"in v&&v.supportedSpatialReferences||(v.spatialReference?[v.spatialReference]:[]);
if(0===x.length)return[];const z=[];for(const y of x)if(x=this.getSpatialReferenceSupport({spatialReference:y,layer:v}),n.isSome(x)){x=n.isSome(x.constraints)?x.constraints:[{spatialReference:y,viewingMode:null}];for(const {spatialReference:A,viewingMode:B}of x)(!this.requiresExtentInSpatialReference||n.isNone(this.userSpatialReference)||A.equals(this.userSpatialReference))&&z.push({spatialReference:A,viewingMode:B})}return z};q._pickExtentCandidate=function(v){const x=this.spatialReference;return v.find(({extent:z})=>
x.equals(z.spatialReference))||v[0]};q._collectLayers=function(v){if("loaded"!==this._loadMaybe(this.map?.()))return{layers:[],updating:!0};const x={layers:[],preloading:-1,updating:!1};for(const z of v)if(this._collectCollection(z,x),x.preloading===this.sourcePreloadCount)break;return{layers:x.layers,updating:x.updating}};q._collectCollection=function(v,x){if(v.layers){switch(this._loadMaybe(v.parent)){case "loading":x.updating=!0;++x.preloading;return;case "failed":return}for(const z of v.layers){switch(this._loadMaybe(z)){case "failed":continue;
case "loading":x.updating=!0;++x.preloading;break;case "loaded":x.updating||x.layers.push(z),"layers"in z&&this._collectCollection({layers:z.layers},x)}if(x.preloading===this.sourcePreloadCount)break}}};q._loadMaybe=function(v){return v&&"loadStatus"in v?"not-loaded"===v.loadStatus?(v.load().catch(()=>{}),"loading"):v.loadStatus:"loaded"};b._createClass(f,[{key:"ready",get:function(){return!this._spatialReferenceTask.updating&&!this._tileInfoTask.updating&&!this._extentTask.updating}},{key:"heightModelInfoReady",
get:function(){return!this._heightModelInfoTask.updating}},{key:"spatialReference",get:function(){return n.isSome(this.userSpatialReference)?this.userSpatialReference:n.unwrap(this._spatialReferenceTask.spatialReference)}},{key:"extent",get:function(){return n.unwrap(this._extentTask.extent)}},{key:"heightModelInfo",get:function(){return n.unwrap(this._heightModelInfoTask.heightModelInfo)}},{key:"vcsWkid",get:function(){return n.unwrap(this._heightModelInfoTask.vcsWkid)}},{key:"latestVcsWkid",get:function(){return n.unwrap(this._heightModelInfoTask.latestVcsWkid)}},
{key:"viewingMode",get:function(){return n.isNone(this.userSpatialReference)||this.userSpatialReference.equals(n.unwrap(this._spatialReferenceTask.spatialReference))?n.unwrap(this._spatialReferenceTask.viewingMode):null}},{key:"tileInfo",get:function(){return n.unwrap(this._tileInfoTask.tileInfo)}},{key:"mapCollections",get:function(){const v=this.map?.(),x=[];n.isSome(this.priorityCollection)&&x.push(this.priorityCollection);x.push({parent:v?.basemap,layers:v?.basemap?.baseLayers},{layers:v?.layers},
{parent:v?.ground,layers:v?.ground?.layers},{parent:v?.basemap,layers:v?.basemap?.referenceLayers});return x}},{key:"_allLayers",get:function(){return this._collectLayers(this.mapCollections)}},{key:"_spatialReferenceTask",get:function(){if(this.suspended)return this._get("_spatialReferenceTask")??{updating:!1};const {layers:v,updating:x}=this._allLayers;var z=null;for(const A of v){var y=this._getSupportedSpatialReferences(A);0<y.length&&(y=this._narrowDownSpatialReferenceCandidates(z,y),n.isSome(y)&&
(z=y));if(n.isSome(z)&&1===z.length)break}if(x&&(n.isNone(z)||1!==z.length))return{updating:!0};z=this._pickSpatialReferenceCandidate(z);return{spatialReference:n.isSome(z)?z.spatialReference:null,viewingMode:n.isSome(z)?z.viewingMode:null,updating:!1}}},{key:"_tileInfoTask",get:function(){if(!this.required.tileInfo)return this._get("_tileInfoTask")??{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const {layers:v,updating:x}=this._collectLayers([{parent:this.map?.()?.basemap,
layers:this.map?.()?.basemap?.baseLayers},{layers:this.map?.()?.layers}]);if(v&&0<v.length&&"tileInfo"in v[0]){const z=v[0].tileInfo;return{tileInfo:z&&z.spatialReference.equals(this.spatialReference)?z:null,updating:!1}}return{updating:x}}},{key:"_heightModelInfoTask",get:function(){if(!this.required.heightModelInfo||this.suspended&&this._get("_heightModelInfoTask")?.heightModelInfo)return this._get("_heightModelInfoTask")??{updating:!1};const {layers:v,updating:x}=this._allLayers;for(const z of v)if(p.supportsHeightModelInfo(z)){const y=
p.deriveHeightModelInfoFromLayer(z);if(y)return{heightModelInfo:y,vcsWkid:z.spatialReference?.vcsWkid,latestVcsWkid:z.spatialReference?.latestVcsWkid,updating:!1}}return{updating:x}}},{key:"_extentCandidatesTask",get:function(){if(this.suspended||!this.required.extent)return this._get("_extentCandidatesTask")??{updating:!1};if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};var v=this._allLayers;const x=v.updating,z=[];for(const A of v.layers){v="fullExtents"in A&&A.fullExtents||
(n.isSome(A.fullExtent)?[A.fullExtent]:[]);var y=this.requiresExtentInSpatialReference?null:v[0];if(y=v.find(B=>B.spatialReference.equals(this.spatialReference))??y)return{candidates:[{extent:y,layer:A}],updating:!1};if(0<this._getSupportedSpatialReferences(A).length)for(const B of v)z.push({extent:B,layer:A})}return{candidates:z,updating:x}}},{key:"_extentTask",get:function(){var v=this;const {candidates:x,updating:z}=this._extentCandidatesTask;if(z)return{updating:z};if(n.isNone(x)||0===x.length)return{updating:!1};
if(!this.spatialReference)return{updating:this._spatialReferenceTask.updating};const y=this._pickExtentCandidate(x),A=this.spatialReference;if(y.extent.equals(this._projectExtentTask.input)&&A.equals(this._projectExtentTask.spatialReference))return{extent:this._projectExtentTask.output,updating:n.isSome(this._projectExtentTask.task)&&!this._projectExtentTask.task.finished};n.isSome(this._projectExtentTask.task)&&(this._projectExtentTask.task=n.abortMaybe(this._projectExtentTask.task));this._projectExtentTask=
{input:y.extent.clone(),output:null,spatialReference:A.clone(),task:d.createTask(function(){var B=b._asyncToGenerator(function*(E){try{const w=yield m.projectWithEngineOrService(y.extent,A,y.layer.portalItem,E);v._projectExtentTask={...v._projectExtentTask,task:null,output:w}}catch(w){u.isAborted(E)||(v._projectExtentTask={...v._projectExtentTask,task:null})}});return function(E){return B.apply(this,arguments)}}())};return{updating:!0}}}]);return f}(e);c.__decorate([r.property()],a.DefaultsFromMap.prototype,
"required",void 0);c.__decorate([r.property({constructOnly:!0})],a.DefaultsFromMap.prototype,"map",void 0);c.__decorate([r.property({constructOnly:!0})],a.DefaultsFromMap.prototype,"getSpatialReferenceSupport",void 0);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"defaultSpatialReference",void 0);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"userSpatialReference",void 0);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"sourcePreloadCount",void 0);c.__decorate([r.property()],
a.DefaultsFromMap.prototype,"priorityCollection",void 0);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"requiresExtentInSpatialReference",void 0);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"suspended",void 0);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"ready",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"heightModelInfoReady",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"spatialReference",
null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"extent",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"heightModelInfo",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"vcsWkid",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"latestVcsWkid",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"viewingMode",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,
"tileInfo",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"mapCollections",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"_allLayers",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"_spatialReferenceTask",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"_tileInfoTask",null);c.__decorate([r.property({readOnly:!0})],a.DefaultsFromMap.prototype,"_heightModelInfoTask",null);c.__decorate([r.property({readOnly:!0})],
a.DefaultsFromMap.prototype,"_extentCandidatesTask",null);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"_extentTask",null);c.__decorate([r.property()],a.DefaultsFromMap.prototype,"_projectExtentTask",void 0);a.DefaultsFromMap=c.__decorate([k.subclass("esri.views.support.DefaultsFromMap")],a.DefaultsFromMap);Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/geometry/support/heightModelInfoUtils":function(){define("exports ../../core/has ../../core/Error ../../core/maybe ../HeightModelInfo ../../layers/support/arcgisLayerUrl".split(" "),
function(a,b,c,e,d,n){function u(t,f,q){if(!r(t)||!r(f))return l.Unsupported;if(null==t||null==f)return l.Ok;if(!q&&t.heightUnit!==f.heightUnit)return l.Units;if(t.heightModel!==f.heightModel)return l.HeightModel;switch(t.heightModel){case "gravity-related-height":return l.Ok;case "ellipsoidal":return t.vertCRS===f.vertCRS?l.Ok:l.CRS;default:return l.Unsupported}}function r(t){return null==t||null!=t.heightModel&&null!=t.heightUnit}function h(t){const f=t.url?n.parse(t.url):void 0;return(null!=t.spatialReference?.vcsWkid||
!e.isSome(f)||"ImageServer"!==f.serverType)&&"heightModelInfo"in t&&t.heightModelInfo?t.heightModelInfo:k(t)?d.deriveUnitFromSR(m,t.spatialReference):null}function g(t){if("unknown"===t.type||!("capabilities"in t))return!1;switch(t.type){case "csv":case "feature":case "geojson":case "subtype-group":case "ogc-feature":case "oriented-imagery":case "wfs":return!0;case "imagery":case "map-image":case "map-notes":case "tile":case "vector-tile":case "scene":case null:return!1;default:return!1}}function k(t){return g(t)?
!!(t.capabilities&&t.capabilities.data&&t.capabilities.data.supportsZ):p(t)}function p(t){switch(t.type){case "building-scene":case "elevation":case "integrated-mesh":case "point-cloud":case "scene":case "voxel":return!0}return!1}var l;(function(t){t[t.Ok=0]="Ok";t[t.Units=1]="Units";t[t.HeightModel=2]="HeightModel";t[t.CRS=3]="CRS";t[t.Unsupported=4]="Unsupported"})(l||(l={}));const m=new d({heightModel:"gravity-related-height"});a.deriveHeightModelInfoFromLayer=h;a.rejectLayerError=function(t,f,
q){const v=h(t),x=u(v,f,q);if(v){const z=d.deriveUnitFromSR(v,t.spatialReference).heightUnit;if(!q&&z!==v.heightUnit)return f=new c("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${z})`,{horizontalUnit:z}),new c("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:v,error:f})}if(!("heightModelInfo"in t&&null!=t.heightModelInfo||null!=t.spatialReference)&&k(t)||x===l.Unsupported)return new c("layerview:unsupported-height-model-info",
"The vertical coordinate system of the layer is not supported",{heightModelInfo:v});switch(x){case l.Units:return t=v?.heightUnit||"unknown",q=f?.heightUnit||"unknown",t=new c("layerview:incompatible-height-unit",`The vertical units of the layer (${t}) must match the vertical units of the scene (${q})`,{layerUnit:t,sceneUnit:q}),new c("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:v,sceneHeightModelInfo:f,
error:t});case l.HeightModel:return t=v?.heightModel||"unknown",q=f?.heightModel||"unknown",t=new c("layerview:incompatible-height-model",`The height model of the layer (${t}) must match the height model of the scene (${q})`,{layerHeightModel:t,sceneHeightModel:q}),new c("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:v,sceneHeightModelInfo:f,error:t});case l.CRS:return t=v?.vertCRS||"unknown",q=f?.vertCRS||
"unknown",t=new c("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${t}) must match the vertical datum of the scene (${q})`,{layerDatum:t,sceneDatum:q}),new c("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:v,sceneHeightModelInfo:f,error:t})}return null};a.supportsHeightModelInfo=function(t){return null!=t.layers||p(t)||g(t)||"heightModelInfo"in t};a.validateWebSceneError=function(t,
f){if(!t)return null;if(!r(t))return new c("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:t});const q=t.heightUnit;t=d.deriveUnitFromSR(t,f).heightUnit;return q!==t?new c("webscene:incompatible-height-unit",`The vertical units of the scene (${q}) must match the horizontal units of the scene (${t})`,{verticalUnit:q,horizontalUnit:t}):null};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/ViewingMode":function(){define(["exports"],function(a){a.ViewingMode=void 0;(function(b){b[b.Global=1]="Global";b[b.Local=2]="Local"})(a.ViewingMode||(a.ViewingMode={}));a.stringFromViewingMode=function(b){return b===a.ViewingMode.Global?"global":"local"};a.viewingModeFromString=function(b){return"global"===b?a.ViewingMode.Global:a.ViewingMode.Local};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/support/projectionUtils":function(){define(["require",
"exports","../../chunks/_rollupPluginBabelHelpers","../../core/promiseUtils","../../geometry/projection"],function(a,b,c,e,d){function n(p){return u.apply(this,arguments)}function u(){u=c._asyncToGenerator(function*(p){g||(g=(new Promise((l,m)=>a(["../../portal/support/geometryServiceUtils"],l,m))).then(l=>k=l));yield g;e.throwIfAborted(p)});return u.apply(this,arguments)}function r(p,l,m,t){return h.apply(this,arguments)}function h(){h=c._asyncToGenerator(function*(p,l,m,t){if(!p)return null;const f=
p.spatialReference;if(d.isLoaded()||d.canProjectWithoutEngine(f,l))return d.project(p,l);if(k)return k.projectGeometry(p,l,m,t);yield Promise.race([n(t),d.load(t)]);return r(p,l,m,t)});return h.apply(this,arguments)}let g=null,k;b.projectWithEngineOrService=r;Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/ViewAnimation":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../core/Error ../core/Promise ../core/promiseUtils ../core/accessorSupport/decorators/property ../core/arrayUtils ../core/accessorSupport/ensureType ../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h){e=function(g){function k(l){l=g.call(this,l)||this;l.state="running";l.target=null;l._dfd=null;return l}a._inheritsLoose(k,g);var p=k.prototype;p.initialize=function(){this.addResolvingPromise(new Promise((l,m)=>this._dfd={resolve:l,reject:m}))};p.stop=function(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state","stopped"),this._dfd?.reject(new c("ViewAnimation stopped")))};p.finish=function(){"stopped"!==this.state&&"finished"!==this.state&&(this._set("state",
"finished"),this._dfd?.resolve())};p.update=function(l,m){m||(m=d.isPromiseLike(l)?"waiting-for-target":"running");this._set("target",l);this._set("state",m)};a._createClass(k,[{key:"done",get:function(){return"finished"===this.state||"stopped"===this.state}}]);return k}(e.EsriPromise);b.__decorate([n.property({readOnly:!0})],e.prototype,"done",null);b.__decorate([n.property({readOnly:!0,type:String})],e.prototype,"state",void 0);b.__decorate([n.property()],e.prototype,"target",void 0);e=b.__decorate([h.subclass("esri.views.ViewAnimation")],
e);(e||(e={})).State={RUNNING:"running",STOPPED:"stopped",FINISHED:"finished",WAITING_FOR_TARGET:"waiting-for-target"};return e})},"esri/views/layers/LayerView":function(){define("../../chunks/_rollupPluginBabelHelpers ../../chunks/tslib.es6 ../../core/Accessor ../../core/Evented ../../core/HandleOwner ../../core/Identifiable ../../core/Logger ../../core/maybe ../../core/Promise ../../core/accessorSupport/decorators/property ../../core/arrayUtils ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l){c=function(m){function t(q){q=m.call(this,q)||this;q.layer=null;q.parent=null;return q}a._inheritsLoose(t,m);var f=t.prototype;f.initialize=function(){this.when().catch(q=>{if("layerview:create-error"!==q.name){const v=this.layer&&this.layer.id||"no id",x=this.layer&&this.layer.title||"no title";u.getLogger(this.declaredClass).error("#resolve()",`Failed to resolve layer view (layer title: '${x}', id: '${v}')`,q)}})};f.canResume=function(){return this.visible&&this.layer?.loaded&&
!this.parent?.suspended&&this.view?.ready||!1};f.getSuspendInfo=function(){const q=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};this.view&&this.view.ready||(q.viewNotReady=!0);this.layer&&this.layer.loaded||(q.layerNotLoaded=!0);this.visible||(q.layerInvisible=!0);return q};f.isUpdating=function(){return!1};a._createClass(t,[{key:"fullOpacity",get:function(){return r.unwrapOr(this.get("layer.opacity"),1)*r.unwrapOr(this.get("parent.fullOpacity"),1)}},{key:"suspended",get:function(){return!this.canResume()}},
{key:"suspendInfo",get:function(){return this.getSuspendInfo()}},{key:"legendEnabled",get:function(){return!this.suspended&&!0===this.layer?.legendEnabled}},{key:"updating",get:function(){return!(!this.updatingHandles?.updating&&!this.isUpdating())}},{key:"updatingProgress",get:function(){return this.updating?0:1}},{key:"visible",get:function(){return!0===this.layer?.visible},set:function(q){this._overrideIfSome("visible",q)}}]);return t}(d.HandleOwnerMixin(n.IdentifiableMixin(h.EsriPromiseMixin(e.EventedMixin(c)))));
b.__decorate([g.property()],c.prototype,"fullOpacity",null);b.__decorate([g.property()],c.prototype,"layer",void 0);b.__decorate([g.property()],c.prototype,"parent",void 0);b.__decorate([g.property({readOnly:!0})],c.prototype,"suspended",null);b.__decorate([g.property({readOnly:!0})],c.prototype,"suspendInfo",null);b.__decorate([g.property({readOnly:!0})],c.prototype,"legendEnabled",null);b.__decorate([g.property({type:Boolean,readOnly:!0})],c.prototype,"updating",null);b.__decorate([g.property({readOnly:!0})],
c.prototype,"updatingProgress",null);b.__decorate([g.property()],c.prototype,"visible",null);b.__decorate([g.property()],c.prototype,"view",void 0);return c=b.__decorate([l.subclass("esri.views.layers.LayerView")],c)})},"esri/core/workers/request":function(){define(["exports","../../chunks/_rollupPluginBabelHelpers","../Error","../maybe"],function(a,b,c,e){let d;a.execute=function(n,u){let r=u.responseType;r?"array-buffer"!==r&&"blob"!==r&&"json"!==r&&"native"!==r&&"native-request-init"!==r&&"text"!==
r&&(r="text"):r="json";u.responseType=r;const h=e.unwrap(u.signal);delete u.signal;return globalThis.invokeStaticMessage("request",{url:n,options:u},{signal:h}).then(function(){var g=b._asyncToGenerator(function*(k){let p,l,m;if(k.data)if(k.data instanceof ArrayBuffer){if("json"===r||"text"===r||"blob"===r){var t=new Blob([k.data]);if("json"===r||"text"===r)if(d||(d=new FileReaderSync),m=d.readAsText(t),"json"===r){try{p=JSON.parse(m||null)}catch(f){throw new c("request:server",f.message,{...f,url:n,
requestOptions:u});}if(p.error)throw new c("request:server",p.error.message,{...p.error,url:n,requestOptions:u});}}}else"native"===r&&(k.data.signal=h,l=yield fetch(k.data.url,k.data));switch(r){case "blob":break;case "json":t=p;break;case "native":t=l;break;case "text":t=m;break;default:t=k.data}return{data:t,requestOptions:u,ssl:k.ssl,url:n}});return function(k){return g.apply(this,arguments)}}())};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/WorkerTileHandler":function(){define(["../../../../chunks/_rollupPluginBabelHelpers",
"../../../../core/promiseUtils","./enums","./WorkerTile","./style/StyleRepository"],function(a,b,c,e,d){return function(){function n(){this._spriteInfo={};this._glyphInfo={}}var u=n.prototype;u.reset=function(){this._spriteInfo={};this._glyphInfo={};return Promise.resolve()};u.getLayers=function(){return this._styleRepository?.layers};u.createTileAndParse=function(){var r=a._asyncToGenerator(function*(h,g){var {key:k}=h;const p={};for(const l of Object.keys(h.sourceName2DataAndRefKey))p[l]=h.sourceName2DataAndRefKey[l].refKey;
k=new e(k,p,this,this._styleRepository);try{return yield k.parse(h,g)}catch(l){k.setObsolete();k.release();if(!b.isAbortError(l))throw l;return null}});return function(h,g){return r.apply(this,arguments)}}();u.updateStyle=function(r){if(r&&0!==r.length&&this._styleRepository){var h=this._styleRepository;for(const g of r)switch(r=g.data,g.type){case c.StyleUpdateType.PAINTER_CHANGED:h.setPaintProperties(r.layer,r.paint);break;case c.StyleUpdateType.LAYOUT_CHANGED:h.setLayoutProperties(r.layer,r.layout);
break;case c.StyleUpdateType.LAYER_REMOVED:h.deleteStyleLayer(r.layer);break;case c.StyleUpdateType.LAYER_CHANGED:h.setStyleLayer(r.layer,r.index);break;case c.StyleUpdateType.SPRITES_CHANGED:this._spriteInfo={}}}};u.setStyle=function(r){this._styleRepository=new d(r);this._spriteInfo={};this._glyphInfo={}};u.fetchSprites=function(r,h,g){const k=[],p=this._spriteInfo;for(const l of r)void 0===p[l.name]&&k.push(l);return 0===k.length?Promise.resolve():h.invoke("getSprites",k,{signal:g&&g.signal}).then(l=>
{for(const m in l)p[m]=l[m]})};u.getSpriteItems=function(){return this._spriteInfo};u.fetchGlyphs=function(r,h,g,k,p){const l=[];let m=this._glyphInfo[h];m?g.forEach(t=>{m[t]||l.push(t)}):(m=this._glyphInfo[h]=[],g.forEach(t=>l.push(t)));return 0===l.length?Promise.resolve():k.invoke("getGlyphs",{tileID:r,font:h,codePoints:l},p).then(t=>{for(let f=0;f<t.length;f++)t[f]&&(m[f]=t[f])})};u.getGlyphItems=function(r){return this._glyphInfo[r]};return n}()})},"esri/views/2d/engine/vectorTiles/enums":function(){define(["exports"],
function(a){a.MemoryBufferType=void 0;(function(b){b[b.UNKNOWN=0]="UNKNOWN";b[b.FILL_VERTEX=1]="FILL_VERTEX";b[b.FILL_DD_VERTEX=2]="FILL_DD_VERTEX";b[b.FILL_INDEX=3]="FILL_INDEX";b[b.OUTLINE_VERTEX=4]="OUTLINE_VERTEX";b[b.OUTLINE_DD_VERTEX=5]="OUTLINE_DD_VERTEX";b[b.OUTLINE_INDEX=6]="OUTLINE_INDEX";b[b.LINE_VERTEX=7]="LINE_VERTEX";b[b.LINE_DD_VERTEX=8]="LINE_DD_VERTEX";b[b.LINE_INDEX=9]="LINE_INDEX";b[b.ICON_VERTEX=10]="ICON_VERTEX";b[b.ICON_DD_VERTEX=11]="ICON_DD_VERTEX";b[b.ICON_INDEX=12]="ICON_INDEX";
b[b.TEXT_VERTEX=13]="TEXT_VERTEX";b[b.TEXT_DD_VERTEX=14]="TEXT_DD_VERTEX";b[b.TEXT_INDEX=15]="TEXT_INDEX";b[b.CIRCLE_VERTEX=16]="CIRCLE_VERTEX";b[b.CIRCLE_INDEX=17]="CIRCLE_INDEX"})(a.MemoryBufferType||(a.MemoryBufferType={}));a.BucketType=void 0;(function(b){b[b.FILL=1]="FILL";b[b.LINE=2]="LINE";b[b.SYMBOL=3]="SYMBOL";b[b.CIRCLE=4]="CIRCLE"})(a.BucketType||(a.BucketType={}));a.DrawPhase=void 0;(function(b){b[b.BACKGROUND=0]="BACKGROUND";b[b.OPAQUE=1]="OPAQUE";b[b.TRANSLUCENT=2]="TRANSLUCENT";b[b.SYMBOLS=
3]="SYMBOLS";b[b.HITTEST=4]="HITTEST"})(a.DrawPhase||(a.DrawPhase={}));a.ShaderProgramType=void 0;(function(b){b[b.BACKGROUND=0]="BACKGROUND";b[b.FILL=1]="FILL";b[b.OUTLINE=2]="OUTLINE";b[b.LINE=3]="LINE";b[b.ICON=4]="ICON";b[b.CIRCLE=5]="CIRCLE";b[b.TEXT=6]="TEXT";b[b.TILEINFO=7]="TILEINFO"})(a.ShaderProgramType||(a.ShaderProgramType={}));a.StyleUpdateType=void 0;(function(b){b[b.PAINTER_CHANGED=0]="PAINTER_CHANGED";b[b.LAYOUT_CHANGED=1]="LAYOUT_CHANGED";b[b.LAYER_CHANGED=2]="LAYER_CHANGED";b[b.LAYER_REMOVED=
3]="LAYER_REMOVED";b[b.SPRITES_CHANGED=4]="SPRITES_CHANGED"})(a.StyleUpdateType||(a.StyleUpdateType={}));Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/WorkerTile":function(){define("../../../../chunks/_rollupPluginBabelHelpers ../../../../core/maybe ../../../../core/promiseUtils ./Placement ./TileParser ../../tiling/enums".split(" "),function(a,b,c,e,d,n){return function(){function u(h,g,k,p){this.status=n.TileStatus.INITIALIZED;
this.placementEngine=new e.PlacementEngine;this.tileKey=h;this.refKeys=g;this._workerTileHandler=k;this._styleRepository=p}var r=u.prototype;r.release=function(){this.tileKey="";this.refKeys=null;this.status=n.TileStatus.INITIALIZED;this._workerTileHandler=null};r.parse=function(){var h=a._asyncToGenerator(function*(g,k){const p=k&&k.signal;if(b.isSome(p)){const f=()=>{p.removeEventListener("abort",f);this.status=n.TileStatus.INVALID};p.addEventListener("abort",f)}const l={bucketsWithData:[],emptyBuckets:null};
try{var m=yield this._parse(g,k)}catch(f){if(c.isAbortError(f))throw f;return{result:l,transferList:[]}}this.status=n.TileStatus.READY;k=l.bucketsWithData;g=[];for(var t of m)t.hasFeatures()?(m=t.serialize(),k.push(m)):g.push(t.layer.uid);t=[...k];m=null;0<g.length&&(m=Uint32Array.from(g),t.push(m.buffer));l.emptyBuckets=m;return{result:l,transferList:t}});return function(g,k){return h.apply(this,arguments)}}();r.setObsolete=function(){this.status=n.TileStatus.INVALID};r.getLayers=function(){return this._workerTileHandler.getLayers()};
r.getWorkerTileHandler=function(){return this._workerTileHandler};r._parse=function(){var h=a._asyncToGenerator(function*(g,k){const p=g.sourceName2DataAndRefKey;if(0===Object.keys(p).length)return[];this.status=n.TileStatus.MODIFIED;return(new d(p,this,k.client,this._styleRepository,g.styleLayerUIDs)).parse(k)});return function(g,k){return h.apply(this,arguments)}}();return u}()})},"esri/views/2d/engine/vectorTiles/Placement":function(){define("exports ./GeometryUtils ./TextShaping ./decluttering/config ./style/StyleDefinition ../webgl/Geometry".split(" "),
function(a,b,c,e,d,n){let u=function(k,p,l,m,t,f=.5,q=b.C_INFINITY){this.anchor=k;this.labelAngle=p;this.glyphAngle=l;this.page=m;this.alternateVerticalGlyph=t;this.minzoom=f;this.maxzoom=q},r=function(k,p,l,m,t,f,q,v,x,z,y,A){this.tl=k;this.tr=p;this.bl=l;this.br=m;this.mosaicRect=t;this.labelAngle=f;this.minAngle=q;this.maxAngle=v;this.anchor=x;this.minzoom=z;this.maxzoom=y;this.page=A},h=function(k){this.shapes=k},g=function(){function k(){}var p=k.prototype;p.getIconPlacement=function(l,m,t){const f=
new n.Point(l.x,l.y),q=t.rotationAlignment===d.RotationAlignment.MAP,v=t.keepUpright;let x=t.rotate*b.C_DEG_TO_RAD;q&&(x+=l.angle);l=new h([]);t.allowOverlap&&t.ignorePlacement||!e.DECLUTTER_TILES||(l.iconColliders=[]);this._addIconPlacement(l,f,m,t,x);q&&v&&this._addIconPlacement(l,f,m,t,x+b.C_PI);return l};p._addIconPlacement=function(l,m,t,f,q){var v=t.pixelRatio;const x=t.width/v,z=t.height/v;var y=f.offset;let A=y[0];y=y[1];switch(f.anchor){case d.SymbolAnchor.CENTER:A-=x/2;y-=z/2;break;case d.SymbolAnchor.LEFT:y-=
z/2;break;case d.SymbolAnchor.RIGHT:A-=x;y-=z/2;break;case d.SymbolAnchor.TOP:A-=x/2;break;case d.SymbolAnchor.BOTTOM:A-=x/2;y-=z;break;case d.SymbolAnchor.BOTTOM_LEFT:y-=z;break;case d.SymbolAnchor.TOP_RIGHT:A-=x;break;case d.SymbolAnchor.BOTTOM_RIGHT:A-=x,y-=z}t=t.rect;var B=2/v,E=A-B,w=y-B,D=E+t.width/v,C=w+t.height/v;v=new n.Point(E,w);B=new n.Point(D,C);E=new n.Point(E,C);w=new n.Point(D,w);0!==q&&(D=Math.cos(q),C=Math.sin(q),v.rotate(D,C),B.rotate(D,C),E.rotate(D,C),w.rotate(D,C));t=new r(v,
w,E,B,t,q,0,256,m,.5,b.C_INFINITY,0);l.shapes.push(t);f.allowOverlap&&f.ignorePlacement||!e.DECLUTTER_TILES||(t=f.size,v=f.padding,l.iconColliders.push({xTile:m.x,yTile:m.y,dxPixels:A*t-v,dyPixels:y*t-v,hard:!f.optional,partIndex:0,width:x*t+2*v,height:z*t+2*v,angle:q,minLod:.5,maxLod:b.C_INFINITY}))};p.getTextPlacement=function(l,m,t,f){var q=new n.Point(l.x,l.y);const v=f.rotate*b.C_DEG_TO_RAD;var x=f.rotationAlignment===d.RotationAlignment.MAP;const z=f.keepUpright,y=f.padding;let A=.5;const B=
x?l.angle:0,E=0<=l.segment&&x,w=f.allowOverlap&&f.ignorePlacement?null:[],D=[],C=!E;var F=Number.POSITIVE_INFINITY;let G=Number.NEGATIVE_INFINITY,H=F,I=G;const J=E?z:x&&z,K=f.size/c.SDF_GLYPH_SIZE;let N=!1;for(var U of m)if(U.vertical){N=!0;break}let ba=0;U=0;if(!E&&N){var ka=c.TextShaping.getTextBox(m,f.lineHeight*c.SDF_GLYPH_SIZE);switch(f.anchor){case d.SymbolAnchor.LEFT:ba=ka.height/2;U=-ka.width/2;break;case d.SymbolAnchor.RIGHT:ba=-ka.height/2;U=ka.width/2;break;case d.SymbolAnchor.TOP:ba=ka.height/
2;U=ka.width/2;break;case d.SymbolAnchor.BOTTOM:ba=-ka.height/2;U=-ka.width/2;break;case d.SymbolAnchor.TOP_LEFT:ba=ka.height;break;case d.SymbolAnchor.BOTTOM_LEFT:U=-ka.width;break;case d.SymbolAnchor.TOP_RIGHT:U=ka.width;break;case d.SymbolAnchor.BOTTOM_RIGHT:ba=-ka.height}}ba+=f.offset[0]*c.SDF_GLYPH_SIZE;U+=f.offset[1]*c.SDF_GLYPH_SIZE;for(const la of m){var P=la.glyphMosaicItem;if(!P||P.rect.isEmpty)continue;m=P.rect;ka=P.metrics;var V=P.page;if(w&&C){if(void 0!==ta&&ta!==la.y){var ca=void 0,
ra=void 0;if(N){var ta=-I+ba;ca=F+U;ra=I-H;F=G-F}else ta=F+ba,ca=H+U,ra=G-F,F=I-H;w.push({xTile:l.x,yTile:l.y,dxPixels:ta*K-y,dyPixels:ca*K-y,hard:!f.optional,partIndex:1,width:ra*K+2*y,height:F*K+2*y,angle:v,minLod:.5,maxLod:b.C_INFINITY});F=Number.POSITIVE_INFINITY;G=Number.NEGATIVE_INFINITY;H=F;I=G}ta=la.y}var Ba=[];if(E){if(P=(la.x+ka.left-4+.5*P.metrics.width)*K*8,A=this._placeGlyph(l,A,P,t,l.segment,1,la.vertical,V,Ba),z&&(A=this._placeGlyph(l,A,P,t,l.segment,-1,la.vertical,V,Ba)),2<=A)break}else Ba.push(new u(q,
B,B,V,!1)),x&&z&&Ba.push(new u(q,B+b.C_PI,B+b.C_PI,V,!1));V=la.x+ka.left;P=la.y-c.SDF_GLYPH_BASELINE-ka.top;ca=V+ka.width;ra=P+ka.height;let sa,L,O,ha;!E&&N?la.vertical?(sa=new n.Point(-((P+ra)/2+ka.width/2)-4+ba,(V+ca)/2-ka.height/2-4+U),L=new n.Point(sa.x+m.width,sa.y+m.height),O=new n.Point(sa.x,L.y),ha=new n.Point(L.x,sa.y)):(sa=new n.Point(-P+4+ba,V-4+U),L=new n.Point(sa.x-m.height,sa.y+m.width),O=new n.Point(L.x,sa.y),ha=new n.Point(sa.x,L.y)):(sa=new n.Point(V-4+ba,P-4+U),L=new n.Point(sa.x+
m.width,sa.y+m.height),O=new n.Point(sa.x,L.y),ha=new n.Point(L.x,sa.y));let pa,ya,Y,ea;for(const ma of Ba){let ja,S,fa;ma.alternateVerticalGlyph?(pa||(pa=new n.Point((V+ca)/2+ba-ka.height/2-4,(P+ra)/2+U+ka.width/2+4),ya=new n.Point(pa.x+m.height,pa.y-m.width),Y=new n.Point(ya.x,pa.y),ea=new n.Point(pa.x,ya.y)),Ba=pa,ja=Y,S=ea,fa=ya):(Ba=sa,ja=O,S=ha,fa=L);const R=P,Q=ra,Z=ma.glyphAngle+v;if(0!==Z){var Ha=Math.cos(Z),da=Math.sin(Z);Ba=Ba.clone();ja=ja.clone();S=S.clone();fa=fa.clone();Ba.rotate(Ha,
da);fa.rotate(Ha,da);ja.rotate(Ha,da);S.rotate(Ha,da)}Ha=0;da=256;E&&N?la.vertical?ma.alternateVerticalGlyph?(Ha=32,da=96):(Ha=224,da=32):(Ha=224,da=96):(Ha=192,da=64);D.push(new r(Ba,S,ja,fa,m,ma.labelAngle,Ha,da,ma.anchor,ma.minzoom,ma.maxzoom,ma.page));!w||J&&!this._legible(ma.labelAngle)||(C?(V<F&&(F=V),R<H&&(H=R),ca>G&&(G=ca),Q>I&&(I=Q)):2>ma.minzoom&&w.push({xTile:l.x,yTile:l.y,dxPixels:(V+ba)*K-y,dyPixels:(R+ba)*K-y,hard:!f.optional,partIndex:1,width:(ca-V)*K+2*y,height:(Q-R)*K+2*y,angle:Z,
minLod:ma.minzoom,maxLod:ma.maxzoom}))}}if(2<=A)return null;w&&C&&(N?(t=-I+ba,q=F+U,x=I-H,F=G-F):(t=F+ba,q=H+U,x=G-F,F=I-H),w.push({xTile:l.x,yTile:l.y,dxPixels:t*K-y,dyPixels:q*K-y,hard:!f.optional,partIndex:1,width:x*K+2*y,height:F*K+2*y,angle:v,minLod:.5,maxLod:b.C_INFINITY}));l=new h(D);w&&0<w.length&&(l.textColliders=w);return l};p._legible=function(l){l=b.radToByte(l);return 65>l||193<=l};p._placeGlyph=function(l,m,t,f,q,v,x,z,y){const A=0>v?b.positiveMod(l.angle+b.C_PI,b.C_2PI):l.angle;let B=
0;0>t&&(v*=-1,t*=-1,B=b.C_PI);0<v&&++q;l=new n.Point(l.x,l.y);let E=f[q];var w=b.C_INFINITY;if(f.length<=q)return w;for(;;){var D=E.x-l.x,C=E.y-l.y;const F=Math.sqrt(D*D+C*C),G=Math.max(t/F,m);D=b.positiveMod(Math.atan2(C/F,D/F)+B,b.C_2PI);y.push(new u(l,A,D,z,!1,G,w));x&&y.push(new u(l,A,D,z,!0,G,w));if(G<=m)return G;l=E.clone();do{q+=v;if(f.length<=q||0>q)return G;E=f[q]}while(l.isEqual(E));w=E.x-l.x;D=E.y-l.y;C=Math.sqrt(w*w+D*D);w*=F/C;D*=F/C;l.x-=w;l.y-=D;w=G}};return k}();a.Anchor=function(k,
p,l=0,m=-1,t=.5){this.x=k;this.y=p;this.angle=l;this.segment=m;this.minzoom=t};a.PlacedSymbol=r;a.Placement=h;a.PlacementEngine=g;a.TILE_COORD_SIZE=4096;a.TILE_PIXEL_RATIO=8;a.TILE_PIXEL_SIZE=512;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/GeometryUtils":function(){define(["exports"],function(a){function b(r,h){r%=h;return 0<=r?r:r+h}const c=Number.POSITIVE_INFINITY,e=Math.PI,d=128/e,n=256/360,u=1/Math.LN2;a.C_256_TO_RAD=
e/128;a.C_2PI=2*e;a.C_DEG_TO_256=n;a.C_DEG_TO_RAD=e/180;a.C_INFINITY=c;a.C_PI=e;a.C_PI_BY_2=e/2;a.C_RAD_TO_256=d;a.C_SQRT2=1.414213562;a.C_SQRT2_INV=1/1.414213562;a.between=function(r,h,g){return r>=h&&r<=g||r>=g&&r<=h};a.degToByte=function(r){return b(r*n,256)};a.interpolate=function(r,h,g){return r*(1-g)+h*g};a.log2=function(r){return Math.log(r)*u};a.positiveMod=b;a.radToByte=function(r){return b(r*d,256)};a.sqr=function(r){return r*r};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/2d/engine/vectorTiles/TextShaping":function(){define(["exports","./ScriptUtils","../webgl/Rect"],function(a,b,c){let e=function(){function d(u,r,h,g,k,p,l){this._glyphItems=u;this._maxWidth=r;this._lineHeight=h;this._letterSpacing=g;this._hAnchor=k;this._vAnchor=p;this._justify=l}var n=d.prototype;n.getShaping=function(u,r,h){var g=this._letterSpacing;const k=this._lineHeight;var p=this._justify,l=this._maxWidth;const m=[];var t=0,f=0,q=u.length;for(var v=0;v<q;v++){var x=u.charCodeAt(v),
z=h&&b.hasVerticalOrientation(x);let y;for(const A of this._glyphItems)if(y=A[x])break;m.push({codePoint:x,x:t,y:f,vertical:z,glyphMosaicItem:y});y&&(t+=y.metrics.advance+g)}h=t;0<l&&(h=t/Math.max(1,Math.ceil(t/l)));u=u.includes("\u200b");l=[];for(g=0;g<q-1;g++)if(x=m[g].codePoint,z=b.allowsIdeographicBreak(x),b.isLineBreak(x)||z){v=0;if(10===x)v-=1E4;else if(z&&u)v+=150;else{if(40===x||65288===x)v+=50;x=m[g+1].codePoint;if(41===x||65289===x)v+=50}l.push(this._buildBreak(g+1,m[g].x,h,l,v,!1))}q=this._optimalBreaks(this._buildBreak(q,
t,h,l,0,!0));t=0;u=r?-k:k;g=0;for(l=0;l<q.length;l++){for(h=q[l];g<h&&b.isWhiteSpace(m[g].codePoint);)m[g].glyphMosaicItem=null,++g;for(v=h-1;v>g&&b.isWhiteSpace(m[v].codePoint);)m[v].glyphMosaicItem=null,--v;if(g<=v){x=m[g].x;for(z=g;z<=v;z++)m[z].x-=x,m[z].y=f;x=m[v].x;m[v].glyphMosaicItem&&(x+=m[v].glyphMosaicItem.metrics.advance);t=Math.max(x,t);p&&this._applyJustification(m,g,v)}g=h;f+=u}if(0<m.length){f=q.length-1;p=(p-this._hAnchor)*t;t=(-this._vAnchor*(f+1)+.5)*k;r&&f&&(t+=f*k);for(const y of m)y.x+=
p,y.y+=t}return m.filter(y=>y.glyphMosaicItem)};d.getTextBox=function(u,r){if(!u.length)return null;let h=Infinity,g=Infinity,k=0,p=0;for(const l of u){u=l.x;const m=l.y-17,t=u+l.glyphMosaicItem.metrics.advance,f=m+r;h=Math.min(h,u);k=Math.max(k,t);g=Math.min(g,m);p=Math.max(p,f)}return{x:h,y:g,width:k-h,height:p-g}};d.getBox=function(u){if(!u.length)return null;let r=Infinity,h=Infinity,g=0,k=0;for(const p of u){const {height:l,left:m,top:t,width:f}=p.glyphMosaicItem.metrics;u=p.x;const q=p.y-(l-
Math.abs(t)),v=u+f+m,x=q+l;r=Math.min(r,u);g=Math.max(g,v);h=Math.min(h,q);k=Math.max(k,x)}return{x:r,y:h,width:g-r,height:k-h}};d.addDecoration=function(u,r){var h=u.length;if(0!==h){var g=u[0].x+u[0].glyphMosaicItem.metrics.left,k=u[0].y;for(let p=1;p<h;p++){const l=u[p];if(l.y!==k){const m=u[p-1].x+u[p-1].glyphMosaicItem.metrics.left+u[p-1].glyphMosaicItem.metrics.width;u.push({codePoint:0,x:g,y:k+r-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new c(4,0,4,8),metrics:{width:m-g,height:8,left:0,top:0,
advance:0},page:0,code:0}});k=l.y;g=l.x+l.glyphMosaicItem.metrics.left}}h=u[h-1].x+u[h-1].glyphMosaicItem.metrics.left+u[h-1].glyphMosaicItem.metrics.width;u.push({codePoint:0,x:g,y:k+r-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new c(4,0,4,8),metrics:{width:h-g,height:8,left:0,top:0,advance:0},page:0,code:0}})}};n._breakScore=function(u,r,h,g){const k=(u-r)*(u-r);return g?u<r?k/2:2*k:k+Math.abs(h)*h};n._buildBreak=function(u,r,h,g,k,p){let l=null,m=this._breakScore(r,h,k,p);for(const t of g)g=this._breakScore(r-
t.x,h,k,p)+t.score,g<=m&&(l=t,m=g);return{index:u,x:r,score:m,previousBreak:l}};n._optimalBreaks=function(u){return u?this._optimalBreaks(u.previousBreak).concat(u.index):[]};n._applyJustification=function(u,r,h){var g=u[h];for(g=(g.x+(g.vertical?24:g.glyphMosaicItem?g.glyphMosaicItem.metrics.advance:0))*this._justify;r<=h;r++)u[r].x-=g};return d}();a.SDF_GLYPH_BASELINE=17;a.SDF_GLYPH_SIZE=24;a.TextShaping=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/2d/engine/vectorTiles/ScriptUtils":function(){define(["exports"],function(a){a.allowsIdeographicBreak=function(b){return 11904>b?!1:12704<=b&&12735>=b||12544<=b&&12591>=b||65072<=b&&65103>=b||63744<=b&&64255>=b||13056<=b&&13311>=b||11904<=b&&12031>=b||12736<=b&&12783>=b||12288<=b&&12351>=b||13312<=b&&19903>=b||19968<=b&&40959>=b||12800<=b&&13055>=b||65280<=b&&65519>=b||12352<=b&&12447>=b||12272<=b&&12287>=b||12032<=b&&12255>=b||12784<=b&&12799>=b||12448<=b&&12543>=b||65040<=b&&65055>=
b||42128<=b&&42191>=b||40960<=b&&42127>=b?!0:!1};a.hasVerticalOrientation=function(b){return 746===b||747===b?!0:4352>b?!1:12704<=b&&12735>=b||12544<=b&&12591>=b||65072<=b&&65103>=b&&!(65097<=b&&65103>=b)||63744<=b&&64255>=b||13056<=b&&13311>=b||11904<=b&&12031>=b||12736<=b&&12783>=b||12288<=b&&12351>=b&&!(12296<=b&&12305>=b||12308<=b&&12319>=b)&&12336!==b||13312<=b&&19903>=b||19968<=b&&40959>=b||12800<=b&&13055>=b||12592<=b&&12687>=b||43360<=b&&43391>=b||55216<=b&&55295>=b||4352<=b&&4607>=b||44032<=
b&&55215>=b||12352<=b&&12447>=b||12272<=b&&12287>=b||12688<=b&&12703>=b||12032<=b&&12255>=b||12784<=b&&12799>=b||12448<=b&&12543>=b&&12540!==b||65280<=b&&65519>=b&&!(65288===b||65289===b||65293===b||65306<=b&&65310>=b||65339===b||65341===b||65343===b||65371<=b&&65503>=b||65507===b||65512<=b&&65519>=b)||65104<=b&&65135>=b&&!(65112<=b&&65118>=b||65123<=b&&65126>=b)||5120<=b&&5759>=b||6320<=b&&6399>=b||65040<=b&&65055>=b||19904<=b&&19967>=b||40960<=b&&42127>=b||42128<=b&&42191>=b?!0:!1};a.isLineBreak=
function(b){switch(b){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1};a.isWhiteSpace=function(b){switch(b){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/webgl/Rect":function(){define(["../../../../chunks/_rollupPluginBabelHelpers"],function(a){return function(){function b(c=
0,e=0,d=0,n=0){this.x=c;this.y=e;this.width=d;this.height=n}b.prototype.union=function(c){this.x=Math.min(this.x,c.x);this.y=Math.min(this.y,c.y);this.width=Math.max(this.width,c.width);this.height=Math.max(this.height,c.height)};a._createClass(b,[{key:"isEmpty",get:function(){return 0>=this.width||0>=this.height}}]);return b}()})},"esri/views/2d/engine/vectorTiles/decluttering/config":function(){define(["exports"],function(a){a.COLLISION_GRID_CELL_SIZE=32;a.DECLUTTER_BUDGET=1.5;a.DECLUTTER_TILES=
!0;a.FADE_DURATION=200;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/style/StyleDefinition":function(){define(["exports","../../../../../symbols/cim/enums"],function(a,b){a.StyleLayerType=void 0;(function(e){e[e.BACKGROUND=0]="BACKGROUND";e[e.FILL=1]="FILL";e[e.LINE=2]="LINE";e[e.SYMBOL=3]="SYMBOL";e[e.CIRCLE=4]="CIRCLE"})(a.StyleLayerType||(a.StyleLayerType={}));a.Visibility=void 0;(function(e){e[e.VISIBLE=0]="VISIBLE";
e[e.NONE=1]="NONE"})(a.Visibility||(a.Visibility={}));a.SymbolPlacement=void 0;(function(e){e[e.POINT=0]="POINT";e[e.LINE=1]="LINE";e[e.LINE_CENTER=2]="LINE_CENTER"})(a.SymbolPlacement||(a.SymbolPlacement={}));a.RotationAlignment=void 0;(function(e){e[e.MAP=0]="MAP";e[e.VIEWPORT=1]="VIEWPORT";e[e.AUTO=2]="AUTO"})(a.RotationAlignment||(a.RotationAlignment={}));a.TextJustification=void 0;(function(e){e[e.AUTO=0]="AUTO";e[e.LEFT=1]="LEFT";e[e.CENTER=2]="CENTER";e[e.RIGHT=3]="RIGHT"})(a.TextJustification||
(a.TextJustification={}));a.SymbolAnchor=void 0;(function(e){e[e.CENTER=0]="CENTER";e[e.LEFT=1]="LEFT";e[e.RIGHT=2]="RIGHT";e[e.TOP=3]="TOP";e[e.BOTTOM=4]="BOTTOM";e[e.TOP_LEFT=5]="TOP_LEFT";e[e.TOP_RIGHT=6]="TOP_RIGHT";e[e.BOTTOM_LEFT=7]="BOTTOM_LEFT";e[e.BOTTOM_RIGHT=8]="BOTTOM_RIGHT"})(a.SymbolAnchor||(a.SymbolAnchor={}));a.TextTransform=void 0;(function(e){e[e.NONE=0]="NONE";e[e.UPPERCASE=1]="UPPERCASE";e[e.LOWERCASE=2]="LOWERCASE"})(a.TextTransform||(a.TextTransform={}));a.TranslateAnchor=void 0;
(function(e){e[e.MAP=0]="MAP";e[e.VIEWPORT=1]="VIEWPORT"})(a.TranslateAnchor||(a.TranslateAnchor={}));a.TextWritingMode=void 0;(function(e){e[e.HORIZONTAL=0]="HORIZONTAL";e[e.VERTICAL=1]="VERTICAL"})(a.TextWritingMode||(a.TextWritingMode={}));let c=function(){};c.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:a.Visibility.VISIBLE}};c.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:a.Visibility.VISIBLE}};c.lineLayoutDefinition=
{visibility:{type:"enum",values:["visible","none"],default:a.Visibility.VISIBLE},"line-cap":{type:"enum",values:["butt","round","square"],default:b.CapType.BUTT},"line-join":{type:"enum",values:["bevel","round","miter"],default:b.JoinType.MITER},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}};c.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:a.Visibility.VISIBLE},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",
values:["point","line","line-center"],default:a.SymbolPlacement.POINT},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:"center left right top bottom top-left top-right bottom-left bottom-right".split(" "),default:a.SymbolAnchor.CENTER},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",
value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:a.RotationAlignment.AUTO},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:"center left right top bottom top-left top-right bottom-left bottom-right".split(" "),default:a.SymbolAnchor.CENTER},
"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:a.TextJustification.CENTER},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",
minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:a.RotationAlignment.AUTO},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:a.TextTransform.NONE},"text-writing-mode":{type:"array",
value:"enum",values:["horizontal","vertical"],default:[a.TextWritingMode.HORIZONTAL]}};c.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:a.Visibility.VISIBLE}};c.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}};c.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",
minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:a.TranslateAnchor.MAP}};c.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},
"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:a.TranslateAnchor.MAP},"line-width":{type:"number",minimum:0,default:1}};c.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",
default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:a.TranslateAnchor.MAP},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},
"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:a.TranslateAnchor.MAP}};c.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",
minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}};c.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,
maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:a.TranslateAnchor.MAP}};a.StyleDefinition=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/symbols/cim/enums":function(){define(["exports"],function(a){a.CapType=void 0;(function(b){b[b.BUTT=0]="BUTT";b[b.ROUND=1]="ROUND";b[b.SQUARE=
2]="SQUARE";b[b.UNKNOWN=4]="UNKNOWN"})(a.CapType||(a.CapType={}));a.JoinType=void 0;(function(b){b[b.BEVEL=0]="BEVEL";b[b.ROUND=1]="ROUND";b[b.MITER=2]="MITER";b[b.UNKNOWN=4]="UNKNOWN"})(a.JoinType||(a.JoinType={}));a.Alignment=void 0;(function(b){b[b.SCREEN=0]="SCREEN";b[b.MAP=1]="MAP"})(a.Alignment||(a.Alignment={}));a.ExternalColorMixMode=void 0;(function(b){b[b.Tint=0]="Tint";b[b.Ignore=1]="Ignore";b[b.Multiply=99]="Multiply"})(a.ExternalColorMixMode||(a.ExternalColorMixMode={}));a.ExtremityPlacement=
void 0;(function(b){b.Both="Both";b.JustBegin="JustBegin";b.JustEnd="JustEnd";b.None="None"})(a.ExtremityPlacement||(a.ExtremityPlacement={}));a.FillMode=void 0;(function(b){b[b.Mosaic=0]="Mosaic";b[b.Centered=1]="Centered"})(a.FillMode||(a.FillMode={}));a.FontEffects=void 0;(function(b){b[b.Normal=0]="Normal";b[b.Superscript=1]="Superscript";b[b.Subscript=2]="Subscript"})(a.FontEffects||(a.FontEffects={}));a.FontEncoding=void 0;(function(b){b[b.MSSymbol=0]="MSSymbol";b[b.Unicode=1]="Unicode"})(a.FontEncoding||
(a.FontEncoding={}));a.FontType=void 0;(function(b){b[b.Unspecified=0]="Unspecified";b[b.TrueType=1]="TrueType";b[b.PSOpenType=2]="PSOpenType";b[b.TTOpenType=3]="TTOpenType";b[b.Type1=4]="Type1"})(a.FontType||(a.FontType={}));a.AngleAlignment=void 0;(function(b){b[b.Display=0]="Display";b[b.Map=1]="Map"})(a.AngleAlignment||(a.AngleAlignment={}));a.AnimatedSymbolRepeatType=void 0;(function(b){b.None="None";b.Loop="Loop";b.Oscillate="Oscillate"})(a.AnimatedSymbolRepeatType||(a.AnimatedSymbolRepeatType=
{}));a.DominantSizeAxis=void 0;(function(b){b[b.Z=0]="Z";b[b.X=1]="X";b[b.Y=2]="Y"})(a.DominantSizeAxis||(a.DominantSizeAxis={}));a.RotationOrder=void 0;(function(b){b[b.XYZ=0]="XYZ";b[b.ZXY=1]="ZXY";b[b.YXZ=2]="YXZ"})(a.RotationOrder||(a.RotationOrder={}));a.BalloonCalloutStyle=void 0;(function(b){b[b.Rectangle=0]="Rectangle";b[b.RoundedRectangle=1]="RoundedRectangle";b[b.Oval=2]="Oval"})(a.BalloonCalloutStyle||(a.BalloonCalloutStyle={}));a.BlendingMode=void 0;(function(b){b[b.None=0]="None";b[b.Alpha=
1]="Alpha";b[b.Screen=2]="Screen";b[b.Multiply=3]="Multiply";b[b.Add=4]="Add"})(a.BlendingMode||(a.BlendingMode={}));a.BlockProgression=void 0;(function(b){b[b.TTB=0]="TTB";b[b.RTL=1]="RTL";b[b.BTT=2]="BTT"})(a.BlockProgression||(a.BlockProgression={}));a.BillBoardMode=void 0;(function(b){b[b.None=0]="None";b[b.SignPost=1]="SignPost";b[b.FaceNearPlane=2]="FaceNearPlane"})(a.BillBoardMode||(a.BillBoardMode={}));a.CGAAttributeType=void 0;(function(b){b[b.Float=0]="Float";b[b.String=1]="String";b[b.Boolean=
2]="Boolean"})(a.CGAAttributeType||(a.CGAAttributeType={}));a.ClippingType=void 0;(function(b){b[b.Intersect=0]="Intersect";b[b.Subtract=1]="Subtract"})(a.ClippingType||(a.ClippingType={}));a.GeometricEffectArrowType=void 0;(function(b){b.OpenEnded="OpenEnded";b.Block="Block";b.Crossed="Crossed"})(a.GeometricEffectArrowType||(a.GeometricEffectArrowType={}));a.GeometricEffectControlMeasureLineRule=void 0;(function(b){b.FullGeometry="FullGeometry";b.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment";
b.ReversedFirstSegment="ReversedFirstSegment";b.PerpendicularToSecondSegment="PerpendicularToSecondSegment";b.SecondSegmentWithTicks="SecondSegmentWithTicks";b.DoublePerpendicular="DoublePerpendicular";b.OppositeToFirstSegment="OppositeToFirstSegment";b.TriplePerpendicular="TriplePerpendicular";b.HalfCircleFirstSegment="HalfCircleFirstSegment";b.HalfCircleSecondSegment="HalfCircleSecondSegment";b.HalfCircleExtended="HalfCircleExtended";b.OpenCircle="OpenCircle";b.CoverageEdgesWithTicks="CoverageEdgesWithTicks";
b.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks";b.GapExtentMidline="GapExtentMidline";b.Chevron="Chevron";b.PerpendicularWithArc="PerpendicularWithArc";b.ClosedHalfCircle="ClosedHalfCircle";b.TripleParallelExtended="TripleParallelExtended";b.ParallelWithTicks="ParallelWithTicks";b.Parallel="Parallel";b.PerpendicularToFirstSegment="PerpendicularToFirstSegment";b.ParallelOffset="ParallelOffset";b.OffsetOpposite="OffsetOpposite";b.OffsetSame="OffsetSame";b.CircleWithArc="CircleWithArc";b.DoubleJog=
"DoubleJog";b.PerpendicularOffset="PerpendicularOffset";b.LineExcludingLastSegment="LineExcludingLastSegment";b.MultivertexArrow="MultivertexArrow";b.CrossedArrow="CrossedArrow";b.ChevronArrow="ChevronArrow";b.ChevronArrowOffset="ChevronArrowOffset";b.PartialFirstSegment="PartialFirstSegment";b.Arch="Arch";b.CurvedParallelTicks="CurvedParallelTicks";b.Arc90Degrees="Arc90Degrees"})(a.GeometricEffectControlMeasureLineRule||(a.GeometricEffectControlMeasureLineRule={}));a.GeometricEffectDonutMethod=void 0;
(function(b){b.Mitered="Mitered";b.Bevelled="Bevelled";b.Rounded="Rounded";b.Square="Square";b.TrueBuffer="TrueBuffer"})(a.GeometricEffectDonutMethod||(a.GeometricEffectDonutMethod={}));a.GeometricEffectEnclosingPolygonMethod=void 0;(function(b){b.ClosePath="ClosePath";b.ConvexHull="ConvexHull";b.RectangularBox="RectangularBox"})(a.GeometricEffectEnclosingPolygonMethod||(a.GeometricEffectEnclosingPolygonMethod={}));a.GeometricEffectExtensionOrigin=void 0;(function(b){b.BeginningOfLine="BeginningOfLine";
b.EndOfLine="EndOfLine"})(a.GeometricEffectExtensionOrigin||(a.GeometricEffectExtensionOrigin={}));a.GeometricEffectOffsetMethod=void 0;(function(b){b.Mitered="Mitered";b.Bevelled="Bevelled";b.Rounded="Rounded";b.Square="Square"})(a.GeometricEffectOffsetMethod||(a.GeometricEffectOffsetMethod={}));a.GeometricEffectOffsetOption=void 0;(function(b){b.Fast="Fast";b.Accurate="Accurate"})(a.GeometricEffectOffsetOption||(a.GeometricEffectOffsetOption={}));a.GeometricEffectOffsetTangentMethod=void 0;(function(b){b.BeginningOfLine=
"BeginningOfLine";b.EndOfLine="EndOfLine"})(a.GeometricEffectOffsetTangentMethod||(a.GeometricEffectOffsetTangentMethod={}));a.GeometricEffectWaveform=void 0;(function(b){b.Sinus="Sinus";b.Square="Square";b.Triangle="Triangle";b.Random="Random"})(a.GeometricEffectWaveform||(a.GeometricEffectWaveform={}));a.GlyphHinting=void 0;(function(b){b[b.None=0]="None";b[b.Default=1]="Default";b[b.Force=2]="Force"})(a.GlyphHinting||(a.GlyphHinting={}));a.GradientAlignment=void 0;(function(b){b[b.Buffered=0]=
"Buffered";b[b.Left=1]="Left";b[b.Right=2]="Right";b[b.AlongLine=3]="AlongLine"})(a.GradientAlignment||(a.GradientAlignment={}));a.GradientFillMethod=void 0;(function(b){b[b.Linear=0]="Linear";b[b.Rectangular=1]="Rectangular";b[b.Circular=2]="Circular";b[b.Buffered=3]="Buffered"})(a.GradientFillMethod||(a.GradientFillMethod={}));a.GradientStrokeType=void 0;(function(b){b[b.Discrete=0]="Discrete";b[b.Continuous=1]="Continuous"})(a.GradientStrokeType||(a.GradientStrokeType={}));a.GradientStrokeMethod=
void 0;(function(b){b[b.AcrossLine=0]="AcrossLine";b[b.AloneLine=1]="AloneLine"})(a.GradientStrokeMethod||(a.GradientStrokeMethod={}));a.HorizontalAlignment=void 0;(function(b){b[b.Left=0]="Left";b[b.Right=1]="Right";b[b.Center=2]="Center";b[b.Justify=3]="Justify"})(a.HorizontalAlignment||(a.HorizontalAlignment={}));a.LeaderLineStyle=void 0;(function(b){b[b.Base=0]="Base";b[b.MidPoint=1]="MidPoint";b[b.ThreePoint=2]="ThreePoint";b[b.FourPoint=3]="FourPoint";b[b.Underline=4]="Underline";b[b.CircularCW=
5]="CircularCW";b[b.CircularCCW=6]="CircularCCW"})(a.LeaderLineStyle||(a.LeaderLineStyle={}));a.LineCapStyle=void 0;(function(b){b.Butt="Butt";b.Round="Round";b.Square="Square"})(a.LineCapStyle||(a.LineCapStyle={}));a.LineDashEnding=void 0;(function(b){b.NoConstraint="NoConstraint";b.HalfPattern="HalfPattern";b.HalfGap="HalfGap";b.FullPattern="FullPattern";b.FullGap="FullGap";b.Custom="Custom"})(a.LineDashEnding||(a.LineDashEnding={}));a.LineDecorationStyle=void 0;(function(b){b[b.None=-1]="None";
b[b.Custom=0]="Custom";b[b.Circle=1]="Circle";b[b.OpenArrow=2]="OpenArrow";b[b.ClosedArrow=3]="ClosedArrow";b[b.Diamond=4]="Diamond"})(a.LineDecorationStyle||(a.LineDecorationStyle={}));a.LineGapType=void 0;(function(b){b[b.ExtraLeading=0]="ExtraLeading";b[b.Multiple=1]="Multiple";b[b.Exact=2]="Exact"})(a.LineGapType||(a.LineGapType={}));a.LineJoinStyle=void 0;(function(b){b.Bevel="Bevel";b.Round="Round";b.Miter="Miter"})(a.LineJoinStyle||(a.LineJoinStyle={}));a.ExpressionReturnType=void 0;(function(b){b[b.Default=
0]="Default";b[b.String=1]="String";b[b.Numeric=2]="Numeric"})(a.ExpressionReturnType||(a.ExpressionReturnType={}));a.MarkerPlacementType=void 0;(function(b){b[b.InsidePolygon=0]="InsidePolygon";b[b.PolygonCenter=1]="PolygonCenter";b[b.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"})(a.MarkerPlacementType||(a.MarkerPlacementType={}));a.MaterialMode=void 0;(function(b){b[b.Tint=0]="Tint";b[b.Replace=1]="Replace";b[b.Multiply=2]="Multiply"})(a.MaterialMode||(a.MaterialMode={}));a.PlacementClip=void 0;
(function(b){b[b.ClipAtBoundary=0]="ClipAtBoundary";b[b.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary";b[b.DoNotTouchBoundary=2]="DoNotTouchBoundary";b[b.DoNotClip=3]="DoNotClip"})(a.PlacementClip||(a.PlacementClip={}));a.PlacementEndings=void 0;(function(b){b.NoConstraint="NoConstraint";b.WithMarkers="WithMarkers";b.WithFullGap="WithFullGap";b.WithHalfGap="WithHalfGap";b.Custom="Custom"})(a.PlacementEndings||(a.PlacementEndings={}));a.PlacementGridType=void 0;(function(b){b.Fixed=
"Fixed";b.Random="Random";b.RandomFixedQuantity="RandomFixedQuantity"})(a.PlacementGridType||(a.PlacementGridType={}));a.PlacementOnLineRelativeTo=void 0;(function(b){b.LineMiddle="LineMiddle";b.LineBeginning="LineBeginning";b.LineEnd="LineEnd";b.SegmentMidpoint="SegmentMidpoint"})(a.PlacementOnLineRelativeTo||(a.PlacementOnLineRelativeTo={}));a.PlacementPolygonCenterMethod=void 0;(function(b){b.OnPolygon="OnPolygon";b.CenterOfMass="CenterOfMass";b.BoundingBoxCenter="BoundingBoxCenter"})(a.PlacementPolygonCenterMethod||
(a.PlacementPolygonCenterMethod={}));a.PlacementRandomlyAlongLineRandomization=void 0;(function(b){b[b.Low=0]="Low";b[b.Medium=1]="Medium";b[b.High=2]="High"})(a.PlacementRandomlyAlongLineRandomization||(a.PlacementRandomlyAlongLineRandomization={}));a.PlacementStepPosition=void 0;(function(b){b[b.MarkerCenter=0]="MarkerCenter";b[b.MarkerBounds=1]="MarkerBounds"})(a.PlacementStepPosition||(a.PlacementStepPosition={}));a.PointSymbolCalloutScale=void 0;(function(b){b[b.None=0]="None";b[b.PropUniform=
1]="PropUniform";b[b.PropNonuniform=2]="PropNonuniform";b[b.DifUniform=3]="DifUniform";b[b.DifNonuniform=4]="DifNonuniform"})(a.PointSymbolCalloutScale||(a.PointSymbolCalloutScale={}));a.Simple3DLineStyle=void 0;(function(b){b.Tube="Tube";b.Strip="Strip";b.Wall="Wall"})(a.Simple3DLineStyle||(a.Simple3DLineStyle={}));a.SizeVariationMethod=void 0;(function(b){b[b.Random=0]="Random";b[b.Increasing=1]="Increasing";b[b.Decreasing=2]="Decreasing";b[b.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"})(a.SizeVariationMethod||
(a.SizeVariationMethod={}));a.SymbolUnits=void 0;(function(b){b[b.Relative=0]="Relative";b[b.Absolute=1]="Absolute"})(a.SymbolUnits||(a.SymbolUnits={}));a.TextCase=void 0;(function(b){b[b.Normal=0]="Normal";b[b.LowerCase=1]="LowerCase";b[b.Allcaps=2]="Allcaps"})(a.TextCase||(a.TextCase={}));a.TextReadingDirection=void 0;(function(b){b[b.LTR=0]="LTR";b[b.RTL=1]="RTL"})(a.TextReadingDirection||(a.TextReadingDirection={}));a.TextureFilter=void 0;(function(b){b.Draft="Draft";b.Picture="Picture";b.Text=
"Text"})(a.TextureFilter||(a.TextureFilter={}));a.VerticalAlignment=void 0;(function(b){b[b.Top=0]="Top";b[b.Center=1]="Center";b[b.Baseline=2]="Baseline";b[b.Bottom=3]="Bottom"})(a.VerticalAlignment||(a.VerticalAlignment={}));a.VerticalGlyphOrientation=void 0;(function(b){b[b.Right=0]="Right";b[b.Upright=1]="Upright"})(a.VerticalGlyphOrientation||(a.VerticalGlyphOrientation={}));a.WaterbodySize=void 0;(function(b){b[b.Small=0]="Small";b[b.Medium=1]="Medium";b[b.Large=2]="Large"})(a.WaterbodySize||
(a.WaterbodySize={}));a.WaveStrength=void 0;(function(b){b[b.Calm=0]="Calm";b[b.Rippled=1]="Rippled";b[b.Slight=2]="Slight";b[b.Moderate=3]="Moderate"})(a.WaveStrength||(a.WaveStrength={}));Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/webgl/Geometry":function(){define(["exports"],function(a){let b=function(){function c(d,n){this.x=d;this.y=n}var e=c.prototype;e.clone=function(){return new c(this.x,this.y)};e.equals=function(d,n){return d===
this.x&&n===this.y};e.isEqual=function(d){return d.x===this.x&&d.y===this.y};e.setCoords=function(d,n){this.x=d;this.y=n};e.normalize=function(){var d=this.x;const n=this.y;d=Math.sqrt(d*d+n*n);this.x/=d;this.y/=d};e.rightPerpendicular=function(){const d=this.x;this.x=this.y;this.y=-d};e.move=function(d,n){this.x+=d;this.y+=n};e.assign=function(d){this.x=d.x;this.y=d.y};e.assignAdd=function(d,n){this.x=d.x+n.x;this.y=d.y+n.y};e.assignSub=function(d,n){this.x=d.x-n.x;this.y=d.y-n.y};e.rotate=function(d,
n){const u=this.x,r=this.y;this.x=u*d-r*n;this.y=u*n+r*d};e.scale=function(d){this.x*=d;this.y*=d};e.length=function(){const d=this.x,n=this.y;return Math.sqrt(d*d+n*n)};c.distance=function(d,n){const u=n.x-d.x;d=n.y-d.y;return Math.sqrt(u*u+d*d)};c.add=function(d,n){return new c(d.x+n.x,d.y+n.y)};c.sub=function(d,n){return new c(d.x-n.x,d.y-n.y)};return c}();a.GeometryType=void 0;(function(c){c[c.Unknown=0]="Unknown";c[c.Point=1]="Point";c[c.LineString=2]="LineString";c[c.Polygon=3]="Polygon"})(a.GeometryType||
(a.GeometryType={}));a.Point=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/TileParser":function(){define("../../../../chunks/_rollupPluginBabelHelpers ../../../../core/pbf ../../../../core/promiseUtils ../../../../geometry/libtess ./Feature ./IndexMemoryBuffer ./SourceLayerData ./VertexMemoryBuffer ./buckets/CircleBucket ./buckets/FillBucket ./buckets/LineBucket ./buckets/SymbolBucket ./style/StyleDefinition ../webgl/TileClipper ../../tiling/enums".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t){return function(){function f(v,x,z,y,A){this._pbfTiles={};this._tileClippers={};this._client=z;this._tile=x;if(A){this._styleLayerUIDs=new Set;for(const D of A)this._styleLayerUIDs.add(D)}this._styleRepository=y;this._layers=this._styleRepository.layers;const [B,E,w]=x.tileKey.split("/").map(parseFloat);this._level=B;x=8+Math.max(5*(this._level-14),0);for(const D of Object.keys(v))z=v[D],this._pbfTiles[D]=new b(new Uint8Array(z.protobuff),new DataView(z.protobuff)),
z.refKey&&([z]=z.refKey.split("/").map(parseFloat),z=B-z,0<z&&(y=(1<<z)-1,this._tileClippers[D]=new m.TileClipper(z,E&y,w&y,8,x))),this._tileClippers[D]||(this._tileClippers[D]=new m.SimpleBuilder)}var q=f.prototype;q._canParseStyleLayer=function(v){return!this._styleLayerUIDs||this._styleLayerUIDs.has(v)};q.parse=function(){var v=a._asyncToGenerator(function*(x){const z=e.loadLibtess(),y=this._initialize(x),{returnedBuckets:A}=y;this._processLayers(y);this._linkReferences(y);this._filterFeatures(y);
const B=[],E=new Set,w=(C,F)=>{E.has(C)||(B.push({name:C,repeat:F}),E.add(C))},D={};for(const C of A)C.getResources(C.tileClipper,w,D);if(this._tile.status===t.TileStatus.INVALID)return[];x=this._fetchResources(B,D,x);return Promise.all([...x,z]).then(()=>this._processFeatures(y.returnedBuckets))});return function(x){return v.apply(this,arguments)}}();q._initialize=function(v){v=v&&v.signal;const x=this._parseTileData(this._pbfTiles),z=this._layers,y=this._level,A=this._tileClippers,B=new Map;return{signal:v,
sourceNameToTileData:x,layers:z,zoom:y,sourceNameToTileClipper:A,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:B}};q._processLayers=function(v){const {sourceNameToTileData:x,layers:z,zoom:y,sourceNameToTileClipper:A,sourceNameToUniqueSourceLayerBuckets:B,sourceNameToUniqueSourceLayers:E,returnedBuckets:w,layerIdToBucket:D,referencerUIDToReferencedId:C}=v;for(v=z.length-1;0<=v;v--){const I=z[v];if(!this._canParseStyleLayer(I.uid)||
I.minzoom&&y<Math.floor(I.minzoom)||I.maxzoom&&y>=I.maxzoom||I.type===l.StyleLayerType.BACKGROUND)continue;if(!x[I.source]||!A[I.source])continue;var F=A[I.source];const J=I.sourceLayer;var G=x[I.source][J];if(G){var H=E[I.source];H||(H=E[I.source]=new Set);H.add(I.sourceLayer);if(I.refLayerId)C.set(I.uid,I.refLayerId);else if(H=this._createBucket(I))H.layerUIDs=[I.uid],H.layerExtent=G.extent,H.tileClipper=F,(F=B[I.source])||(F=B[I.source]={}),(G=F[J])||(G=F[J]=[]),G.push(H),w.push(H),D[I.id]=H}}};
q._linkReferences=function(v){const {layerIdToBucket:x,referencerUIDToReferencedId:z}=v;z.forEach((y,A)=>{x[y]&&x[y].layerUIDs.push(A)})};q._filterFeatures=function(v){const {signal:x,sourceNameToTileData:z,sourceNameToUniqueSourceLayerBuckets:y,sourceNameToUniqueSourceLayers:A}=v;v=10*this._level;const B=10*(this._level+1),E=[],w=[];for(const G of Object.keys(A))A[G].forEach(H=>{E.push(H);w.push(G)});for(let G=0;G<E.length;G++){var D=w[G],C=E[G];if(!z[D]||!y[D])continue;const H=z[D][C];if((D=y[D][C])&&
0!==D.length){if(c.isAborted(x))break;for(C=H.getData();C.nextTag(2);){var F=C.getMessage();const I=new d(F,H);F.release();if(F=I.values){const J=F._minzoom;if(J&&J>=B)continue;if((F=F._maxzoom)&&F<=v)continue}for(const J of D)J.pushFeature(I)}}}};q._fetchResources=function(v,x,z){const y=[],A=this._tile.getWorkerTileHandler();0<v.length&&(v=A.fetchSprites(v,this._client,z),y.push(v));for(const B in x)v=x[B],0<v.size&&(v=A.fetchGlyphs(this._tile.tileKey,B,v,this._client,z),y.push(v));return y};q._processFeatures=
function(v){v=v.filter(x=>x.hasFeatures()||this._canParseStyleLayer(x.layer.uid));for(const x of v)x.processFeatures(x.tileClipper);return v};q._parseTileData=function(v){const x={};for(const z of Object.keys(v)){const y=v[z],A={};for(;y.next();)switch(y.tag()){case 3:const B=y.getMessage(),E=new u(B);B.release();A[E.name]=E;break;default:y.skip()}x[z]=A}return x};q._createBucket=function(v){switch(v.type){case l.StyleLayerType.BACKGROUND:return null;case l.StyleLayerType.FILL:return this._createFillBucket(v);
case l.StyleLayerType.LINE:return this._createLineBucket(v);case l.StyleLayerType.CIRCLE:return this._createCircleBucket(v);case l.StyleLayerType.SYMBOL:return this._createSymbolBucket(v)}};q._createFillBucket=function(v){return new g(v,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new r.FillVertexBuffer(v.fillMaterial.getStride()),new n.TriangleIndexBuffer,new r.OutlineVertexBuffer(v.outlineMaterial.getStride()),new n.TriangleIndexBuffer)};q._createLineBucket=function(v){return new k(v,
this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new r.LineVertexBuffer(v.lineMaterial.getStride()),new n.TriangleIndexBuffer)};q._createCircleBucket=function(v){return new h(v,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new r.CircleVertexBuffer(v.circleMaterial.getStride()),new n.TriangleIndexBuffer)};q._createSymbolBucket=function(v){const x=this._tile;return new p(v,this._level,new r.SymbolVertexBuffer(v.iconMaterial.getStride()),new n.TriangleIndexBuffer,new r.SymbolVertexBuffer(v.textMaterial.getStride()),
new n.TriangleIndexBuffer,x.placementEngine,x.getWorkerTileHandler())};return f}()})},"esri/geometry/libtess":function(){define(["require","exports","../chunks/_rollupPluginBabelHelpers","../assets","../core/has"],function(a,b,c,e,d){function n(){n=c._asyncToGenerator(function*(){h||(h=u());return h});return n.apply(this,arguments)}function u(){return r.apply(this,arguments)}function r(){r=c._asyncToGenerator(function*(){g=yield(d("esri-csp-restrictions")?yield(new Promise((k,p)=>a(["../chunks/libtess-asm"],
k,p))).then(k=>k.libtessAsm):yield(new Promise((k,p)=>a(["../chunks/libtess"],k,p))).then(k=>k.libtess)).load({locateFile:k=>e.getAssetUrl(`esri/core/libs/libtess/${k}`)})});return r.apply(this,arguments)}let h=null,g=null;b.loadLibtess=function(){return n.apply(this,arguments)};b.triangulate=function(k,p){return g.triangulate(k,p,Math.max(k.length,128E3))};Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/Feature":function(){define(["../webgl/Geometry"],
function(a){var b;(function(c){c[c.moveTo=1]="moveTo";c[c.lineTo=2]="lineTo";c[c.close=7]="close"})(b||(b={}));return function(){function c(e,d){this.values={};this._geometry=void 0;this._pbfGeometry=null;const n=d.keys;d=d.values;for(e=e.asUnsafe();e.next();)switch(e.tag()){case 1:this.id=e.getUInt64();break;case 2:const u=e.getMessage().asUnsafe(),r=this.values;for(;!u.empty();){const h=u.getUInt32(),g=u.getUInt32();r[n[h]]=d[g]}u.release();break;case 3:this.type=e.getUInt32();break;case 4:this._pbfGeometry=
e.getMessage();break;default:e.skip()}}c.prototype.getGeometry=function(e){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const d=this._pbfGeometry.asUnsafe();this._pbfGeometry=null;let n,u;e?e.reset(this.type):n=[];let r=b.moveTo;var h=0;let g=0,k=0;for(;!d.empty();)switch(0===h&&(h=d.getUInt32(),r=h&7,h>>=3),h--,r){case b.moveTo:g+=d.getSInt32();k+=d.getSInt32();e?e.moveTo(g,k):n&&(u&&n.push(u),u=[],u.push(new a.Point(g,k)));break;case b.lineTo:g+=d.getSInt32();
k+=d.getSInt32();e?e.lineTo(g,k):u&&u.push(new a.Point(g,k));break;case b.close:e?e.close():u&&!u[0].equals(g,k)&&u.push(u[0].clone());break;default:throw d.release(),Error("Invalid path operation");}let p;e?p=e.result():n&&(u&&n.push(u),p=n);d.release();return this._geometry=p};return c}()})},"esri/views/2d/engine/vectorTiles/IndexMemoryBuffer":function(){define(["exports","../../../../chunks/_rollupPluginBabelHelpers","./MemoryBuffer"],function(a,b,c){let e=function(d){function n(){return d.call(this,
12)||this}b._inheritsLoose(n,d);n.prototype.add=function(u,r,h){const g=this.array;g.push(u);g.push(r);g.push(h)};return n}(c);c=function(d){function n(){return d.call(this,4)||this}b._inheritsLoose(n,d);n.prototype.add=function(u){this.array.push(u)};return n}(c);a.PointElementMemoryBuffer=c;a.TriangleIndexBuffer=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/MemoryBuffer":function(){define(["../../../../chunks/_rollupPluginBabelHelpers"],
function(a){return function(){function b(e){this._array=[];0>=e&&console.error("strideInBytes must be positive!");this._stride=e}var c=b.prototype;c.reset=function(){this.array.length=0};c.toBuffer=function(){return(new Uint32Array(this._array)).buffer};b.i1616to32=function(e,d){return 65535&e|d<<16};b.i8888to32=function(e,d,n,u){return e&255|(d&255)<<8|(n&255)<<16|u<<24};b.i8816to32=function(e,d,n){return e&255|(d&255)<<8|n<<16};a._createClass(b,[{key:"array",get:function(){return this._array}},
{key:"index",get:function(){return 4*this._array.length/this._stride}},{key:"itemSize",get:function(){return this._stride}},{key:"sizeInBytes",get:function(){return 4*this._array.length}}]);return b}()})},"esri/views/2d/engine/vectorTiles/SourceLayerData":function(){define(function(){return function(){function a(b){this.extent=4096;this.keys=[];this.values=[];this._pbfLayer=b.clone();for(b=b.asUnsafe();b.next();)switch(b.tag()){case 1:this.name=b.getString();break;case 3:this.keys.push(b.getString());
break;case 4:this.values.push(b.processMessage(a._parseValue));break;case 5:this.extent=b.getUInt32();break;default:b.skip()}}a.prototype.getData=function(){return this._pbfLayer};a._parseValue=function(b){for(;b.next();)switch(b.tag()){case 1:return b.getString();case 2:return b.getFloat();case 3:return b.getDouble();case 4:return b.getInt64();case 5:return b.getUInt64();case 6:return b.getSInt64();case 7:return b.getBool();default:b.skip()}return null};return a}()})},"esri/views/2d/engine/vectorTiles/VertexMemoryBuffer":function(){define(["exports",
"../../../../chunks/_rollupPluginBabelHelpers","./GeometryUtils","./MemoryBuffer"],function(a,b,c,e){let d=function(g){function k(p){return g.call(this,p)||this}b._inheritsLoose(k,g);k.prototype.add=function(p,l,m,t,f,q,v,x,z,y,A,B){const E=this.array;p=e.i1616to32(p,l);E.push(p);p=e.i8888to32(Math.round(31*m),Math.round(31*t),Math.round(31*f),Math.round(31*q));E.push(p);p=e.i8888to32(Math.round(31*v),Math.round(31*x),Math.round(31*z),Math.round(31*y));E.push(p);p=e.i1616to32(A,0);E.push(p);B&&E.push(...B)};
return k}(e),n=function(g){function k(p){return g.call(this,p)||this}b._inheritsLoose(k,g);k.prototype.add=function(p,l,m){const t=this.array;t.push(e.i1616to32(p,l));m&&t.push(...m)};return k}(e),u=function(g){function k(p){return g.call(this,p)||this}b._inheritsLoose(k,g);k.prototype.add=function(p,l,m,t,f,q,v){const x=this.array,z=this.index;p=e.i1616to32(p,l);x.push(p);p=e.i8888to32(Math.round(15*m),Math.round(15*t),f,q);x.push(p);v&&x.push(...v);return z};return k}(e),r=function(g){function k(p){return g.call(this,
p)||this}b._inheritsLoose(k,g);k.prototype.add=function(p,l,m,t,f,q,v,x,z,y,A,B){const E=this.array;p=e.i1616to32(p,l);E.push(p);p=e.i1616to32(Math.round(8*m),Math.round(8*t));E.push(p);p=e.i8888to32(f/4,q/4,x,z);E.push(p);p=e.i8888to32(0,c.radToByte(v),10*y,Math.min(10*A,255));E.push(p);B&&E.push(...B)};return k}(e),h=function(g){function k(p){return g.call(this,p)||this}b._inheritsLoose(k,g);k.prototype.add=function(p,l,m,t,f){const q=this.array;p=e.i1616to32(2*p+m,2*l+t);q.push(p);f&&q.push(...f)};
return k}(e);a.CircleVertexBuffer=h;a.FillVertexBuffer=n;a.LineVertexBuffer=d;a.OutlineVertexBuffer=u;a.SymbolVertexBuffer=r;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/buckets/CircleBucket":function(){define(["../../../../../chunks/_rollupPluginBabelHelpers","../enums","./BaseBucket"],function(a,b,c){return function(e){function d(u,r,h,g,k){u=e.call(this,u,r,h)||this;u.type=b.BucketType.CIRCLE;u._circleVertexBuffer=
g;u._circleIndexBuffer=k;return u}a._inheritsLoose(d,e);var n=d.prototype;n.processFeatures=function(u){const r=this._circleVertexBuffer,h=this._circleIndexBuffer;this._circleIndexStart=3*h.index;this._circleIndexCount=0;const g=this.layer,k=this.zoom;u&&u.setExtent(this.layerExtent);for(const l of this._features){var p=l.getGeometry(u);if(!p)continue;const m=g.circleMaterial.encodeAttributes(l,k,g);for(const t of p)if(t)for(const f of t)p=r.index,r.add(f.x,f.y,0,0,m),r.add(f.x,f.y,0,1,m),r.add(f.x,
f.y,1,0,m),r.add(f.x,f.y,1,1,m),h.add(p+0,p+1,p+2),h.add(p+1,p+2,p+3),this._circleIndexCount+=6}};n.serialize=function(){var u=6+this.layerUIDs.length;u+=this._circleVertexBuffer.array.length;u+=this._circleIndexBuffer.array.length;u=new Uint32Array(u);var r=new Int32Array(u.buffer);let h=0;u[h++]=this.type;u[h++]=this.layerUIDs.length;for(var g=0;g<this.layerUIDs.length;g++)u[h++]=this.layerUIDs[g];u[h++]=this._circleIndexStart;u[h++]=this._circleIndexCount;u[h++]=this._circleVertexBuffer.array.length;
for(g=0;g<this._circleVertexBuffer.array.length;g++)r[h++]=this._circleVertexBuffer.array[g];u[h++]=this._circleIndexBuffer.array.length;for(r=0;r<this._circleIndexBuffer.array.length;r++)u[h++]=this._circleIndexBuffer.array[r];return u.buffer};a._createClass(d,[{key:"circleIndexStart",get:function(){return this._circleIndexStart}},{key:"circleIndexCount",get:function(){return this._circleIndexCount}}]);return d}(c)})},"esri/views/2d/engine/vectorTiles/buckets/BaseBucket":function(){define(function(){return function(){function a(c,
e,d){this.layerExtent=4096;this._features=[];this.layer=c;this.zoom=e;this._spriteInfo=d;this._filter=c.getFeatureFilter()}var b=a.prototype;b.pushFeature=function(c){this._filter&&!this._filter.filter(c,this.zoom)||this._features.push(c)};b.hasFeatures=function(){return 0<this._features.length};b.getResources=function(c,e,d){};return a}()})},"esri/views/2d/engine/vectorTiles/buckets/FillBucket":function(){define("../../../../../chunks/_rollupPluginBabelHelpers ../../../../../core/ArrayPool ../../../../../chunks/earcut ../../../../../geometry/libtess ../enums ./BaseBucket ../../webgl/Geometry".split(" "),
function(a,b,c,e,d,n,u){return function(r){function h(k,p,l,m,t,f,q){k=r.call(this,k,p,l)||this;k.type=d.BucketType.FILL;k._patternMap=new Map;k._fillVertexBuffer=m;k._fillIndexBuffer=t;k._outlineVertexBuffer=f;k._outlineIndexBuffer=q;return k}a._inheritsLoose(h,r);var g=h.prototype;g.getResources=function(k,p,l){k=this.zoom;if(l=this.layer.getPaintProperty("fill-pattern"))if(l.isDataDriven)for(const m of this._features)p(l.getValue(k,m),!0);else p(l.getValue(k),!0)};g.processFeatures=function(k){this._fillIndexStart=
3*this._fillIndexBuffer.index;this._fillIndexCount=0;this._outlineIndexStart=3*this._outlineIndexBuffer.index;this._outlineIndexCount=0;const p=this.layer,l=this.zoom,{fillMaterial:m,outlineMaterial:t,hasDataDrivenFill:f,hasDataDrivenOutline:q}=p;k&&k.setExtent(this.layerExtent);var v=p.getPaintProperty("fill-pattern"),x=v?.isDataDriven;let z=!v&&p.getPaintValue("fill-antialias",l);if(p.outlineUsesFillColor){if(z&&!p.hasDataDrivenOpacity){var y=p.getPaintValue("fill-opacity",l),A=p.getPaintValue("fill-opacity",
l+1);1>y&&1>A&&(z=!1)}z&&!p.hasDataDrivenColor&&(y=p.getPaintValue("fill-color",l),A=p.getPaintValue("fill-color",l+1),1>y[3]&&1>A[3]&&(z=!1))}A=this._features;y=k?.validateTessellation;if(x){var B=[];for(var E of A){x=v.getValue(l,E);x=this._spriteInfo[x];if(!x||!x.rect)continue;A=m.encodeAttributes(E,l,p,x);const w=z&&q?t.encodeAttributes(E,l,p):[],D=E.getGeometry(k);B.push({ddFillAttributes:A,ddOutlineAttributes:w,page:x.page,geometry:D});B.sort((C,F)=>C.page-F.page);for(const {ddFillAttributes:C,
ddOutlineAttributes:F,page:G,geometry:H}of B)this._processFeature(H,z,p.outlineUsesFillColor,C,F,y,G)}}else for(B of A)v=f?m.encodeAttributes(B,l,p):null,E=z&&q?t.encodeAttributes(B,l,p):null,x=B.getGeometry(k),this._processFeature(x,z,p.outlineUsesFillColor,v,E,y)};g.serialize=function(){var k=10+this.layerUIDs.length;k+=this._fillVertexBuffer.array.length;k+=this._fillIndexBuffer.array.length;k+=this._outlineVertexBuffer.array.length;k+=this._outlineIndexBuffer.array.length;k+=3*this._patternMap.size+
1;k=new Uint32Array(k);var p=new Int32Array(k.buffer);let l=0;k[l++]=this.type;k[l++]=this.layerUIDs.length;for(var m=0;m<this.layerUIDs.length;m++)k[l++]=this.layerUIDs[m];k[l++]=this._fillIndexStart;k[l++]=this._fillIndexCount;k[l++]=this._outlineIndexStart;k[l++]=this._outlineIndexCount;m=this._patternMap;const t=m.size;k[l++]=t;if(0<t)for(const [f,[q,v]]of m)k[l++]=f,k[l++]=q,k[l++]=v;k[l++]=this._fillVertexBuffer.array.length;for(m=0;m<this._fillVertexBuffer.array.length;m++)p[l++]=this._fillVertexBuffer.array[m];
k[l++]=this._fillIndexBuffer.array.length;for(m=0;m<this._fillIndexBuffer.array.length;m++)k[l++]=this._fillIndexBuffer.array[m];k[l++]=this._outlineVertexBuffer.array.length;for(m=0;m<this._outlineVertexBuffer.array.length;m++)p[l++]=this._outlineVertexBuffer.array[m];k[l++]=this._outlineIndexBuffer.array.length;for(p=0;p<this._outlineIndexBuffer.array.length;p++)k[l++]=this._outlineIndexBuffer.array[p];return k.buffer};g._processFeature=function(k,p,l,m,t,f,q){if(k){var v=k.length,x=!t||0===t.length;
if(p&&(!l||x))for(p=0;p<v;p++)this._processOutline(k[p],t);for(t=0;t<v;t++)if(p=h._area(k[t]),32<p){void 0!==z&&this._processFill(k,z,m,f,q);var z=[t]}else-32>p&&void 0!==z&&z.push(t);void 0!==z&&this._processFill(k,z,m,f,q)}};g._processOutline=function(k,p){const l=this._outlineVertexBuffer,m=this._outlineIndexBuffer,t=m.index;var f;let q,v;const x=new u.Point(0,0),z=new u.Point(0,0),y=new u.Point(0,0);let A=-1,B=-1;var E=-1;let w=-1,D=-1,C=!1,F=k.length;if(!(2>F)){var G=k[0];for(f=k[F-1];F&&f.isEqual(G);)--F,
f=k[F-1];if(!(2>F-0)){for(G=0;G<F;++G){0===G?(f=k[F-1],q=k[0],v=k[1],x.assignSub(q,f),x.normalize(),x.rightPerpendicular()):(f=q,q=v,v=G!==F-1?k[G+1]:k[0],x.assign(z));f=this._isClipEdge(f,q);-1===w&&(C=f);z.assignSub(v,q);z.normalize();z.rightPerpendicular();E=x.x*z.y-x.y*z.x;y.assignAdd(x,z);y.normalize();var H=-y.x*-x.x+-y.y*-x.y;H=Math.abs(0!==H?1/H:1);8<H&&(H=8);0<=E?(E=l.add(q.x,q.y,x.x,x.y,0,1,p),-1===w&&(w=E),0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E),B=l.add(q.x,q.y,H*-y.x,H*-y.y,0,-1,p),-1===D&&
(D=B),0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E),A=B,B=E,E=l.add(q.x,q.y,y.x,y.y,0,1,p),0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E),B=l.add(q.x,q.y,z.x,z.y,0,1,p)):(E=l.add(q.x,q.y,H*y.x,H*y.y,0,1,p),-1===w&&(w=E),0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E),B=l.add(q.x,q.y,-x.x,-x.y,0,-1,p),-1===D&&(D=B),0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E),A=B,B=E,E=l.add(q.x,q.y,-y.x,-y.y,0,-1,p),0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E),A=l.add(q.x,q.y,-z.x,-z.y,0,-1,p));0<=A&&0<=B&&0<=E&&!f&&m.add(A,B,E)}0<=A&&0<=B&&0<=w&&!C&&m.add(A,B,w);0<=A&&
0<=w&&0<=D&&!C&&m.add(A,D,w);this._outlineIndexCount+=3*(m.index-t)}}};g._processFill=function(k,p,l,m,t){m=!0;var f;1<p.length&&(f=[]);var q=0;for(var v of p)0!==q&&f.push(q),q+=k[v].length;v=2*q;q=b.acquire();for(var x of p){const z=k[x],y=z.length;for(let A=0;A<y;++A)q.push(z[A].x,z[A].y)}x=c.earcut(q,f,2);if(m&&0<c.earcut.deviation(q,f,2,x)){v=p.map(A=>k[A].length);const {buffer:z,vertexCount:y}=e.triangulate(q,v);if(0<y){v=this._fillVertexBuffer.index;for(p=0;p<y;p++)this._fillVertexBuffer.add(z[2*
p],z[2*p+1],l);for(l=0;l<y;l+=3)p=v+l,this._fillIndexBuffer.add(p,p+1,p+2);void 0!==t&&(l=this._patternMap,(v=l.get(t))?v[1]+=y:l.set(t,[this._fillIndexStart+this._fillIndexCount,y]));this._fillIndexCount+=y}}else if(p=x.length,0<p){m=this._fillVertexBuffer.index;for(f=0;f<v;)this._fillVertexBuffer.add(q[f++],q[f++],l);for(l=0;l<p;)this._fillIndexBuffer.add(m+x[l++],m+x[l++],m+x[l++]);void 0!==t&&(l=this._patternMap,(v=l.get(t))?v[1]+=p:l.set(t,[this._fillIndexStart+this._fillIndexCount,p]));this._fillIndexCount+=
p}b.release(q)};g._isClipEdge=function(k,p){return k.x===p.x?-64>=k.x||4160<=k.x:k.y===p.y?-64>=k.y||4160<=k.y:!1};h._area=function(k){let p=0;const l=k.length-1;for(let m=0;m<l;m++)p+=(k[m].x-k[m+1].x)*(k[m].y+k[m+1].y);p+=(k[l].x-k[0].x)*(k[l].y+k[0].y);return.5*p};a._createClass(h,[{key:"fillIndexStart",get:function(){return this._fillIndexStart}},{key:"fillIndexCount",get:function(){return this._fillIndexCount}},{key:"outlineIndexStart",get:function(){return this._outlineIndexStart}},{key:"outlineIndexCount",
get:function(){return this._outlineIndexCount}}]);return h}(n)})},"esri/chunks/earcut":function(){define(["exports"],function(a){var b={exports:{}};(function(c){(function(e){e=e();void 0!==e&&(c.exports=e)})(function(){function e(w,D,C){C=C||2;var F=D&&D.length,G=F?D[0]*C:w.length,H=d(w,0,G,C,!0),I=[];if(!H||H.next===H.prev)return I;var J;if(F){var K=H;var N=C;H=[];var U;F=0;for(U=D.length;F<U;F++){var ba=D[F]*N;var ka=F<U-1?D[F+1]*N:w.length;ba=d(w,ba,ka,N,!1);ba===ba.next&&(ba.steiner=!0);ka=H;
var P=ka.push,V=ba,ca=ba;do{if(V.x<ca.x||V.x===ca.x&&V.y<ca.y)ca=V;V=V.next}while(V!==ba);P.call(ka,ca)}H.sort(h);for(F=0;F<H.length;F++)N=H[F],D=K,(K=k(N,D))?(U=z(K,N),N=n(K,K.next),U=g(U),n(U,U.next),N=g(N),K=g(D===K?N:D)):K=D,K=n(K,K.next);H=K}if(w.length>80*C){var ra=J=w[0];var ta=F=w[1];for(N=C;N<G;N+=C)D=w[N],K=w[N+1],D<ra&&(ra=D),K<ta&&(ta=K),D>J&&(J=D),K>F&&(F=K);J=Math.max(J-ra,F-ta);J=0!==J?1/J:0}u(H,I,C,ra,ta,J);return I}function d(w,D,C,F,G){if(G===0<E(w,D,C,F))for(G=D;G<C;G+=F)var H=
y(G,w[G],w[G+1],H);else for(G=C-F;G>=D;G-=F)H=y(G,w[G],w[G+1],H);H&&t(H,H.next)&&(w=H.next,A(H),H=w);return H}function n(w,D){if(!w)return w;D||(D=w);do{var C=!1;if(w.steiner||!t(w,w.next)&&0!==m(w.prev,w,w.next))w=w.next;else{D=w.prev;A(w);w=D;if(w===w.next)break;C=!0}}while(C||w!==D);return D}function u(w,D,C,F,G,H,I){if(w){if(!I&&H){var J=w,K=J;do null===K.z&&(K.z=p(K.x,K.y,F,G,H)),K.prevZ=K.prev,K=K.nextZ=K.next;while(K!==J);K.prevZ.nextZ=null;K.prevZ=null;J=K;var N,U,ba,ka,P=1;do{K=J;var V=J=
null;for(U=0;K;){U++;var ca=K;for(N=ba=0;N<P&&(ba++,ca=ca.nextZ,ca);N++);for(ka=P;0<ba||0<ka&&ca;)0!==ba&&(0===ka||!ca||K.z<=ca.z)?(N=K,K=K.nextZ,ba--):(N=ca,ca=ca.nextZ,ka--),V?V.nextZ=N:J=N,N.prevZ=V,V=N;K=ca}V.nextZ=null;P*=2}while(1<U)}for(J=w;w.prev!==w.next;){K=w.prev;ca=w.next;if(H)V=r(w,F,G,H);else a:if(V=w,U=V.prev,ba=V,P=V.next,0<=m(U,ba,P))V=!1;else{for(N=V.next.next;N!==V.prev;){if(l(U.x,U.y,ba.x,ba.y,P.x,P.y,N.x,N.y)&&0<=m(N.prev,N,N.next)){V=!1;break a}N=N.next}V=!0}if(V)D.push(K.i/
C),D.push(w.i/C),D.push(ca.i/C),A(w),J=w=ca.next;else if(w=ca,w===J){if(!I)u(n(w),D,C,F,G,H,1);else if(1===I){w=n(w);I=D;J=C;K=w;do ca=K.prev,V=K.next.next,!t(ca,V)&&f(ca,K,K.next,V)&&x(ca,V)&&x(V,ca)&&(I.push(ca.i/J),I.push(K.i/J),I.push(V.i/J),A(K),A(K.next),K=w=V),K=K.next;while(K!==w);w=n(K);u(w,D,C,F,G,H,2)}else if(2===I)a:{I=w;do{for(J=I.next.next;J!==I.prev;){if(K=I.i!==J.i){V=V=V=V=void 0;K=I;ca=J;if(V=K.next.i!==ca.i&&K.prev.i!==ca.i){b:{V=K;do{if(V.i!==K.i&&V.next.i!==K.i&&V.i!==ca.i&&V.next.i!==
ca.i&&f(V,V.next,K,ca)){V=!0;break b}V=V.next}while(V!==K);V=!1}V=!V}if(V){if(V=x(K,ca)&&x(ca,K)){V=K;U=!1;ba=(K.x+ca.x)/2;P=(K.y+ca.y)/2;do V.y>P!==V.next.y>P&&V.next.y!==V.y&&ba<(V.next.x-V.x)*(P-V.y)/(V.next.y-V.y)+V.x&&(U=!U),V=V.next;while(V!==K);V=U}V=V&&(m(K.prev,K,ca.prev)||m(K,ca.prev,ca))||t(K,ca)&&0<m(K.prev,K,K.next)&&0<m(ca.prev,ca,ca.next)}K=V}if(K){w=z(I,J);I=n(I,I.next);w=n(w,w.next);u(I,D,C,F,G,H);u(w,D,C,F,G,H);break a}J=J.next}I=I.next}while(I!==w)}break}}}}function r(w,D,C,F){var G=
w.prev,H=w.next;if(0<=m(G,w,H))return!1;var I=G.x>w.x?G.x>H.x?G.x:H.x:w.x>H.x?w.x:H.x,J=G.y>w.y?G.y>H.y?G.y:H.y:w.y>H.y?w.y:H.y,K=p(G.x<w.x?G.x<H.x?G.x:H.x:w.x<H.x?w.x:H.x,G.y<w.y?G.y<H.y?G.y:H.y:w.y<H.y?w.y:H.y,D,C,F);D=p(I,J,D,C,F);C=w.prevZ;for(F=w.nextZ;C&&C.z>=K&&F&&F.z<=D;){if(C!==w.prev&&C!==w.next&&l(G.x,G.y,w.x,w.y,H.x,H.y,C.x,C.y)&&0<=m(C.prev,C,C.next))return!1;C=C.prevZ;if(F!==w.prev&&F!==w.next&&l(G.x,G.y,w.x,w.y,H.x,H.y,F.x,F.y)&&0<=m(F.prev,F,F.next))return!1;F=F.nextZ}for(;C&&C.z>=
K;){if(C!==w.prev&&C!==w.next&&l(G.x,G.y,w.x,w.y,H.x,H.y,C.x,C.y)&&0<=m(C.prev,C,C.next))return!1;C=C.prevZ}for(;F&&F.z<=D;){if(F!==w.prev&&F!==w.next&&l(G.x,G.y,w.x,w.y,H.x,H.y,F.x,F.y)&&0<=m(F.prev,F,F.next))return!1;F=F.nextZ}return!0}function h(w,D){return w.x-D.x}function g(w){if(w.next.prev===w)return w;let D=w;do{const C=D.next;if(C.prev===D||C===D||C===w)break;D=C}while(1);return D}function k(w,D){var C=D,F=w.x,G=w.y,H=-Infinity;do{if(G<=C.y&&G>=C.next.y&&C.next.y!==C.y){var I=C.x+(G-C.y)*
(C.next.x-C.x)/(C.next.y-C.y);if(I<=F&&I>H){H=I;if(I===F){if(G===C.y)return C;if(G===C.next.y)return C.next}var J=C.x<C.next.x?C:C.next}}C=C.next}while(C!==D);if(!J)return null;if(F===H)return J;D=J;I=J.x;var K=J.y,N=Infinity;C=J;do{if(F>=C.x&&C.x>=I&&F!==C.x&&l(G<K?F:H,G,I,K,G<K?H:F,G,C.x,C.y)){var U=Math.abs(G-C.y)/(F-C.x);var ba;if((ba=x(C,w))&&!(ba=U<N)&&(ba=U===N)&&!(ba=C.x>J.x)&&(ba=C.x===J.x)){ba=J;var ka=C;ba=0>m(ba.prev,ba,ka.prev)&&0>m(ka.next,ba,ba.next)}ba&&(J=C,N=U)}C=C.next}while(C!==
D);return J}function p(w,D,C,F,G){w=32767*(w-C)*G;D=32767*(D-F)*G;w=(w|w<<8)&16711935;w=(w|w<<4)&252645135;w=(w|w<<2)&858993459;D=(D|D<<8)&16711935;D=(D|D<<4)&252645135;D=(D|D<<2)&858993459;return(w|w<<1)&1431655765|((D|D<<1)&1431655765)<<1}function l(w,D,C,F,G,H,I,J){return 0<=(G-I)*(D-J)-(w-I)*(H-J)&&0<=(w-I)*(F-J)-(C-I)*(D-J)&&0<=(C-I)*(H-J)-(G-I)*(F-J)}function m(w,D,C){return(D.y-w.y)*(C.x-D.x)-(D.x-w.x)*(C.y-D.y)}function t(w,D){return w.x===D.x&&w.y===D.y}function f(w,D,C,F){var G=v(m(w,D,
C)),H=v(m(w,D,F)),I=v(m(C,F,w)),J=v(m(C,F,D));return G!==H&&I!==J||0===G&&q(w,C,D)||0===H&&q(w,F,D)||0===I&&q(C,w,F)||0===J&&q(C,D,F)?!0:!1}function q(w,D,C){return D.x<=Math.max(w.x,C.x)&&D.x>=Math.min(w.x,C.x)&&D.y<=Math.max(w.y,C.y)&&D.y>=Math.min(w.y,C.y)}function v(w){return 0<w?1:0>w?-1:0}function x(w,D){return 0>m(w.prev,w,w.next)?0<=m(w,D,w.next)&&0<=m(w,w.prev,D):0>m(w,D,w.prev)||0>m(w,w.next,D)}function z(w,D){var C=new B(w.i,w.x,w.y),F=new B(D.i,D.x,D.y),G=w.next,H=D.prev;w.next=D;D.prev=
w;C.next=G;G.prev=C;F.next=C;C.prev=F;H.next=F;F.prev=H;return F}function y(w,D,C,F){w=new B(w,D,C);F?(w.next=F.next,w.prev=F,F.next.prev=w,F.next=w):(w.prev=w,w.next=w);return w}function A(w){w.next.prev=w.prev;w.prev.next=w.next;w.prevZ&&(w.prevZ.nextZ=w.nextZ);w.nextZ&&(w.nextZ.prevZ=w.prevZ)}function B(w,D,C){this.i=w;this.x=D;this.y=C;this.nextZ=this.prevZ=this.z=this.next=this.prev=null;this.steiner=!1}function E(w,D,C,F){for(var G=0,H=C-F;D<C;D+=F)G+=(w[H]-w[D])*(w[D+1]+w[H+1]),H=D;return G}
e.deviation=function(w,D,C,F){var G=D&&D.length,H=Math.abs(E(w,0,G?D[0]*C:w.length,C));if(G){G=0;for(var I=D.length;G<I;G++)H-=Math.abs(E(w,D[G]*C,G<I-1?D[G+1]*C:w.length,C))}for(G=D=0;G<F.length;G+=3){I=F[G]*C;var J=F[G+1]*C,K=F[G+2]*C;D+=Math.abs((w[I]-w[K])*(w[J+1]-w[I+1])-(w[I]-w[J])*(w[K+1]-w[I+1]))}return 0===H&&0===D?0:Math.abs((D-H)/H)};e.flatten=function(w){for(var D=w[0][0].length,C={vertices:[],holes:[],dimensions:D},F=0,G=0;G<w.length;G++){for(var H=0;H<w[G].length;H++)for(var I=0;I<D;I++)C.vertices.push(w[G][H][I]);
0<G&&(F+=w[G-1].length,C.holes.push(F))}return C};return e})})(b);a.earcut=b.exports})},"esri/views/2d/engine/vectorTiles/buckets/LineBucket":function(){define(["../../../../../chunks/_rollupPluginBabelHelpers","../enums","./BaseBucket","../../webgl/TurboLine"],function(a,b,c,e){const d=u=>(r,h,g,k,p,l,m,t,f,q,v)=>{u._lineVertexBuffer.add(r,h,m,t,g,k,p,l,f,q,v,u._ddValues);return u._lineVertexBuffer.index-1},n=u=>(r,h,g)=>{u._lineIndexBuffer.add(r,h,g)};return function(u){function r(g,k,p,l,m){k=
u.call(this,g,k,p)||this;k.type=b.BucketType.LINE;k._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0};k._patternMap=new Map;k.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null};k.tessellationProperties._lineVertexBuffer=l;k.tessellationProperties._lineIndexBuffer=m;k._lineTessellator=new e.LineTessellation(d(k.tessellationProperties),n(k.tessellationProperties),g.canUseThinTessellation);return k}a._inheritsLoose(r,u);var h=r.prototype;h.getResources=function(g,
k,p){g=this.layer;const l=this.zoom,m=g.getPaintProperty("line-pattern"),t=g.getPaintProperty("line-dasharray"),f=g.getLayoutProperty("line-cap");if(m||t){p=f?.getValue(l)||0;var q=f?.isDataDriven,v=m?.isDataDriven;if(v||t?.isDataDriven)for(var x of this._features)v?k(m.getValue(l,x)):k(this._getDashArrayKey(x,l,g,t,q,f,p));else m?k(m.getValue(l)):t&&(x=t.getValue(l),k(g.getDashKey(x,p)))}};h.processFeatures=function(g){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index;this._lineIndexCount=
0;const k=this.layer,p=this.zoom;var l=this._features;const m=this._tessellationOptions,{hasDataDrivenLine:t,lineMaterial:f}=k;g&&g.setExtent(this.layerExtent);var q=k.getPaintProperty("line-pattern"),v=k.getPaintProperty("line-dasharray"),x=q?.isDataDriven,z=v?.isDataDriven;var y=k.getLayoutProperty("line-cap");const A=y?.isDataDriven?y:null,B=A?null:k.getLayoutValue("line-cap",p),E=B||0,w=!!A;y=k.getLayoutProperty("line-join");const D=y?.isDataDriven?y:null,C=D?null:k.getLayoutValue("line-join",
p);y=k.getLayoutProperty("line-miter-limit");const F=y?.isDataDriven?y:null,G=F?null:k.getLayoutValue("line-miter-limit",p);y=k.getLayoutProperty("line-round-limit");const H=y?.isDataDriven?y:null,I=H?null:k.getLayoutValue("line-round-limit",p);y=k.getPaintProperty("line-width");const J=y?.isDataDriven?y:null,K=J?null:k.getPaintValue("line-width",p);y=k.getPaintProperty("line-offset");const N=(y=y?.isDataDriven?y:null)?null:k.getPaintValue("line-offset",p);if(x||z){var U=[];for(const ba of l){l=x?
q.getValue(p,ba):this._getDashArrayKey(ba,p,k,v,w,A,E);l=this._spriteInfo[l];if(!l||!l.rect)continue;z=f.encodeAttributes(ba,p,k,l);const ka=ba.getGeometry(g);U.push({ddAttributes:z,page:l.page,cap:A?A.getValue(p,ba):B,join:D?D.getValue(p,ba):C,miterLimit:F?F.getValue(p,ba):G,roundLimit:H?H.getValue(p,ba):I,halfWidth:.5*(J?J.getValue(p,ba):K),offset:y?y.getValue(p,ba):N,geometry:ka})}U.sort((ba,ka)=>ba.page-ka.page);m.textured=!0;for(const {ddAttributes:ba,page:ka,cap:P,join:V,miterLimit:ca,roundLimit:ra,
halfWidth:ta,offset:Ba,geometry:Ha}of U)m.capType=P,m.joinType=V,m.miterLimit=ca,m.roundLimit=ra,m.halfWidth=ta,m.offset=Ba,this._processFeature(Ha,ba,ka)}else{if(q&&(x=q.getValue(p),x=this._spriteInfo[x],!x||!x.rect))return;m.textured=!(!q&&!v);m.capType=B;m.joinType=C;m.miterLimit=G;m.roundLimit=I;m.halfWidth=.5*K;m.offset=N;for(U of l)q=t?f.encodeAttributes(U,p,k):null,A&&(m.capType=A.getValue(p,U)),D&&(m.joinType=D.getValue(p,U)),F&&(m.miterLimit=F.getValue(p,U)),H&&(m.roundLimit=H.getValue(p,
U)),J&&(m.halfWidth=.5*J.getValue(p,U)),y&&(m.offset=y.getValue(p,U)),v=U.getGeometry(g),this._processFeature(v,q)}};h.serialize=function(){var g=6+this.layerUIDs.length;g+=this.tessellationProperties._lineVertexBuffer.array.length;g+=this.tessellationProperties._lineIndexBuffer.array.length;g+=3*this._patternMap.size+1;g=new Uint32Array(g);var k=new Int32Array(g.buffer);let p=0;g[p++]=this.type;g[p++]=this.layerUIDs.length;for(var l=0;l<this.layerUIDs.length;l++)g[p++]=this.layerUIDs[l];g[p++]=this._lineIndexStart;
g[p++]=this._lineIndexCount;l=this._patternMap;const m=l.size;g[p++]=m;if(0<m)for(const [t,[f,q]]of l)g[p++]=t,g[p++]=f,g[p++]=q;g[p++]=this.tessellationProperties._lineVertexBuffer.array.length;for(l=0;l<this.tessellationProperties._lineVertexBuffer.array.length;l++)k[p++]=this.tessellationProperties._lineVertexBuffer.array[l];g[p++]=this.tessellationProperties._lineIndexBuffer.array.length;for(k=0;k<this.tessellationProperties._lineIndexBuffer.array.length;k++)g[p++]=this.tessellationProperties._lineIndexBuffer.array[k];
return g.buffer};h._processFeature=function(g,k,p){if(g){var l=g.length;for(let m=0;m<l;m++)this._processGeometry(g[m],k,p)}};h._processGeometry=function(g,k,p){if(!(2>g.length)){for(var l=g[0],m=1,t,f;m<g.length;)t=g[m].x-l.x,f=g[m].y-l.y,1E-6>t*t+f*f?g.splice(m,1):(l=g[m],++m);2>g.length||(m=this.tessellationProperties._lineIndexBuffer,l=3*m.index,this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=k,this._lineTessellator.tessellate(g,
this._tessellationOptions),g=3*m.index-l,void 0!==p&&(k=this._patternMap,(m=k.get(p))?m[1]+=g:k.set(p,[l+this._lineIndexCount,g])),this._lineIndexCount+=g)}};h._getDashArrayKey=function(g,k,p,l,m,t,f){m=m?t.getValue(k,g):f;g=l.getValue(k,g);return p.getDashKey(g,m)};a._createClass(r,[{key:"lineIndexStart",get:function(){return this._lineIndexStart}},{key:"lineIndexCount",get:function(){return this._lineIndexCount}}]);return r}(c)})},"esri/views/2d/engine/webgl/TurboLine":function(){define(["exports",
"../../../../symbols/cim/enums","./definitions"],function(a,b,c){function e(p,l){return p.x===l.x&&p.y===l.y}function d(p,l){p.x=l.y;p.y=-l.x;return p}function n(p,l){p.x=-l.y;p.y=l.x;return p}function u(p,l){p.x=l.x;p.y=l.y;return p}function r(p,l){p.x=-l.x;p.y=-l.y;return p}function h(p){return Math.sqrt(p.x*p.x+p.y*p.y)}function g(p,l,m,t){p.x=l.x*m+l.y*t;p.y=l.x*t-l.y*m;return p}let k=function(){function p(m,t,f){this._writeVertex=m;this._writeTriangle=t;this._canUseThinTessellation=f;this._prevNormal=
{x:void 0,y:void 0};this._nextNormal={x:void 0,y:void 0};this._textureNormalLeft={x:0,y:1};this._textureNormalRight={x:0,y:-1};this._textureNormal={x:void 0,y:void 0};this._joinNormal={x:void 0,y:void 0};this._inner={x:void 0,y:void 0};this._outer={x:void 0,y:void 0};this._roundStart={x:void 0,y:void 0};this._roundEnd={x:void 0,y:void 0};this._startBreak={x:void 0,y:void 0};this._endBreak={x:void 0,y:void 0};this._innerPrev={x:void 0,y:void 0};this._innerNext={x:void 0,y:void 0};this._bevelStart=
{x:void 0,y:void 0};this._bevelEnd={x:void 0,y:void 0};this._bevelMiddle={x:void 0,y:void 0}}var l=p.prototype;l.tessellate=function(m,t){if(m){var f=m.length;if(!(1>=f)){var q=0;for(let v=1;v<f;v++)e(m[v],m[q])||++q===v||(m[q]=m[v]);m.length=q+1}}this._canUseThinTessellation&&t.halfWidth<c.THIN_LINE_HALF_WIDTH_THRESHOLD&&!t.offset?this._tessellateThin(m,t):this._tessellate(m,t)};l._tessellateThin=function(m,t){if(!(2>m.length)){var f=t.wrapDistance||65535;t=t.initialDistance||0;var q=!1,v=m[0].x,
x=m[0].y,z=m.length;for(let E=1;E<z;++E){q&&(q=!1,t=0);let w=m[E].x,D=m[E].y;var y=w-v;let C=D-x;var A=Math.sqrt(y*y+C*C);y/=A;C/=A;if(t+A>f){q=!0;var B=(f-t)/A;A=f-t;w=(1-B)*v+B*w;D=(1-B)*x+B*D;--E}B=this._writeVertex(v,x,0,0,y,C,C,-y,0,-1,t);v=this._writeVertex(v,x,0,0,y,C,-C,y,0,1,t);t+=A;A=this._writeVertex(w,D,0,0,y,C,C,-y,0,-1,t);y=this._writeVertex(w,D,0,0,y,C,-C,y,0,1,t);this._writeTriangle(B,v,A);this._writeTriangle(v,A,y);v=w;x=D}}};l._tessellate=function(m,t){var f=m[m.length-1];const q=
e(m[0],f);if(!(m.length<(q?3:2))){var v=t.pixelCoordRatio,x=null!=t.capType?t.capType:b.CapType.BUTT,z=null!=t.joinType?t.joinType:b.JoinType.MITER,y=null!=t.miterLimit?Math.min(t.miterLimit,4):2,A=null!=t.roundLimit?Math.min(t.roundLimit,1.05):1.05,B=null!=t.halfWidth?t.halfWidth:2,E=!!t.textured,w=null,D=this._prevNormal,C=this._nextNormal,F=-1,G=-1,H=this._joinNormal,I=this._textureNormalLeft,J=this._textureNormalRight,K=this._textureNormal,N=-1,U=-1,ba=t.wrapDistance||65535,ka=t.initialDistance||
0,P=this._writeVertex,V=this._writeTriangle;t=(ja,S,fa,R,Q,Z)=>{ja=P(ra,ta,da,la,fa,R,ja,S,Q,Z,ka);0<=N&&0<=U&&0<=ja&&V(N,U,ja);N=U;return U=ja};if(q){var ca=m[m.length-2];C.x=f.x-ca.x;C.y=f.y-ca.y;G=h(C);C.x/=G;C.y/=G}f=!1;for(let ja=0;ja<m.length;++ja){f&&(f=!1,ka=0);ca&&(D.x=-C.x,D.y=-C.y,F=G,ka+F>ba&&(f=!0));f?(w=(ba-ka)/F,F=ba-ka,ca={x:(1-w)*ca.x+w*m[ja].x,y:(1-w)*ca.y+w*m[ja].y},--ja):ca=m[ja];var ra=ca.x;var ta=ca.y;var Ba=0>=ja&&!f,Ha=ja===m.length-1;Ba||(ka+=F);(w=Ha?q?m[1]:null:m[ja+1])?
(C.x=w.x-ra,C.y=w.y-ta,G=h(C),C.x/=G,C.y/=G):(C.x=void 0,C.y=void 0);if(!q){if(Ba){n(H,C);var da=H.x;var la=H.y;x===b.CapType.SQUARE&&(t(-C.y-C.x,C.x-C.y,C.x,C.y,0,-1),t(C.y-C.x,-C.x-C.y,C.x,C.y,0,1));x===b.CapType.ROUND&&(t(-C.y-C.x,C.x-C.y,C.x,C.y,-1,-1),t(C.y-C.x,-C.x-C.y,C.x,C.y,-1,1));if(x===b.CapType.ROUND||x===b.CapType.BUTT)t(-C.y,C.x,C.x,C.y,0,-1),t(C.y,-C.x,C.x,C.y,0,1);continue}if(Ha){d(H,D);da=H.x;la=H.y;if(x===b.CapType.ROUND||x===b.CapType.BUTT)t(D.y,-D.x,-D.x,-D.y,0,-1),t(-D.y,D.x,
-D.x,-D.y,0,1);x===b.CapType.SQUARE&&(t(D.y-D.x,-D.x-D.y,-D.x,-D.y,0,-1),t(-D.y-D.x,D.x-D.y,-D.x,-D.y,0,1));x===b.CapType.ROUND&&(t(D.y-D.x,-D.x-D.y,-D.x,-D.y,1,-1),t(-D.y-D.x,D.x-D.y,-D.x,-D.y,1,1));continue}}var sa=void 0;Ba=-(D.x*C.y-D.y*C.x);.01>Math.abs(Ba)?0<D.x*C.x+D.y*C.y?(H.x=D.x,H.y=D.y,Ba=1,sa=Number.MAX_VALUE,w=!0):(n(H,C),sa=Ba=1,w=!1):(H.x=(D.x+C.x)/Ba,H.y=(D.y+C.y)/Ba,sa=h(H),w=(sa-1)*B*v,w=4<sa||w>F&&w>G);da=H.x;la=H.y;var L=z;switch(z){case b.JoinType.BEVEL:1.05>sa&&(L=b.JoinType.MITER);
break;case b.JoinType.ROUND:sa<A&&(L=b.JoinType.MITER);break;case b.JoinType.MITER:sa>y&&(L=b.JoinType.BEVEL)}switch(L){case b.JoinType.MITER:t(H.x,H.y,-D.x,-D.y,0,-1);t(-H.x,-H.y,-D.x,-D.y,0,1);if(Ha)break;E&&(w=f?0:ka,N=this._writeVertex(ra,ta,da,la,C.x,C.y,H.x,H.y,0,-1,w),U=this._writeVertex(ra,ta,da,la,C.x,C.y,-H.x,-H.y,0,1,w));break;case b.JoinType.BEVEL:Ba=0>Ba;var O=void 0;Ba?(L=N,N=U,U=L,O=I,L=J):(O=J,L=I);var ha=void 0,pa=void 0;w?(ha=Ba?n(this._innerPrev,D):d(this._innerPrev,D),pa=Ba?d(this._innerNext,
C):n(this._innerNext,C)):ha=pa=Ba?r(this._inner,H):u(this._inner,H);sa=Ba?d(this._bevelStart,D):n(this._bevelStart,D);t(ha.x,ha.y,-D.x,-D.y,O.x,O.y);ha=t(sa.x,sa.y,-D.x,-D.y,L.x,L.y);if(Ha)break;Ha=Ba?n(this._bevelEnd,C):d(this._bevelEnd,C);w?(w=this._writeVertex(ra,ta,da,la,-D.x,-D.y,0,0,0,0,ka),N=this._writeVertex(ra,ta,da,la,C.x,C.y,pa.x,pa.y,O.x,O.y,ka),U=this._writeVertex(ra,ta,da,la,C.x,C.y,Ha.x,Ha.y,L.x,L.y,ka),this._writeTriangle(ha,w,U)):(E?(w=this._bevelMiddle,w.x=(sa.x+Ha.x)/2,w.y=(sa.y+
Ha.y)/2,g(K,w,-D.x,-D.y),t(w.x,w.y,-D.x,-D.y,K.x,K.y),g(K,w,C.x,C.y),N=this._writeVertex(ra,ta,da,la,C.x,C.y,w.x,w.y,K.x,K.y,ka),U=this._writeVertex(ra,ta,da,la,C.x,C.y,pa.x,pa.y,O.x,O.y,ka)):(w=N,N=U,U=w),t(Ha.x,Ha.y,C.x,C.y,L.x,L.y));Ba&&(w=N,N=U,U=w);break;case b.JoinType.ROUND:Ba=0>Ba;var ya=void 0;Ba?(L=N,N=U,U=L,L=I,ya=J):(L=J,ya=I);var Y=Ba?r(this._inner,H):u(this._inner,H);w?(pa=Ba?n(this._innerPrev,D):d(this._innerPrev,D),O=Ba?d(this._innerNext,C):n(this._innerNext,C)):O=pa=Y;ha=Ba?d(this._roundStart,
D):n(this._roundStart,D);var ea=Ba?n(this._roundEnd,C):d(this._roundEnd,C);pa=t(pa.x,pa.y,-D.x,-D.y,L.x,L.y);ha=t(ha.x,ha.y,-D.x,-D.y,ya.x,ya.y);if(Ha)break;Ha=this._writeVertex(ra,ta,da,la,-D.x,-D.y,0,0,0,0,ka);w||this._writeTriangle(N,U,Ha);Y=r(this._outer,Y);ya=this._writeVertex(ra,ta,da,la,C.x,C.y,ea.x,ea.y,ya.x,ya.y,ka);let S,fa;if(ea=2<sa){var ma=void 0;sa!==Number.MAX_VALUE?(Y.x/=sa,Y.y/=sa,ma=D.x*Y.x+D.y*Y.y,ma=(sa*(ma*ma-1)+1)/ma):ma=-1;S=Ba?d(this._startBreak,D):n(this._startBreak,D);S.x+=
D.x*ma;S.y+=D.y*ma;fa=Ba?n(this._endBreak,C):d(this._endBreak,C);fa.x+=C.x*ma;fa.y+=C.y*ma}g(K,Y,-D.x,-D.y);sa=this._writeVertex(ra,ta,da,la,-D.x,-D.y,Y.x,Y.y,K.x,K.y,ka);g(K,Y,C.x,C.y);Y=E?this._writeVertex(ra,ta,da,la,C.x,C.y,Y.x,Y.y,K.x,K.y,ka):sa;ma=Ha;const R=E?this._writeVertex(ra,ta,da,la,C.x,C.y,0,0,0,0,ka):Ha;let Q=-1,Z=-1;ea&&(g(K,S,-D.x,-D.y),Q=this._writeVertex(ra,ta,da,la,-D.x,-D.y,S.x,S.y,K.x,K.y,ka),g(K,fa,C.x,C.y),Z=this._writeVertex(ra,ta,da,la,C.x,C.y,fa.x,fa.y,K.x,K.y,ka));E?ea?
(this._writeTriangle(ma,ha,Q),this._writeTriangle(ma,Q,sa),this._writeTriangle(R,Y,Z),this._writeTriangle(R,Z,ya)):(this._writeTriangle(ma,ha,sa),this._writeTriangle(R,Y,ya)):ea?(this._writeTriangle(Ha,ha,Q),this._writeTriangle(Ha,Q,Z),this._writeTriangle(Ha,Z,ya)):(this._writeTriangle(Ha,ha,sa),this._writeTriangle(Ha,Y,ya));w?N=this._writeVertex(ra,ta,da,la,C.x,C.y,O.x,O.y,L.x,L.y,ka):(N=E?this._writeVertex(ra,ta,da,la,C.x,C.y,O.x,O.y,L.x,L.y,ka):pa,this._writeTriangle(N,R,ya));U=ya;Ba&&(w=N,N=U,
U=w)}}}};return p}();a.LineTessellation=k;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/webgl/definitions":function(){define(["exports"],function(a){a.ANGLE_FACTOR_256=256/360;a.ATTRIBUTE_DATA_ANIMATION=1;a.ATTRIBUTE_DATA_DD0=3;a.ATTRIBUTE_DATA_DD1=4;a.ATTRIBUTE_DATA_FILTER_FLAGS=0;a.ATTRIBUTE_DATA_GPGPU=2;a.ATTRIBUTE_DATA_VV=3;a.ATTRIBUTE_STORE_TEXTURE_SIZE=1024;a.AVERAGE_GLYPH_MOSAIC_ITEM={metrics:{width:15,height:17,left:0,top:-7,
advance:14}};a.BITSET_FILL_RANDOM_PATTERN_OFFSET=4;a.BITSET_GENERIC_CONSIDER_ALPHA_ONLY=16;a.BITSET_GENERIC_LOCK_COLOR=2;a.BITSET_LINE_SCALE_DASH=4;a.BITSET_MARKER_ALIGNMENT_MAP=1;a.BITSET_MARKER_ALIGNMENT_SCREEN=0;a.BITSET_MARKER_OUTLINE_ALLOW_COLOR_OVERRIDE=4;a.BITSET_MARKER_SCALE_SYMBOLS_PROPORTIONALLY=8;a.BITSET_TYPE_FILL_OUTLINE=1;a.BUFFER_DATA_MINIMUM_SIZE=128;a.BUFFER_DATA_POOL_SIZE=4;a.CHART_MAX_FIELDS=10;a.COLLISION_BOX_PADDING=16;a.COLLISION_BUCKET_SIZE=128;a.COLLISION_EARLY_REJECT_BUCKET_SIZE=
16;a.COLLISION_MAX_ZOOM_DELTA=1;a.COLLISION_PLACEMENT_PADDING=8;a.COLLISION_TILE_BOX_SIZE=4;a.DEBUG_LABELS=!1;a.DISPLAY_RECORD_INT_PER_ELEMENT=8;a.DOT_DENSITY_MAX_FIELDS=8;a.EFFECT_FLAG_0=4;a.ENABLE_EARLY_LABEL_DISCARD=!1;a.EXTRUDE_SCALE=64;a.FILTER_FLAG_0=2;a.GLYPH_SIZE=24;a.HEURISTIC_GLYPHS_PER_FEATURE=10;a.HEURISTIC_GLYPHS_PER_LINE=50;a.HIGHLIGHT_FLAG=1;a.HITTEST_RADIUS=3;a.MAGIC_LABEL_LINE_HEIGHT=29;a.MAX_FILTERS=2;a.MAX_GPU_UPLOADS_PER_FRAME=2;a.MIN_MAX_ZOOM_PRECISION_FACTOR=10;a.NAN_MAGIC_NUMBER=
1E-30;a.PATCH_PIXEL_BUFFER_ALLOC_SIZE=500;a.PATTERN_FILL_RASTERIZATION_SCALE=2;a.PICTURE_FILL_COLOR=4294967295;a.RANDOM_INSIDE_POLYGON_TEXTURE_SIZE=1024;a.RASTER_TILE_SIZE=256;a.SPRITE_PADDING=2;a.TEXTURE_BINDING_ATTRIBUTE_DATA_0=1;a.TEXTURE_BINDING_ATTRIBUTE_DATA_1=2;a.TEXTURE_BINDING_ATTRIBUTE_DATA_2=3;a.TEXTURE_BINDING_ATTRIBUTE_DATA_3=4;a.TEXTURE_BINDING_ATTRIBUTE_DATA_4=5;a.TEXTURE_BINDING_ATTRIBUTE_DATA_5=6;a.TEXTURE_BINDING_BITMAP=0;a.TEXTURE_BINDING_GLYPH_ATLAS=0;a.TEXTURE_BINDING_GPGPU=12;
a.TEXTURE_BINDING_HIGHLIGHT_0=5;a.TEXTURE_BINDING_HIGHLIGHT_1=6;a.TEXTURE_BINDING_RENDERER_0=5;a.TEXTURE_BINDING_RENDERER_1=6;a.TEXTURE_BINDING_SPRITE_ATLAS=0;a.TEXTURE_UPLOAD_MANAGER_BUDGET=4;a.TEXTURE_UPLOAD_MANAGER_CHUNK_SIZE=128;a.TEXT_PLACEMENT_PADDING=8;a.THIN_LINE_HALF_WIDTH_THRESHOLD=1.05;a.TILE_SIZE=512;a.VTL_HIGH_RES_CUTOFF=1.15;a.VTL_TEXTURE_BINDING_UNIT_GLYPHS=6;a.VTL_TEXTURE_BINDING_UNIT_SPRITES=5;a.WEBGL_MAX_INNER_STOPS=6;a.WEBGL_MAX_STOPS=8;Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/buckets/SymbolBucket":function(){define("../../../../../chunks/_rollupPluginBabelHelpers ../../../../../core/BidiEngine ../../../../../core/string ../enums ../GeometryUtils ../Placement ../TextShaping ./BaseBucket ../style/StyleDefinition ../style/StyleLayer ../../webgl/Geometry".split(" "),function(a,b,c,e,d,n,u,r,h,g,k){function p(l,m){return l.iconMosaicItem&&m.iconMosaicItem?l.iconMosaicItem.page===m.iconMosaicItem.page?
0:l.iconMosaicItem.page-m.iconMosaicItem.page:l.iconMosaicItem&&!m.iconMosaicItem?1:!l.iconMosaicItem&&m.iconMosaicItem?-1:0}r=function(l){function m(f,q,v,x,z,y,A,B){f=l.call(this,f,q,B.getSpriteItems())||this;f.type=e.BucketType.SYMBOL;f._markerMap=new Map;f._glyphMap=new Map;f._glyphBufferDataStorage=new Map;f._isIconSDF=!1;f._iconVertexBuffer=v;f._iconIndexBuffer=x;f._textVertexBuffer=z;f._textIndexBuffer=y;f._placementEngine=A;f._workerTileHandler=B;return f}a._inheritsLoose(m,l);var t=m.prototype;
t.getResources=function(f,q,v){const x=this.layer,z=this.zoom;f&&f.setExtent(this.layerExtent);const y=x.getLayoutProperty("icon-image"),A=x.getLayoutProperty("text-field");let B=x.getLayoutProperty("text-transform"),E=x.getLayoutProperty("text-font");const w=[];let D;y&&!y.isDataDriven&&(D=y.getValue(z));let C;A&&!A.isDataDriven&&(C=A.getValue(z));let F;B&&B.isDataDriven||(F=x.getLayoutValue("text-transform",z),B=null);let G;E&&E.isDataDriven||(G=x.getLayoutValue("text-font",z),E=null);for(const K of this._features){var H=
K.getGeometry(f);if(!H||0===H.length)continue;let N;y&&(N=y.isDataDriven?y.getValue(z,K):this._replaceKeys(D,K.values))&&q(N);let U;var I=!1;if(A&&(U=A.isDataDriven?A.getValue(z,K):this._replaceKeys(C,K.values))){U=U.replace(/\\n/g,"\n");B&&(F=B.getValue(z,K));switch(F){case h.TextTransform.LOWERCASE:U=U.toLowerCase();break;case h.TextTransform.UPPERCASE:U=U.toUpperCase()}m._bidiEngine.hasBidiChar(U)&&(I="rtl"===m._bidiEngine.checkContextual(U)?"IDNNN":"ICNNN",U=m._bidiEngine.bidiTransform(U,I,"VLYSN"),
I=!0);var J=U.length;if(0<J){E&&(G=E.getValue(z,K));for(const ba of G){let ka=v[ba];ka||(ka=v[ba]=new Set);for(let P=0;P<J;P++){const V=U.charCodeAt(P);ka.add(V)}}}}if(N||U)J=x.getLayoutValue("symbol-sort-key",z,K),H={feature:K,sprite:N,label:U,rtl:I,geometry:H,hash:(U?c.numericHash(U):0)^(N?c.numericHash(N):0),priority:J,textFont:G},w.push(H)}this._symbolFeatures=w};t.processFeatures=function(f){f&&f.setExtent(this.layerExtent);var q=this.layer;f=this.zoom;const v=q.getLayoutValue("symbol-placement",
f),x=v!==h.SymbolPlacement.POINT,z=q.getLayoutValue("symbol-spacing",f)*n.TILE_PIXEL_RATIO;var y=q.getLayoutProperty("icon-image"),A=q.getLayoutProperty("text-field");const B=y?new g.IconLayout(q,f,x):null;q=A?new g.TextLayout(q,f,x):null;const E=this._workerTileHandler;let w;y&&(w=E.getSpriteItems());this._iconIndexStart=3*this._iconIndexBuffer.index;this._textIndexStart=3*this._textIndexBuffer.index;this._textIndexCount=this._iconIndexCount=0;this._markerMap.clear();this._glyphMap.clear();y=[];
A=1;q&&q.size&&(A=q.size/u.SDF_GLYPH_SIZE);const D=q?q.maxAngle*d.C_DEG_TO_RAD:0,C=q?q.size*n.TILE_PIXEL_RATIO:0;for(const I of this._symbolFeatures){let J;B&&w&&I.sprite&&(J=w[I.sprite])&&J.sdf&&(this._isIconSDF=!0);J&&B.update(f,I.feature);var F=void 0,G=0,H=I.label;if(H){q.update(f,I.feature);F=x&&q.rotationAlignment===h.RotationAlignment.MAP?q.keepUpright:q.writingMode&&q.writingMode.includes(h.TextWritingMode.VERTICAL);let K=.5;switch(q.anchor){case h.SymbolAnchor.TOP_LEFT:case h.SymbolAnchor.LEFT:case h.SymbolAnchor.BOTTOM_LEFT:K=
0;break;case h.SymbolAnchor.TOP_RIGHT:case h.SymbolAnchor.RIGHT:case h.SymbolAnchor.BOTTOM_RIGHT:K=1}let N=.5;switch(q.anchor){case h.SymbolAnchor.TOP_LEFT:case h.SymbolAnchor.TOP:case h.SymbolAnchor.TOP_RIGHT:N=0;break;case h.SymbolAnchor.BOTTOM_LEFT:case h.SymbolAnchor.BOTTOM:case h.SymbolAnchor.BOTTOM_RIGHT:N=1}let U=.5;switch(q.justify){case h.TextJustification.AUTO:U=K;break;case h.TextJustification.LEFT:U=0;break;case h.TextJustification.RIGHT:U=1}const ba=q.letterSpacing*u.SDF_GLYPH_SIZE,ka=
x?0:q.maxWidth*u.SDF_GLYPH_SIZE,P=q.lineHeight*u.SDF_GLYPH_SIZE,V=I.textFont.map(ca=>E.getGlyphItems(ca));if((F=(new u.TextShaping(V,ka,P,ba,K,N,U)).getShaping(H,I.rtl,F))&&0<F.length){G=1E30;H=-1E30;for(const ca of F)G=Math.min(G,ca.x),H=Math.max(H,ca.x);G=(H-G+2*u.SDF_GLYPH_SIZE)*A*n.TILE_PIXEL_RATIO}}for(let K of I.geometry){H=[];v===h.SymbolPlacement.LINE?(F&&0<F.length&&q&&q.size&&(K=m._smoothVertices(K,q.size*n.TILE_PIXEL_RATIO*(2+Math.min(2,4*Math.abs(q.offset[1]))))),m._pushAnchors(H,K,z,
G)):v===h.SymbolPlacement.LINE_CENTER?m._pushCenterAnchor(H,K):I.feature.type===k.GeometryType.Polygon?m._pushCentroid(H,K):H.push(new n.Anchor(K[0].x,K[0].y));for(const N of H)0>N.x||N.x>n.TILE_COORD_SIZE||0>N.y||N.y>n.TILE_COORD_SIZE||x&&0<G&&q.rotationAlignment===h.RotationAlignment.MAP&&!m._honorsTextMaxAngle(K,N,G,D,C)||(H={shaping:F,line:K,iconMosaicItem:J,anchor:N,symbolFeature:I,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]},y.push(H),this._processFeature(H,B,q))}}y.sort(p);
this._addPlacedGlyphs();this._symbolInstances=y};t.serialize=function(){var f=11+this.layerUIDs.length;f+=3*this.markerPageMap.size;f+=3*this.glyphsPageMap.size;f+=m._symbolsSerializationLength(this._symbolInstances);f+=this._iconVertexBuffer.array.length;f+=this._iconIndexBuffer.array.length;f+=this._textVertexBuffer.array.length;f+=this._textIndexBuffer.array.length;f=new Uint32Array(f);var q=new Int32Array(f.buffer),v=new Float32Array(f.buffer);let x=0;f[x++]=this.type;f[x++]=this.layerUIDs.length;
for(let z=0;z<this.layerUIDs.length;z++)f[x++]=this.layerUIDs[z];f[x++]=this._isIconSDF?1:0;f[x++]=this.markerPageMap.size;for(const [z,[y,A]]of this.markerPageMap)f[x++]=z,f[x++]=y,f[x++]=A;f[x++]=this.glyphsPageMap.size;for(const [z,[y,A]]of this.glyphsPageMap)f[x++]=z,f[x++]=y,f[x++]=A;f[x++]=this._iconVertexBuffer.index/4;f[x++]=this._textVertexBuffer.index/4;x=m.serializeSymbols(f,q,v,x,this._symbolInstances);f[x++]=this._iconVertexBuffer.array.length;for(v=0;v<this._iconVertexBuffer.array.length;v++)q[x++]=
this._iconVertexBuffer.array[v];f[x++]=this._iconIndexBuffer.array.length;for(v=0;v<this._iconIndexBuffer.array.length;v++)f[x++]=this._iconIndexBuffer.array[v];f[x++]=this._textVertexBuffer.array.length;for(v=0;v<this._textVertexBuffer.array.length;v++)q[x++]=this._textVertexBuffer.array[v];f[x++]=this._textIndexBuffer.array.length;for(q=0;q<this._textIndexBuffer.array.length;q++)f[x++]=this._textIndexBuffer.array[q];return f.buffer};m._symbolsSerializationLength=function(f){let q;q=1;for(const v of f||
[]){q+=4;q+=1;for(const x of v.textColliders)q+=10;for(const x of v.iconColliders)q+=10;q+=1;q+=2*v.textVertexRanges.length;q+=1;q+=2*v.iconVertexRanges.length}return q};m.serializeSymbols=function(f,q,v,x,z){z=z||[];q[x++]=z.length;for(const y of z){q[x++]=y.anchor.x;q[x++]=y.anchor.y;q[x++]=y.symbolFeature.hash;q[x++]=y.symbolFeature.priority;q[x++]=y.textColliders.length+y.iconColliders.length;for(const A of y.textColliders)q[x++]=A.xTile,q[x++]=A.yTile,q[x++]=A.dxPixels,q[x++]=A.dyPixels,q[x++]=
A.hard?1:0,q[x++]=A.partIndex,v[x++]=A.minLod,v[x++]=A.maxLod,q[x++]=A.width,q[x++]=A.height;for(const A of y.iconColliders)q[x++]=A.xTile,q[x++]=A.yTile,q[x++]=A.dxPixels,q[x++]=A.dyPixels,q[x++]=A.hard?1:0,q[x++]=A.partIndex,v[x++]=A.minLod,v[x++]=A.maxLod,q[x++]=A.width,q[x++]=A.height;q[x++]=y.textVertexRanges.length;for(const [A,B]of y.textVertexRanges)q[x++]=A,q[x++]=B;q[x++]=y.iconVertexRanges.length;for(const [A,B]of y.iconVertexRanges)q[x++]=A,q[x++]=B}return x};t._replaceKeys=function(f,
q){return f.replace(/{([^{}]+)}/g,(v,x)=>x in q?q[x]:"")};t._processFeature=function(f,q,v){const {line:x,iconMosaicItem:z,shaping:y,anchor:A}=f,B=this.zoom;var E=this.layer,w=!!z,D=!0;w&&(D=q.optional||!z);var C=y&&0<y.length,F=!0;C&&(F=v.optional);var G;w&&(G=this._placementEngine.getIconPlacement(A,z,q));if(G||D){var H;C&&(H=this._placementEngine.getTextPlacement(A,y,x,v));if(H||F){G&&H||(F||D?F||H?D||G||(H=null):G=null:H=G=null);if(H&&(w=E.hasDataDrivenText?E.textMaterial.encodeAttributes(f.symbolFeature.feature,
B,E):null,this._storePlacedGlyphs(f,H.shapes,B,v.rotationAlignment,w),H.textColliders)){f.textColliders=H.textColliders;for(var I of H.textColliders)if(I.minLod=Math.max(B+d.log2(I.minLod),0),I.maxLod=Math.min(B+d.log2(I.maxLod),25),v=I.angle){D=Math.cos(v);var J=Math.sin(v);C=I.dxPixels*D-I.dyPixels*J;v=I.dxPixels*J+I.dyPixels*D;F=(I.dxPixels+I.width)*D-I.dyPixels*J;H=(I.dxPixels+I.width)*J+I.dyPixels*D;const K=I.dxPixels*D-(I.dyPixels+I.height)*J;w=I.dxPixels*J+(I.dyPixels+I.height)*D;const N=(I.dxPixels+
I.width)*D-(I.dyPixels+I.height)*J;J=(I.dxPixels+I.width)*J+(I.dyPixels+I.height)*D;D=Math.min(C,F,K,N);C=Math.max(C,F,K,N);F=Math.min(v,H,w,J);v=Math.max(v,H,w,J);I.dxPixels=D;I.dyPixels=F;I.width=C-D;I.height=v-F}}if(G&&(E=E.hasDataDrivenIcon?E.iconMaterial.encodeAttributes(f.symbolFeature.feature,B,E):null,this._addPlacedIcons(f,G.shapes,B,z.page,q.rotationAlignment===h.RotationAlignment.VIEWPORT,E),G.iconColliders)){f.iconColliders=G.iconColliders;for(const K of G.iconColliders)if(K.minLod=Math.max(B+
d.log2(K.minLod),0),K.maxLod=Math.min(B+d.log2(K.maxLod),25),f=K.angle)E=Math.cos(f),D=Math.sin(f),I=K.dxPixels*E-K.dyPixels*D,f=K.dxPixels*D+K.dyPixels*E,v=(K.dxPixels+K.width)*E-K.dyPixels*D,q=(K.dxPixels+K.width)*D+K.dyPixels*E,H=K.dxPixels*E-(K.dyPixels+K.height)*D,G=K.dxPixels*D+(K.dyPixels+K.height)*E,w=(K.dxPixels+K.width)*E-(K.dyPixels+K.height)*D,D=(K.dxPixels+K.width)*D+(K.dyPixels+K.height)*E,E=Math.min(I,v,H,w),I=Math.max(I,v,H,w),v=Math.min(f,q,G,D),f=Math.max(f,q,G,D),K.dxPixels=E,K.dyPixels=
v,K.width=I-E,K.height=f-v}}}};t._addPlacedIcons=function(f,q,v,x,z,y){const A=Math.max(v-1,0),B=this._iconVertexBuffer,E=this._iconIndexBuffer,w=this._markerMap;for(const C of q){q=z?0:Math.max(v+d.log2(C.minzoom),A);const F=z?25:Math.min(v+d.log2(C.maxzoom),25);if(F<=q)continue;const G=C.tl,H=C.tr,I=C.bl,J=C.br;var D=C.mosaicRect;const K=C.labelAngle,N=C.minAngle,U=C.maxAngle,ba=C.anchor,ka=B.index,P=D.x,V=D.y,ca=P+D.width;D=V+D.height;const ra=B.index;B.add(ba.x,ba.y,G.x,G.y,P,V,K,N,U,q,F,y);B.add(ba.x,
ba.y,H.x,H.y,ca,V,K,N,U,q,F,y);B.add(ba.x,ba.y,I.x,I.y,P,D,K,N,U,q,F,y);B.add(ba.x,ba.y,J.x,J.y,ca,D,K,N,U,q,F,y);0<f.iconVertexRanges.length&&f.iconVertexRanges[0][0]+f.iconVertexRanges[0][1]===ra?f.iconVertexRanges[0][1]+=4:f.iconVertexRanges.push([ra,4]);E.add(ka+0,ka+1,ka+2);E.add(ka+1,ka+2,ka+3);w.has(x)?w.get(x)[1]+=6:w.set(x,[this._iconIndexStart+this._iconIndexCount,6]);this._iconIndexCount+=6}};t._addPlacedGlyphs=function(){const f=this._textVertexBuffer,q=this._textIndexBuffer,v=this._glyphMap;
for(const [x,z]of this._glyphBufferDataStorage)for(const y of z){const A=f.index,B=y.symbolInstance,E=y.ddAttributes,w=f.index;f.add(y.glyphAnchor[0],y.glyphAnchor[1],y.tl[0],y.tl[1],y.xmin,y.ymin,y.labelAngle,y.minAngle,y.maxAngle,y.minLod,y.maxLod,E);f.add(y.glyphAnchor[0],y.glyphAnchor[1],y.tr[0],y.tr[1],y.xmax,y.ymin,y.labelAngle,y.minAngle,y.maxAngle,y.minLod,y.maxLod,E);f.add(y.glyphAnchor[0],y.glyphAnchor[1],y.bl[0],y.bl[1],y.xmin,y.ymax,y.labelAngle,y.minAngle,y.maxAngle,y.minLod,y.maxLod,
E);f.add(y.glyphAnchor[0],y.glyphAnchor[1],y.br[0],y.br[1],y.xmax,y.ymax,y.labelAngle,y.minAngle,y.maxAngle,y.minLod,y.maxLod,E);0<B.textVertexRanges.length&&B.textVertexRanges[0][0]+B.textVertexRanges[0][1]===w?B.textVertexRanges[0][1]+=4:B.textVertexRanges.push([w,4]);q.add(A+0,A+1,A+2);q.add(A+1,A+2,A+3);v.has(x)?v.get(x)[1]+=6:v.set(x,[this._textIndexStart+this._textIndexCount,6]);this._textIndexCount+=6}this._glyphBufferDataStorage.clear()};t._storePlacedGlyphs=function(f,q,v,x,z){const y=Math.max(v-
1,0);x=x===h.RotationAlignment.VIEWPORT;let A,B,E,w,D,C,F,G,H,I;for(const J of q)q=x?0:Math.max(v+d.log2(J.minzoom),y),A=x?25:Math.min(v+d.log2(J.maxzoom),25),A<=q||(B=J.tl,E=J.tr,w=J.bl,D=J.br,C=J.labelAngle,F=J.minAngle,G=J.maxAngle,H=J.anchor,I=J.mosaicRect,this._glyphBufferDataStorage.has(J.page)||this._glyphBufferDataStorage.set(J.page,[]),this._glyphBufferDataStorage.get(J.page).push({glyphAnchor:[H.x,H.y],tl:[B.x,B.y],tr:[E.x,E.y],bl:[w.x,w.y],br:[D.x,D.y],xmin:I.x,ymin:I.y,xmax:I.x+I.width,
ymax:I.y+I.height,labelAngle:C,minAngle:F,maxAngle:G,minLod:q,maxLod:A,placementLod:y,symbolInstance:f,ddAttributes:z}))};m._pushAnchors=function(f,q,v,x){v+=x;var z=0,y=q.length-1;for(var A=0;A<y;A++)z+=k.Point.distance(q[A],q[A+1]);x=.5*(x||v);if(!(z<=x)){x/=z;v=z/Math.max(Math.round(z/v),1);z=0;y=-v/2;A=q.length-1;for(let E=0;E<A;E++){const w=q[E],D=q[E+1],C=D.x-w.x,F=D.y-w.y,G=Math.sqrt(C*C+F*F);let H;for(;y+v<z+G;){y+=v;var B=(y-z)/G;const I=d.interpolate(w.x,D.x,B);B=d.interpolate(w.y,D.y,B);
void 0===H&&(H=Math.atan2(F,C));f.push(new n.Anchor(I,B,H,E,x))}z+=G}}};m._pushCenterAnchor=function(f,q){var v=0,x=q.length-1;for(var z=0;z<x;z++)v+=k.Point.distance(q[z],q[z+1]);var y=v/2;let A=0;const B=q.length-1;for(v=0;v<B;v++){var E=q[v];const w=q[v+1];x=w.x-E.x;z=w.y-E.y;const D=Math.sqrt(x*x+z*z);if(y<A+D){y=(y-A)/D;q=d.interpolate(E.x,w.x,y);E=d.interpolate(E.y,w.y,y);f.push(new n.Anchor(q,E,Math.atan2(z,x),v,0));break}A+=D}};m._deviation=function(f,q,v){return Math.atan2((q.x-f.x)*(v.y-
q.y)-(q.y-f.y)*(v.x-q.x),(q.x-f.x)*(v.x-q.x)+(q.y-f.y)*(v.y-q.y))};m._honorsTextMaxAngle=function(f,q,v,x,z){let y=0;v/=2;for(var A=new k.Point(q.x,q.y),B=q.segment+1;y>-v;){--B;if(0>B)return!1;y-=k.Point.distance(f[B],A);A=f[B]}y+=k.Point.distance(f[B],f[B+1]);q=[];A=0;const E=f.length;for(;y<v;){var w=f[B];let D;do{++B;if(B===E)return!1;D=f[B]}while(D.isEqual(w));let C=B,F;do{++C;if(C===E)return!1;F=f[C]}while(F.isEqual(D));w=this._deviation(w,D,F);q.push({deviation:w,distToAnchor:y});for(A+=w;y-
q[0].distToAnchor>z;)A-=q.shift().deviation;if(Math.abs(A)>x)return!1;y+=k.Point.distance(D,F)}return!0};m._smoothVertices=function(f,q){if(0>=q)return f;let v=f.length;if(3>v)return f;const x=[];var z=0,y=0;x.push(0);for(var A=1;A<v;A++){var B=k.Point.distance(f[A],f[A-1]);0<B&&(z+=B,x.push(z),y++,y!==A&&(f[y]=f[A]))}v=y+1;if(3>v)return f;q=Math.min(q,.2*z);z=f[0].x;y=f[0].y;A=f[v-1].x;B=f[v-1].y;var E=k.Point.sub(f[0],f[1]);E.normalize();f[0].x+=q*E.x;f[0].y+=q*E.y;E.assignSub(f[v-1],f[v-2]);E.normalize();
f[v-1].x+=q*E.x;f[v-1].y+=q*E.y;x[0]-=q;x[v-1]+=q;E=[];E.push(new k.Point(z,y));const w=.5*q;for(let ba=1;ba<v-1;ba++){let ka=0,P=0,V=0;for(var D=ba-1;0<=D;D--){var C=w+x[D+1]-x[ba];if(0>C)break;var F=x[D+1]-x[D],G=x[ba]-x[D]<w?1:C/F;if(1E-6>G)break;var H=G*G,I=G*C-.5*H*F,J=G*F/q,K=f[D+1],N=f[D].x-K.x,U=f[D].y-K.y;ka+=J/I*(K.x*G*C+.5*H*(C*N-F*K.x)-H*G*F*N/3);P+=J/I*(K.y*G*C+.5*H*(C*U-F*K.y)-H*G*F*U/3);V+=J}for(D=ba+1;D<v;D++){C=w-x[D-1]+x[ba];if(0>C)break;F=x[D]-x[D-1];G=x[D]-x[ba]<w?1:C/F;if(1E-6>
G)break;H=G*G;I=G*C-.5*H*F;J=G*F/q;K=f[D-1];N=f[D].x-K.x;U=f[D].y-K.y;ka+=J/I*(K.x*G*C+.5*H*(C*N-F*K.x)-H*G*F*N/3);P+=J/I*(K.y*G*C+.5*H*(C*U-F*K.y)-H*G*F*U/3);V+=J}E.push(new k.Point(ka/V,P/V))}E.push(new k.Point(A,B));f[0].x=z;f[0].y=y;f[v-1].x=A;f[v-1].y=B;return E};m._pushCentroid=function(f,q){const v=q.length-1;let x=0,z=0,y=0,A=q[0].x,B=q[0].y;4096<A&&(A=4096);0>A&&(A=0);4096<B&&(B=4096);0>B&&(B=0);for(let E=1;E<v;E++){let w=q[E].x,D=q[E].y,C=q[E+1].x,F=q[E+1].y;4096<w&&(w=4096);0>w&&(w=0);
4096<D&&(D=4096);0>D&&(D=0);4096<C&&(C=4096);0>C&&(C=0);4096<F&&(F=4096);0>F&&(F=0);const G=(w-A)*(F-B)-(C-A)*(D-B);x+=G*(A+w+C);z+=G*(B+D+F);y+=G}x/=3*y;z/=3*y;isNaN(x)||isNaN(z)||f.push(new n.Anchor(x,z))};a._createClass(m,[{key:"markerPageMap",get:function(){return this._markerMap}},{key:"glyphsPageMap",get:function(){return this._glyphMap}},{key:"symbolInstances",get:function(){return this._symbolInstances}}]);return m}(r);r._bidiEngine=new b;return r})},"esri/core/BidiEngine":function(){define(["./bidiEngineTables"],
function(a){function b(A,B,E,w,D){var C=A;void 0===B&&(B=D.defInFormat);void 0===E&&(E=D.defOutFormat);void 0===w&&(w=D.defSwap);if(B!==E){var F=B.substring(0,1),G=E.substring(0,1);var H=B.substring(1,4);var I=E.substring(1,4);"C"===H.charAt(0)&&(H=c(C),H="ltr"===H||"rtl"===H?H.toUpperCase():"L"===B.charAt(2)?"LTR":"RTL",B=F+H);"C"===I.charAt(0)&&(H=c(C),"rtl"===H?I="RTL":"ltr"===H?(C=C.split(""),C.reverse(),H=c(C.join("")),I=H.toUpperCase()):I="L"===E.charAt(2)?"LTR":"RTL",E=G+I)}if(B===E)return A;
G=B.substring(0,1);C=B.substring(1,4);F=E.substring(0,1);I=E.substring(1,4);D.inFormat=B;D.outFormat=E;D.swap=w;if("L"===G&&"VLTR"===E){if("LTR"===C)return D.dir=0,e(A,D);if("RTL"===C)return D.dir=1,e(A,D)}if("V"===G&&"V"===F)return D.dir="RTL"===C?1:0,n(A,D);if("L"===G&&"VRTL"===E)return D.dir="LTR"===C?0:1,A=e(A,D),n(A);if("VLTR"===B&&"LLTR"===E)return D.dir=0,e(A,D);if("V"===G&&"L"===F&&C!==I)return A=n(A),"RTL"===C?b(A,"LLTR","VLTR",w,D):b(A,"LRTL","VRTL",w,D);if("VRTL"===B&&"LRTL"===E)return b(A,
"LRTL","VRTL",w,D);"L"===G&&"L"===F&&(B=D.swap,D.swap=B.substr(0,1)+"N","RTL"===C?(D.dir=1,A=e(A,D),D.swap="N"+B.substr(1,2),D.dir=0,A=e(A,D)):(D.dir=0,A=e(A,D),D.swap="N"+B.substr(1,2),A=b(A,"VLTR","LRTL",D.swap,D)));return A}function c(A){return(A=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(A))?"z">=A[0]?"ltr":"rtl":""}function e(A,B){A=A.split("");const E=[];d(A,E,B);if(0!==B.hiLevel&&B.swap.substr(0,1)!==B.swap.substr(1,2))for(let C=0;C<A.length;C++)if(1===
E[C]){var w=C;b:{let F=void 0;var D=A[C];let G=0,H=a.SwapTable.length-1;for(;G<=H;)if(F=Math.floor((G+H)/2),D<a.SwapTable[F][0])H=F-1;else if(D>a.SwapTable[F][0])G=F+1;else{D=a.SwapTable[F][1];break b}}A[w]=D}h(2,A,E,B);h(1,A,E,B);v=E;return A.join("")}function d(A,B,E){const w=A.length;var D=E.dir?a.impTabRtl:a.impTabLtr,C=0,F=-1;const G=[],H=[];E.hiLevel=E.dir;E.lastArabic=!1;E.hasUbatAl=!1;E.hasUbatB=!1;E.hasUbatS=!1;for(var I=0;I<w;I++){var J=I,K=A[I].charCodeAt(0);const N=a.PrimaryTable[K>>8];
G[J]=N<a.TBBASE?N:a.UnicodeTable[N-a.TBBASE][K&255]}for(J=0;J<w;J++){I=g(A,G,H,J,E);H[J]=I;C=D[C][I];K=C&240;C&=15;I=D[C][5];B[J]=I;if(0<K){if(16===K)for(;F<J;F++)B[F]=1;F=-1}if(D[C][6])-1===F&&(F=J);else if(-1<F){for(;F<J;F++)B[F]=I;F=-1}G[J]===a.UBAT_B&&(B[J]=0);E.hiLevel|=I}if(E.hasUbatS)for(A=0;A<w;A++)if(G[A]===a.UBAT_S)for(B[A]=E.dir,D=A-1;0<=D;D--)if(G[D]===a.UBAT_WS)B[D]=E.dir;else break}function n(A,B){A=A.split("");if(B){const E=[];d(A,E,B);v=E}A.reverse();f.reverse();return A.join("")}
function u(A){for(let B=0;B<a.ArabicAlefBetIntervalsBegine.length;B++)if(A>=a.ArabicAlefBetIntervalsBegine[B]&&A<=a.ArabicAlefBetIntervalsEnd[B])return!0;return!1}function r(A,B,E,w){for(;B*E<w&&p(A[B]);)B+=E;return B*E<w&&u(A[B])?!0:!1}function h(A,B,E,w){if(!(w.hiLevel<A))if(1!==A||1!==w.dir||w.hasUbatB){w=B.length;for(var D=0,C,F,G;D<w;){if(E[D]>=A){for(C=D+1;C<w&&E[C]>=A;)C++;for(F=C-1;D<F;D++,F--)G=B[D],B[D]=B[F],B[F]=G,G=f[D],f[D]=f[F],f[F]=G;D=C}D++}}else B.reverse(),f.reverse()}function g(A,
B,E,w,D){return{UBAT_L:()=>{D.lastArabic=!1;return a.UBAT_L},UBAT_R:()=>{D.lastArabic=!1;return a.UBAT_R},UBAT_ON:()=>a.UBAT_ON,UBAT_AN:()=>a.UBAT_AN,UBAT_EN:()=>D.lastArabic?a.UBAT_AN:a.UBAT_EN,UBAT_AL:()=>{D.lastArabic=!0;D.hasUbatAl=!0;return a.UBAT_R},UBAT_WS:()=>a.UBAT_ON,UBAT_CS:()=>{let C,F;if(1>w||w+1>=B.length||(C=E[w-1])!==a.UBAT_EN&&C!==a.UBAT_AN||(F=B[w+1])!==a.UBAT_EN&&F!==a.UBAT_AN)return a.UBAT_ON;D.lastArabic&&(F=a.UBAT_AN);return F===C?F:a.UBAT_ON},UBAT_ES:()=>(0<w?E[w-1]:a.UBAT_B)===
a.UBAT_EN&&w+1<B.length&&B[w+1]===a.UBAT_EN?a.UBAT_EN:a.UBAT_ON,UBAT_ET:()=>{if(0<w&&E[w-1]===a.UBAT_EN)return a.UBAT_EN;if(D.lastArabic)return a.UBAT_ON;let C=w+1;const F=B.length;for(;C<F&&B[C]===a.UBAT_ET;)C++;return C<F&&B[C]===a.UBAT_EN?a.UBAT_EN:a.UBAT_ON},UBAT_NSM:()=>{if("VLTR"===D.inFormat){for(var C=B.length,F=w+1;F<C&&B[F]===a.UBAT_NSM;)F++;if(F<C&&(C=A[w].charCodeAt[0],F=B[F],(1425<=C&&2303>=C||64286===C)&&(F===a.UBAT_R||F===a.UBAT_AL)))return a.UBAT_R}return 1>w||B[w-1]===a.UBAT_B?a.UBAT_ON:
E[w-1]},UBAT_B:()=>{D.lastArabic=!0;D.hasUbatB=!0;return D.dir},UBAT_S:()=>{D.hasUbatS=!0;return a.UBAT_ON},UBAT_LRE:()=>{D.lastArabic=!1;return a.UBAT_ON},UBAT_RLE:()=>{D.lastArabic=!1;return a.UBAT_ON},UBAT_LRO:()=>{D.lastArabic=!1;return a.UBAT_ON},UBAT_RLO:()=>{D.lastArabic=!1;return a.UBAT_ON},UBAT_PDF:()=>{D.lastArabic=!1;return a.UBAT_ON},UBAT_BN:()=>a.UBAT_ON}[a.TYPES_NAMES[B[w]]]()}function k(A,B){for(let E=0;E<a.BaseForm.length;E++)if(A===a.BaseForm[E])return B[E];return A}function p(A){return"\u064b"<=
A&&"\u0655">=A?!0:!1}function l(A){return"L"===A?"LTR":"R"===A?"RTL":"C"===A?"CLR":"D"===A?"CRL":""}function m(A,B){for(let E=0;E<a.AlefTable.length;E++)if(A===a.AlefTable[E])return B[E];return A}function t(A,B,E,w){for(let D=0;D<A.length;D++)if(A[D]>B||!E&&A[D]===B)A[D]+=w}let f=[],q=[],v=[];const x={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},z=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,
y=/[\u0591-\u06ff\ufb1d-\ufefc]/;return function(){function A(){this.inputFormat="ILYNN";this.outputFormat="VLNNN";this.sourceToTarget=[];this.targetToSource=[];this.levels=[]}var B=A.prototype;B.bidiTransform=function(E,w,D){this.sourceToTarget=[];this.targetToSource=[];if(!E)return"";var C=this.sourceToTarget,F=this.targetToSource,G=E.length;f=[];v=[];for(var H=0;H<G;H++)C[H]=H,F[H]=H,f[H]=H;if(!this.checkParameters(w,D))return E;w=this.inputFormat;D=this.outputFormat;C=E;G=l(w.charAt(1));C=l(D.charAt(1));
H="I"===w.charAt(0)?"L":w.charAt(0);F="I"===D.charAt(0)?"L":D.charAt(0);G=H+G;C=F+C;F=w.charAt(2)+D.charAt(2);x.defInFormat=G;x.defOutFormat=C;x.defSwap=F;E=b(E,G,C,F,x);C=!1;if("R"===D.charAt(1))C=!0;else if("C"===D.charAt(1)||"D"===D.charAt(1))C="rtl"===this.checkContextual(E);F=this.sourceToTarget=f;G=Array(F.length);for(H=0;H<F.length;H++)G[F[H]]=H;q=this.targetToSource=G;if(w.charAt(3)===D.charAt(3))C=E;else if("S"===D.charAt(3))if(w=C,D=!0,0===E.length)C="";else{void 0===w&&(w=!0);void 0===
D&&(D=!0);E=String(E);E=E.split("");G=0;C=1;F=E.length;w||(G=E.length-1,C=-1,F=1);var I=G;G=D;var J=0;H=[];for(var K=0;I*C<F;I+=C)if(u(E[I])||p(E[I])){var N;if(N="\u0644"===E[I])b:{for(var U=E,ba=I+C,ka=C,P=F;ba*ka<P&&p(U[ba]);)ba+=ka;N=" ";if(ba*ka<P)for(N=U[ba],U=0;U<a.AlefTable.length;U++)if(a.AlefTable[U]===N){N=!0;break b}N=!1}if(N){E[I]=0===J?m(E[I+C],a.LamAlefInialTableFE):m(E[I+C],a.LamAlefMedialTableFE);I+=C;J=E;N=I;U=C;for(ba=F;N*U<ba&&p(J[N]);)N+=U;N*U<ba&&(J[N]=" ");G&&(H[K]=I,K++);J=
0}else{N=E[I];if(1===J){U=I;if(r(E,I+C,C,F))b:for(ba=E[I],ka=0;ka<a.BaseForm.length;ka++){if(ba===a.BaseForm[ka]){ba=a.MedialForm[ka];break b}}else ba=k(E[I],a.FinalForm);E[U]=ba}else!0===r(E,I+C,C,F)?E[I]=k(E[I],a.InitialForm):E[I]=k(E[I],a.IsolatedForm);p(N)||(J=1);b:{for(U=0;U<a.StandAlonForm.length;U++)if(a.StandAlonForm[U]===N){N=!0;break b}N=!1}!0===N&&(J=0)}}else J=0;C=H;F="";for(G=0;G<E.length;G++){if(H=D){b:{for(H=0;H<C.length;H++)if(C[H]===G)break b;H=-1}H=-1<H}H?(t(q,G,!w,-1),f.splice(G,
1)):F+=E[G]}C=F}else if(w=E,D=C,E=!0,0===w.length)C="";else for(void 0===E&&(E=!0),void 0===D&&(D=!0),w=String(w),C="",F=w.split(""),G=0;G<w.length;G++)H=!1,"\ufe70"<=F[G]&&"\ufeff">F[G]?(K=w.charCodeAt(G),"\ufef5"<=F[G]&&"\ufefc">=F[G]?(D?(0<G&&E&&" "===F[G-1]?C=C.substring(0,C.length-1)+"\u0644":(C+="\u0644",H=!0),C+=a.AlefTable[(K-65269)/2]):(C+=a.AlefTable[(K-65269)/2],C+="\u0644",G+1<w.length&&E&&" "===F[G+1]?G++:H=!0),H&&(t(q,G,!0,1),f.splice(G,0,f[G]))):C+=a.FETo06Table[K-65136]):C+=F[G];this.sourceToTarget=
f;this.targetToSource=q;this.levels=v;return C};B._inputFormatSetter=function(E){if(!z.test(E))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=E};B._outputFormatSetter=function(E){if(!z.test(E))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=E};B.checkParameters=function(E,w){E?this._inputFormatSetter(E):E=this.inputFormat;w?this._outputFormatSetter(w):w=this.outputFormat;return E===w?!1:!0};B.checkContextual=function(E){E=
c(E);if("ltr"!==E&&"rtl"!==E){try{E=document.dir.toLowerCase()}catch(w){}"ltr"!==E&&"rtl"!==E&&(E="ltr")}return E};B.hasBidiChar=function(E){return y.test(E)};return A}()})},"esri/core/bidiEngineTables":function(){define(["exports"],function(a){a.AlefTable=["\u0622","\u0623","\u0625","\u0627"];a.ArabicAlefBetIntervalsBegine=["\u0621","\u0641"];a.ArabicAlefBetIntervalsEnd=["\u063a","\u064a"];a.BaseForm="\u0627\u0628\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u064a\u0625\u0623\u0622\u0629\u0649\u0644\u0645\u0646\u0647\u0648\u064a\u0625\u0623\u0622\u0629\u0649\u06cc\u0626\u0624".split("");
a.FETo06Table="\u064b\u064b\u064c\u061f\u064d\u061f\u064e\u064e\u064f\u064f\u0650\u0650\u0651\u0651\u0652\u0652\u0621\u0622\u0622\u0623\u0623\u0624\u0624\u0625\u0625\u0626\u0626\u0626\u0626\u0627\u0627\u0628\u0628\u0628\u0628\u0629\u0629\u062a\u062a\u062a\u062a\u062b\u062b\u062b\u062b\u062c\u062c\u062c\u062c\u062d\u062d\u062d\u062d\u062e\u062e\u062e\u062e\u062f\u062f\u0630\u0630\u0631\u0631\u0632\u0632\u0633\u0633\u0633\u0633\u0634\u0634\u0634\u0634\u0635\u0635\u0635\u0635\u0636\u0636\u0636\u0636\u0637\u0637\u0637\u0637\u0638\u0638\u0638\u0638\u0639\u0639\u0639\u0639\u063a\u063a\u063a\u063a\u0641\u0641\u0641\u0641\u0642\u0642\u0642\u0642\u0643\u0643\u0643\u0643\u0644\u0644\u0644\u0644\u0645\u0645\u0645\u0645\u0646\u0646\u0646\u0646\u0647\u0647\u0647\u0647\u0648\u0648\u0649\u0649\u064a\u064a\u064a\u064a\ufef5\ufef6\ufef7\ufef8\ufef9\ufefa\ufefb\ufefc\u061f\u061f\u061f".split("");
a.FinalForm="\ufe8e\ufe90\ufe96\ufe9a\ufe9e\ufea2\ufea6\ufeaa\ufeac\ufeae\ufeb0\ufeb2\ufeb6\ufeba\ufebe\ufec2\ufec6\ufeca\ufece\ufed2\ufed6\ufeda\ufede\ufee2\ufee6\ufeea\ufeee\ufef2\ufe88\ufe84\ufe82\ufe94\ufef0\ufbfd\ufe8a\ufe86\ufe70\ufe72\ufe74\ufe76\ufe78\ufe7a\ufe7c\ufe7e\ufe80\ufe8a\ufe86".split("");a.InitialForm="\ufe8d\ufe91\ufe97\ufe9b\ufe9f\ufea3\ufea7\ufea9\ufeab\ufead\ufeaf\ufeb3\ufeb7\ufebb\ufebf\ufec3\ufec7\ufecb\ufecf\ufed3\ufed7\ufedb\ufedf\ufee3\ufee7\ufeeb\ufeed\ufef3\ufe87\ufe83\ufe81\ufe93\ufeef\ufbfe\ufe8b\ufe85\ufe70\ufe72\ufe74\ufe76\ufe78\ufe7a\ufe7c\ufe7e\ufe80\ufe8b\ufe85".split("");
a.IsolatedForm="\ufe8d\ufe8f\ufe95\ufe99\ufe9d\ufea1\ufea5\ufea9\ufeab\ufead\ufeaf\ufeb1\ufeb5\ufeb9\ufebd\ufec1\ufec5\ufec9\ufecd\ufed1\ufed5\ufed9\ufedd\ufee1\ufee5\ufee9\ufeed\ufef1\ufe87\ufe83\ufe81\ufe93\ufeef\ufbfc\ufe89\ufe85\ufe70\ufe72\ufe74\ufe76\ufe78\ufe7a\ufe7c\ufe7e\ufe80\ufe89\ufe85".split("");a.LamAlefInialTableFE=["\ufef5","\ufef7","\ufef9","\ufefb"];a.LamAlefMedialTableFE=["\ufef6","\ufef8","\ufefa","\ufefc"];a.MedialForm="\ufe8e\ufe92\ufe98\ufe9c\ufea0\ufea4\ufea8\ufeaa\ufeac\ufeae\ufeb0\ufeb4\ufeb8\ufebc\ufec0\ufec4\ufec8\ufecc\ufed0\ufed4\ufed8\ufedc\ufee0\ufee4\ufee8\ufeec\ufeee\ufef4\ufe88\ufe84\ufe82\ufe94\ufef0\ufbff\ufe8c\ufe86\ufe71\ufe72\ufe74\ufe77\ufe79\ufe7b\ufe7d\ufe7f\ufe80\ufe8c\ufe86".split("");
a.PrimaryTable=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,
4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107];a.StandAlonForm="\u0621\u0622\u0623\u0624\u0625\u0627\u0629\u062f\u0630\u0631\u0632\u0648\u0649".split("");a.SwapTable=[["(",")"],[")","("],["\x3c","\x3e"],["\x3e","\x3c"],["[","]"],["]","["],["{","}"],["}","{"],["\u00ab","\u00bb"],["\u00bb","\u00ab"],["\u2039","\u203a"],["\u203a","\u2039"],["\u207d","\u207e"],["\u207e","\u207d"],["\u208d","\u208e"],["\u208e","\u208d"],["\u2264","\u2265"],["\u2265","\u2264"],["\u2329","\u232a"],["\u232a","\u2329"],["\ufe59",
"\ufe5a"],["\ufe5a","\ufe59"],["\ufe5b","\ufe5c"],["\ufe5c","\ufe5b"],["\ufe5d","\ufe5e"],["\ufe5e","\ufe5d"],["\ufe64","\ufe65"],["\ufe65","\ufe64"]];a.TBBASE=100;a.TYPES_NAMES="UBAT_L UBAT_R UBAT_EN UBAT_AN UBAT_ON UBAT_B UBAT_S UBAT_AL UBAT_WS UBAT_CS UBAT_ES UBAT_ET UBAT_NSM UBAT_LRE UBAT_RLE UBAT_PDF UBAT_LRO UBAT_RLO UBAT_BN".split(" ");a.UBAT_AL=7;a.UBAT_AN=3;a.UBAT_B=5;a.UBAT_BN=18;a.UBAT_CS=9;a.UBAT_EN=2;a.UBAT_ES=10;a.UBAT_ET=11;a.UBAT_L=0;a.UBAT_LRE=13;a.UBAT_LRO=16;a.UBAT_NSM=12;a.UBAT_ON=
4;a.UBAT_PDF=15;a.UBAT_R=1;a.UBAT_RLE=14;a.UBAT_RLO=17;a.UBAT_S=6;a.UBAT_WS=8;a.UnicodeTable=[[18,18,18,18,18,18,18,18,18,6,5,6,8,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,5,5,5,6,8,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,18,18,18,18,18,18,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,9,4,11,11,11,11,4,4,4,4,0,
4,4,18,4,4,11,11,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,
12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,12,12,1,12,12,1,12,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,11,11,7,9,7,4,4,12,12,12,12,12,12,12,12,12,12,12,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,3,3,3,3,3,3,3,3,3,3,11,3,3,7,7,7,12,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,3,4,12,12,12,12,12,12,7,7,12,12,4,12,12,12,12,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,7,7,7,7,7,7,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,18,18,18,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,11,11,11,11,11,4,4,4,4,4,4,4,
4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,18,18,18,18,18,4,4,4,4,4,18,18,18,18,18,18,2,0,4,4,2,2,2,2,2,2,10,10,4,4,4,0,2,2,2,2,2,2,2,2,2,2,10,10,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,
4,4,0,0,0,0,0,4,4,4,4,4,1,12,1,1,1,1,1,1,1,1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[12,12,12,12,12,12,12,
12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,11,4,4,10,10,4,4,4,4,4,11,11,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
7,7,7,7,7,7,4,4,18],[4,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,11,11,4,4,4,11,11,4,4,4,4,4,
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];a.impTabLtr=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]];a.impTabRtl=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]];Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/style/StyleLayer":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ../enums ../shaders/VTLBackgroundMaterial ../shaders/VTLCircleMaterial ../shaders/VTLFillMaterial ../shaders/VTLLineMaterial ../shaders/VTLSymbolMaterial ./Filter ./StyleDefinition ./StyleProperty ../../webgl/definitions".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p){a.CapType=void 0;(function(y){y[y.BUTT=0]="BUTT";y[y.ROUND=1]="ROUND";y[y.SQUARE=2]="SQUARE";y[y.UNKNOWN=4]="UNKNOWN"})(a.CapType||(a.CapType={}));let l=function(){function y(B,E,w,D){this.type=B;this.typeName=E.type;this.id=E.id;this.source=E.source;this.sourceLayer=E["source-layer"];this.minzoom=E.minzoom;this.maxzoom=E.maxzoom;this.filter=E.filter;this.layout=E.layout;this.paint=E.paint;this.z=w;this.uid=D;switch(B){case g.StyleLayerType.BACKGROUND:this._layoutDefinition=
g.StyleDefinition.backgroundLayoutDefinition;this._paintDefinition=g.StyleDefinition.backgroundPaintDefinition;break;case g.StyleLayerType.FILL:this._layoutDefinition=g.StyleDefinition.fillLayoutDefinition;this._paintDefinition=g.StyleDefinition.fillPaintDefinition;break;case g.StyleLayerType.LINE:this._layoutDefinition=g.StyleDefinition.lineLayoutDefinition;this._paintDefinition=g.StyleDefinition.linePaintDefinition;break;case g.StyleLayerType.SYMBOL:this._layoutDefinition=g.StyleDefinition.symbolLayoutDefinition;
this._paintDefinition=g.StyleDefinition.symbolPaintDefinition;break;case g.StyleLayerType.CIRCLE:this._layoutDefinition=g.StyleDefinition.circleLayoutDefinition,this._paintDefinition=g.StyleDefinition.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout);this._paintProperties=this._parsePaint(this.paint)}var A=y.prototype;A.getFeatureFilter=function(){return void 0!==this._featureFilter?this._featureFilter:this._featureFilter=h.createFilter(this.filter)};A.getLayoutProperty=
function(B){return this._layoutProperties[B]};A.getPaintProperty=function(B){return this._paintProperties[B]};A.getLayoutValue=function(B,E,w){let D;const C=this._layoutProperties[B];C&&(D=C.getValue(E,w));void 0===D&&(D=this._layoutDefinition[B]["default"]);return D};A.getPaintValue=function(B,E,w){let D;const C=this._paintProperties[B];C&&(D=C.getValue(E,w));void 0===D&&(D=this._paintDefinition[B]["default"]);return D};A.isPainterDataDriven=function(){const B=this._paintProperties;if(B)for(const E in B)if(B[E].isDataDriven)return!0;
return!1};A._parseLayout=function(B){const E={};for(const w in B){const D=this._layoutDefinition[w];D&&(E[w]=new k(D,B[w]))}return E};A._parsePaint=function(B){const E={};for(const w in B){const D=this._paintDefinition[w];D&&(E[w]=new k(D,B[w]))}return E};A.computeAttributesKey=function(B,E,w,D){let C=0,F=0;for(const G of E){E=3;if(!G||G!==D){const {isLayout:H,isOptional:I}=w[G];E=H?this.getLayoutProperty(G):this.getPaintProperty(G);E=E?.interpolator?2:E?.isDataDriven?1:I&&!E?3:0}F|=E<<C;C+=2}return F<<
3|B};return y}(),m=function(y){function A(B,E,w,D){B=y.call(this,B,E,w,D)||this;B.backgroundMaterial=new e.VTLBackgroundMaterial(B.computeAttributesKey(c.ShaderProgramType.BACKGROUND,e.VTLBackgroundMaterial.ATTRIBUTES,e.VTLBackgroundMaterial.ATTRIBUTES_INFO));return B}b._inheritsLoose(A,y);return A}(l),t=function(y){function A(B,E,w,D){B=y.call(this,B,E,w,D)||this;E=B.getPaintProperty("fill-color");w=B.getPaintProperty("fill-opacity");D=B.getPaintProperty("fill-pattern");B.hasDataDrivenColor=E?.isDataDriven;
B.hasDataDrivenOpacity=w?.isDataDriven;B.hasDataDrivenFill=B.hasDataDrivenColor||B.hasDataDrivenOpacity||D?.isDataDriven;w=B.getPaintProperty("fill-outline-color");B.outlineUsesFillColor=!w;B.hasDataDrivenOutlineColor=w?.isDataDriven;B.hasDataDrivenOutline=w?w.isDataDriven:E?E.isDataDriven:!1;B.hasDataDrivenOutline=(w?B.hasDataDrivenOutlineColor:B.hasDataDrivenColor)||B.hasDataDrivenOpacity;B.fillMaterial=new n.VTLFillMaterial(B.computeAttributesKey(c.ShaderProgramType.FILL,n.VTLFillMaterial.ATTRIBUTES,
n.VTLFillMaterial.ATTRIBUTES_INFO));B.outlineMaterial=new n.VTLOutlineMaterial(B.computeAttributesKey(c.ShaderProgramType.OUTLINE,B.outlineUsesFillColor?n.VTLOutlineMaterial.ATTRIBUTES_FILL:n.VTLOutlineMaterial.ATTRIBUTES_OUTLINE,B.outlineUsesFillColor?n.VTLOutlineMaterial.ATTRIBUTES_INFO_FILL:n.VTLOutlineMaterial.ATTRIBUTES_INFO_OUTLINE),B.outlineUsesFillColor);return B}b._inheritsLoose(A,y);return A}(l),f=function(y){function A(B,E,w,D){B=y.call(this,B,E,w,D)||this;E=B.getPaintProperty("line-pattern");
B.lineMaterial=new u.VTLLineMaterial(B.computeAttributesKey(c.ShaderProgramType.LINE,u.VTLLineMaterial.ATTRIBUTES,u.VTLLineMaterial.ATTRIBUTES_INFO,E?"line-dasharray":""));B.hasDataDrivenLine=B.getPaintProperty("line-blur")?.isDataDriven||B.getPaintProperty("line-color")?.isDataDriven||B.getPaintProperty("line-gap-width")?.isDataDriven||B.getPaintProperty("line-offset")?.isDataDriven||B.getPaintProperty("line-opacity")?.isDataDriven||B.getPaintProperty("line-pattern")?.isDataDriven||B.getPaintProperty("line-dasharray")?.isDataDriven||
B.getLayoutProperty("line-cap")?.isDataDriven||B.getPaintProperty("line-width")?.isDataDriven;B.canUseThinTessellation=!1;!B.hasDataDrivenLine&&(E=B.getPaintProperty("line-width"),!E||"number"===typeof E&&.5*E<p.THIN_LINE_HALF_WIDTH_THRESHOLD)&&(E=B.getPaintProperty("line-offset"),!E||"number"===typeof E&&0===E)&&(B.canUseThinTessellation=!0);return B}b._inheritsLoose(A,y);A.prototype.getDashKey=function(B,E){switch(E){case a.CapType.BUTT:E="Butt";break;case a.CapType.ROUND:E="Round";break;case a.CapType.SQUARE:E=
"Square";break;default:E="Butt"}return`dasharray-[${B.toString()}]-${E}`};return A}(l),q=function(y){function A(B,E,w,D){B=y.call(this,B,E,w,D)||this;B.iconMaterial=new r.VTLIconMaterial(B.computeAttributesKey(c.ShaderProgramType.ICON,r.VTLIconMaterial.ATTRIBUTES,r.VTLIconMaterial.ATTRIBUTES_INFO));B.textMaterial=new r.VTLTextMaterial(B.computeAttributesKey(c.ShaderProgramType.TEXT,r.VTLTextMaterial.ATTRIBUTES,r.VTLTextMaterial.ATTRIBUTES_INFO));B.hasDataDrivenIcon=B.getPaintProperty("icon-color")?.isDataDriven||
B.getPaintProperty("icon-halo-blur")?.isDataDriven||B.getPaintProperty("icon-halo-color")?.isDataDriven||B.getPaintProperty("icon-halo-width")?.isDataDriven||B.getPaintProperty("icon-opacity")?.isDataDriven||B.getLayoutProperty("icon-size")?.isDataDriven;B.hasDataDrivenText=B.getPaintProperty("text-color")?.isDataDriven||B.getPaintProperty("text-halo-blur")?.isDataDriven||B.getPaintProperty("text-halo-color")?.isDataDriven||B.getPaintProperty("text-halo-width")?.isDataDriven||B.getPaintProperty("text-opacity")?.isDataDriven||
B.getLayoutProperty("text-size")?.isDataDriven;return B}b._inheritsLoose(A,y);return A}(l),v=function(y){function A(B,E,w,D){B=y.call(this,B,E,w,D)||this;B.circleMaterial=new d.VTLCircleMaterial(B.computeAttributesKey(c.ShaderProgramType.CIRCLE,d.VTLCircleMaterial.ATTRIBUTES,d.VTLCircleMaterial.ATTRIBUTES_INFO));return B}b._inheritsLoose(A,y);return A}(l),x=function(){function y(A,B,E){this.allowOverlap=A.getLayoutValue("icon-allow-overlap",B);this.ignorePlacement=A.getLayoutValue("icon-ignore-placement",
B);this.keepUpright=A.getLayoutValue("icon-keep-upright",B);this.optional=A.getLayoutValue("icon-optional",B);this.rotationAlignment=A.getLayoutValue("icon-rotation-alignment",B);this.rotationAlignment===g.RotationAlignment.AUTO&&(this.rotationAlignment=E?g.RotationAlignment.MAP:g.RotationAlignment.VIEWPORT);E=A.getLayoutProperty("icon-anchor");E?.isDataDriven?this._anchorProp=E:this.anchor=A.getLayoutValue("icon-anchor",B);E=A.getLayoutProperty("icon-offset");E?.isDataDriven?this._offsetProp=E:this.offset=
A.getLayoutValue("icon-offset",B);E=A.getLayoutProperty("icon-padding");E?.isDataDriven?this._paddingProp=E:this.padding=A.getLayoutValue("icon-padding",B);E=A.getLayoutProperty("icon-rotate");E?.isDataDriven?this._rotateProp=E:this.rotate=A.getLayoutValue("icon-rotate",B);E=A.getLayoutProperty("icon-size");E?.isDataDriven?this._sizeProp=E:this.size=A.getLayoutValue("icon-size",B)}y.prototype.update=function(A,B){this._anchorProp&&(this.anchor=this._anchorProp.getValue(A,B));this._offsetProp&&(this.offset=
this._offsetProp.getValue(A,B));this._paddingProp&&(this.padding=this._paddingProp.getValue(A,B));this._rotateProp&&(this.rotate=this._rotateProp.getValue(A,B));this._sizeProp&&(this.size=this._sizeProp.getValue(A,B))};return y}(),z=function(){function y(A,B,E){this.allowOverlap=A.getLayoutValue("text-allow-overlap",B);this.ignorePlacement=A.getLayoutValue("text-ignore-placement",B);this.keepUpright=A.getLayoutValue("text-keep-upright",B);this.optional=A.getLayoutValue("text-optional",B);this.rotationAlignment=
A.getLayoutValue("text-rotation-alignment",B);this.rotationAlignment===g.RotationAlignment.AUTO&&(this.rotationAlignment=E?g.RotationAlignment.MAP:g.RotationAlignment.VIEWPORT);E=A.getLayoutProperty("text-anchor");E?.isDataDriven?this._anchorProp=E:this.anchor=A.getLayoutValue("text-anchor",B);E=A.getLayoutProperty("text-justify");E?.isDataDriven?this._justifyProp=E:this.justify=A.getLayoutValue("text-justify",B);E=A.getLayoutProperty("text-letter-spacing");E?.isDataDriven?this._letterSpacingProp=
E:this.letterSpacing=A.getLayoutValue("text-letter-spacing",B);E=A.getLayoutProperty("text-line-height");E?.isDataDriven?this._lineHeightProp=E:this.lineHeight=A.getLayoutValue("text-line-height",B);E=A.getLayoutProperty("text-max-angle");E?.isDataDriven?this._maxAngleProp=E:this.maxAngle=A.getLayoutValue("text-max-angle",B);E=A.getLayoutProperty("text-max-width");E?.isDataDriven?this._maxWidthProp=E:this.maxWidth=A.getLayoutValue("text-max-width",B);E=A.getLayoutProperty("text-offset");E?.isDataDriven?
this._offsetProp=E:this.offset=A.getLayoutValue("text-offset",B);E=A.getLayoutProperty("text-padding");E?.isDataDriven?this._paddingProp=E:this.padding=A.getLayoutValue("text-padding",B);E=A.getLayoutProperty("text-rotate");E?.isDataDriven?this._rotateProp=E:this.rotate=A.getLayoutValue("text-rotate",B);E=A.getLayoutProperty("text-size");E?.isDataDriven?this._sizeProp=E:this.size=A.getLayoutValue("text-size",B);E=A.getLayoutProperty("text-writing-mode");E?.isDataDriven?this._writingModeProp=E:this.writingMode=
A.getLayoutValue("text-writing-mode",B)}y.prototype.update=function(A,B){this._anchorProp&&(this.anchor=this._anchorProp.getValue(A,B));this._justifyProp&&(this.justify=this._justifyProp.getValue(A,B));this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(A,B));this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(A,B));this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(A,B));this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(A,B));this._offsetProp&&
(this.offset=this._offsetProp.getValue(A,B));this._paddingProp&&(this.padding=this._paddingProp.getValue(A,B));this._rotateProp&&(this.rotate=this._rotateProp.getValue(A,B));this._sizeProp&&(this.size=this._sizeProp.getValue(A,B));this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(A,B))};return y}();a.BackgroundStyleLayer=m;a.CircleStyleLayer=v;a.FillStyleLayer=t;a.IconLayout=x;a.LineStyleLayer=f;a.StyleLayer=l;a.SymbolStyleLayer=q;a.TextLayout=z;Object.defineProperties(a,{__esModule:{value:!0},
[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/shaders/VTLBackgroundMaterial":function(){define(["exports","../../../../../chunks/_rollupPluginBabelHelpers","./VTLMaterial","../../../../webgl/enums","../../../../webgl/VertexElementDescriptor"],function(a,b,c,e,d){c=function(n){function u(h){return n.call(this,h)||this}b._inheritsLoose(u,n);var r=u.prototype;r.geometryInfo=function(){return u.GEOMETRY_LAYOUT};r.opacityInfo=function(){return null};r.attributes=function(){return u.ATTRIBUTES};
r.attributesInfo=function(){return u.ATTRIBUTES_INFO};return u}(c.VTLMaterial);c.ATTRIBUTES=[];c.GEOMETRY_LAYOUT=[new d.VertexElementDescriptor("a_pos",2,e.DataType.BYTE,0,2)];c.ATTRIBUTES_INFO={};a.VTLBackgroundMaterial=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/shaders/VTLMaterial":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ../../../../../core/maybe ../MemoryBuffer ./enums ../../../../webgl/enums ../../../../webgl/VertexElementDescriptor".split(" "),
function(a,b,c,e,d,n,u){let r=function(){function k(l){this._locations=new Map;this._key=l}var p=k.prototype;p.defines=function(){return[]};p.getStride=function(){this._layoutInfo||this._buildAttributesInfo();return this._stride};p.getAttributeLocations=function(){0===this._locations.size&&this._buildAttributesInfo();return this._locations};p.getLayoutInfo=function(){this._layoutInfo||this._buildAttributesInfo();return this._layoutInfo};p.getEncodingInfos=function(){this._propertyEncodingInfo||this._buildAttributesInfo();
return this._propertyEncodingInfo};p.getUniforms=function(){this._uniforms||this._buildAttributesInfo();return this._uniforms};p.getShaderHeader=function(){this._shaderHeader||this._buildAttributesInfo();return this._shaderHeader};p.getShaderMain=function(){this._shaderMain||this._buildAttributesInfo();return this._shaderMain};p.setDataUniforms=function(l,m,t,f,q){var v=this.getUniforms();for(const x of v){const {name:z,type:y,getValue:A}=x;v=A(t,m,f,q);if(null!==v)switch(y){case "float":l.setUniform1f(z,
v);break;case "vec2":l.setUniform2fv(z,v);break;case "vec4":l.setUniform4fv(z,v)}}};p.encodeAttributes=function(l,m,t,f){const q=this.attributesInfo(),v=this.getEncodingInfos(),x=[];let z=0,y=0;for(const B of Object.keys(v)){var A=v[B];const {type:E,precisionFactor:w,isLayout:D}=q[B],C=D?t.getLayoutProperty(B):t.getPaintProperty(B),F=C.interpolator?.getInterpolationRange(m);let G=0;for(const H of A){const {offset:I,bufferElementsToAdd:J}=H;if(0<J){for(A=0;A<J;A++)x.push(0);z+=y;y=H.bufferElementsToAdd}A=
f??C.getValue(F?F[G]:m,l);switch(E){case d.EncodingType.R8_SIGNED:case d.EncodingType.R8_UNSIGNED:x[z]|=this._encodeByte(A*(w||1),8*I);break;case d.EncodingType.R16_SIGNED:case d.EncodingType.R16_UNSIGNED:x[z]|=this._encodeShort(A*(w||1),8*I);break;case d.EncodingType.R8G8_SIGNED:case d.EncodingType.R8G8_UNSIGNED:x[z]|=this._encodeByte(A*(w||1),8*I);x[z]|=this._encodeByte(A*(w||1),8*I+8);break;case d.EncodingType.R16G16_SIGNED:case d.EncodingType.R16G16_UNSIGNED:x[z]|=this._encodeShort(A*(w||1),8*
I);x[z]|=this._encodeShort(A*(w||1),8*I+16);break;case d.EncodingType.R8G8B8A8_SIGNED:case d.EncodingType.R8G8B8A8_UNSIGNED:x[z]|=this._encodeByte(A*(w||1),8*I);x[z]|=this._encodeByte(A*(w||1),8*I+8);x[z]|=this._encodeByte(A*(w||1),8*I+16);x[z]|=this._encodeByte(A*(w||1),8*I+24);break;case d.EncodingType.R8G8B8A8_COLOR:x[z]=this._encodeColor(A);break;case d.EncodingType.R16G16B16A16_DASHARRAY:case d.EncodingType.R16G16B16A16_PATTERN:this._encodePattern(z,x,A);break;default:throw Error("Unsupported encoding type");
}G++}}return x};p.getAtributeState=function(l){const m=3+2*l;l=0|this._bit(m);return l|=this._bit(m+1)<<1};p._buildAttributesInfo=function(){const l=[],m={};var t={},f=-1;const q=this.attributesInfo();var v=this.attributes();let x=-1;for(const B of v){x++;v=this.getAtributeState(x);if(v===d.AttributeStatus.UNIFORM||v===d.AttributeStatus.UNUSED)continue;var z=q[B];const E=[];m[B]=E;z=z.type;for(let w=0;w<v;w++){const {dataType:D,bytesPerElement:C,count:F,normalized:G}=k._encodingInfo[z],H=C*F;var y=
`${D}-${!0===G}`;let I=t[y],J=0;!I||4<I.count+F?(f++,I={dataIndex:f,count:0,offset:0},4!==F&&(t[y]=I),l.push({location:-1,name:"a_data_"+f,count:F,type:D,normalized:G}),J=Math.ceil(Math.max(H/4,1))):(y=l[I.dataIndex],y.count+=F,J=Math.ceil(Math.max(y.count*C/4,1))-Math.ceil(Math.max(I.offset/4,1)));E.push({dataIndex:I.dataIndex,offset:I.offset,bufferElementsToAdd:J});I.offset+=H;I.count+=F}}for(const B of l)switch(B.type){case n.DataType.BYTE:case n.DataType.UNSIGNED_BYTE:B.count=4;break;case n.DataType.SHORT:case n.DataType.UNSIGNED_SHORT:B.count+=
B.count%2}this._buildVertexBufferLayout(l);t=0;f=this._layoutInfo.geometry;for(var A of f)this._locations.set(A.name,t++);if(A=this._layoutInfo.opacity)for(const B of A)this._locations.set(B.name,t++);this._buildShaderInfo(l,m);this._propertyEncodingInfo=m};p._buildVertexBufferLayout=function(l){const m={},t=this.geometryInfo();let f=t[0].stride;if(0===l.length)m.geometry=t;else{const q=[];let v=f;for(const x of l)f+=h(x.type)*x.count;for(const x of t)q.push(new u.VertexElementDescriptor(x.name,x.count,
x.type,x.offset,f,x.normalized));for(const x of l)q.push(new u.VertexElementDescriptor(x.name,x.count,x.type,v,f,x.normalized)),v+=h(x.type)*x.count;m.geometry=q}this.opacityInfo()&&(m.opacity=this.opacityInfo());this._layoutInfo=m;this._stride=f};p._buildShaderInfo=function(l,m){let t="\n",f="\n";const q=[];for(var v of l)t+=`attribute ${this._getType(v.count)} ${v.name};\n`;var x=this.attributes();l=this.attributesInfo();v=-1;for(const A of x){v++;const {name:B,type:E,precisionFactor:w,isLayout:D}=
l[A];x=w&&1!==w?` * ${1/w}`:"";const {bytesPerElement:C,count:F}=k._encodingInfo[E];var z=G=>`a_data_${G.dataIndex}${g(F,G.offset,C)}`;switch(this.getAtributeState(v)){case d.AttributeStatus.UNIFORM:x=this._getType(F);var y=`u_${B}`;q.push({name:y,type:x,getValue:(H,I,J,K)=>{J=D?H.getLayoutValue(A,I):H.getPaintValue(A,I);if(E===d.EncodingType.R16G16B16A16_DASHARRAY){H=H.getDashKey(J,H.getLayoutValue("line-cap",I));K=K.getMosaicItemPosition(H,!1);if(c.isNone(K))return null;const {tl:N,br:U}=K;return[N[0],
U[1],U[0],N[1]]}if(E===d.EncodingType.R16G16B16A16_PATTERN){K=K.getMosaicItemPosition(J,!A.includes("line-"));if(c.isNone(K))return null;const {tl:N,br:U}=K;return[N[0],U[1],U[0],N[1]]}return E===d.EncodingType.R8G8B8A8_COLOR?(K=J[3],[K*J[0],K*J[1],K*J[2],K]):J}});t+=`uniform ${x} ${y};\n`;f+=`${x} ${B} = ${y};\n`;break;case d.AttributeStatus.DATA_DRIVEN:y=z(m[A][0]);f+=`${this._getType(F)} ${B} = ${y}${x};\n`;break;case d.AttributeStatus.INTERPOLATED_DATA_DRIVEN:y=`u_t_${B}`;q.push({name:y,type:"float",
getValue:(H,I,J,K)=>(D?H.getLayoutProperty(A):H.getPaintProperty(A)).interpolator.interpolationUniformValue(J,I)});t+=`uniform float ${y};\n`;const G=z(m[A][0]);z=z(m[A][1]);f+=`${this._getType(F)} ${B} = mix(${G}${x}, ${z}${x}, ${y});\n`}}this._shaderHeader=t;this._shaderMain=f;this._uniforms=q};p._bit=function(l){return(this._key&1<<l)>>l};p._getType=function(l){switch(l){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4"}throw Error("Invalid count");};p._encodeColor=
function(l){const m=255*l[3];return e.i8888to32(l[0]*m,l[1]*m,l[2]*m,m)};p._encodePattern=function(l,m,t){if(t&&t.rect){var f=t.rect,q=t.width;t=t.height;m[l]=this._encodeShort(f.x+2,0);m[l]|=this._encodeShort(f.y+2+t,16);m[l+1]=this._encodeShort(f.x+2+q,0);m[l+1]|=this._encodeShort(f.y+2,16)}};p._encodeByte=function(l,m){return(l&255)<<m};p._encodeShort=function(l,m){return(l&65535)<<m};b._createClass(k,[{key:"key",get:function(){return this._key}},{key:"type",get:function(){return this._key&7}}]);
return k}();r._encodingInfo={[d.EncodingType.R8_SIGNED]:{dataType:n.DataType.BYTE,bytesPerElement:1,count:1,normalized:!1},[d.EncodingType.R8_UNSIGNED]:{dataType:n.DataType.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},[d.EncodingType.R16_SIGNED]:{dataType:n.DataType.SHORT,bytesPerElement:2,count:1,normalized:!1},[d.EncodingType.R16_UNSIGNED]:{dataType:n.DataType.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},[d.EncodingType.R8G8_SIGNED]:{dataType:n.DataType.BYTE,bytesPerElement:1,
count:2,normalized:!1},[d.EncodingType.R8G8_UNSIGNED]:{dataType:n.DataType.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},[d.EncodingType.R16G16_SIGNED]:{dataType:n.DataType.SHORT,bytesPerElement:2,count:2,normalized:!1},[d.EncodingType.R16G16_UNSIGNED]:{dataType:n.DataType.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},[d.EncodingType.R8G8B8A8_SIGNED]:{dataType:n.DataType.BYTE,bytesPerElement:1,count:4,normalized:!1},[d.EncodingType.R8G8B8A8_UNSIGNED]:{dataType:n.DataType.UNSIGNED_BYTE,
bytesPerElement:1,count:4,normalized:!1},[d.EncodingType.R8G8B8A8_COLOR]:{dataType:n.DataType.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},[d.EncodingType.R16G16B16A16_DASHARRAY]:{dataType:n.DataType.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},[d.EncodingType.R16G16B16A16_PATTERN]:{dataType:n.DataType.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}};const h=k=>{switch(k){case n.DataType.FLOAT:return 4;case n.DataType.INT:return 4;case n.DataType.UNSIGNED_INT:return 4;
case n.DataType.SHORT:return 2;case n.DataType.UNSIGNED_SHORT:return 2;case n.DataType.BYTE:return 1;case n.DataType.UNSIGNED_BYTE:return 1}},g=(k,p,l)=>{p/=l;if(1===k)switch(p){case 0:return".x";case 1:return".y";case 2:return".z";case 3:return".w"}else if(2===k)switch(p){case 0:return".xy";case 1:return".yz";case 2:return".zw"}else if(3===k)switch(p){case 0:return".xyz";case 1:return".yzw"}return""};a.VTLMaterial=r;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/2d/engine/vectorTiles/shaders/enums":function(){define(["exports"],function(a){a.EncodingType=void 0;(function(b){b[b.R8_SIGNED=0]="R8_SIGNED";b[b.R8_UNSIGNED=1]="R8_UNSIGNED";b[b.R16_SIGNED=2]="R16_SIGNED";b[b.R16_UNSIGNED=3]="R16_UNSIGNED";b[b.R8G8_SIGNED=4]="R8G8_SIGNED";b[b.R8G8_UNSIGNED=5]="R8G8_UNSIGNED";b[b.R16G16_SIGNED=6]="R16G16_SIGNED";b[b.R16G16_UNSIGNED=7]="R16G16_UNSIGNED";b[b.R8G8B8A8_SIGNED=8]="R8G8B8A8_SIGNED";b[b.R8G8B8A8_UNSIGNED=9]="R8G8B8A8_UNSIGNED";b[b.R8G8B8A8_COLOR=
10]="R8G8B8A8_COLOR";b[b.R16G16B16A16_DASHARRAY=11]="R16G16B16A16_DASHARRAY";b[b.R16G16B16A16_PATTERN=12]="R16G16B16A16_PATTERN"})(a.EncodingType||(a.EncodingType={}));a.AttributeStatus=void 0;(function(b){b[b.UNIFORM=0]="UNIFORM";b[b.DATA_DRIVEN=1]="DATA_DRIVEN";b[b.INTERPOLATED_DATA_DRIVEN=2]="INTERPOLATED_DATA_DRIVEN";b[b.UNUSED=3]="UNUSED"})(a.AttributeStatus||(a.AttributeStatus={}));Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/webgl/enums":function(){define(["exports"],
function(a){a.ClearBufferBit=void 0;(function(b){b[b.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT";b[b.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT";b[b.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"})(a.ClearBufferBit||(a.ClearBufferBit={}));a.PrimitiveType=void 0;(function(b){b[b.POINTS=0]="POINTS";b[b.LINES=1]="LINES";b[b.LINE_LOOP=2]="LINE_LOOP";b[b.LINE_STRIP=3]="LINE_STRIP";b[b.TRIANGLES=4]="TRIANGLES";b[b.TRIANGLE_STRIP=5]="TRIANGLE_STRIP";b[b.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(a.PrimitiveType||(a.PrimitiveType=
{}));a.BlendFactor=void 0;(function(b){b[b.ZERO=0]="ZERO";b[b.ONE=1]="ONE";b[b.SRC_COLOR=768]="SRC_COLOR";b[b.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR";b[b.SRC_ALPHA=770]="SRC_ALPHA";b[b.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA";b[b.DST_ALPHA=772]="DST_ALPHA";b[b.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA";b[b.DST_COLOR=774]="DST_COLOR";b[b.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR";b[b.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE";b[b.CONSTANT_COLOR=32769]="CONSTANT_COLOR";b[b.ONE_MINUS_CONSTANT_COLOR=
32770]="ONE_MINUS_CONSTANT_COLOR";b[b.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA";b[b.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"})(a.BlendFactor||(a.BlendFactor={}));a.BlendOperation=void 0;(function(b){b[b.ADD=32774]="ADD";b[b.SUBTRACT=32778]="SUBTRACT";b[b.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"})(a.BlendOperation||(a.BlendOperation={}));a.BufferType=void 0;(function(b){b[b.ARRAY_BUFFER=34962]="ARRAY_BUFFER";b[b.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER";b[b.UNIFORM_BUFFER=
35345]="UNIFORM_BUFFER";b[b.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER";b[b.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER";b[b.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER";b[b.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"})(a.BufferType||(a.BufferType={}));a.Face=void 0;(function(b){b[b.FRONT=1028]="FRONT";b[b.BACK=1029]="BACK";b[b.FRONT_AND_BACK=1032]="FRONT_AND_BACK"})(a.Face||(a.Face={}));a.CullMode=void 0;(function(b){b[b.CW=2304]="CW";b[b.CCW=2305]="CCW"})(a.CullMode||(a.CullMode={}));a.DataType=
void 0;(function(b){b[b.BYTE=5120]="BYTE";b[b.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE";b[b.SHORT=5122]="SHORT";b[b.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT";b[b.INT=5124]="INT";b[b.UNSIGNED_INT=5125]="UNSIGNED_INT";b[b.FLOAT=5126]="FLOAT"})(a.DataType||(a.DataType={}));a.CompareFunction=void 0;(function(b){b[b.NEVER=512]="NEVER";b[b.LESS=513]="LESS";b[b.EQUAL=514]="EQUAL";b[b.LEQUAL=515]="LEQUAL";b[b.GREATER=516]="GREATER";b[b.NOTEQUAL=517]="NOTEQUAL";b[b.GEQUAL=518]="GEQUAL";b[b.ALWAYS=519]="ALWAYS"})(a.CompareFunction||
(a.CompareFunction={}));a.StencilOperation=void 0;(function(b){b[b.ZERO=0]="ZERO";b[b.KEEP=7680]="KEEP";b[b.REPLACE=7681]="REPLACE";b[b.INCR=7682]="INCR";b[b.DECR=7683]="DECR";b[b.INVERT=5386]="INVERT";b[b.INCR_WRAP=34055]="INCR_WRAP";b[b.DECR_WRAP=34056]="DECR_WRAP"})(a.StencilOperation||(a.StencilOperation={}));a.TextureSamplingMode=void 0;(function(b){b[b.NEAREST=9728]="NEAREST";b[b.LINEAR=9729]="LINEAR";b[b.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST";b[b.LINEAR_MIPMAP_NEAREST=9985]=
"LINEAR_MIPMAP_NEAREST";b[b.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR";b[b.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"})(a.TextureSamplingMode||(a.TextureSamplingMode={}));a.TextureWrapMode=void 0;(function(b){b[b.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE";b[b.REPEAT=10497]="REPEAT";b[b.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(a.TextureWrapMode||(a.TextureWrapMode={}));a.TextureType=void 0;(function(b){b[b.TEXTURE_2D=3553]="TEXTURE_2D";b[b.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP";b[b.TEXTURE_3D=
32879]="TEXTURE_3D";b[b.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X";b[b.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X";b[b.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y";b[b.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y";b[b.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z";b[b.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z";b[b.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"})(a.TextureType||(a.TextureType=
{}));a.PixelFormat=void 0;(function(b){b[b.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT";b[b.DEPTH_STENCIL=34041]="DEPTH_STENCIL";b[b.ALPHA=6406]="ALPHA";b[b.RGB=6407]="RGB";b[b.RGBA=6408]="RGBA";b[b.LUMINANCE=6409]="LUMINANCE";b[b.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA";b[b.RED=6403]="RED";b[b.RG=33319]="RG";b[b.RED_INTEGER=36244]="RED_INTEGER";b[b.RG_INTEGER=33320]="RG_INTEGER";b[b.RGB_INTEGER=36248]="RGB_INTEGER";b[b.RGBA_INTEGER=36249]="RGBA_INTEGER"})(a.PixelFormat||(a.PixelFormat={}));a.SizedPixelFormat=
void 0;(function(b){b[b.RGBA4=32854]="RGBA4";b[b.R16F=33325]="R16F";b[b.RG16F=33327]="RG16F";b[b.RGB32F=34837]="RGB32F";b[b.RGBA16F=34842]="RGBA16F";b[b.R32F=33326]="R32F";b[b.RG32F=33328]="RG32F";b[b.RGBA32F=34836]="RGBA32F";b[b.R11F_G11F_B10F=35898]="R11F_G11F_B10F";b[b.RGB8=32849]="RGB8";b[b.RGBA8=32856]="RGBA8";b[b.RGB5_A1=32855]="RGB5_A1";b[b.R8=33321]="R8";b[b.RG8=33323]="RG8";b[b.R8I=33329]="R8I";b[b.R8UI=33330]="R8UI";b[b.R16I=33331]="R16I";b[b.R16UI=33332]="R16UI";b[b.R32I=33333]="R32I";
b[b.R32UI=33334]="R32UI";b[b.RG8I=33335]="RG8I";b[b.RG8UI=33336]="RG8UI";b[b.RG16I=33337]="RG16I";b[b.RG16UI=33338]="RG16UI";b[b.RG32I=33339]="RG32I";b[b.RG32UI=33340]="RG32UI";b[b.RGB16F=34843]="RGB16F";b[b.RGB9_E5=35901]="RGB9_E5";b[b.SRGB8=35905]="SRGB8";b[b.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8";b[b.RGB565=36194]="RGB565";b[b.RGBA32UI=36208]="RGBA32UI";b[b.RGB32UI=36209]="RGB32UI";b[b.RGBA16UI=36214]="RGBA16UI";b[b.RGB16UI=36215]="RGB16UI";b[b.RGBA8UI=36220]="RGBA8UI";b[b.RGB8UI=36221]="RGB8UI";b[b.RGBA32I=
36226]="RGBA32I";b[b.RGB32I=36227]="RGB32I";b[b.RGBA16I=36232]="RGBA16I";b[b.RGB16I=36233]="RGB16I";b[b.RGBA8I=36238]="RGBA8I";b[b.RGB8I=36239]="RGB8I";b[b.R8_SNORM=36756]="R8_SNORM";b[b.RG8_SNORM=36757]="RG8_SNORM";b[b.RGB8_SNORM=36758]="RGB8_SNORM";b[b.RGBA8_SNORM=36759]="RGBA8_SNORM";b[b.RGB10_A2=32857]="RGB10_A2";b[b.RGB10_A2UI=36975]="RGB10_A2UI"})(a.SizedPixelFormat||(a.SizedPixelFormat={}));a.PixelType=void 0;(function(b){b[b.FLOAT=5126]="FLOAT";b[b.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE";b[b.UNSIGNED_INT_24_8=
34042]="UNSIGNED_INT_24_8";b[b.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4";b[b.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1";b[b.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5";b[b.BYTE=5120]="BYTE";b[b.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT";b[b.SHORT=5122]="SHORT";b[b.UNSIGNED_INT=5125]="UNSIGNED_INT";b[b.INT=5124]="INT";b[b.HALF_FLOAT=5131]="HALF_FLOAT";b[b.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV";b[b.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV";
b[b.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV";b[b.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"})(a.PixelType||(a.PixelType={}));a.RenderbufferFormat=void 0;(function(b){b[b.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16";b[b.STENCIL_INDEX8=36168]="STENCIL_INDEX8";b[b.DEPTH_STENCIL=34041]="DEPTH_STENCIL";b[b.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24";b[b.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F";b[b.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8";b[b.DEPTH32F_STENCIL8=
36013]="DEPTH32F_STENCIL8"})(a.RenderbufferFormat||(a.RenderbufferFormat={}));a.Usage=void 0;(function(b){b[b.STATIC_DRAW=35044]="STATIC_DRAW";b[b.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW";b[b.STREAM_DRAW=35040]="STREAM_DRAW";b[b.STATIC_READ=35045]="STATIC_READ";b[b.DYNAMIC_READ=35049]="DYNAMIC_READ";b[b.STREAM_READ=35041]="STREAM_READ";b[b.STATIC_COPY=35046]="STATIC_COPY";b[b.DYNAMIC_COPY=35050]="DYNAMIC_COPY";b[b.STREAM_COPY=35042]="STREAM_COPY"})(a.Usage||(a.Usage={}));a.ShaderType=void 0;(function(b){b[b.FRAGMENT_SHADER=
35632]="FRAGMENT_SHADER";b[b.VERTEX_SHADER=35633]="VERTEX_SHADER"})(a.ShaderType||(a.ShaderType={}));a.FramebufferTarget=void 0;(function(b){b[b.FRAMEBUFFER=36160]="FRAMEBUFFER";b[b.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER";b[b.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"})(a.FramebufferTarget||(a.FramebufferTarget={}));a.TargetType=void 0;(function(b){b[b.TEXTURE=0]="TEXTURE";b[b.RENDER_BUFFER=1]="RENDER_BUFFER";b[b.CUBEMAP=2]="CUBEMAP"})(a.TargetType||(a.TargetType={}));a.DepthStencilTargetType=
void 0;(function(b){b[b.NONE=0]="NONE";b[b.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER";b[b.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER";b[b.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER";b[b.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"})(a.DepthStencilTargetType||(a.DepthStencilTargetType={}));a.ResourceType=void 0;(function(b){b[b.Texture=0]="Texture";b[b.BufferObject=1]="BufferObject";b[b.VertexArrayObject=2]="VertexArrayObject";b[b.Shader=3]="Shader";b[b.Program=4]="Program";
b[b.FramebufferObject=5]="FramebufferObject";b[b.Renderbuffer=6]="Renderbuffer";b[b.Sync=7]="Sync";b[b.COUNT=8]="COUNT"})(a.ResourceType||(a.ResourceType={}));a.ColorAttachment=void 0;(function(b){b[b.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0";b[b.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1";b[b.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2";b[b.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3";b[b.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4";b[b.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5";b[b.COLOR_ATTACHMENT6=
36070]="COLOR_ATTACHMENT6";b[b.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7";b[b.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8";b[b.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9";b[b.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10";b[b.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11";b[b.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12";b[b.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13";b[b.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14";b[b.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"})(a.ColorAttachment||
(a.ColorAttachment={}));a.CompressedTextureFormat=void 0;(function(b){b[b.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT";b[b.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT";b[b.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT";b[b.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT";b[b.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC";b[b.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC";b[b.COMPRESSED_RG11_EAC=37490]=
"COMPRESSED_RG11_EAC";b[b.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC";b[b.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2";b[b.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2";b[b.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2";b[b.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2";b[b.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC";b[b.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]=
"COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"})(a.CompressedTextureFormat||(a.CompressedTextureFormat={}));a.UniformType=void 0;(function(b){b[b.FLOAT=5126]="FLOAT";b[b.FLOAT_VEC2=35664]="FLOAT_VEC2";b[b.FLOAT_VEC3=35665]="FLOAT_VEC3";b[b.FLOAT_VEC4=35666]="FLOAT_VEC4";b[b.INT=5124]="INT";b[b.INT_VEC2=35667]="INT_VEC2";b[b.INT_VEC3=35668]="INT_VEC3";b[b.INT_VEC4=35669]="INT_VEC4";b[b.BOOL=35670]="BOOL";b[b.BOOL_VEC2=35671]="BOOL_VEC2";b[b.BOOL_VEC3=35672]="BOOL_VEC3";b[b.BOOL_VEC4=35673]="BOOL_VEC4";b[b.FLOAT_MAT2=
35674]="FLOAT_MAT2";b[b.FLOAT_MAT3=35675]="FLOAT_MAT3";b[b.FLOAT_MAT4=35676]="FLOAT_MAT4";b[b.SAMPLER_2D=35678]="SAMPLER_2D";b[b.SAMPLER_CUBE=35680]="SAMPLER_CUBE";b[b.UNSIGNED_INT=5125]="UNSIGNED_INT";b[b.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2";b[b.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3";b[b.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4";b[b.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3";b[b.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4";b[b.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2";b[b.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4";
b[b.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2";b[b.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3";b[b.SAMPLER_3D=35679]="SAMPLER_3D";b[b.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW";b[b.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY";b[b.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW";b[b.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW";b[b.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D";b[b.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D";b[b.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE";b[b.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY";
b[b.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D";b[b.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D";b[b.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE";b[b.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"})(a.UniformType||(a.UniformType={}));a.SyncParameter=void 0;(function(b){b[b.OBJECT_TYPE=37138]="OBJECT_TYPE";b[b.SYNC_CONDITION=37139]="SYNC_CONDITION";b[b.SYNC_STATUS=37140]="SYNC_STATUS";b[b.SYNC_FLAGS=37141]="SYNC_FLAGS"})(a.SyncParameter||
(a.SyncParameter={}));a.SyncStatus=void 0;(function(b){b[b.UNSIGNALED=37144]="UNSIGNALED";b[b.SIGNALED=37145]="SIGNALED"})(a.SyncStatus||(a.SyncStatus={}));a.ClientWaitSyncStatus=void 0;(function(b){b[b.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED";b[b.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED";b[b.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED";b[b.WAIT_FAILED=37149]="WAIT_FAILED"})(a.ClientWaitSyncStatus||(a.ClientWaitSyncStatus={}));a.SyncCondition=void 0;(function(b){b[b.SYNC_GPU_COMMANDS_COMPLETE=
37143]="SYNC_GPU_COMMANDS_COMPLETE"})(a.SyncCondition||(a.SyncCondition={}));a.SyncFlag=void 0;(function(b){b[b.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"})(a.SyncFlag||(a.SyncFlag={}));a.BASE_TEXTURE_UNIT=33984;a.DepthStencilAttachment=33306;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/webgl/VertexElementDescriptor":function(){define(["exports"],function(a){a.VertexElementDescriptor=function(b,c,e,d,n,u=!1,r=0){this.name=b;this.count=
c;this.type=e;this.offset=d;this.stride=n;this.normalized=u;this.divisor=r};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/shaders/VTLCircleMaterial":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ./enums ./VTLMaterial ../../../../webgl/enums ../../../../webgl/VertexElementDescriptor".split(" "),function(a,b,c,e,d,n){e=function(u){function r(g){return u.call(this,g)||this}b._inheritsLoose(r,
u);var h=r.prototype;h.geometryInfo=function(){return r.GEOMETRY_LAYOUT};h.opacityInfo=function(){return null};h.attributes=function(){return r.ATTRIBUTES};h.attributesInfo=function(){return r.ATTRIBUTES_INFO};return r}(e.VTLMaterial);e.ATTRIBUTES="circle-radius circle-color circle-opacity circle-stroke-width circle-stroke-color circle-stroke-opacity circle-blur".split(" ");e.GEOMETRY_LAYOUT=[new n.VertexElementDescriptor("a_pos",2,d.DataType.SHORT,0,4)];e.ATTRIBUTES_INFO={"circle-radius":{name:"radius",
type:c.EncodingType.R8_UNSIGNED},"circle-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"circle-opacity":{name:"opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100},"circle-stroke-width":{name:"stroke_width",type:c.EncodingType.R8_UNSIGNED,precisionFactor:4},"circle-stroke-color":{name:"stroke_color",type:c.EncodingType.R8G8B8A8_COLOR},"circle-stroke-opacity":{name:"stroke_opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100},"circle-blur":{name:"blur",type:c.EncodingType.R8_UNSIGNED,
precisionFactor:32}};a.VTLCircleMaterial=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/shaders/VTLFillMaterial":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ./enums ./VTLMaterial ../../../../webgl/enums ../../../../webgl/VertexElementDescriptor".split(" "),function(a,b,c,e,d,n){let u=function(r){function h(k){return r.call(this,k)||this}b._inheritsLoose(h,r);var g=h.prototype;g.geometryInfo=
function(){return h.GEOMETRY_LAYOUT};g.opacityInfo=function(){return null};g.attributes=function(){return h.ATTRIBUTES};g.attributesInfo=function(){return h.ATTRIBUTES_INFO};return h}(e.VTLMaterial);u.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"];u.GEOMETRY_LAYOUT=[new n.VertexElementDescriptor("a_pos",2,d.DataType.SHORT,0,4)];u.ATTRIBUTES_INFO={"fill-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100},
"fill-pattern":{name:"tlbr",type:c.EncodingType.R16G16B16A16_PATTERN,isOptional:!0}};e=function(r){function h(k,p){k=r.call(this,k)||this;k._usefillColor=p;return k}b._inheritsLoose(h,r);var g=h.prototype;g.geometryInfo=function(){return h.GEOMETRY_LAYOUT};g.opacityInfo=function(){return null};g.attributes=function(){return this._usefillColor?h.ATTRIBUTES_FILL:h.ATTRIBUTES_OUTLINE};g.attributesInfo=function(){return this._usefillColor?h.ATTRIBUTES_INFO_FILL:h.ATTRIBUTES_INFO_OUTLINE};return h}(e.VTLMaterial);
e.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"];e.ATTRIBUTES_FILL=["fill-color","fill-opacity"];e.GEOMETRY_LAYOUT=[new n.VertexElementDescriptor("a_pos",2,d.DataType.SHORT,0,8),new n.VertexElementDescriptor("a_offset",2,d.DataType.BYTE,4,8),new n.VertexElementDescriptor("a_xnormal",2,d.DataType.BYTE,6,8)];e.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100}};
e.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"fill-opacity":{name:"opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100}};a.VTLFillMaterial=u;a.VTLOutlineMaterial=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/shaders/VTLLineMaterial":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ./enums ./VTLMaterial ../../../../webgl/enums ../../../../webgl/VertexElementDescriptor".split(" "),
function(a,b,c,e,d,n){e=function(u){function r(g){return u.call(this,g)||this}b._inheritsLoose(r,u);var h=r.prototype;h.geometryInfo=function(){return r.GEOMETRY_LAYOUT};h.opacityInfo=function(){return null};h.attributes=function(){return r.ATTRIBUTES};h.attributesInfo=function(){return r.ATTRIBUTES_INFO};return r}(e.VTLMaterial);e.ATTRIBUTES="line-blur line-color line-gap-width line-offset line-opacity line-width line-pattern line-dasharray".split(" ");e.GEOMETRY_LAYOUT=[new n.VertexElementDescriptor("a_pos",
2,d.DataType.SHORT,0,16),new n.VertexElementDescriptor("a_extrude_offset",4,d.DataType.BYTE,4,16),new n.VertexElementDescriptor("a_dir_normal",4,d.DataType.BYTE,8,16),new n.VertexElementDescriptor("a_accumulatedDistance",2,d.DataType.UNSIGNED_SHORT,12,16)];e.ATTRIBUTES_INFO={"line-width":{name:"width",type:c.EncodingType.R8_UNSIGNED,precisionFactor:2},"line-gap-width":{name:"gap_width",type:c.EncodingType.R8_UNSIGNED,precisionFactor:2},"line-offset":{name:"offset",type:c.EncodingType.R8_SIGNED,precisionFactor:2},
"line-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"line-opacity":{name:"opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100},"line-blur":{name:"blur",type:c.EncodingType.R8_UNSIGNED,precisionFactor:4},"line-pattern":{name:"tlbr",type:c.EncodingType.R16G16B16A16_PATTERN,isOptional:!0},"line-dasharray":{name:"tlbr",type:c.EncodingType.R16G16B16A16_DASHARRAY,isOptional:!0}};a.VTLLineMaterial=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/2d/engine/vectorTiles/shaders/VTLSymbolMaterial":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ./enums ./VTLMaterial ../../../../webgl/enums ../../../../webgl/VertexElementDescriptor".split(" "),function(a,b,c,e,d,n){const u=[new n.VertexElementDescriptor("a_pos",2,d.DataType.SHORT,0,16),new n.VertexElementDescriptor("a_vertexOffset",2,d.DataType.SHORT,4,16),new n.VertexElementDescriptor("a_texAngleRange",4,d.DataType.UNSIGNED_BYTE,8,16),new n.VertexElementDescriptor("a_levelInfo",
4,d.DataType.UNSIGNED_BYTE,12,16)],r=[new n.VertexElementDescriptor("a_opacityInfo",1,d.DataType.UNSIGNED_BYTE,0,1)];d=function(h){function g(p){return h.call(this,p)||this}b._inheritsLoose(g,h);var k=g.prototype;k.geometryInfo=function(){return u};k.opacityInfo=function(){return r};k.attributes=function(){return g.ATTRIBUTES};k.attributesInfo=function(){return g.ATTRIBUTES_INFO};return g}(e.VTLMaterial);d.ATTRIBUTES="icon-color icon-opacity icon-halo-blur icon-halo-color icon-halo-width icon-size".split(" ");
d.ATTRIBUTES_INFO={"icon-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"icon-opacity":{name:"opacity",type:c.EncodingType.R8_UNSIGNED,precisionFactor:100},"icon-halo-color":{name:"halo_color",type:c.EncodingType.R8G8B8A8_COLOR},"icon-halo-width":{name:"halo_width",type:c.EncodingType.R8_UNSIGNED,precisionFactor:4},"icon-halo-blur":{name:"halo_blur",type:c.EncodingType.R8_UNSIGNED,precisionFactor:4},"icon-size":{name:"size",type:c.EncodingType.R8_UNSIGNED,precisionFactor:32,isLayout:!0}};
e=function(h){function g(p){return h.call(this,p)||this}b._inheritsLoose(g,h);var k=g.prototype;k.geometryInfo=function(){return u};k.opacityInfo=function(){return r};k.attributes=function(){return g.ATTRIBUTES};k.attributesInfo=function(){return g.ATTRIBUTES_INFO};return g}(e.VTLMaterial);e.ATTRIBUTES="text-color text-opacity text-halo-blur text-halo-color text-halo-width text-size".split(" ");e.ATTRIBUTES_INFO={"text-color":{name:"color",type:c.EncodingType.R8G8B8A8_COLOR},"text-opacity":{name:"opacity",
type:c.EncodingType.R8_UNSIGNED,precisionFactor:100},"text-halo-color":{name:"halo_color",type:c.EncodingType.R8G8B8A8_COLOR},"text-halo-width":{name:"halo_width",type:c.EncodingType.R8_UNSIGNED,precisionFactor:4},"text-halo-blur":{name:"halo_blur",type:c.EncodingType.R8_UNSIGNED,precisionFactor:4},"text-size":{name:"size",type:c.EncodingType.R8_UNSIGNED,isLayout:!0}};a.VTLIconMaterial=d;a.VTLTextMaterial=e;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/2d/engine/vectorTiles/style/Filter":function(){define(["../expression/expression","../expression/types"],function(a,b){return function(){function c(e){this._expression=e}c.prototype.filter=function(e,d){if(!this._expression)return!0;try{return this._expression.evaluate(e,d)}catch(n){return console.log(n.message),!0}};c.createFilter=function(e){if(!e)return null;this.isLegacyFilter(e)&&(e=this.convertLegacyFilter(e));try{const d=a.createExpression(e,null,b.BooleanType);return new c(d)}catch(d){return console.log(d.message),
null}};c.isLegacyFilter=function(e){if(!Array.isArray(e)||0===e.length)return!0;switch(e[0]){case "\x3d\x3d":case "!\x3d":case "\x3e":case "\x3c":case "\x3e\x3d":case "\x3c\x3d":return 3===e.length&&"string"===typeof e[1]&&!Array.isArray(e[2]);case "in":return 3<=e.length&&"string"===typeof e[1]&&!Array.isArray(e[2]);case "!in":return!0;case "any":case "all":for(let d=1;d<e.length;d++)if(this.isLegacyFilter(e[d]))return!0;return!1;case "none":return!0;case "has":return 2===e.length&&("$id"===e[1]||
"$type"===e[1]);case "!has":return!0;default:return!1}};c.convertLegacyFilter=function(e){if(!Array.isArray(e)||0===e.length)return!0;const d=e[0];if(1===e.length)return"any"!==d;switch(d){case "\x3d\x3d":return c.convertComparison("\x3d\x3d",e[1],e[2]);case "!\x3d":return c.negate(c.convertComparison("\x3d\x3d",e[1],e[2]));case "\x3e":case "\x3c":case "\x3e\x3d":case "\x3c\x3d":return c.convertComparison(d,e[1],e[2]);case "in":return c.convertIn(e[1],e.slice(2));case "!in":return c.negate(c.convertIn(e[1],
e.slice(2)));case "any":case "all":case "none":return c.convertCombining(d,e.slice(1));case "has":return c.convertHas(e[1]);case "!has":return c.negate(c.convertHas(e[1]));default:throw Error("Unexpected legacy filter.");}};c.convertComparison=function(e,d,n){switch(d){case "$type":return[e,["geometry-type"],n];case "$id":return[e,["id"],n];default:return[e,["get",d],n]}};c.convertIn=function(e,d){switch(e){case "$type":return["in",["geometry-type"],["literal",d]];case "$id":return["in",["id"],["literal",
d]];default:return["in",["get",e],["literal",d]]}};c.convertHas=function(e){switch(e){case "$type":return!0;case "$id":return["has-id"];default:return["has",e]}};c.convertCombining=function(e,d){return[e].concat(d.map(this.convertLegacyFilter))};c.negate=function(e){return["!",e]};return c}()})},"esri/views/2d/engine/vectorTiles/expression/expression":function(){define("exports ../../../../../chunks/_rollupPluginBabelHelpers ../../../../../Color ../../../../../core/colorUtils ../../../unitBezier ../GeometryUtils ./types ../../webgl/Geometry".split(" "),
function(a,b,c,e,d,n,u,r){function h(R,Q,Z){var X=typeof R;if("string"===X||"boolean"===X||"number"===X||null===R){if(Z)switch(Z.kind){case "string":"string"!==X&&(R=ma.toString(R));break;case "number":"number"!==X&&(R=ma.toNumber(R));break;case "color":R=ma.toColor(R)}R=["literal",R]}if(!Array.isArray(R)||0===R.length)throw Error("Expression must be a non empty array");X=R[0];if("string"!==typeof X)throw Error("First element of expression must be a string");const M=fa[X];if(void 0===M)throw Error(`Invalid expression operator "${X}"`);
if(!M)throw Error(`Unimplemented expression operator "${X}"`);return M.parse(R,Q,Z)}let g=function(){function R(Z){this._parent=Z;this._vars={}}var Q=R.prototype;Q.add=function(Z,X){this._vars[Z]=X};Q.get=function(Z){return this._vars[Z]?this._vars[Z]:this._parent?this._parent.get(Z):null};return R}(),k=function(){function R(){this.type=u.ValueType}R.parse=function(Q){if(1<Q.length)throw Error('"id" does not expect arguments');return new R};R.prototype.evaluate=function(Q,Z){return Q?.id};return R}(),
p=function(){function R(){this.type=u.StringType}R.parse=function(Q){if(1<Q.length)throw Error('"geometry-type" does not expect arguments');return new R};R.prototype.evaluate=function(Q,Z){if(!Q)return null;switch(Q.type){case r.GeometryType.Point:return"Point";case r.GeometryType.LineString:return"LineString";case r.GeometryType.Polygon:return"Polygon";default:return null}};return R}(),l=function(){function R(){this.type=u.ObjectType}R.parse=function(Q){if(1<Q.length)throw Error('"properties" does not expect arguments');
return new R};R.prototype.evaluate=function(Q,Z){return Q?.values};return R}(),m=function(){function R(){this.type=u.NumberType}R.parse=function(Q){if(1<Q.length)throw Error('"zoom" does not expect arguments');return new R};R.prototype.evaluate=function(Q,Z){return Z};return R}(),t=function(){function R(Q,Z,X){this._lhs=Q;this._rhs=Z;this._compare=X;this.type=u.BooleanType}R.parse=function(Q,Z,X){if(3!==Q.length&&4!==Q.length)throw Error(`"${Q[0]}" expects 2 or 3 arguments`);if(4===Q.length)throw Error(`"${Q[0]}" collator not supported`);
return new R(h(Q[1],Z),h(Q[2],Z),X)};R.prototype.evaluate=function(Q,Z){return this._compare(this._lhs.evaluate(Q,Z),this._rhs.evaluate(Q,Z))};return R}(),f=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return t.parse(Z,X,(M,aa)=>M===aa)};return Q}(t),q=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return t.parse(Z,X,(M,aa)=>M!==aa)};return Q}(t),v=function(R){function Q(){return R.apply(this,
arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return t.parse(Z,X,(M,aa)=>M<aa)};return Q}(t),x=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return t.parse(Z,X,(M,aa)=>M<=aa)};return Q}(t),z=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return t.parse(Z,X,(M,aa)=>M>aa)};return Q}(t),y=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,
R);Q.parse=function(Z,X){return t.parse(Z,X,(M,aa)=>M>=aa)};return Q}(t),A=function(){function R(Q){this._arg=Q;this.type=u.BooleanType}R.parse=function(Q,Z){if(2!==Q.length)throw Error('"!" expects 1 argument');return new R(h(Q[1],Z))};R.prototype.evaluate=function(Q,Z){return!this._arg.evaluate(Q,Z)};return R}(),B=function(){function R(Q){this._args=Q;this.type=u.BooleanType}R.parse=function(Q,Z){const X=[];for(let M=1;M<Q.length;M++)X.push(h(Q[M],Z));return new R(X)};R.prototype.evaluate=function(Q,
Z){for(const X of this._args)if(!X.evaluate(Q,Z))return!1;return!0};return R}(),E=function(){function R(Q){this._args=Q;this.type=u.BooleanType}R.parse=function(Q,Z){const X=[];for(let M=1;M<Q.length;M++)X.push(h(Q[M],Z));return new R(X)};R.prototype.evaluate=function(Q,Z){for(const X of this._args)if(X.evaluate(Q,Z))return!0;return!1};return R}(),w=function(){function R(Q){this._args=Q;this.type=u.BooleanType}R.parse=function(Q,Z){const X=[];for(let M=1;M<Q.length;M++)X.push(h(Q[M],Z));return new R(X)};
R.prototype.evaluate=function(Q,Z){for(const X of this._args)if(X.evaluate(Q,Z))return!1;return!0};return R}(),D=function(){function R(Q,Z,X){this.type=Q;this._args=Z;this._fallback=X}R.parse=function(Q,Z,X){if(4>Q.length)throw Error('"case" expects at least 3 arguments');if(1===Q.length%2)throw Error('"case" expects an odd number of arguments');let M;const aa=[];for(let oa=1;oa<Q.length-1;oa+=2){const Da=h(Q[oa],Z),Ea=h(Q[oa+1],Z,X);M||(M=Ea.type);aa.push({condition:Da,output:Ea})}Q=h(Q[Q.length-
1],Z,X);M||(M=Q.type);return new R(M,aa,Q)};R.prototype.evaluate=function(Q,Z){for(const X of this._args)if(X.condition.evaluate(Q,Z))return X.output.evaluate(Q,Z);return this._fallback.evaluate(Q,Z)};return R}(),C=function(){function R(Q,Z){this.type=Q;this._args=Z}R.parse=function(Q,Z){if(2>Q.length)throw Error('"coalesce" expects at least 1 argument');let X;const M=[];for(let aa=1;aa<Q.length;aa++){const oa=h(Q[aa],Z);X||(X=oa.type);M.push(oa)}return new R(X,M)};R.prototype.evaluate=function(Q,
Z){for(const X of this._args){const M=X.evaluate(Q,Z);if(null!==M)return M}return null};return R}(),F=function(){function R(Q,Z,X,M,aa){this.type=Q;this._input=Z;this._labels=X;this._outputs=M;this._fallback=aa}R.parse=function(Q,Z){if(3>Q.length)throw Error('"match" expects at least 3 arguments');if(0===Q.length%2)throw Error('"case" expects an even number of arguments');let X;const M=h(Q[1],Z),aa=[],oa={};let Da;for(let Ja=2;Ja<Q.length-1;Ja+=2){var Ea=Q[Ja];Array.isArray(Ea)||(Ea=[Ea]);for(const Ka of Ea){Ea=
typeof Ka;if("string"!==Ea&&"number"!==Ea)throw Error('"match" requires string or number literal as labels');if(!Da)Da=Ea;else if(Ea!==Da)throw Error('"match" requires labels to have the same type');oa[Ka]=aa.length}Ea=h(Q[Ja+1],Z);X||(X=Ea.type);aa.push(Ea)}return new R(X,M,oa,aa,h(Q[Q.length-1],Z))};R.prototype.evaluate=function(Q,Z){const X=this._input.evaluate(Q,Z);return(this._outputs[this._labels[X]]||this._fallback).evaluate(Q,Z)};return R}(),G=function(){function R(Z,X,M,aa,oa){this._operator=
Z;this.type=X;this.interpolation=M;this.input=aa;this._stops=oa}R.parse=function(Z,X,M){const aa=Z[0];if(5>Z.length)throw Error(`"${aa}" expects at least 4 arguments`);const oa=Z[1];if(!Array.isArray(oa)||0===oa.length)throw Error(`"${oa}" is not a valid interpolation`);switch(oa[0]){case "linear":if(1!==oa.length)throw Error("Linear interpolation cannot have parameters");break;case "exponential":if(2!==oa.length||"number"!==typeof oa[1])throw Error("Exponential interpolation requires one numeric argument");
break;case "cubic-bezier":if(5!==oa.length)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(var Da=1;5>Da;Da++){var Ea=oa[Da];if("number"!==typeof Ea||0>Ea||1<Ea)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");}break;default:throw Error(`"${Z[0]}" unknown interpolation type "${oa[0]}"`);}if(1!==Z.length%2)throw Error(`"${aa}" expects an even number of arguments`);Da=h(Z[2],X,u.NumberType);
let Ja;"interpolate-hcl"===aa||"interpolate-lab"===aa?Ja=u.ColorType:M&&"value"!==M.kind&&(Ja=M);M=[];for(Ea=3;Ea<Z.length;Ea+=2){const Ka=Z[Ea];if("number"!==typeof Ka)throw Error(`"${aa}" requires stop inputs as literal numbers`);if(M.length&&M[M.length-1][0]>=Ka)throw Error(`"${aa}" requires strictly ascending stop inputs`);const Sa=h(Z[Ea+1],X,Ja);Ja||(Ja=Sa.type);M.push([Ka,Sa])}if(Ja&&Ja!==u.ColorType&&Ja!==u.NumberType&&("array"!==Ja.kind||Ja.itemType!==u.NumberType))throw Error(`"${aa}" cannot interpolate type ${u.typeToString(Ja)}`);
return new R(aa,Ja,oa,Da,M)};var Q=R.prototype;Q.evaluate=function(Z,X){var M=this._stops;if(1===M.length)return M[0][1].evaluate(Z,X);var aa=this.input.evaluate(Z,X);if(aa<=M[0][0])return M[0][1].evaluate(Z,X);if(aa>=M[M.length-1][0])return M[M.length-1][1].evaluate(Z,X);let oa=0;for(;++oa<M.length&&!(aa<M[oa][0]););const Da=R.interpolationRatio(this.interpolation,aa,M[oa-1][0],M[oa][0]);aa=M[oa-1][1].evaluate(Z,X);const Ea=M[oa][1].evaluate(Z,X);if("interpolate"===this._operator){if("array"===this.type.kind&&
Array.isArray(aa)&&Array.isArray(Ea))return aa.map((Ja,Ka)=>n.interpolate(Ja,Ea[Ka],Da));if("color"===this.type.kind&&aa instanceof c&&Ea instanceof c)return aa=new c(aa),Z=new c(Ea),new c([n.interpolate(aa.r,Z.r,Da),n.interpolate(aa.g,Z.g,Da),n.interpolate(aa.b,Z.b,Da),n.interpolate(aa.a,Z.a,Da)]);if("number"===this.type.kind&&"number"===typeof aa&&"number"===typeof Ea)return n.interpolate(aa,Ea,Da);throw Error(`"${this._operator}" cannot interpolate type ${u.typeToString(this.type)}`);}if("interpolate-hcl"===
this._operator)return Z=e.toLCH(aa),X=e.toLCH(Ea),M=X.h-Z.h,Z=e.toRGB({h:Z.h+Da*(180<M||-180>M?M-360*Math.round(M/360):M),c:n.interpolate(Z.c,X.c,Da),l:n.interpolate(Z.l,X.l,Da)}),new c({a:n.interpolate(aa.a,Ea.a,Da),...Z});if("interpolate-lab"===this._operator)return Z=e.toLAB(aa),X=e.toLAB(Ea),Z=e.toRGB({l:n.interpolate(Z.l,X.l,Da),a:n.interpolate(Z.a,X.a,Da),b:n.interpolate(Z.b,X.b,Da)}),new c({a:n.interpolate(aa.a,Ea.a,Da),...Z});throw Error(`Unexpected operator "${this._operator}"`);};Q.interpolationUniformValue=
function(Z,X){const M=this._stops;if(1===M.length||Z>=M[M.length-1][0])return 0;let aa=0;for(;++aa<M.length&&!(Z<M[aa][0]););return R.interpolationRatio(this.interpolation,X,M[aa-1][0],M[aa][0])};Q.getInterpolationRange=function(Z){const X=this._stops;if(1===X.length)return Z=X[0][0],[Z,Z];var M=X[X.length-1][0];if(Z>=M)return[M,M];for(M=0;++M<X.length&&!(Z<X[M][0]););return[X[M-1][0],X[M][0]]};R.interpolationRatio=function(Z,X,M,aa){let oa=0;"linear"===Z[0]?oa=R._exponentialInterpolationRatio(X,
1,M,aa):"exponential"===Z[0]?oa=R._exponentialInterpolationRatio(X,Z[1],M,aa):"cubic-bezier"===Z[0]&&(oa=d.unitBezier(Z[1],Z[2],Z[3],Z[4])(R._exponentialInterpolationRatio(X,1,M,aa),1E-5));0>oa?oa=0:1<oa&&(oa=1);return oa};R._exponentialInterpolationRatio=function(Z,X,M,aa){aa-=M;if(0===aa)return 0;Z-=M;return 1===X?Z/aa:(X**Z-1)/(X**aa-1)};return R}(),H=function(){function R(Q,Z,X){this.type=Q;this._input=Z;this._stops=X}R.parse=function(Q,Z){if(5>Q.length)throw Error('"step" expects at least 4 arguments');
if(1!==Q.length%2)throw Error('"step" expects an even number of arguments');const X=h(Q[1],Z,u.NumberType);let M;const aa=[];aa.push([-Infinity,h(Q[2],Z)]);for(let oa=3;oa<Q.length;oa+=2){const Da=Q[oa];if("number"!==typeof Da)throw Error('"step" requires stop inputs as literal numbers');if(aa.length&&aa[aa.length-1][0]>=Da)throw Error('"step" requires strictly ascending stop inputs');const Ea=h(Q[oa+1],Z);M||(M=Ea.type);aa.push([Da,Ea])}return new R(M,X,aa)};R.prototype.evaluate=function(Q,Z){const X=
this._stops;if(1===X.length)return X[0][1].evaluate(Q,Z);const M=this._input.evaluate(Q,Z);let aa=0;for(;++aa<X.length&&!(M<X[aa][0]););return this._stops[aa-1][1].evaluate(Q,Z)};return R}(),I=function(){function R(Q,Z){this.type=Q;this._output=Z}R.parse=function(Q,Z,X){if(4>Q.length)throw Error('"let" expects at least 3 arguments');if(1===Q.length%2)throw Error('"let" expects an odd number of arguments');const M=new g(Z);for(let aa=1;aa<Q.length-1;aa+=2){const oa=Q[aa];if("string"!==typeof oa)throw Error(`"let" requires a string to define variable names - found ${oa}`);
M.add(oa,h(Q[aa+1],Z))}Q=h(Q[Q.length-1],M,X);return new R(Q.type,Q)};R.prototype.evaluate=function(Q,Z){return this._output.evaluate(Q,Z)};return R}(),J=function(){function R(Q,Z){this.type=Q;this.output=Z}R.parse=function(Q,Z,X){if(2!==Q.length||"string"!==typeof Q[1])throw Error('"var" requires just one literal string argument');Z=Z.get(Q[1]);if(!Z)throw Error(`${Q[1]} must be defined before being used in a "var" expression`);return new R(X||u.ValueType,Z)};R.prototype.evaluate=function(Q,Z){return this.output.evaluate(Q,
Z)};return R}(),K=function(){function R(Q,Z,X){this.type=Q;this._index=Z;this._array=X}R.parse=function(Q,Z){if(3!==Q.length)throw Error('"at" expects 2 arguments');const X=h(Q[1],Z,u.NumberType);Q=h(Q[2],Z);return new R(Q.type.itemType,X,Q)};R.prototype.evaluate=function(Q,Z){const X=this._index.evaluate(Q,Z);Q=this._array.evaluate(Q,Z);if(0>X||X>=Q.length)throw Error('"at" index out of bounds');if(X!==Math.floor(X))throw Error('"at" index must be an integer');return Q[X]};return R}(),N=function(){function R(Q,
Z){this._key=Q;this._obj=Z;this.type=u.ValueType}R.parse=function(Q,Z){let X;switch(Q.length){case 2:return X=h(Q[1],Z),new R(X);case 3:return X=h(Q[1],Z),Q=h(Q[2],Z),new R(X,Q);default:throw Error('"get" expects 1 or 2 arguments');}};R.prototype.evaluate=function(Q,Z){const X=this._key.evaluate(Q,Z);return this._obj?this._obj.evaluate(Q,Z)[X]:Q?.values[X]};return R}(),U=function(){function R(Q,Z){this._key=Q;this._obj=Z;this.type=u.BooleanType}R.parse=function(Q,Z){let X;switch(Q.length){case 2:return X=
h(Q[1],Z),new R(X);case 3:return X=h(Q[1],Z),Q=h(Q[2],Z),new R(X,Q);default:throw Error('"has" expects 1 or 2 arguments');}};R.prototype.evaluate=function(Q,Z){const X=this._key.evaluate(Q,Z);return this._obj?(Q=this._obj.evaluate(Q,Z),X in Q):!!Q?.values[X]};return R}(),ba=function(){function R(Q,Z){this._key=Q;this._vals=Z;this.type=u.BooleanType}R.parse=function(Q,Z){if(3!==Q.length)throw Error('"in" expects 2 arguments');return new R(h(Q[1],Z),h(Q[2],Z))};R.prototype.evaluate=function(Q,Z){const X=
this._key.evaluate(Q,Z);return this._vals.evaluate(Q,Z).includes(X)};return R}(),ka=function(){function R(Q,Z,X){this._item=Q;this._array=Z;this._from=X;this.type=u.NumberType}R.parse=function(Q,Z){if(3>Q.length||4<Q.length)throw Error('"index-of" expects 3 or 4 arguments');const X=h(Q[1],Z),M=h(Q[2],Z);return 4===Q.length?(Q=h(Q[3],Z,u.NumberType),new R(X,M,Q)):new R(X,M)};R.prototype.evaluate=function(Q,Z){const X=this._item.evaluate(Q,Z),M=this._array.evaluate(Q,Z);if(this._from){Q=this._from.evaluate(Q,
Z);if(Q!==Math.floor(Q))throw Error('"index-of" index must be an integer');return M.indexOf(X,Q)}return M.indexOf(X)};return R}(),P=function(){function R(Q){this._arg=Q;this.type=u.NumberType}R.parse=function(Q,Z){if(2!==Q.length)throw Error('"length" expects 2 arguments');Q=h(Q[1],Z);return new R(Q)};R.prototype.evaluate=function(Q,Z){Q=this._arg.evaluate(Q,Z);if("string"===typeof Q||Array.isArray(Q))return Q.length;throw Error('"length" expects string or array');};return R}(),V=function(){function R(Q,
Z,X,M){this.type=Q;this._array=Z;this._from=X;this._to=M}R.parse=function(Q,Z){if(3>Q.length||4<Q.length)throw Error('"slice" expects 2 or 3 arguments');const X=h(Q[1],Z),M=h(Q[2],Z,u.NumberType);if(M.type!==u.NumberType)throw Error('"slice" index must return a number');if(4===Q.length){Q=h(Q[3],Z,u.NumberType);if(Q.type!==u.NumberType)throw Error('"slice" index must return a number');return new R(X.type,X,M,Q)}return new R(X.type,X,M)};R.prototype.evaluate=function(Q,Z){const X=this._array.evaluate(Q,
Z);if(!Array.isArray(X)&&"string"!==typeof X)throw Error('"slice" input must be an array or a string');const M=this._from.evaluate(Q,Z);if(0>M||M>=X.length)throw Error('"slice" index out of bounds');if(M!==Math.floor(M))throw Error('"slice" index must be an integer');if(this._to){Q=this._to.evaluate(Q,Z);if(0>Q||Q>=X.length)throw Error('"slice" index out of bounds');if(Q!==Math.floor(Q))throw Error('"slice" index must be an integer');return X.slice(M,Q)}return X.slice(M)};return R}(),ca=function(){function R(){this.type=
u.BooleanType}R.parse=function(Q){if(1!==Q.length)throw Error('"has-id" expects no arguments');return new R};R.prototype.evaluate=function(Q,Z){return Q&&void 0!==Q.id};return R}(),ra=function(){function R(Q,Z){this._args=Q;this._calculate=Z;this.type=u.NumberType}R.parse=function(Q,Z,X){Q=Q.slice(1).map(M=>h(M,Z));return new R(Q,X)};R.prototype.evaluate=function(Q,Z){let X;this._args&&(X=this._args.map(M=>M.evaluate(Q,Z)));return this._calculate(X)};return R}(),ta=function(R){function Q(){return R.apply(this,
arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){switch(Z.length){case 2:return ra.parse(Z,X,M=>-M[0]);case 3:return ra.parse(Z,X,M=>M[0]-M[1]);default:throw Error('"-" expects 1 or 2 arguments');}};return Q}(ra),Ba=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return ra.parse(Z,X,M=>{let aa=1;for(const oa of M)aa*=oa;return aa})};return Q}(ra),Ha=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,
R);Q.parse=function(Z,X){if(3===Z.length)return ra.parse(Z,X,M=>M[0]/M[1]);throw Error('"/" expects 2 arguments');};return Q}(ra),da=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){if(3===Z.length)return ra.parse(Z,X,M=>M[0]%M[1]);throw Error('"%" expects 2 arguments');};return Q}(ra),la=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){if(3===Z.length)return ra.parse(Z,X,M=>M[0]**M[1]);
throw Error('"^" expects 1 or 2 arguments');};return Q}(ra),sa=function(R){function Q(){return R.apply(this,arguments)||this}b._inheritsLoose(Q,R);Q.parse=function(Z,X){return ra.parse(Z,X,M=>{let aa=0;for(const oa of M)aa+=oa;return aa})};return Q}(ra),L=function(){function R(Q,Z){this._args=Q;this._calculate=Z;this.type=u.NumberType}R.parse=function(Q,Z){const X=Q.slice(1).map(M=>h(M,Z));return new R(X,R.ops[Q[0]])};R.prototype.evaluate=function(Q,Z){let X;this._args&&(X=this._args.map(M=>M.evaluate(Q,
Z)));return this._calculate(X)};return R}();L.ops={abs:R=>Math.abs(R[0]),acos:R=>Math.acos(R[0]),asin:R=>Math.asin(R[0]),atan:R=>Math.atan(R[0]),ceil:R=>Math.ceil(R[0]),cos:R=>Math.cos(R[0]),e:()=>Math.E,floor:R=>Math.floor(R[0]),ln:R=>Math.log(R[0]),ln2:()=>Math.LN2,log10:R=>Math.log(R[0])/Math.LN10,log2:R=>Math.log(R[0])/Math.LN2,max:R=>Math.max(...R),min:R=>Math.min(...R),pi:()=>Math.PI,round:R=>Math.round(R[0]),sin:R=>Math.sin(R[0]),sqrt:R=>Math.sqrt(R[0]),tan:R=>Math.tan(R[0])};let O=function(){function R(Q){this._args=
Q;this.type=u.StringType}R.parse=function(Q,Z){return new R(Q.slice(1).map(X=>h(X,Z)))};R.prototype.evaluate=function(Q,Z){return this._args.map(X=>X.evaluate(Q,Z)).join("")};return R}(),ha=function(){function R(Q,Z){this._arg=Q;this._calculate=Z;this.type=u.StringType}R.parse=function(Q,Z){if(2!==Q.length)throw Error(`${Q[0]} expects 1 argument`);Z=h(Q[1],Z);return new R(Z,R.ops[Q[0]])};R.prototype.evaluate=function(Q,Z){return this._calculate(this._arg.evaluate(Q,Z))};return R}();ha.ops={downcase:R=>
R.toLowerCase(),upcase:R=>R.toUpperCase()};let pa=function(){function R(Z){this._args=Z;this.type=u.ColorType}R.parse=function(Z,X){if(4!==Z.length)throw Error('"rgb" expects 3 arguments');Z=Z.slice(1).map(M=>h(M,X));return new R(Z)};var Q=R.prototype;Q.evaluate=function(Z,X){const M=this._validate(this._args[0].evaluate(Z,X)),aa=this._validate(this._args[1].evaluate(Z,X));Z=this._validate(this._args[2].evaluate(Z,X));return new c({r:M,g:aa,b:Z})};Q._validate=function(Z){if("number"!==typeof Z||0>
Z||255<Z)throw Error(`${Z}: invalid color component`);return Math.round(Z)};return R}(),ya=function(){function R(Z){this._args=Z;this.type=u.ColorType}R.parse=function(Z,X){if(5!==Z.length)throw Error('"rgba" expects 4 arguments');Z=Z.slice(1).map(M=>h(M,X));return new R(Z)};var Q=R.prototype;Q.evaluate=function(Z,X){const M=this._validate(this._args[0].evaluate(Z,X)),aa=this._validate(this._args[1].evaluate(Z,X)),oa=this._validate(this._args[2].evaluate(Z,X));Z=this._validateAlpha(this._args[3].evaluate(Z,
X));return new c({r:M,g:aa,b:oa,a:Z})};Q._validate=function(Z){if("number"!==typeof Z||0>Z||255<Z)throw Error(`${Z}: invalid color component`);return Math.round(Z)};Q._validateAlpha=function(Z){if("number"!==typeof Z||0>Z||1<Z)throw Error(`${Z}: invalid alpha color component`);return Z};return R}(),Y=function(){function R(Q){this._color=Q;this.type=u.arrayType(u.NumberType,4)}R.parse=function(Q,Z){if(2!==Q.length)throw Error('"to-rgba" expects 1 argument');Q=h(Q[1],Z);return new R(Q)};R.prototype.evaluate=
function(Q,Z){return(new c(this._color.evaluate(Q,Z))).toRgba()};return R}(),ea=function(){function R(Q,Z){this.type=Q;this._args=Z}R.parse=function(Q,Z){var X=Q[0];if(2>Q.length)throw Error(`${X} expects at least one argument`);let M=1,aa;if("array"===X){if(2<Q.length){switch(Q[1]){case "string":aa=u.StringType;break;case "number":aa=u.NumberType;break;case "boolean":aa=u.BooleanType;break;default:throw Error('"array" type argument must be string, number or boolean');}M++}else aa=u.ValueType;if(3<
Q.length){var oa=Q[2];if(null!==oa&&("number"!==typeof oa||0>oa||oa!==Math.floor(oa)))throw Error('"array" length argument must be a positive integer literal');M++}aa=u.arrayType(aa,oa)}else switch(X){case "string":aa=u.StringType;break;case "number":aa=u.NumberType;break;case "boolean":aa=u.BooleanType;break;case "object":aa=u.ObjectType}for(X=[];M<Q.length;M++)oa=h(Q[M],Z),X.push(oa);return new R(aa,X)};R.prototype.evaluate=function(Q,Z){let X;for(const M of this._args){const aa=M.evaluate(Q,Z);
X=u.getType(aa);if(u.matchType(X,this.type))return aa}throw Error(`Expected ${u.typeToString(this.type)} but got ${u.typeToString(X)}`);};return R}(),ma=function(){function R(Q,Z){this.type=Q;this._args=Z}R.parse=function(Q,Z){var X=Q[0];const M=R.types[X];if(M===u.BooleanType||M===u.StringType){if(2!==Q.length)throw Error(`${X} expects one argument`);}else if(2>Q.length)throw Error(`${X} expects at least one argument`);X=[];for(let aa=1;aa<Q.length;aa++){const oa=h(Q[aa],Z);X.push(oa)}return new R(M,
X)};R.prototype.evaluate=function(Q,Z){if(this.type===u.BooleanType)return!!this._args[0].evaluate(Q,Z);if(this.type===u.StringType)return u.valueToString(this._args[0].evaluate(Q,Z));if(this.type===u.NumberType){for(const M of this._args){var X=Number(M.evaluate(Q,Z));if(!isNaN(X))return X}return null}if(this.type===u.ColorType){for(X of this._args)try{const M=R.toColor(X.evaluate(Q,Z));if(M instanceof c)return M}catch{}return null}};R.toBoolean=function(Q){return!!Q};R.toString=function(Q){return u.valueToString(Q)};
R.toNumber=function(Q){const Z=Number(Q);if(isNaN(Z))throw Error(`"${Q}" is not a number`);return Z};R.toColor=function(Q){if(Q instanceof c)return Q;if("string"===typeof Q){const Z=c.fromString(Q);if(Z)return Z;throw Error(`"${Q}" is not a color`);}if(Array.isArray(Q))return c.fromArray(Q);throw Error(`"${Q}" is not a color`);};return R}();ma.types={"to-boolean":u.BooleanType,"to-color":u.ColorType,"to-number":u.NumberType,"to-string":u.StringType};let ja=function(){function R(Q){this._val=Q;this.type=
u.getType(Q)}R.parse=function(Q){if(2!==Q.length)throw Error('"literal" expects 1 argument');return new R(Q[1])};R.prototype.evaluate=function(Q,Z){return this._val};return R}(),S=function(){function R(Q){this._arg=Q;this.type=u.StringType}R.parse=function(Q,Z){if(2!==Q.length)throw Error('"typeof" expects 1 argument');return new R(h(Q[1],Z))};R.prototype.evaluate=function(Q,Z){return u.typeToString(u.getType(this._arg.evaluate(Q,Z)))};return R}();const fa={array:ea,boolean:ea,collator:null,format:null,
image:null,literal:ja,number:ea,"number-format":null,object:ea,string:ea,"to-boolean":ma,"to-color":ma,"to-number":ma,"to-string":ma,typeof:S,accumulated:null,"feature-state":null,"geometry-type":p,id:k,"line-progress":null,properties:l,at:K,get:N,has:U,in:ba,"index-of":ka,length:P,slice:V,"!":A,"!\x3d":q,"\x3c":v,"\x3c\x3d":x,"\x3d\x3d":f,"\x3e":z,"\x3e\x3d":y,all:B,any:E,case:D,coalesce:C,match:F,within:null,interpolate:G,"interpolate-hcl":G,"interpolate-lab":G,step:H,let:I,var:J,concat:O,downcase:ha,
"is-supported-script":null,"resolved-locale":null,upcase:ha,rgb:pa,rgba:ya,"to-rgba":Y,"-":ta,"*":Ba,"/":Ha,"%":da,"^":la,"+":sa,abs:L,acos:L,asin:L,atan:L,ceil:L,cos:L,e:L,floor:L,ln:L,ln2:L,log10:L,log2:L,max:L,min:L,pi:L,round:L,sin:L,sqrt:L,tan:L,zoom:m,"heatmap-density":null,"has-id":ca,none:w};a.ALL=B;a.ANY=E;a.Add=sa;a.Assert=ea;a.At=K;a.Calculate=L;a.Case=D;a.Coalesce=C;a.Coerce=ma;a.Concat=O;a.Div=Ha;a.EQ=f;a.GE=y;a.GT=z;a.GeomType=p;a.Get=N;a.Has=U;a.HasID=ca;a.ID=k;a.In=ba;a.IndexOf=ka;
a.Interpolate=G;a.LE=x;a.LT=v;a.Length=P;a.Let=I;a.Literal=ja;a.Match=F;a.Mod=da;a.Mul=Ba;a.NE=q;a.NONE=w;a.NOT=A;a.Pow=la;a.Properties=l;a.Rgb=pa;a.Rgba=ya;a.Slice=V;a.Step=H;a.String=ha;a.Sub=ta;a.ToRgba=Y;a.TypeOf=S;a.Var=J;a.Zoom=m;a.createExpression=h;a.ops=fa;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/colorUtils":function(){define(["exports"],function(a){function b(g,k){const p=[];let l,m;if(g[0].length!==k.length)throw"dimensions do not match";
const t=g.length,f=g[0].length;let q=0;for(l=0;l<t;l++){for(m=q=0;m<f;m++)q+=g[l][m]*k[m];p.push(q)}return p}function c(g){g=[g.r/255,g.g/255,g.b/255].map(k=>.04045>=k?k/12.92:((k+.055)/1.055)**2.4);g=b(r,g);return{x:100*g[0],y:100*g[1],z:100*g[2]}}function e(g){g=b(h,[g.x/100,g.y/100,g.z/100]).map(k=>Math.min(1,Math.max(.0031308>=k?12.92*k:1.055*k**(1/2.4)-.055,0)));return{r:Math.round(255*g[0]),g:Math.round(255*g[1]),b:Math.round(255*g[2])}}function d(g){g=[g.x/95.047,g.y/100,g.z/108.883].map(k=>
k>(6/29)**3?k**(1/3):1/3*(29/6)**2*k+4/29);return{l:116*g[1]-16,a:500*(g[0]-g[1]),b:200*(g[1]-g[2])}}function n(g){const k=g.l;g=[(k+16)/116+g.a/500,(k+16)/116,(k+16)/116-g.b/200].map(p=>p>6/29?p**3:3*(6/29)**2*(p-4/29));return{x:95.047*g[0],y:100*g[1],z:108.883*g[2]}}function u(g){if("r"in g&&"g"in g&&"b"in g)return g;if("l"in g&&"c"in g&&"h"in g){var k=g.c,p=g.h;return e(n({l:g.l,a:k*Math.cos(p),b:k*Math.sin(p)}))}if("l"in g&&"a"in g&&"b"in g)return e(n(g));if("x"in g&&"y"in g&&"z"in g)return e(g);
if("h"in g&&"s"in g&&"v"in g){p=(g.h+360)%360/60;k=g.v/100*255;g=g.s/100*k;const l=g*(1-Math.abs(p%2-1));switch(Math.floor(p)){case 0:p={r:g,g:l,b:0};break;case 1:p={r:l,g,b:0};break;case 2:p={r:0,g,b:l};break;case 3:p={r:0,g:l,b:g};break;case 4:p={r:l,g:0,b:g};break;case 5:case 6:p={r:g,g:0,b:l};break;default:p={r:0,g:0,b:0}}p.r=Math.round(p.r+k-g);p.g=Math.round(p.g+k-g);p.b=Math.round(p.b+k-g);return p}return g}const r=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=[[3.2406,-1.5372,
-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];a.darken=function(g,k){g=d(c(g));g.l*=1-k;return e(n(g))};a.toHSV=function(g){if("h"in g&&"s"in g&&"v"in g)return g;var k=u(g);g=k.r;const p=k.g,l=k.b;k=Math.max(g,p,l);const m=k-Math.min(g,p,l);g=0===m?0:k===g?(p-l)/m%6:k===p?(l-g)/m+2:(g-p)/m+4;0>g&&(g+=6);return{h:60*g,s:100*(0===m?0:m/k),v:100/255*k}};a.toLAB=function(g){return"l"in g&&"a"in g&&"b"in g?g:d(c(u(g)))};a.toLCH=function(g){if(!("l"in g&&"c"in g&&"h"in g)){var k=d(c(u(g)));g=k.l;var p=
k.a;const l=k.b;k=Math.sqrt(p*p+l*l);p=Math.atan2(l,p);p=0<p?p:p+2*Math.PI;g={l:g,c:k,h:p}}return g};a.toRGB=u;a.toXYZ=function(g){return"x"in g&&"y"in g&&"z"in g?g:c(u(g))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/unitBezier":function(){define(["exports"],function(a){function b(d,n,u,r){function h(f,q){var v;let x,z;x=f;for(v=0;8>v;v++){z=((p*x+k)*x+g)*x-f;if(Math.abs(z)<q)return x;var y=(3*p*x+2*k)*x+g;if(1E-6>Math.abs(y))break;x-=
z/y}y=0;v=1;x=f;if(x<y)return y;if(x>v)return v;for(;y<v;){z=((p*x+k)*x+g)*x;if(Math.abs(z-f)<q)break;f>z?y=x:v=x;x=.5*(v-y)+y}return x}const g=3*d,k=3*(u-d)-g,p=1-g-k,l=3*n,m=3*(r-n)-l,t=1-l-m;return function(f,q=1E-6){f=h(f,q);return((t*f+m)*f+l)*f}}const c=/^cubic-bezier\((.*)\)/,e={};e.ease=b(.25,.1,.25,1);e.linear=b(0,0,1,1);e.easeIn=e["ease-in"]=b(.42,0,1,1);e.easeOut=e["ease-out"]=b(0,0,.58,1);e.easeInOut=e["ease-in-out"]=b(.42,0,.58,1);a.easingFunctions=e;a.parse=function(d){let n=e[d]||null;
!n&&(d=c.exec(d))&&(d=d[1].split(",").map(u=>parseFloat(u.trim())),4!==d.length||d.some(u=>isNaN(u))||(n=b.apply(b,d)));return n};a.unitBezier=b;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/expression/types":function(){define(["exports","../../../../../Color"],function(a,b){function c(t,f){return{kind:"array",itemType:t,n:f}}function e(t){if("array"===t.kind){const f=e(t.itemType);return"number"===typeof t.n?`array<${f}, ${t.n}>`:
"value"===t.itemType.kind?"array":`array<${f}>`}return t.kind}function d(t){if(null===t)return u;if("string"===typeof t)return h;if("boolean"===typeof t)return g;if("number"===typeof t)return r;if(t instanceof b)return k;if(Array.isArray(t)){let f;for(const q of t){const v=d(q);if(!f)f=v;else if(f!==v){f=l;break}}return c(f||l,t.length)}return"object"===typeof t?p:l}function n(t,f){if("array"===f.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||n(t.itemType,f.itemType))&&("number"!==
typeof f.n||f.n===t.n);if("value"===f.kind)for(const q of m)if(n(t,q))return!0;return f.kind===t.kind}const u={kind:"null"},r={kind:"number"},h={kind:"string"},g={kind:"boolean"},k={kind:"color"},p={kind:"object"},l={kind:"value"},m=[u,r,h,g,k,p,c(l)];a.BooleanType=g;a.ColorType=k;a.NullType=u;a.NumberType=r;a.ObjectType=p;a.StringType=h;a.ValueType=l;a.arrayType=c;a.getType=d;a.matchType=n;a.typeToString=e;a.valueToString=function(t){if(null===t)return"";const f=typeof t;return"string"===f?t:"number"===
f||"boolean"===f?String(t):t instanceof b?t.toString():JSON.stringify(t)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/style/StyleProperty":function(){define(["../../../../../Color","../GeometryUtils","../expression/expression","../expression/types"],function(a,b,c,e){return function(){function d(u,r){this.isDataDriven=!1;this.interpolator=null;switch(u.type){case "number":var h=!0;break;case "color":h=!0;break;case "array":h=
"number"===u.value;break;default:h=!1}null==r&&(r=u.default);if(Array.isArray(r)&&0<r.length&&c.ops[r[0]]){h={number:e.NumberType,color:e.ColorType,string:e.StringType,boolean:e.BooleanType,enum:e.StringType};try{var g="array"===u.type?e.arrayType(h[u.value]||e.ValueType,u.length):h[u.type];const k=c.createExpression(r,null,g);this.getValue=this._buildExpression(k,u);this.isDataDriven=!0;k instanceof c.Interpolate&&k.input instanceof c.Zoom&&(this.interpolator=k)}catch(k){console.log(k.message),this.getValue=
this._buildSimple(u.default)}}else{h&&"interval"===r.type&&(h=!1);if(g=r&&r.stops&&0<r.stops.length)for(const k of r.stops)k[1]=this._validate(k[1],u);if(this.isDataDriven=r?!!r.property:!1)if(void 0!==r.default&&(r.default=this._validate(r.default,u)),g)switch(r.type){case "identity":this.getValue=this._buildIdentity(r,u);break;case "categorical":this.getValue=this._buildCategorical(r,u);break;default:this.getValue=h?this._buildInterpolate(r,u):this._buildInterval(r,u)}else this.getValue=this._buildIdentity(r,
u);else g?this.getValue=h?this._buildZoomInterpolate(r):this._buildZoomInterval(r):(r=this._validate(r,u),this.getValue=this._buildSimple(r))}}var n=d.prototype;n._validate=function(u,r){if("number"===r.type){if(u<r.minimum)return r.minimum;if(u>r.maximum)return r.maximum}else"color"===r.type?u=d._parseColor(u):"enum"===r.type?"string"===typeof u&&(u=r.values.indexOf(u)):"array"===r.type&&"enum"===r.value?u=u.map(h=>"string"===typeof h?r.values.indexOf(h):h):"string"===r.type&&(u=e.valueToString(u));
return u};n._buildSimple=function(u){return()=>u};n._buildExpression=function(u,r){return(h,g)=>{try{const k=u.evaluate(g,h);return void 0===k?r.default:this._validate(k,r)}catch(k){return console.log(k.message),r.default}}};n._buildIdentity=function(u,r){return(h,g)=>{let k;g&&(k=g.values[u.property]);void 0!==k&&(k=this._validate(k,r));return null!=k?k:void 0!==u.default?u.default:r.default}};n._buildCategorical=function(u,r){return(h,g)=>{let k;g&&(k=g.values[u.property]);k=this._categorical(k,
u.stops);return void 0!==k?k:void 0!==u.default?u.default:r.default}};n._buildInterval=function(u,r){return(h,g)=>{let k;g&&(k=g.values[u.property]);return"number"===typeof k?this._interval(k,u.stops):void 0!==u.default?u.default:r.default}};n._buildInterpolate=function(u,r){return(h,g)=>{let k;g&&(k=g.values[u.property]);return"number"===typeof k?this._interpolate(k,u.stops,u.base||1):void 0!==u.default?u.default:r.default}};n._buildZoomInterpolate=function(u){return r=>this._interpolate(r,u.stops,
u.base||1)};n._buildZoomInterval=function(u){return r=>this._interval(r,u.stops)};n._categorical=function(u,r){const h=r.length;for(let g=0;g<h;g++)if(r[g][0]===u)return r[g][1]};n._interval=function(u,r){const h=r.length;let g=0;for(let k=0;k<h;k++)if(r[k][0]<=u)g=k;else break;return r[g][1]};n._interpolate=function(u,r,h){const g=r.length;for(let l=0;l<g;l++){const m=r[l];if(m[0]<=u)var k=m;else{var p=m;break}}if(k&&p){r=p[0]-k[0];u-=k[0];h=1===h?u/r:(h**u-1)/(h**r-1);if(Array.isArray(k[1])){k=
k[1];p=p[1];u=[];for(r=0;r<k.length;r++)u.push(b.interpolate(k[r],p[r],h));return u}return b.interpolate(k[1],p[1],h)}if(k)return k[1];if(p)return p[1]};d._isEmpty=function(u){for(const r in u)if(u.hasOwnProperty(r))return!1;return!0};d._parseColor=function(u){if(Array.isArray(u))return u;"string"===typeof u&&(u=new a(u));if(u instanceof a&&!this._isEmpty(u))return a.toUnitRGBA(u)};return d}()})},"esri/views/2d/engine/webgl/TileClipper":function(){define(["exports","../../../../chunks/_rollupPluginBabelHelpers",
"./definitions","./Geometry","./GeometryUtils"],function(a,b,c,e,d){let n=function(k,p,l){this.ratio=k;this.x=p;this.y=l},u=function(){function k(l,m,t,f=8,q=8){this._lines=[];this._starts=[];this.validateTessellation=!0;this._pixelRatio=f;this._pixelMargin=q;this._tileSize=c.TILE_SIZE*f;this._dz=l;this._yPos=m;this._xPos=t}var p=k.prototype;p.setPixelMargin=function(l){l!==this._pixelMargin&&(this._pixelMargin=l,this.setExtent(this._extent))};p.setExtent=function(l){this._extent=l;this._finalRatio=
this._tileSize/l*(1<<this._dz);let m=this._pixelRatio*this._pixelMargin;m/=this._finalRatio;l>>=this._dz;m>l&&(m=l);this._margin=m;this._xmin=l*this._xPos-m;this._ymin=l*this._yPos-m;this._xmax=this._xmin+l+2*m;this._ymax=this._ymin+l+2*m};p.reset=function(l){this._type=l;this._lines=[];this._starts=[];this._line=null;this._start=0};p.moveTo=function(l,m){this._pushLine();this._prevIsIn=this._isIn(l,m);this._moveTo(l,m,this._prevIsIn);this._prevPt=new e.Point(l,m);this._firstPt=new e.Point(l,m);this._dist=
0};p.lineTo=function(l,m){const t=this._isIn(l,m),f=new e.Point(l,m),q=e.Point.distance(this._prevPt,f);if(t)if(this._prevIsIn)this._lineTo(l,m,!0);else{var v=this._prevPt;var x=f;l=this._intersect(x,v);this._start=this._dist+q*(1-this._r);this._lineTo(l.x,l.y,!0);this._lineTo(x.x,x.y,!0)}else if(this._prevIsIn)x=this._prevPt,v=f,l=this._intersect(x,v),this._lineTo(l.x,l.y,!0),this._lineTo(v.x,v.y,!1);else{const y=this._prevPt;if(!(y.x<=this._xmin&&f.x<=this._xmin||y.x>=this._xmax&&f.x>=this._xmax||
y.y<=this._ymin&&f.y<=this._ymin||y.y>=this._ymax&&f.y>=this._ymax)){l=[];if(y.x<this._xmin&&f.x>this._xmin||y.x>this._xmin&&f.x<this._xmin){m=(this._xmin-y.x)/(f.x-y.x);var z=y.y+m*(f.y-y.y);z<=this._ymin?x=!1:z>=this._ymax?x=!0:l.push(new n(m,this._xmin,z))}if(y.x<this._xmax&&f.x>this._xmax||y.x>this._xmax&&f.x<this._xmax)m=(this._xmax-y.x)/(f.x-y.x),z=y.y+m*(f.y-y.y),z<=this._ymin?x=!1:z>=this._ymax?x=!0:l.push(new n(m,this._xmax,z));if(y.y<this._ymin&&f.y>this._ymin||y.y>this._ymin&&f.y<this._ymin)m=
(this._ymin-y.y)/(f.y-y.y),z=y.x+m*(f.x-y.x),z<=this._xmin?v=!1:z>=this._xmax?v=!0:l.push(new n(m,z,this._ymin));if(y.y<this._ymax&&f.y>this._ymax||y.y>this._ymax&&f.y<this._ymax)m=(this._ymax-y.y)/(f.y-y.y),z=y.x+m*(f.x-y.x),z<=this._xmin?v=!1:z>=this._xmax?v=!0:l.push(new n(m,z,this._ymax));if(0===l.length)v?x?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):x?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(1<l.length&&l[0].ratio>
l[1].ratio)this._start=this._dist+q*l[1].ratio,this._lineTo(l[1].x,l[1].y,!0),this._lineTo(l[0].x,l[0].y,!0);else for(this._start=this._dist+q*l[0].ratio,v=0;v<l.length;v++)this._lineTo(l[v].x,l[v].y,!0)}this._lineTo(f.x,f.y,!1)}this._dist+=q;this._prevIsIn=t;this._prevPt=f};p.close=function(){if(2<this._line.length){var l=this._firstPt,m=this._prevPt;l.x===m.x&&l.y===m.y||this.lineTo(l.x,l.y);l=this._line;for(m=l.length;4<=m;)if(l[0].x===l[1].x&&l[0].x===l[m-2].x||l[0].y===l[1].y&&l[0].y===l[m-2].y)l.pop(),
l[0].x=l[m-2].x,l[0].y=l[m-2].y,--m;else break}};p.result=function(l=!0){this._pushLine();if(0===this._lines.length)return null;this._type===e.GeometryType.Polygon&&l&&g.simplify(this._tileSize,this._margin*this._finalRatio,this._lines);return this._lines};p.resultWithStarts=function(){if(this._type!==e.GeometryType.LineString)throw Error("Only valid for lines");this._pushLine();const l=this._lines,m=l.length;if(0===m)return null;const t=[];for(let f=0;f<m;f++)t.push({line:l[f],start:this._starts[f]||
0});return t};p._isIn=function(l,m){return l>=this._xmin&&l<=this._xmax&&m>=this._ymin&&m<=this._ymax};p._intersect=function(l,m){let t,f,q;if(m.x>=this._xmin&&m.x<=this._xmax)f=m.y<=this._ymin?this._ymin:this._ymax,q=(f-l.y)/(m.y-l.y),t=l.x+q*(m.x-l.x);else if(m.y>=this._ymin&&m.y<=this._ymax)t=m.x<=this._xmin?this._xmin:this._xmax,q=(t-l.x)/(m.x-l.x),f=l.y+q*(m.y-l.y);else{f=m.y<=this._ymin?this._ymin:this._ymax;t=m.x<=this._xmin?this._xmin:this._xmax;const v=(t-l.x)/(m.x-l.x),x=(f-l.y)/(m.y-l.y);
v<x?(q=v,f=l.y+v*(m.y-l.y)):(q=x,t=l.x+x*(m.x-l.x))}this._r=q;return new e.Point(t,f)};p._pushLine=function(){this._line&&(this._type===e.GeometryType.Point?0<this._line.length&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===e.GeometryType.LineString?1<this._line.length&&(this._lines.push(this._line),this._starts.push(this._start)):this._type===e.GeometryType.Polygon&&3<this._line.length&&(this._lines.push(this._line),this._starts.push(this._start)));this._line=[];this._start=
0};p._moveTo=function(l,m,t){this._type!==e.GeometryType.Polygon?t&&(l=Math.round((l-(this._xmin+this._margin))*this._finalRatio),m=Math.round((m-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e.Point(l,m))):(t||(l<this._xmin&&(l=this._xmin),l>this._xmax&&(l=this._xmax),m<this._ymin&&(m=this._ymin),m>this._ymax&&(m=this._ymax)),l=Math.round((l-(this._xmin+this._margin))*this._finalRatio),m=Math.round((m-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e.Point(l,m)),
this._isV=this._isH=!1)};p._lineTo=function(l,m,t){if(this._type!==e.GeometryType.Polygon)if(t){l=Math.round((l-(this._xmin+this._margin))*this._finalRatio);m=Math.round((m-(this._ymin+this._margin))*this._finalRatio);if(0<this._line.length&&(t=this._line[this._line.length-1],t.equals(l,m)))return;this._line.push(new e.Point(l,m))}else this._line&&0<this._line.length&&this._pushLine();else if(t||(l<this._xmin&&(l=this._xmin),l>this._xmax&&(l=this._xmax),m<this._ymin&&(m=this._ymin),m>this._ymax&&
(m=this._ymax)),l=Math.round((l-(this._xmin+this._margin))*this._finalRatio),m=Math.round((m-(this._ymin+this._margin))*this._finalRatio),this._line&&0<this._line.length){t=this._line[this._line.length-1];const f=t.x===l,q=t.y===m;f&&q||(this._isH&&f?(t.x=l,t.y=m,t=this._line[this._line.length-2],t.x===l&&t.y===m?(this._line.pop(),1>=this._line.length?this._isV=this._isH=!1:(t=this._line[this._line.length-2],this._isH=t.x===l,this._isV=t.y===m)):(this._isH=t.x===l,this._isV=t.y===m)):this._isV&&q?
(t.x=l,t.y=m,t=this._line[this._line.length-2],t.x===l&&t.y===m?(this._line.pop(),1>=this._line.length?this._isV=this._isH=!1:(t=this._line[this._line.length-2],this._isH=t.x===l,this._isV=t.y===m)):(this._isH=t.x===l,this._isV=t.y===m)):(this._line.push(new e.Point(l,m)),this._isH=f,this._isV=q))}else this._line.push(new e.Point(l,m))};return k}(),r=function(){function k(){}var p=k.prototype;p.setExtent=function(l){this._ratio=4096===l?1:4096/l};p.reset=function(l){this._lines=[];this._line=null};
p.moveTo=function(l,m){this._line&&this._lines.push(this._line);this._line=[];const t=this._ratio;this._line.push(new e.Point(l*t,m*t))};p.lineTo=function(l,m){const t=this._ratio;this._line.push(new e.Point(l*t,m*t))};p.close=function(){const l=this._line;l&&!l[0].isEqual(l[l.length-1])&&l.push(l[0])};p.result=function(){this._line&&this._lines.push(this._line);return 0===this._lines.length?null:this._lines};b._createClass(k,[{key:"validateTessellation",get:function(){return 1>this._ratio}}]);return k}();
var h;(function(k){k[k.sideLeft=0]="sideLeft";k[k.sideRight=1]="sideRight";k[k.sideTop=2]="sideTop";k[k.sideBottom=3]="sideBottom"})(h||(h={}));let g=function(){function k(){}k.simplify=function(p,l,m){if(m){var t=-l,f=p+l,q=-l,v=p+l;p=[];l=[];var x=m.length;for(let z=0;z<x;++z){const y=m[z];if(!y||2>y.length)continue;let A=y[0],B;const E=y.length;for(let w=1;w<E;++w)B=y[w],A.x===B.x&&(A.x<=t&&(A.y>B.y?(p.push(z),p.push(w),p.push(h.sideLeft),p.push(-1)):(l.push(z),l.push(w),l.push(h.sideLeft),l.push(-1))),
A.x>=f&&(A.y<B.y?(p.push(z),p.push(w),p.push(h.sideRight),p.push(-1)):(l.push(z),l.push(w),l.push(h.sideRight),l.push(-1)))),A.y===B.y&&(A.y<=q&&(A.x<B.x?(p.push(z),p.push(w),p.push(h.sideTop),p.push(-1)):(l.push(z),l.push(w),l.push(h.sideTop),l.push(-1))),A.y>=v&&(A.x>B.x?(p.push(z),p.push(w),p.push(h.sideBottom),p.push(-1)):(l.push(z),l.push(w),l.push(h.sideBottom),l.push(-1)))),A=B}0!==p.length&&0!==l.length&&(k.fillParent(m,l,p),k.fillParent(m,p,l),t=[],k.calcDeltas(t,l,p),k.calcDeltas(t,p,l),
k.addDeltas(t,m))}};k.fillParent=function(p,l,m){const t=m.length,f=l.length;for(let y=0;y<f;y+=4){var q=l[y],v=l[y+1];const A=l[y+2],B=p[q][v-1];q=p[q][v];v=8092;let E=-1;for(let w=0;w<t;w+=4){if(m[w+2]!==A)continue;var x=m[w];const D=m[w+1];var z=p[x][D-1];x=p[x][D];switch(A){case h.sideLeft:case h.sideRight:d.between(B.y,z.y,x.y)&&d.between(q.y,z.y,x.y)&&(z=Math.abs(x.y-z.y),z<v&&(v=z,E=w));break;case h.sideTop:case h.sideBottom:d.between(B.x,z.x,x.x)&&d.between(q.x,z.x,x.x)&&(z=Math.abs(x.x-z.x),
z<v&&(v=z,E=w))}}l[y+3]=E}};k.calcDeltas=function(p,l,m){const t=l.length;for(let f=0;f<t;f+=4){const q=k.calcDelta(f,l,m,[]);p.push(l[f]);p.push(l[f+1]);p.push(l[f+2]);p.push(q)}};k.calcDelta=function(p,l,m,t){p=l[p+3];if(-1===p)return 0;const f=t.length;if(1<f&&t[f-2]===p)return 0;t.push(p);return k.calcDelta(p,m,l,t)+1};k.addDeltas=function(p,l){const m=p.length;let t=0;for(var f=0;f<m;f+=4){var q=p[f+3];q>t&&(t=q)}for(f=0;f<m;f+=4){q=l[p[f]];const v=p[f+1],x=t-p[f+3];switch(p[f+2]){case h.sideLeft:q[v-
1].x-=x;q[v].x-=x;1===v&&(q[q.length-1].x-=x);v===q.length-1&&(q[0].x-=x);break;case h.sideRight:q[v-1].x+=x;q[v].x+=x;1===v&&(q[q.length-1].x+=x);v===q.length-1&&(q[0].x+=x);break;case h.sideTop:q[v-1].y-=x;q[v].y-=x;1===v&&(q[q.length-1].y-=x);v===q.length-1&&(q[0].y-=x);break;case h.sideBottom:q[v-1].y+=x,q[v].y+=x,1===v&&(q[q.length-1].y+=x),v===q.length-1&&(q[0].y+=x)}}};return k}();a.SimpleBuilder=r;a.TileClipper=u;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/views/2d/engine/webgl/GeometryUtils":function(){define(["exports"],function(a){function b(r,h){r%=h;return 0<=r?r:r+h}const c=Number.POSITIVE_INFINITY,e=Math.PI,d=128/e,n=256/360,u=1/Math.LN2;a.C_256_TO_RAD=e/128;a.C_2PI=2*e;a.C_DEG_TO_256=n;a.C_DEG_TO_RAD=e/180;a.C_INFINITY=c;a.C_PI=e;a.C_PI_BY_2=e/2;a.C_RAD_TO_256=d;a.C_SQRT2=1.414213562;a.C_SQRT2_INV=1/1.414213562;a.between=function(r,h,g){return r>=h&&r<=g||r>=g&&r<=h};a.degToByte=function(r){return b(r*n,256)};a.interpolate=function(r,
h,g){return r*(1-g)+h*g};a.log2=function(r){return Math.log(r)*u};a.positiveMod=b;a.radToByte=function(r){return b(r*d,256)};a.sqr=function(r){return r*r};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/tiling/enums":function(){define(["exports"],function(a){a.TileStatus=void 0;var b=a.TileStatus||(a.TileStatus={});b[b.INITIALIZED=0]="INITIALIZED";b[b.NO_DATA=1]="NO_DATA";b[b.READY=2]="READY";b[b.MODIFIED=3]="MODIFIED";b[b.INVALID=4]="INVALID";
Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/views/2d/engine/vectorTiles/style/StyleRepository":function(){define(["./StyleDefinition","./StyleLayer"],function(a,b){return function(){function c(d){this._style=d;this.backgroundBucketIds=[];this._uidToLayer=new Map;this._layerByName={};this._runningId=0;d.layers||(d.layers=[]);this.version=parseFloat(d.version);if(this.layers=d.layers.map((n,u,r)=>this._create(n,u,r)).filter(n=>!!n))for(let n=0;n<
this.layers.length;n++)d=this.layers[n],this._layerByName[d.id]=d,this._uidToLayer.set(d.uid,d),d.type===a.StyleLayerType.BACKGROUND&&this.backgroundBucketIds.push(d.id);this._identifyRefLayers()}var e=c.prototype;e.isPainterDataDriven=function(d){return(d=this._layerByName[d])?d.isPainterDataDriven():!1};e.getStyleLayerId=function(d){return d>=this.layers.length?null:this.layers[d].id};e.getStyleLayerByUID=function(d){return this._uidToLayer.get(d)??null};e.getStyleLayerIndex=function(d){return(d=
this._layerByName[d])?this.layers.indexOf(d):-1};e.setStyleLayer=function(d,n){if(d&&d.id){var u=this._style;null!=n&&n>=this.layers.length&&(n=this.layers.length-1);var r=!0,h;if(h=this._layerByName[d.id]){const g=this.layers.indexOf(h);n||(n=g);n===g?(r=!1,h=c._recreateLayer(d,h),this.layers[n]=h,u.layers[n]=d):(this.layers.splice(g,1),u.layers.splice(g,1),h=this._create(d,n,this.layers),this.layers.splice(n,0,h),u.layers.splice(n,0,d))}else h=this._create(d,n,this.layers),!n||n>=this.layers.length?
(this.layers.push(h),u.layers.push(d)):(this.layers.splice(n,0,h),u.layers.splice(n,0,d));this._layerByName[d.id]=h;this._uidToLayer.set(h.uid,h);r&&this._recomputeZValues();this._identifyRefLayers()}};e.getStyleLayer=function(d){return(d=this._layerByName[d])?{type:d.typeName,id:d.id,source:d.source,"source-layer":d.sourceLayer,minzoom:d.minzoom,maxzoom:d.maxzoom,filter:d.filter,layout:d.layout,paint:d.paint}:null};e.deleteStyleLayer=function(d){const n=this._layerByName[d];n&&(delete this._layerByName[d],
this._uidToLayer.delete(n.uid),d=this.layers.indexOf(n),this.layers.splice(d,1),this._style.layers.splice(d,1),this._recomputeZValues(),this._identifyRefLayers())};e.getLayerById=function(d){return this._layerByName[d]};e.getLayoutProperties=function(d){return(d=this._layerByName[d])?d.layout:null};e.getPaintProperties=function(d){return(d=this._layerByName[d])?d.paint:null};e.setPaintProperties=function(d,n){if(d=this._layerByName[d]){var u=c._recreateLayer({type:d.typeName,id:d.id,source:d.source,
"source-layer":d.sourceLayer,minzoom:d.minzoom,maxzoom:d.maxzoom,filter:d.filter,layout:d.layout,paint:n},d),r=this.layers.indexOf(d);this.layers[r]=u;this._style.layers[r].paint=n;this._layerByName[d.id]=u;this._uidToLayer.set(d.uid,u)}};e.setLayoutProperties=function(d,n){if(d=this._layerByName[d]){var u=c._recreateLayer({type:d.typeName,id:d.id,source:d.source,"source-layer":d.sourceLayer,minzoom:d.minzoom,maxzoom:d.maxzoom,filter:d.filter,layout:n,paint:d.paint},d),r=this.layers.indexOf(d);this.layers[r]=
u;this._style.layers[r].layout=n;this._layerByName[d.id]=u;this._uidToLayer.set(d.uid,u)}};e.setStyleLayerVisibility=function(d,n){if(d=this._layerByName[d]){var u=d.layout||{};u.visibility=n;n=c._recreateLayer({type:d.typeName,id:d.id,source:d.source,"source-layer":d.sourceLayer,minzoom:d.minzoom,maxzoom:d.maxzoom,filter:d.filter,layout:u,paint:d.paint},d);var r=this.layers.indexOf(d);this.layers[r]=n;this._style.layers[r].layout=u;this._layerByName[d.id]=n;this._uidToLayer.set(d.uid,n)}};e.getStyleLayerVisibility=
function(d){return(d=this._layerByName[d])?d.layout?.visibility??"visible":"none"};e._recomputeZValues=function(){const d=this.layers,n=1/(d.length+1);for(let u=0;u<d.length;u++)d[u].z=1-(1+u)*n};e._identifyRefLayers=function(){const d=[],n=[];let u=0;for(const g of this.layers){const k=g.layout;if(g.type===a.StyleLayerType.FILL){var r=g,h=g.source+"|"+g.sourceLayer;h+="|"+(k?.visibility??"");h+="|"+g.minzoom;h+="|"+g.maxzoom;h+="|"+JSON.stringify(g.filter);if(r.hasDataDrivenFill||r.hasDataDrivenOutline)h+=
"|"+u;d.push({key:h,layer:g})}else if(g.type===a.StyleLayerType.LINE){r=g;h=g.paint;h=null!=h&&(null!=h["line-pattern"]||null!=h["line-dasharray"]);let p=g.source+"|"+g.sourceLayer;p+="|"+(k?.visibility??"");p+="|"+g.minzoom;p+="|"+g.maxzoom;p+="|"+JSON.stringify(g.filter);p+="|"+(void 0!==k?k["line-cap"]:"");p+="|"+(void 0!==k?k["line-join"]:"");if(r.hasDataDrivenLine||h)p+="|"+u;n.push({key:p,layer:g})}++u}this._assignRefLayers(d);this._assignRefLayers(n)};e._assignRefLayers=function(d){d.sort((k,
p)=>k.key<p.key?-1:k.key>p.key?1:0);let n,u;const r=d.length;for(let k=0;k<r;k++){const p=d[k];if(p.key===n)p.layer.refLayerId=u;else if(n=p.key,u=p.layer.id,p.layer.type===a.StyleLayerType.FILL){if(!p.layer.getPaintProperty("fill-outline-color"))for(var h=k+1;h<r;h++){var g=d[h];if(g.key===n){if(g.layer.getPaintProperty("fill-outline-color")){d[k]=g;d[h]=p;u=g.layer.id;break}}else break}}else if(p.layer.type===a.StyleLayerType.LINE)for(h=p.layer,g=k+1;g<r;g++){const l=d[g];if(l.key!==n)break;const m=
l.layer;if(h.canUseThinTessellation&&!m.canUseThinTessellation||!h.canUseThinTessellation&&(m.getPaintProperty("line-pattern")||m.getPaintProperty("line-dasharray")))h=m,d[k]=l,d[g]=p,u=l.layer.id}}};e._create=function(d,n,u){n=1-1/(u.length+1)*(1+n);u=this._runningId++;switch(d.type){case "background":return new b.BackgroundStyleLayer(a.StyleLayerType.BACKGROUND,d,n,u);case "fill":return new b.FillStyleLayer(a.StyleLayerType.FILL,d,n,u);case "line":return new b.LineStyleLayer(a.StyleLayerType.LINE,
d,n,u);case "symbol":return new b.SymbolStyleLayer(a.StyleLayerType.SYMBOL,d,n,u);case "raster":console.warn(`Unsupported vector tile raster layer ${d.id}`);case "circle":return new b.CircleStyleLayer(a.StyleLayerType.CIRCLE,d,n,u)}};c._recreateLayer=function(d,n){switch(d.type){case "background":return new b.BackgroundStyleLayer(a.StyleLayerType.BACKGROUND,d,n.z,n.uid);case "fill":return new b.FillStyleLayer(a.StyleLayerType.FILL,d,n.z,n.uid);case "line":return new b.LineStyleLayer(a.StyleLayerType.LINE,
d,n.z,n.uid);case "symbol":return new b.SymbolStyleLayer(a.StyleLayerType.SYMBOL,d,n.z,n.uid);case "raster":console.warn(`Unsupported vector tile raster layer ${d.id}`);case "circle":return new b.CircleStyleLayer(a.StyleLayerType.CIRCLE,d,n.z,n.uid)}};return c}()})},"esri/widgets/Widget":function(){define("../chunks/_rollupPluginBabelHelpers ../chunks/tslib.es6 ../intl ../core/domUtils ../core/Evented ../core/events ../core/Handles ../core/has ../core/lang ../core/Logger ../core/maybe ../core/Promise ../core/promiseUtils ../core/reactiveUtils ../core/uuid ../core/accessorSupport/decorators/property ../core/accessorSupport/decorators/cast ../core/accessorSupport/decorators/subclass ../core/accessorSupport/tracking ../core/accessorSupport/tracking/SimpleTrackingTarget ../libs/maquette-advanced-projector/projector ../chunks/componentsUtils ./support/jsxWidgetSupport ./support/tests ./support/vnodeCache ./support/widgetUtils ../intl/locale ../intl/messages".split(" "),
function(a,b,c,e,d,n,u,r,h,g,k,p,l,m,t,f,q,v,x,z,y,A,B,E,w,D,C,F){function G(K,N){for(const U in N)null!=K[U]&&("object"===typeof K[U]&&"object"===typeof N[U]?G(K[U],N?.[U]):K[U]=N[U]);return K}let H=0;const I=y.createAdvancedProjector({postProcessProjectionOptions(K){const N=K.eventHandlerInterceptor,U=/capture$/i;K.eventHandlerInterceptor=(ba,ka,P,V)=>{const ca=N?.(ba,ka,P,V),ra=U.test(ba);ba=ba.replace(U,"");if(!(ba.toLowerCase()in P)||ra){const ta=ba[2].toLowerCase()+ba.slice(3),Ba=da=>ca?.call(P,
da);P.addEventListener(ta,Ba,ra);const Ha=V.afterRemoved;V.afterRemoved=da=>{Ha?.(da);P.removeEventListener(ta,Ba,ra)}}return ca}},handleInterceptedEvent(K,N,U,ba){const {eventPhase:ka,type:P}=ba,V=ka===Event.CAPTURING_PHASE;let ca=`on${P}${V?"capture":""}`;N=N.properties;if(!(N&&ca in N||(ca=`on${P[0].toUpperCase()}${P.slice(1)}${V?"Capture":""}`,N&&ca in N)))return;w.clearVNodeCache();K.scheduleRender();N[ca].call(N.bind||U,ba)}});let J=!1;c=function(K){function N(ba,ka){var P=K.call(this,ba,ka)||
this;P._attached=!1;P._internalHandles=new u;P._projector=I;P._readyForTrueRender=!1;P.iconClass="esri-icon-checkbox-unchecked";P.key=a._assertThisInitialized(P);P._loadLocale=l.debounce(a._asyncToGenerator(function*(){if(P._messageBundleProps&&P._messageBundleProps.length){const ta=yield l.eachAlways(P._messageBundleProps.map(function(){var Ba=a._asyncToGenerator(function*({bundlePath:Ha,propertyName:da}){Ha=yield F.fetchMessageBundle(Ha);P.uiStrings&&Object.keys(P.uiStrings)&&(Ha=G(h.clone(Ha),
P.uiStrings));P[da]=Ha});return function(Ha){return Ba.apply(this,arguments)}}()));for(const Ba of ta)Ba.error&&g.getLogger(P.declaredClass).error("widget-intl:locale-error",P.declaredClass,Ba.error)}yield P.loadLocale()}));A.commitAssetPath();const V="esri-widget-uid-"+t.generateUUID(),ca=P.render.bind(a._assertThisInitialized(P));P._trackingTarget=new z.SimpleTrackingTarget(()=>P.scheduleRender());const ra=()=>{if(!P._readyForTrueRender||P.destroyed)return null;if(!P.visible)return{vnodeSelector:"div",
properties:{key:V,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0};const ta=ca();let {properties:Ba}=ta;Ba||(ta.properties=Ba={});let {key:Ha,styles:da}=Ba;Ha||(Ba.key=V);da||(Ba.styles=da={});da.display||(da.display="");let la=0;ta.children?.forEach(sa=>{if(!B.isWidgetConstructor(sa.vnodeSelector)){var {properties:L}=sa;L||(sa.properties=L={});L.key||(L.key=`${P.id}--${la++}`)}});return B.processWidgets(a._assertThisInitialized(P),ta)};P.render=()=>{if(J)return ra();let ta=
w.getVNodeCache(a._assertThisInitialized(P))??null;if(ta)return ta;P._trackingTarget.clear();J=!0;try{ta=x.runTracked(P._trackingTarget,ra)}catch(Ba){throw console.error(Ba),Ba;}finally{J=!1}ta&&w.setVNodeCache(a._assertThisInitialized(P),ta);return ta};P.addResolvingPromise(P._resourcesFetch=P.beforeFirstRender().then(()=>{P._readyForTrueRender=!0;P._postInitialize()}));E.registerLoading(P._resourcesFetch);return P}a._inheritsLoose(N,K);var U=N.prototype;U.normalizeCtorArgs=function(ba,ka){ba={...ba};
ka&&(ba.container=ka);return ba};U.postInitialize=function(){};U.beforeFirstRender=function(){return Promise.all([this.loadDependencies(),this._loadLocale()]).then(()=>{}).catch(l.throwIfNotAbortError)};U.loadDependencies=function(){var ba=a._asyncToGenerator(function*(){});return function(){return ba.apply(this,arguments)}}();U.loadLocale=function(){var ba=a._asyncToGenerator(function*(){});return function(){return ba.apply(this,arguments)}}();U.destroy=function(){this.destroyed||(k.destroyMaybe(this._trackingTarget),
k.destroyMaybe(this.viewModel),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null,w.deleteVNodeCache(this))};U.castContainer=function(ba){return e.byId(ba)};U.render=function(){throw Error("not implemented");};U.scheduleRender=function(){this.destroyed||(w.deleteVNodeCache(this),this._projector.scheduleRender())};U.classes=function(...ba){return D.classes.apply(this,ba)};U.renderNow=function(){w.deleteVNodeCache(this);
this._projector.renderNow()};U._postInitialize=function(){var ba=this;if(!this.destroyed){this.scheduleRender();this._delegatedEventNames?.length&&this._internalHandles.add(m.watch(()=>this.viewModel,(P,V)=>{V&&this._internalHandles.remove("delegated-events");P&&n.isEventTarget(P)&&this._internalHandles.add(this._delegatedEventNames.map(ca=>n.on(P,ca,ra=>{this.emit(ca,ra)})),"delegated-events")},m.initial));this.postInitialize();var ka=function(){var P=a._asyncToGenerator(function*(){yield ba._loadLocale().catch(l.throwIfNotAbortError);
ba.scheduleRender()});return function(){return P.apply(this,arguments)}}();this._internalHandles.add([C.onLocaleChange(ka),m.watch(()=>this.uiStrings,ka),m.when(()=>this.container,P=>{this.destroyed||this._attach(P)},{initial:!0,once:!0})])}};U._attach=function(ba){ba&&(this._projector.merge(ba,this.render),this._attached=!0)};U._detach=function(ba){this._attached&&(this._projector.detach(this.render),this._attached=!1);ba?.parentNode?.removeChild(ba)};a._createClass(N,[{key:"container",set:function(ba){this._get("container")||
this._set("container",ba)}},{key:"domNode",get:function(){return this.container},set:function(ba){this.container=ba}},{key:"id",get:function(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+H++},set:function(ba){ba&&this._set("id",ba)}},{key:"label",get:function(){return this.declaredClass.split(".").pop()},set:function(ba){this._overrideIfSome("label",ba)}},{key:"renderable",get:function(){return this._resourcesFetch}},{key:"visible",get:function(){return this._get("visible")},
set:function(ba){this._set("visible",ba)}},{key:"test",get:function(){return{projector:this._projector}}}]);return N}(p.EsriPromiseMixin(d.EventedAccessor));c[B.WIDGET_SYMBOL]=!0;b.__decorate([f.property()],c.prototype,"_readyForTrueRender",void 0);b.__decorate([f.property({value:null})],c.prototype,"container",null);b.__decorate([q.cast("container")],c.prototype,"castContainer",null);b.__decorate([f.property()],c.prototype,"domNode",null);b.__decorate([f.property()],c.prototype,"iconClass",void 0);
b.__decorate([f.property()],c.prototype,"id",null);b.__decorate([f.property()],c.prototype,"label",null);b.__decorate([f.property()],c.prototype,"renderable",null);b.__decorate([f.property()],c.prototype,"uiStrings",void 0);b.__decorate([f.property()],c.prototype,"viewModel",void 0);b.__decorate([f.property({value:!0})],c.prototype,"visible",null);b.__decorate([f.property()],c.prototype,"key",void 0);b.__decorate([f.property()],c.prototype,"children",void 0);b.__decorate([f.property()],c.prototype,
"afterCreate",void 0);b.__decorate([f.property()],c.prototype,"afterUpdate",void 0);b.__decorate([f.property()],c.prototype,"afterRemoved",void 0);return c=b.__decorate([v.subclass("esri.widgets.Widget")],c)})},"esri/core/domUtils":function(){define(["exports"],function(a){const b=(()=>{if("function"===typeof Element.prototype.closest)return(e,d)=>e.closest(d);const c=Element.prototype.matches||Element.prototype.msMatchesSelector;return(e,d)=>{do{if(c.call(e,d))return e;e=e.parentElement}while(null!==
e&&1===e.nodeType);return null}})();a.byId=function(c){return"string"===typeof c?document.getElementById(c):c??null};a.closest=b;a.empty=function(c){for(;c.hasChildNodes();)c.removeChild(c.firstChild)};a.insertAfter=function(c,e){const d=e.parentNode;d&&(d.lastChild===e?d.appendChild(c):d.insertBefore(c,e.nextSibling))};a.insertBefore=function(c,e){const d=e.parentNode;d&&d.insertBefore(c,e)};a.remove=function(c){c.parentNode&&c.parentNode.removeChild(c)};a.reparent=function(c,e){for(;;){const d=
c.firstChild;if(!d)break;e.appendChild(d)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/core/uuid":function(){define(["exports"],function(a){const b="randomUUID"in crypto;a.generateUUID=function(){if(b)return crypto.randomUUID();const c=crypto.getRandomValues(new Uint16Array(8));c[3]=c[3]&4095|16384;c[4]=c[4]&16383|32768;const e=d=>c[d].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)};Object.defineProperties(a,
{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/libs/maquette-advanced-projector/projector":function(){define(["exports","../maquette/dom","../maquette/projector","./advanced-projector-options","./utils"],function(a,b,c,e,d){const n=(h,g)=>{const k=[];for(;h&&h!==g;)k.push(h),h=h.parentNode;return k},u=(h,g)=>h.find(g),r=(h,g,k=!1)=>{let p=h;g.forEach((l,m)=>{const t=p?.children?u(p.children,f=>f.domNode===l):void 0;if(!k||t||m===g.length-1)p=t});return p};a.createAdvancedProjector=
h=>{let g;const k={...e.defaultAdvancedProjectorOptions,...h},p=d.applyDefaultProjectionOptions(k),l=p.performanceLogger;let m=!0,t,f=!1;const q=[],v=[],x=(y,A,B)=>{let E;p.eventHandlerInterceptor=(D,C,F,G)=>function(H){l("domEvent",H);var I=n(H.currentTarget,E.domNode);const J=I.some(N=>customElements.get(N?.tagName?.toLowerCase()));H.eventPhase!==Event.CAPTURING_PHASE&&J?(I=H.composedPath(),I=I.slice(I.indexOf(H.currentTarget),I.indexOf(E.domNode)).filter(N=>N.getRootNode()===N.ownerDocument).reverse(),
I=r(E.getLastRender(),I,!0)):(I.reverse(),I=r(E.getLastRender(),I));let K;I&&(K=k.handleInterceptedEvent(g,I,this,H));l("domEventProcessed",H);return K};k.postProcessProjectionOptions?.(p);const w=B();E=y(A,w,p);q.push(E);v.push(B);k.afterFirstVNodeRendered&&k.afterFirstVNodeRendered(E,w)};let z=()=>{t=void 0;if(m){m=!1;l("renderStart",void 0);for(let y=0;y<q.length;y++){const A=v[y]();l("rendered",void 0);q[y].update(A);l("patched",void 0)}l("renderDone",void 0);m=!0}};k.modifyDoRenderImplementation&&
(z=k.modifyDoRenderImplementation(z,q,v));return g={renderNow:z,scheduleRender:()=>{t||f||(t=requestAnimationFrame(z))},stop:()=>{t&&(cancelAnimationFrame(t),t=void 0);f=!0},resume:()=>{f=!1;m=!0;g.scheduleRender()},append:(y,A)=>{x(b.dom.append,y,A)},insertBefore:(y,A)=>{x(b.dom.insertBefore,y,A)},merge:(y,A)=>{x(b.dom.merge,y,A)},replace:(y,A)=>{x(b.dom.replace,y,A)},detach:y=>{for(let A=0;A<v.length;A++)if(v[A]===y)return v.splice(A,1),q.splice(A,1)[0];throw Error("renderFunction was not found");
}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/libs/maquette/dom":function(){define(["exports","./projection"],function(a,b){const c={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,d,n)=>{"-"===d.charAt(0)?e.style.setProperty(d,n):e.style[d]=n}};a.applyDefaultProjectionOptions=e=>b.extend(c,e);a.dom={create:(e,d)=>{d=b.extend(c,d);b.createDom(e,document.createElement("div"),void 0,d);return b.createProjection(e,
d)},append:(e,d,n)=>{n=b.extend(c,n);b.createDom(d,e,void 0,n);return b.createProjection(d,n)},insertBefore:(e,d,n)=>{n=b.extend(c,n);b.createDom(d,e.parentNode,e,n);return b.createProjection(d,n)},merge:(e,d,n)=>{n=b.extend(c,n);d.domNode=e;b.initPropertiesAndChildren(e,d,n);return b.createProjection(d,n)},replace:(e,d,n)=>{n=b.extend(c,n);b.createDom(d,e.parentNode,e,n);e.parentNode.removeChild(e);return b.createProjection(d,n)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/libs/maquette/projection":function(){define(["exports","../../widgets/support/widgetUtils"],function(a,b){let c=[],e=(x,z)=>{let y={};Object.keys(x).forEach(A=>{y[A]=x[A]});z&&Object.keys(z).forEach(A=>{y[A]=z[A]});return y},d=(x,z)=>x.vnodeSelector!==z.vnodeSelector?!1:x.properties&&z.properties?x.properties.key!==z.properties.key?!1:x.properties.bind===z.properties.bind:!x.properties&&!z.properties,n=x=>{if("string"!==typeof x)throw Error("Style values must be strings");},u=(x,z,y,A)=>{let B=
x[z];if(""!==B.vnodeSelector){var E=B.properties;if(!(E&&(void 0===E.key?E.bind:E.key)))for(E=0;E<x.length;E++)if(E!==z&&d(x[E],B))throw Error(`${y.vnodeSelector} had a ${B.vnodeSelector} child ${"added"===A?A:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`);}},r=[],h=!1,g=x=>{(x.children||[]).forEach(g);x.properties&&x.properties.afterRemoved&&x.properties.afterRemoved.apply(x.properties.bind||x.properties,[x.domNode])},k=()=>{h=!1;r.forEach(g);
r.length=0},p=x=>{r.push(x);h||(h=!0,"undefined"!==typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(k,{timeout:16}):setTimeout(k,16))},l=x=>{let z=x.domNode;if(x.properties){let y=x.properties.exitAnimation;if(y){z.style.pointerEvents="none";y(z,()=>{z.parentNode&&(z.parentNode.removeChild(z),p(x))},x.properties);return}}z.parentNode&&(z.parentNode.removeChild(z),p(x))},m=(x,z,y)=>{if(z){var A=y.eventHandlerInterceptor,B=Object.keys(z),E=B.length;for(let G=0;G<E;G++){var w=
B[G];let H=z[w];if("className"===w)throw Error('Property "className" is not supported, use "class".');if("class"===w)v(x,H,!0);else if("classes"===w){w=Object.keys(H);var D=w.length;for(var C=0;C<D;C++){var F=w[C];H[F]&&x.classList.add(F)}}else if("styles"===w)for(w=Object.keys(H),D=w.length,C=0;C<D;C++){F=w[C];let I=H[F];I&&(n(I),y.styleApplyer(x,F,I))}else"key"!==w&&null!==H&&void 0!==H&&(D=typeof H,"function"===D?(0===w.lastIndexOf("on",0)&&(A&&(H=A(w,H,x,z)),"oninput"===w&&function(){let I=H;
H=function(J){I.apply(this,[J]);J.target["oninput-value"]=J.target.value}}()),x[w]=H):"http://www.w3.org/2000/svg"===y.namespace?"href"===w?x.setAttributeNS("http://www.w3.org/1999/xlink",w,H):x.setAttribute(w,H):"string"===D&&"value"!==w?"innerHTML"===w?x[w]=b.renderingSanitizer.sanitize(H):x.setAttribute(w,H):x[w]=H)}}},t=(x,z,y)=>{var A=z.children;if(A)for(let B of A)f(B,x,void 0,y);z.text&&(x.textContent=z.text);m(x,z.properties,y);z.properties&&z.properties.afterCreate&&z.properties.afterCreate.apply(z.properties.bind||
z.properties,[x,y,z.vnodeSelector,z.properties,z.children])},f=(x,z,y,A)=>{let B;var E=0;let w=x.vnodeSelector,D=z.ownerDocument;if(""===w)B=x.domNode=D.createTextNode(x.text),void 0!==y?z.insertBefore(B,y):z.appendChild(B);else{for(let F=0;F<=w.length;++F){var C=w.charAt(F);if(F===w.length||"."===C||"#"===C)C=w.charAt(E-1),E=w.slice(E,F),"."===C?B.classList.add(E):"#"===C?B.id=E:("svg"===E&&(A=e(A,{namespace:"http://www.w3.org/2000/svg"})),void 0!==A.namespace?B=x.domNode=D.createElementNS(A.namespace,
E):(B=x.domNode=x.domNode||D.createElement(E),"input"===E&&x.properties&&void 0!==x.properties.type&&B.setAttribute("type",x.properties.type)),void 0!==y?z.insertBefore(B,y):B.parentNode!==z&&z.appendChild(B)),E=F+1}t(B,x,A)}},q,v=(x,z,y)=>{z&&z.split(" ").forEach(A=>{A&&x.classList.toggle(A,y)})};q=(x,z,y)=>{let A=x.domNode;if(x===z)return!1;let B=!1;if(""===z.vnodeSelector){if(z.text!==x.text)return x=A.ownerDocument.createTextNode(z.text),A.parentNode.replaceChild(x,A),z.domNode=x,!0;z.domNode=
A}else{0===z.vnodeSelector.lastIndexOf("svg",0)&&(y=e(y,{namespace:"http://www.w3.org/2000/svg"}));x.text!==z.text&&(B=!0,void 0===z.text?A.removeChild(A.firstChild):A.textContent=z.text);z.domNode=A;var E=x.children;var w=z.children,D=y;if(E===w)E=!1;else{E=E||c;w=w||c;for(var C=E.length,F=w.length,G=0,H=0,I=!1;H<F;){var J=G<C?E[G]:void 0,K=w[H];if(void 0!==J&&d(J,K))I=q(J,K,D)||I,G++;else{b:{J=E;var N=K,U=G+1;if(""!==N.vnodeSelector)for(;U<J.length;U++)if(d(J[U],N)){J=U;break b}J=-1}if(0<=J){for(;G<
J;G++)l(E[G]),u(E,G,z,"removed");I=q(E[J],K,D)||I;G=J+1}else f(K,A,G<C?E[G].domNode:void 0,D),K.properties&&(J=K.properties.enterAnimation)&&J(K.domNode,K.properties),u(w,H,z,"added")}H++}if(C>G)for(;G<C;G++)l(E[G]),u(E,G,z,"removed");E=I}B=E||B;E=x.properties;w=z.properties;D=y;if(w){C=!1;F=Object.keys(w);H=F.length;for(I=0;I<H;I++)if(J=F[I],K=w[J],G=E[J],"class"===J)G!==K&&(v(A,G,!1),v(A,K,!0));else if("classes"===J){J=A.classList;N=Object.keys(K);U=N.length;for(var ba=0;ba<U;ba++){var ka=N[ba];
let P=!!K[ka];P!==!!G[ka]&&(C=!0,P?J.add(ka):J.remove(ka))}}else if("styles"===J)for(J=Object.keys(K),N=J.length,U=0;U<N;U++)ba=J[U],ka=K[ba],ka!==G[ba]&&(C=!0,ka?(n(ka),D.styleApplyer(A,ba,ka)):D.styleApplyer(A,ba,""));else K||"string"!==typeof G||(K=""),"value"===J?(N=A[J],N!==K&&(A["oninput-value"]?N===A["oninput-value"]:K!==G)&&(A[J]=K,A["oninput-value"]=void 0),K!==G&&(C=!0)):K!==G&&(G=typeof K,"function"===G&&D.eventHandlerInterceptor||("http://www.w3.org/2000/svg"===D.namespace?"href"===J?
A.setAttributeNS("http://www.w3.org/1999/xlink",J,K):A.setAttribute(J,K):"string"===G?"innerHTML"===J?A[J]=b.renderingSanitizer.sanitize(K):"role"===J&&""===K?A.removeAttribute(J):A.setAttribute(J,K):A[J]!==K&&(A[J]=K),C=!0));E=C}else E=void 0;B=E||B;z.properties&&z.properties.afterUpdate&&z.properties.afterUpdate.apply(z.properties.bind||z.properties,[A,y,z.vnodeSelector,z.properties,z.children])}B&&z.properties&&z.properties.updateAnimation&&z.properties.updateAnimation(A,z.properties,x.properties);
return!1};a.createDom=f;a.createProjection=(x,z)=>({getLastRender:()=>x,update:y=>{if(x.vnodeSelector!==y.vnodeSelector)throw Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let A=x;x=y;q(A,y,z)},domNode:x.domNode});a.extend=e;a.initPropertiesAndChildren=t;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/widgetUtils":function(){define("exports ../../core/ArrayPool ../../core/handleUtils ../../core/has ../../core/Logger ./vnodeCache".split(" "),
function(a,b,c,e,d,n){function u(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,
"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,
"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,
"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,
cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,"float":!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,
"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,
"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,
"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,
"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,
"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,
"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,
"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,
"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}function r(M){M=M||{};var aa={},oa;for(oa in M)aa[oa]=M[oa];M=aa;M.whiteList=M.whiteList||J.whiteList;M.onAttr=M.onAttr||J.onAttr;M.onIgnoreAttr=M.onIgnoreAttr||J.onIgnoreAttr;M.safeAttrValue=M.safeAttrValue||J.safeAttrValue;this.options=M}function h(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:"autoplay controls crossorigin loop muted preload src".split(" "),
b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],
summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:"autoplay controls crossorigin loop muted playsinline poster preload src height width".split(" ")}}function g(M){return M.replace(P,"\x26lt;").replace(V,"\x26gt;")}function k(M){return M.replace(ca,
"\x26quot;")}function p(M){return M.replace(ra,'"')}function l(M){return M.replace(ta,function(aa,oa){return"x"===oa[0]||"X"===oa[0]?String.fromCharCode(parseInt(oa.substr(1),16)):String.fromCharCode(parseInt(oa,10))})}function m(M){return M.replace(Ba,":").replace(Ha," ")}function t(M){for(var aa="",oa=0,Da=M.length;oa<Da;oa++)aa+=32>M.charCodeAt(oa)?" ":M.charAt(oa);return ba.trim(aa)}function f(M){M=p(M);M=l(M);M=m(M);return M=t(M)}function q(M){M=k(M);return M=g(M)}function v(M,aa){for(;aa<M.length;aa++){var oa=
M[aa];if(" "!==oa)return"\x3d"===oa?aa:-1}}function x(M,aa){for(;aa<M.length;aa++){var oa=M[aa];if(" "!==oa)return"'"===oa||'"'===oa?aa:-1}}function z(M,aa){for(;0<aa;aa--){var oa=M[aa];if(" "!==oa)return"\x3d"===oa?aa:-1}}function y(M){var aa='"'===M[0]&&'"'===M[M.length-1]||"'"===M[0]&&"'"===M[M.length-1]?!0:!1;return aa?M.substr(1,M.length-2):M}function A(M){var aa=ea.spaceIndex(M);if(-1===aa)return{html:"",closing:"/"===M[M.length-2]};M=ea.trim(M.slice(aa+1,-1));(aa="/"===M[M.length-1])&&(M=ea.trim(M.slice(0,
-1)));return{html:M,closing:aa}}function B(M){var aa={},oa;for(oa in M)Array.isArray(M[oa])?aa[oa.toLowerCase()]=M[oa].map(function(Da){return Da.toLowerCase()}):aa[oa.toLowerCase()]=M[oa];return aa}function E(M){M=M||{};var aa={},oa;for(oa in M)aa[oa]=M[oa];M=aa;M.stripIgnoreTag&&(M.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),M.onIgnoreTag=pa.onIgnoreTagStripAll);M.whiteList=M.whiteList||M.allowList?B(M.whiteList||M.allowList):
pa.whiteList;M.onTag=M.onTag||pa.onTag;M.onTagAttr=M.onTagAttr||pa.onTagAttr;M.onIgnoreTag=M.onIgnoreTag||pa.onIgnoreTag;M.onIgnoreTagAttr=M.onIgnoreTagAttr||pa.onIgnoreTagAttr;M.safeAttrValue=M.safeAttrValue||pa.safeAttrValue;M.escapeHtml=M.escapeHtml||pa.escapeHtml;this.options=M;!1===M.css?this.cssFilter=!1:(M.css=M.css||{},this.cssFilter=new ha(M.css))}function w(M){M=M?.closest("[dir]");return null!==M&&M instanceof HTMLElement&&"rtl"===M.dir||"rtl"===document.dir}var D=function(M){if("object"!==
typeof M||null===M||"[object Object]"!==Object.prototype.toString.call(M))return!1;var aa=Object.getPrototypeOf(M);if(null===aa)return!0;for(;null!==Object.getPrototypeOf(aa);)aa=Object.getPrototypeOf(aa);return Object.getPrototypeOf(M)===aa},C={exports:{}},F={};e={exports:{}};var G={},H=/javascript\s*:/gim;G.whiteList=u();G.getDefaultWhiteList=u;G.onAttr=function(M,aa,oa){};G.onIgnoreAttr=function(M,aa,oa){};G.safeAttrValue=function(M,aa){return H.test(aa)?"":aa};var I={indexOf:function(M,aa){var oa;
if(Array.prototype.indexOf)return M.indexOf(aa);var Da=0;for(oa=M.length;Da<oa;Da++)if(M[Da]===aa)return Da;return-1},forEach:function(M,aa,oa){var Da;if(Array.prototype.forEach)return M.forEach(aa,oa);var Ea=0;for(Da=M.length;Ea<Da;Ea++)aa.call(oa,M[Ea],Ea,M)},trim:function(M){return String.prototype.trim?M.trim():M.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(M){return String.prototype.trimRight?M.trimRight():M.replace(/(\s*$)/g,"")}},J=G,K=function(M,aa){function oa(){if(!Ea){var Va=I.trim(M.slice(Ja,
Ka)),Xa=Va.indexOf(":");if(-1!==Xa){var Za=I.trim(Va.slice(0,Xa));Xa=I.trim(Va.slice(Xa+1));Za&&(Va=aa(Ja,Sa.length,Za,Xa,Va))&&(Sa+=Va+"; ")}}Ja=Ka+1}M=I.trimRight(M);";"!==M[M.length-1]&&(M+=";");for(var Da=M.length,Ea=!1,Ja=0,Ka=0,Sa="";Ka<Da;Ka++){var Ta=M[Ka];if("/"===Ta&&"*"===M[Ka+1]){Ta=M.indexOf("*/",Ka+2);if(-1===Ta)break;Ka=Ta+1;Ja=Ka+1;Ea=!1}else"("===Ta?Ea=!0:")"===Ta?Ea=!1:";"===Ta?Ea||oa():"\n"===Ta&&oa()}return I.trim(Sa)};r.prototype.process=function(M){M=(M||"").toString();if(!M)return"";
var aa=this.options,oa=aa.whiteList,Da=aa.onAttr,Ea=aa.onIgnoreAttr,Ja=aa.safeAttrValue;return K(M,function(Ka,Sa,Ta,Va,Xa){var Za=oa[Ta],$a=!1;!0===Za?$a=Za:"function"===typeof Za?$a=Za(Va):Za instanceof RegExp&&($a=Za.test(Va));!0!==$a&&($a=!1);if(Va=Ja(Ta,Va)){Ka={position:Sa,sourcePosition:Ka,source:Xa,isWhite:$a};if($a)return $a=Da(Ta,Va,Ka),void 0===$a||null===$a?Ta+":"+Va:$a;$a=Ea(Ta,Va,Ka);if(void 0!==$a&&null!==$a)return $a}})};(function(M,aa){aa=M.exports=function(Da,Ea){return(new r(Ea)).process(Da)};
aa.FilterCSS=r;for(var oa in G)aa[oa]=G[oa]})(e,e.exports);var N={indexOf:function(M,aa){var oa;if(Array.prototype.indexOf)return M.indexOf(aa);var Da=0;for(oa=M.length;Da<oa;Da++)if(M[Da]===aa)return Da;return-1},forEach:function(M,aa,oa){var Da;if(Array.prototype.forEach)return M.forEach(aa,oa);var Ea=0;for(Da=M.length;Ea<Da;Ea++)aa.call(oa,M[Ea],Ea,M)},trim:function(M){return String.prototype.trim?M.trim():M.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(M){return(M=/\s|\n|\t/.exec(M))?M.index:
-1}},U=e.exports.getDefaultWhiteList,ba=N,ka=new e.exports.FilterCSS,P=/</g,V=/>/g,ca=/"/g,ra=/&quot;/g,ta=/&#([a-zA-Z0-9]*);?/gim,Ba=/&colon;?/gim,Ha=/&newline;?/gim,da=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,la=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,sa=/u\s*r\s*l\s*\(.*/gi;F.whiteList=h();F.getDefaultWhiteList=h;F.onTag=function(M,aa,oa){};F.onIgnoreTag=function(M,aa,oa){};F.onTagAttr=function(M,aa,oa){};F.onIgnoreTagAttr=function(M,aa,oa){};
F.safeAttrValue=function(M,aa,oa,Da){oa=f(oa);if("href"===aa||"src"===aa){oa=ba.trim(oa);if("#"===oa)return"#";if("http://"!==oa.substr(0,7)&&"https://"!==oa.substr(0,8)&&"mailto:"!==oa.substr(0,7)&&"tel:"!==oa.substr(0,4)&&"data:image/"!==oa.substr(0,11)&&"ftp://"!==oa.substr(0,6)&&"./"!==oa.substr(0,2)&&"../"!==oa.substr(0,3)&&"#"!==oa[0]&&"/"!==oa[0])return""}else if("background"===aa){if(da.lastIndex=0,da.test(oa))return""}else if("style"===aa){la.lastIndex=0;if(la.test(oa))return"";sa.lastIndex=
0;if(sa.test(oa)&&(da.lastIndex=0,da.test(oa)))return"";!1!==Da&&(Da=Da||ka,oa=Da.process(oa))}return oa=q(oa)};F.escapeHtml=g;F.escapeQuote=k;F.unescapeQuote=p;F.escapeHtmlEntities=l;F.escapeDangerHtml5Entities=m;F.clearNonPrintableCharacter=t;F.friendlyAttrValue=f;F.escapeAttrValue=q;F.onIgnoreTagStripAll=function(){return""};F.StripTagBody=function(M,aa){"function"!==typeof aa&&(aa=function(){});var oa=!Array.isArray(M),Da=[],Ea=!1;return{onIgnoreTag:function(Ja,Ka,Sa){var Ta=oa?!0:-1!==ba.indexOf(M,
Ja);if(Ta){if(Sa.isClosing)return Da.push([!1!==Ea?Ea:Sa.position,Sa.position+10]),Ea=!1,"[/removed]";Ea||(Ea=Sa.position);return"[removed]"}return aa(Ja,Ka,Sa)},remove:function(Ja){var Ka="",Sa=0;ba.forEach(Da,function(Ta){Ka+=Ja.slice(Sa,Ta[0]);Sa=Ta[1]});return Ka+=Ja.slice(Sa)}}};F.stripCommentTag=function(M){for(var aa="",oa=0;oa<M.length;){var Da=M.indexOf("\x3c!--",oa);if(-1===Da){aa+=M.slice(oa);break}aa+=M.slice(oa,Da);oa=M.indexOf("--\x3e",Da);if(-1===oa)break;oa+=3}return aa};F.stripBlankChar=
function(M){M=M.split("");M=M.filter(function(aa){aa=aa.charCodeAt(0);return 127===aa?!1:31>=aa?10===aa||13===aa?!0:!1:!0});return M.join("")};F.cssFilter=ka;F.getDefaultCSSWhiteList=U;var L={},O=/[^a-zA-Z0-9\\_:.-]/gim;L.parseTag=function(M,aa,oa){var Da="",Ea=0,Ja=!1,Ka=!1,Sa=0,Ta=M.length,Va="",Xa="";Sa=0;a:for(;Sa<Ta;Sa++)if(Xa=M.charAt(Sa),!1===Ja)"\x3c"===Xa&&(Ja=Sa);else if(!1===Ka)if("\x3c"===Xa)Da+=oa(M.slice(Ea,Sa)),Ea=Ja=Sa;else if("\x3e"===Xa)Da+=oa(M.slice(Ea,Ja)),Xa=M.slice(Ja,Sa+1),
Ea=void 0,Ea=Xa,Va=N.spaceIndex(Ea),Ea=-1===Va?Ea.slice(1,-1):Ea.slice(1,Va+1),Ea=N.trim(Ea).toLowerCase(),"/"===Ea.slice(0,1)&&(Ea=Ea.slice(1)),"/"===Ea.slice(-1)&&(Ea=Ea.slice(0,-1)),Va=Ea,Da+=aa(Ja,Da.length,Va,Xa,"\x3c/"===Xa.slice(0,2)),Ea=Sa+1,Ja=!1;else{if('"'===Xa||"'"===Xa){Va=1;for(var Za=M.charAt(Sa-Va);""===Za.trim()||"\x3d"===Za;){if("\x3d"===Za){Ka=Xa;continue a}Za=M.charAt(Sa-++Va)}}}else Xa===Ka&&(Ka=!1);Ea<M.length&&(Da+=oa(M.substr(Ea)));return Da};L.parseAttr=function(M,aa){function oa(Xa,
Za){Xa=N.trim(Xa);Xa=Xa.replace(O,"").toLowerCase();1>Xa.length||(Xa=aa(Xa,Za||""))&&Ja.push(Xa)}for(var Da=0,Ea=0,Ja=[],Ka=!1,Sa=M.length,Ta=0;Ta<Sa;Ta++){var Va=M.charAt(Ta);if(!1===Ka&&"\x3d"===Va)Ka=M.slice(Da,Ta),Da=Ta+1,Ea='"'===M.charAt(Da)||"'"===M.charAt(Da)?Da:x(M,Ta+1);else{if(!1!==Ka&&Ta===Ea)if(Va=M.indexOf(Va,Ta+1),-1===Va)break;else{Da=N.trim(M.slice(Ea+1,Va));oa(Ka,Da);Ka=!1;Ta=Va;Da=Ta+1;continue}/\s|\n|\t/.test(Va)&&(M=M.replace(/\s|\n|\t/g," "),!1===Ka?(Va=v(M,Ta),-1===Va?(Da=N.trim(M.slice(Da,
Ta)),oa(Da),Ka=!1,Da=Ta+1):Ta=Va-1):(Va=z(M,Ta-1),-1===Va&&(Da=N.trim(M.slice(Da,Ta)),Da=y(Da),oa(Ka,Da),Ka=!1,Da=Ta+1)))}}Da<M.length&&(!1===Ka?oa(M.slice(Da)):oa(Ka,y(N.trim(M.slice(Da)))));return N.trim(Ja.join(" "))};var ha=e.exports.FilterCSS,pa=F,ya=L.parseTag,Y=L.parseAttr,ea=N;E.prototype.process=function(M){M=(M||"").toString();if(!M)return"";var aa=this.options,oa=aa.whiteList,Da=aa.onTag,Ea=aa.onIgnoreTag,Ja=aa.onTagAttr,Ka=aa.onIgnoreTagAttr,Sa=aa.safeAttrValue,Ta=aa.escapeHtml,Va=this.cssFilter;
aa.stripBlankChar&&(M=pa.stripBlankChar(M));aa.allowCommentTag||(M=pa.stripCommentTag(M));var Xa=!1;aa.stripIgnoreTagBody&&(Xa=pa.StripTagBody(aa.stripIgnoreTagBody,Ea),Ea=Xa.onIgnoreTag);M=ya(M,function(Za,$a,cb,Wa,eb){Za={sourcePosition:Za,position:$a,isClosing:eb,isWhite:Object.prototype.hasOwnProperty.call(oa,cb)};$a=Da(cb,Wa,Za);if(void 0!==$a&&null!==$a)return $a;if(Za.isWhite){if(Za.isClosing)return"\x3c/"+cb+"\x3e";Za=A(Wa);var Oa=oa[cb];$a=Y(Za.html,function(T,W){var wa=-1!==ea.indexOf(Oa,
T),Aa=Ja(cb,T,W,wa);if(void 0!==Aa&&null!==Aa)return Aa;if(wa)return(W=Sa(cb,T,W,Va))?T+'\x3d"'+W+'"':T;Aa=Ka(cb,T,W,wa);if(void 0!==Aa&&null!==Aa)return Aa});Wa="\x3c"+cb;$a&&(Wa+=" "+$a);Za.closing&&(Wa+=" /");return Wa+"\x3e"}$a=Ea(cb,Wa,Za);return void 0!==$a&&null!==$a?$a:Ta(Wa)},Ta);Xa&&(M=Xa.remove(M));return M};(function(M,aa){function oa(Ea,Ja){return(new Da(Ja)).process(Ea)}var Da=E;aa=M.exports=oa;aa.filterXSS=oa;aa.FilterXSS=Da;(function(){for(var Ea in F)aa[Ea]=F[Ea];for(var Ja in L)aa[Ja]=
L[Ja]})();"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=M.exports)})(C,C.exports);e=function(){function M(aa,oa){var Da=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],
h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:"alt border height src style width".split(" "),li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:"border cellpadding cellspacing height style width".split(" "),tbody:[],tr:["align","height","style","valign"],td:"align colspan height nowrap rowspan style valign width".split(" "),th:"align colspan height nowrap rowspan style valign width".split(" "),u:[],ul:[],
video:"autoplay controls height loop muted poster preload width".split(" ")};this.allowedProtocols="http https mailto iform tel flow lfmobile arcgis-navigator arcgis-appstudio-player arcgis-survey123 arcgis-collector arcgis-workforce arcgis-explorer arcgis-trek2there arcgis-quickcapture mspbi comgooglemaps pdfefile pdfehttp pdfehttps boxapp boxemm awb awbs gropen radarscope".split(" ");this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(Ja,Ka,Sa,Ta){return"a"===Ja&&"href"===Ka||("img"===
Ja||"source"===Ja)&&"src"===Ka?Da.sanitizeUrl(Sa):C.exports.safeAttrValue(Ja,Ka,Sa,Ta)}};this._entityMap={"\x26":"\x26#x38;","\x3c":"\x26#x3C;","\x3e":"\x26#x3E;",'"':"\x26#x22;","'":"\x26#x27;","/":"\x26#x2F;"};if(aa&&!oa)var Ea=aa;else aa&&oa?(Ea=Object.create(this.arcgisFilterOptions),Object.keys(aa).forEach(function(Ja){"whiteList"===Ja?Ea.whiteList=Da._extendObjectOfArrays([Da.arcgisWhiteList,aa.whiteList||{}]):Ea[Ja]=aa[Ja]})):(Ea=Object.create(this.arcgisFilterOptions),Ea.whiteList=this.arcgisWhiteList);
this.xssFilterOptions=Ea;this._xssFilter=new C.exports.FilterXSS(Ea)}M.prototype.sanitize=function(aa,oa){void 0===oa&&(oa={});switch(typeof aa){case "number":return isNaN(aa)||!isFinite(aa)?null:aa;case "boolean":return aa;case "string":return this._xssFilter.process(aa);case "object":return this._iterateOverObject(aa,oa);default:if(!oa.allowUndefined||"undefined"!==typeof aa)return null}};M.prototype.sanitizeUrl=function(aa,oa){oa=(null!==oa&&void 0!==oa?oa:{}).isProtocolRequired;oa=void 0===oa?
!0:oa;var Da=this._trim(aa.substring(0,aa.indexOf(":"))),Ea="/"===aa,Ja=/^#/.test(aa),Ka=Da&&-1<this.allowedProtocols.indexOf(Da.toLowerCase());return Ea||Ja||Ka?C.exports.escapeAttrValue(aa):Da||oa?"":C.exports.escapeAttrValue("https://".concat(aa))};M.prototype.sanitizeHTMLAttribute=function(aa,oa,Da,Ea){return"function"===typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(aa,oa,Da,Ea):C.exports.safeAttrValue(aa,oa,Da,Ea)};M.prototype.validate=function(aa,oa){void 0===
oa&&(oa={});oa=this.sanitize(aa,oa);return{isValid:aa===oa,sanitized:oa}};M.prototype.encodeHTML=function(aa){var oa=this;return String(aa).replace(/[&<>"'\/]/g,function(Da){return oa._entityMap[Da]})};M.prototype.encodeAttrValue=function(aa){var oa=/^[a-zA-Z0-9]$/;return String(aa).replace(/[\x00-\xFF]/g,function(Da,Ea){return oa.test(Da)?Da:"\x26#x".concat(Number(aa.charCodeAt(Ea)).toString(16),";")})};M.prototype._extendObjectOfArrays=function(aa){var oa={};aa.forEach(function(Da){Object.keys(Da).forEach(function(Ea){Array.isArray(Da[Ea])&&
Array.isArray(oa[Ea])?oa[Ea]=oa[Ea].concat(Da[Ea]):oa[Ea]=Da[Ea]})});return oa};M.prototype._iterateOverObject=function(aa,oa){var Da=this;void 0===oa&&(oa={});try{var Ea=!1,Ja=void 0;if(Array.isArray(aa))Ja=aa.reduce(function(Ka,Sa){var Ta=Da.validate(Sa,oa);if(Ta.isValid)return Ka.concat([Sa]);Ea=!0;return Ka.concat([Ta.sanitized])},[]);else if(D(aa))Ja=Object.keys(aa).reduce(function(Ka,Sa){var Ta=aa[Sa],Va=Da.validate(Ta,oa);Va.isValid?Ka[Sa]=Ta:(Ea=!0,Ka[Sa]=Va.sanitized);return Ka},{});else return oa.allowUndefined&&
"undefined"===typeof aa?void 0:null;return Ea?Ja:aa}catch(Ka){return null}};M.prototype._trim=function(aa){return String.prototype.trim?aa.trim():aa.replace(/(^\s*)|(\s*$)/g,"")};return M}();var ma,ja,S=function(M){if("WebkitTransition"in M.style)ma="webkitTransitionEnd",ja="webkitAnimationEnd";else if("transition"in M.style)ma="transitionend",ja="animationend";else throw Error("Your browser is not supported!");},fa=function(M,aa){void 0===aa&&(aa=M+"-active");return function(oa){ma||S(oa);var Da=
!1,Ea=function(Ja){Da||(Da=!0,oa.removeEventListener(ma,Ea),oa.removeEventListener(ja,Ea),oa.classList.remove(M),oa.classList.remove(aa))};oa.classList.add(M);oa.addEventListener(ma,Ea);oa.addEventListener(ja,Ea);requestAnimationFrame(function(){oa.classList.add(aa)})}},R=function(M,aa){void 0===aa&&(aa=M+"-active");return function(oa,Da){ma||S(oa);var Ea=!1,Ja=function(Ka){Ea||(Ea=!0,oa.removeEventListener(ma,Ja),oa.removeEventListener(ja,Ja),Da())};oa.classList.add(M);oa.addEventListener(ma,Ja);
oa.addEventListener(ja,Ja);requestAnimationFrame(function(){oa.classList.add(aa)})}};const Q=d.getLogger("esri.widgets.support.widgetUtils");d=(()=>{const M=new Map,aa=new ResizeObserver(oa=>{n.clearVNodeCache();for(const Da of oa)M.get(Da.target)?.(Da)});return(oa,Da,Ea)=>{M.has(oa)&&Q.error("Already observing element",oa);M.set(oa,Da);aa.observe(oa,Ea);return c.makeHandle(()=>{aa.unobserve(oa);M.delete(oa)})}})();U="dd dl dt h1 h2 h3 h4 h5 h6 sub sup animate animatetransform circle clippath defs ellipse g image line lineargradient marker mask path pattern polygon polyline radialgradient rect stop svg switch symbol text textpath tspan use".split(" ");
const Z=U.reduce((M,aa)=>{M[aa]=[];return M},{}),X="align alink alt bgcolor border cellpadding cellspacing class color cols colspan coords d dir face height hspace ismap lang marginheight marginwidth multiple nohref noresize noshade nowrap ref rel rev rows rowspan scrolling shape span summary tabindex title usemap valign value vlink vspace width".split(" ");e=new e({whiteList:Z,onTagAttr:(M,aa,oa)=>{M=`${aa}="${oa}"`;if(X.includes(aa))return M},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},
!0);a.additionalAllowedTags=U;a.classes=function(M){const aa=b.acquire();for(var oa=0;oa<arguments.length;oa++){const Da=arguments[oa],Ea=typeof Da;if("string"===Ea)aa.push(Da);else if(Array.isArray(Da))aa.push.apply(aa,Da);else if("object"===Ea)for(const Ja in Da)Da[Ja]&&aa.push(Ja)}oa=aa.join(" ");b.release(aa);return oa};a.cssTransition=function(M,aa){return("enter"===M?fa:R)(aa)};a.discardNode=function(M){this[M.getAttribute("data-node-ref")]=null};a.getDir=function(M){return w(M)?"rtl":"ltr"};
a.isActivationKey=function(M){return"Enter"===M||" "===M};a.isRTL=w;a.keepMenuItemWithinView=function(M,aa){const oa=M.getBoundingClientRect();aa=aa.getBoundingClientRect();const Da=oa.top,Ea=aa.top;(oa.top+oa.height>aa.top+aa.height||Da<Ea)&&M.scrollIntoView({block:"end"})};a.onResize=d;a.renderingSanitizer=e;a.safeAttrs=X;a.storeNode=function(M){this[M.getAttribute("data-node-ref")]=M};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/vnodeCache":function(){define(["exports"],
function(a){const b=new Map;a.clearVNodeCache=function(){b.clear()};a.deleteVNodeCache=function(c){b.delete(c)};a.getVNodeCache=function(c){return b.get(c)};a.setVNodeCache=function(c,e){b.set(c,e)};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/libs/maquette/projector":function(){define(["exports","./dom"],function(a,b){let c;c=Array.prototype.find?(n,u)=>n.find(u):(n,u)=>n.filter(u)[0];let e=(n,u)=>{let r=n;u.forEach(h=>{r=r&&r.children?c(r.children,
g=>g.domNode===h):void 0});return r},d=(n,u,r)=>{let h=function(g){r("domEvent",g);var k=u(),p=g.currentTarget,l=k.domNode;let m=[];for(;p&&p!==l;)m.push(p),p=p.parentNode;m.reverse();k=e(k.getLastRender(),m);n.scheduleRender();let t;k&&(t=k.properties[`on${g.type}`].apply(k.properties.bind||this,arguments));r("domEventProcessed",g);return t};return(g,k,p,l)=>h};a.createProjector=n=>{let u,r=b.applyDefaultProjectionOptions(n),h=r.performanceLogger,g=!0,k,p=!1,l=[],m=[],t=(q,v,x)=>{let z;r.eventHandlerInterceptor=
d(u,()=>z,h);z=q(v,x(),r);l.push(z);m.push(x)},f=()=>{k=void 0;if(g){g=!1;h("renderStart",void 0);for(let q=0;q<l.length;q++){let v=m[q]();h("rendered",void 0);l[q].update(v);h("patched",void 0)}h("renderDone",void 0);g=!0}};return u={renderNow:f,scheduleRender:()=>{k||p||(k=requestAnimationFrame(f))},stop:()=>{k&&(cancelAnimationFrame(k),k=void 0);p=!0},resume:()=>{p=!1;g=!0;u.scheduleRender()},append:(q,v)=>{t(b.dom.append,q,v)},insertBefore:(q,v)=>{t(b.dom.insertBefore,q,v)},merge:(q,v)=>{t(b.dom.merge,
q,v)},replace:(q,v)=>{t(b.dom.replace,q,v)},detach:q=>{for(let v=0;v<m.length;v++)if(m[v]===q)return m.splice(v,1),l.splice(v,1)[0];throw Error("renderFunction was not found");}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/libs/maquette-advanced-projector/advanced-projector-options":function(){define(["exports"],function(a){a.defaultAdvancedProjectorOptions={handleInterceptedEvent:(b,c,e,d)=>{b.scheduleRender();return c.properties[`on${d.type}`].apply(c.properties.bind||
e,[d])}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/libs/maquette-advanced-projector/utils":function(){define(["exports"],function(a){const b={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(c,e,d)=>{c.style[e]=d}};a.applyDefaultProjectionOptions=c=>({...b,...c});Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/chunks/componentsUtils":function(){define(["exports",
"../assets","../core/has","../core/urlUtils"],function(a,b,c,e){function d(T){return T.map(W=>{let wa="";for(let Aa=0;Aa<W;Aa++)wa+=(65536*(1+Math.random())|0).toString(16).substring(1);return wa}).join("-")}function n(T,W){function wa(Aa){if(Aa){var ia;(ia=Aa.closest(W))||(Aa=Aa.getRootNode().host||null,ia=wa(Aa));Aa=ia}else Aa=null;return Aa}return wa(T)}function u(T,W){return r(T,W)}function r(T,W){if(T){var wa=W(T);if(void 0!==wa)return wa;({parentNode:T}=T);return r(T instanceof ShadowRoot?T.host:
T,W)}}function h(T){return"function"===typeof(null===T||void 0===T?void 0:T.setFocus)}function g(T,W){return T?Array.from(T.children||[]).filter(wa=>null===wa||void 0===wa?void 0:wa.matches(W)):[]}function k(T,W,wa){W=":not([slot])"===W?g(T,":not([slot])"):Array.from(T.querySelectorAll(W));W=wa&&!1===wa.direct?W:W.filter(ia=>ia.parentElement===T);W=(null===wa||void 0===wa?0:wa.matches)?W.filter(ia=>null===ia||void 0===ia?void 0:ia.matches(wa.matches)):W;const Aa=null===wa||void 0===wa?void 0:wa.selector;
return Aa?W.map(ia=>Array.from(ia.querySelectorAll(Aa))).reduce((ia,Pa)=>[...ia,...Pa],[]).filter(ia=>!!ia):W}function p(T,W,wa){W=":not([slot])"===W?g(T,":not([slot])")[0]||null:T.querySelector(W);W=wa&&!1===wa.direct?W:(null===W||void 0===W?void 0:W.parentElement)===T?W:null;W=(null===wa||void 0===wa?0:wa.matches)?(null===W||void 0===W?0:W.matches(wa.matches))?W:null:W;return(T=null===wa||void 0===wa?void 0:wa.selector)?null===W||void 0===W?void 0:W.querySelector(T):W}function l(){const {classList:T}=
document.body,W=window.matchMedia("(prefers-color-scheme: dark)").matches,wa=ia=>document.body.dispatchEvent(new CustomEvent("calciteThemeChange",{bubbles:!0,detail:{theme:ia}}));let Aa=T.contains("calcite-theme-dark")||T.contains("calcite-theme-auto")&&W?"dark":"light";wa(Aa);window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ia=>{ia=ia.matches?"dark":"light";Aa!==ia&&wa(ia);Aa=ia});(new MutationObserver(()=>{var ia=T.contains("calcite-theme-dark")||T.contains("calcite-theme-auto")&&
W?"dark":"light";Aa!==ia&&wa(ia);Aa=ia})).observe(document.body,{attributes:!0,attributeFilter:["class"]})}let m,t,f,q=!1,v=!1,x=!1,z=!1,y=!1;const A=(T,W)=>()=>{},B={},E=T=>{T=typeof T;return"object"===T||"function"===T},w=(T,W,...wa)=>{let Aa=null,ia=null,Pa=null,Ra=!1,Ua=!1;const Ya=[],db=fb=>{for(let ib=0;ib<fb.length;ib++)if(Aa=fb[ib],Array.isArray(Aa))db(Aa);else if(null!=Aa&&"boolean"!==typeof Aa){if(Ra="function"!==typeof T&&!E(Aa))Aa=String(Aa);Ra&&Ua?Ya[Ya.length-1].$text$+=Aa:Ya.push(Ra?
D(null,Aa):Aa);Ua=Ra}};db(wa);if(W){W.key&&(ia=W.key);W.name&&(Pa=W.name);const fb=W.className||W.class;fb&&(W.class="object"!==typeof fb?fb:Object.keys(fb).filter(ib=>fb[ib]).join(" "))}if("function"===typeof T)return T(null===W?{}:W,Ya,F);wa=D(T,null);wa.$attrs$=W;0<Ya.length&&(wa.$children$=Ya);wa.$key$=ia;wa.$name$=Pa;return wa},D=(T,W)=>({$flags$:0,$tag$:T,$text$:W,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),C={},F={forEach:(T,W)=>T.map(G).forEach(W),map:(T,W)=>T.map(G).map(W).map(H)},
G=T=>({vattrs:T.$attrs$,vchildren:T.$children$,vkey:T.$key$,vname:T.$name$,vtag:T.$tag$,vtext:T.$text$}),H=T=>{if("function"===typeof T.vtag){var W=Object.assign({},T.vattrs);T.vkey&&(W.key=T.vkey);T.vname&&(W.name=T.vname);return w(T.vtag,W,...(T.vchildren||[]))}W=D(T.vtag,T.vtext);W.$attrs$=T.vattrs;W.$children$=T.vchildren;W.$key$=T.vkey;W.$name$=T.vname;return W},I=T=>Da.map(W=>W(T)).find(W=>!!W),J=(T,W)=>{if(null!=T&&!E(T)){if(W&4)return"false"===T?!1:""===T||!!T;if(W&2)return parseFloat(T);
if(W&1)return String(T)}return T},K=new WeakMap,N=(T,W,wa)=>{let Aa=oa.get(T);Va&&wa?(Aa=Aa||new CSSStyleSheet,"string"===typeof Aa?Aa=W:Aa.replaceSync(W)):Aa=W;oa.set(T,Aa)},U=(T,W)=>"sc-"+(W&&T.$flags$&32?T.$tagName$+"-"+W:T.$tagName$),ba=(T,W,wa,Aa,ia,Pa)=>{if(wa!==Aa){let Ya=W in T,db=W.toLowerCase();if("class"===W){T=T.classList;const fb=wa?wa.split(ka):[],ib=Aa?Aa.split(ka):[];T.remove(...fb.filter(hb=>hb&&!ib.includes(hb)));T.add(...ib.filter(hb=>hb&&!fb.includes(hb)))}else if("style"===W){for(var Ra in wa)Aa&&
null!=Aa[Ra]||(Ra.includes("-")?T.style.removeProperty(Ra):T.style[Ra]="");for(var Ua in Aa)wa&&Aa[Ua]===wa[Ua]||(Ua.includes("-")?T.style.setProperty(Ua,Aa[Ua]):T.style[Ua]=Aa[Ua])}else if("key"!==W)if("ref"===W)Aa&&Aa(T);else if(T.__lookupSetter__(W)||"o"!==W[0]||"n"!==W[1]){Ra=E(Aa);if((Ya||Ra&&null!==Aa)&&!ia)try{if(T.tagName.includes("-"))T[W]=Aa;else if(Ua=null==Aa?"":Aa,"list"===W)Ya=!1;else if(null==wa||T[W]!=Ua)T[W]=Ua}catch(fb){}wa=!1;db!==(db=db.replace(/^xlink:?/,""))&&(W=db,wa=!0);if(null==
Aa||!1===Aa){if(!1!==Aa||""===T.getAttribute(W))wa?T.removeAttributeNS("http://www.w3.org/1999/xlink",W):T.removeAttribute(W)}else(!Ya||Pa&4||ia)&&!Ra&&(Aa=!0===Aa?"":Aa,wa?T.setAttributeNS("http://www.w3.org/1999/xlink",W,Aa):T.setAttribute(W,Aa))}else W="-"===W[2]?W.slice(3):db in Ea?db.slice(2):db[2]+W.slice(3),wa&&Ka.rel(T,W,wa,!1),Aa&&Ka.ael(T,W,Aa,!1)}},ka=/\s/,P=(T,W,wa,Aa)=>{const ia=11===W.$elm$.nodeType&&W.$elm$.host?W.$elm$.host:W.$elm$;T=T&&T.$attrs$||B;const Pa=W.$attrs$||B;for(Aa in T)Aa in
Pa||ba(ia,Aa,T[Aa],void 0,wa,W.$flags$);for(Aa in Pa)ba(ia,Aa,T[Aa],Pa[Aa],wa,W.$flags$)},V=(T,W,wa,Aa)=>{W=W.$children$[wa];let ia=0,Pa;q||(x=!0,"slot"===W.$tag$&&(m&&Aa.classList.add(m+"-s"),W.$flags$|=W.$children$?2:1));if(null!==W.$text$)Aa=W.$elm$=Ja.createTextNode(W.$text$);else if(W.$flags$&1)Aa=W.$elm$=Ja.createTextNode("");else{z||(z="svg"===W.$tag$);Aa=W.$elm$=Ja.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",W.$flags$&2?"slot-fb":W.$tag$);z&&"foreignObject"===
W.$tag$&&(z=!1);P(null,W,z);null!=m&&Aa["s-si"]!==m&&Aa.classList.add(Aa["s-si"]=m);if(W.$children$)for(ia=0;ia<W.$children$.length;++ia)(Pa=V(T,W,ia,Aa))&&Aa.appendChild(Pa);"svg"===W.$tag$?z=!1:"foreignObject"===Aa.tagName&&(z=!0)}Aa["s-hn"]=f;W.$flags$&3&&(Aa["s-sr"]=!0,Aa["s-cr"]=t,Aa["s-sn"]=W.$name$||"",(wa=T&&T.$children$&&T.$children$[wa])&&wa.$tag$===W.$tag$&&T.$elm$&&ca(T.$elm$,!1));return Aa},ca=(T,W)=>{Ka.$flags$|=1;T=T.childNodes;for(let wa=T.length-1;0<=wa;wa--){const Aa=T[wa];Aa["s-hn"]!==
f&&Aa["s-ol"]&&((Aa["s-ol"]?Aa["s-ol"]:Aa).parentNode.insertBefore(Aa,Aa&&Aa["s-ol"]||Aa),Aa["s-ol"].remove(),Aa["s-ol"]=void 0,x=!0);W&&ca(Aa,W)}Ka.$flags$&=-2},ra=(T,W,wa,Aa,ia,Pa)=>{let Ra=T["s-cr"]&&T["s-cr"].parentNode||T,Ua;Ra.shadowRoot&&Ra.tagName===f&&(Ra=Ra.shadowRoot);for(;ia<=Pa;++ia)Aa[ia]&&(Ua=V(null,wa,ia,T))&&(Aa[ia].$elm$=Ua,Ra.insertBefore(Ua,W&&W["s-ol"]||W))},ta=(T,W,wa,Aa,ia)=>{for(;W<=wa;++W)if(Aa=T[W])ia=Aa.$elm$,O(Aa),v=!0,ia["s-ol"]?ia["s-ol"].remove():ca(ia,!0),ia.remove()},
Ba=(T,W)=>T.$tag$===W.$tag$?"slot"===T.$tag$?T.$name$===W.$name$:T.$key$===W.$key$:!1,Ha=(T,W)=>{const wa=W.$elm$=T.$elm$,Aa=T.$children$,ia=W.$children$,Pa=W.$tag$;var Ra=W.$text$;if(null===Ra){z="svg"===Pa?!0:"foreignObject"===Pa?!1:z;"slot"!==Pa&&P(T,W,z);if(null!==Aa&&null!==ia){var Ua=Ra=T=0,Ya=0;let fb=Aa.length-1,ib=Aa[0],hb=Aa[fb],ua=ia.length-1,Fa=ia[0],La=ia[ua];for(;T<=fb&&Ra<=ua;)if(null==ib)ib=Aa[++T];else if(null==hb)hb=Aa[--fb];else if(null==Fa)Fa=ia[++Ra];else if(null==La)La=ia[--ua];
else if(Ba(ib,Fa))Ha(ib,Fa),ib=Aa[++T],Fa=ia[++Ra];else if(Ba(hb,La))Ha(hb,La),hb=Aa[--fb],La=ia[--ua];else if(Ba(ib,La))"slot"!==ib.$tag$&&"slot"!==La.$tag$||ca(ib.$elm$.parentNode,!1),Ha(ib,La),wa.insertBefore(ib.$elm$,hb.$elm$.nextSibling),ib=Aa[++T],La=ia[--ua];else if(Ba(hb,Fa))"slot"!==ib.$tag$&&"slot"!==La.$tag$||ca(hb.$elm$.parentNode,!1),Ha(hb,Fa),wa.insertBefore(hb.$elm$,ib.$elm$),hb=Aa[--fb],Fa=ia[++Ra];else{Ua=-1;for(Ya=T;Ya<=fb;++Ya)if(Aa[Ya]&&null!==Aa[Ya].$key$&&Aa[Ya].$key$===Fa.$key$){Ua=
Ya;break}0<=Ua?(Ya=Aa[Ua],Ya.$tag$!==Fa.$tag$?Ua=V(Aa&&Aa[Ra],W,Ua,wa):(Ha(Ya,Fa),Aa[Ua]=void 0,Ua=Ya.$elm$)):Ua=V(Aa&&Aa[Ra],W,Ra,wa);Fa=ia[++Ra];if(Ua){Ya=ib.$elm$;Ya=(Ya["s-ol"]?Ya["s-ol"]:Ya).parentNode;var db=ib.$elm$;Ya.insertBefore.call(Ya,Ua,db&&db["s-ol"]||db)}}T>fb?ra(wa,null==ia[ua+1]?null:ia[ua+1].$elm$,W,ia,Ra,ua):Ra>ua&&ta(Aa,T,fb)}else null!==ia?(null!==T.$text$&&(wa.textContent=""),ra(wa,null,W,ia,0,ia.length-1)):null!==Aa&&ta(Aa,0,Aa.length-1);z&&"svg"===Pa&&(z=!1)}else(W=wa["s-cr"])?
W.parentNode.textContent=Ra:T.$text$!==Ra&&(wa.data=Ra)},da=T=>{T=T.childNodes;let W,wa,Aa,ia,Pa,Ra;wa=0;for(Aa=T.length;wa<Aa;wa++)if(W=T[wa],1===W.nodeType){if(W["s-sr"])for(Pa=W["s-sn"],W.hidden=!1,ia=0;ia<Aa;ia++)if(Ra=T[ia].nodeType,T[ia]["s-hn"]!==W["s-hn"]||""!==Pa){if(1===Ra&&Pa===T[ia].getAttribute("slot")){W.hidden=!0;break}}else if(1===Ra||3===Ra&&""!==T[ia].textContent.trim()){W.hidden=!0;break}da(W)}},la=[],sa=T=>{let W,wa,Aa,ia,Pa,Ra=0;const Ua=T.childNodes,Ya=Ua.length;for(;Ra<Ya;Ra++){T=
Ua[Ra];if(T["s-sr"]&&(W=T["s-cr"])&&W.parentNode)for(wa=W.parentNode.childNodes,Aa=T["s-sn"],Pa=wa.length-1;0<=Pa;Pa--)W=wa[Pa],W["s-cn"]||W["s-nr"]||W["s-hn"]===T["s-hn"]||(L(W,Aa)?(ia=la.find(db=>db.$nodeToRelocate$===W),v=!0,W["s-sn"]=W["s-sn"]||Aa,ia?ia.$slotRefNode$=T:la.push({$slotRefNode$:T,$nodeToRelocate$:W}),W["s-sr"]&&la.map(db=>{L(db.$nodeToRelocate$,W["s-sn"])&&(ia=la.find(fb=>fb.$nodeToRelocate$===W))&&!db.$slotRefNode$&&(db.$slotRefNode$=ia.$slotRefNode$)})):la.some(db=>db.$nodeToRelocate$===
W)||la.push({$nodeToRelocate$:W}));1===T.nodeType&&sa(T)}},L=(T,W)=>1===T.nodeType?null===T.getAttribute("slot")&&""===W||T.getAttribute("slot")===W?!0:!1:T["s-sn"]===W?!0:""===W,O=T=>{T.$attrs$&&T.$attrs$.ref&&T.$attrs$.ref(null);T.$children$&&T.$children$.map(O)},ha=(T,W)=>{const wa=T.$hostElement$;var Aa=T.$cmpMeta$,ia=T.$vnode$||D(null,null);const Pa=W&&W.$tag$===C?W:w(null,null,W);f=wa.tagName;Aa.$attrsToReflect$&&(Pa.$attrs$=Pa.$attrs$||{},Aa.$attrsToReflect$.map(([Ra,Ua])=>Pa.$attrs$[Ua]=wa[Ra]));
Pa.$tag$=null;Pa.$flags$|=4;T.$vnode$=Pa;Pa.$elm$=ia.$elm$=wa.shadowRoot||wa;m=wa["s-sc"];t=wa["s-cr"];q=0!==(Aa.$flags$&1);v=!1;Ha(ia,Pa);Ka.$flags$|=1;if(x){sa(Pa.$elm$);let Ra,Ua;for(Aa=0;Aa<la.length;Aa++)ia=la[Aa],T=ia.$nodeToRelocate$,T["s-ol"]||(ia=Ja.createTextNode(""),ia["s-nr"]=T,T.parentNode.insertBefore(T["s-ol"]=ia,T));for(Aa=0;Aa<la.length;Aa++)if(ia=la[Aa],T=ia.$nodeToRelocate$,ia.$slotRefNode$){W=ia.$slotRefNode$.parentNode;Ra=ia.$slotRefNode$.nextSibling;for(ia=T["s-ol"];ia=ia.previousSibling;)if((Ua=
ia["s-nr"])&&Ua["s-sn"]===T["s-sn"]&&W===Ua.parentNode&&(Ua=Ua.nextSibling,!Ua||!Ua["s-nr"])){Ra=Ua;break}(Ra||W===T.parentNode)&&T.nextSibling===Ra||T===Ra||(!T["s-hn"]&&T["s-ol"]&&(T["s-hn"]=T["s-ol"].parentNode.nodeName),W.insertBefore(T,Ra))}else 1===T.nodeType&&(T.hidden=!0)}v&&da(Pa.$elm$);Ka.$flags$&=-2;la.length=0},pa=(T,W)=>{T.$flags$|=16;return Wa(()=>ya(T,W))},ya=(T,W)=>{const wa=T.$hostElement$,Aa=A("scheduleUpdate",T.$cmpMeta$.$tagName$);let ia;ia=W?ea(wa,"componentWillLoad"):ea(wa,"componentWillUpdate");
ia=ma(ia,()=>ea(wa,"componentWillRender"));Aa();return ma(ia,()=>Y(T,wa,W))},Y=async(T,W,wa)=>{var Aa=T.$hostElement$,ia=A("update",T.$cmpMeta$.$tagName$);Aa["s-rc"];if(wa){var Pa=T.$cmpMeta$;wa=T.$hostElement$;Aa=Pa.$flags$;const Ua=A("attachStyles",Pa.$tagName$);var Ra=wa.shadowRoot?wa.shadowRoot:wa.getRootNode();Pa=U(Pa,T.$modeName$);const Ya=oa.get(Pa);Ra=11===Ra.nodeType?Ra:Ja;if(Ya)if("string"===typeof Ya){Ra=Ra.head||Ra;let db=K.get(Ra),fb;db||K.set(Ra,db=new Set);db.has(Pa)||(fb=Ja.createElement("style"),
fb.innerHTML=Ya,Ra.insertBefore(fb,Ra.querySelector("link")),db&&db.add(Pa))}else Ra.adoptedStyleSheets.includes(Ya)||(Ra.adoptedStyleSheets=[...Ra.adoptedStyleSheets,Ya]);Ra=Pa;Aa&10&&(wa["s-sc"]=Ra,wa.classList.add(Ra+"-h"),Aa&2&&wa.classList.add(Ra+"-s"));Ua()}wa=A("render",T.$cmpMeta$.$tagName$);try{W=W.render&&W.render(),T.$flags$&=-17,T.$flags$|=2,ha(T,W)}catch(Ua){(0,console.error)(Ua,T.$hostElement$)}wa();ia();ia=T.$hostElement$;W=A("postUpdate",T.$cmpMeta$.$tagName$);T.$ancestorComponent$;
ea(ia,"componentDidRender");T.$flags$&64?ea(ia,"componentDidUpdate"):(T.$flags$|=64,ea(ia,"componentDidLoad"));W()},ea=(T,W,wa)=>{if(T&&T[W])try{return T[W](wa)}catch(Aa){(0,console.error)(Aa,void 0)}},ma=(T,W)=>T&&T.then?T.then(W):W(),ja=(T,W,wa,Aa)=>{const ia=aa.get(T),Pa=ia.$instanceValues$.get(W),Ra=ia.$flags$;wa=J(wa,Aa.$members$[W][0]);const Ua=Number.isNaN(Pa)&&Number.isNaN(wa);wa===Pa||Ua||(ia.$instanceValues$.set(W,wa),Aa.$watchers$&&Ra&128&&(Aa=Aa.$watchers$[W])&&Aa.map(Ya=>{try{T[Ya](wa,
Pa,W)}catch(db){(0,console.error)(db,T)}}),2!==(Ra&18)||T.componentShouldUpdate&&!1===T.componentShouldUpdate(wa,Pa,W)||pa(ia,!1))},S=(T,W,wa)=>{if(W.$members$){T.watchers&&(W.$watchers$=T.watchers);wa=Object.entries(W.$members$);const Aa=T.prototype;wa.map(([Pa,[Ra]])=>{(Ra&31||Ra&32)&&Object.defineProperty(Aa,Pa,{get(){return aa.get(this).$instanceValues$.get(Pa)},set(Ua){ja(this,Pa,Ua,W)},configurable:!0,enumerable:!0})});const ia=new Map;Aa.attributeChangedCallback=function(Pa,Ra,Ua){Ka.jmp(()=>
{const Ya=ia.get(Pa);if(this.hasOwnProperty(Ya))Ua=this[Ya],delete this[Ya];else if(Aa.hasOwnProperty(Ya)&&"number"===typeof this[Ya]&&this[Ya]==Ua)return;this[Ya]=null===Ua&&"boolean"===typeof this[Ya]?!1:Ua})};T.observedAttributes=wa.filter(([,Pa])=>Pa[0]&15).map(([Pa,Ra])=>{const Ua=Ra[1]||Pa;ia.set(Ua,Pa);Ra[0]&512&&W.$attrsToReflect$.push([Pa,Ua]);return Ua})}return T},fa=async(T,W,wa,Aa,ia)=>{0===(W.$flags$&32)&&(ia=T.constructor,W.$flags$|=32,customElements.whenDefined(wa.$tagName$).then(()=>
W.$flags$|=128),ia.style&&(Aa=ia.style,"string"!==typeof Aa&&(Aa=Aa[W.$modeName$=I(T)]),T=U(wa,W.$modeName$),oa.has(T)||(ia=A("registerStyles",wa.$tagName$),N(T,Aa,!!(wa.$flags$&1)),ia())));W.$ancestorComponent$;pa(W,!0)},R=T=>{if(0===(Ka.$flags$&1)){const W=aa.get(T),wa=W.$cmpMeta$,Aa=A("connectedCallback",wa.$tagName$);W.$flags$&1?X(T,W,wa.$listeners$):(W.$flags$|=1,wa.$flags$&12&&Q(T),wa.$members$&&Object.entries(wa.$members$).map(([ia,[Pa]])=>{Pa&31&&T.hasOwnProperty(ia)&&(Pa=T[ia],delete T[ia],
T[ia]=Pa)}),fa(T,W,wa));Aa()}},Q=T=>{const W=T["s-cr"]=Ja.createComment("");W["s-cn"]=!0;T.insertBefore(W,T.firstChild)},Z=T=>{0===(Ka.$flags$&1)&&(T=aa.get(T),T.$rmListeners$&&(T.$rmListeners$.map(W=>W()),T.$rmListeners$=void 0))},X=(T,W,wa,Aa)=>{wa&&wa.map(([ia,Pa,Ra])=>{const Ua=ia&4?Ja:ia&8?Ea:ia&16?Ja.body:T,Ya=M(W,Ra),db=Sa?{passive:0!==(ia&1),capture:0!==(ia&2)}:0!==(ia&2);Ka.ael(Ua,Pa,Ya,db);(W.$rmListeners$=W.$rmListeners$||[]).push(()=>Ka.rel(Ua,Pa,Ya,db))})},M=(T,W)=>wa=>{try{T.$hostElement$[W](wa)}catch(Aa){(0,console.error)(Aa,
void 0)}},aa=new WeakMap,oa=new Map,Da=[],Ea="undefined"!==typeof window?window:{};null;const Ja=Ea.document||{head:{}};c=Ea.HTMLElement||class{};const Ka={$flags$:0,$resourcesUrl$:"",jmp:T=>T(),raf:T=>requestAnimationFrame(T),ael:(T,W,wa,Aa)=>T.addEventListener(W,wa,Aa),rel:(T,W,wa,Aa)=>T.removeEventListener(W,wa,Aa),ce:(T,W)=>new CustomEvent(T,W)},Sa=(()=>{let T=!1;try{Ja.addEventListener("e",null,Object.defineProperty({},"passive",{get(){T=!0}}))}catch(W){}return T})();a:{try{new CSSStyleSheet;
var Ta="function"===typeof(new CSSStyleSheet).replaceSync;break a}catch(T){}Ta=!1}const Va=Ta,Xa=[],Za=[],$a=T=>{for(let W=0;W<T.length;W++)try{T[W](performance.now())}catch(wa){(0,console.error)(wa,void 0)}T.length=0},cb=()=>{$a(Xa);$a(Za);(y=0<Xa.length)&&Ka.raf(cb)},Wa=((T,W)=>wa=>{T.push(wa);y||(y=!0,W&&Ka.$flags$&4?(wa=cb,Promise.resolve(void 0).then(wa)):Ka.raf(cb))})(Za,!0),eb=()=>d([2,1,1,1,3]),Oa={autoTheme:"calcite-theme-auto",darkTheme:"calcite-theme-dark",lightTheme:"calcite-theme-light",
rtl:"calcite--rtl"};(function(){"undefined"!==typeof window&&"undefined"!==typeof location&&"undefined"!==typeof document&&window.location===location&&window.document===document&&("interactive"===document.readyState?l():document.addEventListener("DOMContentLoaded",()=>l(),{once:!0}))})();a.Build={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1};a.CSS_UTILITY=Oa;a.Fragment=(T,W)=>W;a.H=c;a.Host=C;a.TEXT={loading:"Loading"};a.closestElementCrossShadowBoundary=n;a.commitAssetPath=function(){Ka.$resourcesUrl$=
e.makeAbsolute(b.getAssetUrl("esri/widgets/support/components/assets"))};a.containsCrossShadowBoundary=function(T,W){return!!u(W,wa=>wa===T?!0:void 0)};a.createEvent=(T,W,wa)=>({emit:Aa=>{Aa=Ka.ce(W,{bubbles:!!(wa&4),composed:!!(wa&2),cancelable:!!(wa&1),detail:Aa});T.dispatchEvent(Aa);return Aa}});a.ensureId=function(T){return T?T.id=T.id||`${T.tagName.toLowerCase()}-${eb()}`:""};a.filterDirectChildren=function(T,W){return Array.from(T.children).filter(wa=>wa.matches(W))};a.focusElement=async function(T){if(T)return h(T)?
T.setFocus():T.focus()};a.forceUpdate=T=>{T=aa.get(T);const W=T.$hostElement$.isConnected;W&&2===(T.$flags$&18)&&pa(T,!1);return W};a.getAssetPath=T=>{T=new URL(T,Ka.$resourcesUrl$);return T.origin!==Ea.location.origin?T.href:T.pathname};a.getElementDir=function(T){return(T=n(T,"[dir]"))?T.getAttribute("dir"):"ltr"};a.getElementProp=function(T,W,wa){return(T=T.closest(`[${W}]`))?T.getAttribute(W):wa};a.getSlotted=function(T,W,wa){W&&!Array.isArray(W)&&"string"!==typeof W&&(wa=W,W=null);W=W?Array.isArray(W)?
W.map(Aa=>`[slot="${Aa}"]`).join(","):`[slot="${W}"]`:":not([slot])";return(null===wa||void 0===wa?0:wa.all)?k(T,W,wa):p(T,W,wa)};a.getThemeName=function(T){T=n(T,`.${Oa.darkTheme}, .${Oa.lightTheme}`);return(null===T||void 0===T?0:T.classList.contains("calcite-theme-dark"))?"dark":"light"};a.guid=eb;a.h=w;a.intersects=function(T,W){return!(W.left>T.right||W.right<T.left||W.top>T.bottom||W.bottom<T.top)};a.isCalciteFocusable=h;a.isPrimaryPointerButton=function(T){return!(!T.isPrimary||0!==T.button)};
a.nodeListToArray=function(T){return Array.isArray(T)?T:Array.from(T)};a.proxyCustomElement=(T,W)=>{const wa={$flags$:W[0],$tagName$:W[1]};wa.$members$=W[2];wa.$listeners$=W[3];wa.$watchers$=T.$watchers$;wa.$attrsToReflect$=[];const Aa=T.prototype.connectedCallback,ia=T.prototype.disconnectedCallback;Object.assign(T.prototype,{__registerHost(){const Pa={$flags$:0,$hostElement$:this,$cmpMeta$:wa,$instanceValues$:new Map};X(this,Pa,wa.$listeners$);aa.set(this,Pa)},connectedCallback(){R(this);Aa&&Aa.call(this)},
disconnectedCallback(){Z(this);ia&&ia.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(wa.$flags$&16)})}});T.is=wa.$tagName$;return S(T,wa)};a.queryElementRoots=function(T,{selector:W,id:wa}){function Aa(ia){if(!ia)return null;ia.assignedSlot&&(ia=ia.assignedSlot);var Pa=ia.getRootNode();ia=wa?"getElementById"in Pa?Pa.getElementById(wa):null:W?Pa.querySelector(W):null;Pa=Pa.host||null;return ia?ia:Pa?Aa(Pa):null}return Aa(T)};a.setRequestedIcon=function(T,W,wa){if("string"===
typeof W&&""!==W)return W;if(""===W)return T[wa]};a.toAriaBoolean=function(T){return(!!T).toString()}})},"esri/widgets/support/jsxWidgetSupport":function(){define(["exports","../../core/handleUtils"],function(a,b){function c(p,l){let m=l.children;if(m&&m.length)for(var t=0;t<m.length;++t)m[t]=c(p,m[t]);else m=h;t=l.vnodeSelector;if(u(t)){l=l.properties||g;const f=l.key||t;return{vnodeSelector:"div",properties:{key:f,afterCreate:e,afterUpdate:d,afterRemoved:n,parentWidget:p,widgetConstructor:t,widgetProperties:{...l,
key:f,children:m}},children:void 0,text:void 0,domNode:null}}return l}function e(p,l,m,{parentWidget:t,widgetConstructor:f,widgetProperties:q}){l=new f(q);l.container=p;k.set(p,l);l.afterCreate?.(l,p);t._internalHandles.add(b.makeHandle(()=>n(p)))}function d(p,l,m,{widgetProperties:t}){if(l=k.get(p))l.set(t),l.afterUpdate?.(l,p)}function n(p){const l=k.get(p);l&&(l.destroy(),k.delete(p))}function u(p){return"function"===typeof p&&p[r]}const r=Symbol("widget"),h=[],g={},k=new WeakMap;a.WIDGET_SYMBOL=
r;a.isWidgetConstructor=u;a.processWidgets=c;Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/tests":function(){define(["exports"],function(a){const b=new Set;a.hasPendingLoading=function(){return 0<b.size};a.registerLoading=function(c){b.add(c);c.finally(()=>b.delete(c))};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/widget":function(){define("exports ./decorators/accessibleHandler ./decorators/messageBundle ./decorators/vmEvent ./jsxFactory ./widgetUtils ../../support/themeUtils".split(" "),
function(a,b,c,e,d,n,u){a.accessibleHandler=b.accessibleHandler;a.messageBundle=c.messageBundle;a.vmEvent=e.vmEvent;a.tsx=d.tsx;a.tsxFragment=d.tsxFragment;a.additionalAllowedTags=n.additionalAllowedTags;a.classes=n.classes;a.cssTransition=n.cssTransition;a.discardNode=n.discardNode;a.getDir=n.getDir;a.isActivationKey=n.isActivationKey;a.isRTL=n.isRTL;a.keepMenuItemWithinView=n.keepMenuItemWithinView;a.onResize=n.onResize;a.renderingSanitizer=n.renderingSanitizer;a.safeAttrs=n.safeAttrs;a.storeNode=
n.storeNode;a.getCalciteThemeClass=u.getCalciteThemeClass;a.isDarkTheme=u.isDarkTheme;a.setCalciteThemeClass=u.setCalciteThemeClass;a.hasDomNode=function(r){return r&&"function"===typeof r.postMixInProperties&&"function"===typeof r.buildRendering&&"function"===typeof r.postCreate&&"function"===typeof r.startup};a.isWidget=function(r){return r&&"function"===typeof r.render};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/decorators/accessibleHandler":function(){define(["exports",
"../widgetUtils"],function(a,b){function c(e){return function(d,...n){const {type:u}=d;d instanceof KeyboardEvent||"keyup"===u||"keydown"===u||"keypress"===u?b.isActivationKey(d.key)&&(d.preventDefault(),d.stopPropagation(),d.target.click()):e.call(this,d,...n)}}a.accessibleHandler=function(){return function(e,d){if(!e[d])throw new TypeError(`Cannot auto bind undefined function '${d}'`);return{value:c(e[d])}}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},
"esri/widgets/support/decorators/messageBundle":function(){define(["exports"],function(a){a.messageBundle=function(b){return(c,e)=>{c.hasOwnProperty("_messageBundleProps")||(c._messageBundleProps=c._messageBundleProps?c._messageBundleProps.slice():[]);c._messageBundleProps.push({bundlePath:b,propertyName:e})}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/decorators/vmEvent":function(){define(["exports"],function(a){function b(c){return c.split(",").map(e=>
e.trim())}a.vmEvent=function(c){return e=>{e.hasOwnProperty("_delegatedEventNames")||(e._delegatedEventNames=e._delegatedEventNames?e._delegatedEventNames.slice():[]);e=e._delegatedEventNames;const d=Array.isArray(c)?c:b(c);e.push(...d)}};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/widgets/support/jsxFactory":function(){define(["exports","./jsxWidgetSupport"],function(a,b){var c=function(d,n){for(var u=0,r=d.length;u<r;u++){var h=d[u];Array.isArray(h)?
c(h,n):null!==h&&void 0!==h&&!1!==h&&(h.hasOwnProperty("vnodeSelector")||(h={vnodeSelector:"",properties:void 0,children:void 0,text:h.toString(),domNode:null}),n.push(h))}},e=function(d,n){for(var u=[],r=2;r<arguments.length;r++)u[r-2]=arguments[r];if(1===u.length&&"string"===typeof u[0])return{vnodeSelector:d,properties:n||void 0,children:void 0,text:u[0],domNode:null};r=[];c(u,r);return{vnodeSelector:d,properties:n||void 0,children:r,text:void 0,domNode:null}};a.tsx=function(d,n,...u){return"function"!==
typeof d||b.isWidgetConstructor(d)?e(d,n,...u):d(n,...u)};a.tsxFragment=function(...d){return d};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})},"esri/support/themeUtils":function(){define(["exports"],function(a){function b(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"").startsWith("dark")}function c(){return`${"calcite-theme-"}${b()?"dark":"light"}`}function e(d){Array.from(d.classList).forEach(n=>
{n.startsWith("calcite-theme-")&&d.classList.remove(n)})}a.getCalciteThemeClass=c;a.isDarkTheme=b;a.setCalciteThemeClass=function(d){e(d);d.classList.add(c())};Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}}});require.boot&&require.apply(null,require.boot);