@arcgis/map-components
Version:
ArcGIS Map Components
7 lines (6 loc) • 42.9 kB
JavaScript
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
v4.32.13 */
function Go(...e){let t=[];for(let s=0;s<e.length;s++){let n=e[s];if(typeof n=="string")t.push(n);else if(Array.isArray(n))t.push.apply(t,n);else if(typeof n=="object")for(let r in n)n[r]&&t.push(r)}let o=t.join(" ");return t.length=0,o}var E=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function Me(e,t){let o=e;for(;o;){if(o===t)return!0;if(!o.parentNode)return!1;o.parentNode instanceof ShadowRoot?o=o.parentNode.host:o=o.parentNode}return!1}function je(e,t,o){let{subscribe:s}=Ve(t);return s(n=>{n.some(i=>Me(e,i.target))&&o()})}var gt={};function Ve(e){let t=e.join(","),o=gt[t];if(o!==void 0)return o;let s=new Set,n=new MutationObserver(i=>s.forEach(c=>c(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let r={subscribe(i){return s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),gt[t]=void 0)}}};return gt[t]=r,r}function ze(e,t){let o=e;for(;o;){let s=o.closest?.(t);if(s)return s;let n=o.getRootNode?.();if(n===globalThis.document)return null;o=n.host}return null}function He(e,t,o){return ze(e,`[${t}]`)?.getAttribute(t)??o}function We(e){return typeof e.setFocus=="function"}async function Ko(e){e!=null&&(We(e)?await e.setFocus():e.focus())}function p(e,t,...o){try{return e?.call(t,...o)}catch(s){console.error(s,e)}}async function W(e,t,...o){try{let s=e?.call(t,...o);return s instanceof Promise?await s:s}catch(s){console.error(s,e)}}var qe=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],Be=new Set(qe),tt="en",Fe={pt:"pt-PT",nb:"no",zh:"zh-CN"};async function Ge(e,t,o=""){let s=`${t}/${o}`,n=`${s}${e}.json`;return Et[n]??(Et[n]=zt(e,s)),await Et[n]}var Et={};async function zt(e,t){let o=`${t}${e}.json`;try{let s=await fetch(o);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return e===tt?{}:await zt(tt,t)}function bt(e){let t=He(e,"lang",globalThis.navigator?.language||tt);return{lang:t,t9nLocale:Ht(t)}}function Ht(e){let[t,o]=e.split("-"),s=t.toLowerCase(),n=s;return o&&(n=`${s}-${o.toUpperCase()}`),n=Fe[n]??n,Be.has(n)?n:o?Ht(s):tt}function Wt(e,t,o,s){let n,r=()=>void Ke(e,t(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&o(i),n=i}).catch(console.error);return queueMicrotask(r),je(e,["lang"],r)}async function Ke(e,t,o=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:s,t9nLocale:n}=bt(e),r=`${t}/${o}/t9n`,c=o===null?{}:await Ge(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:c}}var et=e=>e.replace(Je,(t,o)=>`${o===0?"":"-"}${t.toLowerCase()}`),Je=/[A-Z]+(?![a-z])|[A-Z]/gu;function qt(e,t){let o=t>Ye?Qe:t/Ze,s=0,n=setInterval(()=>{s+=o,s>=t&&(clearInterval(n),e())},o);return n}var Ye=4e3,Qe=2e3,Ze=4;function Bt(e){return e!==void 0}var Ft=";",ot=",",Gt=":";function _t(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let o=t;return o.manager?.loadedCalled||o._offspring.push(e),o._postLoad.promise}return!1}var Xe=(e,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(to)};function to([e,[t,o=""]]){if(customElements.get(e))return;let[s,n,r]=o.split(Ft),i=s?s?.split(ot).map(Kt):void 0,c=i?.map(([l])=>l),a=class extends oo{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=n?n?.split(ot):void 0}static{this._syncMethods=r?.split(ot)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var st=Object.defineProperty;function Kt(e){let t=e.split(Gt);return t.length===1?[t[0],et(t[0])]:t}var eo=globalThis.HTMLElement??Kt,oo=class extends eo{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){st(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){st(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){st(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=t[o],delete t[o])})}attributeChangedCallback(e,t,o){this._litElement?.attributeChangedCallback(e,t,o),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=_t(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,o=t._name,s=this._store,n=Object.values(e).find(d=>d.tagName===o),r=`${o}--lazy`,i=n;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);no(i),!t._LitConstructor&&(t._LitConstructor=n,customElements.define(r,n)),n.lazy=this;let a=document.createElement(r);n.lazy=void 0,this._litElement=a,this._store=a,this._pendingAttributes.forEach(d=>{let h=this.getAttribute(d);a.attributeChangedCallback(d,null,h)}),Object.entries(s).forEach(so,a);let l=this.isConnected;(l||this._ancestorLoad)&&(a.connectedCallback?.(),l||a.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function so([e,t]){this[e]=t}function no(e){let t=e.prototype,o=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){o.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){o.removeAttribute.call(this.el,n)},st(t,"isConnected",{get(){return Reflect.get(o,"isConnected",this.el)}}))}var Ct={};function Jt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,n])=>n.noAccessor?void 0:[s,[(n.readOnly?2048:0)|(n.state?32:16)]]).filter(Bt))}else{let o=e.constructor,s=o.__registerControllers?.(e)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([n,[r]])=>(r&63)!==0))}}function Yt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var Qt=(e,t)=>e.manager.internals.members?.[t]?.[0];var rt=Symbol.for("controller");var te=e=>typeof e=="object"&&e!==null&&(rt in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var q;function N(e){q!==e&&(q=e,queueMicrotask(()=>{q===e&&(q=void 0)}))}function O(e){return q}var S=[];function xt(e){if(e===void 0){S=[];return}let t=S.indexOf(e);S=t===-1?[...S,e]:S.slice(0,t+1),queueMicrotask(()=>{S=[]})}function At(){return S}var V;function ro(e){V!==e&&(V=e,queueMicrotask(()=>{V===e&&(V=void 0)}))}function io(){let e=V;return V=void 0,e}var ao=async(e,t)=>{let o=Lt(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(n=>t(n,s))}return o.exports},co=async e=>{let t=Lt(e);return await t.ready,t},Lt=e=>{let o=O().manager.internals.resolveExports(e);if(o!==void 0)return o;if(te(e))return e;let s=io();if(s!==void 0)return s},$={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,ee;ee=rt;var Ot=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new E,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[ee]=!0,this.ready=this._ready.promise,this._exports=Xt(this),this._exportWatchers=new Set;let t=e??O(new.target.name);this.component=t,this.component.addController(this),this.component.manager===void 0||(xt(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Xt(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return N(this.component),ao}get useRef(){return N(this.component),co}get useRefSync(){return N(this.component),Lt}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await W(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(W)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Zt,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Zt,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){N(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Zt(e){p(e,void 0,this)}var oe=Ot;function Xt(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,n){if(!(lo.has(s)&&s in o&&o[s]===t)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,n)},set:(o,s,n,r)=>Reflect.set(o,s,n,r)});return t}var lo=new Set(["exports","_exports"]);function se(e,t,o){let s=Object.keys(e),n=s.length;T===void 0&&queueMicrotask(F),T??(T=new Map);let r=T.get(e);return r===void 0&&(r={callbacks:[],keyCount:n},T.set(e,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[n];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var T=void 0;function F(){Array.from(T?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),T=void 0}function G(e,t,o){var s;let n=t,r=e.manager.internals;(s=r.allWatchers)[n]??(s[n]=[]);let i=r.allWatchers[n],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var ne=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([o,[s]])=>{var n;s&2048&&((n=t.setters)[o]??(n[o]=[]),t.setters[o].push(t.readonlySetter))})},this.trackedValue=$t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,o,s)=>{if($.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let o=this.keyTrackers;this.trackedValue=$t,this.keyTrackers=[],o.forEach(s=>s(e,t))}getSetProxy(e){let t=this.component,o=t.constructor.prototype;if(this._getSetProxy(o,e,"class"),t.manager.isLit)return;let s=t.el.constructor.prototype;o!==s&&this._getSetProxy(s,e,"html")}_getSetProxy(e,t,o){let s=this.component,n=Qt(s,t),r;do r=Object.getOwnPropertyDescriptor(e,t);while(!r&&(e=Object.getPrototypeOf(e)));if(!r)return;let i=r.get,c=r.set,a=nt in i,l=nt in c;if(a&&l)return;let d=!a,h=!l,m=d?function(){let g=i.call(this),C=B.get(this);if($.getter||C===void 0)return g;let j=C.manager.internals;g=j.accessorGetter[t](g,t);let v=j.getters[t]??wt;for(let w=0;w<v.length;w++)g=v[w](g,t);return g}:i,y=h?function(g){let C=i.call(this),j=B.get(this);if(j===void 0){c.call(this,g);return}let v=j.manager.isLit?g??void 0:Yt(g,n),w=j.manager.internals;if(v===C)c.call(this,v);else{let Vt=$.setter?wt:w.setters[t]??wt;for(let H=0;H<Vt.length&&(v=Vt[H](v,C,t),v!==C);H++);v=w.accessorSetter[t](v,C,t),c.call(this,v),v!==C&&w.enabledWatchers[t]?.forEach(H=>H(v,C,t))}w.keyTrackers.length>0&&w?.firePropTrackers(t,g)}:c;d&&(m[nt]=!0),h&&(y[nt]=!0),Object.defineProperty(e,t,{...r,get:m,set:y})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},wt=[],nt=Symbol(),$t=Symbol();function re(e,t,o){let s=e.manager.internals;return s.trackedValue!==$t&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((n,r)=>p(t,void 0,o===r?n:void 0)),o}function it(e=[O(),...At()],t,o){let s=Array.isArray(e)?e:[e],n=s.length+1,r=c=>{n-=1,c!==void 0&&(n=Math.min(n,0)),n===0&&t(c)};s.forEach(c=>se(c,a=>r(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&re(i,c=>r(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function ho(e){$.setter=!0;try{return e()}finally{$.setter=!1}}function po(e){$.getter=!0;try{return e()}finally{$.getter=!1}}function ie(e){$.readOnly=!0;try{return e()}finally{$.readOnly=!1}}var ae=e=>(...t)=>{let o=At(),s=new e(...t),n=s.exports;xt(o.at(-1));let r=s.component.manager.internals;r.markExports(s,n),s.watchExports(c=>r.markExports(s,c)),ro(s);let i=[s.component,...o].reverse();return it(i,c=>c===void 0?void 0:uo(s,c,n),n)};function uo(e,{host:t,key:o,isReactive:s},n){let r=t,i=r[o]!==e.exports,c=r[o]!==n,a=n!==e.exports;if(i&&!c&&a&&(r[o]=e.exports),t===e.component){if(s){let d=e.component.manager.internals;c&&d.markExports(e,r[o]),G(e.component,o,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(r[o]===e.exports)return;let d=e.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?ie(()=>{r[o]=e.exports}):r[o]=e.exports})}var he=(e,t)=>new fo(e,t),fo=class extends oe{constructor(e,t){let o="addController"in e,s=new Set;function n(a){s.add(a),!(rt in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function r(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=n,i.removeController=r,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new ne(this.component),this.destroyed=!1,this._updatePromise=new E,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Jt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=Pt in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=ce,c.accessorSetter[a]=ce,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),N(e),B.set(e.el,e),B.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,o=e.el===e;this._originalLifecycles={_connectedCallback:t||o?void 0:e.connectedCallback,_disconnectedCallback:t||o?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let s=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),r=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:n,hostUpdate:r,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=n,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=r,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Pt} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,F(),e.enableReadonly?.(),this._controllers.forEach(vo),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(yo),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,go)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&G(this.component,Pt,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Eo),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;return this._controllers.forEach(bo,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(_o,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new E,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Co),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=qt(e,mo)}}},Pt="autoDestroyDisabled",mo=1e3;var ce=e=>e;function vo(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function yo(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function go(e){"triggerLoad"in e?await e.triggerLoad():await W(e.hostLoad,e)}function Eo(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function bo(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function _o(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Co(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var wo=e=>xo(void 0,e);var $o=class extends Ot{constructor(e,t){super(e);let o=this.exports;try{N(this.component);let s=t(this.component,this),n=this.exports!==o;if(s instanceof Promise){n||this.setProvisionalExports(s);let r=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await r)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},xo=ae($o);var Ls=e=>(t={})=>wo((o,s)=>{let n=bt(o.el),r={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=o;s.onLifecycle(()=>Wt(o.el,()=>e("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};s.exports=h;let m=l.componentLabel;typeof m=="string"&&"label"in o&&o.label==null&&(o.label??(o.label=m)),c(i.messageOverrides)},t.name));function c(a){let l=s.exports,d=l._original??l,h=de(d,a);a&&(h._original=d),s.exports=h}return"messageOverrides"in i&&s.onLifecycle(()=>G(i,"messageOverrides",c)),t.blocking?(s.setProvisionalExports(r,!1),s.ready):r});function de(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,n])=>{typeof n=="object"?o[s]=de(e[s],n):o[s]=n??e[s]}),o}var Os=e=>Ao,le="arcgisPropertyChange";function Ao(...e){let t=O(),s=t[le];return t.manager.isLit&&(s=t.constructor.$createEvent(le,void 0,t)),t.manager.onLoad(()=>t.manager.onLifecycle(()=>e.map(n=>G(t,n,()=>s.emit({name:n}))))),s}var at=globalThis,ct=at.ShadowRoot&&(at.ShadyCSS===void 0||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,St=Symbol(),pe=new WeakMap,K=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==St)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(ct&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=pe.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&pe.set(o,t))}return t}toString(){return this.cssText}},ue=e=>new K(typeof e=="string"?e:e+"",void 0,St),Lo=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]);return new K(o,e,St)},Tt=(e,t)=>{if(ct)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),n=at.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=o.cssText,e.appendChild(s)}},lt=ct?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return ue(o)})(e):e;var kt=globalThis,ht=kt.trustedTypes,fe=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,Dt="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+x,Oo=`<${Rt}>`,R=document,Y=()=>R.createComment(""),Q=e=>e===null||typeof e!="object"&&typeof e!="function",Ut=Array.isArray,be=e=>Ut(e)||typeof e?.[Symbol.iterator]=="function",Nt=`[
\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,ve=/>/g,k=RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),ye=/'/g,ge=/"/g,_e=/^(?:script|style|textarea|title)$/i,It=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),ks=It(1),Ds=It(2),Rs=It(3),f=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Ee=new WeakMap,D=R.createTreeWalker(R,129);function Ce(e,t){if(!Ut(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fe!==void 0?fe.createHTML(t):t}var we=(e,t)=>{let o=e.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=J;for(let c=0;c<o;c++){let a=e[c],l,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===J?d[1]==="!--"?i=me:d[1]!==void 0?i=ve:d[2]!==void 0?(_e.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=k):d[3]!==void 0&&(i=k):i===k?d[0]===">"?(i=n??J,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?k:d[3]==='"'?ge:ye):i===ge||i===ye?i=k:i===me||i===ve?i=J:(i=k,n=void 0);let y=i===k&&e[c+1].startsWith("/>")?" ":"";r+=i===J?a+Oo:h>=0?(s.push(l),a.slice(0,h)+Dt+a.slice(h)+x+y):a+x+(h===-2?c:y)}return[Ce(e,r+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Z=class e{constructor({strings:t,_$litType$:o},s){let n;this.parts=[];let r=0,i=0,c=t.length-1,a=this.parts,[l,d]=we(t,o);if(this.el=e.createElement(l,s),D.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=D.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Dt)){let m=d[i++],y=n.getAttribute(h).split(x),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?pt:_[1]==="?"?ut:_[1]==="@"?ft:I}),n.removeAttribute(h)}else h.startsWith(x)&&(a.push({type:6,index:r}),n.removeAttribute(h));if(_e.test(n.tagName)){let h=n.textContent.split(x),m=h.length-1;if(m>0){n.textContent=ht?ht.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],Y()),D.nextNode(),a.push({type:2,index:++r});n.append(h[m],Y())}}}else if(n.nodeType===8)if(n.data===Rt)a.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(x,h+1))!==-1;)a.push({type:7,index:r}),h+=x.length-1}r++}}static createElement(t,o){let s=R.createElement("template");return s.innerHTML=t,s}};function U(e,t,o=e,s){if(t===f)return t;let n=s!==void 0?o.o?.[s]:o.l,r=Q(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(e),n._$AT(e,o,s)),s!==void 0?(o.o??=[])[s]=n:o.l=n),n!==void 0&&(t=U(e,n._$AS(e,t.values),n,s)),t}var dt=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:s}=this._$AD,n=(t?.creationScope??R).importNode(o,!0);D.currentNode=n;let r=D.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new z(r,r.nextSibling,this,t):a.type===1?l=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(l=new mt(r,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(r=D.nextNode(),i++)}return D.currentNode=R,n}p(t){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,o),o+=s.strings.length-2):s._$AI(t[o])),o++}},z=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,o,s,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=n,this.v=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=U(this,t,o),Q(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):be(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Z.createElement(Ce(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(o);else{let r=new dt(n,this),i=r.u(this.options);r.p(o),this.T(i),this._$AH=r}}_$AC(t){let o=Ee.get(t.strings);return o===void 0&&Ee.set(t.strings,o=new Z(t)),o}k(t){Ut(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,n=0;for(let r of t)n===o.length?o.push(s=new e(this.O(Y()),this.O(Y()),this,this.options)):s=o[n],s._$AI(r),n++;n<o.length&&(this._$AR(s&&s._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=o,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(t,o=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=U(this,t,o,0),i=!Q(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let c=t,a,l;for(t=r[0],a=0;a<r.length-1;a++)l=U(this,c[s+a],o,a),l===f&&(l=this._$AH[a]),i||=!Q(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!n&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},ut=class extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},ft=class extends I{constructor(t,o,s,n,r){super(t,o,s,n,r),this.type=5}_$AI(t,o=this){if((t=U(this,t,o,0)??u)===f)return;let s=this._$AH,n=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==u&&(s===u||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},mt=class{constructor(t,o,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}},$e={M:Dt,P:x,A:Rt,C:1,L:we,R:dt,D:be,V:U,I:z,H:I,N:ut,U:ft,B:pt,F:mt},Po=kt.litHtmlPolyfillSupport;Po?.(Z,z),(kt.litHtmlVersions??=[]).push("3.2.0");var xe=(e,t,o)=>{let s=o?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=o?.renderBefore??null;s._$litPart$=n=new z(t.insertBefore(Y(),r),r,void 0,o??{})}return n._$AI(e),n};var{is:So,defineProperty:To,getOwnPropertyDescriptor:No,getOwnPropertyNames:ko,getOwnPropertySymbols:Do,getPrototypeOf:Ro}=Object,yt=globalThis,Ae=yt.trustedTypes,Uo=Ae?Ae.emptyScript:"",Io=yt.reactiveElementPolyfillSupport,X=(e,t)=>e,vt={toAttribute(e,t){switch(t){case Boolean:e=e?Uo:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Mt=(e,t)=>!So(e,t),Le={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:Mt};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Le){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,o);n!==void 0&&To(this.prototype,t,n)}}static getPropertyDescriptor(t,o,s){let{get:n,set:r}=No(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return n?.call(this)},set(i){let c=n?.call(this);r.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Le}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;let t=Ro(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){let o=this.properties,s=[...ko(o),...Do(o)];for(let n of s)this.createProperty(n,o[n])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[s,n]of o)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let n=this._$Eu(o,s);n!==void 0&&this._$Eh.set(n,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let o=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)o.unshift(lt(n))}else t!==void 0&&o.push(lt(t));return o}static _$Eu(t,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Tt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,o,s){this._$AK(t,s)}_$EC(t,o){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:vt).toAttribute(o,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,o){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:vt;this._$Em=n,this[n]=i.fromAttribute(o,r.type),this._$Em=null}}requestUpdate(t,o,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??Mt)(this[t],o))return;this.P(t,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,o,s){this._$AL.has(t)||this._$AL.set(t,o),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s)r.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],r)}let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[X("elementProperties")]=new Map,A[X("finalized")]=new Map,Io?.({ReactiveElement:A}),(yt.reactiveElementVersions??=[]).push("2.0.4");var L=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=xe(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return f}};L._$litElement$=!0,L.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:L});var Mo=globalThis.litElementPolyfillSupport;Mo?.({LitElement:L});(globalThis.litElementVersions??=[]).push("4.1.0");var b={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},M=e=>(...t)=>({_$litDirective$:e,values:t}),P=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,s){this.t=t,this._$AM=o,this.i=s}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};var Se=M(class extends P{constructor(e){if(super(e),e.type!==b.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let o=e.element.classList;for(let s of this.st)s in t||(o.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return f}});var Te="important",Vo=" !"+Te,Ne=M(class extends P{constructor(e){if(super(e),e.type!==b.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,o)=>{let s=e[o];return s==null?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[t]){let{style:o}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(Vo);s.includes("-")||r?o.setProperty(s,r?n.slice(0,-11):n,r?Te:""):o[s]=n}}return f}});var{I:zn}=$e;var ke=e=>e.strings===void 0;var zo={},De=(e,t=zo)=>e._$AH=t;var Ho=M(class extends P{constructor(e){if(super(e),e.type!==b.PROPERTY&&e.type!==b.ATTRIBUTE&&e.type!==b.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ke(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===f||t===u)return t;let o=e.element,s=e.name;if(e.type===b.PROPERTY){if(t===o[s])return f}else if(e.type===b.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(s))return f}else if(e.type===b.ATTRIBUTE&&o.getAttribute(s)===t+"")return f;return De(e),t}});var Re=(e="",t={},o=O())=>{let s={emit:n=>{e===""&&F();let r=new CustomEvent(e,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return o.el.dispatchEvent(r),r}};return e===""&&it(void 0,n=>{e=n.key},s),s},tr=Re.bind(null,"");var qo=()=>{},Bo=class Ue extends L{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=he(this),this._postLoad=this.constructor.lazy?._postLoad??new E,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new E,this._enableUpdating=this.enableUpdating,this.enableUpdating=qo;let t=Ue.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let o=super.finalizeStyles(t),s=this.shadowRootOptions===Ct;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(t,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,n=Array.isArray(o)?o[1]:void 0;super.createProperty(t,{attribute:s&1&&typeof t=="string"?et(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...n})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let t=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,r=t??(s===Ct?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:r}),t)return L.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return r}async _load(){let t=this.el._ancestorLoad??_t(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,o,s){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,o,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(o,r,n),()=>t.removeEventListener(o,r,n)))}async componentOnReady(){return await this._postLoaded.promise,this}};Bo.$createEvent=Re;function Ie(e){let t,o=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...e,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:o,customElement(n,r){r.runtime=s,r.tagName=n,customElements.get(n)||customElements.define(n,r)}};return o(e.defaultAssetPath),s}var dr=e=>typeof e=="object"&&e!=null?Se(e):e,pr=e=>typeof e=="object"&&e!=null?Ne(e):e;var fr=u;var Fo=Ie({defaultAssetPath:"https://js.arcgis.com/map-components/4.32/",hydratedAttribute:"hydrated"}),{customElement:yr,getAssetPath:gr,setAssetPath:Er}=Fo;export{Go as a,Ko as b,et as c,qt as d,Bt as e,Xe as f,Ct as g,O as h,oe as i,G as j,re as k,it as l,ho as m,po as n,ae as o,Ls as p,Os as q,Lo as r,ks as s,Ds as t,Rs as u,u as v,b as w,M as x,P as y,ke as z,tr as A,Bo as B,dr as C,pr as D,fr as E,Fo as F,yr as G,gr as H};