@arcgis/coding-components 4.32.0-next.20 → 4.32.0-next.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/arcgis-coding-components/44U7RRHZ.js +8 -0
  2. package/dist/arcgis-coding-components/{MWSXWI6V.js → 4HBG6Q7J.js} +2 -2
  3. package/dist/arcgis-coding-components/{QFPDYAX7.js → 4J325S74.js} +1 -1
  4. package/dist/arcgis-coding-components/{BNQ62FOY.js → 74WU6RWX.js} +2 -2
  5. package/dist/arcgis-coding-components/{DVMS56KR.js → 7HRJ4SA5.js} +1 -1
  6. package/dist/arcgis-coding-components/{AK2LMUK6.js → ACWJB4FM.js} +2 -2
  7. package/dist/arcgis-coding-components/{UVQJTGEJ.js → B3U6IGMB.js} +3 -3
  8. package/dist/arcgis-coding-components/{SIGOFELP.js → D5JULUIS.js} +2 -2
  9. package/dist/arcgis-coding-components/{WMYLC7HS.js → EKG7AFRU.js} +2 -2
  10. package/dist/arcgis-coding-components/{HABFLPBO.js → FK3LN2YT.js} +1 -1
  11. package/dist/arcgis-coding-components/{NOTRVXDI.js → GF4X42IX.js} +2 -2
  12. package/dist/arcgis-coding-components/{OUHBIBY5.js → HISHIXXM.js} +2 -2
  13. package/dist/arcgis-coding-components/{36JEHH4A.js → ICM7JTTB.js} +2 -2
  14. package/dist/arcgis-coding-components/{BH4K3ZKY.js → ITN6VW2H.js} +2 -2
  15. package/dist/arcgis-coding-components/{DII22PBP.js → J7YK7DPI.js} +2 -2
  16. package/dist/arcgis-coding-components/{FBVILG4N.js → JMHUMOUF.js} +2 -2
  17. package/dist/arcgis-coding-components/{EIKSQV4C.js → JTCBPKTU.js} +2 -2
  18. package/dist/arcgis-coding-components/{3NUKSKIZ.js → K4XJ4DTX.js} +2 -2
  19. package/dist/arcgis-coding-components/{MMIBON47.js → MSGF7MCQ.js} +2 -2
  20. package/dist/arcgis-coding-components/{HWVAAYTK.js → MYAHFPCG.js} +2 -2
  21. package/dist/arcgis-coding-components/{LENZEXEK.js → ND6DKC5E.js} +2 -2
  22. package/dist/arcgis-coding-components/{ABZJIWFU.js → NHQIE3WK.js} +2 -2
  23. package/dist/arcgis-coding-components/{B4S63FEP.js → O4FNR3QE.js} +2 -2
  24. package/dist/arcgis-coding-components/{6WHRJOXE.js → O7CLKATL.js} +2 -2
  25. package/dist/arcgis-coding-components/{HCWJTN7A.js → OTLAFL3V.js} +2 -2
  26. package/dist/arcgis-coding-components/{XTSXPQ5F.js → PORKE2QR.js} +2 -2
  27. package/dist/arcgis-coding-components/{WL3NXYV6.js → REF4BAX2.js} +2 -2
  28. package/dist/arcgis-coding-components/{R4TAM5AN.js → RWPDIXXC.js} +2 -2
  29. package/dist/arcgis-coding-components/{QYRDZIG3.js → SV2VCHKD.js} +2 -2
  30. package/dist/arcgis-coding-components/{MQ6U2RNZ.js → U2CNRKSG.js} +2 -2
  31. package/dist/arcgis-coding-components/{VXLQFTTG.js → W6ZEUCLN.js} +2 -2
  32. package/dist/arcgis-coding-components/{XTXWS6UL.js → WNYY4JBL.js} +2 -2
  33. package/dist/arcgis-coding-components/{3ONBAVZ5.js → XQQGJWY6.js} +2 -2
  34. package/dist/arcgis-coding-components/{5FEA4ISZ.js → YN65EKVW.js} +2 -2
  35. package/dist/arcgis-coding-components/{OGFF5RBB.js → YZC5GZEI.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +32 -32
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-editor/index.d.ts +4 -4
  52. package/dist/components/arcgis-arcade-editor/index.js +4 -4
  53. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  54. package/dist/components/arcgis-arcade-results/index.d.ts +9 -9
  55. package/dist/components/arcgis-arcade-results/index.js +9 -9
  56. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  57. package/dist/components/arcgis-arcade-suggestions/index.d.ts +9 -9
  58. package/dist/components/arcgis-arcade-suggestions/index.js +9 -9
  59. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  60. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  61. package/dist/components/arcgis-editor-variables/index.d.ts +9 -9
  62. package/dist/components/arcgis-editor-variables/index.js +9 -9
  63. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  64. package/dist/components/arcgis-language-api-panel/index.d.ts +10 -10
  65. package/dist/components/arcgis-language-api-panel/index.js +10 -10
  66. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  67. package/dist/components/arcgis-sql-expression-editor/index.d.ts +3 -3
  68. package/dist/components/arcgis-sql-expression-editor/index.js +3 -3
  69. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  70. package/dist/components/arcgis-sql-expression-fields/index.d.ts +6 -6
  71. package/dist/components/arcgis-sql-expression-fields/index.js +6 -6
  72. package/dist/docs/api.json +2 -2
  73. package/dist/docs/docs.json +2 -2
  74. package/dist/docs/web-types.json +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/loader.js +1 -1
  77. package/dist/types/stencil.d.ts +11 -5
  78. package/package.json +7 -7
  79. package/dist/arcgis-coding-components/Y4Y2XSOA.js +0 -8
@@ -1,8 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.20
5
- */
6
- import{a as _,e as p,f as H,j as Nt,l as kt,q as X,r as Ut,t as Rt}from"./QFPDYAX7.js";function Mt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,r])=>r.noAccessor?void 0:[s,[(r.readOnly?2048:0)|(r.state?32:16)]]).filter(Rt))}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(([r,[n]])=>(n&63)!==0))}}function jt(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 Vt=(e,t)=>e.manager.internals.members?.[t]?.[0];var et=Symbol.for("controller");var zt=e=>typeof e=="object"&&e!==null&&(et in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var z;function x(e){z!==e&&(z=e,queueMicrotask(()=>{z===e&&(z=void 0)}))}function G(e){return z}var S=[];function ot(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 Wt(){return S}var j;function xe(e){j!==e&&(j=e,queueMicrotask(()=>{j===e&&(j=void 0)}))}function Te(){let e=j;return j=void 0,e}var De=async(e,t)=>{let o=bt(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(r=>t(r,s))}return o.exports},Ne=async e=>{let t=bt(e);return await t.ready,t},bt=e=>{let t=Te();if(t!==void 0)return t;let s=G().manager.internals.resolveExports(e);if(s!==void 0)return s;if(zt(e))return e},W={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,Bt;Bt=et;var Et=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new _,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Bt]=!0,this.ready=this._ready.promise,this._exports=Ht(this),this._exportWatchers=new Set;let t=e??G(new.target.name);this.component=t,this.component.addController(this),ot(this),this.component.manager===void 0||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?Ht(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 x(this.component),De}get useRef(){return x(this.component),Ne}get useRefSync(){return x(this.component),bt}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 H(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(H)),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(It,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(It,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){x(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 It(e){p(e,void 0,this)}var Gt=Et;function Ht(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,r){if(!(ke.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,r)},set:(o,s,r,n)=>Reflect.set(o,s,r,n)});return t}var ke=new Set(["exports","_exports"]);function st(e,t,o){let s=Object.keys(e),r=s.length;P===void 0&&queueMicrotask(F),P??(P=new Map);let n=P.get(e);return n===void 0&&(n={callbacks:[],keyCount:r},P.set(e,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(s)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[r];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var P=void 0;function F(){Array.from(P?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),P=void 0}function rt(e,t,o){var s;let r=t,n=e.manager.internals;(s=n.allWatchers)[r]??(s[r]=[]);let i=n.allWatchers[r],c=o,a=(l,h,d)=>p(c,null,l,h,d);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var Ft=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 r;s&2048&&((r=t.setters)[o]??(r[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(W.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,r=Vt(s,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=tt in i,l=tt in c;if(a&&l)return;let h=!a,d=!l,m=h?function(){let v=i.call(this),E=B.get(this);if(W.getter||E===void 0)return v;let M=E.manager.internals;v=M.accessorGetter[t](v,t);let g=M.getters[t]??vt;for(let C=0;C<g.length;C++)v=g[C](v,t);return v}:i,y=d?function(v){let E=i.call(this),M=B.get(this);if(M===void 0){c.call(this,v);return}let g=M.manager.isLit?v??void 0:jt(v,r),C=M.manager.internals;if(g===E)c.call(this,g);else{let Dt=W.setter?vt:C.setters[t]??vt;for(let I=0;I<Dt.length&&(g=Dt[I](g,E,t),g!==E);I++);g=C.accessorSetter[t](g,E,t),c.call(this,g),g!==E&&C.enabledWatchers[t]?.forEach(I=>I(g,E,t))}C.keyTrackers.length>0&&C?.firePropTrackers(t,v)}:c;h&&(m[tt]=!0),d&&(y[tt]=!0),Object.defineProperty(e,t,{...n,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)}},vt=[],tt=Symbol(),_t=Symbol();function Kt(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((r,n)=>p(t,void 0,o===n?r:void 0)),o}function qt(e,t,o){let s=Array.isArray(e)?e:[e],r=s.length+1,n=c=>{r-=1,c!==void 0&&(r=Math.min(r,0)),r===0&&t(c)};s.forEach(c=>st(c,a=>n(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&&Kt(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function Jt(e){W.readOnly=!0;try{return e()}finally{W.readOnly=!1}}var Yt=e=>(...t)=>{let o=Wt(),s=new e(...t),r=s.exports;ot(o.at(-1));let n=s.component.manager.internals;n.markExports(s,r),s.watchExports(c=>n.markExports(s,c)),xe(s);let i=[s.component,...o].reverse();return qt(i,c=>c===void 0?void 0:Ue(s,c,r),r)};function Ue(e,{host:t,key:o,isReactive:s},r){let n=t,i=n[o]!==e.exports,c=n[o]!==r,a=r!==e.exports;if(i&&!c&&a&&(n[o]=e.exports),t===e.component){if(s){let h=e.component.manager.internals;c&&h.markExports(e,n[o]),rt(e.component,o,d=>{d!==e.exports&&h.markExports(e,d)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(n[o]===e.exports)return;let h=e.component.manager;h.internals.setters[o]?.includes(h.internals.readonlySetter)?Jt(()=>{n[o]=e.exports}):n[o]=e.exports})}var Zt=(e,t)=>new Re(e,t),Re=class extends Gt{constructor(e,t){let o="addController"in e,s=new Set;function r(a){s.add(a),!(et in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=r,i.removeController=n,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new Ft(this.component),this.destroyed=!1,this._updatePromise=new _,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Mt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=Ct in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=Qt,c.accessorSetter[a]=Qt,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),ot(void 0),x(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),r=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:r,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=r,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,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 ${Ct} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,F(),e.enableReadonly?.(),this._controllers.forEach(je),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Ve),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ie)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&rt(this.component,Ct,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(He),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(ze,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(We,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new _,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(Be),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=Ut(e,Me)}}},Ct="autoDestroyDisabled",Me=1e3;var Qt=e=>e;function je(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function Ve(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function Ie(e){"triggerLoad"in e?await e.triggerLoad():await H(e.hostLoad,e)}function He(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function ze(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function We(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Be(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var Xt=e=>Fe(void 0,e);var Ge=class extends Et{constructor(e,t){super(e);let o=this.exports;try{x(this.component);let s=t(this.component,this),r=this.exports!==o;if(s instanceof Promise){r||this.setProvisionalExports(s);let n=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!r||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},Fe=Yt(Ge);var Io=Xt;var zo=(e,t)=>(o={})=>Xt((s,r)=>{let n=Nt(s.el),i={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},c=s;queueMicrotask(()=>r.onLifecycle(()=>kt(s.el,e("./assets"),({t9nLocale:l,t9nStrings:h,lang:d})=>{let m={...h,_lang:d,_t9nLocale:l,_loading:!1};r.exports=m;let y=h.componentLabel??h.widgetLabel;typeof y=="string"&&"label"in s&&s.label==null&&(s.label??(s.label=y)),a(c.messageOverrides)},o.name,t)));function a(l){let h=r.exports,d=h._original??h,m=te(d,l);l&&(m._original=d),r.exports=m}return"messageOverrides"in c&&r.onLifecycle(()=>rt(c,"messageOverrides",a)),o.blocking?(r.setProvisionalExports(i,!1),r.ready):i});function te(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,r])=>{typeof r=="object"?o[s]=te(e[s],r):o[s]=r??e[s]}),o}var nt=globalThis,it=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),ee=new WeakMap,K=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==$t)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(it&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=ee.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ee.set(o,t))}return t}toString(){return this.cssText}},oe=e=>new K(typeof e=="string"?e:e+"",void 0,$t),Ke=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,r,n)=>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.")})(r)+e[n+1],e[0]);return new K(o,e,$t)},At=(e,t)=>{if(it)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),r=nt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=o.cssText,e.appendChild(s)}},at=it?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return oe(o)})(e):e;var Ot=globalThis,ct=Ot.trustedTypes,se=ct?ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,Lt="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+$,qe=`<${St}>`,N=document,J=()=>N.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Pt=Array.isArray,le=e=>Pt(e)||typeof e?.[Symbol.iterator]=="function",wt=`[
7
- \f\r]`,q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,ne=/>/g,T=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
8
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ie=/'/g,ae=/"/g,he=/^(?:script|style|textarea|title)$/i,xt=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Ko=xt(1),qo=xt(2),Jo=xt(3),f=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ce=new WeakMap,D=N.createTreeWalker(N,129);function de(e,t){if(!Pt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}var pe=(e,t)=>{let o=e.length-1,s=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=q;for(let c=0;c<o;c++){let a=e[c],l,h,d=-1,m=0;for(;m<a.length&&(i.lastIndex=m,h=i.exec(a),h!==null);)m=i.lastIndex,i===q?h[1]==="!--"?i=re:h[1]!==void 0?i=ne:h[2]!==void 0?(he.test(h[2])&&(r=RegExp("</"+h[2],"g")),i=T):h[3]!==void 0&&(i=T):i===T?h[0]===">"?(i=r??q,d=-1):h[1]===void 0?d=-2:(d=i.lastIndex-h[2].length,l=h[1],i=h[3]===void 0?T:h[3]==='"'?ae:ie):i===ae||i===ie?i=T:i===re||i===ne?i=q:(i=T,r=void 0);let y=i===T&&e[c+1].startsWith("/>")?" ":"";n+=i===q?a+qe:d>=0?(s.push(l),a.slice(0,d)+Lt+a.slice(d)+$+y):a+$+(d===-2?c:y)}return[de(e,n+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=class e{constructor({strings:t,_$litType$:o},s){let r;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,h]=pe(t,o);if(this.el=e.createElement(l,s),D.currentNode=this.el.content,o===2||o===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=D.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let d of r.getAttributeNames())if(d.endsWith(Lt)){let m=h[i++],y=r.getAttribute(d).split($),L=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:L[2],strings:y,ctor:L[1]==="."?ht:L[1]==="?"?dt:L[1]==="@"?pt:U}),r.removeAttribute(d)}else d.startsWith($)&&(a.push({type:6,index:n}),r.removeAttribute(d));if(he.test(r.tagName)){let d=r.textContent.split($),m=d.length-1;if(m>0){r.textContent=ct?ct.emptyScript:"";for(let y=0;y<m;y++)r.append(d[y],J()),D.nextNode(),a.push({type:2,index:++n});r.append(d[m],J())}}}else if(r.nodeType===8)if(r.data===St)a.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf($,d+1))!==-1;)a.push({type:7,index:n}),d+=$.length-1}n++}}static createElement(t,o){let s=N.createElement("template");return s.innerHTML=t,s}};function k(e,t,o=e,s){if(t===f)return t;let r=s!==void 0?o.o?.[s]:o.l,n=Y(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,o,s)),s!==void 0?(o.o??=[])[s]=r:o.l=r),r!==void 0&&(t=k(e,r._$AS(e,t.values),r,s)),t}var lt=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,r=(t?.creationScope??N).importNode(o,!0);D.currentNode=r;let n=D.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new V(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ut(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=D.nextNode(),i++)}return D.currentNode=N,r}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++}},V=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,o,s,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=r,this.v=r?.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=k(this,t,o),Y(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):le(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&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(de(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(o);else{let n=new lt(r,this),i=n.u(this.options);n.p(o),this.T(i),this._$AH=n}}_$AC(t){let o=ce.get(t.strings);return o===void 0&&ce.set(t.strings,o=new Q(t)),o}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,r=0;for(let n of t)r===o.length?o.push(s=new e(this.O(J()),this.O(J()),this,this.options)):s=o[r],s._$AI(n),r++;r<o.length&&(this._$AR(s&&s._$AB.nextSibling,r),o.length=r)}_$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))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=n,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,r){let n=this.strings,i=!1;if(n===void 0)t=k(this,t,o,0),i=!Y(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=k(this,c[s+a],o,a),l===f&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},dt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},pt=class extends U{constructor(t,o,s,r,n){super(t,o,s,r,n),this.type=5}_$AI(t,o=this){if((t=k(this,t,o,0)??u)===f)return;let s=this._$AH,r=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==u&&(s===u||r);r&&this.element.removeEventListener(this.name,this,s),n&&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)}},ut=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){k(this,t)}},ue={M:Lt,P:$,A:St,C:1,L:pe,R:lt,D:le,V:k,I:V,H:U,N:dt,U:pt,B:ht,F:ut},Je=Ot.litHtmlPolyfillSupport;Je?.(Q,V),(Ot.litHtmlVersions??=[]).push("3.2.0");var me=(e,t,o)=>{let s=o?.renderBefore??t,r=s._$litPart$;if(r===void 0){let n=o?.renderBefore??null;s._$litPart$=r=new V(t.insertBefore(J(),n),n,void 0,o??{})}return r._$AI(e),r};var{is:Ye,defineProperty:Qe,getOwnPropertyDescriptor:Ze,getOwnPropertyNames:Xe,getOwnPropertySymbols:to,getPrototypeOf:eo}=Object,ft=globalThis,fe=ft.trustedTypes,oo=fe?fe.emptyScript:"",so=ft.reactiveElementPolyfillSupport,Z=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?oo: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}},Tt=(e,t)=>!Ye(e,t),ye={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Tt};Symbol.metadata??=Symbol("metadata"),ft.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=ye){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,o);r!==void 0&&Qe(this.prototype,t,r)}}static getPropertyDescriptor(t,o,s){let{get:r,set:n}=Ze(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return r?.call(this)},set(i){let c=r?.call(this);n.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ye}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=eo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let o=this.properties,s=[...Xe(o),...to(o)];for(let r of s)this.createProperty(r,o[r])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[s,r]of o)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let r=this._$Eu(o,s);r!==void 0&&this._$Eh.set(r,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 r of s)o.unshift(at(r))}else t!==void 0&&o.push(at(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 At(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),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:mt).toAttribute(o,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,o){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=s.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:mt;this._$Em=r,this[r]=i.fromAttribute(o,n.type),this._$Em=null}}requestUpdate(t,o,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??Tt)(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[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,n]of s)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}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[Z("elementProperties")]=new Map,A[Z("finalized")]=new Map,so?.({ReactiveElement:A}),(ft.reactiveElementVersions??=[]).push("2.0.4");var w=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=me(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return f}};w._$litElement$=!0,w.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:w});var ro=globalThis.litElementPolyfillSupport;ro?.({LitElement:w});(globalThis.litElementVersions??=[]).push("4.1.0");var ge=";",yt=",",ve=":";var b={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},R=e=>(...t)=>({_$litDirective$:e,values:t}),O=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 _e=R(class extends O{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 r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return f}});var be="important",io=" !"+be,ao=R(class extends O{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 r=t[s];if(r!=null){this.ft.add(s);let n=typeof r=="string"&&r.endsWith(io);s.includes("-")||n?o.setProperty(s,n?r.slice(0,-11):r,n?be:""):o[s]=r}}return f}});var{I:co}=ue;var Ce=e=>e.strings===void 0,Ee=()=>document.createComment(""),Ss=(e,t,o)=>{let s=e._$AA.parentNode,r=t===void 0?e._$AB:t._$AA;if(o===void 0){let n=s.insertBefore(Ee(),r),i=s.insertBefore(Ee(),r);o=new co(n,i,e,e.options)}else{let n=o._$AB.nextSibling,i=o._$AM,c=i!==e;if(c){let a;o._$AQ?.(e),o._$AM=e,o._$AP!==void 0&&(a=e._$AU)!==i._$AU&&o._$AP(a)}if(n!==r||c){let a=o._$AA;for(;a!==n;){let l=a.nextSibling;s.insertBefore(a,r),a=l}}}return o},Ps=(e,t,o=e)=>(e._$AI(t,o),e),lo={},$e=(e,t=lo)=>e._$AH=t,xs=e=>e._$AH,Ts=e=>{e._$AP?.(!1,!0);let t=e._$AA,o=e._$AB.nextSibling;for(;t!==o;){let s=t.nextSibling;t.remove(),t=s}};var ho=R(class extends O{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(!Ce(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 $e(e),t}});var we=(e="",t={},o=G())=>{let s={emit:r=>{e===""&&F();let n=new CustomEvent(e,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return o.el.dispatchEvent(n),n}};return e===""&&st(o,r=>{e=r},s),s},Hs=we.bind(null,"");function Oe(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 Ae={},Gs=(e,t)=>function(s,r){if(!globalThis.customElements)return;let i=(r??s??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(uo)};function uo([e,[t,o=""]]){if(customElements.get(e))return;let[s,r,n]=o.split(ge),i=s?s?.split(yt).map(Le):void 0,c=i?.map(([l])=>l),a=class extends fo{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=r?r?.split(yt):void 0}static{this._syncMethods=n?.split(yt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var gt=Object.defineProperty;function Le(e){let t=e.split(ve);return t.length===1?[t[0],X(t[0])]:t}var mo=globalThis.HTMLElement??Le,fo=class extends mo{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new _,this._postLoaded=new _,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){gt(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){gt(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){gt(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=Oe(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,r=Object.values(e).find(l=>l.tagName===o),n=`${o}--lazy`;!t._LitConstructor&&(t._LitConstructor=r,r.prototype.removeAttribute=function(l){HTMLElement.prototype.removeAttribute.call(this.el,l)},r.prototype.setAttribute=function(l,h){HTMLElement.prototype.setAttribute.call(this.el,l,h)},gt(r.prototype,"isConnected",{get(){return this.el.isConnected}}),customElements.define(n,r)),r.lazy=this;let c=document.createElement(n);r.lazy=void 0,this._litElement=c,this._store=c,this._pendingAttributes.forEach(l=>{let h=this.getAttribute(l);c.attributeChangedCallback(l,null,h)}),Object.entries(s).forEach(yo,c);let a=this.isConnected;(a||this._ancestorLoad)&&(c.connectedCallback?.(),a||c.disconnectedCallback())}};function yo([e,t]){this[e]=t}var go=()=>{},vo=class Se extends w{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=Zt(this),this._postLoad=this.constructor.lazy?._postLoad??new _,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new _,this._enableUpdating=this.enableUpdating,this.enableUpdating=go;let t=Se.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let o=super.finalizeStyles(t),s=this.shadowRootOptions===Ae;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,r=Array.isArray(o)?o[1]:void 0;super.createProperty(t,{attribute:s&1&&typeof t=="string"?X(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...r})}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,n=t??(s===Ae?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:n}),t)return w.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return n}async _load(){let t=this.el._ancestorLoad??Oe(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 r=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,o,s,r){let n=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(o,n,r),()=>t.removeEventListener(o,n,r)))}async componentOnReady(){return await this._postLoaded.promise,this}};vo.$createEvent=we;function Pe(e){let t,o=r=>{t=new URL(r,globalThis.location?.href).href},s={...e,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:o,customElement(r,n){n.runtime=s,n.tagName=r,customElements.get(r)||customElements.define(r,n)}};return o(e.defaultAssetPath),s}var Xs=e=>typeof e=="object"&&e!=null?_e(e):e;var er=u;var _o=Pe({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:ir,getAssetPath:ar,setAssetPath:cr}=_o;export{Io as a,zo as b,Ke as c,Ko as d,f as e,u as f,b as g,R as h,O as i,Ce as j,Ss as k,Ps as l,$e as m,xs as n,Ts as o,Hs as p,Ae as q,Gs as r,vo as s,Xs as t,er as u,_o as v,ir as w,ar as x};