@uxland/primary-shell 1.0.6 → 1.0.7

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*
1
+ /*
2
2
  * @license
3
3
  * BSD License
4
4
  *
@@ -14,7 +14,755 @@
14
14
  *
15
15
  * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
16
16
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
- */const Mr=()=>{};function f(r){return r!=null&&typeof r=="object"&&r["@@functional/placeholder"]===!0}function $(r){return function t(e){return arguments.length===0||f(e)?t:r.apply(this,arguments)}}function g(r){return function t(e,i){switch(arguments.length){case 0:return t;case 1:return f(e)?t:$(function(s){return r(e,s)});default:return f(e)&&f(i)?t:f(e)?$(function(s){return r(s,i)}):f(i)?$(function(s){return r(e,s)}):r(e,i)}}}function Ur(r){var t=Object.prototype.toString.call(r);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}function me(r){for(var t=[],e;!(e=r.next()).done;)t.push(e.value);return t}function ye(r,t,e){for(var i=0,s=e.length;i<s;){if(r(t,e[i]))return!0;i+=1}return!1}function Hr(r){var t=String(r).match(/^function (\w*)/);return t==null?"":t[1]}function $t(r,t){return Object.prototype.hasOwnProperty.call(t,r)}function jr(r,t){return r===t?r!==0||1/r===1/t:r!==r&&t!==t}const Tt=typeof Object.is=="function"?Object.is:jr;var $e=Object.prototype.toString,Lr=function(){return $e.call(arguments)==="[object Arguments]"?function(t){return $e.call(t)==="[object Arguments]"}:function(t){return $t("callee",t)}}(),Vr=!{toString:null}.propertyIsEnumerable("toString"),_e=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],be=function(){return arguments.propertyIsEnumerable("length")}(),Dr=function(t,e){for(var i=0;i<t.length;){if(t[i]===e)return!0;i+=1}return!1},k=$(typeof Object.keys=="function"&&!be?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,i,s=[],n=be&&Lr(t);for(e in t)$t(e,t)&&(!n||e!=="length")&&(s[s.length]=e);if(Vr)for(i=_e.length-1;i>=0;)e=_e[i],$t(e,t)&&!Dr(s,e)&&(s[s.length]=e),i-=1;return s}),we=$(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function Ae(r,t,e,i){var s=me(r),n=me(t);function o(a,c){return ee(a,c,e.slice(),i.slice())}return!ye(function(a,c){return!ye(o,c,a)},n,s)}function ee(r,t,e,i){if(Tt(r,t))return!0;var s=we(r);if(s!==we(t)||r==null||t==null)return!1;if(typeof r["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](r);if(typeof r.equals=="function"||typeof t.equals=="function")return typeof r.equals=="function"&&r.equals(t)&&typeof t.equals=="function"&&t.equals(r);switch(s){case"Arguments":case"Array":case"Object":if(typeof r.constructor=="function"&&Hr(r.constructor)==="Promise")return r===t;break;case"Boolean":case"Number":case"String":if(!(typeof r==typeof t&&Tt(r.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Tt(r.valueOf(),t.valueOf()))return!1;break;case"Error":return r.name===t.name&&r.message===t.message;case"RegExp":if(!(r.source===t.source&&r.global===t.global&&r.ignoreCase===t.ignoreCase&&r.multiline===t.multiline&&r.sticky===t.sticky&&r.unicode===t.unicode))return!1;break}for(var n=e.length-1;n>=0;){if(e[n]===r)return i[n]===t;n-=1}switch(s){case"Map":return r.size!==t.size?!1:Ae(r.entries(),t.entries(),e.concat([r]),i.concat([t]));case"Set":return r.size!==t.size?!1:Ae(r.values(),t.values(),e.concat([r]),i.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=k(r);if(o.length!==k(t).length)return!1;var a=e.concat([r]),c=i.concat([t]);for(n=o.length-1;n>=0;){var l=o[n];if(!($t(l,t)&&ee(t[l],r[l],a,c)))return!1;n-=1}return!0}var zr=g(function(t,e){return ee(t,e,[],[])});function Br(r,t,e){var i,s;if(typeof r.indexOf=="function")switch(typeof t){case"number":if(t===0){for(i=1/t;e<r.length;){if(s=r[e],s===0&&1/s===i)return e;e+=1}return-1}else if(t!==t){for(;e<r.length;){if(s=r[e],typeof s=="number"&&s!==s)return e;e+=1}return-1}return r.indexOf(t,e);case"string":case"boolean":case"function":case"undefined":return r.indexOf(t,e);case"object":if(t===null)return r.indexOf(t,e)}for(;e<r.length;){if(zr(r[e],t))return e;e+=1}return-1}function Fr(r,t){return Br(t,r,0)>=0}function ft(r,t){for(var e=0,i=t.length,s=Array(i);e<i;)s[e]=r(t[e]),e+=1;return s}function Ot(r){var t=r.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var X=function(t){return(t<10?"0":"")+t},qr=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+X(t.getUTCMonth()+1)+"-"+X(t.getUTCDate())+"T"+X(t.getUTCHours())+":"+X(t.getUTCMinutes())+":"+X(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Wr(r){return function(){return!r.apply(this,arguments)}}const re=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Gr(r){return r!=null&&typeof r["@@transducer/step"]=="function"}function nr(r,t,e){return function(){if(arguments.length===0)return e();var i=Array.prototype.slice.call(arguments,0),s=i.pop();if(!re(s)){for(var n=0;n<r.length;){if(typeof s[r[n]]=="function")return s[r[n]].apply(s,i);n+=1}if(Gr(s)){var o=t.apply(null,i);return o(s)}}return e.apply(this,arguments)}}function Kr(r,t){for(var e=0,i=t.length,s=[];e<i;)r(t[e])&&(s[s.length]=t[e]),e+=1;return s}function Yr(r){return Object.prototype.toString.call(r)==="[object Object]"}function or(r){return Object.prototype.toString.call(r)==="[object String]"}var Xr=$(function(t){return re(t)?!0:!t||typeof t!="object"||or(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Zr=function(){function r(t){this.f=t}return r.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},r.prototype["@@transducer/result"]=function(t){return t},r.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},r}();function Qr(r){return new Zr(r)}function at(r,t){switch(r){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,i){return t.apply(this,arguments)};case 3:return function(e,i,s){return t.apply(this,arguments)};case 4:return function(e,i,s,n){return t.apply(this,arguments)};case 5:return function(e,i,s,n,o){return t.apply(this,arguments)};case 6:return function(e,i,s,n,o,a){return t.apply(this,arguments)};case 7:return function(e,i,s,n,o,a,c){return t.apply(this,arguments)};case 8:return function(e,i,s,n,o,a,c,l){return t.apply(this,arguments)};case 9:return function(e,i,s,n,o,a,c,l,u){return t.apply(this,arguments)};case 10:return function(e,i,s,n,o,a,c,l,u,h){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var B=g(function(t,e){return at(t.length,function(){return t.apply(e,arguments)})});function Jr(r,t,e){for(var i=0,s=e.length;i<s;){if(t=r["@@transducer/step"](t,e[i]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i+=1}return r["@@transducer/result"](t)}function Ee(r,t,e){for(var i=e.next();!i.done;){if(t=r["@@transducer/step"](t,i.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i=e.next()}return r["@@transducer/result"](t)}function Se(r,t,e,i){return r["@@transducer/result"](e[i](B(r["@@transducer/step"],r),t))}var Ce=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ie(r,t,e){if(typeof r=="function"&&(r=Qr(r)),Xr(e))return Jr(r,t,e);if(typeof e["fantasy-land/reduce"]=="function")return Se(r,t,e,"fantasy-land/reduce");if(e[Ce]!=null)return Ee(r,t,e[Ce]());if(typeof e.next=="function")return Ee(r,t,e);if(typeof e.reduce=="function")return Se(r,t,e,"reduce");throw new TypeError("reduce: list must be array or iterable")}const _t={init:function(){return this.xf["@@transducer/init"]()},result:function(r){return this.xf["@@transducer/result"](r)}};var ti=function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=_t.init,r.prototype["@@transducer/result"]=_t.result,r.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},r}(),ei=g(function(t,e){return new ti(t,e)}),ri=g(nr(["filter"],ei,function(r,t){return Yr(t)?ie(function(e,i){return r(t[i])&&(e[i]=t[i]),e},{},k(t)):Kr(r,t)})),ar=g(function(t,e){return ri(Wr(t),e)});function cr(r,t){var e=function(o){var a=t.concat([r]);return Fr(o,a)?"<Circular>":cr(o,a)},i=function(n,o){return ft(function(a){return Ot(a)+": "+e(n[a])},o.slice().sort())};switch(Object.prototype.toString.call(r)){case"[object Arguments]":return"(function() { return arguments; }("+ft(e,r).join(", ")+"))";case"[object Array]":return"["+ft(e,r).concat(i(r,ar(function(n){return/^\d+$/.test(n)},k(r)))).join(", ")+"]";case"[object Boolean]":return typeof r=="object"?"new Boolean("+e(r.valueOf())+")":r.toString();case"[object Date]":return"new Date("+(isNaN(r.valueOf())?e(NaN):Ot(qr(r)))+")";case"[object Null]":return"null";case"[object Number]":return typeof r=="object"?"new Number("+e(r.valueOf())+")":1/r===-1/0?"-0":r.toString(10);case"[object String]":return typeof r=="object"?"new String("+e(r.valueOf())+")":Ot(r);case"[object Undefined]":return"undefined";default:if(typeof r.toString=="function"){var s=r.toString();if(s!=="[object Object]")return s}return"{"+i(r,k(r)).join(", ")+"}"}}function ii(r,t){if(t==null||!Ur(t.then))throw new TypeError("`"+r+"` expected a Promise, received "+cr(t,[]))}var F=g(function(t,e){return ii("andThen",e),e.then(t)}),si=function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=_t.init,r.prototype["@@transducer/result"]=_t.result,r.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},r}(),ni=g(function(t,e){return new si(t,e)});function lr(r,t,e){return function(){for(var i=[],s=0,n=r,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!f(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),i[o]=a,f(a)||(n-=1),o+=1}return n<=0?e.apply(this,i):at(n,lr(r,i,e))}}var oi=g(function(t,e){return t===1?$(e):at(t,lr(t,[],e))}),ct=g(nr(["fantasy-land/map","map"],ni,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return oi(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return ie(function(i,s){return i[s]=t(e[s]),i},{},k(e));default:return ft(t,e)}}));function ai(r,t){return function(){return t.call(this,r.apply(this,arguments))}}function hr(r){return function t(e,i,s){switch(arguments.length){case 0:return t;case 1:return f(e)?t:g(function(n,o){return r(e,n,o)});case 2:return f(e)&&f(i)?t:f(e)?g(function(n,o){return r(n,i,o)}):f(i)?g(function(n,o){return r(e,n,o)}):$(function(n){return r(e,i,n)});default:return f(e)&&f(i)&&f(s)?t:f(e)&&f(i)?g(function(n,o){return r(n,o,s)}):f(e)&&f(s)?g(function(n,o){return r(n,i,o)}):f(i)&&f(s)?g(function(n,o){return r(e,n,o)}):f(e)?$(function(n){return r(n,i,s)}):f(i)?$(function(n){return r(e,n,s)}):f(s)?$(function(n){return r(e,i,n)}):r(e,i,s)}}}var ur=hr(ie);function se(r,t){return function(){var e=arguments.length;if(e===0)return t();var i=arguments[e-1];return re(i)||typeof i[r]!="function"?t.apply(this,arguments):i[r].apply(i,Array.prototype.slice.call(arguments,0,e-1))}}var ci=hr(se("slice",function(t,e,i){return Array.prototype.slice.call(i,t,e)})),li=$(se("tail",ci(1,1/0)));function j(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return at(arguments[0].length,ur(ai,arguments[0],li(arguments)))}let hi=class{constructor(t){this.targetRegion=t}async attach(){const t=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return j(ct(e=>this.targetRegion.addView(e.key,e.view)),B(Promise.all,Promise),F(Mr))(t)}detach(){return Promise.resolve()}},ui=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(t){this.behaviors.some(e=>e===t)||this.registry.push(t)}};const dr=new ui;dr.register(hi);const di=dr;let pi=class{constructor(t){this.host=t}get behaviors(){return di.behaviors.map(t=>new t(this.host.uxlRegion))}activateView(t){return this.host.contains(t)||this.addViewToHost(t),t.hidden=!1,Promise.resolve(void 0)}deactivateView(t){return t.view&&t.view.removeFromDomWhenDeactivated?this.removeViewFromHost(t):t.hidden=!0,Promise.resolve(null)}removeView(t){this.removeViewFromHost(t)}viewAdded(t){}addViewToHost(t){this.host.appendChild(t)}removeViewFromHost(t){this.host.removeChild(t),this.host.uxlRegion.viewRemovedFromDom(t.view)}};const fi=(r,t)=>!r.sortHint&&!t.sortHint||!t.sortHint?-1:r.sortHint?r.sortHint.localeCompare(t.sortHint):1;let gi=class extends pi{async viewAdded(t){await this.host.uxlRegion.activate(t)}addViewToHost(t){const e=this.host.uxlRegion.currentActiveViews.sort(fi).indexOf(t.view);e>=this.host.children.length?super.addViewToHost(t):this.host.insertBefore(t,this.host.children[e])}};const vi=(r,t)=>new gi(t),x=(r,t)=>{if(r=typeof r=="function"?r():r,!r)throw new Error(t)},mi=r=>typeof HTMLElement=="object"?r instanceof HTMLElement:r&&typeof r=="object"&&r!=null&&r.nodeType===1&&typeof r.nodeName=="string",yi=r=>{if(!r.htmlTag&&!r.element&&!r.factory)throw new Error("One of properties htmlTag, factory or element must be set");return r.htmlTag&&x(typeof r.htmlTag=="string","htmlTag property must be an string"),r.factory&&x(typeof r.factory=="function","factory property must be a function"),r.element&&x(mi(r.element),"element property must be an HTMLElement"),!0},$i=async(r,t,e)=>{let i;return r.element?i=r.element:r.factory?i=await r.factory():r.htmlTag&&(r.htmlUrl&&await import(r.htmlUrl),i=window.document.createElement(r.htmlTag)),i.view=r,i.region=t,i.viewKey=e,i};let _i=class{constructor(t,e,i,s,n){this.name=t,this.regionManager=e,this.host=i,this.adapter=s,this.definition=n,this.views={},this.activeViews=[],this.components=new WeakMap,this.host.uxlRegion=this}async addView(t,e){return yi(e),x(typeof this.getView(t)>"u",`Already exists a view with key ${t}`),this.views[t]=e,await this.adapter.viewAdded(e),this}async removeView(t){await this.deactivate(t),this.remove(t),delete this.views[t]}async removeViews(){Object.keys(this.views).forEach(t=>this.removeView(t))}get context(){return this._context}set context(t){this._context=t,Object.keys(this.views).forEach(e=>{const i=this.views[e];if(this.components.has(i)){const s=this.components.get(i);s&&(s.regionContext=this._context)}})}async activate(t){let e=t;if(typeof t=="string"?(e=this.getView(t),x(e,`Region does not contain a view with key ${t}`)):x(Object.keys(this.views).some(i=>typeof this.views[i]<"u"),"Region does not contain this view"),!this.activeViews.some(i=>i===e)){if(!this.components.has(e)){const s=await $i(e,this,typeof t=="string"?t:this.getKey(e));s.regionContext=this.context,this.components.set(e,s)}const i=this.components.get(e);this.activeViews.push(e),i.active=!0,await this.adapter.activateView(i)}return this}viewRemovedFromDom(t){this.components.delete(t)}remove(t){const e=typeof t=="string"?this.getView(t):t,i=this.components.get(e);i&&this.adapter.removeView(i)}async deactivate(t){const e=typeof t=="string"?this.getView(t):t,i=this.activeViews.indexOf(e);i!==-1&&this.activeViews.splice(i,1);const s=this.components.get(e);s&&(s.active=!1,await this.adapter.deactivateView(s))}getView(t){return this.views[t]}get currentViews(){return Object.keys(this.views).map(t=>this.views[t])}get currentActiveViews(){return[...this.activeViews]}getKey(t){return Object.keys(this.views).find(e=>this.views[e]==t)}containsView(t){return typeof t=="string"?this.getView(t)!==void 0:Object.keys(this.views).some(e=>this.views[e]==t)}isViewActive(t){if(this.containsView(t)){const e=typeof t=="string"?this.getView(t):t;return this.activeViews.indexOf(e)!==-1}throw new Error(`region ${this.name} doest not contain this view`)}async toggleViewActive(t){if(this.containsView(t))return this.isViewActive(t)?(await this.deactivate(t),!1):(await this.activate(t),!0);throw new Error(`region ${this.name} doest not contain this view`)}};const It="default",xe="dynamic";let bi=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(xe,[])}registerAdapterFactory(t,e){this.adapterRegistry.set(t,e)}get dynamicFactories(){return this.adapterRegistry.get(xe)}registerDynamicAdapterFactory(t){this.dynamicFactories.indexOf(t)===-1&&this.dynamicFactories.push(t)}getDynamicFactory(t){return this.dynamicFactories.reduce((e,i)=>e||i(t),null)}getAdapterFactory(t){return this.getDynamicFactory(t)||(this.adapterRegistry.has(t.constructor)?this.adapterRegistry.get(t.constructor):this.adapterRegistry.has(t.localName)?this.adapterRegistry.get(t.localName):this.adapterRegistry.has(t.tagName)?this.adapterRegistry.get(t.tagName):this.adapterRegistry.has(It)?this.adapterRegistry.get(It):null)}registerDefaultAdapterFactory(t){this.adapterRegistry.set(It,t)}};const pr=new bi,Wt="__uxl_regions__",xt=r=>(t,e)=>{t.constructor[Wt]={...t.constructor[Wt],[e]:r}},wi=(r,t,e)=>{const i=e.getAdapterFactory(t);return x(typeof i=="function","No region adapter factory found for the host"),i(r,t)},Ai=async(r,t,e,i)=>{await t._updatePromise;const s=t.shadowRoot.querySelector(`#${r.targetId}`);if(s){const n=r.adapterFactory?r.adapterFactory(r,s):wi(r,s,i);x(n,"No region adapter found for the host");const o=r.scoped?e.createRegionManager():e,a=new _i(r.name,o,s,n,r);return o.add(r.name,a),a}else console.warn(`region host with id ${r.targetId} not found for region named ${r.name}`)};/*
17
+ */
18
+ const Mr = () => {
19
+ };
20
+ function f(r) {
21
+ return r != null && typeof r == "object" && r["@@functional/placeholder"] === !0;
22
+ }
23
+ function $(r) {
24
+ return function t(e) {
25
+ return arguments.length === 0 || f(e) ? t : r.apply(this, arguments);
26
+ };
27
+ }
28
+ function g(r) {
29
+ return function t(e, i) {
30
+ switch (arguments.length) {
31
+ case 0:
32
+ return t;
33
+ case 1:
34
+ return f(e) ? t : $(function(s) {
35
+ return r(e, s);
36
+ });
37
+ default:
38
+ return f(e) && f(i) ? t : f(e) ? $(function(s) {
39
+ return r(s, i);
40
+ }) : f(i) ? $(function(s) {
41
+ return r(e, s);
42
+ }) : r(e, i);
43
+ }
44
+ };
45
+ }
46
+ function Ur(r) {
47
+ var t = Object.prototype.toString.call(r);
48
+ return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]";
49
+ }
50
+ function me(r) {
51
+ for (var t = [], e; !(e = r.next()).done; )
52
+ t.push(e.value);
53
+ return t;
54
+ }
55
+ function ye(r, t, e) {
56
+ for (var i = 0, s = e.length; i < s; ) {
57
+ if (r(t, e[i]))
58
+ return !0;
59
+ i += 1;
60
+ }
61
+ return !1;
62
+ }
63
+ function Hr(r) {
64
+ var t = String(r).match(/^function (\w*)/);
65
+ return t == null ? "" : t[1];
66
+ }
67
+ function yt(r, t) {
68
+ return Object.prototype.hasOwnProperty.call(t, r);
69
+ }
70
+ function jr(r, t) {
71
+ return r === t ? r !== 0 || 1 / r === 1 / t : r !== r && t !== t;
72
+ }
73
+ const Tt = typeof Object.is == "function" ? Object.is : jr;
74
+ var $e = Object.prototype.toString, Lr = /* @__PURE__ */ function() {
75
+ return $e.call(arguments) === "[object Arguments]" ? function(t) {
76
+ return $e.call(t) === "[object Arguments]";
77
+ } : function(t) {
78
+ return yt("callee", t);
79
+ };
80
+ }(), Vr = !/* @__PURE__ */ {
81
+ toString: null
82
+ }.propertyIsEnumerable("toString"), _e = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], be = /* @__PURE__ */ function() {
83
+ return arguments.propertyIsEnumerable("length");
84
+ }(), Dr = function(t, e) {
85
+ for (var i = 0; i < t.length; ) {
86
+ if (t[i] === e)
87
+ return !0;
88
+ i += 1;
89
+ }
90
+ return !1;
91
+ }, k = /* @__PURE__ */ $(typeof Object.keys == "function" && !be ? function(t) {
92
+ return Object(t) !== t ? [] : Object.keys(t);
93
+ } : function(t) {
94
+ if (Object(t) !== t)
95
+ return [];
96
+ var e, i, s = [], n = be && Lr(t);
97
+ for (e in t)
98
+ yt(e, t) && (!n || e !== "length") && (s[s.length] = e);
99
+ if (Vr)
100
+ for (i = _e.length - 1; i >= 0; )
101
+ e = _e[i], yt(e, t) && !Dr(s, e) && (s[s.length] = e), i -= 1;
102
+ return s;
103
+ }), we = /* @__PURE__ */ $(function(t) {
104
+ return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1);
105
+ });
106
+ function Ae(r, t, e, i) {
107
+ var s = me(r), n = me(t);
108
+ function o(a, c) {
109
+ return ee(a, c, e.slice(), i.slice());
110
+ }
111
+ return !ye(function(a, c) {
112
+ return !ye(o, c, a);
113
+ }, n, s);
114
+ }
115
+ function ee(r, t, e, i) {
116
+ if (Tt(r, t))
117
+ return !0;
118
+ var s = we(r);
119
+ if (s !== we(t) || r == null || t == null)
120
+ return !1;
121
+ if (typeof r["fantasy-land/equals"] == "function" || typeof t["fantasy-land/equals"] == "function")
122
+ return typeof r["fantasy-land/equals"] == "function" && r["fantasy-land/equals"](t) && typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](r);
123
+ if (typeof r.equals == "function" || typeof t.equals == "function")
124
+ return typeof r.equals == "function" && r.equals(t) && typeof t.equals == "function" && t.equals(r);
125
+ switch (s) {
126
+ case "Arguments":
127
+ case "Array":
128
+ case "Object":
129
+ if (typeof r.constructor == "function" && Hr(r.constructor) === "Promise")
130
+ return r === t;
131
+ break;
132
+ case "Boolean":
133
+ case "Number":
134
+ case "String":
135
+ if (!(typeof r == typeof t && Tt(r.valueOf(), t.valueOf())))
136
+ return !1;
137
+ break;
138
+ case "Date":
139
+ if (!Tt(r.valueOf(), t.valueOf()))
140
+ return !1;
141
+ break;
142
+ case "Error":
143
+ return r.name === t.name && r.message === t.message;
144
+ case "RegExp":
145
+ if (!(r.source === t.source && r.global === t.global && r.ignoreCase === t.ignoreCase && r.multiline === t.multiline && r.sticky === t.sticky && r.unicode === t.unicode))
146
+ return !1;
147
+ break;
148
+ }
149
+ for (var n = e.length - 1; n >= 0; ) {
150
+ if (e[n] === r)
151
+ return i[n] === t;
152
+ n -= 1;
153
+ }
154
+ switch (s) {
155
+ case "Map":
156
+ return r.size !== t.size ? !1 : Ae(r.entries(), t.entries(), e.concat([r]), i.concat([t]));
157
+ case "Set":
158
+ return r.size !== t.size ? !1 : Ae(r.values(), t.values(), e.concat([r]), i.concat([t]));
159
+ case "Arguments":
160
+ case "Array":
161
+ case "Object":
162
+ case "Boolean":
163
+ case "Number":
164
+ case "String":
165
+ case "Date":
166
+ case "Error":
167
+ case "RegExp":
168
+ case "Int8Array":
169
+ case "Uint8Array":
170
+ case "Uint8ClampedArray":
171
+ case "Int16Array":
172
+ case "Uint16Array":
173
+ case "Int32Array":
174
+ case "Uint32Array":
175
+ case "Float32Array":
176
+ case "Float64Array":
177
+ case "ArrayBuffer":
178
+ break;
179
+ default:
180
+ return !1;
181
+ }
182
+ var o = k(r);
183
+ if (o.length !== k(t).length)
184
+ return !1;
185
+ var a = e.concat([r]), c = i.concat([t]);
186
+ for (n = o.length - 1; n >= 0; ) {
187
+ var l = o[n];
188
+ if (!(yt(l, t) && ee(t[l], r[l], a, c)))
189
+ return !1;
190
+ n -= 1;
191
+ }
192
+ return !0;
193
+ }
194
+ var zr = /* @__PURE__ */ g(function(t, e) {
195
+ return ee(t, e, [], []);
196
+ });
197
+ function Br(r, t, e) {
198
+ var i, s;
199
+ if (typeof r.indexOf == "function")
200
+ switch (typeof t) {
201
+ case "number":
202
+ if (t === 0) {
203
+ for (i = 1 / t; e < r.length; ) {
204
+ if (s = r[e], s === 0 && 1 / s === i)
205
+ return e;
206
+ e += 1;
207
+ }
208
+ return -1;
209
+ } else if (t !== t) {
210
+ for (; e < r.length; ) {
211
+ if (s = r[e], typeof s == "number" && s !== s)
212
+ return e;
213
+ e += 1;
214
+ }
215
+ return -1;
216
+ }
217
+ return r.indexOf(t, e);
218
+ case "string":
219
+ case "boolean":
220
+ case "function":
221
+ case "undefined":
222
+ return r.indexOf(t, e);
223
+ case "object":
224
+ if (t === null)
225
+ return r.indexOf(t, e);
226
+ }
227
+ for (; e < r.length; ) {
228
+ if (zr(r[e], t))
229
+ return e;
230
+ e += 1;
231
+ }
232
+ return -1;
233
+ }
234
+ function Fr(r, t) {
235
+ return Br(t, r, 0) >= 0;
236
+ }
237
+ function pt(r, t) {
238
+ for (var e = 0, i = t.length, s = Array(i); e < i; )
239
+ s[e] = r(t[e]), e += 1;
240
+ return s;
241
+ }
242
+ function Ot(r) {
243
+ var t = r.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0");
244
+ return '"' + t.replace(/"/g, '\\"') + '"';
245
+ }
246
+ var X = function(t) {
247
+ return (t < 10 ? "0" : "") + t;
248
+ }, qr = typeof Date.prototype.toISOString == "function" ? function(t) {
249
+ return t.toISOString();
250
+ } : function(t) {
251
+ return t.getUTCFullYear() + "-" + X(t.getUTCMonth() + 1) + "-" + X(t.getUTCDate()) + "T" + X(t.getUTCHours()) + ":" + X(t.getUTCMinutes()) + ":" + X(t.getUTCSeconds()) + "." + (t.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
252
+ };
253
+ function Wr(r) {
254
+ return function() {
255
+ return !r.apply(this, arguments);
256
+ };
257
+ }
258
+ const re = Array.isArray || function(t) {
259
+ return t != null && t.length >= 0 && Object.prototype.toString.call(t) === "[object Array]";
260
+ };
261
+ function Gr(r) {
262
+ return r != null && typeof r["@@transducer/step"] == "function";
263
+ }
264
+ function nr(r, t, e) {
265
+ return function() {
266
+ if (arguments.length === 0)
267
+ return e();
268
+ var i = Array.prototype.slice.call(arguments, 0), s = i.pop();
269
+ if (!re(s)) {
270
+ for (var n = 0; n < r.length; ) {
271
+ if (typeof s[r[n]] == "function")
272
+ return s[r[n]].apply(s, i);
273
+ n += 1;
274
+ }
275
+ if (Gr(s)) {
276
+ var o = t.apply(null, i);
277
+ return o(s);
278
+ }
279
+ }
280
+ return e.apply(this, arguments);
281
+ };
282
+ }
283
+ function Kr(r, t) {
284
+ for (var e = 0, i = t.length, s = []; e < i; )
285
+ r(t[e]) && (s[s.length] = t[e]), e += 1;
286
+ return s;
287
+ }
288
+ function Yr(r) {
289
+ return Object.prototype.toString.call(r) === "[object Object]";
290
+ }
291
+ function or(r) {
292
+ return Object.prototype.toString.call(r) === "[object String]";
293
+ }
294
+ var Xr = /* @__PURE__ */ $(function(t) {
295
+ return re(t) ? !0 : !t || typeof t != "object" || or(t) ? !1 : t.nodeType === 1 ? !!t.length : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1;
296
+ }), Zr = /* @__PURE__ */ function() {
297
+ function r(t) {
298
+ this.f = t;
299
+ }
300
+ return r.prototype["@@transducer/init"] = function() {
301
+ throw new Error("init not implemented on XWrap");
302
+ }, r.prototype["@@transducer/result"] = function(t) {
303
+ return t;
304
+ }, r.prototype["@@transducer/step"] = function(t, e) {
305
+ return this.f(t, e);
306
+ }, r;
307
+ }();
308
+ function Qr(r) {
309
+ return new Zr(r);
310
+ }
311
+ function at(r, t) {
312
+ switch (r) {
313
+ case 0:
314
+ return function() {
315
+ return t.apply(this, arguments);
316
+ };
317
+ case 1:
318
+ return function(e) {
319
+ return t.apply(this, arguments);
320
+ };
321
+ case 2:
322
+ return function(e, i) {
323
+ return t.apply(this, arguments);
324
+ };
325
+ case 3:
326
+ return function(e, i, s) {
327
+ return t.apply(this, arguments);
328
+ };
329
+ case 4:
330
+ return function(e, i, s, n) {
331
+ return t.apply(this, arguments);
332
+ };
333
+ case 5:
334
+ return function(e, i, s, n, o) {
335
+ return t.apply(this, arguments);
336
+ };
337
+ case 6:
338
+ return function(e, i, s, n, o, a) {
339
+ return t.apply(this, arguments);
340
+ };
341
+ case 7:
342
+ return function(e, i, s, n, o, a, c) {
343
+ return t.apply(this, arguments);
344
+ };
345
+ case 8:
346
+ return function(e, i, s, n, o, a, c, l) {
347
+ return t.apply(this, arguments);
348
+ };
349
+ case 9:
350
+ return function(e, i, s, n, o, a, c, l, u) {
351
+ return t.apply(this, arguments);
352
+ };
353
+ case 10:
354
+ return function(e, i, s, n, o, a, c, l, u, h) {
355
+ return t.apply(this, arguments);
356
+ };
357
+ default:
358
+ throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
359
+ }
360
+ }
361
+ var B = /* @__PURE__ */ g(function(t, e) {
362
+ return at(t.length, function() {
363
+ return t.apply(e, arguments);
364
+ });
365
+ });
366
+ function Jr(r, t, e) {
367
+ for (var i = 0, s = e.length; i < s; ) {
368
+ if (t = r["@@transducer/step"](t, e[i]), t && t["@@transducer/reduced"]) {
369
+ t = t["@@transducer/value"];
370
+ break;
371
+ }
372
+ i += 1;
373
+ }
374
+ return r["@@transducer/result"](t);
375
+ }
376
+ function Ee(r, t, e) {
377
+ for (var i = e.next(); !i.done; ) {
378
+ if (t = r["@@transducer/step"](t, i.value), t && t["@@transducer/reduced"]) {
379
+ t = t["@@transducer/value"];
380
+ break;
381
+ }
382
+ i = e.next();
383
+ }
384
+ return r["@@transducer/result"](t);
385
+ }
386
+ function Se(r, t, e, i) {
387
+ return r["@@transducer/result"](e[i](B(r["@@transducer/step"], r), t));
388
+ }
389
+ var Ce = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
390
+ function ie(r, t, e) {
391
+ if (typeof r == "function" && (r = Qr(r)), Xr(e))
392
+ return Jr(r, t, e);
393
+ if (typeof e["fantasy-land/reduce"] == "function")
394
+ return Se(r, t, e, "fantasy-land/reduce");
395
+ if (e[Ce] != null)
396
+ return Ee(r, t, e[Ce]());
397
+ if (typeof e.next == "function")
398
+ return Ee(r, t, e);
399
+ if (typeof e.reduce == "function")
400
+ return Se(r, t, e, "reduce");
401
+ throw new TypeError("reduce: list must be array or iterable");
402
+ }
403
+ const $t = {
404
+ init: function() {
405
+ return this.xf["@@transducer/init"]();
406
+ },
407
+ result: function(r) {
408
+ return this.xf["@@transducer/result"](r);
409
+ }
410
+ };
411
+ var ti = /* @__PURE__ */ function() {
412
+ function r(t, e) {
413
+ this.xf = e, this.f = t;
414
+ }
415
+ return r.prototype["@@transducer/init"] = $t.init, r.prototype["@@transducer/result"] = $t.result, r.prototype["@@transducer/step"] = function(t, e) {
416
+ return this.f(e) ? this.xf["@@transducer/step"](t, e) : t;
417
+ }, r;
418
+ }(), ei = /* @__PURE__ */ g(function(t, e) {
419
+ return new ti(t, e);
420
+ }), ri = /* @__PURE__ */ g(
421
+ /* @__PURE__ */ nr(["filter"], ei, function(r, t) {
422
+ return Yr(t) ? ie(function(e, i) {
423
+ return r(t[i]) && (e[i] = t[i]), e;
424
+ }, {}, k(t)) : (
425
+ // else
426
+ Kr(r, t)
427
+ );
428
+ })
429
+ ), ar = /* @__PURE__ */ g(function(t, e) {
430
+ return ri(Wr(t), e);
431
+ });
432
+ function cr(r, t) {
433
+ var e = function(o) {
434
+ var a = t.concat([r]);
435
+ return Fr(o, a) ? "<Circular>" : cr(o, a);
436
+ }, i = function(n, o) {
437
+ return pt(function(a) {
438
+ return Ot(a) + ": " + e(n[a]);
439
+ }, o.slice().sort());
440
+ };
441
+ switch (Object.prototype.toString.call(r)) {
442
+ case "[object Arguments]":
443
+ return "(function() { return arguments; }(" + pt(e, r).join(", ") + "))";
444
+ case "[object Array]":
445
+ return "[" + pt(e, r).concat(i(r, ar(function(n) {
446
+ return /^\d+$/.test(n);
447
+ }, k(r)))).join(", ") + "]";
448
+ case "[object Boolean]":
449
+ return typeof r == "object" ? "new Boolean(" + e(r.valueOf()) + ")" : r.toString();
450
+ case "[object Date]":
451
+ return "new Date(" + (isNaN(r.valueOf()) ? e(NaN) : Ot(qr(r))) + ")";
452
+ case "[object Null]":
453
+ return "null";
454
+ case "[object Number]":
455
+ return typeof r == "object" ? "new Number(" + e(r.valueOf()) + ")" : 1 / r === -1 / 0 ? "-0" : r.toString(10);
456
+ case "[object String]":
457
+ return typeof r == "object" ? "new String(" + e(r.valueOf()) + ")" : Ot(r);
458
+ case "[object Undefined]":
459
+ return "undefined";
460
+ default:
461
+ if (typeof r.toString == "function") {
462
+ var s = r.toString();
463
+ if (s !== "[object Object]")
464
+ return s;
465
+ }
466
+ return "{" + i(r, k(r)).join(", ") + "}";
467
+ }
468
+ }
469
+ function ii(r, t) {
470
+ if (t == null || !Ur(t.then))
471
+ throw new TypeError("`" + r + "` expected a Promise, received " + cr(t, []));
472
+ }
473
+ var F = /* @__PURE__ */ g(function(t, e) {
474
+ return ii("andThen", e), e.then(t);
475
+ }), si = /* @__PURE__ */ function() {
476
+ function r(t, e) {
477
+ this.xf = e, this.f = t;
478
+ }
479
+ return r.prototype["@@transducer/init"] = $t.init, r.prototype["@@transducer/result"] = $t.result, r.prototype["@@transducer/step"] = function(t, e) {
480
+ return this.xf["@@transducer/step"](t, this.f(e));
481
+ }, r;
482
+ }(), ni = /* @__PURE__ */ g(function(t, e) {
483
+ return new si(t, e);
484
+ });
485
+ function lr(r, t, e) {
486
+ return function() {
487
+ for (var i = [], s = 0, n = r, o = 0; o < t.length || s < arguments.length; ) {
488
+ var a;
489
+ o < t.length && (!f(t[o]) || s >= arguments.length) ? a = t[o] : (a = arguments[s], s += 1), i[o] = a, f(a) || (n -= 1), o += 1;
490
+ }
491
+ return n <= 0 ? e.apply(this, i) : at(n, lr(r, i, e));
492
+ };
493
+ }
494
+ var oi = /* @__PURE__ */ g(function(t, e) {
495
+ return t === 1 ? $(e) : at(t, lr(t, [], e));
496
+ }), ct = /* @__PURE__ */ g(
497
+ /* @__PURE__ */ nr(["fantasy-land/map", "map"], ni, function(t, e) {
498
+ switch (Object.prototype.toString.call(e)) {
499
+ case "[object Function]":
500
+ return oi(e.length, function() {
501
+ return t.call(this, e.apply(this, arguments));
502
+ });
503
+ case "[object Object]":
504
+ return ie(function(i, s) {
505
+ return i[s] = t(e[s]), i;
506
+ }, {}, k(e));
507
+ default:
508
+ return pt(t, e);
509
+ }
510
+ })
511
+ );
512
+ function ai(r, t) {
513
+ return function() {
514
+ return t.call(this, r.apply(this, arguments));
515
+ };
516
+ }
517
+ function hr(r) {
518
+ return function t(e, i, s) {
519
+ switch (arguments.length) {
520
+ case 0:
521
+ return t;
522
+ case 1:
523
+ return f(e) ? t : g(function(n, o) {
524
+ return r(e, n, o);
525
+ });
526
+ case 2:
527
+ return f(e) && f(i) ? t : f(e) ? g(function(n, o) {
528
+ return r(n, i, o);
529
+ }) : f(i) ? g(function(n, o) {
530
+ return r(e, n, o);
531
+ }) : $(function(n) {
532
+ return r(e, i, n);
533
+ });
534
+ default:
535
+ return f(e) && f(i) && f(s) ? t : f(e) && f(i) ? g(function(n, o) {
536
+ return r(n, o, s);
537
+ }) : f(e) && f(s) ? g(function(n, o) {
538
+ return r(n, i, o);
539
+ }) : f(i) && f(s) ? g(function(n, o) {
540
+ return r(e, n, o);
541
+ }) : f(e) ? $(function(n) {
542
+ return r(n, i, s);
543
+ }) : f(i) ? $(function(n) {
544
+ return r(e, n, s);
545
+ }) : f(s) ? $(function(n) {
546
+ return r(e, i, n);
547
+ }) : r(e, i, s);
548
+ }
549
+ };
550
+ }
551
+ var ur = /* @__PURE__ */ hr(ie);
552
+ function se(r, t) {
553
+ return function() {
554
+ var e = arguments.length;
555
+ if (e === 0)
556
+ return t();
557
+ var i = arguments[e - 1];
558
+ return re(i) || typeof i[r] != "function" ? t.apply(this, arguments) : i[r].apply(i, Array.prototype.slice.call(arguments, 0, e - 1));
559
+ };
560
+ }
561
+ var ci = /* @__PURE__ */ hr(
562
+ /* @__PURE__ */ se("slice", function(t, e, i) {
563
+ return Array.prototype.slice.call(i, t, e);
564
+ })
565
+ ), li = /* @__PURE__ */ $(
566
+ /* @__PURE__ */ se(
567
+ "tail",
568
+ /* @__PURE__ */ ci(1, 1 / 0)
569
+ )
570
+ );
571
+ function j() {
572
+ if (arguments.length === 0)
573
+ throw new Error("pipe requires at least one argument");
574
+ return at(arguments[0].length, ur(ai, arguments[0], li(arguments)));
575
+ }
576
+ let hi = class {
577
+ constructor(t) {
578
+ this.targetRegion = t;
579
+ }
580
+ async attach() {
581
+ const t = this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);
582
+ return j(ct((e) => this.targetRegion.addView(e.key, e.view)), B(Promise.all, Promise), F(Mr))(t);
583
+ }
584
+ detach() {
585
+ return Promise.resolve();
586
+ }
587
+ }, ui = class {
588
+ constructor() {
589
+ this.registry = [];
590
+ }
591
+ get behaviors() {
592
+ return [...this.registry];
593
+ }
594
+ register(t) {
595
+ this.behaviors.some((e) => e === t) || this.registry.push(t);
596
+ }
597
+ };
598
+ const dr = new ui();
599
+ dr.register(hi);
600
+ const di = dr;
601
+ let pi = class {
602
+ constructor(t) {
603
+ this.host = t;
604
+ }
605
+ get behaviors() {
606
+ return di.behaviors.map((t) => new t(this.host.uxlRegion));
607
+ }
608
+ activateView(t) {
609
+ return this.host.contains(t) || this.addViewToHost(t), t.hidden = !1, Promise.resolve(void 0);
610
+ }
611
+ deactivateView(t) {
612
+ return t.view && t.view.removeFromDomWhenDeactivated ? this.removeViewFromHost(t) : t.hidden = !0, Promise.resolve(null);
613
+ }
614
+ removeView(t) {
615
+ this.removeViewFromHost(t);
616
+ }
617
+ viewAdded(t) {
618
+ }
619
+ addViewToHost(t) {
620
+ this.host.appendChild(t);
621
+ }
622
+ removeViewFromHost(t) {
623
+ this.host.removeChild(t), this.host.uxlRegion.viewRemovedFromDom(t.view);
624
+ }
625
+ };
626
+ const fi = (r, t) => !r.sortHint && !t.sortHint || !t.sortHint ? -1 : r.sortHint ? r.sortHint.localeCompare(t.sortHint) : 1;
627
+ let gi = class extends pi {
628
+ async viewAdded(t) {
629
+ await this.host.uxlRegion.activate(t);
630
+ }
631
+ addViewToHost(t) {
632
+ const e = this.host.uxlRegion.currentActiveViews.sort(fi).indexOf(t.view);
633
+ e >= this.host.children.length ? super.addViewToHost(t) : this.host.insertBefore(t, this.host.children[e]);
634
+ }
635
+ };
636
+ const vi = (r, t) => new gi(t), x = (r, t) => {
637
+ if (r = typeof r == "function" ? r() : r, !r)
638
+ throw new Error(t);
639
+ }, mi = (r) => typeof HTMLElement == "object" ? r instanceof HTMLElement : r && typeof r == "object" && r != null && r.nodeType === 1 && typeof r.nodeName == "string", yi = (r) => {
640
+ if (!r.htmlTag && !r.element && !r.factory)
641
+ throw new Error("One of properties htmlTag, factory or element must be set");
642
+ return r.htmlTag && x(typeof r.htmlTag == "string", "htmlTag property must be an string"), r.factory && x(typeof r.factory == "function", "factory property must be a function"), r.element && x(mi(r.element), "element property must be an HTMLElement"), !0;
643
+ }, $i = async (r, t, e) => {
644
+ let i;
645
+ return r.element ? i = r.element : r.factory ? i = await r.factory() : r.htmlTag && (r.htmlUrl && await import(r.htmlUrl), i = window.document.createElement(r.htmlTag)), i.view = r, i.region = t, i.viewKey = e, i;
646
+ };
647
+ let _i = class {
648
+ constructor(t, e, i, s, n) {
649
+ this.name = t, this.regionManager = e, this.host = i, this.adapter = s, this.definition = n, this.views = {}, this.activeViews = [], this.components = /* @__PURE__ */ new WeakMap(), this.host.uxlRegion = this;
650
+ }
651
+ async addView(t, e) {
652
+ return yi(e), x(typeof this.getView(t) > "u", `Already exists a view with key ${t}`), this.views[t] = e, await this.adapter.viewAdded(e), this;
653
+ }
654
+ async removeView(t) {
655
+ await this.deactivate(t), this.remove(t), delete this.views[t];
656
+ }
657
+ async removeViews() {
658
+ Object.keys(this.views).forEach((t) => this.removeView(t));
659
+ }
660
+ get context() {
661
+ return this._context;
662
+ }
663
+ set context(t) {
664
+ this._context = t, Object.keys(this.views).forEach((e) => {
665
+ const i = this.views[e];
666
+ if (this.components.has(i)) {
667
+ const s = this.components.get(i);
668
+ s && (s.regionContext = this._context);
669
+ }
670
+ });
671
+ }
672
+ async activate(t) {
673
+ let e = t;
674
+ if (typeof t == "string" ? (e = this.getView(t), x(e, `Region does not contain a view with key ${t}`)) : x(Object.keys(this.views).some((i) => typeof this.views[i] < "u"), "Region does not contain this view"), !this.activeViews.some((i) => i === e)) {
675
+ if (!this.components.has(e)) {
676
+ const s = await $i(e, this, typeof t == "string" ? t : this.getKey(e));
677
+ s.regionContext = this.context, this.components.set(e, s);
678
+ }
679
+ const i = this.components.get(e);
680
+ this.activeViews.push(e), i.active = !0, await this.adapter.activateView(i);
681
+ }
682
+ return this;
683
+ }
684
+ viewRemovedFromDom(t) {
685
+ this.components.delete(t);
686
+ }
687
+ remove(t) {
688
+ const e = typeof t == "string" ? this.getView(t) : t, i = this.components.get(e);
689
+ i && this.adapter.removeView(i);
690
+ }
691
+ async deactivate(t) {
692
+ const e = typeof t == "string" ? this.getView(t) : t, i = this.activeViews.indexOf(e);
693
+ i !== -1 && this.activeViews.splice(i, 1);
694
+ const s = this.components.get(e);
695
+ s && (s.active = !1, await this.adapter.deactivateView(s));
696
+ }
697
+ getView(t) {
698
+ return this.views[t];
699
+ }
700
+ get currentViews() {
701
+ return Object.keys(this.views).map((t) => this.views[t]);
702
+ }
703
+ get currentActiveViews() {
704
+ return [...this.activeViews];
705
+ }
706
+ getKey(t) {
707
+ return Object.keys(this.views).find((e) => this.views[e] == t);
708
+ }
709
+ containsView(t) {
710
+ return typeof t == "string" ? this.getView(t) !== void 0 : Object.keys(this.views).some((e) => this.views[e] == t);
711
+ }
712
+ isViewActive(t) {
713
+ if (this.containsView(t)) {
714
+ const e = typeof t == "string" ? this.getView(t) : t;
715
+ return this.activeViews.indexOf(e) !== -1;
716
+ }
717
+ throw new Error(`region ${this.name} doest not contain this view`);
718
+ }
719
+ async toggleViewActive(t) {
720
+ if (this.containsView(t))
721
+ return this.isViewActive(t) ? (await this.deactivate(t), !1) : (await this.activate(t), !0);
722
+ throw new Error(`region ${this.name} doest not contain this view`);
723
+ }
724
+ };
725
+ const It = "default", xe = "dynamic";
726
+ let bi = class {
727
+ constructor() {
728
+ this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(xe, []);
729
+ }
730
+ registerAdapterFactory(t, e) {
731
+ this.adapterRegistry.set(t, e);
732
+ }
733
+ get dynamicFactories() {
734
+ return this.adapterRegistry.get(xe);
735
+ }
736
+ registerDynamicAdapterFactory(t) {
737
+ this.dynamicFactories.indexOf(t) === -1 && this.dynamicFactories.push(t);
738
+ }
739
+ getDynamicFactory(t) {
740
+ return this.dynamicFactories.reduce((e, i) => e || i(t), null);
741
+ }
742
+ getAdapterFactory(t) {
743
+ return this.getDynamicFactory(t) || (this.adapterRegistry.has(t.constructor) ? this.adapterRegistry.get(t.constructor) : this.adapterRegistry.has(t.localName) ? this.adapterRegistry.get(t.localName) : this.adapterRegistry.has(t.tagName) ? this.adapterRegistry.get(t.tagName) : this.adapterRegistry.has(It) ? this.adapterRegistry.get(It) : null);
744
+ }
745
+ registerDefaultAdapterFactory(t) {
746
+ this.adapterRegistry.set(It, t);
747
+ }
748
+ };
749
+ const pr = new bi(), Wt = "__uxl_regions__", Ct = (r) => (t, e) => {
750
+ t.constructor[Wt] = { ...t.constructor[Wt], [e]: r };
751
+ }, wi = (r, t, e) => {
752
+ const i = e.getAdapterFactory(t);
753
+ return x(typeof i == "function", "No region adapter factory found for the host"), i(r, t);
754
+ }, Ai = async (r, t, e, i) => {
755
+ await t._updatePromise;
756
+ const s = t.shadowRoot.querySelector(`#${r.targetId}`);
757
+ if (s) {
758
+ const n = r.adapterFactory ? r.adapterFactory(r, s) : wi(r, s, i);
759
+ x(n, "No region adapter found for the host");
760
+ const o = r.scoped ? e.createRegionManager() : e, a = new _i(r.name, o, s, n, r);
761
+ return o.add(r.name, a), a;
762
+ } else
763
+ console.warn(`region host with id ${r.targetId} not found for region named ${r.name}`);
764
+ };
765
+ /*
18
766
  * @license
19
767
  * BSD License
20
768
  *
@@ -30,207 +778,2338 @@
30
778
  *
31
779
  * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
780
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
- */let Ei=class{constructor(t){this._ownQueue=[],this.isProcessing=!1,this.executor=t}enqueueItem(...t){this._ownQueue.push([...t]),this.tryProcessQueue()}async tryProcessQueue(){if(!this.isProcessing&&this._ownQueue.length){this.isProcessing=!0;const t=this._ownQueue.pop();await this.executor.apply(void 0,[...t]),this.isProcessing=!1,this.tryProcessQueue()}}};const fr=new WeakMap;function Si(r,t){let e=t;for(;e;){if(fr.get(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}function ne(r){return t=>{if(Si(r,t))return t;const e=r(t);return fr.set(e,r),e}}/**
781
+ */
782
+ let Ei = class {
783
+ constructor(t) {
784
+ this._ownQueue = [], this.isProcessing = !1, this.executor = t;
785
+ }
786
+ enqueueItem(...t) {
787
+ this._ownQueue.push([...t]), this.tryProcessQueue();
788
+ }
789
+ async tryProcessQueue() {
790
+ if (!this.isProcessing && this._ownQueue.length) {
791
+ this.isProcessing = !0;
792
+ const t = this._ownQueue.pop();
793
+ await this.executor.apply(void 0, [...t]), this.isProcessing = !1, this.tryProcessQueue();
794
+ }
795
+ }
796
+ };
797
+ const fr = /* @__PURE__ */ new WeakMap();
798
+ function Si(r, t) {
799
+ let e = t;
800
+ for (; e; ) {
801
+ if (fr.get(e) === r)
802
+ return !0;
803
+ e = Object.getPrototypeOf(e);
804
+ }
805
+ return !1;
806
+ }
807
+ function ne(r) {
808
+ return (t) => {
809
+ if (Si(r, t))
810
+ return t;
811
+ const e = r(t);
812
+ return fr.set(e, r), e;
813
+ };
814
+ }
815
+ /**
34
816
  * @license
35
817
  * Copyright 2019 Google LLC
36
818
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const gt=window,oe=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gr=Symbol(),Re=new WeakMap;let Ci=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==gr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(oe&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Re.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Re.set(e,t))}return t}toString(){return this.cssText}};const xi=r=>new Ci(typeof r=="string"?r:r+"",void 0,gr),Ri=(r,t)=>{oe?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=gt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)})},Pe=oe?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xi(e)})(r):r;/**
819
+ */
820
+ const ft = window, oe = ft.ShadowRoot && (ft.ShadyCSS === void 0 || ft.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gr = Symbol(), Re = /* @__PURE__ */ new WeakMap();
821
+ let Ci = class {
822
+ constructor(t, e, i) {
823
+ if (this._$cssResult$ = !0, i !== gr)
824
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
825
+ this.cssText = t, this.t = e;
826
+ }
827
+ get styleSheet() {
828
+ let t = this.o;
829
+ const e = this.t;
830
+ if (oe && t === void 0) {
831
+ const i = e !== void 0 && e.length === 1;
832
+ i && (t = Re.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Re.set(e, t));
833
+ }
834
+ return t;
835
+ }
836
+ toString() {
837
+ return this.cssText;
838
+ }
839
+ };
840
+ const xi = (r) => new Ci(typeof r == "string" ? r : r + "", void 0, gr), Ri = (r, t) => {
841
+ oe ? r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
842
+ const i = document.createElement("style"), s = ft.litNonce;
843
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
844
+ });
845
+ }, Pe = oe ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
846
+ let e = "";
847
+ for (const i of t.cssRules)
848
+ e += i.cssText;
849
+ return xi(e);
850
+ })(r) : r;
851
+ /**
38
852
  * @license
39
853
  * Copyright 2017 Google LLC
40
854
  * SPDX-License-Identifier: BSD-3-Clause
41
- */var Nt;const bt=window,Te=bt.trustedTypes,Pi=Te?Te.emptyScript:"",Oe=bt.reactiveElementPolyfillSupport,Gt={toAttribute(r,t){switch(t){case Boolean:r=r?Pi:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ae=(r,t)=>t!==r&&(t==t||r==r),kt={attribute:!0,type:String,converter:Gt,reflect:!1,hasChanged:ae},Kt="finalized";let D=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const n=this[t];this[e]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||kt}static finalize(){if(this.hasOwnProperty(Kt))return!1;this[Kt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Pe(s))}else t!==void 0&&e.push(Pe(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ri(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=kt){var s;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Gt).toAttribute(e,i.type);this._$El=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,n=s._$Ev.get(t);if(n!==void 0&&this._$El!==n){const o=s.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:Gt;this._$El=n,this[n]=a.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ae)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,n)=>this[n]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var n;return(n=s.hostUpdate)===null||n===void 0?void 0:n.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};D[Kt]=!0,D.elementProperties=new Map,D.elementStyles=[],D.shadowRootOptions={mode:"open"},Oe==null||Oe({ReactiveElement:D}),((Nt=bt.reactiveElementVersions)!==null&&Nt!==void 0?Nt:bt.reactiveElementVersions=[]).push("1.6.3");/**
855
+ */
856
+ var Nt;
857
+ const _t = window, Te = _t.trustedTypes, Pi = Te ? Te.emptyScript : "", Oe = _t.reactiveElementPolyfillSupport, Gt = { toAttribute(r, t) {
858
+ switch (t) {
859
+ case Boolean:
860
+ r = r ? Pi : null;
861
+ break;
862
+ case Object:
863
+ case Array:
864
+ r = r == null ? r : JSON.stringify(r);
865
+ }
866
+ return r;
867
+ }, fromAttribute(r, t) {
868
+ let e = r;
869
+ switch (t) {
870
+ case Boolean:
871
+ e = r !== null;
872
+ break;
873
+ case Number:
874
+ e = r === null ? null : Number(r);
875
+ break;
876
+ case Object:
877
+ case Array:
878
+ try {
879
+ e = JSON.parse(r);
880
+ } catch {
881
+ e = null;
882
+ }
883
+ }
884
+ return e;
885
+ } }, ae = (r, t) => t !== r && (t == t || r == r), kt = { attribute: !0, type: String, converter: Gt, reflect: !1, hasChanged: ae }, Kt = "finalized";
886
+ let D = class extends HTMLElement {
887
+ constructor() {
888
+ super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
889
+ }
890
+ static addInitializer(t) {
891
+ var e;
892
+ this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
893
+ }
894
+ static get observedAttributes() {
895
+ this.finalize();
896
+ const t = [];
897
+ return this.elementProperties.forEach((e, i) => {
898
+ const s = this._$Ep(i, e);
899
+ s !== void 0 && (this._$Ev.set(s, i), t.push(s));
900
+ }), t;
901
+ }
902
+ static createProperty(t, e = kt) {
903
+ if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
904
+ const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
905
+ s !== void 0 && Object.defineProperty(this.prototype, t, s);
906
+ }
907
+ }
908
+ static getPropertyDescriptor(t, e, i) {
909
+ return { get() {
910
+ return this[e];
911
+ }, set(s) {
912
+ const n = this[t];
913
+ this[e] = s, this.requestUpdate(t, n, i);
914
+ }, configurable: !0, enumerable: !0 };
915
+ }
916
+ static getPropertyOptions(t) {
917
+ return this.elementProperties.get(t) || kt;
918
+ }
919
+ static finalize() {
920
+ if (this.hasOwnProperty(Kt))
921
+ return !1;
922
+ this[Kt] = !0;
923
+ const t = Object.getPrototypeOf(this);
924
+ if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
925
+ const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
926
+ for (const s of i)
927
+ this.createProperty(s, e[s]);
928
+ }
929
+ return this.elementStyles = this.finalizeStyles(this.styles), !0;
930
+ }
931
+ static finalizeStyles(t) {
932
+ const e = [];
933
+ if (Array.isArray(t)) {
934
+ const i = new Set(t.flat(1 / 0).reverse());
935
+ for (const s of i)
936
+ e.unshift(Pe(s));
937
+ } else
938
+ t !== void 0 && e.push(Pe(t));
939
+ return e;
940
+ }
941
+ static _$Ep(t, e) {
942
+ const i = e.attribute;
943
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
944
+ }
945
+ _$Eu() {
946
+ var t;
947
+ this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
948
+ }
949
+ addController(t) {
950
+ var e, i;
951
+ ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) === null || i === void 0 || i.call(t));
952
+ }
953
+ removeController(t) {
954
+ var e;
955
+ (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
956
+ }
957
+ _$Eg() {
958
+ this.constructor.elementProperties.forEach((t, e) => {
959
+ this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
960
+ });
961
+ }
962
+ createRenderRoot() {
963
+ var t;
964
+ const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
965
+ return Ri(e, this.constructor.elementStyles), e;
966
+ }
967
+ connectedCallback() {
968
+ var t;
969
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
970
+ var i;
971
+ return (i = e.hostConnected) === null || i === void 0 ? void 0 : i.call(e);
972
+ });
973
+ }
974
+ enableUpdating(t) {
975
+ }
976
+ disconnectedCallback() {
977
+ var t;
978
+ (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
979
+ var i;
980
+ return (i = e.hostDisconnected) === null || i === void 0 ? void 0 : i.call(e);
981
+ });
982
+ }
983
+ attributeChangedCallback(t, e, i) {
984
+ this._$AK(t, i);
985
+ }
986
+ _$EO(t, e, i = kt) {
987
+ var s;
988
+ const n = this.constructor._$Ep(t, i);
989
+ if (n !== void 0 && i.reflect === !0) {
990
+ const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : Gt).toAttribute(e, i.type);
991
+ this._$El = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$El = null;
992
+ }
993
+ }
994
+ _$AK(t, e) {
995
+ var i;
996
+ const s = this.constructor, n = s._$Ev.get(t);
997
+ if (n !== void 0 && this._$El !== n) {
998
+ const o = s.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : Gt;
999
+ this._$El = n, this[n] = a.fromAttribute(e, o.type), this._$El = null;
1000
+ }
1001
+ }
1002
+ requestUpdate(t, e, i) {
1003
+ let s = !0;
1004
+ t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || ae)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
1005
+ }
1006
+ async _$Ej() {
1007
+ this.isUpdatePending = !0;
1008
+ try {
1009
+ await this._$E_;
1010
+ } catch (e) {
1011
+ Promise.reject(e);
1012
+ }
1013
+ const t = this.scheduleUpdate();
1014
+ return t != null && await t, !this.isUpdatePending;
1015
+ }
1016
+ scheduleUpdate() {
1017
+ return this.performUpdate();
1018
+ }
1019
+ performUpdate() {
1020
+ var t;
1021
+ if (!this.isUpdatePending)
1022
+ return;
1023
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach((s, n) => this[n] = s), this._$Ei = void 0);
1024
+ let e = !1;
1025
+ const i = this._$AL;
1026
+ try {
1027
+ e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {
1028
+ var n;
1029
+ return (n = s.hostUpdate) === null || n === void 0 ? void 0 : n.call(s);
1030
+ }), this.update(i)) : this._$Ek();
1031
+ } catch (s) {
1032
+ throw e = !1, this._$Ek(), s;
1033
+ }
1034
+ e && this._$AE(i);
1035
+ }
1036
+ willUpdate(t) {
1037
+ }
1038
+ _$AE(t) {
1039
+ var e;
1040
+ (e = this._$ES) === null || e === void 0 || e.forEach((i) => {
1041
+ var s;
1042
+ return (s = i.hostUpdated) === null || s === void 0 ? void 0 : s.call(i);
1043
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1044
+ }
1045
+ _$Ek() {
1046
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1047
+ }
1048
+ get updateComplete() {
1049
+ return this.getUpdateComplete();
1050
+ }
1051
+ getUpdateComplete() {
1052
+ return this._$E_;
1053
+ }
1054
+ shouldUpdate(t) {
1055
+ return !0;
1056
+ }
1057
+ update(t) {
1058
+ this._$EC !== void 0 && (this._$EC.forEach((e, i) => this._$EO(i, this[i], e)), this._$EC = void 0), this._$Ek();
1059
+ }
1060
+ updated(t) {
1061
+ }
1062
+ firstUpdated(t) {
1063
+ }
1064
+ };
1065
+ D[Kt] = !0, D.elementProperties = /* @__PURE__ */ new Map(), D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, Oe == null || Oe({ ReactiveElement: D }), ((Nt = _t.reactiveElementVersions) !== null && Nt !== void 0 ? Nt : _t.reactiveElementVersions = []).push("1.6.3");
1066
+ /**
42
1067
  * @license
43
1068
  * Copyright 2017 Google LLC
44
1069
  * SPDX-License-Identifier: BSD-3-Clause
45
- */var Mt;const wt=window,q=wt.trustedTypes,Ie=q?q.createPolicy("lit-html",{createHTML:r=>r}):void 0,Yt="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,vr="?"+S,Ti=`<${vr}>`,M=document,et=()=>M.createComment(""),rt=r=>r===null||typeof r!="object"&&typeof r!="function",mr=Array.isArray,Oi=r=>mr(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ut=`[
46
- \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ne=/-->/g,ke=/>/g,T=RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
47
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Me=/'/g,Ue=/"/g,yr=/^(?:script|style|textarea|title)$/i,W=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),He=new WeakMap,I=M.createTreeWalker(M,129,null,!1);function $r(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ie!==void 0?Ie.createHTML(t):t}const Ii=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=Z;for(let a=0;a<e;a++){const c=r[a];let l,u,h=-1,p=0;for(;p<c.length&&(o.lastIndex=p,u=o.exec(c),u!==null);)p=o.lastIndex,o===Z?u[1]==="!--"?o=Ne:u[1]!==void 0?o=ke:u[2]!==void 0?(yr.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=T):u[3]!==void 0&&(o=T):o===T?u[0]===">"?(o=s??Z,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?T:u[3]==='"'?Ue:Me):o===Ue||o===Me?o=T:o===Ne||o===ke?o=Z:(o=T,s=void 0);const m=o===T&&r[a+1].startsWith("/>")?" ":"";n+=o===Z?c+Ti:h>=0?(i.push(l),c.slice(0,h)+Yt+c.slice(h)+S+m):c+S+(h===-2?(i.push(void 0),a):m)}return[$r(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};let Xt=class _r{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[l,u]=Ii(t,e);if(this.el=_r.createElement(l,i),I.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=I.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(Yt)||p.startsWith(S)){const m=u[o++];if(h.push(p),m!==void 0){const V=s.getAttribute(m.toLowerCase()+Yt).split(S),pt=/([.?@])?(.*)/.exec(m);c.push({type:1,index:n,name:pt[2],strings:V,ctor:pt[1]==="."?ki:pt[1]==="?"?Ui:pt[1]==="@"?Hi:Rt})}else c.push({type:6,index:n})}for(const p of h)s.removeAttribute(p)}if(yr.test(s.tagName)){const h=s.textContent.split(S),p=h.length-1;if(p>0){s.textContent=q?q.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],et()),I.nextNode(),c.push({type:2,index:++n});s.append(h[p],et())}}}else if(s.nodeType===8)if(s.data===vr)c.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(S,h+1))!==-1;)c.push({type:7,index:n}),h+=S.length-1}n++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}};function G(r,t,e=r,i){var s,n,o,a;if(t===W)return t;let c=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const l=rt(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((n=c==null?void 0:c._$AO)===null||n===void 0||n.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,e,i)),i!==void 0?((o=(a=e)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=c:e._$Cl=c),c!==void 0&&(t=G(r,c._$AS(r,t.values),c,i)),t}let Ni=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,n=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:M).importNode(i,!0);I.currentNode=n;let o=I.nextNode(),a=0,c=0,l=s[0];for(;l!==void 0;){if(a===l.index){let u;l.type===2?u=new ce(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new ji(o,this,t)),this._$AV.push(u),l=s[++c]}a!==(l==null?void 0:l.index)&&(o=I.nextNode(),a++)}return I.currentNode=M,n}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ce=class br{constructor(t,e,i,s){var n;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),rt(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==W&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Oi(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==y&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Xt.createElement($r(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.v(i);else{const o=new Ni(n,this),a=o.u(this.options);o.v(i),this.$(a),this._$AH=o}}_$AC(t){let e=He.get(t.strings);return e===void 0&&He.set(t.strings,e=new Xt(t)),e}T(t){mr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new br(this.k(et()),this.k(et()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Rt=class{constructor(t,e,i,s,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=G(this,t,e,0),o=!rt(t)||t!==this._$AH&&t!==W,o&&(this._$AH=t);else{const a=t;let c,l;for(t=n[0],c=0;c<n.length-1;c++)l=G(this,a[i+c],e,c),l===W&&(l=this._$AH[c]),o||(o=!rt(l)||l!==this._$AH[c]),l===y?t=y:t!==y&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ki=class extends Rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}};const Mi=q?q.emptyScript:"";let Ui=class extends Rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==y?this.element.setAttribute(this.name,Mi):this.element.removeAttribute(this.name)}};class Hi extends Rt{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=G(this,t,e,0))!==null&&i!==void 0?i:y)===W)return;const s=this._$AH,n=t===y&&s!==y||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==y&&(s===y||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}let ji=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}};const je=wt.litHtmlPolyfillSupport;je==null||je(Xt,ce),((Mt=wt.litHtmlVersions)!==null&&Mt!==void 0?Mt:wt.litHtmlVersions=[]).push("2.8.0");const Li=(r,t,e)=>{var i,s;const n=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let o=n._$litPart$;if(o===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;n._$litPart$=o=new ce(t.insertBefore(et(),a),a,void 0,e??{})}return o._$AI(r),o};/**
1070
+ */
1071
+ var Mt;
1072
+ const bt = window, q = bt.trustedTypes, Ie = q ? q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yt = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, vr = "?" + S, Ti = `<${vr}>`, M = document, et = () => M.createComment(""), rt = (r) => r === null || typeof r != "object" && typeof r != "function", mr = Array.isArray, Oi = (r) => mr(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Ut = `[
1073
+ \f\r]`, Z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ne = /-->/g, ke = />/g, T = RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
1074
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Me = /'/g, Ue = /"/g, yr = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), He = /* @__PURE__ */ new WeakMap(), I = M.createTreeWalker(M, 129, null, !1);
1075
+ function $r(r, t) {
1076
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
1077
+ throw Error("invalid template strings array");
1078
+ return Ie !== void 0 ? Ie.createHTML(t) : t;
1079
+ }
1080
+ const Ii = (r, t) => {
1081
+ const e = r.length - 1, i = [];
1082
+ let s, n = t === 2 ? "<svg>" : "", o = Z;
1083
+ for (let a = 0; a < e; a++) {
1084
+ const c = r[a];
1085
+ let l, u, h = -1, p = 0;
1086
+ for (; p < c.length && (o.lastIndex = p, u = o.exec(c), u !== null); )
1087
+ p = o.lastIndex, o === Z ? u[1] === "!--" ? o = Ne : u[1] !== void 0 ? o = ke : u[2] !== void 0 ? (yr.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = T) : u[3] !== void 0 && (o = T) : o === T ? u[0] === ">" ? (o = s ?? Z, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? T : u[3] === '"' ? Ue : Me) : o === Ue || o === Me ? o = T : o === Ne || o === ke ? o = Z : (o = T, s = void 0);
1088
+ const m = o === T && r[a + 1].startsWith("/>") ? " " : "";
1089
+ n += o === Z ? c + Ti : h >= 0 ? (i.push(l), c.slice(0, h) + Yt + c.slice(h) + S + m) : c + S + (h === -2 ? (i.push(void 0), a) : m);
1090
+ }
1091
+ return [$r(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
1092
+ };
1093
+ let Xt = class _r {
1094
+ constructor({ strings: t, _$litType$: e }, i) {
1095
+ let s;
1096
+ this.parts = [];
1097
+ let n = 0, o = 0;
1098
+ const a = t.length - 1, c = this.parts, [l, u] = Ii(t, e);
1099
+ if (this.el = _r.createElement(l, i), I.currentNode = this.el.content, e === 2) {
1100
+ const h = this.el.content, p = h.firstChild;
1101
+ p.remove(), h.append(...p.childNodes);
1102
+ }
1103
+ for (; (s = I.nextNode()) !== null && c.length < a; ) {
1104
+ if (s.nodeType === 1) {
1105
+ if (s.hasAttributes()) {
1106
+ const h = [];
1107
+ for (const p of s.getAttributeNames())
1108
+ if (p.endsWith(Yt) || p.startsWith(S)) {
1109
+ const m = u[o++];
1110
+ if (h.push(p), m !== void 0) {
1111
+ const V = s.getAttribute(m.toLowerCase() + Yt).split(S), dt = /([.?@])?(.*)/.exec(m);
1112
+ c.push({ type: 1, index: n, name: dt[2], strings: V, ctor: dt[1] === "." ? ki : dt[1] === "?" ? Ui : dt[1] === "@" ? Hi : xt });
1113
+ } else
1114
+ c.push({ type: 6, index: n });
1115
+ }
1116
+ for (const p of h)
1117
+ s.removeAttribute(p);
1118
+ }
1119
+ if (yr.test(s.tagName)) {
1120
+ const h = s.textContent.split(S), p = h.length - 1;
1121
+ if (p > 0) {
1122
+ s.textContent = q ? q.emptyScript : "";
1123
+ for (let m = 0; m < p; m++)
1124
+ s.append(h[m], et()), I.nextNode(), c.push({ type: 2, index: ++n });
1125
+ s.append(h[p], et());
1126
+ }
1127
+ }
1128
+ } else if (s.nodeType === 8)
1129
+ if (s.data === vr)
1130
+ c.push({ type: 2, index: n });
1131
+ else {
1132
+ let h = -1;
1133
+ for (; (h = s.data.indexOf(S, h + 1)) !== -1; )
1134
+ c.push({ type: 7, index: n }), h += S.length - 1;
1135
+ }
1136
+ n++;
1137
+ }
1138
+ }
1139
+ static createElement(t, e) {
1140
+ const i = M.createElement("template");
1141
+ return i.innerHTML = t, i;
1142
+ }
1143
+ };
1144
+ function G(r, t, e = r, i) {
1145
+ var s, n, o, a;
1146
+ if (t === W)
1147
+ return t;
1148
+ let c = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
1149
+ const l = rt(t) ? void 0 : t._$litDirective$;
1150
+ return (c == null ? void 0 : c.constructor) !== l && ((n = c == null ? void 0 : c._$AO) === null || n === void 0 || n.call(c, !1), l === void 0 ? c = void 0 : (c = new l(r), c._$AT(r, e, i)), i !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[i] = c : e._$Cl = c), c !== void 0 && (t = G(r, c._$AS(r, t.values), c, i)), t;
1151
+ }
1152
+ let Ni = class {
1153
+ constructor(t, e) {
1154
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
1155
+ }
1156
+ get parentNode() {
1157
+ return this._$AM.parentNode;
1158
+ }
1159
+ get _$AU() {
1160
+ return this._$AM._$AU;
1161
+ }
1162
+ u(t) {
1163
+ var e;
1164
+ const { el: { content: i }, parts: s } = this._$AD, n = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : M).importNode(i, !0);
1165
+ I.currentNode = n;
1166
+ let o = I.nextNode(), a = 0, c = 0, l = s[0];
1167
+ for (; l !== void 0; ) {
1168
+ if (a === l.index) {
1169
+ let u;
1170
+ l.type === 2 ? u = new ce(o, o.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (u = new ji(o, this, t)), this._$AV.push(u), l = s[++c];
1171
+ }
1172
+ a !== (l == null ? void 0 : l.index) && (o = I.nextNode(), a++);
1173
+ }
1174
+ return I.currentNode = M, n;
1175
+ }
1176
+ v(t) {
1177
+ let e = 0;
1178
+ for (const i of this._$AV)
1179
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
1180
+ }
1181
+ }, ce = class br {
1182
+ constructor(t, e, i, s) {
1183
+ var n;
1184
+ this.type = 2, this._$AH = y, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (n = s == null ? void 0 : s.isConnected) === null || n === void 0 || n;
1185
+ }
1186
+ get _$AU() {
1187
+ var t, e;
1188
+ return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
1189
+ }
1190
+ get parentNode() {
1191
+ let t = this._$AA.parentNode;
1192
+ const e = this._$AM;
1193
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
1194
+ }
1195
+ get startNode() {
1196
+ return this._$AA;
1197
+ }
1198
+ get endNode() {
1199
+ return this._$AB;
1200
+ }
1201
+ _$AI(t, e = this) {
1202
+ t = G(this, t, e), rt(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Oi(t) ? this.T(t) : this._(t);
1203
+ }
1204
+ k(t) {
1205
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
1206
+ }
1207
+ $(t) {
1208
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
1209
+ }
1210
+ _(t) {
1211
+ this._$AH !== y && rt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(M.createTextNode(t)), this._$AH = t;
1212
+ }
1213
+ g(t) {
1214
+ var e;
1215
+ const { values: i, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Xt.createElement($r(s.h, s.h[0]), this.options)), s);
1216
+ if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n)
1217
+ this._$AH.v(i);
1218
+ else {
1219
+ const o = new Ni(n, this), a = o.u(this.options);
1220
+ o.v(i), this.$(a), this._$AH = o;
1221
+ }
1222
+ }
1223
+ _$AC(t) {
1224
+ let e = He.get(t.strings);
1225
+ return e === void 0 && He.set(t.strings, e = new Xt(t)), e;
1226
+ }
1227
+ T(t) {
1228
+ mr(this._$AH) || (this._$AH = [], this._$AR());
1229
+ const e = this._$AH;
1230
+ let i, s = 0;
1231
+ for (const n of t)
1232
+ s === e.length ? e.push(i = new br(this.k(et()), this.k(et()), this, this.options)) : i = e[s], i._$AI(n), s++;
1233
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
1234
+ }
1235
+ _$AR(t = this._$AA.nextSibling, e) {
1236
+ var i;
1237
+ for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
1238
+ const s = t.nextSibling;
1239
+ t.remove(), t = s;
1240
+ }
1241
+ }
1242
+ setConnected(t) {
1243
+ var e;
1244
+ this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
1245
+ }
1246
+ }, xt = class {
1247
+ constructor(t, e, i, s, n) {
1248
+ this.type = 1, this._$AH = y, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = y;
1249
+ }
1250
+ get tagName() {
1251
+ return this.element.tagName;
1252
+ }
1253
+ get _$AU() {
1254
+ return this._$AM._$AU;
1255
+ }
1256
+ _$AI(t, e = this, i, s) {
1257
+ const n = this.strings;
1258
+ let o = !1;
1259
+ if (n === void 0)
1260
+ t = G(this, t, e, 0), o = !rt(t) || t !== this._$AH && t !== W, o && (this._$AH = t);
1261
+ else {
1262
+ const a = t;
1263
+ let c, l;
1264
+ for (t = n[0], c = 0; c < n.length - 1; c++)
1265
+ l = G(this, a[i + c], e, c), l === W && (l = this._$AH[c]), o || (o = !rt(l) || l !== this._$AH[c]), l === y ? t = y : t !== y && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
1266
+ }
1267
+ o && !s && this.j(t);
1268
+ }
1269
+ j(t) {
1270
+ t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1271
+ }
1272
+ }, ki = class extends xt {
1273
+ constructor() {
1274
+ super(...arguments), this.type = 3;
1275
+ }
1276
+ j(t) {
1277
+ this.element[this.name] = t === y ? void 0 : t;
1278
+ }
1279
+ };
1280
+ const Mi = q ? q.emptyScript : "";
1281
+ let Ui = class extends xt {
1282
+ constructor() {
1283
+ super(...arguments), this.type = 4;
1284
+ }
1285
+ j(t) {
1286
+ t && t !== y ? this.element.setAttribute(this.name, Mi) : this.element.removeAttribute(this.name);
1287
+ }
1288
+ };
1289
+ class Hi extends xt {
1290
+ constructor(t, e, i, s, n) {
1291
+ super(t, e, i, s, n), this.type = 5;
1292
+ }
1293
+ _$AI(t, e = this) {
1294
+ var i;
1295
+ if ((t = (i = G(this, t, e, 0)) !== null && i !== void 0 ? i : y) === W)
1296
+ return;
1297
+ const s = this._$AH, n = t === y && s !== y || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== y && (s === y || n);
1298
+ n && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
1299
+ }
1300
+ handleEvent(t) {
1301
+ var e, i;
1302
+ typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
1303
+ }
1304
+ }
1305
+ let ji = class {
1306
+ constructor(t, e, i) {
1307
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
1308
+ }
1309
+ get _$AU() {
1310
+ return this._$AM._$AU;
1311
+ }
1312
+ _$AI(t) {
1313
+ G(this, t);
1314
+ }
1315
+ };
1316
+ const je = bt.litHtmlPolyfillSupport;
1317
+ je == null || je(Xt, ce), ((Mt = bt.litHtmlVersions) !== null && Mt !== void 0 ? Mt : bt.litHtmlVersions = []).push("2.8.0");
1318
+ const Li = (r, t, e) => {
1319
+ var i, s;
1320
+ const n = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
1321
+ let o = n._$litPart$;
1322
+ if (o === void 0) {
1323
+ const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
1324
+ n._$litPart$ = o = new ce(t.insertBefore(et(), a), a, void 0, e ?? {});
1325
+ }
1326
+ return o._$AI(r), o;
1327
+ };
1328
+ /**
48
1329
  * @license
49
1330
  * Copyright 2017 Google LLC
50
1331
  * SPDX-License-Identifier: BSD-3-Clause
51
- */var Ht,jt;let vt=class extends D{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Li(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return W}};vt.finalized=!0,vt._$litElement$=!0,(Ht=globalThis.litElementHydrateSupport)===null||Ht===void 0||Ht.call(globalThis,{LitElement:vt});const Le=globalThis.litElementPolyfillSupport;Le==null||Le({LitElement:vt});((jt=globalThis.litElementVersions)!==null&&jt!==void 0?jt:globalThis.litElementVersions=[]).push("3.3.3");var Vi=g(function(t,e){return e==null||e!==e?t:e});const Di=(r,t)=>t.constructor._classProperties?t.constructor._classProperties.get(r).hasChanged:void 0,zi=j(Di,Vi(ae)),Bi=ne(r=>{class t extends r{requestUpdate(i,s){const n=super.requestUpdate?super.requestUpdate(i,s):Promise.resolve(null);return zi(i,this)(this[i],s)&&this[`${String(i)}Changed`]&&this[`${String(i)}Changed`](this[i],s),n}}return t});var Fi=function(){return!0},At=$(function(t){return function(){return t}}),qi=g(function(t,e){return e>t?e:t}),Wi=$(function(t){var e=ur(qi,0,ct(function(i){return i[0].length},t));return at(e,function(){for(var i=0;i<t.length;){if(t[i][0].apply(this,arguments))return t[i][1].apply(this,arguments);i+=1}})}),Gi=g(se("forEach",function(t,e){for(var i=e.length,s=0;s<i;)t(e[s]),s+=1;return e})),le=$(function(t){return t==null});const Ki=Number.isInteger||function(t){return t<<0===t};var Yi=g(function(t,e){var i=t<0?e.length+t:t;return or(e)?e.charAt(i):e[i]}),Xi=g(function(t,e){return t.map(function(i){for(var s=e,n=0,o;n<i.length;){if(s==null)return;o=i[n],s=Ki(o)?Yi(o,s):s[o],n+=1}return s})}),Zi=g(function(t,e){return Xi([t],e)[0]}),Qi=g(function(t,e){return Zi([t],e)});const wr=r=>t=>j(Qi(t.key),le)(r),Ji=r=>t=>!wr(r)(t)&&le(r.shadowRoot.querySelector(`#${t.definition.targetId}`)),ts=r=>t=>{const e=r[t.key];e.regionManager.remove(e);const i=e.adapter?e.adapter.behaviors||[]:[];return delete r[t.key],j(ct(s=>s.detach),B(Promise.all,Promise),F(()=>delete r[t.key]),F(At(void 0)))(i)},es=(r,t,e)=>i=>Ai(i.definition,r,t,e).then(s=>{if(s){r[i.key]=s;const n=s.adapter?s.adapter.behaviors||[]:[];return j(ct(o=>o.attach()),B(Promise.all,Promise),F(At(s)))(n)}else return}).catch(At(void 0)),rs=r=>j(k,ct(t=>({key:t,definition:r[t]})))(r),Ve=r=>r.constructor[Wt]||{},is=(r,t,e)=>{const i=wr(r),s=Ji(r),n=ts(r),o=es(r,t,e);return a=>Wi([[i,o],[s,n],[Fi,At(Promise.resolve(void 0))]])(a)},ss=(r,t)=>ne(e=>{class i extends e{constructor(...n){super(),this.enqueuer=new Ei(this.runRegionCreation.bind(this))}updated(n){super.updated(n),this.create()}createRegions(){const n=Ve(this),o=is(this,r,t);return j(rs,Gi(o),B(Promise.all,Promise),F(ar(le)),F(B(this.regionsCreated,this)))(n)}create(){this.enqueuer.enqueueItem()}runRegionCreation(){return new Promise(n=>{this.createRegions().then(n).catch(n)})}regionsCreated(n){}disconnectedCallback(){super.disconnectedCallback();const n=Ve(this);Object.keys(n).forEach(o=>{const a=this[o];a&&(a.regionManager.remove(a),(a.adapter?a.adapter.behaviors||[]:[]).forEach(c=>c.detach()))})}}return i});pr.registerDefaultAdapterFactory(vi);/**
1332
+ */
1333
+ var Ht, jt;
1334
+ let gt = class extends D {
1335
+ constructor() {
1336
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1337
+ }
1338
+ createRenderRoot() {
1339
+ var t, e;
1340
+ const i = super.createRenderRoot();
1341
+ return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = i.firstChild), i;
1342
+ }
1343
+ update(t) {
1344
+ const e = this.render();
1345
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Li(e, this.renderRoot, this.renderOptions);
1346
+ }
1347
+ connectedCallback() {
1348
+ var t;
1349
+ super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
1350
+ }
1351
+ disconnectedCallback() {
1352
+ var t;
1353
+ super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
1354
+ }
1355
+ render() {
1356
+ return W;
1357
+ }
1358
+ };
1359
+ gt.finalized = !0, gt._$litElement$ = !0, (Ht = globalThis.litElementHydrateSupport) === null || Ht === void 0 || Ht.call(globalThis, { LitElement: gt });
1360
+ const Le = globalThis.litElementPolyfillSupport;
1361
+ Le == null || Le({ LitElement: gt });
1362
+ ((jt = globalThis.litElementVersions) !== null && jt !== void 0 ? jt : globalThis.litElementVersions = []).push("3.3.3");
1363
+ var Vi = /* @__PURE__ */ g(function(t, e) {
1364
+ return e == null || e !== e ? t : e;
1365
+ });
1366
+ const Di = (r, t) => t.constructor._classProperties ? t.constructor._classProperties.get(r).hasChanged : void 0, zi = j(Di, Vi(ae)), Bi = ne((r) => {
1367
+ class t extends r {
1368
+ requestUpdate(i, s) {
1369
+ const n = super.requestUpdate ? super.requestUpdate(i, s) : Promise.resolve(null);
1370
+ return zi(i, this)(this[i], s) && this[`${String(i)}Changed`] && this[`${String(i)}Changed`](this[i], s), n;
1371
+ }
1372
+ }
1373
+ return t;
1374
+ });
1375
+ var Fi = function() {
1376
+ return !0;
1377
+ }, wt = /* @__PURE__ */ $(function(t) {
1378
+ return function() {
1379
+ return t;
1380
+ };
1381
+ }), qi = /* @__PURE__ */ g(function(t, e) {
1382
+ return e > t ? e : t;
1383
+ }), Wi = /* @__PURE__ */ $(function(t) {
1384
+ var e = ur(qi, 0, ct(function(i) {
1385
+ return i[0].length;
1386
+ }, t));
1387
+ return at(e, function() {
1388
+ for (var i = 0; i < t.length; ) {
1389
+ if (t[i][0].apply(this, arguments))
1390
+ return t[i][1].apply(this, arguments);
1391
+ i += 1;
1392
+ }
1393
+ });
1394
+ }), Gi = /* @__PURE__ */ g(
1395
+ /* @__PURE__ */ se("forEach", function(t, e) {
1396
+ for (var i = e.length, s = 0; s < i; )
1397
+ t(e[s]), s += 1;
1398
+ return e;
1399
+ })
1400
+ ), le = /* @__PURE__ */ $(function(t) {
1401
+ return t == null;
1402
+ });
1403
+ const Ki = Number.isInteger || function(t) {
1404
+ return t << 0 === t;
1405
+ };
1406
+ var Yi = /* @__PURE__ */ g(function(t, e) {
1407
+ var i = t < 0 ? e.length + t : t;
1408
+ return or(e) ? e.charAt(i) : e[i];
1409
+ }), Xi = /* @__PURE__ */ g(function(t, e) {
1410
+ return t.map(function(i) {
1411
+ for (var s = e, n = 0, o; n < i.length; ) {
1412
+ if (s == null)
1413
+ return;
1414
+ o = i[n], s = Ki(o) ? Yi(o, s) : s[o], n += 1;
1415
+ }
1416
+ return s;
1417
+ });
1418
+ }), Zi = /* @__PURE__ */ g(function(t, e) {
1419
+ return Xi([t], e)[0];
1420
+ }), Qi = /* @__PURE__ */ g(function(t, e) {
1421
+ return Zi([t], e);
1422
+ });
1423
+ const wr = (r) => (t) => j(Qi(t.key), le)(r), Ji = (r) => (t) => !wr(r)(t) && le(r.shadowRoot.querySelector(`#${t.definition.targetId}`)), ts = (r) => (t) => {
1424
+ const e = r[t.key];
1425
+ e.regionManager.remove(e);
1426
+ const i = e.adapter ? e.adapter.behaviors || [] : [];
1427
+ return delete r[t.key], j(ct((s) => s.detach), B(Promise.all, Promise), F(() => delete r[t.key]), F(wt(void 0)))(i);
1428
+ }, es = (r, t, e) => (i) => Ai(i.definition, r, t, e).then((s) => {
1429
+ if (s) {
1430
+ r[i.key] = s;
1431
+ const n = s.adapter ? s.adapter.behaviors || [] : [];
1432
+ return j(ct((o) => o.attach()), B(Promise.all, Promise), F(wt(s)))(n);
1433
+ } else
1434
+ return;
1435
+ }).catch(wt(void 0)), rs = (r) => j(k, ct((t) => ({ key: t, definition: r[t] })))(r), Ve = (r) => r.constructor[Wt] || {}, is = (r, t, e) => {
1436
+ const i = wr(r), s = Ji(r), n = ts(r), o = es(r, t, e);
1437
+ return (a) => Wi([[i, o], [s, n], [Fi, wt(Promise.resolve(void 0))]])(a);
1438
+ }, ss = (r, t) => ne((e) => {
1439
+ class i extends e {
1440
+ constructor(...n) {
1441
+ super(), this.enqueuer = new Ei(this.runRegionCreation.bind(this));
1442
+ }
1443
+ updated(n) {
1444
+ super.updated(n), this.create();
1445
+ }
1446
+ createRegions() {
1447
+ const n = Ve(this), o = is(this, r, t);
1448
+ return j(rs, Gi(o), B(Promise.all, Promise), F(ar(le)), F(B(this.regionsCreated, this)))(n);
1449
+ }
1450
+ create() {
1451
+ this.enqueuer.enqueueItem();
1452
+ }
1453
+ runRegionCreation() {
1454
+ return new Promise((n) => {
1455
+ this.createRegions().then(n).catch(n);
1456
+ });
1457
+ }
1458
+ regionsCreated(n) {
1459
+ }
1460
+ disconnectedCallback() {
1461
+ super.disconnectedCallback();
1462
+ const n = Ve(this);
1463
+ Object.keys(n).forEach((o) => {
1464
+ const a = this[o];
1465
+ a && (a.regionManager.remove(a), (a.adapter ? a.adapter.behaviors || [] : []).forEach((c) => c.detach()));
1466
+ });
1467
+ }
1468
+ }
1469
+ return i;
1470
+ });
1471
+ pr.registerDefaultAdapterFactory(vi);
1472
+ /**
52
1473
  * @license
53
1474
  * Copyright 2017 Google LLC
54
1475
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const ns=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}},os=(r,t,e)=>{t.constructor.createProperty(e,r)};function De(r){return(t,e)=>e!==void 0?os(r,t,e):ns(r,t)}/**
1476
+ */
1477
+ const ns = (r, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
1478
+ e.createProperty(t.key, r);
1479
+ } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
1480
+ typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
1481
+ }, finisher(e) {
1482
+ e.createProperty(t.key, r);
1483
+ } }, os = (r, t, e) => {
1484
+ t.constructor.createProperty(e, r);
1485
+ };
1486
+ function De(r) {
1487
+ return (t, e) => e !== void 0 ? os(r, t, e) : ns(r, t);
1488
+ }
1489
+ /**
56
1490
  * @license
57
1491
  * Copyright 2021 Google LLC
58
1492
  * SPDX-License-Identifier: BSD-3-Clause
59
- */var Lt;((Lt=window.HTMLSlotElement)===null||Lt===void 0?void 0:Lt.prototype.assignedElements)!=null;var as=Object.defineProperty,ze=(r,t,e,i)=>{for(var s=void 0,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=o(t,e,s)||s);return s&&as(t,e,s),s};const cs=ne(r=>{class t extends Bi(r){activeChanged(i,s){}regionContextChanged(i,s){}}return ze([De({type:Boolean})],t.prototype,"active"),ze([De()],t.prototype,"regionContext"),t});function ls(r){return cs(r)}const hs=r=>ss(r,pr);class us{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(t,e){this.regions[t]=[...this.regions[t]||[],e]}unregisterRegion(t,e){this.regions[t]=this.getRegionsByName(t).filter(i=>i!==e)}registerView(t,e,i){this.viewsByRegion[t]=[...this.viewsByRegion[t]||[],{key:e,view:i}]}getRegisteredViews(t){return this.viewsByRegion[t]||[]}getRegionsByName(t){return this.regions[t]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}}class he{constructor(t){this._viewRegistry=t,this._regions={}}add(t,e){if(this.getRegion(t))throw new Error("A region with the same name already exists");return this._regions[t]=e,this._viewRegistry.registerRegion(t,e),this}getRegion(t){return this._regions[t]}remove(t){let e,i="";return typeof t=="string"?(e=this.getRegion(t),i=t,delete this._regions[t]):typeof t=="object"&&(i=Object.keys(this._regions).find(s=>this._regions[s]===t),i&&(e=t,delete this._regions[i])),i&&e&&this._viewRegistry.unregisterRegion(i,e),e}addViewToRegion(t,e,i){const s=this.getRegion(t);if(!s)throw new Error(`Couldn't find a region with name: ${t}`);return s.addView(e,i),this}registerViewWithRegion(t,e,i){return this._viewRegistry.registerView(t,e,i),this._viewRegistry.getRegionsByName(t).forEach(s=>s.addView(e,i)),this}getRegisteredViews(t){return this._viewRegistry.getRegisteredViews(t)}clear(){return Object.values(this._viewRegistry.regions).forEach(t=>{t!=null&&t.length&&Object.keys(t[0].views).forEach(e=>{var i;return(i=t[0])==null?void 0:i.removeView(e)})}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(t=>this.remove(t[0])),this._regions={},this}createRegionManager(){return new he(this._viewRegistry)}}class ds extends he{constructor(t){const e=new us;super(e),this._name=t}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}}const ps=r=>new ds(r),fs=ps("SHELL-LIT"),gs=hs(fs);/**
1493
+ */
1494
+ var Lt;
1495
+ ((Lt = window.HTMLSlotElement) === null || Lt === void 0 ? void 0 : Lt.prototype.assignedElements) != null;
1496
+ var as = Object.defineProperty, ze = (r, t, e, i) => {
1497
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1498
+ (o = r[n]) && (s = o(t, e, s) || s);
1499
+ return s && as(t, e, s), s;
1500
+ };
1501
+ const cs = ne((r) => {
1502
+ class t extends Bi(r) {
1503
+ activeChanged(i, s) {
1504
+ }
1505
+ regionContextChanged(i, s) {
1506
+ }
1507
+ }
1508
+ return ze([De({ type: Boolean })], t.prototype, "active"), ze([De()], t.prototype, "regionContext"), t;
1509
+ });
1510
+ function ls(r) {
1511
+ return cs(r);
1512
+ }
1513
+ const hs = (r) => ss(r, pr);
1514
+ class us {
1515
+ constructor() {
1516
+ this.viewsByRegion = {}, this.regions = {};
1517
+ }
1518
+ registerRegion(t, e) {
1519
+ this.regions[t] = [...this.regions[t] || [], e];
1520
+ }
1521
+ unregisterRegion(t, e) {
1522
+ this.regions[t] = this.getRegionsByName(t).filter((i) => i !== e);
1523
+ }
1524
+ registerView(t, e, i) {
1525
+ this.viewsByRegion[t] = [
1526
+ ...this.viewsByRegion[t] || [],
1527
+ { key: e, view: i }
1528
+ ];
1529
+ }
1530
+ getRegisteredViews(t) {
1531
+ return this.viewsByRegion[t] || [];
1532
+ }
1533
+ getRegionsByName(t) {
1534
+ return this.regions[t] || [];
1535
+ }
1536
+ destroy() {
1537
+ this.viewsByRegion = {}, this.regions = {};
1538
+ }
1539
+ clear() {
1540
+ this.viewsByRegion = {};
1541
+ }
1542
+ }
1543
+ class he {
1544
+ constructor(t) {
1545
+ this._viewRegistry = t, this._regions = {};
1546
+ }
1547
+ add(t, e) {
1548
+ if (this.getRegion(t))
1549
+ throw new Error("A region with the same name already exists");
1550
+ return this._regions[t] = e, this._viewRegistry.registerRegion(t, e), this;
1551
+ }
1552
+ getRegion(t) {
1553
+ return this._regions[t];
1554
+ }
1555
+ remove(t) {
1556
+ let e, i = "";
1557
+ return typeof t == "string" ? (e = this.getRegion(t), i = t, delete this._regions[t]) : typeof t == "object" && (i = Object.keys(this._regions).find((s) => this._regions[s] === t), i && (e = t, delete this._regions[i])), i && e && this._viewRegistry.unregisterRegion(i, e), e;
1558
+ }
1559
+ addViewToRegion(t, e, i) {
1560
+ const s = this.getRegion(t);
1561
+ if (!s)
1562
+ throw new Error(`Couldn't find a region with name: ${t}`);
1563
+ return s.addView(e, i), this;
1564
+ }
1565
+ registerViewWithRegion(t, e, i) {
1566
+ return this._viewRegistry.registerView(t, e, i), this._viewRegistry.getRegionsByName(t).forEach((s) => s.addView(e, i)), this;
1567
+ }
1568
+ getRegisteredViews(t) {
1569
+ return this._viewRegistry.getRegisteredViews(t);
1570
+ }
1571
+ clear() {
1572
+ return Object.values(this._viewRegistry.regions).forEach((t) => {
1573
+ t != null && t.length && Object.keys(t[0].views).forEach((e) => {
1574
+ var i;
1575
+ return (i = t[0]) == null ? void 0 : i.removeView(e);
1576
+ });
1577
+ }), this;
1578
+ }
1579
+ destroy() {
1580
+ return this.clear(), Object.values(this._viewRegistry.regions).forEach(
1581
+ (t) => this.remove(t[0])
1582
+ ), this._regions = {}, this;
1583
+ }
1584
+ createRegionManager() {
1585
+ return new he(this._viewRegistry);
1586
+ }
1587
+ }
1588
+ class ds extends he {
1589
+ constructor(t) {
1590
+ const e = new us();
1591
+ super(e), this._name = t;
1592
+ }
1593
+ clear() {
1594
+ return super.clear(), this._viewRegistry.clear(), this;
1595
+ }
1596
+ destroy() {
1597
+ return super.destroy(), this._viewRegistry.destroy(), this;
1598
+ }
1599
+ }
1600
+ const ps = (r) => new ds(r), fs = ps("SHELL-LIT"), gs = hs(fs);
1601
+ /**
60
1602
  * @license
61
1603
  * Copyright 2019 Google LLC
62
1604
  * SPDX-License-Identifier: BSD-3-Clause
63
- */const mt=globalThis,ue=mt.ShadowRoot&&(mt.ShadyCSS===void 0||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,de=Symbol(),Be=new WeakMap;let Ar=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==de)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ue&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Be.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Be.set(e,t))}return t}toString(){return this.cssText}};const vs=r=>new Ar(typeof r=="string"?r:r+"",void 0,de),L=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[n+1],r[0]);return new Ar(e,r,de)},ms=(r,t)=>{if(ue)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=mt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},Fe=ue?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return vs(e)})(r):r;/**
1605
+ */
1606
+ const vt = globalThis, ue = vt.ShadowRoot && (vt.ShadyCSS === void 0 || vt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, de = Symbol(), Be = /* @__PURE__ */ new WeakMap();
1607
+ let Ar = class {
1608
+ constructor(t, e, i) {
1609
+ if (this._$cssResult$ = !0, i !== de)
1610
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1611
+ this.cssText = t, this.t = e;
1612
+ }
1613
+ get styleSheet() {
1614
+ let t = this.o;
1615
+ const e = this.t;
1616
+ if (ue && t === void 0) {
1617
+ const i = e !== void 0 && e.length === 1;
1618
+ i && (t = Be.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Be.set(e, t));
1619
+ }
1620
+ return t;
1621
+ }
1622
+ toString() {
1623
+ return this.cssText;
1624
+ }
1625
+ };
1626
+ const vs = (r) => new Ar(typeof r == "string" ? r : r + "", void 0, de), L = (r, ...t) => {
1627
+ const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
1628
+ if (o._$cssResult$ === !0)
1629
+ return o.cssText;
1630
+ if (typeof o == "number")
1631
+ return o;
1632
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1633
+ })(s) + r[n + 1], r[0]);
1634
+ return new Ar(e, r, de);
1635
+ }, ms = (r, t) => {
1636
+ if (ue)
1637
+ r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
1638
+ else
1639
+ for (const e of t) {
1640
+ const i = document.createElement("style"), s = vt.litNonce;
1641
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
1642
+ }
1643
+ }, Fe = ue ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
1644
+ let e = "";
1645
+ for (const i of t.cssRules)
1646
+ e += i.cssText;
1647
+ return vs(e);
1648
+ })(r) : r;
1649
+ /**
64
1650
  * @license
65
1651
  * Copyright 2017 Google LLC
66
1652
  * SPDX-License-Identifier: BSD-3-Clause
67
- */const{is:ys,defineProperty:$s,getOwnPropertyDescriptor:_s,getOwnPropertyNames:bs,getOwnPropertySymbols:ws,getPrototypeOf:As}=Object,R=globalThis,qe=R.trustedTypes,Es=qe?qe.emptyScript:"",Vt=R.reactiveElementPolyfillSupport,J=(r,t)=>r,Et={toAttribute(r,t){switch(t){case Boolean:r=r?Es:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},pe=(r,t)=>!ys(r,t),We={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:pe};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),R.litPropertyMetadata??(R.litPropertyMetadata=new WeakMap);class z extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=We){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&$s(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=_s(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const a=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??We}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;const t=As(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){const e=this.properties,i=[...bs(e),...ws(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Fe(s))}else t!==void 0&&e.push(Fe(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i: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(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ms(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:Et).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=i.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:Et;this._$Em=s,this[s]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??pe)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,o]of s)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),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=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}z.elementStyles=[],z.shadowRootOptions={mode:"open"},z[J("elementProperties")]=new Map,z[J("finalized")]=new Map,Vt==null||Vt({ReactiveElement:z}),(R.reactiveElementVersions??(R.reactiveElementVersions=[])).push("2.0.4");/**
1653
+ */
1654
+ const { is: ys, defineProperty: $s, getOwnPropertyDescriptor: _s, getOwnPropertyNames: bs, getOwnPropertySymbols: ws, getPrototypeOf: As } = Object, R = globalThis, qe = R.trustedTypes, Es = qe ? qe.emptyScript : "", Vt = R.reactiveElementPolyfillSupport, J = (r, t) => r, At = { toAttribute(r, t) {
1655
+ switch (t) {
1656
+ case Boolean:
1657
+ r = r ? Es : null;
1658
+ break;
1659
+ case Object:
1660
+ case Array:
1661
+ r = r == null ? r : JSON.stringify(r);
1662
+ }
1663
+ return r;
1664
+ }, fromAttribute(r, t) {
1665
+ let e = r;
1666
+ switch (t) {
1667
+ case Boolean:
1668
+ e = r !== null;
1669
+ break;
1670
+ case Number:
1671
+ e = r === null ? null : Number(r);
1672
+ break;
1673
+ case Object:
1674
+ case Array:
1675
+ try {
1676
+ e = JSON.parse(r);
1677
+ } catch {
1678
+ e = null;
1679
+ }
1680
+ }
1681
+ return e;
1682
+ } }, pe = (r, t) => !ys(r, t), We = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: pe };
1683
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), R.litPropertyMetadata ?? (R.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1684
+ class z extends HTMLElement {
1685
+ static addInitializer(t) {
1686
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
1687
+ }
1688
+ static get observedAttributes() {
1689
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1690
+ }
1691
+ static createProperty(t, e = We) {
1692
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
1693
+ const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
1694
+ s !== void 0 && $s(this.prototype, t, s);
1695
+ }
1696
+ }
1697
+ static getPropertyDescriptor(t, e, i) {
1698
+ const { get: s, set: n } = _s(this.prototype, t) ?? { get() {
1699
+ return this[e];
1700
+ }, set(o) {
1701
+ this[e] = o;
1702
+ } };
1703
+ return { get() {
1704
+ return s == null ? void 0 : s.call(this);
1705
+ }, set(o) {
1706
+ const a = s == null ? void 0 : s.call(this);
1707
+ n.call(this, o), this.requestUpdate(t, a, i);
1708
+ }, configurable: !0, enumerable: !0 };
1709
+ }
1710
+ static getPropertyOptions(t) {
1711
+ return this.elementProperties.get(t) ?? We;
1712
+ }
1713
+ static _$Ei() {
1714
+ if (this.hasOwnProperty(J("elementProperties")))
1715
+ return;
1716
+ const t = As(this);
1717
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
1718
+ }
1719
+ static finalize() {
1720
+ if (this.hasOwnProperty(J("finalized")))
1721
+ return;
1722
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(J("properties"))) {
1723
+ const e = this.properties, i = [...bs(e), ...ws(e)];
1724
+ for (const s of i)
1725
+ this.createProperty(s, e[s]);
1726
+ }
1727
+ const t = this[Symbol.metadata];
1728
+ if (t !== null) {
1729
+ const e = litPropertyMetadata.get(t);
1730
+ if (e !== void 0)
1731
+ for (const [i, s] of e)
1732
+ this.elementProperties.set(i, s);
1733
+ }
1734
+ this._$Eh = /* @__PURE__ */ new Map();
1735
+ for (const [e, i] of this.elementProperties) {
1736
+ const s = this._$Eu(e, i);
1737
+ s !== void 0 && this._$Eh.set(s, e);
1738
+ }
1739
+ this.elementStyles = this.finalizeStyles(this.styles);
1740
+ }
1741
+ static finalizeStyles(t) {
1742
+ const e = [];
1743
+ if (Array.isArray(t)) {
1744
+ const i = new Set(t.flat(1 / 0).reverse());
1745
+ for (const s of i)
1746
+ e.unshift(Fe(s));
1747
+ } else
1748
+ t !== void 0 && e.push(Fe(t));
1749
+ return e;
1750
+ }
1751
+ static _$Eu(t, e) {
1752
+ const i = e.attribute;
1753
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
1754
+ }
1755
+ constructor() {
1756
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
1757
+ }
1758
+ _$Ev() {
1759
+ var t;
1760
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
1761
+ }
1762
+ addController(t) {
1763
+ var e;
1764
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
1765
+ }
1766
+ removeController(t) {
1767
+ var e;
1768
+ (e = this._$EO) == null || e.delete(t);
1769
+ }
1770
+ _$E_() {
1771
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
1772
+ for (const i of e.keys())
1773
+ this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
1774
+ t.size > 0 && (this._$Ep = t);
1775
+ }
1776
+ createRenderRoot() {
1777
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1778
+ return ms(t, this.constructor.elementStyles), t;
1779
+ }
1780
+ connectedCallback() {
1781
+ var t;
1782
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
1783
+ var i;
1784
+ return (i = e.hostConnected) == null ? void 0 : i.call(e);
1785
+ });
1786
+ }
1787
+ enableUpdating(t) {
1788
+ }
1789
+ disconnectedCallback() {
1790
+ var t;
1791
+ (t = this._$EO) == null || t.forEach((e) => {
1792
+ var i;
1793
+ return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
1794
+ });
1795
+ }
1796
+ attributeChangedCallback(t, e, i) {
1797
+ this._$AK(t, i);
1798
+ }
1799
+ _$EC(t, e) {
1800
+ var n;
1801
+ const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
1802
+ if (s !== void 0 && i.reflect === !0) {
1803
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : At).toAttribute(e, i.type);
1804
+ this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
1805
+ }
1806
+ }
1807
+ _$AK(t, e) {
1808
+ var n;
1809
+ const i = this.constructor, s = i._$Eh.get(t);
1810
+ if (s !== void 0 && this._$Em !== s) {
1811
+ const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : At;
1812
+ this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
1813
+ }
1814
+ }
1815
+ requestUpdate(t, e, i) {
1816
+ if (t !== void 0) {
1817
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? pe)(this[t], e))
1818
+ return;
1819
+ this.P(t, e, i);
1820
+ }
1821
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
1822
+ }
1823
+ P(t, e, i) {
1824
+ this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
1825
+ }
1826
+ async _$ET() {
1827
+ this.isUpdatePending = !0;
1828
+ try {
1829
+ await this._$ES;
1830
+ } catch (e) {
1831
+ Promise.reject(e);
1832
+ }
1833
+ const t = this.scheduleUpdate();
1834
+ return t != null && await t, !this.isUpdatePending;
1835
+ }
1836
+ scheduleUpdate() {
1837
+ return this.performUpdate();
1838
+ }
1839
+ performUpdate() {
1840
+ var i;
1841
+ if (!this.isUpdatePending)
1842
+ return;
1843
+ if (!this.hasUpdated) {
1844
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
1845
+ for (const [n, o] of this._$Ep)
1846
+ this[n] = o;
1847
+ this._$Ep = void 0;
1848
+ }
1849
+ const s = this.constructor.elementProperties;
1850
+ if (s.size > 0)
1851
+ for (const [n, o] of s)
1852
+ o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
1853
+ }
1854
+ let t = !1;
1855
+ const e = this._$AL;
1856
+ try {
1857
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
1858
+ var n;
1859
+ return (n = s.hostUpdate) == null ? void 0 : n.call(s);
1860
+ }), this.update(e)) : this._$EU();
1861
+ } catch (s) {
1862
+ throw t = !1, this._$EU(), s;
1863
+ }
1864
+ t && this._$AE(e);
1865
+ }
1866
+ willUpdate(t) {
1867
+ }
1868
+ _$AE(t) {
1869
+ var e;
1870
+ (e = this._$EO) == null || e.forEach((i) => {
1871
+ var s;
1872
+ return (s = i.hostUpdated) == null ? void 0 : s.call(i);
1873
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
1874
+ }
1875
+ _$EU() {
1876
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
1877
+ }
1878
+ get updateComplete() {
1879
+ return this.getUpdateComplete();
1880
+ }
1881
+ getUpdateComplete() {
1882
+ return this._$ES;
1883
+ }
1884
+ shouldUpdate(t) {
1885
+ return !0;
1886
+ }
1887
+ update(t) {
1888
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
1889
+ }
1890
+ updated(t) {
1891
+ }
1892
+ firstUpdated(t) {
1893
+ }
1894
+ }
1895
+ z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[J("elementProperties")] = /* @__PURE__ */ new Map(), z[J("finalized")] = /* @__PURE__ */ new Map(), Vt == null || Vt({ ReactiveElement: z }), (R.reactiveElementVersions ?? (R.reactiveElementVersions = [])).push("2.0.4");
1896
+ /**
68
1897
  * @license
69
1898
  * Copyright 2017 Google LLC
70
1899
  * SPDX-License-Identifier: BSD-3-Clause
71
- */const tt=globalThis,St=tt.trustedTypes,Ge=St?St.createPolicy("lit-html",{createHTML:r=>r}):void 0,Er="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,Sr="?"+C,Ss=`<${Sr}>`,U=document,it=()=>U.createComment(""),st=r=>r===null||typeof r!="object"&&typeof r!="function",Cr=Array.isArray,Cs=r=>Cr(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Dt=`[
72
- \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ke=/-->/g,Ye=/>/g,O=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
73
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Xe=/'/g,Ze=/"/g,xr=/^(?:script|style|textarea|title)$/i,xs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),A=xs(1),H=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qe=new WeakMap,N=U.createTreeWalker(U,129);function Rr(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ge!==void 0?Ge.createHTML(t):t}const Rs=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=Q;for(let a=0;a<e;a++){const c=r[a];let l,u,h=-1,p=0;for(;p<c.length&&(o.lastIndex=p,u=o.exec(c),u!==null);)p=o.lastIndex,o===Q?u[1]==="!--"?o=Ke:u[1]!==void 0?o=Ye:u[2]!==void 0?(xr.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=O):u[3]!==void 0&&(o=O):o===O?u[0]===">"?(o=s??Q,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?O:u[3]==='"'?Ze:Xe):o===Ze||o===Xe?o=O:o===Ke||o===Ye?o=Q:(o=O,s=void 0);const m=o===O&&r[a+1].startsWith("/>")?" ":"";n+=o===Q?c+Ss:h>=0?(i.push(l),c.slice(0,h)+Er+c.slice(h)+C+m):c+C+(h===-2?a:m)}return[Rr(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};class nt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[l,u]=Rs(t,e);if(this.el=nt.createElement(l,i),N.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=N.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Er)){const p=u[o++],m=s.getAttribute(h).split(C),V=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:V[2],strings:m,ctor:V[1]==="."?Ts:V[1]==="?"?Os:V[1]==="@"?Is:Pt}),s.removeAttribute(h)}else h.startsWith(C)&&(c.push({type:6,index:n}),s.removeAttribute(h));if(xr.test(s.tagName)){const h=s.textContent.split(C),p=h.length-1;if(p>0){s.textContent=St?St.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],it()),N.nextNode(),c.push({type:2,index:++n});s.append(h[p],it())}}}else if(s.nodeType===8)if(s.data===Sr)c.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(C,h+1))!==-1;)c.push({type:7,index:n}),h+=C.length-1}n++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function K(r,t,e=r,i){var o,a;if(t===H)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=st(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=K(r,s._$AS(r,t.values),s,i)),t}class Ps{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??U).importNode(e,!0);N.currentNode=s;let n=N.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new lt(n,n.nextSibling,this,t):c.type===1?l=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(l=new Ns(n,this,t)),this._$AV.push(l),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=N.nextNode(),o++)}return N.currentNode=U,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class lt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),st(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Cs(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nt.createElement(Rr(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{const o=new Ps(s,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Qe.get(t.strings);return e===void 0&&Qe.set(t.strings,e=new nt(t)),e}k(t){Cr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new lt(this.S(it()),this.S(it()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Pt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=K(this,t,e,0),o=!st(t)||t!==this._$AH&&t!==H,o&&(this._$AH=t);else{const a=t;let c,l;for(t=n[0],c=0;c<n.length-1;c++)l=K(this,a[i+c],e,c),l===H&&(l=this._$AH[c]),o||(o=!st(l)||l!==this._$AH[c]),l===d?t=d:t!==d&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ts extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Os extends Pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Is extends Pt{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=K(this,t,e,0)??d)===H)return;const i=this._$AH,s=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==d&&(i===d||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ns{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const zt=tt.litHtmlPolyfillSupport;zt==null||zt(nt,lt),(tt.litHtmlVersions??(tt.litHtmlVersions=[])).push("3.1.3");const ks=(r,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new lt(t.insertBefore(it(),n),n,void 0,e??{})}return s._$AI(r),s};/**
1900
+ */
1901
+ const tt = globalThis, Et = tt.trustedTypes, Ge = Et ? Et.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Er = "$lit$", C = `lit$${Math.random().toFixed(9).slice(2)}$`, Sr = "?" + C, Ss = `<${Sr}>`, U = document, it = () => U.createComment(""), st = (r) => r === null || typeof r != "object" && typeof r != "function", Cr = Array.isArray, Cs = (r) => Cr(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Dt = `[
1902
+ \f\r]`, Q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ke = /-->/g, Ye = />/g, O = RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
1903
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Xe = /'/g, Ze = /"/g, xr = /^(?:script|style|textarea|title)$/i, xs = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = xs(1), H = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Qe = /* @__PURE__ */ new WeakMap(), N = U.createTreeWalker(U, 129);
1904
+ function Rr(r, t) {
1905
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
1906
+ throw Error("invalid template strings array");
1907
+ return Ge !== void 0 ? Ge.createHTML(t) : t;
1908
+ }
1909
+ const Rs = (r, t) => {
1910
+ const e = r.length - 1, i = [];
1911
+ let s, n = t === 2 ? "<svg>" : "", o = Q;
1912
+ for (let a = 0; a < e; a++) {
1913
+ const c = r[a];
1914
+ let l, u, h = -1, p = 0;
1915
+ for (; p < c.length && (o.lastIndex = p, u = o.exec(c), u !== null); )
1916
+ p = o.lastIndex, o === Q ? u[1] === "!--" ? o = Ke : u[1] !== void 0 ? o = Ye : u[2] !== void 0 ? (xr.test(u[2]) && (s = RegExp("</" + u[2], "g")), o = O) : u[3] !== void 0 && (o = O) : o === O ? u[0] === ">" ? (o = s ?? Q, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? O : u[3] === '"' ? Ze : Xe) : o === Ze || o === Xe ? o = O : o === Ke || o === Ye ? o = Q : (o = O, s = void 0);
1917
+ const m = o === O && r[a + 1].startsWith("/>") ? " " : "";
1918
+ n += o === Q ? c + Ss : h >= 0 ? (i.push(l), c.slice(0, h) + Er + c.slice(h) + C + m) : c + C + (h === -2 ? a : m);
1919
+ }
1920
+ return [Rr(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
1921
+ };
1922
+ class nt {
1923
+ constructor({ strings: t, _$litType$: e }, i) {
1924
+ let s;
1925
+ this.parts = [];
1926
+ let n = 0, o = 0;
1927
+ const a = t.length - 1, c = this.parts, [l, u] = Rs(t, e);
1928
+ if (this.el = nt.createElement(l, i), N.currentNode = this.el.content, e === 2) {
1929
+ const h = this.el.content.firstChild;
1930
+ h.replaceWith(...h.childNodes);
1931
+ }
1932
+ for (; (s = N.nextNode()) !== null && c.length < a; ) {
1933
+ if (s.nodeType === 1) {
1934
+ if (s.hasAttributes())
1935
+ for (const h of s.getAttributeNames())
1936
+ if (h.endsWith(Er)) {
1937
+ const p = u[o++], m = s.getAttribute(h).split(C), V = /([.?@])?(.*)/.exec(p);
1938
+ c.push({ type: 1, index: n, name: V[2], strings: m, ctor: V[1] === "." ? Ts : V[1] === "?" ? Os : V[1] === "@" ? Is : Rt }), s.removeAttribute(h);
1939
+ } else
1940
+ h.startsWith(C) && (c.push({ type: 6, index: n }), s.removeAttribute(h));
1941
+ if (xr.test(s.tagName)) {
1942
+ const h = s.textContent.split(C), p = h.length - 1;
1943
+ if (p > 0) {
1944
+ s.textContent = Et ? Et.emptyScript : "";
1945
+ for (let m = 0; m < p; m++)
1946
+ s.append(h[m], it()), N.nextNode(), c.push({ type: 2, index: ++n });
1947
+ s.append(h[p], it());
1948
+ }
1949
+ }
1950
+ } else if (s.nodeType === 8)
1951
+ if (s.data === Sr)
1952
+ c.push({ type: 2, index: n });
1953
+ else {
1954
+ let h = -1;
1955
+ for (; (h = s.data.indexOf(C, h + 1)) !== -1; )
1956
+ c.push({ type: 7, index: n }), h += C.length - 1;
1957
+ }
1958
+ n++;
1959
+ }
1960
+ }
1961
+ static createElement(t, e) {
1962
+ const i = U.createElement("template");
1963
+ return i.innerHTML = t, i;
1964
+ }
1965
+ }
1966
+ function K(r, t, e = r, i) {
1967
+ var o, a;
1968
+ if (t === H)
1969
+ return t;
1970
+ let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
1971
+ const n = st(t) ? void 0 : t._$litDirective$;
1972
+ return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = K(r, s._$AS(r, t.values), s, i)), t;
1973
+ }
1974
+ class Ps {
1975
+ constructor(t, e) {
1976
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
1977
+ }
1978
+ get parentNode() {
1979
+ return this._$AM.parentNode;
1980
+ }
1981
+ get _$AU() {
1982
+ return this._$AM._$AU;
1983
+ }
1984
+ u(t) {
1985
+ const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? U).importNode(e, !0);
1986
+ N.currentNode = s;
1987
+ let n = N.nextNode(), o = 0, a = 0, c = i[0];
1988
+ for (; c !== void 0; ) {
1989
+ if (o === c.index) {
1990
+ let l;
1991
+ c.type === 2 ? l = new lt(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new Ns(n, this, t)), this._$AV.push(l), c = i[++a];
1992
+ }
1993
+ o !== (c == null ? void 0 : c.index) && (n = N.nextNode(), o++);
1994
+ }
1995
+ return N.currentNode = U, s;
1996
+ }
1997
+ p(t) {
1998
+ let e = 0;
1999
+ for (const i of this._$AV)
2000
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
2001
+ }
2002
+ }
2003
+ class lt {
2004
+ get _$AU() {
2005
+ var t;
2006
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
2007
+ }
2008
+ constructor(t, e, i, s) {
2009
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
2010
+ }
2011
+ get parentNode() {
2012
+ let t = this._$AA.parentNode;
2013
+ const e = this._$AM;
2014
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
2015
+ }
2016
+ get startNode() {
2017
+ return this._$AA;
2018
+ }
2019
+ get endNode() {
2020
+ return this._$AB;
2021
+ }
2022
+ _$AI(t, e = this) {
2023
+ t = K(this, t, e), st(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Cs(t) ? this.k(t) : this._(t);
2024
+ }
2025
+ S(t) {
2026
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
2027
+ }
2028
+ T(t) {
2029
+ this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
2030
+ }
2031
+ _(t) {
2032
+ this._$AH !== d && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(U.createTextNode(t)), this._$AH = t;
2033
+ }
2034
+ $(t) {
2035
+ var n;
2036
+ const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = nt.createElement(Rr(i.h, i.h[0]), this.options)), i);
2037
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
2038
+ this._$AH.p(e);
2039
+ else {
2040
+ const o = new Ps(s, this), a = o.u(this.options);
2041
+ o.p(e), this.T(a), this._$AH = o;
2042
+ }
2043
+ }
2044
+ _$AC(t) {
2045
+ let e = Qe.get(t.strings);
2046
+ return e === void 0 && Qe.set(t.strings, e = new nt(t)), e;
2047
+ }
2048
+ k(t) {
2049
+ Cr(this._$AH) || (this._$AH = [], this._$AR());
2050
+ const e = this._$AH;
2051
+ let i, s = 0;
2052
+ for (const n of t)
2053
+ s === e.length ? e.push(i = new lt(this.S(it()), this.S(it()), this, this.options)) : i = e[s], i._$AI(n), s++;
2054
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
2055
+ }
2056
+ _$AR(t = this._$AA.nextSibling, e) {
2057
+ var i;
2058
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
2059
+ const s = t.nextSibling;
2060
+ t.remove(), t = s;
2061
+ }
2062
+ }
2063
+ setConnected(t) {
2064
+ var e;
2065
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
2066
+ }
2067
+ }
2068
+ class Rt {
2069
+ get tagName() {
2070
+ return this.element.tagName;
2071
+ }
2072
+ get _$AU() {
2073
+ return this._$AM._$AU;
2074
+ }
2075
+ constructor(t, e, i, s, n) {
2076
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
2077
+ }
2078
+ _$AI(t, e = this, i, s) {
2079
+ const n = this.strings;
2080
+ let o = !1;
2081
+ if (n === void 0)
2082
+ t = K(this, t, e, 0), o = !st(t) || t !== this._$AH && t !== H, o && (this._$AH = t);
2083
+ else {
2084
+ const a = t;
2085
+ let c, l;
2086
+ for (t = n[0], c = 0; c < n.length - 1; c++)
2087
+ l = K(this, a[i + c], e, c), l === H && (l = this._$AH[c]), o || (o = !st(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
2088
+ }
2089
+ o && !s && this.j(t);
2090
+ }
2091
+ j(t) {
2092
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
2093
+ }
2094
+ }
2095
+ class Ts extends Rt {
2096
+ constructor() {
2097
+ super(...arguments), this.type = 3;
2098
+ }
2099
+ j(t) {
2100
+ this.element[this.name] = t === d ? void 0 : t;
2101
+ }
2102
+ }
2103
+ class Os extends Rt {
2104
+ constructor() {
2105
+ super(...arguments), this.type = 4;
2106
+ }
2107
+ j(t) {
2108
+ this.element.toggleAttribute(this.name, !!t && t !== d);
2109
+ }
2110
+ }
2111
+ class Is extends Rt {
2112
+ constructor(t, e, i, s, n) {
2113
+ super(t, e, i, s, n), this.type = 5;
2114
+ }
2115
+ _$AI(t, e = this) {
2116
+ if ((t = K(this, t, e, 0) ?? d) === H)
2117
+ return;
2118
+ const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
2119
+ s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
2120
+ }
2121
+ handleEvent(t) {
2122
+ var e;
2123
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
2124
+ }
2125
+ }
2126
+ class Ns {
2127
+ constructor(t, e, i) {
2128
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
2129
+ }
2130
+ get _$AU() {
2131
+ return this._$AM._$AU;
2132
+ }
2133
+ _$AI(t) {
2134
+ K(this, t);
2135
+ }
2136
+ }
2137
+ const zt = tt.litHtmlPolyfillSupport;
2138
+ zt == null || zt(nt, lt), (tt.litHtmlVersions ?? (tt.litHtmlVersions = [])).push("3.1.3");
2139
+ const ks = (r, t, e) => {
2140
+ const i = (e == null ? void 0 : e.renderBefore) ?? t;
2141
+ let s = i._$litPart$;
2142
+ if (s === void 0) {
2143
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
2144
+ i._$litPart$ = s = new lt(t.insertBefore(it(), n), n, void 0, e ?? {});
2145
+ }
2146
+ return s._$AI(r), s;
2147
+ };
2148
+ /**
74
2149
  * @license
75
2150
  * Copyright 2017 Google LLC
76
2151
  * SPDX-License-Identifier: BSD-3-Clause
77
- */let E=class extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ks(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return H}};var sr;E._$litElement$=!0,E.finalized=!0,(sr=globalThis.litElementHydrateSupport)==null||sr.call(globalThis,{LitElement:E});const Bt=globalThis.litElementPolyfillSupport;Bt==null||Bt({LitElement:E});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");/**
2152
+ */
2153
+ let E = class extends z {
2154
+ constructor() {
2155
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2156
+ }
2157
+ createRenderRoot() {
2158
+ var e;
2159
+ const t = super.createRenderRoot();
2160
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
2161
+ }
2162
+ update(t) {
2163
+ const e = this.render();
2164
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ks(e, this.renderRoot, this.renderOptions);
2165
+ }
2166
+ connectedCallback() {
2167
+ var t;
2168
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
2169
+ }
2170
+ disconnectedCallback() {
2171
+ var t;
2172
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
2173
+ }
2174
+ render() {
2175
+ return H;
2176
+ }
2177
+ };
2178
+ var sr;
2179
+ E._$litElement$ = !0, E.finalized = !0, (sr = globalThis.litElementHydrateSupport) == null || sr.call(globalThis, { LitElement: E });
2180
+ const Bt = globalThis.litElementPolyfillSupport;
2181
+ Bt == null || Bt({ LitElement: E });
2182
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
2183
+ /**
78
2184
  * @license
79
2185
  * Copyright 2017 Google LLC
80
2186
  * SPDX-License-Identifier: BSD-3-Clause
81
- */const Y=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
2187
+ */
2188
+ const Y = (r) => (t, e) => {
2189
+ e !== void 0 ? e.addInitializer(() => {
2190
+ customElements.define(r, t);
2191
+ }) : customElements.define(r, t);
2192
+ };
2193
+ /**
82
2194
  * @license
83
2195
  * Copyright 2017 Google LLC
84
2196
  * SPDX-License-Identifier: BSD-3-Clause
85
- */const Ms={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:pe},Us=(r=Ms,t,e)=>{const{kind:i,metadata:s}=e;let n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(e.name,r),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,r)},init(a){return a!==void 0&&this.P(o,void 0,r),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,r)}}throw Error("Unsupported decorator location: "+i)};function w(r){return(t,e)=>typeof e=="object"?Us(r,t,e):((i,s,n)=>{const o=s.hasOwnProperty(n);return s.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(s,n):void 0})(r,t,e)}/**
2197
+ */
2198
+ const Ms = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: pe }, Us = (r = Ms, t, e) => {
2199
+ const { kind: i, metadata: s } = e;
2200
+ let n = globalThis.litPropertyMetadata.get(s);
2201
+ if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
2202
+ const { name: o } = e;
2203
+ return { set(a) {
2204
+ const c = t.get.call(this);
2205
+ t.set.call(this, a), this.requestUpdate(o, c, r);
2206
+ }, init(a) {
2207
+ return a !== void 0 && this.P(o, void 0, r), a;
2208
+ } };
2209
+ }
2210
+ if (i === "setter") {
2211
+ const { name: o } = e;
2212
+ return function(a) {
2213
+ const c = this[o];
2214
+ t.call(this, a), this.requestUpdate(o, c, r);
2215
+ };
2216
+ }
2217
+ throw Error("Unsupported decorator location: " + i);
2218
+ };
2219
+ function w(r) {
2220
+ return (t, e) => typeof e == "object" ? Us(r, t, e) : ((i, s, n) => {
2221
+ const o = s.hasOwnProperty(n);
2222
+ return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
2223
+ })(r, t, e);
2224
+ }
2225
+ /**
86
2226
  * @license
87
2227
  * Copyright 2017 Google LLC
88
2228
  * SPDX-License-Identifier: BSD-3-Clause
89
- */function fe(r){return w({...r,state:!0,attribute:!1})}/**
2229
+ */
2230
+ function fe(r) {
2231
+ return w({ ...r, state: !0, attribute: !1 });
2232
+ }
2233
+ /**
90
2234
  * @license
91
2235
  * Copyright 2017 Google LLC
92
2236
  * SPDX-License-Identifier: BSD-3-Clause
93
- */const Hs=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);/**
2237
+ */
2238
+ const Hs = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
2239
+ /**
94
2240
  * @license
95
2241
  * Copyright 2017 Google LLC
96
2242
  * SPDX-License-Identifier: BSD-3-Clause
97
- */function js(r,t){return(e,i,s)=>{const n=o=>{var a;return((a=o.renderRoot)==null?void 0:a.querySelector(r))??null};return Hs(e,i,{get(){return n(this)}})}}const ht={header:"header-region",actionsToolbar:"actions-toolbar-region",main:"main-region",sidebar:"asidebar-region",footer:"footer-region"};function v(r,t,e,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,e,i);else for(var a=r.length-1;a>=0;a--)(o=r[a])&&(n=(s<3?o(n):s>3?o(t,e,n):o(t,e))||n);return s>3&&n&&Object.defineProperty(t,e,n),n}/**
2243
+ */
2244
+ function js(r, t) {
2245
+ return (e, i, s) => {
2246
+ const n = (o) => {
2247
+ var a;
2248
+ return ((a = o.renderRoot) == null ? void 0 : a.querySelector(r)) ?? null;
2249
+ };
2250
+ return Hs(e, i, { get() {
2251
+ return n(this);
2252
+ } });
2253
+ };
2254
+ }
2255
+ const Pt = {
2256
+ header: "header-region",
2257
+ actionsToolbar: "actions-toolbar-region",
2258
+ main: "main-region",
2259
+ sidebar: "asidebar-region",
2260
+ footer: "footer-region"
2261
+ };
2262
+ function v(r, t, e, i) {
2263
+ var s = arguments.length, n = s < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, e) : i, o;
2264
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
2265
+ n = Reflect.decorate(r, t, e, i);
2266
+ else
2267
+ for (var a = r.length - 1; a >= 0; a--)
2268
+ (o = r[a]) && (n = (s < 3 ? o(n) : s > 3 ? o(t, e, n) : o(t, e)) || n);
2269
+ return s > 3 && n && Object.defineProperty(t, e, n), n;
2270
+ }
2271
+ /**
98
2272
  * @license
99
2273
  * Copyright 2022 Google LLC
100
2274
  * SPDX-License-Identifier: Apache-2.0
101
- */class Ls extends E{render(){return A`<slot></slot>`}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/**
2275
+ */
2276
+ class Ls extends E {
2277
+ render() {
2278
+ return A`<slot></slot>`;
2279
+ }
2280
+ connectedCallback() {
2281
+ if (super.connectedCallback(), this.getAttribute("aria-hidden") === "false") {
2282
+ this.removeAttribute("aria-hidden");
2283
+ return;
2284
+ }
2285
+ this.setAttribute("aria-hidden", "true");
2286
+ }
2287
+ }
2288
+ /**
102
2289
  * @license
103
2290
  * Copyright 2024 Google LLC
104
2291
  * SPDX-License-Identifier: Apache-2.0
105
- */const Vs=L`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
106
- `;/**
2292
+ */
2293
+ const Vs = L`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
2294
+ `;
2295
+ /**
107
2296
  * @license
108
2297
  * Copyright 2022 Google LLC
109
2298
  * SPDX-License-Identifier: Apache-2.0
110
- */let Zt=class extends Ls{};Zt.styles=[Vs];Zt=v([Y("md-icon")],Zt);/**
2299
+ */
2300
+ let Zt = class extends Ls {
2301
+ };
2302
+ Zt.styles = [Vs];
2303
+ Zt = v([
2304
+ Y("md-icon")
2305
+ ], Zt);
2306
+ /**
111
2307
  * @license
112
2308
  * Copyright 2023 Google LLC
113
2309
  * SPDX-License-Identifier: Apache-2.0
114
- */const Pr=Symbol("attachableController");let yt;yt=new MutationObserver(r=>{var t;for(const e of r)(t=e.target[Pr])==null||t.hostConnected()});class Tr{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){t===null?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[Pr]=this,yt==null||yt.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}/**
2310
+ */
2311
+ const Pr = Symbol("attachableController");
2312
+ let mt;
2313
+ mt = new MutationObserver((r) => {
2314
+ var t;
2315
+ for (const e of r)
2316
+ (t = e.target[Pr]) == null || t.hostConnected();
2317
+ });
2318
+ class Tr {
2319
+ get htmlFor() {
2320
+ return this.host.getAttribute("for");
2321
+ }
2322
+ set htmlFor(t) {
2323
+ t === null ? this.host.removeAttribute("for") : this.host.setAttribute("for", t);
2324
+ }
2325
+ get control() {
2326
+ return this.host.hasAttribute("for") ? !this.htmlFor || !this.host.isConnected ? null : this.host.getRootNode().querySelector(`#${this.htmlFor}`) : this.currentControl || this.host.parentElement;
2327
+ }
2328
+ set control(t) {
2329
+ t ? this.attach(t) : this.detach();
2330
+ }
2331
+ /**
2332
+ * Creates a new controller for an `Attachable` element.
2333
+ *
2334
+ * @param host The `Attachable` element.
2335
+ * @param onControlChange A callback with two parameters for the previous and
2336
+ * next control. An `Attachable` element may perform setup or teardown
2337
+ * logic whenever the control changes.
2338
+ */
2339
+ constructor(t, e) {
2340
+ this.host = t, this.onControlChange = e, this.currentControl = null, t.addController(this), t[Pr] = this, mt == null || mt.observe(t, { attributeFilter: ["for"] });
2341
+ }
2342
+ attach(t) {
2343
+ t !== this.currentControl && (this.setCurrentControl(t), this.host.removeAttribute("for"));
2344
+ }
2345
+ detach() {
2346
+ this.setCurrentControl(null), this.host.setAttribute("for", "");
2347
+ }
2348
+ /** @private */
2349
+ hostConnected() {
2350
+ this.setCurrentControl(this.control);
2351
+ }
2352
+ /** @private */
2353
+ hostDisconnected() {
2354
+ this.setCurrentControl(null);
2355
+ }
2356
+ setCurrentControl(t) {
2357
+ this.onControlChange(this.currentControl, t), this.currentControl = t;
2358
+ }
2359
+ }
2360
+ /**
115
2361
  * @license
116
2362
  * Copyright 2021 Google LLC
117
2363
  * SPDX-License-Identifier: Apache-2.0
118
- */const Ds=["focusin","focusout","pointerdown"];class ge extends E{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Tr(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){var e;if(!t[Je]){switch(t.type){default:return;case"focusin":this.visible=((e=this.control)==null?void 0:e.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}t[Je]=!0}}onControlChange(t,e){for(const i of Ds)t==null||t.removeEventListener(i,this),e==null||e.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}v([w({type:Boolean,reflect:!0})],ge.prototype,"visible",void 0);v([w({type:Boolean,reflect:!0})],ge.prototype,"inward",void 0);const Je=Symbol("handledByFocusRing");/**
2364
+ */
2365
+ const Ds = ["focusin", "focusout", "pointerdown"];
2366
+ class ge extends E {
2367
+ constructor() {
2368
+ super(...arguments), this.visible = !1, this.inward = !1, this.attachableController = new Tr(this, this.onControlChange.bind(this));
2369
+ }
2370
+ get htmlFor() {
2371
+ return this.attachableController.htmlFor;
2372
+ }
2373
+ set htmlFor(t) {
2374
+ this.attachableController.htmlFor = t;
2375
+ }
2376
+ get control() {
2377
+ return this.attachableController.control;
2378
+ }
2379
+ set control(t) {
2380
+ this.attachableController.control = t;
2381
+ }
2382
+ attach(t) {
2383
+ this.attachableController.attach(t);
2384
+ }
2385
+ detach() {
2386
+ this.attachableController.detach();
2387
+ }
2388
+ connectedCallback() {
2389
+ super.connectedCallback(), this.setAttribute("aria-hidden", "true");
2390
+ }
2391
+ /** @private */
2392
+ handleEvent(t) {
2393
+ var e;
2394
+ if (!t[Je]) {
2395
+ switch (t.type) {
2396
+ default:
2397
+ return;
2398
+ case "focusin":
2399
+ this.visible = ((e = this.control) == null ? void 0 : e.matches(":focus-visible")) ?? !1;
2400
+ break;
2401
+ case "focusout":
2402
+ case "pointerdown":
2403
+ this.visible = !1;
2404
+ break;
2405
+ }
2406
+ t[Je] = !0;
2407
+ }
2408
+ }
2409
+ onControlChange(t, e) {
2410
+ for (const i of Ds)
2411
+ t == null || t.removeEventListener(i, this), e == null || e.addEventListener(i, this);
2412
+ }
2413
+ update(t) {
2414
+ t.has("visible") && this.dispatchEvent(new Event("visibility-changed")), super.update(t);
2415
+ }
2416
+ }
2417
+ v([
2418
+ w({ type: Boolean, reflect: !0 })
2419
+ ], ge.prototype, "visible", void 0);
2420
+ v([
2421
+ w({ type: Boolean, reflect: !0 })
2422
+ ], ge.prototype, "inward", void 0);
2423
+ const Je = Symbol("handledByFocusRing");
2424
+ /**
119
2425
  * @license
120
2426
  * Copyright 2024 Google LLC
121
2427
  * SPDX-License-Identifier: Apache-2.0
122
- */const zs=L`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
123
- `;/**
2428
+ */
2429
+ const zs = L`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
2430
+ `;
2431
+ /**
124
2432
  * @license
125
2433
  * Copyright 2021 Google LLC
126
2434
  * SPDX-License-Identifier: Apache-2.0
127
- */let Qt=class extends ge{};Qt.styles=[zs];Qt=v([Y("md-focus-ring")],Qt);/**
2435
+ */
2436
+ let Qt = class extends ge {
2437
+ };
2438
+ Qt.styles = [zs];
2439
+ Qt = v([
2440
+ Y("md-focus-ring")
2441
+ ], Qt);
2442
+ /**
128
2443
  * @license
129
2444
  * Copyright 2017 Google LLC
130
2445
  * SPDX-License-Identifier: BSD-3-Clause
131
- */const Bs={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fs=r=>(...t)=>({_$litDirective$:r,values:t});class qs{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
2446
+ */
2447
+ const Bs = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Fs = (r) => (...t) => ({ _$litDirective$: r, values: t });
2448
+ class qs {
2449
+ constructor(t) {
2450
+ }
2451
+ get _$AU() {
2452
+ return this._$AM._$AU;
2453
+ }
2454
+ _$AT(t, e, i) {
2455
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
2456
+ }
2457
+ _$AS(t, e) {
2458
+ return this.update(t, e);
2459
+ }
2460
+ update(t, e) {
2461
+ return this.render(...e);
2462
+ }
2463
+ }
2464
+ /**
132
2465
  * @license
133
2466
  * Copyright 2018 Google LLC
134
2467
  * SPDX-License-Identifier: BSD-3-Clause
135
- */const Or=Fs(class extends qs{constructor(r){var t;if(super(r),r.type!==Bs.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,s;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((i=this.nt)!=null&&i.has(n))&&this.st.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(s=this.nt)!=null&&s.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return H}});/**
2468
+ */
2469
+ const Or = Fs(class extends qs {
2470
+ constructor(r) {
2471
+ var t;
2472
+ if (super(r), r.type !== Bs.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
2473
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
2474
+ }
2475
+ render(r) {
2476
+ return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
2477
+ }
2478
+ update(r, [t]) {
2479
+ var i, s;
2480
+ if (this.st === void 0) {
2481
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
2482
+ for (const n in t)
2483
+ t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
2484
+ return this.render(t);
2485
+ }
2486
+ const e = r.element.classList;
2487
+ for (const n of this.st)
2488
+ n in t || (e.remove(n), this.st.delete(n));
2489
+ for (const n in t) {
2490
+ const o = !!t[n];
2491
+ o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
2492
+ }
2493
+ return H;
2494
+ }
2495
+ });
2496
+ /**
136
2497
  * @license
137
2498
  * Copyright 2021 Google LLC
138
2499
  * SPDX-License-Identifier: Apache-2.0
139
- */const Ws={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};/**
2500
+ */
2501
+ const Ws = {
2502
+ STANDARD: "cubic-bezier(0.2, 0, 0, 1)",
2503
+ STANDARD_ACCELERATE: "cubic-bezier(.3,0,1,1)",
2504
+ STANDARD_DECELERATE: "cubic-bezier(0,0,0,1)",
2505
+ EMPHASIZED: "cubic-bezier(.3,0,0,1)",
2506
+ EMPHASIZED_ACCELERATE: "cubic-bezier(.3,0,.8,.15)",
2507
+ EMPHASIZED_DECELERATE: "cubic-bezier(.05,.7,.1,1)"
2508
+ };
2509
+ /**
140
2510
  * @license
141
2511
  * Copyright 2022 Google LLC
142
2512
  * SPDX-License-Identifier: Apache-2.0
143
- */const Gs=450,tr=225,Ks=.2,Ys=10,Xs=75,Zs=.35,Qs="::after",Js="forwards";var _;(function(r){r[r.INACTIVE=0]="INACTIVE",r[r.TOUCH_DELAY=1]="TOUCH_DELAY",r[r.HOLDING=2]="HOLDING",r[r.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(_||(_={}));const tn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],en=150,Ft=window.matchMedia("(forced-colors: active)");class ut extends E{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=_.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Tr(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return A`<div class="surface ${Or(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==_.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state===_.HOLDING){this.state=_.WAITING_FOR_CLICK;return}if(this.state===_.TOUCH_DELAY){this.state=_.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t)){this.state=_.WAITING_FOR_CLICK,this.startPressAnimation(t);return}this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=_.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,en)}),this.state===_.TOUCH_DELAY&&(this.state=_.HOLDING,this.startPressAnimation(t)))}}handleClick(){if(!this.disabled){if(this.state===_.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===_.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),i=Math.max(t,e),s=Math.max(Zs*i,Xs),n=Math.floor(i*Ks),a=Math.sqrt(e**2+t**2)+Ys;this.initialSize=n,this.rippleScale=`${(a+s)/n}`,this.rippleSize=`${n}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:i}=window,{left:s,top:n}=this.getBoundingClientRect(),o=e+s,a=i+n,{pageX:c,pageY:l}=t;return{x:c-o,y:l-a}}getTranslationCoordinates(t){const{height:e,width:i}=this.getBoundingClientRect(),s={x:(i-this.initialSize)/2,y:(e-this.initialSize)/2};let n;return t instanceof PointerEvent?n=this.getNormalizedPointerEventCoords(t):n={x:i/2,y:e/2},n={x:n.x-this.initialSize/2,y:n.y-this.initialSize/2},{startPoint:n,endPoint:s}}startPressAnimation(t){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:i}=this.getTranslationCoordinates(t),s=`${e.x}px, ${e.y}px`,n=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${s}) scale(1)`,`translate(${n}) scale(${this.rippleScale})`]},{pseudoElement:Qs,duration:Gs,easing:Ws.STANDARD,fill:Js})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=_.INACTIVE;const t=this.growAnimation;let e=1/0;if(typeof(t==null?void 0:t.currentTime)=="number"?e=t.currentTime:t!=null&&t.currentTime&&(e=t.currentTime.to("ms").value),e>=tr){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,tr-e)}),this.growAnimation===t&&(this.pressed=!1)}shouldReactToEvent(t){if(this.disabled||!t.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if(t.type==="pointerenter"||t.type==="pointerleave")return!this.isTouch(t);const e=t.buttons===1;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:i,left:s,bottom:n,right:o}=this.getBoundingClientRect();return t>=s&&t<=o&&e>=i&&e<=n}isTouch({pointerType:t}){return t==="touch"}async handleEvent(t){if(!(Ft!=null&&Ft.matches))switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t);break}}onControlChange(t,e){for(const i of tn)t==null||t.removeEventListener(i,this),e==null||e.addEventListener(i,this)}}v([w({type:Boolean,reflect:!0})],ut.prototype,"disabled",void 0);v([fe()],ut.prototype,"hovered",void 0);v([fe()],ut.prototype,"pressed",void 0);v([js(".surface")],ut.prototype,"mdRoot",void 0);/**
2513
+ */
2514
+ const Gs = 450, tr = 225, Ks = 0.2, Ys = 10, Xs = 75, Zs = 0.35, Qs = "::after", Js = "forwards";
2515
+ var _;
2516
+ (function(r) {
2517
+ r[r.INACTIVE = 0] = "INACTIVE", r[r.TOUCH_DELAY = 1] = "TOUCH_DELAY", r[r.HOLDING = 2] = "HOLDING", r[r.WAITING_FOR_CLICK = 3] = "WAITING_FOR_CLICK";
2518
+ })(_ || (_ = {}));
2519
+ const tn = [
2520
+ "click",
2521
+ "contextmenu",
2522
+ "pointercancel",
2523
+ "pointerdown",
2524
+ "pointerenter",
2525
+ "pointerleave",
2526
+ "pointerup"
2527
+ ], en = 150, Ft = window.matchMedia("(forced-colors: active)");
2528
+ class ht extends E {
2529
+ constructor() {
2530
+ super(...arguments), this.disabled = !1, this.hovered = !1, this.pressed = !1, this.rippleSize = "", this.rippleScale = "", this.initialSize = 0, this.state = _.INACTIVE, this.checkBoundsAfterContextMenu = !1, this.attachableController = new Tr(this, this.onControlChange.bind(this));
2531
+ }
2532
+ get htmlFor() {
2533
+ return this.attachableController.htmlFor;
2534
+ }
2535
+ set htmlFor(t) {
2536
+ this.attachableController.htmlFor = t;
2537
+ }
2538
+ get control() {
2539
+ return this.attachableController.control;
2540
+ }
2541
+ set control(t) {
2542
+ this.attachableController.control = t;
2543
+ }
2544
+ attach(t) {
2545
+ this.attachableController.attach(t);
2546
+ }
2547
+ detach() {
2548
+ this.attachableController.detach();
2549
+ }
2550
+ connectedCallback() {
2551
+ super.connectedCallback(), this.setAttribute("aria-hidden", "true");
2552
+ }
2553
+ render() {
2554
+ const t = {
2555
+ hovered: this.hovered,
2556
+ pressed: this.pressed
2557
+ };
2558
+ return A`<div class="surface ${Or(t)}"></div>`;
2559
+ }
2560
+ update(t) {
2561
+ t.has("disabled") && this.disabled && (this.hovered = !1, this.pressed = !1), super.update(t);
2562
+ }
2563
+ /**
2564
+ * TODO(b/269799771): make private
2565
+ * @private only public for slider
2566
+ */
2567
+ handlePointerenter(t) {
2568
+ this.shouldReactToEvent(t) && (this.hovered = !0);
2569
+ }
2570
+ /**
2571
+ * TODO(b/269799771): make private
2572
+ * @private only public for slider
2573
+ */
2574
+ handlePointerleave(t) {
2575
+ this.shouldReactToEvent(t) && (this.hovered = !1, this.state !== _.INACTIVE && this.endPressAnimation());
2576
+ }
2577
+ handlePointerup(t) {
2578
+ if (this.shouldReactToEvent(t)) {
2579
+ if (this.state === _.HOLDING) {
2580
+ this.state = _.WAITING_FOR_CLICK;
2581
+ return;
2582
+ }
2583
+ if (this.state === _.TOUCH_DELAY) {
2584
+ this.state = _.WAITING_FOR_CLICK, this.startPressAnimation(this.rippleStartEvent);
2585
+ return;
2586
+ }
2587
+ }
2588
+ }
2589
+ async handlePointerdown(t) {
2590
+ if (this.shouldReactToEvent(t)) {
2591
+ if (this.rippleStartEvent = t, !this.isTouch(t)) {
2592
+ this.state = _.WAITING_FOR_CLICK, this.startPressAnimation(t);
2593
+ return;
2594
+ }
2595
+ this.checkBoundsAfterContextMenu && !this.inBounds(t) || (this.checkBoundsAfterContextMenu = !1, this.state = _.TOUCH_DELAY, await new Promise((e) => {
2596
+ setTimeout(e, en);
2597
+ }), this.state === _.TOUCH_DELAY && (this.state = _.HOLDING, this.startPressAnimation(t)));
2598
+ }
2599
+ }
2600
+ handleClick() {
2601
+ if (!this.disabled) {
2602
+ if (this.state === _.WAITING_FOR_CLICK) {
2603
+ this.endPressAnimation();
2604
+ return;
2605
+ }
2606
+ this.state === _.INACTIVE && (this.startPressAnimation(), this.endPressAnimation());
2607
+ }
2608
+ }
2609
+ handlePointercancel(t) {
2610
+ this.shouldReactToEvent(t) && this.endPressAnimation();
2611
+ }
2612
+ handleContextmenu() {
2613
+ this.disabled || (this.checkBoundsAfterContextMenu = !0, this.endPressAnimation());
2614
+ }
2615
+ determineRippleSize() {
2616
+ const { height: t, width: e } = this.getBoundingClientRect(), i = Math.max(t, e), s = Math.max(Zs * i, Xs), n = Math.floor(i * Ks), a = Math.sqrt(e ** 2 + t ** 2) + Ys;
2617
+ this.initialSize = n, this.rippleScale = `${(a + s) / n}`, this.rippleSize = `${n}px`;
2618
+ }
2619
+ getNormalizedPointerEventCoords(t) {
2620
+ const { scrollX: e, scrollY: i } = window, { left: s, top: n } = this.getBoundingClientRect(), o = e + s, a = i + n, { pageX: c, pageY: l } = t;
2621
+ return { x: c - o, y: l - a };
2622
+ }
2623
+ getTranslationCoordinates(t) {
2624
+ const { height: e, width: i } = this.getBoundingClientRect(), s = {
2625
+ x: (i - this.initialSize) / 2,
2626
+ y: (e - this.initialSize) / 2
2627
+ };
2628
+ let n;
2629
+ return t instanceof PointerEvent ? n = this.getNormalizedPointerEventCoords(t) : n = {
2630
+ x: i / 2,
2631
+ y: e / 2
2632
+ }, n = {
2633
+ x: n.x - this.initialSize / 2,
2634
+ y: n.y - this.initialSize / 2
2635
+ }, { startPoint: n, endPoint: s };
2636
+ }
2637
+ startPressAnimation(t) {
2638
+ var o;
2639
+ if (!this.mdRoot)
2640
+ return;
2641
+ this.pressed = !0, (o = this.growAnimation) == null || o.cancel(), this.determineRippleSize();
2642
+ const { startPoint: e, endPoint: i } = this.getTranslationCoordinates(t), s = `${e.x}px, ${e.y}px`, n = `${i.x}px, ${i.y}px`;
2643
+ this.growAnimation = this.mdRoot.animate({
2644
+ top: [0, 0],
2645
+ left: [0, 0],
2646
+ height: [this.rippleSize, this.rippleSize],
2647
+ width: [this.rippleSize, this.rippleSize],
2648
+ transform: [
2649
+ `translate(${s}) scale(1)`,
2650
+ `translate(${n}) scale(${this.rippleScale})`
2651
+ ]
2652
+ }, {
2653
+ pseudoElement: Qs,
2654
+ duration: Gs,
2655
+ easing: Ws.STANDARD,
2656
+ fill: Js
2657
+ });
2658
+ }
2659
+ async endPressAnimation() {
2660
+ this.rippleStartEvent = void 0, this.state = _.INACTIVE;
2661
+ const t = this.growAnimation;
2662
+ let e = 1 / 0;
2663
+ if (typeof (t == null ? void 0 : t.currentTime) == "number" ? e = t.currentTime : t != null && t.currentTime && (e = t.currentTime.to("ms").value), e >= tr) {
2664
+ this.pressed = !1;
2665
+ return;
2666
+ }
2667
+ await new Promise((i) => {
2668
+ setTimeout(i, tr - e);
2669
+ }), this.growAnimation === t && (this.pressed = !1);
2670
+ }
2671
+ /**
2672
+ * Returns `true` if
2673
+ * - the ripple element is enabled
2674
+ * - the pointer is primary for the input type
2675
+ * - the pointer is the pointer that started the interaction, or will start
2676
+ * the interaction
2677
+ * - the pointer is a touch, or the pointer state has the primary button
2678
+ * held, or the pointer is hovering
2679
+ */
2680
+ shouldReactToEvent(t) {
2681
+ if (this.disabled || !t.isPrimary || this.rippleStartEvent && this.rippleStartEvent.pointerId !== t.pointerId)
2682
+ return !1;
2683
+ if (t.type === "pointerenter" || t.type === "pointerleave")
2684
+ return !this.isTouch(t);
2685
+ const e = t.buttons === 1;
2686
+ return this.isTouch(t) || e;
2687
+ }
2688
+ /**
2689
+ * Check if the event is within the bounds of the element.
2690
+ *
2691
+ * This is only needed for the "stuck" contextmenu longpress on Chrome.
2692
+ */
2693
+ inBounds({ x: t, y: e }) {
2694
+ const { top: i, left: s, bottom: n, right: o } = this.getBoundingClientRect();
2695
+ return t >= s && t <= o && e >= i && e <= n;
2696
+ }
2697
+ isTouch({ pointerType: t }) {
2698
+ return t === "touch";
2699
+ }
2700
+ /** @private */
2701
+ async handleEvent(t) {
2702
+ if (!(Ft != null && Ft.matches))
2703
+ switch (t.type) {
2704
+ case "click":
2705
+ this.handleClick();
2706
+ break;
2707
+ case "contextmenu":
2708
+ this.handleContextmenu();
2709
+ break;
2710
+ case "pointercancel":
2711
+ this.handlePointercancel(t);
2712
+ break;
2713
+ case "pointerdown":
2714
+ await this.handlePointerdown(t);
2715
+ break;
2716
+ case "pointerenter":
2717
+ this.handlePointerenter(t);
2718
+ break;
2719
+ case "pointerleave":
2720
+ this.handlePointerleave(t);
2721
+ break;
2722
+ case "pointerup":
2723
+ this.handlePointerup(t);
2724
+ break;
2725
+ }
2726
+ }
2727
+ onControlChange(t, e) {
2728
+ for (const i of tn)
2729
+ t == null || t.removeEventListener(i, this), e == null || e.addEventListener(i, this);
2730
+ }
2731
+ }
2732
+ v([
2733
+ w({ type: Boolean, reflect: !0 })
2734
+ ], ht.prototype, "disabled", void 0);
2735
+ v([
2736
+ fe()
2737
+ ], ht.prototype, "hovered", void 0);
2738
+ v([
2739
+ fe()
2740
+ ], ht.prototype, "pressed", void 0);
2741
+ v([
2742
+ js(".surface")
2743
+ ], ht.prototype, "mdRoot", void 0);
2744
+ /**
144
2745
  * @license
145
2746
  * Copyright 2024 Google LLC
146
2747
  * SPDX-License-Identifier: Apache-2.0
147
- */const rn=L`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
148
- `;/**
2748
+ */
2749
+ const rn = L`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
2750
+ `;
2751
+ /**
149
2752
  * @license
150
2753
  * Copyright 2022 Google LLC
151
2754
  * SPDX-License-Identifier: Apache-2.0
152
- */let Jt=class extends ut{};Jt.styles=[rn];Jt=v([Y("md-ripple")],Jt);/**
2755
+ */
2756
+ let Jt = class extends ht {
2757
+ };
2758
+ Jt.styles = [rn];
2759
+ Jt = v([
2760
+ Y("md-ripple")
2761
+ ], Jt);
2762
+ /**
153
2763
  * @license
154
2764
  * Copyright 2020 Google LLC
155
2765
  * SPDX-License-Identifier: BSD-3-Clause
156
- */const Ir=Symbol.for(""),sn=r=>{if((r==null?void 0:r.r)===Ir)return r==null?void 0:r._$litStatic$},er=(r,...t)=>({_$litStatic$:t.reduce((e,i,s)=>e+(n=>{if(n._$litStatic$!==void 0)return n._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
157
- take care to ensure page security.`)})(i)+r[s+1],r[0]),r:Ir}),rr=new Map,nn=r=>(t,...e)=>{const i=e.length;let s,n;const o=[],a=[];let c,l=0,u=!1;for(;l<i;){for(c=t[l];l<i&&(n=e[l],(s=sn(n))!==void 0);)c+=s+t[++l],u=!0;l!==i&&a.push(n),o.push(c),l++}if(l===i&&o.push(t[i]),u){const h=o.join("$$lit$$");(t=rr.get(h))===void 0&&(o.raw=o,rr.set(h,t=o)),e=a}return r(t,...e)},on=nn(A);/**
2766
+ */
2767
+ const Ir = Symbol.for(""), sn = (r) => {
2768
+ if ((r == null ? void 0 : r.r) === Ir)
2769
+ return r == null ? void 0 : r._$litStatic$;
2770
+ }, er = (r, ...t) => ({ _$litStatic$: t.reduce((e, i, s) => e + ((n) => {
2771
+ if (n._$litStatic$ !== void 0)
2772
+ return n._$litStatic$;
2773
+ throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
2774
+ take care to ensure page security.`);
2775
+ })(i) + r[s + 1], r[0]), r: Ir }), rr = /* @__PURE__ */ new Map(), nn = (r) => (t, ...e) => {
2776
+ const i = e.length;
2777
+ let s, n;
2778
+ const o = [], a = [];
2779
+ let c, l = 0, u = !1;
2780
+ for (; l < i; ) {
2781
+ for (c = t[l]; l < i && (n = e[l], (s = sn(n)) !== void 0); )
2782
+ c += s + t[++l], u = !0;
2783
+ l !== i && a.push(n), o.push(c), l++;
2784
+ }
2785
+ if (l === i && o.push(t[i]), u) {
2786
+ const h = o.join("$$lit$$");
2787
+ (t = rr.get(h)) === void 0 && (o.raw = o, rr.set(h, t = o)), e = a;
2788
+ }
2789
+ return r(t, ...e);
2790
+ }, on = nn(A);
2791
+ /**
158
2792
  * @license
159
2793
  * Copyright 2023 Google LLC
160
2794
  * SPDX-License-Identifier: Apache-2.0
161
- */const Nr=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];Nr.map(kr);function kr(r){return r.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}/**
2795
+ */
2796
+ const Nr = [
2797
+ "ariaAtomic",
2798
+ "ariaAutoComplete",
2799
+ "ariaBusy",
2800
+ "ariaChecked",
2801
+ "ariaColCount",
2802
+ "ariaColIndex",
2803
+ "ariaColSpan",
2804
+ "ariaCurrent",
2805
+ "ariaDisabled",
2806
+ "ariaExpanded",
2807
+ "ariaHasPopup",
2808
+ "ariaHidden",
2809
+ "ariaInvalid",
2810
+ "ariaKeyShortcuts",
2811
+ "ariaLabel",
2812
+ "ariaLevel",
2813
+ "ariaLive",
2814
+ "ariaModal",
2815
+ "ariaMultiLine",
2816
+ "ariaMultiSelectable",
2817
+ "ariaOrientation",
2818
+ "ariaPlaceholder",
2819
+ "ariaPosInSet",
2820
+ "ariaPressed",
2821
+ "ariaReadOnly",
2822
+ "ariaRequired",
2823
+ "ariaRoleDescription",
2824
+ "ariaRowCount",
2825
+ "ariaRowIndex",
2826
+ "ariaRowSpan",
2827
+ "ariaSelected",
2828
+ "ariaSetSize",
2829
+ "ariaSort",
2830
+ "ariaValueMax",
2831
+ "ariaValueMin",
2832
+ "ariaValueNow",
2833
+ "ariaValueText"
2834
+ ];
2835
+ Nr.map(kr);
2836
+ function kr(r) {
2837
+ return r.replace("aria", "aria-").replace(/Elements?/g, "").toLowerCase();
2838
+ }
2839
+ /**
162
2840
  * @license
163
2841
  * Copyright 2023 Google LLC
164
2842
  * SPDX-License-Identifier: Apache-2.0
165
- */function an(r){for(const t of Nr)r.createProperty(t,{attribute:kr(t),reflect:!0});r.addInitializer(t=>{const e={hostConnected(){t.setAttribute("role","presentation")}};t.addController(e)})}/**
2843
+ */
2844
+ function an(r) {
2845
+ for (const t of Nr)
2846
+ r.createProperty(t, {
2847
+ attribute: kr(t),
2848
+ reflect: !0
2849
+ });
2850
+ r.addInitializer((t) => {
2851
+ const e = {
2852
+ hostConnected() {
2853
+ t.setAttribute("role", "presentation");
2854
+ }
2855
+ };
2856
+ t.addController(e);
2857
+ });
2858
+ }
2859
+ /**
166
2860
  * @license
167
2861
  * Copyright 2023 Google LLC
168
2862
  * SPDX-License-Identifier: Apache-2.0
169
- */const Ct=Symbol("internals"),qt=Symbol("privateInternals");function cn(r){class t extends r{get[Ct](){return this[qt]||(this[qt]=this.attachInternals()),this[qt]}}return t}/**
2863
+ */
2864
+ const St = Symbol("internals"), qt = Symbol("privateInternals");
2865
+ function cn(r) {
2866
+ class t extends r {
2867
+ get [St]() {
2868
+ return this[qt] || (this[qt] = this.attachInternals()), this[qt];
2869
+ }
2870
+ }
2871
+ return t;
2872
+ }
2873
+ /**
170
2874
  * @license
171
2875
  * Copyright 2023 Google LLC
172
2876
  * SPDX-License-Identifier: Apache-2.0
173
- */function ln(r){r.addInitializer(t=>{const e=t;e.addEventListener("click",async i=>{const{type:s,[Ct]:n}=e,{form:o}=n;if(!(!o||s==="button")&&(await new Promise(a=>{setTimeout(a)}),!i.defaultPrevented)){if(s==="reset"){o.reset();return}o.addEventListener("submit",a=>{Object.defineProperty(a,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),n.setFormValue(e.value),o.requestSubmit()}})})}/**
2877
+ */
2878
+ function ln(r) {
2879
+ r.addInitializer((t) => {
2880
+ const e = t;
2881
+ e.addEventListener("click", async (i) => {
2882
+ const { type: s, [St]: n } = e, { form: o } = n;
2883
+ if (!(!o || s === "button") && (await new Promise((a) => {
2884
+ setTimeout(a);
2885
+ }), !i.defaultPrevented)) {
2886
+ if (s === "reset") {
2887
+ o.reset();
2888
+ return;
2889
+ }
2890
+ o.addEventListener("submit", (a) => {
2891
+ Object.defineProperty(a, "submitter", {
2892
+ configurable: !0,
2893
+ enumerable: !0,
2894
+ get: () => e
2895
+ });
2896
+ }, { capture: !0, once: !0 }), n.setFormValue(e.value), o.requestSubmit();
2897
+ }
2898
+ });
2899
+ });
2900
+ }
2901
+ /**
174
2902
  * @license
175
2903
  * Copyright 2022 Google LLC
176
2904
  * SPDX-License-Identifier: Apache-2.0
177
- */function ir(r,t=!0){return t&&getComputedStyle(r).getPropertyValue("direction").trim()==="rtl"}/**
2905
+ */
2906
+ function ir(r, t = !0) {
2907
+ return t && getComputedStyle(r).getPropertyValue("direction").trim() === "rtl";
2908
+ }
2909
+ /**
178
2910
  * @license
179
2911
  * Copyright 2018 Google LLC
180
2912
  * SPDX-License-Identifier: Apache-2.0
181
- */const hn=cn(E);class b extends hn{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=ir(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get form(){return this[Ct].form}get labels(){return this[Ct].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const t=this.href?er`div`:er`button`,{ariaLabel:e,ariaHasPopup:i,ariaExpanded:s}=this,n=e&&this.ariaLabelSelected,o=this.toggle?this.selected:d;let a=d;return this.href||(a=n&&this.selected?this.ariaLabelSelected:e),on`<${t}
2913
+ */
2914
+ const hn = cn(E);
2915
+ class b extends hn {
2916
+ constructor() {
2917
+ super(...arguments), this.disabled = !1, this.flipIconInRtl = !1, this.href = "", this.target = "", this.ariaLabelSelected = "", this.toggle = !1, this.selected = !1, this.type = "submit", this.value = "", this.flipIcon = ir(this, this.flipIconInRtl);
2918
+ }
2919
+ get name() {
2920
+ return this.getAttribute("name") ?? "";
2921
+ }
2922
+ set name(t) {
2923
+ this.setAttribute("name", t);
2924
+ }
2925
+ /**
2926
+ * The associated form element with which this element's value will submit.
2927
+ */
2928
+ get form() {
2929
+ return this[St].form;
2930
+ }
2931
+ /**
2932
+ * The labels this element is associated with.
2933
+ */
2934
+ get labels() {
2935
+ return this[St].labels;
2936
+ }
2937
+ /**
2938
+ * Link buttons cannot be disabled.
2939
+ */
2940
+ willUpdate() {
2941
+ this.href && (this.disabled = !1);
2942
+ }
2943
+ render() {
2944
+ const t = this.href ? er`div` : er`button`, { ariaLabel: e, ariaHasPopup: i, ariaExpanded: s } = this, n = e && this.ariaLabelSelected, o = this.toggle ? this.selected : d;
2945
+ let a = d;
2946
+ return this.href || (a = n && this.selected ? this.ariaLabelSelected : e), on`<${t}
182
2947
  class="icon-button ${Or(this.getRenderClasses())}"
183
2948
  id="button"
184
- aria-label="${a||d}"
185
- aria-haspopup="${!this.href&&i||d}"
186
- aria-expanded="${!this.href&&s||d}"
2949
+ aria-label="${a || d}"
2950
+ aria-haspopup="${!this.href && i || d}"
2951
+ aria-expanded="${!this.href && s || d}"
187
2952
  aria-pressed="${o}"
188
- ?disabled="${!this.href&&this.disabled}"
2953
+ ?disabled="${!this.href && this.disabled}"
189
2954
  @click="${this.handleClick}">
190
2955
  ${this.renderFocusRing()}
191
2956
  ${this.renderRipple()}
192
- ${this.selected?d:this.renderIcon()}
193
- ${this.selected?this.renderSelectedIcon():d}
2957
+ ${this.selected ? d : this.renderIcon()}
2958
+ ${this.selected ? this.renderSelectedIcon() : d}
194
2959
  ${this.renderTouchTarget()}
195
- ${this.href&&this.renderLink()}
196
- </${t}>`}renderLink(){const{ariaLabel:t}=this;return A`
2960
+ ${this.href && this.renderLink()}
2961
+ </${t}>`;
2962
+ }
2963
+ renderLink() {
2964
+ const { ariaLabel: t } = this;
2965
+ return A`
197
2966
  <a
198
2967
  class="link"
199
2968
  id="link"
200
2969
  href="${this.href}"
201
- target="${this.target||d}"
202
- aria-label="${t||d}"></a>
203
- `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return A`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return A`<span class="icon icon--selected"
2970
+ target="${this.target || d}"
2971
+ aria-label="${t || d}"></a>
2972
+ `;
2973
+ }
2974
+ getRenderClasses() {
2975
+ return {
2976
+ "flip-icon": this.flipIcon,
2977
+ selected: this.toggle && this.selected
2978
+ };
2979
+ }
2980
+ renderIcon() {
2981
+ return A`<span class="icon"><slot></slot></span>`;
2982
+ }
2983
+ renderSelectedIcon() {
2984
+ return A`<span class="icon icon--selected"
204
2985
  ><slot name="selected"><slot></slot></slot
205
- ></span>`}renderTouchTarget(){return A`<span class="touch"></span>`}renderFocusRing(){return A`<md-focus-ring
2986
+ ></span>`;
2987
+ }
2988
+ renderTouchTarget() {
2989
+ return A`<span class="touch"></span>`;
2990
+ }
2991
+ renderFocusRing() {
2992
+ return A`<md-focus-ring
206
2993
  part="focus-ring"
207
- for=${this.href?"link":"button"}></md-focus-ring>`}renderRipple(){return A`<md-ripple
208
- for=${this.href?"link":d}
209
- ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=ir(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(t){await 0,!(!this.toggle||this.disabled||t.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}an(b),ln(b);b.formAssociated=!0;b.shadowRootOptions={mode:"open",delegatesFocus:!0};v([w({type:Boolean,reflect:!0})],b.prototype,"disabled",void 0);v([w({type:Boolean,attribute:"flip-icon-in-rtl"})],b.prototype,"flipIconInRtl",void 0);v([w()],b.prototype,"href",void 0);v([w()],b.prototype,"target",void 0);v([w({attribute:"aria-label-selected"})],b.prototype,"ariaLabelSelected",void 0);v([w({type:Boolean})],b.prototype,"toggle",void 0);v([w({type:Boolean,reflect:!0})],b.prototype,"selected",void 0);v([w()],b.prototype,"type",void 0);v([w({reflect:!0})],b.prototype,"value",void 0);v([fe()],b.prototype,"flipIcon",void 0);/**
2994
+ for=${this.href ? "link" : "button"}></md-focus-ring>`;
2995
+ }
2996
+ renderRipple() {
2997
+ return A`<md-ripple
2998
+ for=${this.href ? "link" : d}
2999
+ ?disabled="${!this.href && this.disabled}"></md-ripple>`;
3000
+ }
3001
+ connectedCallback() {
3002
+ this.flipIcon = ir(this, this.flipIconInRtl), super.connectedCallback();
3003
+ }
3004
+ async handleClick(t) {
3005
+ await 0, !(!this.toggle || this.disabled || t.defaultPrevented) && (this.selected = !this.selected, this.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0 })));
3006
+ }
3007
+ }
3008
+ an(b), ln(b);
3009
+ b.formAssociated = !0;
3010
+ b.shadowRootOptions = {
3011
+ mode: "open",
3012
+ delegatesFocus: !0
3013
+ };
3014
+ v([
3015
+ w({ type: Boolean, reflect: !0 })
3016
+ ], b.prototype, "disabled", void 0);
3017
+ v([
3018
+ w({ type: Boolean, attribute: "flip-icon-in-rtl" })
3019
+ ], b.prototype, "flipIconInRtl", void 0);
3020
+ v([
3021
+ w()
3022
+ ], b.prototype, "href", void 0);
3023
+ v([
3024
+ w()
3025
+ ], b.prototype, "target", void 0);
3026
+ v([
3027
+ w({ attribute: "aria-label-selected" })
3028
+ ], b.prototype, "ariaLabelSelected", void 0);
3029
+ v([
3030
+ w({ type: Boolean })
3031
+ ], b.prototype, "toggle", void 0);
3032
+ v([
3033
+ w({ type: Boolean, reflect: !0 })
3034
+ ], b.prototype, "selected", void 0);
3035
+ v([
3036
+ w()
3037
+ ], b.prototype, "type", void 0);
3038
+ v([
3039
+ w({ reflect: !0 })
3040
+ ], b.prototype, "value", void 0);
3041
+ v([
3042
+ fe()
3043
+ ], b.prototype, "flipIcon", void 0);
3044
+ /**
210
3045
  * @license
211
3046
  * Copyright 2024 Google LLC
212
3047
  * SPDX-License-Identifier: Apache-2.0
213
- */const un=L`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
214
- `;/**
3048
+ */
3049
+ const un = L`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
3050
+ `;
3051
+ /**
215
3052
  * @license
216
3053
  * Copyright 2024 Google LLC
217
3054
  * SPDX-License-Identifier: Apache-2.0
218
- */const dn=L`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
219
- `;/**
3055
+ */
3056
+ const dn = L`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
3057
+ `;
3058
+ /**
220
3059
  * @license
221
3060
  * Copyright 2021 Google LLC
222
3061
  * SPDX-License-Identifier: Apache-2.0
223
- */let te=class extends b{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};te.styles=[un,dn];te=v([Y("md-icon-button")],te);var pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,ve=(r,t,e,i)=>{for(var s=i>1?void 0:i?fn(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&pn(t,e,s),s};let ot=class extends ls(E){render(){return A`
3062
+ */
3063
+ let te = class extends b {
3064
+ getRenderClasses() {
3065
+ return {
3066
+ ...super.getRenderClasses(),
3067
+ standard: !0
3068
+ };
3069
+ }
3070
+ };
3071
+ te.styles = [un, dn];
3072
+ te = v([
3073
+ Y("md-icon-button")
3074
+ ], te);
3075
+ var pn = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, ve = (r, t, e, i) => {
3076
+ for (var s = i > 1 ? void 0 : i ? fn(t, e) : t, n = r.length - 1, o; n >= 0; n--)
3077
+ (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
3078
+ return i && s && pn(t, e, s), s;
3079
+ };
3080
+ let ot = class extends ls(E) {
3081
+ render() {
3082
+ return A`
224
3083
  <div class="container">
225
3084
  <md-icon-button aria-label="${this.description}">
226
3085
  <md-icon>${this.icon}</md-icon>
227
3086
  </md-icon-button>
228
3087
  </div>
229
- `}};ot.styles=L`
3088
+ `;
3089
+ }
3090
+ };
3091
+ ot.styles = L`
230
3092
  :host {
231
3093
  color: red;
232
3094
  }
233
- `;ve([w()],ot.prototype,"icon",2);ve([w()],ot.prototype,"description",2);ot=ve([Y("action-toolbar-item")],ot);var gn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,dt=(r,t,e,i)=>{for(var s=i>1?void 0:i?vn(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&gn(t,e,s),s};let P=class extends gs(E){render(){return A` <div class="container">
3095
+ `;
3096
+ ve([
3097
+ w()
3098
+ ], ot.prototype, "icon", 2);
3099
+ ve([
3100
+ w()
3101
+ ], ot.prototype, "description", 2);
3102
+ ot = ve([
3103
+ Y("action-toolbar-item")
3104
+ ], ot);
3105
+ var gn = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, ut = (r, t, e, i) => {
3106
+ for (var s = i > 1 ? void 0 : i ? vn(t, e) : t, n = r.length - 1, o; n >= 0; n--)
3107
+ (o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
3108
+ return i && s && gn(t, e, s), s;
3109
+ };
3110
+ let P = class extends gs(E) {
3111
+ render() {
3112
+ return A` <div class="container">
234
3113
  <div class="header">
235
3114
  <div id="header-region-container"></div>
236
3115
  <div id="actions-toolbar-region-container"></div>
@@ -240,7 +3119,10 @@
240
3119
  <div id="sidebar-region-region-container"></div>
241
3120
  <div id="main-region-region-container"></div>
242
3121
  </div>
243
- </div>`}};P.styles=L`
3122
+ </div>`;
3123
+ }
3124
+ };
3125
+ P.styles = L`
244
3126
  :host {
245
3127
  width: 100%;
246
3128
  overflow: hidden;
@@ -279,4 +3161,27 @@
279
3161
  box-shadow: rgba(0, 0, 0, 0.12) 4px -1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
280
3162
  }
281
3163
  }
282
- `;dt([xt({targetId:"header-region-container",name:ht.header})],P.prototype,"headerRegion",2);dt([xt({targetId:"actions-toolbar-region-container",name:ht.actionsToolbar})],P.prototype,"actionsToolbarRegion",2);dt([xt({targetId:"sidebar-region-region-container",name:ht.sidebar})],P.prototype,"sidebarRegion",2);dt([xt({targetId:"main-region-region-container",name:ht.main})],P.prototype,"mainRegion",2);P=dt([Y("primary-shell")],P);const mn=r=>{const t=new P;r.appendChild(t)};exports.initializeShell=mn;exports.regions=ht;
3164
+ `;
3165
+ ut([
3166
+ Ct({ targetId: "header-region-container", name: Pt.header })
3167
+ ], P.prototype, "headerRegion", 2);
3168
+ ut([
3169
+ Ct({ targetId: "actions-toolbar-region-container", name: Pt.actionsToolbar })
3170
+ ], P.prototype, "actionsToolbarRegion", 2);
3171
+ ut([
3172
+ Ct({ targetId: "sidebar-region-region-container", name: Pt.sidebar })
3173
+ ], P.prototype, "sidebarRegion", 2);
3174
+ ut([
3175
+ Ct({ targetId: "main-region-region-container", name: Pt.main })
3176
+ ], P.prototype, "mainRegion", 2);
3177
+ P = ut([
3178
+ Y("primary-shell")
3179
+ ], P);
3180
+ const jn = (r) => {
3181
+ const t = new P();
3182
+ r.appendChild(t);
3183
+ };
3184
+ export {
3185
+ jn as initializeShell,
3186
+ Pt as regions
3187
+ };