@enegelai/bot-widget 1.2.5 → 1.2.6

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.
@@ -1,68 +1,68 @@
1
- var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):M[lt]=ct;var wt=(M,lt,ct)=>(eb(M,typeof lt!="symbol"?lt+"":lt,ct),ct);(function(M,lt){typeof exports=="object"&&typeof module<"u"?lt(exports):typeof define=="function"&&define.amd?define(["exports"],lt):(M=typeof globalThis<"u"?globalThis:M||self,lt(M.EnegelaiBot={}))})(this,function(M){var Dl;"use strict";function lt(e){return typeof e=="function"?e():e}const Lr=class Lr extends Event{constructor(o,r,s){super(Lr.eventName,{cancelable:!1});wt(this,"key");wt(this,"state");wt(this,"value");this.key=o,this.value=r,this.state=s}};wt(Lr,"eventName","lit-state-changed");let ct=Lr;const Pl=(e,t)=>t!==e&&(t===t||e===e);class zo extends EventTarget{constructor(){super();wt(this,"hookMap",new Map);this.constructor.finalize(),this.propertyMap&&[...this.propertyMap].forEach(([o,r])=>{if(r.initialValue!==void 0){const s=lt(r.initialValue);this[o]=s,r.value=s}})}get propertyMap(){return this.constructor.propertyMap}get stateValue(){return Object.fromEntries([...this.propertyMap].map(([o])=>[o,this[o]]))}static finalize(){if(this.finalized)return!1;this.finalized=!0;const o=Object.keys(this.properties||{});for(const r of o)this.createProperty(r,this.properties[r]);return!0}static createProperty(o,r){this.finalize();const s=typeof o=="symbol"?Symbol():`__${o}`,n=this.getPropertyDescriptor(o,s,r);Object.defineProperty(this.prototype,o,n)}static getPropertyDescriptor(o,r,s){const n=(s==null?void 0:s.hasChanged)||Pl;return{get(){return this[r]},set(i){const a=this[o];this[r]=i,n(i,a)===!0&&this.dispatchStateEvent(o,i,this)},configurable:!0,enumerable:!0}}reset(){this.hookMap.forEach(o=>o.reset()),[...this.propertyMap].filter(([o,r])=>!(r.skipReset===!0||r.resetValue===void 0)).forEach(([o,r])=>{this[o]=r.resetValue})}subscribe(o,r,s){r&&!Array.isArray(r)&&(r=[r]);const n=i=>{(!r||r.includes(i.key))&&o(i.key,i.value,this)};return this.addEventListener(ct.eventName,n,s),()=>this.removeEventListener(ct.eventName,n)}dispatchStateEvent(o,r,s){this.dispatchEvent(new ct(o,r,s))}}wt(zo,"propertyMap"),wt(zo,"properties"),wt(zo,"finalized",!1);class pn{constructor(t,o,r){wt(this,"host");wt(this,"state");wt(this,"callback");this.host=t,this.state=o,this.host.addController(this),this.callback=r||(()=>this.host.requestUpdate())}hostConnected(){this.state.addEventListener(ct.eventName,this.callback),this.callback()}hostDisconnected(){this.state.removeEventListener(ct.eventName,this.callback)}}/**
1
+ var tp=Object.defineProperty;var op=(M,ie,le)=>ie in M?tp(M,ie,{enumerable:!0,configurable:!0,writable:!0,value:le}):M[ie]=le;var we=(M,ie,le)=>(op(M,typeof ie!="symbol"?ie+"":ie,le),le);(function(M,ie){typeof exports=="object"&&typeof module<"u"?ie(exports):typeof define=="function"&&define.amd?define(["exports"],ie):(M=typeof globalThis<"u"?globalThis:M||self,ie(M.EnegelaiBot={}))})(this,function(M){var Di;"use strict";function ie(t){return typeof t=="function"?t():t}const zr=class zr extends Event{constructor(o,r,s){super(zr.eventName,{cancelable:!1});we(this,"key");we(this,"state");we(this,"value");this.key=o,this.value=r,this.state=s}};we(zr,"eventName","lit-state-changed");let le=zr;const Pi=(t,e)=>e!==t&&(e===e||t===t);class zo extends EventTarget{constructor(){super();we(this,"hookMap",new Map);this.constructor.finalize(),this.propertyMap&&[...this.propertyMap].forEach(([o,r])=>{if(r.initialValue!==void 0){const s=ie(r.initialValue);this[o]=s,r.value=s}})}get propertyMap(){return this.constructor.propertyMap}get stateValue(){return Object.fromEntries([...this.propertyMap].map(([o])=>[o,this[o]]))}static finalize(){if(this.finalized)return!1;this.finalized=!0;const o=Object.keys(this.properties||{});for(const r of o)this.createProperty(r,this.properties[r]);return!0}static createProperty(o,r){this.finalize();const s=typeof o=="symbol"?Symbol():`__${o}`,a=this.getPropertyDescriptor(o,s,r);Object.defineProperty(this.prototype,o,a)}static getPropertyDescriptor(o,r,s){const a=(s==null?void 0:s.hasChanged)||Pi;return{get(){return this[r]},set(n){const c=this[o];this[r]=n,a(n,c)===!0&&this.dispatchStateEvent(o,n,this)},configurable:!0,enumerable:!0}}reset(){this.hookMap.forEach(o=>o.reset()),[...this.propertyMap].filter(([o,r])=>!(r.skipReset===!0||r.resetValue===void 0)).forEach(([o,r])=>{this[o]=r.resetValue})}subscribe(o,r,s){r&&!Array.isArray(r)&&(r=[r]);const a=n=>{(!r||r.includes(n.key))&&o(n.key,n.value,this)};return this.addEventListener(le.eventName,a,s),()=>this.removeEventListener(le.eventName,a)}dispatchStateEvent(o,r,s){this.dispatchEvent(new le(o,r,s))}}we(zo,"propertyMap"),we(zo,"properties"),we(zo,"finalized",!1);class ua{constructor(e,o,r){we(this,"host");we(this,"state");we(this,"callback");this.host=e,this.state=o,this.host.addController(this),this.callback=r||(()=>this.host.requestUpdate())}hostConnected(){this.state.addEventListener(le.eventName,this.callback),this.callback()}hostDisconnected(){this.state.removeEventListener(le.eventName,this.callback)}}/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const fn=({finisher:e,descriptor:t})=>(o,r)=>{var s;if(r===void 0){const n=(s=o.originalKey)!==null&&s!==void 0?s:o.key,i=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(o.key)}:{...o,key:n};return e!=null&&(i.finisher=function(a){e(a,n)}),i}{const n=o.constructor;t!==void 0&&Object.defineProperty(o,r,t(r)),e==null||e(n,r)}};function _t(e){return fn({finisher:(t,o)=>{if(Object.getOwnPropertyDescriptor(t.prototype,o))throw new Error("@property must be called before all state decorators");return t.propertyMap||(t.propertyMap=new Map),t.propertyMap.set(o,{...e,initialValue:e==null?void 0:e.value,resetValue:e==null?void 0:e.value}),t.createProperty(o,e)}})}function Ml(e,t){if(e!==null&&(t===Boolean||t===Number||t===Array||t===Object))try{e=JSON.parse(e)}catch{console.warn("cannot parse value",e)}return e}new URL(window.location.href);const Il={prefix:"_ls"};function le(e){return e={...Il,...e},fn({finisher:(t,o)=>{const r=Object.getOwnPropertyDescriptor(t.prototype,o);if(!r)throw new Error("@local-storage decorator need to be called after @property");const s=`${(e==null?void 0:e.prefix)||""}_${(e==null?void 0:e.key)||String(o)}`,n=t.propertyMap.get(o),i=n==null?void 0:n.type;if(n){const u=n.initialValue;n.initialValue=()=>Ml(localStorage.getItem(s),i)??lt(u),t.propertyMap.set(o,{...n,...e})}const a=r==null?void 0:r.set,c={...r,set:function(u){u!==void 0&&localStorage.setItem(s,i===Object||i===Array?JSON.stringify(u):u),a&&a.call(this,u)}};Object.defineProperty(t.prototype,o,c)}})}/**
5
+ */const ha=({finisher:t,descriptor:e})=>(o,r)=>{var s;if(r===void 0){const a=(s=o.originalKey)!==null&&s!==void 0?s:o.key,n=e!=null?{kind:"method",placement:"prototype",key:a,descriptor:e(o.key)}:{...o,key:a};return t!=null&&(n.finisher=function(c){t(c,a)}),n}{const a=o.constructor;e!==void 0&&Object.defineProperty(o,r,e(r)),t==null||t(a,r)}};function _e(t){return ha({finisher:(e,o)=>{if(Object.getOwnPropertyDescriptor(e.prototype,o))throw new Error("@property must be called before all state decorators");return e.propertyMap||(e.propertyMap=new Map),e.propertyMap.set(o,{...t,initialValue:t==null?void 0:t.value,resetValue:t==null?void 0:t.value}),e.createProperty(o,t)}})}function Mi(t,e){if(t!==null&&(e===Boolean||e===Number||e===Array||e===Object))try{t=JSON.parse(t)}catch{console.warn("cannot parse value",t)}return t}new URL(window.location.href);const Ii={prefix:"_ls"};function it(t){return t={...Ii,...t},ha({finisher:(e,o)=>{const r=Object.getOwnPropertyDescriptor(e.prototype,o);if(!r)throw new Error("@local-storage decorator need to be called after @property");const s=`${(t==null?void 0:t.prefix)||""}_${(t==null?void 0:t.key)||String(o)}`,a=e.propertyMap.get(o),n=a==null?void 0:a.type;if(a){const d=a.initialValue;a.initialValue=()=>Mi(localStorage.getItem(s),n)??ie(d),e.propertyMap.set(o,{...a,...t})}const c=r==null?void 0:r.set,l={...r,set:function(d){d!==void 0&&localStorage.setItem(s,n===Object||n===Array?JSON.stringify(d):d),c&&c.call(this,d)}};Object.defineProperty(e.prototype,o,l)}})}/**
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const Ro=globalThis,Rr=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gn=Symbol(),bn=new WeakMap;let Fl=class{constructor(t,o,r){if(this._$cssResult$=!0,r!==gn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(Rr&&t===void 0){const r=o!==void 0&&o.length===1;r&&(t=bn.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&bn.set(o,t))}return t}toString(){return this.cssText}};const Bl=e=>new Fl(typeof e=="string"?e:e+"",void 0,gn),Ol=(e,t)=>{if(Rr)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of t){const r=document.createElement("style"),s=Ro.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=o.cssText,e.appendChild(r)}},mn=Rr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(const r of t.cssRules)o+=r.cssText;return Bl(o)})(e):e;/**
9
+ */const Ro=globalThis,Pr=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ba=Symbol(),pa=new WeakMap;let Fi=class{constructor(e,o,r){if(this._$cssResult$=!0,r!==ba)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o;const o=this.t;if(Pr&&e===void 0){const r=o!==void 0&&o.length===1;r&&(e=pa.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&pa.set(o,e))}return e}toString(){return this.cssText}};const Bi=t=>new Fi(typeof t=="string"?t:t+"",void 0,ba),Oi=(t,e)=>{if(Pr)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of e){const r=document.createElement("style"),s=Ro.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=o.cssText,t.appendChild(r)}},ga=Pr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(const r of e.cssRules)o+=r.cssText;return Bi(o)})(t):t;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:Nl,defineProperty:Vl,getOwnPropertyDescriptor:Hl,getOwnPropertyNames:Ul,getOwnPropertySymbols:jl,getPrototypeOf:Gl}=Object,Gt=globalThis,vn=Gt.trustedTypes,Zl=vn?vn.emptyScript:"",Pr=Gt.reactiveElementPolyfillSupport,Ye=(e,t)=>e,Po={toAttribute(e,t){switch(t){case Boolean:e=e?Zl:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Mr=(e,t)=>!Nl(e,t),yn={attribute:!0,type:String,converter:Po,reflect:!1,hasChanged:Mr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Gt.litPropertyMetadata??(Gt.litPropertyMetadata=new WeakMap);let Je=class 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,o=yn){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,o);s!==void 0&&Vl(this.prototype,t,s)}}static getPropertyDescriptor(t,o,r){const{get:s,set:n}=Hl(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return s==null?void 0:s.call(this)},set(i){const a=s==null?void 0:s.call(this);n.call(this,i),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??yn}static _$Ei(){if(this.hasOwnProperty(Ye("elementProperties")))return;const t=Gl(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ye("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ye("properties"))){const o=this.properties,r=[...Ul(o),...jl(o)];for(const s of r)this.createProperty(s,o[s])}const t=this[Symbol.metadata];if(t!==null){const o=litPropertyMetadata.get(t);if(o!==void 0)for(const[r,s]of o)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[o,r]of this.elementProperties){const s=this._$Eu(o,r);s!==void 0&&this._$Eh.set(s,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)o.unshift(mn(s))}else t!==void 0&&o.push(mn(t));return o}static _$Eu(t,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r: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._$Eg=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(o=>o(this))}addController(t){var o;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)==null||o.call(t))}removeController(t){var o;(o=this._$ES)==null||o.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ol(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(o=>{var r;return(r=o.hostDisconnected)==null?void 0:r.call(o)})}attributeChangedCallback(t,o,r){this._$AK(t,r)}_$EO(t,o){var n;const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const i=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:Po).toAttribute(o,r.type);this._$Em=t,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,o){var n;const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const i=r.getPropertyOptions(s),a=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:Po;this._$Em=s,this[s]=a.fromAttribute(o,i.type),this._$Em=null}}requestUpdate(t,o,r,s=!1,n){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??Mr)(s?n:this[t],o))return;this.C(t,o,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,o,r){this._$AL.has(t)||this._$AL.set(t,o),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(o){Promise.reject(o)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,i]of s)i.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],i)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(r=this._$ES)==null||r.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(o)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){var o;(o=this._$ES)==null||o.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EO(o,this[o]))),this._$ET()}updated(t){}firstUpdated(t){}};Je.elementStyles=[],Je.shadowRootOptions={mode:"open"},Je[Ye("elementProperties")]=new Map,Je[Ye("finalized")]=new Map,Pr==null||Pr({ReactiveElement:Je}),(Gt.reactiveElementVersions??(Gt.reactiveElementVersions=[])).push("2.0.1");/**
13
+ */const{is:Ni,defineProperty:Vi,getOwnPropertyDescriptor:Hi,getOwnPropertyNames:Ui,getOwnPropertySymbols:ji,getPrototypeOf:Gi}=Object,Ge=globalThis,ma=Ge.trustedTypes,Zi=ma?ma.emptyScript:"",Mr=Ge.reactiveElementPolyfillSupport,Yt=(t,e)=>t,Po={toAttribute(t,e){switch(e){case Boolean:t=t?Zi:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},Ir=(t,e)=>!Ni(t,e),va={attribute:!0,type:String,converter:Po,reflect:!1,hasChanged:Ir};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ge.litPropertyMetadata??(Ge.litPropertyMetadata=new WeakMap);let Jt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=va){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(e,r,o);s!==void 0&&Vi(this.prototype,e,s)}}static getPropertyDescriptor(e,o,r){const{get:s,set:a}=Hi(this.prototype,e)??{get(){return this[o]},set(n){this[o]=n}};return{get(){return s==null?void 0:s.call(this)},set(n){const c=s==null?void 0:s.call(this);a.call(this,n),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??va}static _$Ei(){if(this.hasOwnProperty(Yt("elementProperties")))return;const e=Gi(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Yt("properties"))){const o=this.properties,r=[...Ui(o),...ji(o)];for(const s of r)this.createProperty(s,o[s])}const e=this[Symbol.metadata];if(e!==null){const o=litPropertyMetadata.get(e);if(o!==void 0)for(const[r,s]of o)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[o,r]of this.elementProperties){const s=this._$Eu(o,r);s!==void 0&&this._$Eh.set(s,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const o=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const s of r)o.unshift(ga(s))}else e!==void 0&&o.push(ga(e));return o}static _$Eu(e,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$Eg=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(o=>o(this))}addController(e){var o;(this._$ES??(this._$ES=[])).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)==null||o.call(e))}removeController(e){var o;(o=this._$ES)==null||o.splice(this._$ES.indexOf(e)>>>0,1)}_$E_(){const e=new Map,o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Oi(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)==null||e.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)==null||e.forEach(o=>{var r;return(r=o.hostDisconnected)==null?void 0:r.call(o)})}attributeChangedCallback(e,o,r){this._$AK(e,r)}_$EO(e,o){var a;const r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){const n=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:Po).toAttribute(o,r.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,o){var a;const r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=r.getPropertyOptions(s),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:Po;this._$Em=s,this[s]=c.fromAttribute(o,n.type),this._$Em=null}}requestUpdate(e,o,r,s=!1,a){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??Ir)(s?a:this[e],o))return;this.C(e,o,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,o,r){this._$AL.has(e)||this._$AL.set(e,o),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(o){Promise.reject(o)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],n)}let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(r=this._$ES)==null||r.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(o)):this._$ET()}catch(s){throw e=!1,this._$ET(),s}e&&this._$AE(o)}willUpdate(e){}_$AE(e){var o;(o=this._$ES)==null||o.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EO(o,this[o]))),this._$ET()}updated(e){}firstUpdated(e){}};Jt.elementStyles=[],Jt.shadowRootOptions={mode:"open"},Jt[Yt("elementProperties")]=new Map,Jt[Yt("finalized")]=new Map,Mr==null||Mr({ReactiveElement:Jt}),(Ge.reactiveElementVersions??(Ge.reactiveElementVersions=[])).push("2.0.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Qe=globalThis,Mo=Qe.trustedTypes,wn=Mo?Mo.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ir="$lit$",Ft=`lit$${(Math.random()+"").slice(9)}$`,Fr="?"+Ft,Wl=`<${Fr}>`,ce=document,Io=()=>ce.createComment(""),Xe=e=>e===null||typeof e!="object"&&typeof e!="function",_n=Array.isArray,xn=e=>_n(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Br=`[
18
- \f\r]`,to=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kn=/-->/g,An=/>/g,ue=RegExp(`>|${Br}(?:([^\\s"'>=/]+)(${Br}*=${Br}*(?:[^
19
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Cn=/'/g,$n=/"/g,En=/^(?:script|style|textarea|title)$/i,Kl=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),Yl=Kl(1),xt=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Sn=new WeakMap,de=ce.createTreeWalker(ce,129);function qn(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return wn!==void 0?wn.createHTML(t):t}const Dn=(e,t)=>{const o=e.length-1,r=[];let s,n=t===2?"<svg>":"",i=to;for(let a=0;a<o;a++){const l=e[a];let c,u,d=-1,p=0;for(;p<l.length&&(i.lastIndex=p,u=i.exec(l),u!==null);)p=i.lastIndex,i===to?u[1]==="!--"?i=kn:u[1]!==void 0?i=An:u[2]!==void 0?(En.test(u[2])&&(s=RegExp("</"+u[2],"g")),i=ue):u[3]!==void 0&&(i=ue):i===ue?u[0]===">"?(i=s??to,d=-1):u[1]===void 0?d=-2:(d=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?ue:u[3]==='"'?$n:Cn):i===$n||i===Cn?i=ue:i===kn||i===An?i=to:(i=ue,s=void 0);const h=i===ue&&e[a+1].startsWith("/>")?" ":"";n+=i===to?l+Wl:d>=0?(r.push(c),l.slice(0,d)+Ir+l.slice(d)+Ft+h):l+Ft+(d===-2?a:h)}return[qn(e,n+(e[o]||"<?>")+(t===2?"</svg>":"")),r]};let Or=class Tl{constructor({strings:t,_$litType$:o},r){let s;this.parts=[];let n=0,i=0;const a=t.length-1,l=this.parts,[c,u]=Dn(t,o);if(this.el=Tl.createElement(c,r),de.currentNode=this.el.content,o===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=de.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(Ir)){const p=u[i++],h=s.getAttribute(d).split(Ft),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:b[2],strings:h,ctor:b[1]==="."?Ln:b[1]==="?"?zn:b[1]==="@"?Rn:eo}),s.removeAttribute(d)}else d.startsWith(Ft)&&(l.push({type:6,index:n}),s.removeAttribute(d));if(En.test(s.tagName)){const d=s.textContent.split(Ft),p=d.length-1;if(p>0){s.textContent=Mo?Mo.emptyScript:"";for(let h=0;h<p;h++)s.append(d[h],Io()),de.nextNode(),l.push({type:2,index:++n});s.append(d[p],Io())}}}else if(s.nodeType===8)if(s.data===Fr)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(Ft,d+1))!==-1;)l.push({type:7,index:n}),d+=Ft.length-1}n++}}static createElement(t,o){const r=ce.createElement("template");return r.innerHTML=t,r}};function he(e,t,o=e,r){var i,a;if(t===xt)return t;let s=r!==void 0?(i=o._$Co)==null?void 0:i[r]:o._$Cl;const n=Xe(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(e),s._$AT(e,o,r)),r!==void 0?(o._$Co??(o._$Co=[]))[r]=s:o._$Cl=s),s!==void 0&&(t=he(e,s._$AS(e,t.values),s,r)),t}let Tn=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:r}=this._$AD,s=((t==null?void 0:t.creationScope)??ce).importNode(o,!0);de.currentNode=s;let n=de.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new Nr(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new Pn(n,this,t)),this._$AV.push(c),l=r[++a]}i!==(l==null?void 0:l.index)&&(n=de.nextNode(),i++)}return de.currentNode=ce,s}p(t){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,o),o+=r.strings.length-2):r._$AI(t[o])),o++}},Nr=class Ll{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,o,r,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=r,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=he(this,t,o),Xe(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):xn(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!==G&&Xe(this._$AH)?this._$AA.nextSibling.data=t:this.$(ce.createTextNode(t)),this._$AH=t}g(t){var n;const{values:o,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Or.createElement(qn(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(o);else{const i=new Tn(s,this),a=i.u(this.options);i.p(o),this.$(a),this._$AH=i}}_$AC(t){let o=Sn.get(t.strings);return o===void 0&&Sn.set(t.strings,o=new Or(t)),o}T(t){_n(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,s=0;for(const n of t)s===o.length?o.push(r=new Ll(this.k(Io()),this.k(Io()),this,this.options)):r=o[s],r._$AI(n),s++;s<o.length&&(this._$AR(r&&r._$AB.nextSibling,s),o.length=s)}_$AR(t=this._$AA.nextSibling,o){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,o);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var o;this._$AM===void 0&&(this._$Cv=t,(o=this._$AP)==null||o.call(this,t))}},eo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,r,s,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=o,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=G}_$AI(t,o=this,r,s){const n=this.strings;let i=!1;if(n===void 0)t=he(this,t,o,0),i=!Xe(t)||t!==this._$AH&&t!==xt,i&&(this._$AH=t);else{const a=t;let l,c;for(t=n[0],l=0;l<n.length-1;l++)c=he(this,a[r+l],o,l),c===xt&&(c=this._$AH[l]),i||(i=!Xe(c)||c!==this._$AH[l]),c===G?t=G:t!==G&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ln=class extends eo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},zn=class extends eo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==G)}},Rn=class extends eo{constructor(t,o,r,s,n){super(t,o,r,s,n),this.type=5}_$AI(t,o=this){if((t=he(this,t,o,0)??G)===xt)return;const r=this._$AH,s=t===G&&r!==G||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==G&&(r===G||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,t):this._$AH.handleEvent(t)}},Pn=class{constructor(t,o,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){he(this,t)}};const Jl={S:Ir,A:Ft,P:Fr,C:1,M:Dn,L:Tn,R:xn,V:he,D:Nr,I:eo,H:zn,N:Rn,U:Ln,B:Pn},Vr=Qe.litHtmlPolyfillSupport;Vr==null||Vr(Or,Nr),(Qe.litHtmlVersions??(Qe.litHtmlVersions=[])).push("3.0.1");/**
17
+ */const Qt=globalThis,Mo=Qt.trustedTypes,ya=Mo?Mo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fr="$lit$",Fe=`lit$${(Math.random()+"").slice(9)}$`,Br="?"+Fe,Wi=`<${Br}>`,lt=document,Io=()=>lt.createComment(""),Xt=t=>t===null||typeof t!="object"&&typeof t!="function",wa=Array.isArray,_a=t=>wa(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Or=`[
18
+ \f\r]`,eo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xa=/-->/g,ka=/>/g,dt=RegExp(`>|${Or}(?:([^\\s"'>=/]+)(${Or}*=${Or}*(?:[^
19
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,Ca=/"/g,$a=/^(?:script|style|textarea|title)$/i,Ki=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Yi=Ki(1),xe=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Ea=new WeakMap,ft=lt.createTreeWalker(lt,129);function Sa(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ya!==void 0?ya.createHTML(e):e}const qa=(t,e)=>{const o=t.length-1,r=[];let s,a=e===2?"<svg>":"",n=eo;for(let c=0;c<o;c++){const i=t[c];let l,d,f=-1,h=0;for(;h<i.length&&(n.lastIndex=h,d=n.exec(i),d!==null);)h=n.lastIndex,n===eo?d[1]==="!--"?n=xa:d[1]!==void 0?n=ka:d[2]!==void 0?($a.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=dt):d[3]!==void 0&&(n=dt):n===dt?d[0]===">"?(n=s??eo,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?dt:d[3]==='"'?Ca:Aa):n===Ca||n===Aa?n=dt:n===xa||n===ka?n=eo:(n=dt,s=void 0);const u=n===dt&&t[c+1].startsWith("/>")?" ":"";a+=n===eo?i+Wi:f>=0?(r.push(l),i.slice(0,f)+Fr+i.slice(f)+Fe+u):i+Fe+(f===-2?c:u)}return[Sa(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),r]};let Nr=class Ti{constructor({strings:e,_$litType$:o},r){let s;this.parts=[];let a=0,n=0;const c=e.length-1,i=this.parts,[l,d]=qa(e,o);if(this.el=Ti.createElement(l,r),ft.currentNode=this.el.content,o===2){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(s=ft.nextNode())!==null&&i.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const f of s.getAttributeNames())if(f.endsWith(Fr)){const h=d[n++],u=s.getAttribute(f).split(Fe),g=/([.?@])?(.*)/.exec(h);i.push({type:1,index:a,name:g[2],strings:u,ctor:g[1]==="."?Ta:g[1]==="?"?La:g[1]==="@"?za:to}),s.removeAttribute(f)}else f.startsWith(Fe)&&(i.push({type:6,index:a}),s.removeAttribute(f));if($a.test(s.tagName)){const f=s.textContent.split(Fe),h=f.length-1;if(h>0){s.textContent=Mo?Mo.emptyScript:"";for(let u=0;u<h;u++)s.append(f[u],Io()),ft.nextNode(),i.push({type:2,index:++a});s.append(f[h],Io())}}}else if(s.nodeType===8)if(s.data===Br)i.push({type:2,index:a});else{let f=-1;for(;(f=s.data.indexOf(Fe,f+1))!==-1;)i.push({type:7,index:a}),f+=Fe.length-1}a++}}static createElement(e,o){const r=lt.createElement("template");return r.innerHTML=e,r}};function ut(t,e,o=t,r){var n,c;if(e===xe)return e;let s=r!==void 0?(n=o._$Co)==null?void 0:n[r]:o._$Cl;const a=Xt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==a&&((c=s==null?void 0:s._$AO)==null||c.call(s,!1),a===void 0?s=void 0:(s=new a(t),s._$AT(t,o,r)),r!==void 0?(o._$Co??(o._$Co=[]))[r]=s:o._$Cl=s),s!==void 0&&(e=ut(t,s._$AS(t,e.values),s,r)),e}let Da=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:o},parts:r}=this._$AD,s=((e==null?void 0:e.creationScope)??lt).importNode(o,!0);ft.currentNode=s;let a=ft.nextNode(),n=0,c=0,i=r[0];for(;i!==void 0;){if(n===i.index){let l;i.type===2?l=new Vr(a,a.nextSibling,this,e):i.type===1?l=new i.ctor(a,i.name,i.strings,this,e):i.type===6&&(l=new Ra(a,this,e)),this._$AV.push(l),i=r[++c]}n!==(i==null?void 0:i.index)&&(a=ft.nextNode(),n++)}return ft.currentNode=lt,s}p(e){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,o),o+=r.strings.length-2):r._$AI(e[o])),o++}},Vr=class Li{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,o,r,s){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=r,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=ut(this,e,o),Xt(e)?e===G||e==null||e===""?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==xe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):_a(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==G&&Xt(this._$AH)?this._$AA.nextSibling.data=e:this.$(lt.createTextNode(e)),this._$AH=e}g(e){var a;const{values:o,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Nr.createElement(Sa(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===s)this._$AH.p(o);else{const n=new Da(s,this),c=n.u(this.options);n.p(o),this.$(c),this._$AH=n}}_$AC(e){let o=Ea.get(e.strings);return o===void 0&&Ea.set(e.strings,o=new Nr(e)),o}T(e){wa(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,s=0;for(const a of e)s===o.length?o.push(r=new Li(this.k(Io()),this.k(Io()),this,this.options)):r=o[s],r._$AI(a),s++;s<o.length&&(this._$AR(r&&r._$AB.nextSibling,s),o.length=s)}_$AR(e=this._$AA.nextSibling,o){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,o);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var o;this._$AM===void 0&&(this._$Cv=e,(o=this._$AP)==null||o.call(this,e))}},to=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,r,s,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=o,this._$AM=s,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=G}_$AI(e,o=this,r,s){const a=this.strings;let n=!1;if(a===void 0)e=ut(this,e,o,0),n=!Xt(e)||e!==this._$AH&&e!==xe,n&&(this._$AH=e);else{const c=e;let i,l;for(e=a[0],i=0;i<a.length-1;i++)l=ut(this,c[r+i],o,i),l===xe&&(l=this._$AH[i]),n||(n=!Xt(l)||l!==this._$AH[i]),l===G?e=G:e!==G&&(e+=(l??"")+a[i+1]),this._$AH[i]=l}n&&!s&&this.j(e)}j(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ta=class extends to{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===G?void 0:e}},La=class extends to{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}},za=class extends to{constructor(e,o,r,s,a){super(e,o,r,s,a),this.type=5}_$AI(e,o=this){if((e=ut(this,e,o,0)??G)===xe)return;const r=this._$AH,s=e===G&&r!==G||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==G&&(r===G||s);s&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,e):this._$AH.handleEvent(e)}},Ra=class{constructor(e,o,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ut(this,e)}};const Ji={S:Fr,A:Fe,P:Br,C:1,M:qa,L:Da,R:_a,V:ut,D:Vr,I:to,H:La,N:za,U:Ta,B:Ra},Hr=Qt.litHtmlPolyfillSupport;Hr==null||Hr(Nr,Vr),(Qt.litHtmlVersions??(Qt.litHtmlVersions=[])).push("3.0.1");/**
20
20
  * @license
21
21
  * Copyright 2019 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Fo=globalThis,Hr=Fo.ShadowRoot&&(Fo.ShadyCSS===void 0||Fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ur=Symbol(),Mn=new WeakMap;let In=class{constructor(t,o,r){if(this._$cssResult$=!0,r!==Ur)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(Hr&&t===void 0){const r=o!==void 0&&o.length===1;r&&(t=Mn.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Mn.set(o,t))}return t}toString(){return this.cssText}};const Ql=e=>new In(typeof e=="string"?e:e+"",void 0,Ur),z=(e,...t)=>{const o=e.length===1?e[0]:t.reduce((r,s,n)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new In(o,e,Ur)},Xl=(e,t)=>{if(Hr)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of t){const r=document.createElement("style"),s=Fo.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=o.cssText,e.appendChild(r)}},Fn=Hr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(const r of t.cssRules)o+=r.cssText;return Ql(o)})(e):e;/**
23
+ */const Fo=globalThis,Ur=Fo.ShadowRoot&&(Fo.ShadyCSS===void 0||Fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jr=Symbol(),Pa=new WeakMap;let Ma=class{constructor(e,o,r){if(this._$cssResult$=!0,r!==jr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o;const o=this.t;if(Ur&&e===void 0){const r=o!==void 0&&o.length===1;r&&(e=Pa.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Pa.set(o,e))}return e}toString(){return this.cssText}};const Qi=t=>new Ma(typeof t=="string"?t:t+"",void 0,jr),z=(t,...e)=>{const o=t.length===1?t[0]:e.reduce((r,s,a)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[a+1],t[0]);return new Ma(o,t,jr)},Xi=(t,e)=>{if(Ur)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of e){const r=document.createElement("style"),s=Fo.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=o.cssText,t.appendChild(r)}},Ia=Ur?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(const r of e.cssRules)o+=r.cssText;return Qi(o)})(t):t;/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const{is:tc,defineProperty:ec,getOwnPropertyDescriptor:oc,getOwnPropertyNames:rc,getOwnPropertySymbols:sc,getPrototypeOf:nc}=Object,Zt=globalThis,Bn=Zt.trustedTypes,ic=Bn?Bn.emptyScript:"",jr=Zt.reactiveElementPolyfillSupport,oo=(e,t)=>e,ro={toAttribute(e,t){switch(t){case Boolean:e=e?ic:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},On=(e,t)=>!tc(e,t),Nn={attribute:!0,type:String,converter:ro,reflect:!1,hasChanged:On};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Zt.litPropertyMetadata??(Zt.litPropertyMetadata=new WeakMap);let Ee=class 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,o=Nn){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,o);s!==void 0&&ec(this.prototype,t,s)}}static getPropertyDescriptor(t,o,r){const{get:s,set:n}=oc(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return s==null?void 0:s.call(this)},set(i){const a=s==null?void 0:s.call(this);n.call(this,i),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Nn}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;const t=nc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oo("properties"))){const o=this.properties,r=[...rc(o),...sc(o)];for(const s of r)this.createProperty(s,o[s])}const t=this[Symbol.metadata];if(t!==null){const o=litPropertyMetadata.get(t);if(o!==void 0)for(const[r,s]of o)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[o,r]of this.elementProperties){const s=this._$Eu(o,r);s!==void 0&&this._$Eh.set(s,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)o.unshift(Fn(s))}else t!==void 0&&o.push(Fn(t));return o}static _$Eu(t,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r: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._$Eg=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(o=>o(this))}addController(t){var o;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)==null||o.call(t))}removeController(t){var o;(o=this._$ES)==null||o.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xl(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(o=>{var r;return(r=o.hostDisconnected)==null?void 0:r.call(o)})}attributeChangedCallback(t,o,r){this._$AK(t,r)}_$EO(t,o){var n;const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const i=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:ro).toAttribute(o,r.type);this._$Em=t,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,o){var n;const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const i=r.getPropertyOptions(s),a=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:ro;this._$Em=s,this[s]=a.fromAttribute(o,i.type),this._$Em=null}}requestUpdate(t,o,r,s=!1,n){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??On)(s?n:this[t],o))return;this.C(t,o,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,o,r){this._$AL.has(t)||this._$AL.set(t,o),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(o){Promise.reject(o)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,i]of s)i.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],i)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(r=this._$ES)==null||r.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(o)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){var o;(o=this._$ES)==null||o.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EO(o,this[o]))),this._$ET()}updated(t){}firstUpdated(t){}};Ee.elementStyles=[],Ee.shadowRootOptions={mode:"open"},Ee[oo("elementProperties")]=new Map,Ee[oo("finalized")]=new Map,jr==null||jr({ReactiveElement:Ee}),(Zt.reactiveElementVersions??(Zt.reactiveElementVersions=[])).push("2.0.1");/**
27
+ */const{is:el,defineProperty:tl,getOwnPropertyDescriptor:ol,getOwnPropertyNames:rl,getOwnPropertySymbols:sl,getPrototypeOf:al}=Object,Ze=globalThis,Fa=Ze.trustedTypes,nl=Fa?Fa.emptyScript:"",Gr=Ze.reactiveElementPolyfillSupport,oo=(t,e)=>t,ro={toAttribute(t,e){switch(e){case Boolean:t=t?nl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},Ba=(t,e)=>!el(t,e),Oa={attribute:!0,type:String,converter:ro,reflect:!1,hasChanged:Ba};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ze.litPropertyMetadata??(Ze.litPropertyMetadata=new WeakMap);let St=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,o=Oa){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(e,r,o);s!==void 0&&tl(this.prototype,e,s)}}static getPropertyDescriptor(e,o,r){const{get:s,set:a}=ol(this.prototype,e)??{get(){return this[o]},set(n){this[o]=n}};return{get(){return s==null?void 0:s.call(this)},set(n){const c=s==null?void 0:s.call(this);a.call(this,n),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Oa}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;const e=al(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oo("properties"))){const o=this.properties,r=[...rl(o),...sl(o)];for(const s of r)this.createProperty(s,o[s])}const e=this[Symbol.metadata];if(e!==null){const o=litPropertyMetadata.get(e);if(o!==void 0)for(const[r,s]of o)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[o,r]of this.elementProperties){const s=this._$Eu(o,r);s!==void 0&&this._$Eh.set(s,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const o=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const s of r)o.unshift(Ia(s))}else e!==void 0&&o.push(Ia(e));return o}static _$Eu(e,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$Eg=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(o=>o(this))}addController(e){var o;(this._$ES??(this._$ES=[])).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)==null||o.call(e))}removeController(e){var o;(o=this._$ES)==null||o.splice(this._$ES.indexOf(e)>>>0,1)}_$E_(){const e=new Map,o=this.constructor.elementProperties;for(const r of o.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xi(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)==null||e.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)==null||e.forEach(o=>{var r;return(r=o.hostDisconnected)==null?void 0:r.call(o)})}attributeChangedCallback(e,o,r){this._$AK(e,r)}_$EO(e,o){var a;const r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){const n=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:ro).toAttribute(o,r.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,o){var a;const r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=r.getPropertyOptions(s),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:ro;this._$Em=s,this[s]=c.fromAttribute(o,n.type),this._$Em=null}}requestUpdate(e,o,r,s=!1,a){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??Ba)(s?a:this[e],o))return;this.C(e,o,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,o,r){this._$AL.has(e)||this._$AL.set(e,o),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(o){Promise.reject(o)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],n)}let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(r=this._$ES)==null||r.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(o)):this._$ET()}catch(s){throw e=!1,this._$ET(),s}e&&this._$AE(o)}willUpdate(e){}_$AE(e){var o;(o=this._$ES)==null||o.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EO(o,this[o]))),this._$ET()}updated(e){}firstUpdated(e){}};St.elementStyles=[],St.shadowRootOptions={mode:"open"},St[oo("elementProperties")]=new Map,St[oo("finalized")]=new Map,Gr==null||Gr({ReactiveElement:St}),(Ze.reactiveElementVersions??(Ze.reactiveElementVersions=[])).push("2.0.1");/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const so=globalThis,Bo=so.trustedTypes,Vn=Bo?Bo.createPolicy("lit-html",{createHTML:e=>e}):void 0,Hn="$lit$",Wt=`lit$${(Math.random()+"").slice(9)}$`,Un="?"+Wt,ac=`<${Un}>`,pe=document,no=()=>pe.createComment(""),io=e=>e===null||typeof e!="object"&&typeof e!="function",jn=Array.isArray,lc=e=>jn(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Gr=`[
32
- \f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gn=/-->/g,Zn=/>/g,fe=RegExp(`>|${Gr}(?:([^\\s"'>=/]+)(${Gr}*=${Gr}*(?:[^
33
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Wn=/'/g,Kn=/"/g,Yn=/^(?:script|style|textarea|title)$/i,Jn=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),A=Jn(1),Zr=Jn(2),Se=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Qn=new WeakMap,ge=pe.createTreeWalker(pe,129);function Xn(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vn!==void 0?Vn.createHTML(t):t}const cc=(e,t)=>{const o=e.length-1,r=[];let s,n=t===2?"<svg>":"",i=ao;for(let a=0;a<o;a++){const l=e[a];let c,u,d=-1,p=0;for(;p<l.length&&(i.lastIndex=p,u=i.exec(l),u!==null);)p=i.lastIndex,i===ao?u[1]==="!--"?i=Gn:u[1]!==void 0?i=Zn:u[2]!==void 0?(Yn.test(u[2])&&(s=RegExp("</"+u[2],"g")),i=fe):u[3]!==void 0&&(i=fe):i===fe?u[0]===">"?(i=s??ao,d=-1):u[1]===void 0?d=-2:(d=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?fe:u[3]==='"'?Kn:Wn):i===Kn||i===Wn?i=fe:i===Gn||i===Zn?i=ao:(i=fe,s=void 0);const h=i===fe&&e[a+1].startsWith("/>")?" ":"";n+=i===ao?l+ac:d>=0?(r.push(c),l.slice(0,d)+Hn+l.slice(d)+Wt+h):l+Wt+(d===-2?a:h)}return[Xn(e,n+(e[o]||"<?>")+(t===2?"</svg>":"")),r]};let Wr=class zl{constructor({strings:t,_$litType$:o},r){let s;this.parts=[];let n=0,i=0;const a=t.length-1,l=this.parts,[c,u]=cc(t,o);if(this.el=zl.createElement(c,r),ge.currentNode=this.el.content,o===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ge.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const d of s.getAttributeNames())if(d.endsWith(Hn)){const p=u[i++],h=s.getAttribute(d).split(Wt),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:b[2],strings:h,ctor:b[1]==="."?dc:b[1]==="?"?hc:b[1]==="@"?pc:Oo}),s.removeAttribute(d)}else d.startsWith(Wt)&&(l.push({type:6,index:n}),s.removeAttribute(d));if(Yn.test(s.tagName)){const d=s.textContent.split(Wt),p=d.length-1;if(p>0){s.textContent=Bo?Bo.emptyScript:"";for(let h=0;h<p;h++)s.append(d[h],no()),ge.nextNode(),l.push({type:2,index:++n});s.append(d[p],no())}}}else if(s.nodeType===8)if(s.data===Un)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(Wt,d+1))!==-1;)l.push({type:7,index:n}),d+=Wt.length-1}n++}}static createElement(t,o){const r=pe.createElement("template");return r.innerHTML=t,r}};function qe(e,t,o=e,r){var i,a;if(t===Se)return t;let s=r!==void 0?(i=o._$Co)==null?void 0:i[r]:o._$Cl;const n=io(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(e),s._$AT(e,o,r)),r!==void 0?(o._$Co??(o._$Co=[]))[r]=s:o._$Cl=s),s!==void 0&&(t=qe(e,s._$AS(e,t.values),s,r)),t}let uc=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:r}=this._$AD,s=((t==null?void 0:t.creationScope)??pe).importNode(o,!0);ge.currentNode=s;let n=ge.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new Kr(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new fc(n,this,t)),this._$AV.push(c),l=r[++a]}i!==(l==null?void 0:l.index)&&(n=ge.nextNode(),i++)}return ge.currentNode=pe,s}p(t){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,o),o+=r.strings.length-2):r._$AI(t[o])),o++}},Kr=class Rl{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,o,r,s){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=r,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=qe(this,t,o),io(t)?t===J||t==null||t===""?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==Se&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):lc(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!==J&&io(this._$AH)?this._$AA.nextSibling.data=t:this.$(pe.createTextNode(t)),this._$AH=t}g(t){var n;const{values:o,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Wr.createElement(Xn(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(o);else{const i=new uc(s,this),a=i.u(this.options);i.p(o),this.$(a),this._$AH=i}}_$AC(t){let o=Qn.get(t.strings);return o===void 0&&Qn.set(t.strings,o=new Wr(t)),o}T(t){jn(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,s=0;for(const n of t)s===o.length?o.push(r=new Rl(this.k(no()),this.k(no()),this,this.options)):r=o[s],r._$AI(n),s++;s<o.length&&(this._$AR(r&&r._$AB.nextSibling,s),o.length=s)}_$AR(t=this._$AA.nextSibling,o){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,o);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var o;this._$AM===void 0&&(this._$Cv=t,(o=this._$AP)==null||o.call(this,t))}},Oo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,r,s,n){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=o,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(t,o=this,r,s){const n=this.strings;let i=!1;if(n===void 0)t=qe(this,t,o,0),i=!io(t)||t!==this._$AH&&t!==Se,i&&(this._$AH=t);else{const a=t;let l,c;for(t=n[0],l=0;l<n.length-1;l++)c=qe(this,a[r+l],o,l),c===Se&&(c=this._$AH[l]),i||(i=!io(c)||c!==this._$AH[l]),c===J?t=J:t!==J&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!s&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dc=class extends Oo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}},hc=class extends Oo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}},pc=class extends Oo{constructor(t,o,r,s,n){super(t,o,r,s,n),this.type=5}_$AI(t,o=this){if((t=qe(this,t,o,0)??J)===Se)return;const r=this._$AH,s=t===J&&r!==J||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==J&&(r===J||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,t):this._$AH.handleEvent(t)}},fc=class{constructor(t,o,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){qe(this,t)}};const Yr=so.litHtmlPolyfillSupport;Yr==null||Yr(Wr,Kr),(so.litHtmlVersions??(so.litHtmlVersions=[])).push("3.0.1");const gc=(e,t,o)=>{const r=(o==null?void 0:o.renderBefore)??t;let s=r._$litPart$;if(s===void 0){const n=(o==null?void 0:o.renderBefore)??null;r._$litPart$=s=new Kr(t.insertBefore(no(),n),n,void 0,o??{})}return s._$AI(e),s};/**
31
+ */const so=globalThis,Bo=so.trustedTypes,Na=Bo?Bo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Va="$lit$",We=`lit$${(Math.random()+"").slice(9)}$`,Ha="?"+We,cl=`<${Ha}>`,ht=document,ao=()=>ht.createComment(""),no=t=>t===null||typeof t!="object"&&typeof t!="function",Ua=Array.isArray,il=t=>Ua(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Zr=`[
32
+ \f\r]`,co=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ja=/-->/g,Ga=/>/g,bt=RegExp(`>|${Zr}(?:([^\\s"'>=/]+)(${Zr}*=${Zr}*(?:[^
33
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Za=/'/g,Wa=/"/g,Ka=/^(?:script|style|textarea|title)$/i,Ya=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),A=Ya(1),Oo=Ya(2),qt=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Ja=new WeakMap,pt=ht.createTreeWalker(ht,129);function Qa(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Na!==void 0?Na.createHTML(e):e}const ll=(t,e)=>{const o=t.length-1,r=[];let s,a=e===2?"<svg>":"",n=co;for(let c=0;c<o;c++){const i=t[c];let l,d,f=-1,h=0;for(;h<i.length&&(n.lastIndex=h,d=n.exec(i),d!==null);)h=n.lastIndex,n===co?d[1]==="!--"?n=ja:d[1]!==void 0?n=Ga:d[2]!==void 0?(Ka.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=bt):d[3]!==void 0&&(n=bt):n===bt?d[0]===">"?(n=s??co,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?bt:d[3]==='"'?Wa:Za):n===Wa||n===Za?n=bt:n===ja||n===Ga?n=co:(n=bt,s=void 0);const u=n===bt&&t[c+1].startsWith("/>")?" ":"";a+=n===co?i+cl:f>=0?(r.push(l),i.slice(0,f)+Va+i.slice(f)+We+u):i+We+(f===-2?c:u)}return[Qa(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),r]};let Wr=class zi{constructor({strings:e,_$litType$:o},r){let s;this.parts=[];let a=0,n=0;const c=e.length-1,i=this.parts,[l,d]=ll(e,o);if(this.el=zi.createElement(l,r),pt.currentNode=this.el.content,o===2){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(s=pt.nextNode())!==null&&i.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const f of s.getAttributeNames())if(f.endsWith(Va)){const h=d[n++],u=s.getAttribute(f).split(We),g=/([.?@])?(.*)/.exec(h);i.push({type:1,index:a,name:g[2],strings:u,ctor:g[1]==="."?fl:g[1]==="?"?ul:g[1]==="@"?hl:No}),s.removeAttribute(f)}else f.startsWith(We)&&(i.push({type:6,index:a}),s.removeAttribute(f));if(Ka.test(s.tagName)){const f=s.textContent.split(We),h=f.length-1;if(h>0){s.textContent=Bo?Bo.emptyScript:"";for(let u=0;u<h;u++)s.append(f[u],ao()),pt.nextNode(),i.push({type:2,index:++a});s.append(f[h],ao())}}}else if(s.nodeType===8)if(s.data===Ha)i.push({type:2,index:a});else{let f=-1;for(;(f=s.data.indexOf(We,f+1))!==-1;)i.push({type:7,index:a}),f+=We.length-1}a++}}static createElement(e,o){const r=ht.createElement("template");return r.innerHTML=e,r}};function Dt(t,e,o=t,r){var n,c;if(e===qt)return e;let s=r!==void 0?(n=o._$Co)==null?void 0:n[r]:o._$Cl;const a=no(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==a&&((c=s==null?void 0:s._$AO)==null||c.call(s,!1),a===void 0?s=void 0:(s=new a(t),s._$AT(t,o,r)),r!==void 0?(o._$Co??(o._$Co=[]))[r]=s:o._$Cl=s),s!==void 0&&(e=Dt(t,s._$AS(t,e.values),s,r)),e}let dl=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:o},parts:r}=this._$AD,s=((e==null?void 0:e.creationScope)??ht).importNode(o,!0);pt.currentNode=s;let a=pt.nextNode(),n=0,c=0,i=r[0];for(;i!==void 0;){if(n===i.index){let l;i.type===2?l=new Kr(a,a.nextSibling,this,e):i.type===1?l=new i.ctor(a,i.name,i.strings,this,e):i.type===6&&(l=new bl(a,this,e)),this._$AV.push(l),i=r[++c]}n!==(i==null?void 0:i.index)&&(a=pt.nextNode(),n++)}return pt.currentNode=ht,s}p(e){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,o),o+=r.strings.length-2):r._$AI(e[o])),o++}},Kr=class Ri{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,o,r,s){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=r,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Dt(this,e,o),no(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==qt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):il(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==J&&no(this._$AH)?this._$AA.nextSibling.data=e:this.$(ht.createTextNode(e)),this._$AH=e}g(e){var a;const{values:o,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Wr.createElement(Qa(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===s)this._$AH.p(o);else{const n=new dl(s,this),c=n.u(this.options);n.p(o),this.$(c),this._$AH=n}}_$AC(e){let o=Ja.get(e.strings);return o===void 0&&Ja.set(e.strings,o=new Wr(e)),o}T(e){Ua(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,s=0;for(const a of e)s===o.length?o.push(r=new Ri(this.k(ao()),this.k(ao()),this,this.options)):r=o[s],r._$AI(a),s++;s<o.length&&(this._$AR(r&&r._$AB.nextSibling,s),o.length=s)}_$AR(e=this._$AA.nextSibling,o){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,o);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var o;this._$AM===void 0&&(this._$Cv=e,(o=this._$AP)==null||o.call(this,e))}},No=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,r,s,a){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=o,this._$AM=s,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(e,o=this,r,s){const a=this.strings;let n=!1;if(a===void 0)e=Dt(this,e,o,0),n=!no(e)||e!==this._$AH&&e!==qt,n&&(this._$AH=e);else{const c=e;let i,l;for(e=a[0],i=0;i<a.length-1;i++)l=Dt(this,c[r+i],o,i),l===qt&&(l=this._$AH[i]),n||(n=!no(l)||l!==this._$AH[i]),l===J?e=J:e!==J&&(e+=(l??"")+a[i+1]),this._$AH[i]=l}n&&!s&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},fl=class extends No{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},ul=class extends No{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},hl=class extends No{constructor(e,o,r,s,a){super(e,o,r,s,a),this.type=5}_$AI(e,o=this){if((e=Dt(this,e,o,0)??J)===qt)return;const r=this._$AH,s=e===J&&r!==J||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==J&&(r===J||s);s&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,e):this._$AH.handleEvent(e)}},bl=class{constructor(e,o,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Dt(this,e)}};const Yr=so.litHtmlPolyfillSupport;Yr==null||Yr(Wr,Kr),(so.litHtmlVersions??(so.litHtmlVersions=[])).push("3.0.1");const pl=(t,e,o)=>{const r=(o==null?void 0:o.renderBefore)??e;let s=r._$litPart$;if(s===void 0){const a=(o==null?void 0:o.renderBefore)??null;r._$litPart$=s=new Kr(e.insertBefore(ao(),a),a,void 0,o??{})}return s._$AI(t),s};/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */let Bt=class extends Ee{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const t=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=t.firstChild),t}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=gc(o,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 Se}};Bt._$litElement$=!0,Bt.finalized=!0,(Dl=globalThis.litElementHydrateSupport)==null||Dl.call(globalThis,{LitElement:Bt});const Jr=globalThis.litElementPolyfillSupport;Jr==null||Jr({LitElement:Bt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
37
+ */let Be=class extends St{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const e=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=e.firstChild),e}update(e){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=pl(o,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return qt}};Be._$litElement$=!0,Be.finalized=!0,(Di=globalThis.litElementHydrateSupport)==null||Di.call(globalThis,{LitElement:Be});const Jr=globalThis.litElementPolyfillSupport;Jr==null||Jr({LitElement:Be}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const tt=e=>(t,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
41
+ */const ee=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};/**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */const bc={attribute:!0,type:String,converter:Po,reflect:!1,hasChanged:Mr},mc=(e=bc,t,o)=>{const{kind:r,metadata:s}=o;let n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(o.name,e),r==="accessor"){const{name:i}=o;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,e)},init(a){return a!==void 0&&this.C(i,void 0,e),a}}}if(r==="setter"){const{name:i}=o;return function(a){const l=this[i];t.call(this,a),this.requestUpdate(i,l,e)}}throw Error("Unsupported decorator location: "+r)};function g(e){return(t,o)=>typeof o=="object"?mc(e,t,o):((r,s,n)=>{const i=s.hasOwnProperty(n);return s.constructor.createProperty(n,i?{...r,wrapped:!0}:r),i?Object.getOwnPropertyDescriptor(s,n):void 0})(e,t,o)}/**
45
+ */const gl={attribute:!0,type:String,converter:Po,reflect:!1,hasChanged:Ir},ml=(t=gl,e,o)=>{const{kind:r,metadata:s}=o;let a=globalThis.litPropertyMetadata.get(s);if(a===void 0&&globalThis.litPropertyMetadata.set(s,a=new Map),a.set(o.name,t),r==="accessor"){const{name:n}=o;return{set(c){const i=e.get.call(this);e.set.call(this,c),this.requestUpdate(n,i,t)},init(c){return c!==void 0&&this.C(n,void 0,t),c}}}if(r==="setter"){const{name:n}=o;return function(c){const i=this[n];e.call(this,c),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+r)};function p(t){return(e,o)=>typeof o=="object"?ml(t,e,o):((r,s,a)=>{const n=s.hasOwnProperty(a);return s.constructor.createProperty(a,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(s,a):void 0})(t,e,o)}/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */function rt(e){return g({...e,state:!0,attribute:!1})}/**
49
+ */function re(t){return p({...t,state:!0,attribute:!1})}/**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */function ti(e){return(t,o)=>{const r=typeof t=="function"?t:t[o];Object.assign(r,e)}}/**
53
+ */function Xa(t){return(e,o)=>{const r=typeof e=="function"?e:e[o];Object.assign(r,t)}}/**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const Qr=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,o),o);/**
57
+ */const Qr=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,o),o);/**
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */function V(e,t){return(o,r,s)=>{const n=i=>{var a;return((a=i.renderRoot)==null?void 0:a.querySelector(e))??null};if(t){const{get:i,set:a}=typeof r=="object"?o:s??(()=>{const l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return Qr(o,r,{get(){if(t){let l=i.call(this);return l===void 0&&(l=n(this),a.call(this,l)),l}return n(this)}})}return Qr(o,r,{get(){return n(this)}})}}/**
61
+ */function V(t,e){return(o,r,s)=>{const a=n=>{var c;return((c=n.renderRoot)==null?void 0:c.querySelector(t))??null};if(e){const{get:n,set:c}=typeof r=="object"?o:s??(()=>{const i=Symbol();return{get(){return this[i]},set(l){this[i]=l}}})();return Qr(o,r,{get(){if(e){let i=n.call(this);return i===void 0&&(i=a(this),c.call(this,i)),i}return a(this)}})}return Qr(o,r,{get(){return a(this)}})}}/**
62
62
  * @license
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */let vc;function yc(e){return(t,o)=>Qr(t,o,{get(){return(this.renderRoot??vc??(vc=document.createDocumentFragment())).querySelectorAll(e)}})}var wc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _c(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),o}var ei={exports:{}};(function(e){(function(t,o){e.exports?e.exports=o():t.log=o()})(wc,function(){var t=function(){},o="undefined",r=typeof window!==o&&typeof window.navigator!==o&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"];function n(m,w){var y=m[w];if(typeof y.bind=="function")return y.bind(m);try{return Function.prototype.bind.call(y,m)}catch{return function(){return Function.prototype.apply.apply(y,[m,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(m){return m==="debug"&&(m="log"),typeof console===o?!1:m==="trace"&&r?i:console[m]!==void 0?n(console,m):console.log!==void 0?n(console,"log"):t}function l(m,w){for(var y=0;y<s.length;y++){var v=s[y];this[v]=y<m?t:this.methodFactory(v,m,w)}this.log=this.debug}function c(m,w,y){return function(){typeof console!==o&&(l.call(this,w,y),this[m].apply(this,arguments))}}function u(m,w,y){return a(m)||c.apply(this,arguments)}function d(m,w,y){var v=this,k;w=w??"WARN";var C="loglevel";typeof m=="string"?C+=":"+m:typeof m=="symbol"&&(C=void 0);function $(S){var q=(s[S]||"silent").toUpperCase();if(!(typeof window===o||!C)){try{window.localStorage[C]=q;return}catch{}try{window.document.cookie=encodeURIComponent(C)+"="+q+";"}catch{}}}function _(){var S;if(!(typeof window===o||!C)){try{S=window.localStorage[C]}catch{}if(typeof S===o)try{var q=window.document.cookie,I=q.indexOf(encodeURIComponent(C)+"=");I!==-1&&(S=/^([^;]+)/.exec(q.slice(I))[1])}catch{}return v.levels[S]===void 0&&(S=void 0),S}}function D(){if(!(typeof window===o||!C)){try{window.localStorage.removeItem(C);return}catch{}try{window.document.cookie=encodeURIComponent(C)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}v.name=m,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=y||u,v.getLevel=function(){return k},v.setLevel=function(S,q){if(typeof S=="string"&&v.levels[S.toUpperCase()]!==void 0&&(S=v.levels[S.toUpperCase()]),typeof S=="number"&&S>=0&&S<=v.levels.SILENT){if(k=S,q!==!1&&$(S),l.call(v,S,m),typeof console===o&&S<v.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+S},v.setDefaultLevel=function(S){w=S,_()||v.setLevel(S,!1)},v.resetLevel=function(){v.setLevel(w,!1),D()},v.enableAll=function(S){v.setLevel(v.levels.TRACE,S)},v.disableAll=function(S){v.setLevel(v.levels.SILENT,S)};var P=_();P==null&&(P=w),v.setLevel(P,!1)}var p=new d,h={};p.getLogger=function(w){if(typeof w!="symbol"&&typeof w!="string"||w==="")throw new TypeError("You must supply a name when creating a logger.");var y=h[w];return y||(y=h[w]=new d(w,p.getLevel(),p.methodFactory)),y};var b=typeof window!==o?window.log:void 0;return p.noConflict=function(){return typeof window!==o&&window.log===p&&(window.log=b),p},p.getLoggers=function(){return h},p.default=p,p})})(ei);var xc=ei.exports;const No=Xr(xc),kc=z`
65
+ */let vl;function yl(t){return(e,o)=>Qr(e,o,{get(){return(this.renderRoot??vl??(vl=document.createDocumentFragment())).querySelectorAll(t)}})}var wl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _l(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var o=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),o}var en={exports:{}};(function(t){(function(e,o){t.exports?t.exports=o():e.log=o()})(wl,function(){var e=function(){},o="undefined",r=typeof window!==o&&typeof window.navigator!==o&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"];function a(m,w){var y=m[w];if(typeof y.bind=="function")return y.bind(m);try{return Function.prototype.bind.call(y,m)}catch{return function(){return Function.prototype.apply.apply(y,[m,arguments])}}}function n(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(m){return m==="debug"&&(m="log"),typeof console===o?!1:m==="trace"&&r?n:console[m]!==void 0?a(console,m):console.log!==void 0?a(console,"log"):e}function i(m,w){for(var y=0;y<s.length;y++){var v=s[y];this[v]=y<m?e:this.methodFactory(v,m,w)}this.log=this.debug}function l(m,w,y){return function(){typeof console!==o&&(i.call(this,w,y),this[m].apply(this,arguments))}}function d(m,w,y){return c(m)||l.apply(this,arguments)}function f(m,w,y){var v=this,k;w=w??"WARN";var C="loglevel";typeof m=="string"?C+=":"+m:typeof m=="symbol"&&(C=void 0);function $(S){var q=(s[S]||"silent").toUpperCase();if(!(typeof window===o||!C)){try{window.localStorage[C]=q;return}catch{}try{window.document.cookie=encodeURIComponent(C)+"="+q+";"}catch{}}}function _(){var S;if(!(typeof window===o||!C)){try{S=window.localStorage[C]}catch{}if(typeof S===o)try{var q=window.document.cookie,I=q.indexOf(encodeURIComponent(C)+"=");I!==-1&&(S=/^([^;]+)/.exec(q.slice(I))[1])}catch{}return v.levels[S]===void 0&&(S=void 0),S}}function D(){if(!(typeof window===o||!C)){try{window.localStorage.removeItem(C);return}catch{}try{window.document.cookie=encodeURIComponent(C)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}v.name=m,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=y||d,v.getLevel=function(){return k},v.setLevel=function(S,q){if(typeof S=="string"&&v.levels[S.toUpperCase()]!==void 0&&(S=v.levels[S.toUpperCase()]),typeof S=="number"&&S>=0&&S<=v.levels.SILENT){if(k=S,q!==!1&&$(S),i.call(v,S,m),typeof console===o&&S<v.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+S},v.setDefaultLevel=function(S){w=S,_()||v.setLevel(S,!1)},v.resetLevel=function(){v.setLevel(w,!1),D()},v.enableAll=function(S){v.setLevel(v.levels.TRACE,S)},v.disableAll=function(S){v.setLevel(v.levels.SILENT,S)};var P=_();P==null&&(P=w),v.setLevel(P,!1)}var h=new f,u={};h.getLogger=function(w){if(typeof w!="symbol"&&typeof w!="string"||w==="")throw new TypeError("You must supply a name when creating a logger.");var y=u[w];return y||(y=u[w]=new f(w,h.getLevel(),h.methodFactory)),y};var g=typeof window!==o?window.log:void 0;return h.noConflict=function(){return typeof window!==o&&window.log===h&&(window.log=g),h},h.getLoggers=function(){return u},h.default=h,h})})(en);var xl=en.exports;const Vo=Xr(xl),kl=z`
66
66
  :host {
67
67
  }
68
68
  .cb-wrapper {
@@ -133,17 +133,17 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
133
133
  * @license
134
134
  * Copyright 2017 Google LLC
135
135
  * SPDX-License-Identifier: BSD-3-Clause
136
- */var ts;const Vo=window,De=Vo.trustedTypes,oi=De?De.createPolicy("lit-html",{createHTML:e=>e}):void 0,es="$lit$",Kt=`lit$${(Math.random()+"").slice(9)}$`,ri="?"+Kt,Ac=`<${ri}>`,be=document,Ho=()=>be.createComment(""),lo=e=>e===null||typeof e!="object"&&typeof e!="function",si=Array.isArray,Cc=e=>si(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",os=`[
137
- \f\r]`,co=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ni=/-->/g,ii=/>/g,me=RegExp(`>|${os}(?:([^\\s"'>=/]+)(${os}*=${os}*(?:[^
138
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,li=/"/g,ci=/^(?:script|style|textarea|title)$/i,Yt=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),ui=new WeakMap,ve=be.createTreeWalker(be,129,null,!1);function di(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return oi!==void 0?oi.createHTML(t):t}const $c=(e,t)=>{const o=e.length-1,r=[];let s,n=t===2?"<svg>":"",i=co;for(let a=0;a<o;a++){const l=e[a];let c,u,d=-1,p=0;for(;p<l.length&&(i.lastIndex=p,u=i.exec(l),u!==null);)p=i.lastIndex,i===co?u[1]==="!--"?i=ni:u[1]!==void 0?i=ii:u[2]!==void 0?(ci.test(u[2])&&(s=RegExp("</"+u[2],"g")),i=me):u[3]!==void 0&&(i=me):i===me?u[0]===">"?(i=s??co,d=-1):u[1]===void 0?d=-2:(d=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?me:u[3]==='"'?li:ai):i===li||i===ai?i=me:i===ni||i===ii?i=co:(i=me,s=void 0);const h=i===me&&e[a+1].startsWith("/>")?" ":"";n+=i===co?l+Ac:d>=0?(r.push(c),l.slice(0,d)+es+l.slice(d)+Kt+h):l+Kt+(d===-2?(r.push(void 0),a):h)}return[di(e,n+(e[o]||"<?>")+(t===2?"</svg>":"")),r]};class uo{constructor({strings:t,_$litType$:o},r){let s;this.parts=[];let n=0,i=0;const a=t.length-1,l=this.parts,[c,u]=$c(t,o);if(this.el=uo.createElement(c,r),ve.currentNode=this.el.content,o===2){const d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(s=ve.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const p of s.getAttributeNames())if(p.endsWith(es)||p.startsWith(Kt)){const h=u[i++];if(d.push(p),h!==void 0){const b=s.getAttribute(h.toLowerCase()+es).split(Kt),m=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:m[2],strings:b,ctor:m[1]==="."?Sc:m[1]==="?"?Dc:m[1]==="@"?Tc:jo})}else l.push({type:6,index:n})}for(const p of d)s.removeAttribute(p)}if(ci.test(s.tagName)){const d=s.textContent.split(Kt),p=d.length-1;if(p>0){s.textContent=De?De.emptyScript:"";for(let h=0;h<p;h++)s.append(d[h],Ho()),ve.nextNode(),l.push({type:2,index:++n});s.append(d[p],Ho())}}}else if(s.nodeType===8)if(s.data===ri)l.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(Kt,d+1))!==-1;)l.push({type:7,index:n}),d+=Kt.length-1}n++}}static createElement(t,o){const r=be.createElement("template");return r.innerHTML=t,r}}function Te(e,t,o=e,r){var s,n,i,a;if(t===Yt)return t;let l=r!==void 0?(s=o._$Co)===null||s===void 0?void 0:s[r]:o._$Cl;const c=lo(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((n=l==null?void 0:l._$AO)===null||n===void 0||n.call(l,!1),c===void 0?l=void 0:(l=new c(e),l._$AT(e,o,r)),r!==void 0?((i=(a=o)._$Co)!==null&&i!==void 0?i:a._$Co=[])[r]=l:o._$Cl=l),l!==void 0&&(t=Te(e,l._$AS(e,t.values),l,r)),t}class Ec{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:r},parts:s}=this._$AD,n=((o=t==null?void 0:t.creationScope)!==null&&o!==void 0?o:be).importNode(r,!0);ve.currentNode=n;let i=ve.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Uo(i,i.nextSibling,this,t):c.type===1?u=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(u=new Lc(i,this,t)),this._$AV.push(u),c=s[++l]}a!==(c==null?void 0:c.index)&&(i=ve.nextNode(),a++)}return ve.currentNode=be,n}v(t){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,o),o+=r.strings.length-2):r._$AI(t[o])),o++}}class Uo{constructor(t,o,r,s){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=r,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,o;return(o=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&o!==void 0?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Te(this,t,o),lo(t)?t===Z||t==null||t===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==Yt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cc(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!==Z&&lo(this._$AH)?this._$AA.nextSibling.data=t:this.$(be.createTextNode(t)),this._$AH=t}g(t){var o;const{values:r,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=uo.createElement(di(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===n)this._$AH.v(r);else{const i=new Ec(n,this),a=i.u(this.options);i.v(r),this.$(a),this._$AH=i}}_$AC(t){let o=ui.get(t.strings);return o===void 0&&ui.set(t.strings,o=new uo(t)),o}T(t){si(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,s=0;for(const n of t)s===o.length?o.push(r=new Uo(this.k(Ho()),this.k(Ho()),this,this.options)):r=o[s],r._$AI(n),s++;s<o.length&&(this._$AR(r&&r._$AB.nextSibling,s),o.length=s)}_$AR(t=this._$AA.nextSibling,o){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,o);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var o;this._$AM===void 0&&(this._$Cp=t,(o=this._$AP)===null||o===void 0||o.call(this,t))}}class jo{constructor(t,o,r,s,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=o,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,r,s){const n=this.strings;let i=!1;if(n===void 0)t=Te(this,t,o,0),i=!lo(t)||t!==this._$AH&&t!==Yt,i&&(this._$AH=t);else{const a=t;let l,c;for(t=n[0],l=0;l<n.length-1;l++)c=Te(this,a[r+l],o,l),c===Yt&&(c=this._$AH[l]),i||(i=!lo(c)||c!==this._$AH[l]),c===Z?t=Z:t!==Z&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!s&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Sc extends jo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const qc=De?De.emptyScript:"";class Dc extends jo{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,qc):this.element.removeAttribute(this.name)}}class Tc extends jo{constructor(t,o,r,s,n){super(t,o,r,s,n),this.type=5}_$AI(t,o=this){var r;if((t=(r=Te(this,t,o,0))!==null&&r!==void 0?r:Z)===Yt)return;const s=this._$AH,n=t===Z&&s!==Z||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==Z&&(s===Z||n);n&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,r;typeof this._$AH=="function"?this._$AH.call((r=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&r!==void 0?r:this.element,t):this._$AH.handleEvent(t)}}class Lc{constructor(t,o,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Te(this,t)}}const hi=Vo.litHtmlPolyfillSupport;hi==null||hi(uo,Uo),((ts=Vo.litHtmlVersions)!==null&&ts!==void 0?ts:Vo.litHtmlVersions=[]).push("2.8.0");/**
136
+ */var es;const Ho=window,Tt=Ho.trustedTypes,tn=Tt?Tt.createPolicy("lit-html",{createHTML:t=>t}):void 0,ts="$lit$",Ke=`lit$${(Math.random()+"").slice(9)}$`,on="?"+Ke,Al=`<${on}>`,gt=document,Uo=()=>gt.createComment(""),io=t=>t===null||typeof t!="object"&&typeof t!="function",rn=Array.isArray,Cl=t=>rn(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",os=`[
137
+ \f\r]`,lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sn=/-->/g,an=/>/g,mt=RegExp(`>|${os}(?:([^\\s"'>=/]+)(${os}*=${os}*(?:[^
138
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),nn=/'/g,cn=/"/g,ln=/^(?:script|style|textarea|title)$/i,Ye=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),dn=new WeakMap,vt=gt.createTreeWalker(gt,129,null,!1);function fn(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return tn!==void 0?tn.createHTML(e):e}const $l=(t,e)=>{const o=t.length-1,r=[];let s,a=e===2?"<svg>":"",n=lo;for(let c=0;c<o;c++){const i=t[c];let l,d,f=-1,h=0;for(;h<i.length&&(n.lastIndex=h,d=n.exec(i),d!==null);)h=n.lastIndex,n===lo?d[1]==="!--"?n=sn:d[1]!==void 0?n=an:d[2]!==void 0?(ln.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=mt):d[3]!==void 0&&(n=mt):n===mt?d[0]===">"?(n=s??lo,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,l=d[1],n=d[3]===void 0?mt:d[3]==='"'?cn:nn):n===cn||n===nn?n=mt:n===sn||n===an?n=lo:(n=mt,s=void 0);const u=n===mt&&t[c+1].startsWith("/>")?" ":"";a+=n===lo?i+Al:f>=0?(r.push(l),i.slice(0,f)+ts+i.slice(f)+Ke+u):i+Ke+(f===-2?(r.push(void 0),c):u)}return[fn(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),r]};class fo{constructor({strings:e,_$litType$:o},r){let s;this.parts=[];let a=0,n=0;const c=e.length-1,i=this.parts,[l,d]=$l(e,o);if(this.el=fo.createElement(l,r),vt.currentNode=this.el.content,o===2){const f=this.el.content,h=f.firstChild;h.remove(),f.append(...h.childNodes)}for(;(s=vt.nextNode())!==null&&i.length<c;){if(s.nodeType===1){if(s.hasAttributes()){const f=[];for(const h of s.getAttributeNames())if(h.endsWith(ts)||h.startsWith(Ke)){const u=d[n++];if(f.push(h),u!==void 0){const g=s.getAttribute(u.toLowerCase()+ts).split(Ke),m=/([.?@])?(.*)/.exec(u);i.push({type:1,index:a,name:m[2],strings:g,ctor:m[1]==="."?Sl:m[1]==="?"?Dl:m[1]==="@"?Tl:Go})}else i.push({type:6,index:a})}for(const h of f)s.removeAttribute(h)}if(ln.test(s.tagName)){const f=s.textContent.split(Ke),h=f.length-1;if(h>0){s.textContent=Tt?Tt.emptyScript:"";for(let u=0;u<h;u++)s.append(f[u],Uo()),vt.nextNode(),i.push({type:2,index:++a});s.append(f[h],Uo())}}}else if(s.nodeType===8)if(s.data===on)i.push({type:2,index:a});else{let f=-1;for(;(f=s.data.indexOf(Ke,f+1))!==-1;)i.push({type:7,index:a}),f+=Ke.length-1}a++}}static createElement(e,o){const r=gt.createElement("template");return r.innerHTML=e,r}}function Lt(t,e,o=t,r){var s,a,n,c;if(e===Ye)return e;let i=r!==void 0?(s=o._$Co)===null||s===void 0?void 0:s[r]:o._$Cl;const l=io(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((a=i==null?void 0:i._$AO)===null||a===void 0||a.call(i,!1),l===void 0?i=void 0:(i=new l(t),i._$AT(t,o,r)),r!==void 0?((n=(c=o)._$Co)!==null&&n!==void 0?n:c._$Co=[])[r]=i:o._$Cl=i),i!==void 0&&(e=Lt(t,i._$AS(t,e.values),i,r)),e}class El{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var o;const{el:{content:r},parts:s}=this._$AD,a=((o=e==null?void 0:e.creationScope)!==null&&o!==void 0?o:gt).importNode(r,!0);vt.currentNode=a;let n=vt.nextNode(),c=0,i=0,l=s[0];for(;l!==void 0;){if(c===l.index){let d;l.type===2?d=new jo(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new Ll(n,this,e)),this._$AV.push(d),l=s[++i]}c!==(l==null?void 0:l.index)&&(n=vt.nextNode(),c++)}return vt.currentNode=gt,a}v(e){let o=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,o),o+=r.strings.length-2):r._$AI(e[o])),o++}}class jo{constructor(e,o,r,s){var a;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=r,this.options=s,this._$Cp=(a=s==null?void 0:s.isConnected)===null||a===void 0||a}get _$AU(){var e,o;return(o=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&o!==void 0?o:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Lt(this,e,o),io(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==Ye&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Cl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Z&&io(this._$AH)?this._$AA.nextSibling.data=e:this.$(gt.createTextNode(e)),this._$AH=e}g(e){var o;const{values:r,_$litType$:s}=e,a=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=fo.createElement(fn(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===a)this._$AH.v(r);else{const n=new El(a,this),c=n.u(this.options);n.v(r),this.$(c),this._$AH=n}}_$AC(e){let o=dn.get(e.strings);return o===void 0&&dn.set(e.strings,o=new fo(e)),o}T(e){rn(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,s=0;for(const a of e)s===o.length?o.push(r=new jo(this.k(Uo()),this.k(Uo()),this,this.options)):r=o[s],r._$AI(a),s++;s<o.length&&(this._$AR(r&&r._$AB.nextSibling,s),o.length=s)}_$AR(e=this._$AA.nextSibling,o){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,o);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var o;this._$AM===void 0&&(this._$Cp=e,(o=this._$AP)===null||o===void 0||o.call(this,e))}}class Go{constructor(e,o,r,s,a){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=o,this._$AM=s,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,o=this,r,s){const a=this.strings;let n=!1;if(a===void 0)e=Lt(this,e,o,0),n=!io(e)||e!==this._$AH&&e!==Ye,n&&(this._$AH=e);else{const c=e;let i,l;for(e=a[0],i=0;i<a.length-1;i++)l=Lt(this,c[r+i],o,i),l===Ye&&(l=this._$AH[i]),n||(n=!io(l)||l!==this._$AH[i]),l===Z?e=Z:e!==Z&&(e+=(l??"")+a[i+1]),this._$AH[i]=l}n&&!s&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Sl extends Go{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}}const ql=Tt?Tt.emptyScript:"";class Dl extends Go{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Z?this.element.setAttribute(this.name,ql):this.element.removeAttribute(this.name)}}class Tl extends Go{constructor(e,o,r,s,a){super(e,o,r,s,a),this.type=5}_$AI(e,o=this){var r;if((e=(r=Lt(this,e,o,0))!==null&&r!==void 0?r:Z)===Ye)return;const s=this._$AH,a=e===Z&&s!==Z||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,n=e!==Z&&(s===Z||a);a&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var o,r;typeof this._$AH=="function"?this._$AH.call((r=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Ll{constructor(e,o,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Lt(this,e)}}const un=Ho.litHtmlPolyfillSupport;un==null||un(fo,jo),((es=Ho.litHtmlVersions)!==null&&es!==void 0?es:Ho.litHtmlVersions=[]).push("2.8.0");/**
139
139
  * @license
140
140
  * Copyright 2017 Google LLC
141
141
  * SPDX-License-Identifier: BSD-3-Clause
142
- */const pi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},fi=e=>(...t)=>({_$litDirective$:e,values:t});let gi=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,r){this._$Ct=t,this._$AM=o,this._$Ci=r}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};/**
142
+ */const hn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},bn=t=>(...e)=>({_$litDirective$:t,values:e});let pn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,r){this._$Ct=e,this._$AM=o,this._$Ci=r}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}};/**
143
143
  * @license
144
144
  * Copyright 2017 Google LLC
145
145
  * SPDX-License-Identifier: BSD-3-Clause
146
- */let rs=class extends gi{constructor(t){if(super(t),this.et=Z,t.type!==pi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||t==null)return this.ft=void 0,this.et=t;if(t===Yt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const o=[t];return o.raw=o,this.ft={_$litType$:this.constructor.resultType,strings:o,values:[]}}};rs.directiveName="unsafeHTML",rs.resultType=1;const Le=fi(rs),Et=z`
146
+ */let rs=class extends pn{constructor(e){if(super(e),this.et=Z,e.type!==hn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Z||e==null)return this.ft=void 0,this.et=e;if(e===Ye)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const o=[e];return o.raw=o,this.ft={_$litType$:this.constructor.resultType,strings:o,values:[]}}};rs.directiveName="unsafeHTML",rs.resultType=1;const yt=bn(rs),Ee=z`
147
147
  :host {
148
148
  --primary-color: var(--sl-color-primary-600);
149
149
  }
@@ -210,8 +210,8 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
210
210
  .text-button:hover {
211
211
  text-decoration: underline;
212
212
  }
213
- `,bi=z`
214
- ${Et}
213
+ `,gn=z`
214
+ ${Ee}
215
215
 
216
216
  :host {
217
217
  display: inline-flex;
@@ -232,10 +232,10 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
232
232
  .color-white {
233
233
  color: white;
234
234
  }
235
- `;var zc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,ss=(e,t,o,r)=>{for(var s=r>1?void 0:r?Rc(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&zc(t,o,s),s};let ho=class extends Bt{constructor(){super(...arguments),this.color="primary",this.svg=""}render(){return A`<span class="cb-icon color-${this.color}" part="base"
236
- >${Le(this.svg)}</span
237
- >`}};ho.styles=bi,ss([g({type:String})],ho.prototype,"color",2),ss([g({type:String})],ho.prototype,"svg",2),ho=ss([tt("cb-icon")],ho);let Pc=e=>crypto.getRandomValues(new Uint8Array(e)),Mc=(e,t,o)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,s=-~(1.6*r*t/e.length);return(n=t)=>{let i="";for(;;){let a=o(s),l=s;for(;l--;)if(i+=e[a[l]&r]||"",i.length===n)return i}}};const Ic=((e,t=21)=>Mc(e,t,Pc))("1234567890abcdefghijklmnopqrstuvwxyz",10);function ns(e=10){return Ic(e)}function Fc(e){return new Promise((t,o)=>{try{navigator.clipboard.writeText(e).then(()=>{t(e)})}catch(r){o(r)}})}function Bc(e=!0){return new Promise(t=>{const o=document.createElement("input");o.type="file",e&&(o.multiple=!0),o.style.display="none",o.addEventListener("change",()=>{const r=Array.prototype.slice.call(o.files);t(r)}),o.click()})}const st=No.noConflict();st.setLevel("info");class Oc{constructor(t={}){this.id=0,this.url=(t==null?void 0:t.url)||null,this.orgId=(t==null?void 0:t.orgId)||null,this.botId=(t==null?void 0:t.botId)||null,this.convId=(t==null?void 0:t.convId)||null,this._options=t||{},this._ws=null,this.started=!1,this.connected=!1,this.onMessage=(t==null?void 0:t.onMessage)||null,this.queue=[],this.pause=o=>new Promise(r=>setTimeout(r,o)),st.info(`WSC: Created, url: ${this.url}`)}connect(t={}){if(this.url=(t==null?void 0:t.url)||this.url,this.connected=!1,!this.url)return st.error("WSC: URL must be provided to connect"),null;const o=this.url;st.info(`WSC: Connecting to ${o} ...`),this._ws=new WebSocket(o);let r=setTimeout(()=>{st.error("WSC: connected message not received in time - terminating"),this._ws.close(),this._ws=null,this.connected=!1},15e3);this._ws.onopen=()=>{st.info(`WSC: Connection to ${o} opened`)},this._ws.onmessage=s=>{let n=(s==null?void 0:s.data)||null;if(!n)return;let i=null;try{i=JSON.parse(n)}catch{st.error(`Failed to parse message: ${n}`);return}(i==null?void 0:i.type)==="connected"&&(st.info(`WS[${this.id}] Connected`),clearTimeout(r),this.connected=!0,this.sendQueuedMessages()),this.handleWscMessage(i)},this._ws.onerror=s=>{st.error("WSC: Socket error"),clearTimeout(r),this.connected=!1,this._ws=null},this._ws.onclose=s=>{st.info(`WSC: Closed - code:${s.code}, reason:"${s.reason}"`),this.connected=!1,this._ws=null,this.reconnect()}}reconnect(){this.started&&setTimeout(()=>{this.connect()},1e3)}disconnect(){if(!this._ws){st.info("WSC: already disconnected");return}st.info("WSC: disconnect"),this._ws.close()}async start(){this.started=!0,this.connect()}async stop(){this.started=!1,this.disconnect()}async startOld(){let t=1,o=!0;for(;o;){if(st.info(`WSC: start: connecting, attempt ${t}`),await this.connect(),this.connected)return st.info("WSC: connected"),!0;t++,o=t<=4,o&&await this.pause(1e3)}return st.error(`WSC: start: failed to connect after ${t} attempts, exiting`),!1}handleWscMessage(t){this.onMessage&&typeof this.onMessage=="function"&&this.onMessage(t)}sendMessage(t){if(!this.connected){this.queue.push(JSON.stringify(t));return}this._ws.send(JSON.stringify(t))}sendQueuedMessages(){if(Array.isArray(this.queue)&&this.queue.length>0)for(let t=0;t<this.queue.length;t++)st.info("Sending queued message",this.queue[t]),this._ws.send(this.queue[t]);this.queue=[]}}var Nc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,kt=(e,t,o,r)=>{for(var s=r>1?void 0:r?Vc(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Nc(t,o,s),s};const ut=No.noConflict();ut.setLevel("info");const ye="cb_";class bt extends zo{constructor(){super(...arguments),this.actionIdCounter=0,this.wsClient=null,this.replyMessage=null}setSetting(t){ut.info("appState: Startup: setSetting",t),this.setting=t,this.initBot().catch(o=>{ut.info(`Exception during bot initialization: ${o.message}`)})}clearConversation(){this.wsClient&&(this.wsClient.stop().then(()=>{}),this.wsClient=null),this.conversationId=ns(),this.connectWs="false",this.messages=[],this.actions=[],this.addMessage({author:"assistant",type:"text",data:{text:this.setting.welcomeMessage}})}setLanguage(t){this.language=t}setTheme(t){this.theme=t}async initBot(){if(!this.botSettingsInitialized){const o=`${this.setting.url.startsWith("localhost")?"http":"https"}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}`;ut.info(`Getting bot settings at ${o} ...`);let r=null,s=null;try{r=await fetch(o,{headers:{"Access-Control-Allow-Origin":"null","X-Enegel-Signature":this.setting.botId}}),!r.ok||r.status!==200?ut.error(`Failed to get bot ${this.setting.botId} settings: ${r.status} ${r.statusText}`):s=await r.json()}catch(n){ut.error(`Failed to get bot ${this.setting.botId} settings: ${n.message}`),s=null}if(this.botSettingsInitialized=!0,!s){ut.error("No bot settings available - bot disabled"),this.disabled=!0;return}this.setting.welcomeMessage=(s==null?void 0:s.welcomeMessage)||"How can I help ?",this.setting.engageMessage=(s==null?void 0:s.engageMessage)||"How can I help ?",this.setting.engageTimeout=(s==null?void 0:s.engageTimeout)||5,setTimeout(()=>{this.open||(ut.info("Engaging User !"),this.engage=!0)},this.setting.engageTimeout*1e3)}Array.isArray(this.messages)&&this.messages.length<=0&&this.addMessage({author:"assistant",type:"text",data:{text:this.setting.welcomeMessage}}),this.connectWs==="true"&&(ut.info("appState: connectWs is true"),this.getWsClient().catch(t=>{ut.error(`Exception during ws client startup: ${t.message}`)}))}async getWsClient(){if(this.wsClient)return this.wsClient;const o=`${this.setting.url.startsWith("localhost")?"ws":"wss"}://${this.setting.url}/api/bot/connect/${this.setting.orgId}/${this.setting.botId}/${this.conversationId}`;return ut.info(`Initiating ws connection to ${o} ...`),this.wsClient=new Oc({url:o,orgId:this.setting.orgId,botId:this.setting.botId,convId:this.conversationId}),await this.wsClient.start(),this.wsClient.onMessage=r=>{this.handleWscMessage(r)},this.wsClient}handleWscMessage(t){switch(t==null?void 0:t.type){case"message":{if(this.replyMessage)this.replyMessage.data.text=t.text,this.updateMessage(this.replyMessage,""),this.replyMessage=null;else{const o={type:"text",author:"assistant",data:{text:t.text}};"userName"in t&&(o.data.userName=t.userName,this.connectWs="true"),"userAvatar"in t&&(o.data.userAvatar=t.userAvatar,this.connectWs="true");const r=this.formatMessage(o);this.messages=this.messages.concat([r])}break}case"message-chunk":{this.replyMessage&&(this.replyMessage=this.updateMessage(this.replyMessage,t.text));break}case"typing":{this.replyMessage={author:"assistant",type:"text",isThinking:!0,data:{text:""}},this.addMessage(this.replyMessage);break}case"actions":{this.addActions((t==null?void 0:t.actions)||[]);break}}}addActions(t){if(Array.isArray(t)&&t.length>0){const o=t.map(r=>Object.assign(r,{internalId:this.actionIdCounter++}));this.actions=this.actions.concat(o)}}removeAction(t){const o=this.actions.findIndex(r=>r.internalId===t);if(o!==-1){this.actions.splice(o,1);const r=[];this.actions=r.concat(this.actions)}}async sendMessage(t){t=this.formatMessage(t),ut.info("Send Message:",t),this.messages=this.messages.concat([t]);const o=await this.getWsClient();if(!o){ut.error("Error - failed to obtain ws client"),this.replyMessage=null;return}o.sendMessage({type:"message",id:t.id,text:t.data.text})}formatMessage(t){var o;return t.id||(t.id=ns()),t.timestamp=Date.now(),t.author==="assistant"&&(t.replyId=(o=this.messages[this.messages.length-1])==null?void 0:o.id),t}addMessage(t){t=this.formatMessage(t),this.messages=this.messages.concat([t])}addSystemMessage(t){this.addMessage({type:"text",author:"system",data:{text:t}})}updateMessage(t,o){const r=this.formatMessage(t);return r.isThinking=!1,o&&(r.data.text+=o),this.messages=this.messages.map(s=>s.id===r.id?r:s),r}removeMessage(t){this.messages=this.messages.filter(o=>o.id!==t)}clearMessages(){this.messages=[]}}kt([le({prefix:ye}),_t({value:"en"})],bt.prototype,"language",2),kt([le({prefix:ye}),_t({value:"light"})],bt.prototype,"theme",2),kt([le({prefix:ye}),_t({type:Boolean,value:!1})],bt.prototype,"open",2),kt([le({prefix:ye}),_t({value:"false"})],bt.prototype,"connectWs",2),kt([le({prefix:ye}),_t({value:ns()})],bt.prototype,"conversationId",2),kt([le({prefix:ye}),_t({type:Array,value:[]})],bt.prototype,"messages",2),kt([_t({type:Array,value:[]})],bt.prototype,"actions",2),kt([_t({type:Boolean,value:!1})],bt.prototype,"botSettingsInitialized",2),kt([_t({type:Boolean,value:!1})],bt.prototype,"disabled",2),kt([_t({type:Boolean,value:!1})],bt.prototype,"engage",2),kt([le({prefix:ye}),_t({type:Object,value:{orgId:null,botId:null,url:null,welcomeMessage:null}})],bt.prototype,"setting",2);const R=new bt,Hc=z`
238
- ${Et}
235
+ `;var zl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,ss=(t,e,o,r)=>{for(var s=r>1?void 0:r?Rl(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&zl(e,o,s),s};let uo=class extends Be{constructor(){super(...arguments),this.color="primary",this.svg=""}render(){return A`<span class="cb-icon color-${this.color}" part="base"
236
+ >${yt(this.svg)}</span
237
+ >`}};uo.styles=gn,ss([p({type:String})],uo.prototype,"color",2),ss([p({type:String})],uo.prototype,"svg",2),uo=ss([ee("cb-icon")],uo);let Pl=t=>crypto.getRandomValues(new Uint8Array(t)),Ml=(t,e,o)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,s=-~(1.6*r*e/t.length);return(a=e)=>{let n="";for(;;){let c=o(s),i=s;for(;i--;)if(n+=t[c[i]&r]||"",n.length===a)return n}}};const Il=((t,e=21)=>Ml(t,e,Pl))("1234567890abcdefghijklmnopqrstuvwxyz",10);function as(t=10){return Il(t)}function Fl(t){return new Promise((e,o)=>{try{navigator.clipboard.writeText(t).then(()=>{e(t)})}catch(r){o(r)}})}function Bl(t=!0){return new Promise(e=>{const o=document.createElement("input");o.type="file",t&&(o.multiple=!0),o.style.display="none",o.addEventListener("change",()=>{const r=Array.prototype.slice.call(o.files);e(r)}),o.click()})}const se=Vo.noConflict();se.setLevel("info");class Ol{constructor(e={}){this.id=0,this.url=(e==null?void 0:e.url)||null,this.orgId=(e==null?void 0:e.orgId)||null,this.botId=(e==null?void 0:e.botId)||null,this.convId=(e==null?void 0:e.convId)||null,this._options=e||{},this._ws=null,this.started=!1,this.connected=!1,this.onMessage=(e==null?void 0:e.onMessage)||null,this.queue=[],this.pause=o=>new Promise(r=>setTimeout(r,o)),se.info(`WSC: Created, url: ${this.url}`)}connect(e={}){if(this.url=(e==null?void 0:e.url)||this.url,this.connected=!1,!this.url)return se.error("WSC: URL must be provided to connect"),null;const o=this.url;se.info(`WSC: Connecting to ${o} ...`),this._ws=new WebSocket(o);let r=setTimeout(()=>{se.error("WSC: connected message not received in time - terminating"),this._ws.close(),this._ws=null,this.connected=!1},15e3);this._ws.onopen=()=>{se.info(`WSC: Connection to ${o} opened`)},this._ws.onmessage=s=>{let a=(s==null?void 0:s.data)||null;if(!a)return;let n=null;try{n=JSON.parse(a)}catch{se.error(`Failed to parse message: ${a}`);return}(n==null?void 0:n.type)==="connected"&&(se.info(`WS[${this.id}] Connected`),clearTimeout(r),this.connected=!0,this.sendQueuedMessages()),this.handleWscMessage(n)},this._ws.onerror=s=>{se.error("WSC: Socket error"),clearTimeout(r),this.connected=!1,this._ws=null},this._ws.onclose=s=>{se.info(`WSC: Closed - code:${s.code}, reason:"${s.reason}"`),this.connected=!1,this._ws=null,this.reconnect()}}reconnect(){this.started&&setTimeout(()=>{this.connect()},1e3)}disconnect(){if(!this._ws){se.info("WSC: already disconnected");return}se.info("WSC: disconnect"),this._ws.close()}async start(){this.started=!0,this.connect()}async stop(){this.started=!1,this.disconnect()}async startOld(){let e=1,o=!0;for(;o;){if(se.info(`WSC: start: connecting, attempt ${e}`),await this.connect(),this.connected)return se.info("WSC: connected"),!0;e++,o=e<=4,o&&await this.pause(1e3)}return se.error(`WSC: start: failed to connect after ${e} attempts, exiting`),!1}handleWscMessage(e){this.onMessage&&typeof this.onMessage=="function"&&this.onMessage(e)}sendMessage(e){if(!this.connected){this.queue.push(JSON.stringify(e));return}this._ws.send(JSON.stringify(e))}sendQueuedMessages(){if(Array.isArray(this.queue)&&this.queue.length>0)for(let e=0;e<this.queue.length;e++)se.info("Sending queued message",this.queue[e]),this._ws.send(this.queue[e]);this.queue=[]}}const Nl="fffbd0c40003a861a6f64deb05ce8fbd1dc1ee6979000bf3230f3195138b950cbe3649439256307747d31c26065d09cfae70d799f0a043c6a90008c0101188082314680d008619c9079b61dc806a921a220095277a60d4131e44143d53814e10f4d06ba6491eb478900a8d59016632a23e0fa358875c770146cc650c1c499dcb9b0965d7500106c321427219428febbdafb2b5d76979a75ae40018d025f96f71bad4b0257666051808e5b74c34bf2db9660bb0e24b2a35886616f617013a24104242304600910b1130dc7b4e81750bb1216e880432ac0d75b0a2a1834f45e8e9a279a9c6c22cc9a7e3ac01cc5335e8c0d97180c960bad7998ce9ac025a2f1a0c888e02c46508045a96a20a60c91980100828a917425f96ddc64bc2ea19146c50b00bde68319005d85d10e462314ae197f0b48c74bfe986ced9dac3a9bbfad7e8f7ac2a525253c6e36cad4dd7c20e2ec4842dba61cbf30f0f7d628635005a66e63ec63560f22a48c694034a695617e603c12c05077310c0923018053379a48d1e921e409b28546c46619d8fa6c9b019ea20762d318e34c6291699d98662a61861204fda2a7933d57c1d023391f8605262a1598449c1ca332e084cb25a3198ac94666361b99f05c67c1aba0151b18d456ec8e0b4c667924153ba632409114cc587c7867ca8c047dcd7a834bc8d2a033a141df48ab82a803bd1a8651a215e356c6161b062114cb841dd89589b05f0d10ad255c4d70d8ad245e4abcd6b33fca8d6af5cc3db8d9244511ab2206a56c885690ad12cc1ba16308528d539daa40b22baf35eb61a7044a988132e926b754d82ea8ca85199ad5c42c0d62d35eb8d7301d56ef5b26c451748198c2a22c319b24ab67a246b186c8af0d54354c0957c342d9a2a4d7b3245e585c4d7254e107501450bb46abbfa38b2331996d9bae08953352c48af43d5c7b08b6572a44e0b11775fd8cbb2b0b0343230c6c5add2ca5ac8d549765977ff78e59659ca49adde749c6789409753bcff43d1a8d46a532da5a5a5a5a5a5a5a6a6a6a6a6a6a6a6a6ab671c71c71c6ae4141414140a0a0a0a0c2b06e0b039c1829859998b165991a5d2aa598e0a714183727471921e5721a1037a9c2fb7a1b9c0dc99c6ab19b821219de39219b82a521908908987d2ab1aab194159219cb31211fffbd2c42383f4bda0d20ffba7c624b3dd01eee938b82f149f14b82951c14d290908c90d294c90a598b0948572ce584a434a54a52b4a42c3829592199219219a52921160908d295294b1c79b70dc9b72dc9b70dc15b71e6dc37058e3cdb8e34db9e3cadb82c37056dc95f1e7c6f1e58e3cadb8f2c4845721f96242f2c485e7214865721f962422c484721c845890cb121f9c872116242f2b908e4390bfcae432b908ae43f390e432c486721c85e5890cae432b90ce42908b121f9c8721962432c484721c865890ce4290bcae432b90bcae43390a432c485e58908e4290bcb121f95c86721c865890cae432b90cae42ff390e422b90cae422b90fcb121795c865721795c86721487e721c87e58908ae422b90bcb12195c845721796242f2c48658908ae43ff390e43fff390e422c4865890cb121ff9c872196243f2b90bcae42fff2c48458908b12116243f2b90ffcae43fff2c485e5890bfffcae422c485fe5721796243f2b90bfcae42ffff2b90ffcae432c48460a40a6618626a61ce3d466883d6645657458106350e2d6321a39532150c231a421532413d3399952b690e8430cc534d4ad0638ad993418742c24072f7385897cae5e348120397e5e348521397e5e2b734cd8364b06c160d93364d82c0ea6838ea63a0e863a8e9e581d4ca0283cd5d284b050795942650143e6e1c1b87058706e5c95b9370e4dcb92c382b706e1c15d22c522ba7e574cae9f9d2a458a474a995d32c52ff2ba4574cb148b14bfcb14cb148ae99629795d22c532c533a74cae995d2f3a74ce9533a74cb148e9d2f3a74ce9d22ba474e99d2a458a674a99d3a65748ae9f9d2a474a91629962995d23a748e9522c53f3a74bce9d3f2ba65748afa9f5ea57d4b1d3cafa963a163a7963a163a1f5ebfe57d3fcfa742bea7d7a15f42bea7d7a1f5e9e7d3af963a9f4ea57d4fa752c74f2c75f2c743ebd3fcafaf963a7ff963a79f4e9fe57d7ce9d22c532ba474a91d3a674a97962996297f9d2a658a458a658a458a4574cae916299d2a474a995d22c522c533a54bcae915d32c522c52f3a548ae99629795d3f30c6831b320f483c329501f8331a98f233a001f9342646273295483d326307f03331098c307e52ae3189883d3186475630e704da30e744db320f0627329501f831040411307e4fffbd2c42383f3fdacd40ff6b68668b3dc81eeed7841031044a54318984112a8c4e641e83f26208082260fc0822560fc183f041e183f00fc183f20fc983f20fc983f20fc95896e60bf863460bf86365805f8c17e0c68ac31b2b5f8f1bc68d7fc68d7f5fcaf1b35f97e35f97e2c2fc585fcb0bf9e36bf9617e2b5f8d7f5f8ad7f2c2fc6bfafe56bf9e34bf79617f3c6f1bf2b5fcb0bf9afcbf95afc585f8d7e5fcb0bf611fc419f8f08fe7833f1e0cfcf847f308fe7833f1f067e3c19f9067e308fe7c23f8c23f9067e40ff3f8067e20cfc047f00cfc611fc81fe3f207f9fc033f211fcc0ff1f903fc7e423f803fcfe423f903fcfe00ff3f8833f011fc847f211fc047f303fc7e211fc01fe3f211fc033f011fc7067e40ff3f908fe023f808fe00ff1f903fcfe019f803fc7e419f808fe019f9067e40ff1f9067e211fc01fe3f3c19f8e0cfcc23f9067e40ff3f8067e023f808fe60cfcc19f8c19f9847f211fc047f011fc033f1067e60cfcf833f25808830881d435e33e33263062346d46d31d427b31d41d4346d3c633201d5308827a308846d351212e32267a39ea7a34b92f3221d537552f32252e2b4b8dd5c80c88c84e7a4bcb0ea9ba9e315a5e697baa644cf473da5e58220c894bcb0449a5e449612ff2c110584bcb0447991044191244160892b4bfcc88224ac882b2a4d0a114ca8114c44114ac442c089e562279588856c458633e362f3e362362623e3e3f2be23e3e32b633e263f2b88fffff2c44f95c47f96227ce2224e2620b11071310713105889389882c44f95c41c44496220ae23cae20e2627cb1127111257105889f2c449c4c416220ae24e2224e2620ae24b1105713e588838988389892c44f9c44416224e2220ae20e2223cae27cae23ce2220e2620b1105711e5712571271111e57127131257127111271313fe713125712588938988388892c4479c4c41c44416224ae24e2220ae20e2620b11058882c44ffff95c4795c4ff95c415c416220ae20ae20b11271310571271313e58882c44f95c49c4c4ff95c416224e2627fce2224e2220e2220ae20b111e57107111071111fe5888ff389882c03a18838cc99ca16b996b8501ad09db99db86c161e34cb0c730c6641d4c664f7cc570e54c570570cb08734d2b4b08ac360cb5c284c86c574c57428fffbd2c41e03f239a2e40f7370c65fb39cc1eeed980c364364c360730c364edcc360364db2d936c734f9bcd3e6b60db0d82c734db3cd36cb60adb27068399d732588319d20e7068399d20de5850f9d75405850796140575c3535335252353c32c611e1291a9e11614cd4d4cf0d4cf0948e8684e8684b14074140574058a12c509d0d09d0d09d0509d0501d050796363fcaf64af67ffcb1b257b1fe58d8f2b74375742b742c3a9baba15ba161d0dd1d4add0b0e9e6eaea56ea56ea5874374752c5096280e8680b14057405743e57407414058a12ba12ba02c50f96280b141e58a12ba12c5096280add0dd1d0dd1d0dd5d3cb0ea6eaea6e8ea58752b7537574374742b74374752b752c3a95ba15ba9baba1ba3a161d0dd1d4b0ea58742c3a7ffff96367ffffffffffffffffffffffcb0e856ebe5874f2c3a961d4dd1d7fcadd4b0e9e6e8ea58752b752c3af961d4add3cb0e86e8ebfe6e8ea587537474f2c3a161d7cdd5d4dd1d0dd5d4add3cc388588c9e8220c4b91b4c989388c58898cc5b4740c2a48c8c58c38ccb8898cc9ec220cc84c80c4b84bcc224754d4491b4c62988c63588ce2b88d2e224d2e224b0449f8f3d1a5c9719104499124415a5e6971106973aa58750d2e220d2e220d898cf8d8cd8d8cd898cd8d88ad8cd898cd8988b1c7e586336363f2c711b1311b1319618cd8d8cb0c6586236262363632c319618ccb8b8cbcbcb05c565c582e32e2e32f2f32f2e32f2f32f2f32f2f2c1796220ae24ae20b113e71313fe71111e5888388892b882c449b1b115b11b1311b13116188d898fcb0c66c6c45862363632b632b63ff2c319b1b1796224ae24b111e711125711e5713e5713e58882b882c441c4c4f9c4c4ff9c4c4f9c44495c49c4c416224ae24e2224e2627fcae20b1105711e5711fe7111071111fe57125713e57106c6c46c6c45863f2c3195b115b19b131796188ad8bcd8988b0c45862363632c319b1b19b131f9618bcad8fcd898cad8bcb112571257125888f2c44ff95c495c4ff95c47f96220e2624b11258882c441c444ffff96224b112571257105711e588838989f2c44d3045045310b0a932632e232630623562062316226236620e32c1b198850229885919194a88598220e81fc431160623589e23588622b18cde2988de3788c63588fefffbd2c42083f3559ee80f774bc682b4dcc1eee9782388c6278cb0b1161623388e32b588ac62398d633188632c0c46318c66319c46710c66310c66b1ac66318c46310c46310c46710c6563118c431f98c63199c63118c631960e3f318862f2c0c7e6310c45818cb031960622bc678f1163196319e3c658c478b1163179e2c658c65788f1623c58cb188f1622bc678b115e33c788f1623c58caf195e32bc5e71221c5885710e24438914ae29c58a71621c48a588a5714b110e2c438910e245f38b13ce2442b8a71621c58a5889e5714ae295c42c442b8a5713cae29c48858885714b110e24538910af115e22bc658c478b17f95e33c588af1ff9e2c678b19e2c678f1163179e2c478b1ff95e3f2c62f3c78fcb18bcaf196317f95e22bc7e5788f163f2c632bc5fe58c678f195e22c62f3c78bfcaf1163196317f95e32c622c633c58caf11e3c4578caf1f95e32c633c78bfcf1622c632c633c588b188af19e3c5e58c658c678f11e3c678f17ff96319829829986109a99a6b1319ef03a19ef0cc99150cc195d8cc99a683a18730f598ca89e99a615d995d2819fbecc9d755d95c54698a626980d26559dc71520c68357471520c6cc33075d8ea63a0ea68345468320e63a0e875d20c683a0c63aa0fe5841cd98664b0831a0e8318ea3a95a0e563a160752c20e63a8e86838e858418b03a160753148523309353148c22b14cb02918a42918a629160522b14cc5314cfaf52bea7d7a163a963a1f4ebe7d7a95f53ebd4faf43ebd0afa795f53ebd4afa963a1f5e87d3a963a15f43e9d0afa79f4e858e858e858ea57d0afa963a9f4ea7d7a9f4ea7d3a9f4e857d0afaff9f4e9fe7d3af95f52be858e857d4faf53ebd0faf53ebd4afa1f5e857d4b1d0afa9f5ea7d3a7963a15f43e9d0faf52be87d3a163a163af95f52be858ea57d4faf5f2bea58ebe58e87d7a15f42c742bea58ebe57d7ffcfaf52be9e7d7af95f5ffff2c75ff2be857d7ffcb1d0faf52c742c742c753e9d4afa95f52bea57d3cb1d4afa95f52c742bea57d0afaff963a95f43e9d0afa7f95f53ebd7fcfa753ebd3cafa15f42c743ebd4afaf95f5f2c752be857d7fcb1d5508000160382b0e0d954f0d94654deb7acc397acce7d10dea4f0d4b2c4cb02c4d311a0ad3134c0aa34c4ef33b8ab3059193460b03fffbd2c41a01f0c5a2f0aeeb34c619359dc1dde6682c04b32403834f43832403932443930e03932403932413c3240392c070648072561c9870489a7a48161c1b972587258726e5c9b87265e51ca2c65cb9cb2e65fe1cb94565ce59634a94ad21a44a584869529a4485694ad216129a54865cb1972e72e51962c65cb1972c565cb05ccbcb32e5ccb162b2c56b79acb1acb1aeb9acb1aeb9acb1aeb15ac6bae56b15ac56b15ca72485894e590e490b1295ca5894ae52b90ae539252c49e724a5897ce494b121cb2f9cb21cb29cb21c9215ca5890e497ce597cae42c4a57215c85894ae42b97cf9e4f9e3cb1c15f1e57c796393e38ff2be0f9e7caf92be0f8e4af92be0b1cff96392be0f9e0b1c15f058e0b1c796382c71e7cf3e7c7257c95f258e4b1c95f1e58e0af92be4b1c1639f2be7ce493cb127f9c9215c9e5721c9215cbfe72ca5893fcb1279c921cb29cb2f9cb29cb21cb29cb295c85890ae42b90ae42b93cb12795c857298701c1609034f2413901eb3094683091733344d033e0d132acaa34c4ee30957434c1313244382b398d3c4f0ace730e13d34f53d37ac3937ac3830e4382c07261c870648a786ca27a580e4ce244e44e4ace4ce0e4ce240ce240b072723226727058382b90339392b382b382c1c99c1c9c89c960e0ce4e0ce4e0b07067273e6727258392b38ff2c1c19c1c960e4b070670705838f2c1c19c1c99c9c19c1c159c159c960e4ace3ce44e0ce4e3fcce0e0b07058382b38339382b3933839396439252c4872ca72ca72ca57295c872485890ae53964f3965f39242c4be58e4af92be0b1cf96383e783e383e382c727c707cf07c727c73e58e0b1cf9f1c15f058e4f9e0b1c16382c727c7257c95f07cf27c707c727cf257c9f3c95f258e3caf83e792c73e58e0b1cf96392be0af92c7057c9f1cff95f058e0b1c16382be4f8e3ffcaf82be4b1c795f057c16383e392be0af82be4af82c71e57c796393e392be4f9e7fcaf9f2be4b1c795f3fe7c7258e7caf93e392be0b1c79f3cf95f257cf95f1fe57c79639ffff2c70a0800079603ecd71612cb09de71381f66aac420687e4226650cdc6176680617668061769dc58268332932930fb211343e211355621032115563328328343f0fa30fb0fb33280fb321021032112102b43e32112112b329fffbd2c42b01f3f1acdeaf777286a1355cc1eeecf82c1f467d1f5e7084207081f456c895977e65db2265d32265db207081f4583e8cfb3efccfa3e8b07d960fa33ecfb3fbfa2bfb2bfa3fbfa3fafa3fafb3fafb3fafb2bfa3fbfb3fafb3fafa2c7d963efcafe8fefe8b1f5e58fb3fafbf2c5d1dddd9dd5d1dddd162ecaeecb1747777477574577458ba3bbbb3bbbb2c5dff963ebfcb1f657f5e57f457f5e57f5e58fbfff3fafbf2bfa2bfa3fafaf3fafbff2bfbffff2c7d963ecfefe8fefeffffcb177e577658bb2c5d7962e8eeeebfcb17458bb2c5d1dd5d962ecaeecaeecb176577458ba2bbb2c5dff95dd15dd95dd1dddd7f95dd162e8aee8b17658ba3babb3baba3babb3baba3baba2bbb2bba2bba2c5d9dd5d15dd1dddd162e8eeee8b177e7f5f7fe58fa2bfa2bfbff3fafaf2bfbfff2bfa2c7d9fd7d7963ecb1f47f5f658fb2c7d163ecafebfcfefe8afebfffcfefecb1f5e57f457f7e58faff3fbfaf30e326333624e333632e231d546d312e1d530a8233323210b36ac7a31ec7a2c4f46eaba86318c46f18c67719c47315c6631ac46f19c658754c89224dd4c84f204bcc894bcd2f4bcd2f224e7a4b8ad2f34b8893220882c11056441a5e44191297160882c112644113e711125712588938989389893898838889f38889f388882b8838989f2b882c447f9618cb0c46c4c658633626336262363622b632b633636236263362622c319b1b19b1b19b1b195b179b131f9b1311b1311b17196188ad8cd8f88b1c656c65862363622c3195b115b196188d8d88ad8fcd898cad8cb0c45862363622c3195c415c495c416227ffcb11258892b8838989389892c441c4c416224ae20ae23ffce2620d8d8cad88b0c656c456c658632c31f95b19618cad88b0c5e6c4c66c4c7e5863362632c319b1b1f95b11b1319618cd8d88b11058882b892c4416224e2220b113e5889ffff2c4479c44415c415c4ff96224e2620b11257125710713125712571057105713e58892b88f38988388892c441c4c4796224b111e58882b882c44f95c416227ce2624b1105711fe58882b882c44795c4ff96223cae20ae23ffcae26f331e433b76dc30b95e3a3df73449133dd72835791335782f30bd1236a87a37d8c730b8c630bc7a331c2e357df730b82f31ec7a30bc2f30b87b344daa3fffbd2c41e83f005a0ee0eeb3706ce341c42bdd0003187a31e8c730b82e2b44ccc60b8cc61e8c7a31cdaa1e8b03d960c731ecc731ec7a30bc2f2b1e8c2e1e8b03d1ae5c6bbd16171ae5e6bbd15ae35cb8d72e2b5e7e97161795ae35ebcd7af2b5c6b979af5c6b97161795ae2c2f35cbffcd7ae2b5c56b8b0bcad715af2c2f35eb8d7af35ebcd72f35cbcd7ae35ebcb0b8b0bcb0b8ad79ae5e585e56bcb0b8ad79ae5e56bfcad796179ae5c585e6bbdff9af5c6b971af5c6bd7962e2bb8eebceeb8aeff2bbcaef2bbcb1795de58b8eebceeb8efbcaeffff2bbceeb8efbcaeef2bbbcaee3bef3beeffff2bb8b171df7962f2c5c58bfcaeff3bee3baeff3baf2bbceebcb171df795dc775c58bbcb17962ef2c5c77de58b8aef3bae3bae2bbcaee3bae3baf3baf3baf3bee2c5e77dde58bcaefffff2bbffcaef2bbfcaeef2c5e577ff9df7962f2bbfcaeef2c5de577162ef2bbcb17fff95de577960360c731e34da20e50cb58e4cd688b08d2b0734e5d9e30c730360b03306576576658639a61ae76c639a76c6b40958561b2695a76c561b0639a5847db58458360adcd2c58666c9b07615846e6d8658364dcc730dcc730cd8730acd83364d8f3361cc2c1b256e6959b258360acd92c1b1fe66c9b06e69b066c1b258364c741d4c751d0ad0631d47431d074f2c0ea63a8ea63a8e8563a160d83360d92b360acd82c1b2566cf99b06c99b26cf99b06c99b06c98e83a1607431d10631d4742b1d7cc751d0c751d0c741d3cac752b1d0ac752b1d0ac752c20e63a0ebe63a0e8563a18ea3a98e83a158e8563a958e863a8ea581d4b03a958e863a8ea63a8ea65094058284aca0f2b284ca1287fcca1287caca1ff3280a13284a1f2b280ca0280ca0280b0501594058280aca02c1405650960a02b284ca0280ca0280b050160a1f3280a03280a03280a1ff3284a1f2c14265014258284aca1ff3284a1fffff2c1b3e58363fffffffffffffffcacd8ff2c1425650194050799425095942565079940509594258284aca12b283caca13284a0ff2b284b050160a1f2c1405650194250960a0f2b284aca12b283cca1287fcaca12b284b050da03028040204010140a02010080300640ae302500803053c24f30d7c2a930ca42cf31c4921a300f0001300c4005305cc04f303cc03e34620fffbd2c41c003485d91db9ff00062e346243bfd000a9035bccab50300ac600d80006071010c603180c6611a82666027812018002a546032072608a05e690660a6330a28160074dc46f0c033306302b302a06234f02603428582329635f2eb1698880854e0c110038c168038c094064c008008d454d7cc660a5cca5c1d4c4f03899c459a1b8ef3180e80e98018048b009ba542604818c60701ba620e09e60de09e0d024120006cca729e4ca5b2baf182ea7acba030220082203b14028160104972b0109332164c5a76aafeb228dc6dd359e5dba0a2ff2c00c182d01c182d03d180c00c980c801c4eebff1779ae3fb76efa7ba8ca8927c39707a7a27c79803803958039803803980380398030031583a983a04c1583a45e2f14a771593bcf4b7e24f32e789492ebff72f45ee5ebc61540c4603207e180afe17007f53b0c00e4c44c60c00c8c50fd0fffd050d050d1c65d6a2ffffa251aa27c567d0fffffa219580133ba3f75e3292edc1863a4ea46dd474fffffffffffffffffffffffffffffffd4f980d0090981280b6984e00481848a1621869a25d18f32518198f263d19bd283d1a7d2d1b1b0fcf639bcf8c85987b8ff61db16c151d0749fb9cd72df399c764769881e1d19834809d9862389858ce9c5ca99b38cc9a0c149986cd1bcf161d83ce1ea3a91bc8f1997c611a16ce1bcaf21c32d31ade9b19160f191c9a9a68b599fa7d1986450b14e60e03a6271126471166450aa62a03a60e03a60e8a464698867d9f867f99062a83660d0403a0e98300e98a029983e0d2439810069810029810069818068602a8ab8ab3a01500a912a95c5987095b948b016d5fdb3ff4b0ee54255006ed19788c17050c2d0b8c49128c320c41c18a6f1728b945ca4e29eeef1fe56c8a800980801980402d79dc7a4a01980002980804980c03980c02df30180530902530880542c301402309446311448311c4830982528014c03000c23098c05008c05022b592500e2b477b0ffcea5d66d967ffffffff94b20c5dcb0cc4989356a6d779ddeb2ad6b755f57765b2996dda596d3bf38d6869da96d9d53434ef4ba1a7fa3384aa5d6bf2ab19a6ea300c013730b805f33126021130cb4230301a424a304f4122302905f9309b01e5308bc0253115c16431c9c4aa319809b1348b010e360fddfffbd2c41b83e62974fe0ff1f1056daadc81ff69e01033cce9a13e9998033720c8e03095404e3043c257309e00bd30074315306a01b93964c434b07666b9b5a486915398b4c4670561abd5a6ab341a9c58670859b40ea6965b8aa08c26b43291e438b21c5630e828906a18255402a4302824c4020012f82a2415279830b466f22268084188a8850f8238c0276895daa096a1e4406a530a427eb58491f081545ea7a311caba0d9712c06c2245b452039921093ca2624399cb1b2c29eb96a1f6c6b339233293c2e2af1b85c542519395617227c748270778c241b5976196923c2e27c2ba5fc4c49b6b75f582ca7ea3735ffffe0ab665746b4266378e2dfd7fffffffffce36c31231de4bfd191ff117fb8c19504f0c09013dcc8583304ca622984cb0e2c3cd17e039c8a86738190f763626173e280ca4e36eeb34d7401280e67a692ccc6a3708d58face8f60fa0b0e9df6268c2ee3714d7e9284d281eb4c64d280d7ecbbcac398c654a60c39c654c650e70d285280c650650cbbc650b032a63283286532530632a1ce61cc32a561cc61ce32863281ce612012061221206072070607207058038f2b03930390903d094d26834fa4ad216349a44a7a741e9d06952f95a42b485694b090ad2ff9a548695214492c25f34893cd3a62aa434a93cad29a548584869529e8485694d2a434890d22534a94b090b094d2242c2534a90d3252b4a5690b090d2a52b4a691215a534890d224f372e7fcb0e0b0e7ffcadc161c7fff95b92b73fffe56e3cadc7e5dffff372e3ffcb0e7cb0e3ffcb0e7fffcadc161cf95b82c382c382b70587058726e5c95b9ff370e3cdcb8f2b7058725873dff2c38ef9b871fd3a21dfffff65f302a03bf3183c6d2327a41d139209453312084833623919f370206d535458e2633ec4e26388c9fe23a48b6a13da898f333712b75337150153ed089223371145331208dc430be454831cd84203042842030be442035b23231156d2c15065408a685216685088685216568515a14685a1665408856541888549950229a1622959715bd15bd95bd9973d961eccbcb8cbcbcea510b08858452ba8345453444434444345a9345452c2296114d1114ad14d1110d1514d1110ad10d1514b08a575258442c549a2541a2221a2a29a22296110d1114b08868888584434fffbd2c46c83f3bd56de0ff77085de2a1ac1fe6e4054534445344452c2215a21a22215a29a22279a2221a2229d4a296110ad10b08a68a8a5844f345442ba82c2296113cd1110b08a568a68a8be58442b45f345452c22f9a2229a2a2f9a2a296110d1114d1514d1514b0886888a58442b44f345442b442c229a2a296117fcb089e68a8a5844f2b442b453454434545345443a844345453454434444344a834445345452b443a94534444344452c221a2221a25416114d1510ad10d1514b08868889fe568be68888568868b5256886888a568a68889fbf9dbbf45c58018cc0620d8cc4e31388c3620d88c5630d8ccde23388e1e2878ce6e33d88d1e32788d3e24f88c660a18cdae32788c9e2358cd7625d8ce1e2358cef62e58cd0e2438cc6e2358cd762438cc6e33588c9e31b8cc3620d8cc162178cb00b1182c60b1182c40b11f8dc456e33f1388b1e3371b88ad8cf8b88f8f8caf88d8f88f8d88b0c65862363e32c719b13195f196388f8d8fcf8988b1c65863363632c3195f115b196188ad88d898bcd8d88d898cb0c458e32be32c3195f19b1b19b1b19618cd898cb0c47c4c456c66c6c65862f36362363632c3115b115b115f11b1b19b1b115b11b1319618cd8d8cd8d88ad8cd898cad8cd8d88d8d88a310b0c46c7c66c4c456c66c6c47c6c66c6c7e6c6c458632b63362622b633636336363363e2f363623626336363ffd15b1f9558cb0c47c4c66c6c458632c31ff9b1b17f95b11b1b17f9618fcb0c458622b632c319b131f9b1b115b115b17ffff9b13196188d8988d8d88ad8ffcad8bffcb0c7fffa363622b622b62fecf95ff2aaf2c084258217cce061080c9c9655cd3ae3270dd952720e33eed24e068381cc4203dc0d957381cce0781a4e33eb494f70aed24cf704eb8cf701080cf702cc8c6f45a0cc2b7217cc9c81bd0c58b0ad8c58a0adcb02109829a2101829815b188400a61d6ca69a9b5b9554c35314c35314d2b3eccfa3e8cfa840e103ecb07d99f47d19f67d962102b3eccfa3e8cfb3ecacfa33e8fa2c1f6582efccba2e8b05d960ba32e8ba2b2e8acba32ecbb2b2ecb05d9597665d17665d177e582ecb05d19745d15974582e8cbb2e8acbbf32208832252f32208932252f32208932248834b88832252e2c11064411064491264425e64411206bfffbd2c47903eab9a2d20ff6b3471eaa5801ff5a38ac804576115d84577062ee0c5d81ae97606ba5d8457581ae976115d01ae9740c5d40df4fb037d3ec22fa063ef08bec22fb063e818fb063e818fae06fb7d01bedf606fa7d845f406fb7df06533c194cfae11a6ffffc234d81d369947ffffffffffff06110c1f907e0c1f81044d4c44abce14c8534d8f25314c1f820f0f62f7cd8ce8395f0d2af6c24df37e970f2038d90c413a6a0e14fc808e9a763d4f204c80ce3642950ce821038ce801044c4114abcc40e1898c4101040c1f91040d89f1acf1a9898c7e5898d89c7e4ae0f0f1aa0f0e0f5044ae0f0e0f5044d0420f0c7e5040c7e07e4b0823e63f282056c4e5541134101f834111f831f91f82b1f934114102b1f834114112aa08941f898fc2089607e4ac7e0d0407e7cc7e1044b03f05682056823e68203f0581f831f81f92c20818fc8fc98fc208f98fc0fc1a080fc98fc8fc95a0879607e4d0407e4c7e1040c7e47e4b03f263f03f0563f263f23f0563f0563f063f082063f03f063f03f063f23f263f23f0581f831f81f92c0fc1607e4b03f068223f263f23f268203f3e63f03f0584102c20898fc0fc019f93f00c3f2e113f2113f3033f27e0227e4187e4227e4227e4187e00e089f908c11061f9061f806410033f27e2067e0fc819f83f1819f93f0067e4fc830fc830fc419040187e3033f27e40cfc1f8061f9c227e00cfc9f9061f8061f8091f9033f27e4187e40cfc1f9033f27e2113f0067e2084187e2113f2113f00c823830fc830fc7f7061f8844fcaffffdc9d9fffffd75f317f31b37f117f34b7b29398c65434b665534da7572c30c9a6dbab1a6d12f1b2acc61b2ad949bf832a198d32a1b2a6629d947fe9b2a0bf98bf25b192f30c99ce12f989092f192f12f1612d8cc68c6cacc68cc6c5fccc685f8b06366636634663496e66362fc6bf2fc6bfe346bfafc6bf2fc6bf2fc585f8d20978ae5f3485202c4be690a406904bc5690f961213979212c24272f240690242569096121348521348521397d203481203485202c24258480ad203485212b484ad203485202c4bc56909a429095cbe5897cd21480d21484d21487cd20978e5f484d21480d20484ad203485202b480ad212c242569015a40690a40690a42690a4058484ad20ff348520348fffbd2c48183f27178ce0f76b545f6b61a01ee57205212c24258480ad213485212b480237e065f8237f81dfafc077fbf4237ec197e832fc0cbf832fc11bf611bf032fc11bf832fe0cbf832fc077fbfc237e065fc237fc197e03bfdf8237e832fe11bf01dfeff065f8237f832fd03bfdf8237e846fe11bf832fe11bf846ff065fa077ebf81dfefe0cbf832fdc0eff7f065f8197fc197f065fc237e08dfe0cbf60cbffffc197e2c0bf18bf0bf9bf859418bfa5b9d9418d15d941a6da6d9a6d44a18bf8bf1598d1961ad0986cad01890a6d9b0c9ce992f3ab9596198e69619a5606c18bf18d961954cc6d2dcb096c62fe2fc696c63462fe2fe62fe96e62fc96e696c2fc66342fe5663466342fe61b039865861b0561b261b239a63981b2581cc31201202b1202b1202c09018908909589015890992f0901f35b0586c1b65b26d86c9b61b06d86c95b63cadb26d96c1d72ba6a1ae95a87cd40a13aea80eb8a12b501a854275d5095a84d42a12b6c9b61b056d82b6c161b06d96c15f33cdb2d836c364db0d92b6c9b65b056d8390484e4120390c80ae427209095c83fcb120390c80b120390484e4121f2b901c86425890162405721390480e41202b90f95c80ae407209015c80ae405890f962425720390484ae40720901c86405720390c860cbf846ff846fe11bf846ff832fc11bfc237fc197e846ff81dfefe11bf832ff832fdc237e03bfdfbc197ef846fe11bf832fffc237fff832ff81dfefdfffff065fff08dfa0cbf2af2c1611a561619ad086c1bc6256986c0e698e61db186c2d0991503a991528199ca96bf995d8cc183a95d98cc883959ca996b0ae18500ae18ae8ae18ae10d99ca05098ae0ae158e6186c06c996186c186c06c186c86c1586c98e686c186c86c986c1611d71406a1501a86b858501a82ba56a02b501a854258509d71405850161426a0509a8543e6d86c161b256d836c363cb0d8ff2c363cace9e5883f99d0ea583a959d0cea7433a1d4cea7533a1d0ad43e585095a84d40a12c280b0a02b5095a83cad41e56a12c280d42a1350280d42a0350283cb0a0350a80b0a0350280d40a02c284b0a0350a87cd42a02c284b0a12b3a19d0ea7073a99d0e8583a99d0ea6743af99d4e86753a99d0ea567533a1d3cce8752b3a160e86743a160e9e6743ac1fffbd0c49001aae194d80f72b58554b59a95eed5a08d808b600db0d9c22d906367831b1c22d8c22d8fc18d808b620c6cf063660c6cf036cb66116c01b65b2116c7fff08b67831b3ffffc18d8720624024262422406caa96c696efe06634fe0696e2fe584b6f32c269733b61cd32c30d831cc2c2375639c339c120339d4da2bb08ec2364dcd360e5e480e5f978f9c97cd2197cb0901f3a909f39ce15cbc6904be7cef386904be572f1cbc909cbc909cbe90961202c24258480d21480232106484192108c80192008c800e4320064840db1cc036c36418d981b65b2116c7845b006d86c831b20c6c045b0116c81b65b2116c01f31b00c6c0339a0c6ce0c90046401190e0720900464184642119001c86400c6c831b2116c831b00ce6045b006d96c01b65b2116c81b61b006d86c831b006d86c031b206d86c81b65b006d96c045b00c6cc0db0d881b65b006d96c01b61b20c6c845b006d86cc0db2d90636606d86c031b308b6022d8036c363f06487fc1921846400c90c192084643e0c907c1921ff064842321fc2320c1921c2320e0c9083241c1920e1190ff0648383241ffe1190552b188b0719f7f4a1eb57c15bc66b19c46e821474a4645719988ab69bc4b11ac4311dc4b11cc47198c4b198882219502296045338ce33589622b388d62188c6338cc6318cc63588b071195222995222195022160a832a04532a0452b110ac4432a0442c08862208a78b1f95e23c58fcf1633c78bcae2162215c42c442b8a588a588be71221c58a716295c538b14b110b114e2442b8be5714e2c538b10e24538b10ae21c48871227f9c58a7162162216221c5885888712216229af5de585e6b9715ae2c2e35cbcd72e2c2e2c2f3f4b8b0b8ad715ae2c2e2b5e6bd715c42b885710b114ae29c48a588a588a58887122ff95c42c442c45f2b89e5710e2442b8bc238e11c611c5e11c5f08e3f83310331ffff8471047160cc708e3c198c238c19881988238c198e0cc7833103318471e0cc508e3f8331c0f1e3e0cc611c7847103314198e0cc5066308e3e0cc41f2c1e6a5119a1af08bc29b0f2a7b986cca7b194d8c3c98dd06f719b1a90d9a4346c69a4366c619b1a47f1ef71b39b74ef71ef76f71a08e3598fce351a08a081bc6bc61f9a79a953cd4de33cd7cde31e34a79a8de37cdfffbd2c4d083a94daee40eea974694295845ff597a0d1c3634ad1c0e3ff630e3f91c0d1c11c0dba0d98cd9a9b0cd98d98dba0d98cd9cd9ccd9cd98b0dd3e566cfe66cc6ce586e9f36e9367362741136271f831f81f9f34101f82c20898fc8fc1a080fc1a088fc18fc8fc04638846380323884638c191c0231c4191c40e38c71064700647108c7003530a640d4c29903530a600d4c54d08a9803532a6418a600d4c54d03532a600d4c29981a98532075314cc22d980db3367831b3831b381b666cc0c6cc06d9db381b666cc06d9db3045b3845b381b666cc116ce0c6ce06d9db3c0e384708463804638e118e0118e0118e2071c63881c718e0118e3f08c70038e11c00e38c7108c7008b66036ccd9c0db3b67c18d9822d980db336608b6608b6708b67036ccd9818d9818d9c0db3b670636706366036ced9c0db3b6606366845b381b676cfc191c2071c238f08c71f846380323801c718e384638c191c3c82bb45762bd6a189200a0f3144ca433d6cc69c36b368403455f43b3455ab8137c0e4323674ca4235040d5636b2cd573290d4a32a9ee6553dc8df03144ca294533f88be230f8d3e330f8c7e333dc8a4333dcd9d332908a4332908a423144ca423144ca433290851231448513314494a231448f7233dcc5133290c5122c0a24587e3d95bf1960f8ccf8cf88b07c4583e32b3e22b3e333e23e333e37e333e23e333e33e32c1f199f19f1160f8ccf88f88cf8cf8ccf8cf8cb07c4567c6583e333e23e237e23e284e898328981d13a2611a240ca2611a2508d1281d12a260744a8981be27c6117c4117c606f8df101be27c60c7c407f89f181be37c606f8df101be37c6117c6117c5063e208be281be37c5063e3037c6f8a117c581be27c7831f181be27c5063e2ff81be37c5f831f1781be27c4117c6117c40c7c4117c406f8df1c18f880df13e2063e2063e208be308be2845f1c0df13e2063e2037c4f8b08be3037c4f8fc1944c2344ffe11a27ff06513e11a270aa27fff08d1303a2544bff06512f065128468980001f961a0f32f89be330f8cbe22b674cd4a3528ccf727c08d4a25288c923183cc9221838b0ce9194867b9997c67f118fc69f198fc63f19b07b071c914919b07c91963f88a1f1cdf88f8cef88f8f46d3baae7aacd386d39aae6a254867487486fffbd2c4f0002ff59cc10ffad486bcb35849ff59b3574846a24a26574866fc67c667c67c667c6fc6583e233e23e22b3e332f82f832f92f9360f60f32f92f92c17c7960be3ccbe183cb05f265f2c1e65f25f065f0c1c56c1c582f832f860e32f82f932f82f8035f0be40d7ce0f035f0be7062f8062f9062f808af981af95f2115f006f8df1c22f8822f880df1be3037c4f8818f8c0df13e208be2037c6f880df13e2037c4f8822f8c18f8c22f8c0df1be3037c4f8a117c6117c40c7c60c7c708be208be208be2063e3063e308be208be3063e38317c8457c40d7c2f808af808af808af9062f9035f0be422be018be00d7caf9062f98457c81af85f1035f0be422be206f8df1031f1845f1045f1831f1045f101be27c7831f1031f101be27c7037c4f8c29f1818f8e06f89f1831f101be27c7037c4f8822f8c0df1be3ffc1944e0ca25f065120651284689fc1944cde666d451e74c692cb86aed3354ea7b2cc5691998436ef2c2dbe749e0b946bc1af0868cdd2784d19c1de4b1aa9bad88cd958dd05853d0c4716ce4cd8c23fcdd6d2ec8cbb275b4cbb31728c3671ba0c3671ba0c3661ba0c36545ccc36445ccd1731ba0c6e90d98b03c619e6a79a98f183c616078b2c2335af2a0b96565d91c7fa38144701611c0d1c51c3cd1c51c4d1c11c4ae3fb9e568e1fe58471336636636e9366e959b3f99b31b3959b399b31b3959b399b31b30323840e384700647108c700647006470c231c4231c606d99b3c0db3b6608b67036ccd9c0db336606367036ccd9c18d9c0db3366036ccd9c22d9c19ba40db3367064710647008c708323840e38c7081c718e0071c23803238832388463881c718e20c8e00c8e308c7108c7106470038e31c00e38471038e11c00e38c71038e31c60c8e20c8e0071c23881c708e0118e0118e20c8e0118e108c700647108c70038e31c70647108c7108c7008c710647106471064710647108c710647181c708e30647008c70c231c00e3847006470038e31c3065cafc1972ff832e5ff846e5419e3613f1bffffe11f19ffc19e33c23e340cf2c13a66bc22f044e35599b1a90d1bf8cb549bad85d91af091aa938d5665d997666b549b1866c6ad5268ce233468cd233651785150bb22b172cd19b5e10cf343cd4ad6de33cd4f3533cd078c2aa78064efffbd2c4f003b1c9a8c00ffad4867d2b97c9ff5eba9a783a34f013c12a93a6513c0993a64e9993a49e09549d32bbb235cbbb32b5ca2c2e515ae595ae59a38c7f1a382381a38a381c7fa381a38a389611c4a238fcb08e2584702c47f1a38a381a382389a38a3895a389c7f47f79a38238960a64ca61530ca65534ca64a60d531534b053058298354d29932982992b29932982992b2992b4712c2389611c4d1c11c0ad1c0d1c51c0d1c11c4ad1c4d1c11c0d1c51c4b08e068e28e268e28e0568e0568e068e28e2584702c2389a3823895a389611c4d1c51c7cd1c11c4b08e3e568e0584712b4702b47034714712b5ca35cb5ca2b5cb2b5cb35ca5ca2b5ca2b5cb35ca5cb2b5cbff2b5ca2c2e59ae52e57f95ae5161728b0b9456b9656b94585cbf2b5ca2b5ca2b5ca2b5ca2b5cb2b5cb35ca5ca35cb5cb2b5cb2b5cbff35cb5cbff2aae56cb0b95fe56b95fecaba05d4123552674e3bad48a9d373031554e1127497febaf30f887e332f18e2831290966285e38c9662f1cc5622b8ccae51ce0cc394994ac60e30e385623158838d3158c90e3243c90e31588563312904a53090c2422b1290c3e21f88c7e20f8cc3e33f8cc3e32f88b0307958c1c617c8c1c56307187c41f19607e230f8c3e230f883e32b0f88b01219848625215848658090cb0121160243f3e3db92c71e586e0db96e0adb936e38e2c371e56dc1b72dc1b72dc79b70dc15f1a586e4b0dc95b7056a69a9aa69a9b5b9a9aa69a98a61a9aa61614c3ad94d3532b63adab735314d3532b636e5b836e1b8f2c3706dcb706dc37056dcf9b72dc15b70586e4adb92b6e0b0dc1b72dc9b72dc95b726dc370586e0adb92b6e0b0dc95b73e6dcb706dcb726dc373e6dcb70586e7cb0dc1b70dc9b72dc15b73e56dc1b72dc7961b82c37256dc79b70dc161b82b6e4adb8f2c370586e4adb92b6e4db96e4adb82b6e4adb82c370586e0b0dc95b726dcb70586e0db86e3cadb92c3726dcb726dcb726dc37056dc1b72dc961b936e5b9f2c3706dc37256dc7fffffff063e30bcc78d1e34c5cca4f0c5cb8d54de87b760cf3598c4e3555e08dd6c172cd6dd3cd4de8698c0db374868c4716cdcc5ca75b0c5cb1728d19a4668cd8c23fca1b1b323fd6a932ecd19a2c0b946bc1233462e5233a71fc8e271fe8e268e11fc68e2fffbd2c4f081f03160cc0ff6d7863fb5d7d5ff5a2a8e27e69e6be56f1a7e69e69e6f1af1a57e6bc2b78dff3471471347147034704703471470347147134704703470471347147134714712c2389a38c7f1611c0d1c51c4b11fc68e28e0584712c2389a382381ae52e51ae5ae51ae5ae59ae5ae5945cb9ae52e596172cd729728d729728b0b9456b95e157280772ae5846e5046e5c1972c19728237281972bc0ee5dcb832388463881c708e2118e0071c23801c708e0071c63801c708e2071c23801c718e0118e00c8e2071c23801c718e2071c23804638e11f1bc19e330af1bee0cf1bc23e3423e31a0cb940cb95c23728197281972b03b9772ab065cb08dcb065cb708dcb08dca581dcab940cb940772ae57d5fe0cf1908f8de0cf1a15e3411f1a15e35fd55423e3611f1b5419e317f5e11f19f08f8d0678c833c6423e33f0678d81f8df1b5f33a38e8f3e1d21d43b49168319d0eceb83d0ece2c92270d155ae00e1856b28c69d355ccf736748c513290cda0f8b20eb808b24a844e99ee65219a9462891b3a65211c59044e9b41e44e96115532275155d151d3a33a38e8e33a3ce8f35a08b3232cccb3228599ccb322ccca8b419bf1df119f11f199f13f11bf13f1143e2161f88b113a5589d389c89d2c44e162270a44e3cae270da75a70da71a74b0d3a6d38d3a6d3ad386d3ad3856d3be56d3856d386d3baae56d39e56d386d38d386d3ad3a5355c56d386d38d39e6d38d3a5869d369c69cfef95b4e161a77a56d39e5869d28d3af2b69c2bd56f369c69d2b69c2b69d2ab4e1b4e34e1469c1b4e34e95b4e79b4eb4e961a77cda71a70da71a730369c69d2b69c2c34e7961a70b0d3851a706d3ad3a56d3a56d386d38d3a5869df2b69c3d5669c28d3b2c34e961a77ffcada73cada70a34ef45869c2b69cf2b69c2c34e95b4efe8ada70da71a74b0d3bb2c34ef961a77ca8d385869c2c34eecb0d3857665ffe58b322c599fecb16645766658b32ffe73fcb166657665e7665666766766458b32f2bb32e313316f31e1f6ee56bfff9beaf3144a96237c0851329f118e4335288e4333dccd9d35288d9d22908cc38248ccf4e183cd4a32908d4a3a588d4a33dc8c5132908c513528cca42528cca433dc8cf72290cca425288ca43290cdf03290cd4a2290cc5133dc8c512fffbd2c4ff03f49152ba0fffc5c651b59801ff5a901448cf72290ccf733dccb07b999484a511948428998a242891948628916144ce90e908ad448d44d44cd44d448ad448a2894b0a27e585123513a432ba42d95a8916144fcd44d448a8a246a24a266a24a2452909e58513f849f1c22f8a117c406f8df1831f1031f101be37c607f89f1845f1831f181be37c6117c606f89f101be37c606f8df1031f101be37c508be2037c4f8e117c6117c508d1308d1203a274482344b0651306513065138468941944c2344c2344a0ca260744a8901d12a270651383289c0e89d12f83289e0ca258468941944c1944a0ca2508d138468904689b8468941944e11a278328901d13a260ca2583289e11a2781d12a24f83289832890468984689032898328942344c1944e11a2706513f83289c2344f06512a8234481944a0ca260ca258468941944b8328976e11a2584689feae11a244c414d45332e313030aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaf2aa8207219b3a45243318a27c791a946a519a4c849198c1c7a7997c65f119fc47f19486126d651aae67f1a7c6517e21587c4617c1244661c9246661c124666ab9aac66ab0d3a66ab35966a082822634e2820566ab19aaca0896069d2b355cc69c5040acd563355cd562c0d3a574845144a56a24748748656a2658a4337e23e233e33e22c1f1159f119f11f1959f199f13f11bf13f11d21289161448b14847486a246a26a27e51449e585132c28981d13a2611a2411a260744e89832890328901d13a2708d1303a2544d82344e0ca240744e8981d13a2411a25846890328981d12a260744a890468903289e0ca2611a240ca2611a270651283289784689c2344c2344c234482344c1944c0e89513f8328981d13a2783289c0e89d1206512ef0669d8334e78474ec0f4e69de0cd3a11d3807a774ee11d3abc19a77ea7c19a760cd3bb419a7019a73ffff8474e8474effffc19a77ff08e9db3ffffd6bf9913a8aa1f9eb1631445566a510a2472198a24777c28226d65359675c09138644e11387163570651a0f9c59044e1a2a88aa14455e67b9948667b93e066ce98a26644ec592644e913a6d0722aa51a0f142274644e22aa644e913868aa1138644e341c644e113a552274aa44e1a2a844fffbd2c4e581eb5da6c00ffad4867d3597d5fb5f98e18d3834e19aac34e18d3834e18d3a34e958d3a581a74ac89c2b2274aa8aa9913a44e15913bfe644e113a634e0d3a634e0d38634e1aade5634e798d3834e158d3a581a70ac69d2c0a2662890a2456289958a245628998a2628998a24289958a27fe65210a27e0744e89046890468942344c2344c1944825448234481944c2344e11a2503a2544c234480e8951206512832898328901d12a240ca240ca270651306513065136e11d38c11d3811d390669c08e9c03d39a7019a7207a774ec23a740f4ee9cc19a7423a7607a734e0474e8334ee11d3a0cd3811d3a07a774e419a740f4ee9d03d39a7611d3bc19a7019a7023a7207a734e01e9cd3908e9cfe0c22742244ef83089c7089139f06113bf088d39fc1834e42234ebc1834e60c1a77f060d39e111a77c1834e84469df6c2244e550000001fcb08e06636ca8663496e6fe26366634fe069b4c32673aeae673a9b6586192b1cc33b73b63411a5531f94112b410383d62731f86263626626331b31a34b731a317e17e34b64b732982992c2a69594c194c94c795a089a0831318fca081a088fc9625e3979212b484ad2134825ef2be70ad203979203485203481213481203485212c24256d93e6b64db2d92c364db2d836c364af9856d82c360f9ad92b6c79b65b06d9e61b61b26d96c15f30db2d93e6b64db0d82b6c161b0589079c8243e7219015c80ae40720901c82407219079c8240720909c864056d92b6c1b65b056d8f36c360db0d836cb64b0d82c360adb056d82b6c9b6798586c961b056d92b9095c84e43202b9016243ffe589095c84e4121f2c480e4121390c84ae4057212c484b120ff2b907f95c87cb121390c84ae42589095c84ae425720390c80ae43e58909c86407219016240589095c87ce4320390484b120f2bbfff962fe577ef2c5ffcb17ef2c5f8aefc58bf9dfafde58bf962fde58bf1dfefe77ebf15dfcaefc577ef2c5fcb97d859c2ab88e7fa3cb0599194842891be04a51998724911aaf47a799fc43f19a7c4ff11978c122992ce71415948456a5119fc61f19553e232f8cbe232488c393248cc393183c60e31a70d5631a70d563355c69c3355cd573144c5123144851333dc8512314485122844e4d1554550a11383227089d2b2270afffbd2c4ff83f1c956d46f779446f42a9881ff7690d448d44e908d449448d44d44cd44d44cd44d448cf8df88cf8cf8ccf8cf8ccf8cf8cacf8ccf89f8cb07c6583e232f82f9360f2f92b2f832f92f932f92f82c17c960be4cbe4be0acbe3cef9be0ef8be4ef8be0ef9be0ef8be0ef8be4b17c15df258be0b17c1df37c1df17c9fc7f11fc5f115fc457f19fc7f1163e23f8fe2f2c7c47f1fc457f1963e32bf8fcaef82c5f277c5f277cdf277cdf058be4b17c79df17c15df077cdf077cdf058be4ef9be3cef8be4aef9f3f8be22c7c5e57f115fc457f1963e3f2bf8cfe2f8cb1f1163e33f8fe3f3f8fe33f8fe32bf88b1f115fc457f1963e32bf88afe22c7c458f8cfe3f8cb1f1795fc5e58f8cb1f115fc67f17c7e7f1fc458f8cb1f1163e22c7c657f179fc7f115fc457f17963e32bf8cb1f19fc5f19fc7f179fc5f1963e22c7c658f88b1f195fc47f17c457f115fc67f17c658f8bfcafe32c7c7e57f195fc658f8d5f2a2944630705f26c472af66abd8c1a661c9872693205f069320c1c510881978e4b3192463071a4ca49199e9e7a71987017c18c1e17c19c62b198dc2b118dcab11d21a891d2152179d21d2195df1160f88cf8cf88df89f88b14867ee4a25fe56a246a26a25e6a25485e6a26a27e67c47c5e67c47c667c67c6567c5e583e32b3e3324324232422432b243324324232422432c12199211219921252992112116090cac908c90c908c908908c90c908c90c90cac90cc90c90cc90c908c90c90cc90c908b048664844840c5f2115f00c5f108af8035f2be2115f18457c6115f20690d210452101a4294a1148406909218312140d21a4308a4208a420624281a424861148406909210452101a4348508af9c22be206be57c0317c8457c8457c422be60c5f2115f20c5f1035f0be418be2115f20690d2181a424840c4840c4840c4840690921e11486114841148606909210452181a43484114860c4870348490c229080d21a4208a430624208a4308a428317c0457c422be40d7caf9062f9062f9035f2be40d7caf8f062f98317c8457c0457c6115f3035f0be018be422be3fffff08d12f2c3d10653614da6a7ba2e442a7a1a9eea7b9a3362e518b971aa9445cc6374b0f2564019957055c1437be63748dd2653694d863c68f1863c6adbc6b6f8f1a53cdfffbd2c4f103f43180ca0ffacdc623b25881ff59f847e6be687e68f1a57e6857e687e6af187e6be687e69e6a6f1af145478a3f3578c378d78c378c78d378cf352c3c61478d1bc63c6961e34ade30adba4dba0d9bcaadd2566cc583672b36633676e834704712b8fe38fe4702c2389611c4ad1c4d1c11c0ad1c0d1c51c0ad1c0d1c11c0d1c51c0d1c11c4d1c11c4d1c11c7cb08e3e584702c2389a382389611c4b06cc583672c1b319b39b399b31b3f959b399b31b3959b3960d9ccd9cd98b06ce66cc6ce66ce6ce118e2071c238c191c4191c7038e11c40e38c70038e11c4191c4191c40e38c70064710647006470038e11c0191c40e3847084638e0c8e0118e00c8e00c8e20c8e308c718323804638046388463881c708e20c8e2118e20c8e2071c238c191c0191c0191c0231c40e38470c0e38c7008c708323804638c0e3847108c7108c7006470606470c231c60cf1bf57ffffdffffff846e5e0cb94a00002f30be4c3831084420332746f434224bc73259824431839265263070b039c183701c6961c14d2938a4eb9158cdce0e30eb95588eb8ce3cd58ce3cd589588cbe648cd83cbe0d83f0e0e48a48cc90c90cc909c14c909c14d295290cbe248ccbe1838d83cbe0cbe183cd83cbe0cbe1838cbe4be0cbe4be3cacbe0b05f2569485648664844845694a64864846486487fe6dc3706dc3706dcb706dc37256dc9638f2c370586e4db86e3cf8f6e0f8e6e4f8f6e4db96e7cb0dc1b72dc161b82b6e3cdb86e0db86e3cadb836e1b82b6e0b0dc9b72dc961b936e1b836e1b82b6e4db86e4db86e4b0dc1b71c71a9aa61d6ea615a9856a69d6ca61a9aa695a9856a69a9aa6f95d6e56a61a98a69a98a69614d2c29a56a67962432b90fffcb121f962422c485e572196242f2b908e43908b12115c87e572115c865890bcb121f95c845721ff9c8521162432b90bce4290ce4390bcb12116242f2b90cb12196243f2b90fce42908ae432b90ce4290cb1211c85211c87211c8721f95c85fe5890ce4390cae432c485e572115c87fe572195c87e58908e42908e43908ae43ffdbf587ccf8af88c7054224d7aa4ba8d7e30f8ccfe21f88d57a248cc2f80be4ce281294b04b319c5097518e0a4b3197cfa79fa7e1c197c97c9fa7307997c17c197c61c9df1df119f11f19df15fffbd2c4f303b38556ce4ffba9d6c3a41945eff822f199f15f199f1bf199f19f19df15f1160f8cdf8cf88ef8cf88cf88f8cb07c467c4fc66c1e5f065f05f265f0c1c6c1c5f265f25f265f05f265f05f065f25f065f25f26c1e5f256c1fe582f832f860f31b838d31b91b931b91b931b81b82b1b931b81b92b1b831b938e2c0dc18dc1c695a5279921921992112116090fcd295290c908908b048464864865824332434a531b81b831b81b931b81b92b38f2c1c7160e34b0372563705838f2b1b831b81b831b91b82c0dc9606e4c90c90bcb04845824232432432b24332422432b2422b2422b24332432432b2422c1219921121f960908c908908b04846484485e64864845648658242f2c121959211592116090bcac90cc90c90cb048664844866484486564866486484564846484484671c3706ac6371e637071c6372370637237063723726372372637237063723706370372581b931b81b82b1b82b1b831b91b82b1b92b1b82c0dc959c7158dc98dc8dc98dc8dc79606e7ffffeef34bdd4378ce2398c633b8a623188e23d8a62338ae23578c737dd5f2c1c65771985e3d98f6d59abc17163c634bd2f32248939ed2e32232137512e3751d5375488f34bdd534bd2f32208939e92f32212f32248934bc892b4bcc88224d2f220ac882c11269711058882c4495c41c44495c41c4c415c415c4162a0ea514ad14ad14b0887508a68a8bfe75088584434545344a8345a82c221a2a21a2a29a2229a2a29a2221d4a29d4229a2a21a2a29a2a215a21d4221a2a29a22295a279a2229a2229a2a29a22216114ad14ad10ad14d1114d1513cd1110ad14b15268a8a56885689e5844345442b442b4534544345452c229a2a29a2a296114d1517cd1110ad13cd1114ad14ad14b08a68a88568a568be68a885688588938988f2b88f2b88f2b892b89f2c447fff95c496220ae24ae23cae20e2624ae27cb11056c5e5863363622c3115b115b19b1319b13115b19b1b11b13195b116188b0c5e5863f36263f2c3195b11b1317f96188b0c60c44ffff84513fe0c4404513e0c44fc188908a2708a27cc484e74d866254aec44c97d36cd860484dd5ce74b073a64bf12a69b424265841b261ac9585825e312039c325e894339d757312025f2b619312139c3120120325f4db31201213121fffbd2c4e403eff9ace40eeeb7c67f361b01ee56f01203120120312125e3121120325e25f325e4da2c12f192f1ce18909ce996106c160730b01b063981b063981b0580d9f2b909c8240721909624058901c8640721901b679a586c1b61b056d92c363cb0d92b6c795b63cb120390484b121f2c484b121f2b9095c84ae4058901c86405721ff2c484e4121f390484b1212c484b120f2b909624056d82c364db2d936c360db2d92c360db0d936c364db2d82b6c95b64b0d8f2c360db0d92b6c95f34b0d82c360b0d82c364db0d936cb64db0d8f36cb64db0d82b6c7961b2586c15b60b0d92c360db0d936cb64adb2586c15b60db2d82b6c79b65b056d92b6c7fff961b3e56d936cb64db2d92c364b0d82b6c161b3fe6d96c95b60adb211907846400c90c192006482072190c232106484232006483e0c90c1921c0e4120064802321c19218464308c841920f846401190c1920064861190846400c9060c908324384641c192106483f08c842321af3210329369d2693340190343f32830fa66d366d89d35569b2332843e355643f35569b2389d66c327a1d4346c27a33c746c2882d31910ba2b26937840fa321055630fb210343f32832103292b3292b3292b32830fb210321043e3210211321121030fa0fb3843282b3e8f28840cfa3eccfb3eccfa840b10819f47d99f67d99f70899f47d19f67d15c2267d9f7e7081f467d1f5e567d99f47d159f667d9f6583ecacfaff2c1f4583ecae1133ecfa2c1f6567d159f467d9f667d9f6583efcafefcafecafe8b1f458fb2c7d9fd7d15fdf95fd163e8b1f457f657f657f7e57f658fb2c7d963e8b1f458fa2bfb2bfa2bfa2bfa2bfaff2c7d95fd95fd7ff95fd163e8febe8afe8afebcafecfebebfffcfebebfcfefebcb1f458fa2c7d15fd15fd1fd7dff9fd7d163e8fefecb1f458fb2c7d15fd163ebcfebeffffcafecfefe8afecfebecafecb1f658fb2bfbff2bfb2c7d95fd9fdfdff9fd7d1fd7d1fd7d95fdffffff95fdff9fdfd963ecafecafe8febebcafebfffcb1f657f47f5f5e7f5f7fe57f67f5f47f5f5e57f7e58fbff2c7d15fd163ebfcb1f657f7fe58fb2bfa2c7dffff9fdfd95fd985e171611230b82f3a39f7357a8e30b91337c8cc31649334495e331d13324c583248cd30bc7a37d8c630b8c73248cd33301d31fffbd2c4eb83f475b2d80f7774c5b935dd81dd66d8609331e8c630bd1230bc7b30b87a31ec2e2b578c7a44cd130bcb063985c3d9602f30bc2e2c05c63d8f666305e61705e563d985c17985e179aef456bcd7ae2bf46b97961795ae35eb8b070ec1d33a70b070b070b073cb070ced9ff2b5c56bcd7ae2b5c585c6bd7ff9af5c56bcb0b8ad796179617f95af35eb8d72e2c2e2c2f35eb8d72f2b5de6bbd962e3bae2c5e577f9df79dd7162f3bee3bee2bbbffffcefb8b17f9df779dd7962f2c5e577ffff9dd795de57715de57715de58b8eeb8eebcefb8aee2bbcefbbcb177f95de58b8efbceebbfcb1795dfe77dde77dc5777f962f2bb8b17162f2c5de77de775fe58bcaee2c5e77dc775c77de57715de5771dd7962e2c5e58bcaefff2c5e58bffcb17795ddfe58bffcefbfcb17f9dd715dde57715dfffffe58bcb177ffffffff95de5777ff95de577962f2c5c57715dff31a71aca3861eef93355daca37c0a43335288f7337c094a12b3dc8c2f91838c92255e8eef81a70d4118610c2f83d38cf4e248cd26530e4a0a27285214d9d22908a86ab1a822a08160d5636b28d5631a75acb3355d41033558d572b1a70c69c1a74d4111a74b034ef98d3a34e9d21289f9d21a891d212899a892899a89a89f99f11f1962f88cf88f88acf88cf88f8cadf8bfcdf8cf88cf8cf88acf88df88f88acf8ccf8df8bccf8cf8cacf8ccf8cf8ccf8cf88acf8ccf8df88cf8cf8bccf88f8fccf8cf8ccf8cf8cacf88cf8cf8e117c414f8a06f8bf101be37c6117c4137c4117c6117c7063e3063e2063e2037c4f8c23f8823f8e117c406f8df1845f1845f101be27c4117c40c7c508be2063e3037c4f8c19f8822f8c0df1be20651203a2744a0744a89c194480e89d13065130651203a2544c1944eb81d13a260ca240744e89f853e3418f8818f8818f8c22f8823f8c0df13e381be27c606f89f160c7c6117c7037c4f8c0df1be2037c6f8c0df1be281be27c606f89f1831f181be27c40ca2611a240744e8983289046898468903289419448194480e89513832890328983289c0e895120651281d13a240744a890468983289c23448234480e89d13d0eaf5c19a76dea8474e8334e2bffef0669dfffffd5e6498b0751af860e372684a86587c8ccdd48c59074cb41b8c6e358ccc160d08070fffbd0c4fa03fa5daac20ffad4c5bcb45e01dd62d0d43164ad433164933165092b24cd09248c58164c93420c59164c1c160d09160ac923420923164583074cc2c03860e0b2562c79601d3070593070932b074c1d070ac5839614d4282b506a029840a61429cb0a585264489608990225644c8bd32040c8912b206408991225644b0f4c81032240c81032240ac816081608191205640b044afa7de796387de7963be7de95f4af858e7f96225703840e302c44b11f38c3cb1038c4e312b8f962070895c4b1d3e70b1c3e74fbd3ef4fbc3e74b1c3e74b1d3e70f9dff2c73caf9e58e79f79e7def95f7cafa58e95f0b1d2be16387ce95f7cafbe58e95f4b1d2be163a7de7f9f3857d2be963a57c2be95f0afa7ce15f4afa7ce1f7857cff2bef9f3be57dff3ef0b1d2c74afa58e963858e963858e963857c2be1f7a57cfff2be95f0b1c2be1639e57c2c70b1cf3ef4afa58e95f0afa58e9639e7ce163858e963a7de15f4b1cf312012035a04ac34ad1cd31cd3b635a05a0322b47131991992c09a982989a960398c650398c3612b0cb08edcc730730cd34418c1d4660c1d4664c48097cce70e70ce74484c480480c360360c734364c730364b039a65841b265841b2561b0580d92b0d93831d4acea7063a19d0ea707cc99d4ea63948958e0c703831c39bcc723931c244c703832994cb05232994cb052ff2c14cca6c3f2b29160ea56742b3a19d0ea6753a159d0acea56752c1d4cea7533a9d0cea74fff2b5015a80ad41e5850f9a8541ffe5850959d4b074f2c1d4ce8752b3a99d0e8570633a9d0ace8583a959d7cce874f2b3a99d4ebe56ea6e8ea56ebe56e86e8e86e8e86eaea6eae9e587537474375752b7537575374742b742b74f375752c3a1babaf9baba95ba961d0dd1d0add4add7cb0e856e858752b742c3afff9ba3a1ba3a79baba9ba3a161d4add0e8280b1427434258a02ba02ba1f2c501d050796280b14058a03a1a12c50796284ae80e8687fcae83cb14058a0f2ba1fff2c5095d016287cae87fcb1405741e74343fe74143e5741e74141fe58a1ffff2c5095d0f96283cb143fe574258a1f2c28206c48311e6abd8c1e65f197c667f137c67e36a8226d65a82263f197c661f11fc667b99ee662899ee64d41099aaea089b5966ab98fc63f11a7c63f118fc4fffbd2c4f003f3f1a2e20f7375467ab55881ff5a685f198d3834e18d3ad6618d3ad6518d3a6ab99aae34e959aae66aba820634e1aac57aac58d57369cd56cca34e4b0d3856d386d3ad39fc2c34e1b07b07997cb07197c3071c91307997c17c160be0b05f2565f26a26a26585122c28915a89f95a896bfcd44d44cc90890cac90cc90c90cd294908b04865648456484648448656486582423242242324224333e33e233e33e32b3e32c1f119f11f1160f8cacf88cf8cf88cf88f8cacf8cb07c667c67c467c67c6583e3037c4f8c18f8a06f89f1031f101be27c6117c7063e2845f1418f8a06f89f101be37c4117c60744a890328960ca2411a240744a89046898328981d12a240744e8904689c0e89d1284689708d1308d1283289e0ca27c0e89d12c2344f8328984689032897f81be27c40c7c406f89f1845f1845f17063e308be3063e3037c6f8c18f8822f8818f8822f8818f8f063e3831f101be37c60c7c406f8df1611d3bff8474eefffff7fc23a77fff42af314d42032684ee3268340355666c332966d3328556332832830fb43e2c21f1a1f9081908a1f1a771a019341a01a7705d99348c898c80c819341341a1015b98a68a698a615b9ac515b190887d187d07d987d108190819479595b995b8a698a68a61595b15aecad746bb5d95aecd76ba2b5d9ae976585d1ae974579035d2e8d74bb35daecd74bb344220d112f344220b088344a20b088344220e5e89344a20d12893e2e22c311f1b11f1311b13195b196388f8b88d8d8cad8cd8d8cd8988e2624e2620e2624e2220b113e5710711127131271113e58893898838988388883888938989f2b88ff388882b89389882b89388882b8938889389882c449c4c415dd7962ebceeeecb17477776775747757658bb2bba2c5d1dddd15dd962efcb1745777e577458ba2c5d9ddddf9dd5d95dd95dd162e8eeae8b176577458bafff2bba2bbb3bbbb2c5d9dd5d795dd1dd5d1dd5df95dd162e8eeaebfcb17458ba2bba2bba3babb3baba2bbb2bbb3babb2c5d15dd962e8b17658baf2c5d15dd7962efffceeeebcc3e21f88ccb92b88d23a48e8c85e162ca10bc31838f4ed9a4ca17c9924617c987c67f119fc43f1187c63f11613e231f8cbe2309087042b259cc7050908cfe21f8cac7e230f883e332f88be230f8cbfffbd2c4e803f01956de0f73748691b259c1fedab8e231f887e32c07c6503e3987c63f1187c41f1987c41f1187c61f19587c7e7f17c657f19fc5f179fc7f115fc458f8bcafe22bf8bfcb1f11c852195c865890cb1211c872116242390a43390a42f390e432b90fcae42390e42f390a43390e42390a42f2c4865890ce43908b0dc961b836e1b836e5b92c370586e4db96e0adb936e5b92c37256dc1b72dc9b70dc161b836e5b836e5b82b6e0b0dc1b72dc161b92c372586e0db86e7cb0dc95b7056dc961b92c3726dcb70586e7cb121962422b90cae422b90cae43390e43390a432b90cb121f9c8521f9c87219c8521f95c86721487e572116243390a42f2c4865721ff95c8458908e4390bfcae43390a43390a432b90cb1211c872116242390a432c485e72148658908e4390c1890e0c48508a4284521c1890a0c484114840c484069092181a4348508a4383121422908189082290a0c4850624308af808af8ffe0c5f1fff8457c0457c5500002f317f4b633b769735a12c23ffd655317f7f1331bb28365417f312125f325e619317f98c331a17e317e31b3b294b62c18d19611611a5616199db0e698bf8bf9a5b8bf1a5b25b998d98d18bf0bf998da5b18bf18d98bf25b198d98d98bf18d1a5b18d958bf95a5b9afcbf9afcbf79617f2b5fcf1a5f8d7f5f8d7e5fcb0bf95afe6bfafe56bf1afebf1631b2b480b0901625f2c24269024072fa40690242690a42690a40690a406902406904bc58483cd2097cad202b483cd20484ad203481212b480d20484ad21f397920f2b487cb0909a429015a4256901a42901cbc901a429095b9be66c1b066c9b2566c19b0e6960d82b364cd9360dcd360cd8360b06c159b058364cd9363cb06cc237ec197ee11bf60cbf046fde11bf60cbf846401190846400c9081c86420c90046420721900464007219081c86400c9003243039048607219060720900464306484192106480237e832ff065fe11bf40efd7e08dfc0eff7f08dfc197f81dfefc0cbf81dfafc11bf40efd7f065fb065fc197fffffabfffff065f90403cc4102950c62707e0d6dd07e4c83d1044ce8107e0cc6a2954c6271898cc6a1044c41120f4c6541950c7f00c68c411189cc62620f4cc6b20f0d2ddfc4d9505f8cc68c68ad044c7e2950e0f47e4e0f20f0b0c4fffbd2c4ec813099a4d64f76b556e6315a95ff71bac56c4e56c4e63f23f25682068223f263f28226c4c3f2581f8341141131f91f92c0fc16189cc7e1040ac7e0ac7e4c7e07e0c7e07e7cb0821e563f0563f062422426240240624224256240581202b12131201212c090960480c480480ac484c484978c480484ac480c484978c484487cc480484b02425825ff2b1212bbff9dfefe77fbf95dfcb17e3bfdffcefd7f2c5ffcaefc77ebf1dfafe58909c824258907f9c86425720390c80ae4058901c86425720390480ae4057212b90f95c84e4321f2b90962427209095c80e41202b901c86427209016240720909c864257202b909c82405721390480b1212c480b17e2c5fcefd7f2bbf95dfceff7e2bbf162fe577eff2c5fbcefd7f2c5fcaeffe58bf95dfffcefd7e2c5f8b17e2bbf9c8243e589096241e5890962427209016240720901c864057202b9016243fe589096242721909c8642589095c83ce41212b9015c80e41212c7e3fcaff3fffffffffffe57f9ffffffff2c7e55f314d6f4319169c334141731d5320308946c341734134170ba33211d5332112f2c0b198f18711897990984413d984493d9a0b85d98c80c818c81349a995b1a98a69a98a6962b633ea1133ecfa2c1f467d9f458537cd4d534aeb62b534c894b8c894b8d2e4b8b0441a5c44f9b1b11b1311b13115b11b1f11b1b11b1f19b1711a2d41a2a279d42295a21a2a296110ea510ea510d1510d8d8cb0c4586336263363632c311b1319b13115b11618cd898bcae20ae27ffcae23fce2223ce2224b111e71311e577658baff2c5d95dd962ecb17458ba2c5d95ddf962e8aee8b17458bb363622b63362632b63362632b63362622b632b622c311b1b11b1b11f1b115b11b1b195b179b13196188b0c66c6c67131058892c44795c495c41c4c495c49c44496224ae23fce2623cb11258882b892b89ff2b88fff2c441c4441c4c416224e2624b112571057107131271311ffe5712571258883888938989f2b892b89ff38889389892c449c4c4f96119a39a1cdee361e4a6d3914c8ff336348ff31534d6c2b563cc6191d5cc4db0978ca5507e4d09920f0c8022ae4cd6c1534c2980a60cdef1ba0c3660d98c3671ba4de31e28aaf187e68f1a6f1af1a54a6d33663672b6e936e836734714712b8ff38fffbd2c4e483ecd556e20f776ec706aad981ff75f8ff47038ff4712c47f1594c194caa6194c94c994c14c194caa6194c94c15a08958fc18fc0fc1a080fc9b132089a08a081a088fc158fc98fc8fc98fc8fc98fc0fcf98fc8fc9607e4c7e07e4b03f0563f2581f934101f831f91f92b41031f841031f91f82c0fc1607e4c7e5044c7e47e4ac7e0ac7e0d0407e4c7e47e4d0447e7cd0447e0c7e07e0ac7e0c7e07e0c7e47e4b03f2563f263f23f063f03f0581f9ff2c3f2587e0adf82b7e7cdf97e0b0fc1bf0fc1bf0fc9bf2fc795bf056fc961f837e1f937e1f9f2c53258a64e99a67ce99a64ae992c53274c53258a64e99a64e99a60b14c1d314c95d3274c53074c53074cd32574c95d3274cd3258d9bcb1b3963672bd9fcaf662c6cc7b36ce7b3ece57b3ff9ecdb316367f2c6cc57b3795ecc58d98b1b315ece57b315ecc57b395ecc58d9cb1b3963672c6cc58d98b1b31ecfb3ff95ece58d98af66ff3d9f663d9b662c6ce58d9bcb1b395ecc58d9caf66f2bd995f31a74d5738745265324902f836f8cfe233f8d3e33674ca43367494a23248c2f930be02f831f893e334f8c7e232488c392a0c1c661c124657ee67484a267485ee46a25ee47ee4a2457484748548656fc667c6fc456fc4587e23512a422c5211a89d211a892899a89a8919f1bf1943e2f99f19f1160f88acf88df8df8fcb07c66fc47c7e583e22c1f1f9a52121192125219219219a5225299219211921a52f9a521219a521211a52121997c97c960be4cbe5838cbe0be4acbe4acbe0cbe4be4acbe0cbe4be0b05f265f05f3e577c1df17c1df37c15df1e77cdf058be7cef9be4ef9be4ef9be4b17c962f92c5f2577c95df058be4ef8be4b17c1df17c79df37c962f83be6f83be2f82bbe4b17c795df0577c962f8f2c7c47f17c7e58f8bcb1f115fc7e58f8bcafe22c7c47f1fc7fe7f1fc657f1f963e33f8be33f8fe22bf8cafe32bf8ffcfe2f88afe22bf8bcfe3f88fe3f8cfe2f88afe32bf8bcb1f1163e32bf88b1f17963e2fff3f8fe32bf8cb1f11fc7f1963e3ff2c7c5e7f17c5fffffe7f1fc7fe7f17c657f1f963e3ff2bf8cb1f179a08f40992f5881a6d30c9b137401a08a089545f8b131a56ca8731afe2696ecaa73182fe68234aa63f10787078c4e74a83f0563f063f0c4e70798d674a8820fffbd2c4e783f1f556c80ffbadc667b3da41ee572078d43f06822820682082056c4fe682082063f23f0584112c0fc158fcf98bf0bf18bf8bf198d8bf960c68acc6cac5fffcd0447e4c7e07e3fcc7e5044b03f27f8fc163f057f93fc7e7cb1f92bfcff9fe3f27f9fc9fe7f257f82c7e4b1f83fc7e0aff3ffe58fc1fe3f2577f2c5f8eff7f2c5f8efd7e3bf5f8eff7f3bfdffcb17f2c5fceff7f3bf5fbcff1f82bfc1fe7f258fc1fe3f058fc9fe7f07f8fc79fe3f3e7f8fc15fe0b1f92c7e3ffcb17f3bf5fcefd7e3bfdfceff7eff3bfdfceff7ef2c5f8efd7f3bf5f8aefc58bf162fc77ebf95dfcaefc58bf60cfc047f207f8fc833f1067e211fcc0ff3f9c23f9067e611fc033f011fcc19f808fe60cfc033f108fe419f9c0ff1f9847f007f8fc847f011fcc19f803fcfe419f8c0ff3f9c19f8067e60cfc047f303fcfe703fc7e607f8fc423f808fe3847f00cfc033f211fc047f007f9fc847f381fe3f3833f00cfc833f3c23f9833f103fcfe40ff1f85f34b617e36544b7317e7f1378c69630d95a03b2898d331b7f02b39c325e619325e121375712131cd3b732c20d931cc697315c0a02c16b990d8ae198da5b98bf25b998db2a18bf18d9a43ce9a432f9a40901a412f9f39ce9f3b2f9f392f1a42901612034839d2c24269024072fcbc690242690a406d96c9b65b26d86c95b60db0d836c360db2d92c360f98d82be695b60b1cd36cb63cb0d936cb64b0d82b6c1a814056a1350283cebaa12b5015d73cad426a0509a814275cae1624057212c483fcb1212c483cb121fff2c483cd42a0350a80d415d350a80d42a0350570b0a0f3ae574ad4258509a85426a15015a84d42a0350574b0a02c364db2d836c364db0d936c360db0d82b6c1b61b06d96c961b3e6d96c1b65b06d86cf95b64db0d836c360b0d836cb64adb258e6961b1e586c95b64db2d92b6c15b64adb26d86c961b26d96c95b64b0d92b6c961b06d86c795b60b0d92b6c961b2586c9b65b1e589016241e5720390480b1202c484e4120390c83cb120390c84b120390c80e43212c480b1202c484e43212b909c864057212c484b1212c483ce4321000fe62a690046401957256d7c1a044401990048111a046401158532620814aa56208987383ab184bc3ab986343f81931a32a9863432a98c4e41e9907fffbd2c4ea03b2f156da0f7790863b335a4dff5618a2081882220898a9a14c9900655c985328111853214cf9c014019aa694c994c94c194c14c994c14c1aa62a6194c94c960a64c7e47e4ac7e3fcd0447e4b08225825e325e121312025f2b121325f25f2c090960978c4844860cfc847f211fc01fe3f011fc81fe7f20cfc01fe7f00cfc047f20cfc01fe7f00cfc833f20cfc847f103fc7e60cfc047f207219001c86420721900324108c800e432108c84192006480232103904840e4121833f011fc01fe7f103fc7e3e0cfc033f007f9fc047f011fc01fe7f007f8fc419f908fe308fe211fc047f00cfc847f207f9fc847f20cfcc0ff3f8067e7067e023f808fe40ff1f9067e211fc033f011fc833f3833f303fcfe3067e00ff3f908fe019f9833f20cfcc23f903fc7e019f808fe023f8e07f8fc40ff3f8833f1067e423f9847f207f8fcc19f9847f207f8fc033f211fc847f00cfc033f1a99d67fa933ccc957f313fea3d51f6a55f31a7069c3183d26534990c3934f8d3e236f88fe235f8a7e232f88fe331ce038c31588cb934a59673bc724235635633739738338f90f34a470437054a5324324237e3be32b7e333e2be337e27e32b3e333e23e333e33e233e37e22c2899a895211a89d21f0b0a2456484648648456484648694a648648456484582422c1211921a52159211592199219211592119211211fc5f17f95fc457f195fc5fe7f1fc658f88ef9be0b17c1df37c1df37c1df17c9df17c15df2577c15df277cdf277c5f277cdf3e577c962f93be2f9fff2bbe4ef9be4aef93be2f8ff2bbe0db96e0adb836e5b836e38e36e78d36e1b82b6e4db96e3cdb86e4f8f6e4db96e4db96e4db96e0adb836e1b92b6e0e4390cb12115c84721c84572179c87211c852195c84721486721c86721486572195c865890cb12179c87219c87219c872115c8477c5f0577c15df2577c95df077cdf0577c95df258be7cef8be4ef8be7ffcaef83be2f9f3be6f82bbe4b17c962f82c5f1e577c15c867214845890bfce4290fce43908e4390ce4390cb1219c85219c85219c872116242390a43390a42f2b90bfcb121ff95c87e721487e62898a2462891ee462890a26541f88c3e27f88c5121444f3c2144ccf4f0be4c2f93d3ccf72674cc5133dccd57a4990b061c985f217c9ff1fffbd2c4ee03f47d56cc0ffba9c6beb5d901ff59b0bf19df11f11bf1df19c9117c94922997c97c1c91b07645144c74874847ee6a25c3a4251335125133a4251335135132c5f19bf1bf19bf11f199f11f11bf19f199f19f195b07997c17c997c97c9b07307960be0cbe0be0cbe4be0b05f3e67c47c467c47c6567c667c47c4583e22b3e32b3e22b3e333e33e28457cc22be40d7caf98457c01af85f211c1e115f0b062f903c1ebe018be418be00d7c2f8062f9035f2be018be40d7c2f908af908af8062f9062f881af85f0115f006be57c8317c01af85f2115f2115f20783d7c0317c0457c0317c8457cc198380d7caf9035f0be606be17c40df13e3063e2037c6f8f08be2c0df13e3037c6f8a0c7c406f89f1031f16117c5037c4f8818f8c0e89d12c2344819448194482344a11a260ca2411a260744a894234482344e11a240744a89f06512c1944e117c606f8df1845f1845f140df13e3063e2f063e308be3063e3037c4f8f063e2063e3063e2063e308be2831f1031f142344aaf83289ff06512846897fffff08d130651354c414d45332e313030555555f2c113a6ce9be046f81a9467a1d687668aaa2a87e79a2a86d07341e6491924469329244513e39afc65f199484f8199ee6a5118a262899a94428999ee628918a262891be062891a94452118a2452199486a51191388aa1913844e9a2aa44e9913844e9a2aa44e1a2a844e9913a44e9511542b2270a1f14aef8cacf88a1f17cb0fc4585122b5123a43a43f2b513f35125132c28981d13a240744a8904e8981d12a25c0e89d1308d1203a2744c2344c1944819448194480e89d1275c2344b03a2744c0e89d1208d120651284689e0ca2703a2544c1944a0744e89c1944c1944e11a240ca2411a260ca260744e894194482344a0ca2708d120651208d1206513df03a2544e0ca260ca2613a2508d1203a2544982344fc23449ffc19a770669ce11d3b08e9c08e9c08e9c8474ef68334e230669cf8334ee11d3bedfe0cd39ff84b4e0474e3c19a737fc19a774fb7ffd1a8ac5ca3172d7853ebdc5cb2b5e0cd19b4668a2f083bc90bb3285d90ca6d29b0d1730d98e3545e10d7855e08c47023f8db3711c4a11fc32ec8bb23466cbb234668bb23172978328bc20ad7853466d19d32eccbb334674bb22c233450bb2fffbd2c4d583e9c98ec40ffad44632b35881ff5a9879a3345d915a336562e5128b9671fc8e068e28e068e08e068e31fc568e271fe8e25836733666e82c1b3959b3159b3159b39b749b3160d9cacd9ccd9cd9fcb06cc566cc566cc66cc6cffe566ce566cc566cc66ce6ce5836633666e93366367336736636e83662b36636e86e82c1b3960d98231c4231c4231c0191c4191c4231c0191c4191c0231c58191c20c8e2118e20c8e00c8e1038e11c0231c4231c4231c40e38471c191c6071c638846388463840e38c70038e31c00e38c70038e11c0231c40e3847108c71c0e3847181c718e00c8e2e0c8e2118e00c8e18323881c708e0118e211b940cb97f03b9572c2372af065ca81dcab97f832e5f03b9572c0ee5dca08dca03b9772c2372f81dcbb9411b940cb97fc1972e11b940cb94e11b940cb95ededde0cb956846e5fff09dcae12b960000001fcc2994b64d58f35b0cd6f1530d2d835b0d0220a60c31b2ca4c17e05f8c4b605fcb00bf18c303ab18eac30c98822208960c6b31040a55319544b630c6831b3195031b3200c29831534ab830a648022a0532581534c2990a60ac54c2c0532562a69602982c0a98614c05305640116031b305fc4b72b0c68b018d16031b305fc17ff2b7e3cadf92c3f0587e0df87e4df87e4f1b5fcb0bf1afcbf79617eff2c2fe6bfafc56bf95a42690a4072fa4272fa40690242690a42690242690240572f9a40901a409015a42690a40690a40690cbe690a4269024256901a40901a40909a42909a412f1a41ce9a42909a4090961202c5f8aefc77ebff9dfafde577ff3bf5f8efd7e2c5fbcefd7f2c5f8b17ef2bbf15df8efd7f3bf5fbcb17e2c5f8eff7f3bfdfcaefe77fbf162fc77fbf1dfefc58bf795dfcaefe77ebf1dfafe77fbf9dfefc58fc1fe7f057f93fcfe4b1f82c7e4aff1fe58fc95fe0aff258fcf9fe3f258fcff95fe0aff1e58fc95fe0b1f92bfc1fe3f257f83fc7e0ff1f8f2bfc9fe7f3e58fc9fe7f257f82c7e3cff3f92c7e4b1f83fcfe7cb1f8f2c7e0ff3f82bfc9fe7f257f9ffffcbf79dde6bf76bb87ef58ffffef3cf9bfdd65909587c663f127c65455e4d2641838c9224994c9221830c66c0ca4c0fa0ca4cae20e34c5632438cbc71290cbc638a4ad2642c05f0617c8c1c787124465f2c1fe7485485d3f72fffbd2c4ff83b74592d26ff796ce783199c1ff75a8a433f73512314c4212c15b9a1095b195b15b960be4cbe0be4cbe5838d838be4d838be0c6e4e30ce386e4d58ce38b071e563706370372582422c252960908c90d297cac90cc908908ac90cadb936e1b936e38c36e1b82c37056dc1b71c61b72dc9b70dc9b70dc162f9f2bbe4ef9be7caef92c5f3e577c15df058be0aef8390a422b908ae422b90cb12196242f2c4845890fce43908e4390ce4290ce43908db86e0db96e4db86e4b0dc9b72dc161b936e5b836e5b936e5b936e1b92c370586e0b0dc1b72dc95b7256dc1b70dc1b72dc9b72dc1b70dc95b7056dc9b70dcff9b72dcf9b70dc9b72dc15b70586e0b0dc1b70dc95b726dcb71e586e4b0dc7fffffffff95fc658f8fffffffcafe2ffffff390a43390e42f2b90ce43908b12195c86721c86721c85e5721796243f2c4845890cae422b908e4390ce4290cae422b908e4390cb1217fffff962f92c5f3fffffffffe58be7ffffffffcb17cd5f2c0a266f813e066289b3a462529c5265e39c50512651a4ca61c96096631294bc632f1cbc731294bc630e30ae532b8c90f3158c38f32438ae33158c1b82b0e34a8491985f04929924630798c1e3079978c71498948121184847141589486289948665210a2462898a26581448aca432c0a2462890a2456289958a27e58144cb1f17ff963e23f8fe3f2c7c5e6dc3726dcb726dc370586e4db86e4db96e4b1c79b70dc9b72dc1b72dc1b72dc9b70dc1b72dc9b72dcf9b72dcf9b72dc95b70586e0db96e0b121162432b908b12115c865890cae43fff2c486572195c85e6dcb706dcb706dcb726dc37256dc15b7256dc9b70dc161b92c372586e4adb8ff36e1b936e5b8ff390a422b908ae422b908ae432b908e4390ce42908e4290ffcb1211c8521962422c484721486721c86572196242ff2bbe3cb17c15df058be4aef82bbe4b17c95df258be0b17c9df17c79df37c95df277cdf258be3fcef8be3caef82bbe7ce4390ce42908ae42390e43ff2c48457211c8721962432c485e721c845890bce43908e42908ae43f2b90cae422b908ae43f390e432b90cb121e11a244c8532310ce157e3496d8d93103fcc48c61f831931cad5270ae8192a1276cb51950b27064a9958b034403a095cd245b3b7114c8a46353c2ce1fffbd2c4ea83f37d5cce0ff6d7c60934de41cd6691444353298d52a832342b64c8a324908d5644353aa8444a1cf46b3f9a6506a968b563fea8af41bb1a648798f1e63c898c266f07155e133b3428486c913c33670cf9a295866cf19e39485681a081a081a1e129c677e57e1a07cacd338ad120ecd23499f1de8cc44d0f8ce46e19e819c990a0fe52909c5101a089f871a3e54287b64d19551340e34117fed19e91222672049f133f1b24748b928d4a8f709b9371d2478a3a26e891e375d22fc75f375b28f33ce909bd76cecbc9301f81dc82ceab0a9713b93676594f58edb49da3bef3c2f3bb03b6b1cbdf772e8cf0b4730257481e26ecdc70de789b62ab46d344ae916a6e3981b8f916a586c6b29d8d916c6f3a6eb84df9bed5b98379ee61f52c72bd3d3dc87e821ca177e00791c393b87227f2cd69c7ddc7a067703cc3b0ee47dafcbe61fbad63ee01800661f807c0111c7079e00600181e7819600647aa47e30c10cc641634bbb8df69a30a24cd04093289c8cae19347bb8e0aea368b28d8ea232684cca8573291ccd40a33350ecc624a30995cd890738837cd083103010c969c366b18d326230e03d1b0c1a1c317908ca25031f8502c0b2c898684248150e4120d48b4e061269366e3a6e4269a868803069b4e9c149d4e930374461238afa008c638402091a80889ac8840afd213404097154d5215a622b3ded69d6804b9a641a640282a5500d598d64c98100a470c870a802590fcd274de84d350cb014ba7df57e00281aa52ce5e2c55733dceccb1da81986f825237da3552354c4d752de4b60161a862611a68063251aa618a71c381bcaa78ad160060880a19d761ac460168cb38280a22ba4826407294a76971400b370db81204d8111b8f344f102a8e2e36a8dae0369545055d5692f2ca619932e67782e235a17eb5aa3a58661da90d3b4ca588b5d4e50214d093204b8ac74401342cd035225f635d0f3639a0ba51c4e648a6f9554c0b385ced7393cb8cf34a6970a6b5ba5a6ed5a5a5d534bad56954bad5594cb6f5694cb795a354dda58cd3674b19b3a954bad56954bad5594cb7095592028b51774bdc5f541a2a0287884f4281658d330cc64c37028f90c0237c00d19e686807c2e76e46b7a60fc415882830e5341837c7077c6a1e61ac1664858156418b18fffbd2c4f28234520cec0e67178619bf8c199c3fa82898c416f157c0b2aa1a08eb2a42498c798ab00190bb440d8a34055cca2823337443517315c0a3e43008df023463a6680c44a04145d541a56555050f50c51751550e50d5165655505575344d90148c4b04b844f2580cbc28c30941d0128808c0c28a9890e38611942802e5abb7325d56e5d9a765618b8414088443052520e8c4002e3913005532a0c5b0af083a29c02e4d0e01ac3546c3805c20892c065e166015260121a3178ad6bb7265da54a5c10a804031921214708210972048e1862c885c42852520e8c4422dda0115e3427f6028360882dea6429528dc91a8ec94a92891e98050305180050a985124a81d488085970e60634c20061c54c4871c3084a5a82dfa5123ea732c0a8f2db5805575e0d11b0ae972bcbb522ad2a5c49513d288a9280bb96c32d04749fc894c24d10a7523635c282d52c08ee9955ca55d2fae14ec0c70e94c414d45332e3130305555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555";var Vl=Object.defineProperty,Hl=Object.getOwnPropertyDescriptor,ke=(t,e,o,r)=>{for(var s=r>1?void 0:r?Hl(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Vl(e,o,s),s};const de=Vo.noConflict();de.setLevel("info");const wt="cb_";class ge extends zo{constructor(){super(...arguments),this.actionIdCounter=0,this.wsClient=null,this.replyMessage=null}setSetting(e){de.info("appState: Startup: setSetting",e),this.setting=e,this.initBot().catch(o=>{de.info(`Exception during bot initialization: ${o.message}`)})}clearConversation(){this.wsClient&&(this.wsClient.stop().then(()=>{}),this.wsClient=null),this.conversationId=as(),this.connectWs="false",this.messages=[],this.actions=[],this.addMessage({author:"assistant",type:"text",data:{text:this.setting.welcomeMessage}})}setLanguage(e){this.language=e}setTheme(e){this.theme=e}async initBot(){if(!this.botSettingsInitialized){const o=`${this.setting.url.startsWith("localhost")?"http":"https"}://${this.setting.url}/api/bot/settings/${this.setting.orgId}/${this.setting.botId}`;de.info(`Getting bot settings at ${o} ...`);let r=null,s=null;try{r=await fetch(o,{headers:{"Access-Control-Allow-Origin":"null","X-Enegel-Signature":this.setting.botId}}),!r.ok||r.status!==200?de.error(`Failed to get bot ${this.setting.botId} settings: ${r.status} ${r.statusText}`):s=await r.json()}catch(a){de.error(`Failed to get bot ${this.setting.botId} settings: ${a.message}`),s=null}if(this.botSettingsInitialized=!0,!s){de.error("No bot settings available - bot disabled"),this.disabled=!0;return}this.setting.welcomeMessage=(s==null?void 0:s.welcomeMessage)||"How can I help ?",this.setting.engageMessage=(s==null?void 0:s.engageMessage)||"How can I help ?",this.setting.engageTimeout=(s==null?void 0:s.engageTimeout)||5,setTimeout(()=>{this.showEngagePopup()},this.setting.engageTimeout*1e3)}Array.isArray(this.messages)&&this.messages.length<=0&&this.addMessage({author:"assistant",type:"text",data:{text:this.setting.welcomeMessage}}),this.connectWs==="true"&&(de.info("appState: connectWs is true"),this.getWsClient().catch(e=>{de.error(`Exception during ws client startup: ${e.message}`)}))}showEngagePopup(){if(this.open)return;de.info("Engaging User !"),this.engage=!0;const e=a=>{const n=new Uint8Array(a.length/2);for(let c=0;c<n.length;c++)n[c]=parseInt(a.substr(c*2,2),16);return n};let o=new Blob([e(Nl)],{type:"application/octet-stream"});const r=URL.createObjectURL(o);new Audio(r).play()}async getWsClient(){if(this.wsClient)return this.wsClient;const o=`${this.setting.url.startsWith("localhost")?"ws":"wss"}://${this.setting.url}/api/bot/connect/${this.setting.orgId}/${this.setting.botId}/${this.conversationId}`;return de.info(`Initiating ws connection to ${o} ...`),this.wsClient=new Ol({url:o,orgId:this.setting.orgId,botId:this.setting.botId,convId:this.conversationId}),await this.wsClient.start(),this.wsClient.onMessage=r=>{this.handleWscMessage(r)},this.wsClient}handleWscMessage(e){switch(e==null?void 0:e.type){case"message":{if(this.replyMessage)this.replyMessage.data.text=e.text,this.updateMessage(this.replyMessage,""),this.replyMessage=null;else{const o={type:"text",author:"assistant",data:{text:e.text}};"userName"in e&&(o.data.userName=e.userName,this.connectWs="true"),"userAvatar"in e&&(o.data.userAvatar=e.userAvatar,this.connectWs="true");const r=this.formatMessage(o);this.messages=this.messages.concat([r])}break}case"message-chunk":{this.replyMessage&&(this.replyMessage=this.updateMessage(this.replyMessage,e.text));break}case"typing":{this.replyMessage={author:"assistant",type:"text",isThinking:!0,data:{text:""}},this.addMessage(this.replyMessage);break}case"actions":{this.addActions((e==null?void 0:e.actions)||[]);break}}}addActions(e){if(Array.isArray(e)&&e.length>0){const o=e.map(r=>Object.assign(r,{internalId:this.actionIdCounter++}));this.actions=this.actions.concat(o)}}removeAction(e){const o=this.actions.findIndex(r=>r.internalId===e);if(o!==-1){this.actions.splice(o,1);const r=[];this.actions=r.concat(this.actions)}}async sendMessage(e){e=this.formatMessage(e),de.info("Send Message:",e),this.messages=this.messages.concat([e]);const o=await this.getWsClient();if(!o){de.error("Error - failed to obtain ws client"),this.replyMessage=null;return}o.sendMessage({type:"message",id:e.id,text:e.data.text})}formatMessage(e){var o;return e.id||(e.id=as()),e.timestamp=Date.now(),e.author==="assistant"&&(e.replyId=(o=this.messages[this.messages.length-1])==null?void 0:o.id),e}addMessage(e){e=this.formatMessage(e),this.messages=this.messages.concat([e])}addSystemMessage(e){this.addMessage({type:"text",author:"system",data:{text:e}})}updateMessage(e,o){const r=this.formatMessage(e);return r.isThinking=!1,o&&(r.data.text+=o),this.messages=this.messages.map(s=>s.id===r.id?r:s),r}removeMessage(e){this.messages=this.messages.filter(o=>o.id!==e)}clearMessages(){this.messages=[]}}ke([it({prefix:wt}),_e({value:"en"})],ge.prototype,"language",2),ke([it({prefix:wt}),_e({value:"light"})],ge.prototype,"theme",2),ke([it({prefix:wt}),_e({type:Boolean,value:!1})],ge.prototype,"open",2),ke([it({prefix:wt}),_e({value:"false"})],ge.prototype,"connectWs",2),ke([it({prefix:wt}),_e({value:as()})],ge.prototype,"conversationId",2),ke([it({prefix:wt}),_e({type:Array,value:[]})],ge.prototype,"messages",2),ke([_e({type:Array,value:[]})],ge.prototype,"actions",2),ke([_e({type:Boolean,value:!1})],ge.prototype,"botSettingsInitialized",2),ke([_e({type:Boolean,value:!1})],ge.prototype,"disabled",2),ke([_e({type:Boolean,value:!1})],ge.prototype,"engage",2),ke([it({prefix:wt}),_e({type:Object,value:{orgId:null,botId:null,url:null,welcomeMessage:null}})],ge.prototype,"setting",2);const R=new ge,Ul=z`
238
+ ${Ee}
239
239
  :host {
240
240
  position: relative;
241
241
  font-weight: bold;
@@ -279,7 +279,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
279
279
  .cb-setting-button cb-icon {
280
280
  display: inline;
281
281
  }
282
- `,rb="",sb="";var Q=z`
282
+ `,sp="",ap="";var Q=z`
283
283
  :host {
284
284
  box-sizing: border-box;
285
285
  }
@@ -293,7 +293,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
293
293
  [hidden] {
294
294
  display: none !important;
295
295
  }
296
- `,Uc=z`
296
+ `,jl=z`
297
297
  ${Q}
298
298
 
299
299
  :host {
@@ -351,12 +351,12 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
351
351
  stroke-dasharray: 0.01em, 2.75em;
352
352
  }
353
353
  }
354
- `;const is=new Set,jc=new MutationObserver(yi),ze=new Map;let mi=document.documentElement.dir||"ltr",vi=document.documentElement.lang||navigator.language,we;jc.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Gc(...e){e.map(t=>{const o=t.$code.toLowerCase();ze.has(o)?ze.set(o,Object.assign(Object.assign({},ze.get(o)),t)):ze.set(o,t),we||(we=t)}),yi()}function yi(){mi=document.documentElement.dir||"ltr",vi=document.documentElement.lang||navigator.language,[...is.keys()].map(e=>{typeof e.requestUpdate=="function"&&e.requestUpdate()})}let Zc=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){is.add(this.host)}hostDisconnected(){is.delete(this.host)}dir(){return`${this.host.dir||mi}`.toLowerCase()}lang(){return`${this.host.lang||vi}`.toLowerCase()}getTranslationData(t){var o,r;const s=new Intl.Locale(t.replace(/_/g,"-")),n=s==null?void 0:s.language.toLowerCase(),i=(r=(o=s==null?void 0:s.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",a=ze.get(`${n}-${i}`),l=ze.get(n);return{locale:s,language:n,region:i,primary:a,secondary:l}}exists(t,o){var r;const{primary:s,secondary:n}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(s&&s[t]||n&&n[t]||o.includeFallback&&we&&we[t])}term(t,...o){const{primary:r,secondary:s}=this.getTranslationData(this.lang());let n;if(r&&r[t])n=r[t];else if(s&&s[t])n=s[t];else if(we&&we[t])n=we[t];else return console.error(`No translation found for: ${String(t)}`),String(t);return typeof n=="function"?n(...o):n}date(t,o){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),o).format(t)}number(t,o){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),o).format(t)}relativeTime(t,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(t,o)}};var Jt=class extends Zc{},wi=Object.defineProperty,Wc=Object.defineProperties,Kc=Object.getOwnPropertyDescriptor,Yc=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,Jc=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable,as=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},xi=(e,t,o)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Qt=(e,t)=>{for(var o in t||(t={}))Jc.call(t,o)&&xi(e,o,t[o]);if(_i)for(var o of _i(t))Qc.call(t,o)&&xi(e,o,t[o]);return e},Go=(e,t)=>Wc(e,Yc(t)),f=(e,t,o,r)=>{for(var s=r>1?void 0:r?Kc(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&wi(t,o,s),s},Xc=function(e,t){this[0]=e,this[1]=t},tu=e=>{var t=e[as("asyncIterator")],o=!1,r,s={};return t==null?(t=e[as("iterator")](),r=n=>s[n]=i=>t[n](i)):(t=t.call(e),r=n=>s[n]=i=>{if(o){if(o=!1,n==="throw")throw i;return i}return o=!0,{done:!1,value:new Xc(new Promise(a=>{var l=t[n](i);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),s[as("iterator")]=()=>s,r("next"),"throw"in t?r("throw"):s.throw=n=>{throw n},"return"in t&&r("return"),s},j=class extends Bt{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}emit(e,t){const o=new CustomEvent(e,Qt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(o),o}static define(e,t=this,o={}){const r=customElements.get(e);if(!r){customElements.define(e,class extends t{},o);return}let s=" (unknown version)",n=s;"version"in t&&t.version&&(s=" v"+t.version),"version"in r&&r.version&&(n=" v"+r.version),!(s&&n&&s===n)&&console.warn(`Attempted to register <${e}>${s}, but <${e}>${n} has already been registered.`)}};j.version="2.11.2",j.dependencies={},f([g()],j.prototype,"dir",2),f([g()],j.prototype,"lang",2);var ls=class extends j{constructor(){super(...arguments),this.localize=new Jt(this)}render(){return A`
354
+ `;const ns=new Set,Gl=new MutationObserver(yn),zt=new Map;let mn=document.documentElement.dir||"ltr",vn=document.documentElement.lang||navigator.language,_t;Gl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Zl(...t){t.map(e=>{const o=e.$code.toLowerCase();zt.has(o)?zt.set(o,Object.assign(Object.assign({},zt.get(o)),e)):zt.set(o,e),_t||(_t=e)}),yn()}function yn(){mn=document.documentElement.dir||"ltr",vn=document.documentElement.lang||navigator.language,[...ns.keys()].map(t=>{typeof t.requestUpdate=="function"&&t.requestUpdate()})}let Wl=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){ns.add(this.host)}hostDisconnected(){ns.delete(this.host)}dir(){return`${this.host.dir||mn}`.toLowerCase()}lang(){return`${this.host.lang||vn}`.toLowerCase()}getTranslationData(e){var o,r;const s=new Intl.Locale(e.replace(/_/g,"-")),a=s==null?void 0:s.language.toLowerCase(),n=(r=(o=s==null?void 0:s.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",c=zt.get(`${a}-${n}`),i=zt.get(a);return{locale:s,language:a,region:n,primary:c,secondary:i}}exists(e,o){var r;const{primary:s,secondary:a}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(s&&s[e]||a&&a[e]||o.includeFallback&&_t&&_t[e])}term(e,...o){const{primary:r,secondary:s}=this.getTranslationData(this.lang());let a;if(r&&r[e])a=r[e];else if(s&&s[e])a=s[e];else if(_t&&_t[e])a=_t[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof a=="function"?a(...o):a}date(e,o){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),o).format(e)}number(e,o){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),o).format(e)}relativeTime(e,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,o)}};var Je=class extends Wl{},wn=Object.defineProperty,Kl=Object.defineProperties,Yl=Object.getOwnPropertyDescriptor,Jl=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,Ql=Object.prototype.hasOwnProperty,Xl=Object.prototype.propertyIsEnumerable,cs=(t,e)=>{if(e=Symbol[t])return e;throw Error("Symbol."+t+" is not defined")},xn=(t,e,o)=>e in t?wn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Qe=(t,e)=>{for(var o in e||(e={}))Ql.call(e,o)&&xn(t,o,e[o]);if(_n)for(var o of _n(e))Xl.call(e,o)&&xn(t,o,e[o]);return t},Zo=(t,e)=>Kl(t,Jl(e)),b=(t,e,o,r)=>{for(var s=r>1?void 0:r?Yl(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&wn(e,o,s),s},ed=function(t,e){this[0]=t,this[1]=e},td=t=>{var e=t[cs("asyncIterator")],o=!1,r,s={};return e==null?(e=t[cs("iterator")](),r=a=>s[a]=n=>e[a](n)):(e=e.call(t),r=a=>s[a]=n=>{if(o){if(o=!1,a==="throw")throw n;return n}return o=!0,{done:!1,value:new ed(new Promise(c=>{var i=e[a](n);if(!(i instanceof Object))throw TypeError("Object expected");c(i)}),1)}}),s[cs("iterator")]=()=>s,r("next"),"throw"in e?r("throw"):s.throw=a=>{throw a},"return"in e&&r("return"),s},j=class extends Be{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const o=new CustomEvent(t,Qe({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const r=customElements.get(t);if(!r){customElements.define(t,class extends e{},o);return}let s=" (unknown version)",a=s;"version"in e&&e.version&&(s=" v"+e.version),"version"in r&&r.version&&(a=" v"+r.version),!(s&&a&&s===a)&&console.warn(`Attempted to register <${t}>${s}, but <${t}>${a} has already been registered.`)}};j.version="2.11.2",j.dependencies={},b([p()],j.prototype,"dir",2),b([p()],j.prototype,"lang",2);var is=class extends j{constructor(){super(...arguments),this.localize=new Je(this)}render(){return A`
355
355
  <svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
356
356
  <circle class="spinner__track"></circle>
357
357
  <circle class="spinner__indicator"></circle>
358
358
  </svg>
359
- `}};ls.styles=Uc;var po=new WeakMap,fo=new WeakMap,cs=new WeakSet,Zo=new WeakMap,go=class{constructor(e,t){this.handleFormData=o=>{const r=this.options.disabled(this.host),s=this.options.name(this.host),n=this.options.value(this.host),i=this.host.tagName.toLowerCase()==="sl-button";!r&&!i&&typeof s=="string"&&s.length>0&&typeof n<"u"&&(Array.isArray(n)?n.forEach(a=>{o.formData.append(s,a.toString())}):o.formData.append(s,n.toString()))},this.handleFormSubmit=o=>{var r;const s=this.options.disabled(this.host),n=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=po.get(this.form))==null||r.forEach(i=>{this.setUserInteracted(i,!0)})),this.form&&!this.form.noValidate&&!s&&!n(this.host)&&(o.preventDefault(),o.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Zo.set(this.host,[])},this.handleInteraction=o=>{const r=Zo.get(this.host);r.includes(o.type)||r.push(o.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=e).addController(this),this.options=Qt({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){const r=o.getRootNode(),s=o.getAttribute("form");if(s)return r.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var r;return(r=o.disabled)!=null?r:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,r)=>o.value=r,assumeInteractionOn:["sl-input"]},t)}hostConnected(){const e=this.options.form(this.host);e&&this.attachForm(e),Zo.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Zo.delete(this.host),this.options.assumeInteractionOn.forEach(e=>{this.host.removeEventListener(e,this.handleInteraction)})}hostUpdated(){const e=this.options.form(this.host);e||this.detachForm(),e&&this.form!==e&&(this.detachForm(),this.attachForm(e)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(e){e?(this.form=e,po.has(this.form)?po.get(this.form).add(this.host):po.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),fo.has(this.form)||(fo.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var e;this.form&&((e=po.get(this.form))==null||e.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),fo.has(this.form)&&(this.form.reportValidity=fo.get(this.form),fo.delete(this.form))),this.form=void 0}setUserInteracted(e,t){t?cs.add(e):cs.delete(e),e.requestUpdate()}doAction(e,t){if(this.form){const o=document.createElement("button");o.type=e,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",t&&(o.name=t.name,o.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{t.hasAttribute(r)&&o.setAttribute(r,t.getAttribute(r))})),this.form.append(o),o.click(),o.remove()}}getForm(){var e;return(e=this.form)!=null?e:null}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}setValidity(e){const t=this.host,o=!!cs.has(t),r=!!t.required;t.toggleAttribute("data-required",r),t.toggleAttribute("data-optional",!r),t.toggleAttribute("data-invalid",!e),t.toggleAttribute("data-valid",e),t.toggleAttribute("data-user-invalid",!e&&o),t.toggleAttribute("data-user-valid",e&&o)}updateValidity(){const e=this.host;this.setValidity(e.validity.valid)}emitInvalidEvent(e){const t=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});e||t.preventDefault(),this.host.dispatchEvent(t)||e==null||e.preventDefault()}},Wo=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),eu=Object.freeze(Go(Qt({},Wo),{valid:!1,valueMissing:!0})),ou=Object.freeze(Go(Qt({},Wo),{valid:!1,customError:!0})),ki=z`
359
+ `}};is.styles=jl;var ho=new WeakMap,bo=new WeakMap,ls=new WeakSet,Wo=new WeakMap,po=class{constructor(t,e){this.handleFormData=o=>{const r=this.options.disabled(this.host),s=this.options.name(this.host),a=this.options.value(this.host),n=this.host.tagName.toLowerCase()==="sl-button";!r&&!n&&typeof s=="string"&&s.length>0&&typeof a<"u"&&(Array.isArray(a)?a.forEach(c=>{o.formData.append(s,c.toString())}):o.formData.append(s,a.toString()))},this.handleFormSubmit=o=>{var r;const s=this.options.disabled(this.host),a=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=ho.get(this.form))==null||r.forEach(n=>{this.setUserInteracted(n,!0)})),this.form&&!this.form.noValidate&&!s&&!a(this.host)&&(o.preventDefault(),o.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Wo.set(this.host,[])},this.handleInteraction=o=>{const r=Wo.get(this.host);r.includes(o.type)||r.push(o.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=Qe({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){const r=o.getRootNode(),s=o.getAttribute("form");if(s)return r.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var r;return(r=o.disabled)!=null?r:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,r)=>o.value=r,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Wo.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Wo.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,ho.has(this.form)?ho.get(this.form).add(this.host):ho.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),bo.has(this.form)||(bo.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=ho.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),bo.has(this.form)&&(this.form.reportValidity=bo.get(this.form),bo.delete(this.form))),this.form=void 0}setUserInteracted(t,e){e?ls.add(t):ls.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{e.hasAttribute(r)&&o.setAttribute(r,e.getAttribute(r))})),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=!!ls.has(e),r=!!e.required;e.toggleAttribute("data-required",r),e.toggleAttribute("data-optional",!r),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t==null||t.preventDefault()}},Ko=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),od=Object.freeze(Zo(Qe({},Ko),{valid:!1,valueMissing:!0})),rd=Object.freeze(Zo(Qe({},Ko),{valid:!1,customError:!0})),kn=z`
360
360
  ${Q}
361
361
 
362
362
  :host {
@@ -951,7 +951,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
951
951
  :host(.sl-button-group__button[checked]) {
952
952
  z-index: 2;
953
953
  }
954
- `,_e=class{constructor(e,...t){this.slotNames=[],this.handleSlotChange=o=>{const r=o.target;(this.slotNames.includes("[default]")&&!r.name||r.name&&this.slotNames.includes(r.name))&&this.host.requestUpdate()},(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent.trim()!=="")return!0;if(e.nodeType===e.ELEMENT_NODE){const t=e;if(t.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(e){return this.host.querySelector(`:scope > [slot="${e}"]`)!==null}test(e){return e==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},ru=z`
954
+ `,xt=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=o=>{const r=o.target;(this.slotNames.includes("[default]")&&!r.name||r.name&&this.slotNames.includes(r.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},sd=z`
955
955
  ${Q}
956
956
 
957
957
  :host {
@@ -966,7 +966,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
966
966
  height: 100%;
967
967
  width: 100%;
968
968
  }
969
- `,us="";function Ai(e){us=e}function su(e=""){if(!us){const t=[...document.getElementsByTagName("script")],o=t.find(r=>r.hasAttribute("data-shoelace"));if(o)Ai(o.getAttribute("data-shoelace"));else{const r=t.find(n=>/shoelace(\.min)?\.js($|\?)/.test(n.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(n.src));let s="";r&&(s=r.getAttribute("src")),Ai(s.split("/").slice(0,-1).join("/"))}}return us.replace(/\/$/,"")+(e?`/${e.replace(/^\//,"")}`:"")}var nu={name:"default",resolver:e=>su(`assets/icons/${e}.svg`)},iu=nu,Ci={caret:`
969
+ `,ds="";function An(t){ds=t}function ad(t=""){if(!ds){const e=[...document.getElementsByTagName("script")],o=e.find(r=>r.hasAttribute("data-shoelace"));if(o)An(o.getAttribute("data-shoelace"));else{const r=e.find(a=>/shoelace(\.min)?\.js($|\?)/.test(a.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(a.src));let s="";r&&(s=r.getAttribute("src")),An(s.split("/").slice(0,-1).join("/"))}}return ds.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}var nd={name:"default",resolver:t=>ad(`assets/icons/${t}.svg`)},cd=nd,Cn={caret:`
970
970
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
971
971
  <polyline points="6 9 12 15 18 9"></polyline>
972
972
  </svg>
@@ -1058,43 +1058,43 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1058
1058
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
1059
1059
  <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
1060
1060
  </svg>
1061
- `},au={name:"system",resolver:e=>e in Ci?`data:image/svg+xml,${encodeURIComponent(Ci[e])}`:""},lu=au,cu=[iu,lu],ds=[];function uu(e){ds.push(e)}function du(e){ds=ds.filter(t=>t!==e)}function $i(e){return cu.find(t=>t.name===e)}function H(e,t){const o=Qt({waitUntilFirstUpdate:!1},t);return(r,s)=>{const{update:n}=r,i=Array.isArray(e)?e:[e];r.update=function(a){i.forEach(l=>{const c=l;if(a.has(c)){const u=a.get(c),d=this[c];u!==d&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[s](u,d)}}),n.call(this,a)}}}/**
1061
+ `},id={name:"system",resolver:t=>t in Cn?`data:image/svg+xml,${encodeURIComponent(Cn[t])}`:""},ld=id,dd=[cd,ld],fs=[];function fd(t){fs.push(t)}function ud(t){fs=fs.filter(e=>e!==t)}function $n(t){return dd.find(e=>e.name===t)}function H(t,e){const o=Qe({waitUntilFirstUpdate:!1},e);return(r,s)=>{const{update:a}=r,n=Array.isArray(t)?t:[t];r.update=function(c){n.forEach(i=>{const l=i;if(c.has(l)){const d=c.get(l),f=this[l];d!==f&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[s](d,f)}}),a.call(this,c)}}}/**
1062
1062
  * @license
1063
1063
  * Copyright 2020 Google LLC
1064
1064
  * SPDX-License-Identifier: BSD-3-Clause
1065
- */const{D:hu}=Jl,pu=(e,t)=>t===void 0?(e==null?void 0:e._$litType$)!==void 0:(e==null?void 0:e._$litType$)===t,fu=e=>e.strings===void 0,Ei=()=>document.createComment(""),bo=(e,t,o)=>{var n;const r=e._$AA.parentNode,s=t===void 0?e._$AB:t._$AA;if(o===void 0){const i=r.insertBefore(Ei(),s),a=r.insertBefore(Ei(),s);o=new hu(i,a,e,e.options)}else{const i=o._$AB.nextSibling,a=o._$AM,l=a!==e;if(l){let c;(n=o._$AQ)==null||n.call(o,e),o._$AM=e,o._$AP!==void 0&&(c=e._$AU)!==a._$AU&&o._$AP(c)}if(i!==s||l){let c=o._$AA;for(;c!==i;){const u=c.nextSibling;r.insertBefore(c,s),c=u}}}return o},xe=(e,t,o=e)=>(e._$AI(t,o),e),gu={},Si=(e,t=gu)=>e._$AH=t,bu=e=>e._$AH,hs=e=>{var r;(r=e._$AP)==null||r.call(e,!1,!0);let t=e._$AA;const o=e._$AB.nextSibling;for(;t!==o;){const s=t.nextSibling;t.remove(),t=s}};var mo=Symbol(),Ko=Symbol(),ps,fs=new Map,dt=class extends j{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(e,t){var o;let r;if(t!=null&&t.spriteSheet)return A`<svg part="svg">
1066
- <use part="use" href="${e}"></use>
1067
- </svg>`;try{if(r=await fetch(e,{mode:"cors"}),!r.ok)return r.status===410?mo:Ko}catch{return Ko}try{const s=document.createElement("div");s.innerHTML=await r.text();const n=s.firstElementChild;if(((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())!=="svg")return mo;ps||(ps=new DOMParser);const a=ps.parseFromString(n.outerHTML,"text/html").body.querySelector("svg");return a?(a.part.add("svg"),document.adoptNode(a)):mo}catch{return mo}}connectedCallback(){super.connectedCallback(),uu(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),du(this)}getIconSource(){const e=$i(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var e;const{url:t,fromLibrary:o}=this.getIconSource(),r=o?$i(this.library):void 0;if(!t){this.svg=null;return}let s=fs.get(t);if(s||(s=this.resolveIcon(t,r),fs.set(t,s)),!this.initialRender)return;const n=await s;if(n===Ko&&fs.delete(t),t===this.getIconSource().url){if(pu(n)){this.svg=n;return}switch(n){case Ko:case mo:this.svg=null,this.emit("sl-error");break;default:this.svg=n.cloneNode(!0),(e=r==null?void 0:r.mutator)==null||e.call(r,this.svg),this.emit("sl-load")}}}render(){return this.svg}};dt.styles=ru,f([rt()],dt.prototype,"svg",2),f([g({reflect:!0})],dt.prototype,"name",2),f([g()],dt.prototype,"src",2),f([g()],dt.prototype,"label",2),f([g({reflect:!0})],dt.prototype,"library",2),f([H("label")],dt.prototype,"handleLabelChange",1),f([H(["name","src","library"])],dt.prototype,"setIcon",1);/**
1065
+ */const{D:hd}=Ji,bd=(t,e)=>e===void 0?(t==null?void 0:t._$litType$)!==void 0:(t==null?void 0:t._$litType$)===e,pd=t=>t.strings===void 0,En=()=>document.createComment(""),go=(t,e,o)=>{var a;const r=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(o===void 0){const n=r.insertBefore(En(),s),c=r.insertBefore(En(),s);o=new hd(n,c,t,t.options)}else{const n=o._$AB.nextSibling,c=o._$AM,i=c!==t;if(i){let l;(a=o._$AQ)==null||a.call(o,t),o._$AM=t,o._$AP!==void 0&&(l=t._$AU)!==c._$AU&&o._$AP(l)}if(n!==s||i){let l=o._$AA;for(;l!==n;){const d=l.nextSibling;r.insertBefore(l,s),l=d}}}return o},kt=(t,e,o=t)=>(t._$AI(e,o),t),gd={},Sn=(t,e=gd)=>t._$AH=e,md=t=>t._$AH,us=t=>{var r;(r=t._$AP)==null||r.call(t,!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const s=e.nextSibling;e.remove(),e=s}};var mo=Symbol(),Yo=Symbol(),hs,bs=new Map,fe=class extends j{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let r;if(e!=null&&e.spriteSheet)return A`<svg part="svg">
1066
+ <use part="use" href="${t}"></use>
1067
+ </svg>`;try{if(r=await fetch(t,{mode:"cors"}),!r.ok)return r.status===410?mo:Yo}catch{return Yo}try{const s=document.createElement("div");s.innerHTML=await r.text();const a=s.firstElementChild;if(((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())!=="svg")return mo;hs||(hs=new DOMParser);const c=hs.parseFromString(a.outerHTML,"text/html").body.querySelector("svg");return c?(c.part.add("svg"),document.adoptNode(c)):mo}catch{return mo}}connectedCallback(){super.connectedCallback(),fd(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),ud(this)}getIconSource(){const t=$n(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),r=o?$n(this.library):void 0;if(!e){this.svg=null;return}let s=bs.get(e);if(s||(s=this.resolveIcon(e,r),bs.set(e,s)),!this.initialRender)return;const a=await s;if(a===Yo&&bs.delete(e),e===this.getIconSource().url){if(bd(a)){this.svg=a;return}switch(a){case Yo:case mo:this.svg=null,this.emit("sl-error");break;default:this.svg=a.cloneNode(!0),(t=r==null?void 0:r.mutator)==null||t.call(r,this.svg),this.emit("sl-load")}}}render(){return this.svg}};fe.styles=sd,b([re()],fe.prototype,"svg",2),b([p({reflect:!0})],fe.prototype,"name",2),b([p()],fe.prototype,"src",2),b([p()],fe.prototype,"label",2),b([p({reflect:!0})],fe.prototype,"library",2),b([H("label")],fe.prototype,"handleLabelChange",1),b([H(["name","src","library"])],fe.prototype,"setIcon",1);/**
1068
1068
  * @license
1069
1069
  * Copyright 2017 Google LLC
1070
1070
  * SPDX-License-Identifier: BSD-3-Clause
1071
- */const Xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gs=e=>(...t)=>({_$litDirective$:e,values:t});let bs=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,r){this._$Ct=t,this._$AM=o,this._$Ci=r}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};/**
1071
+ */const Xe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ps=t=>(...e)=>({_$litDirective$:t,values:e});let gs=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,r){this._$Ct=e,this._$AM=o,this._$Ci=r}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}};/**
1072
1072
  * @license
1073
1073
  * Copyright 2018 Google LLC
1074
1074
  * SPDX-License-Identifier: BSD-3-Clause
1075
- */const K=gs(class extends bs{constructor(e){var t;if(super(e),e.type!==Xt.ATTRIBUTE||e.name!=="class"||((t=e.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(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,s;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((r=this.st)!=null&&r.has(n))&&this.it.add(n);return this.render(t)}const o=e.element.classList;for(const n of this.it)n in t||(o.remove(n),this.it.delete(n));for(const n in t){const i=!!t[n];i===this.it.has(n)||(s=this.st)!=null&&s.has(n)||(i?(o.add(n),this.it.add(n)):(o.remove(n),this.it.delete(n)))}return xt}});/**
1075
+ */const K=ps(class extends gs{constructor(t){var e;if(super(t),t.type!==Xe.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,s;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((r=this.st)!=null&&r.has(a))&&this.it.add(a);return this.render(e)}const o=t.element.classList;for(const a of this.it)a in e||(o.remove(a),this.it.delete(a));for(const a in e){const n=!!e[a];n===this.it.has(a)||(s=this.st)!=null&&s.has(a)||(n?(o.add(a),this.it.add(a)):(o.remove(a),this.it.delete(a)))}return xe}});/**
1076
1076
  * @license
1077
1077
  * Copyright 2020 Google LLC
1078
1078
  * SPDX-License-Identifier: BSD-3-Clause
1079
- */const qi=Symbol.for(""),mu=e=>{if((e==null?void 0:e.r)===qi)return e==null?void 0:e._$litStatic$},Yo=(e,...t)=>({_$litStatic$:t.reduce((o,r,s)=>o+(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
1080
- take care to ensure page security.`)})(r)+e[s+1],e[0]),r:qi}),Di=new Map,vu=e=>(t,...o)=>{const r=o.length;let s,n;const i=[],a=[];let l,c=0,u=!1;for(;c<r;){for(l=t[c];c<r&&(n=o[c],(s=mu(n))!==void 0);)l+=s+t[++c],u=!0;c!==r&&a.push(n),i.push(l),c++}if(c===r&&i.push(t[r]),u){const d=i.join("$$lit$$");(t=Di.get(d))===void 0&&(i.raw=i,Di.set(d,t=i)),o=a}return e(t,...o)},vo=vu(Yl);/**
1079
+ */const qn=Symbol.for(""),vd=t=>{if((t==null?void 0:t.r)===qn)return t==null?void 0:t._$litStatic$},Jo=(t,...e)=>({_$litStatic$:e.reduce((o,r,s)=>o+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
1080
+ take care to ensure page security.`)})(r)+t[s+1],t[0]),r:qn}),Dn=new Map,yd=t=>(e,...o)=>{const r=o.length;let s,a;const n=[],c=[];let i,l=0,d=!1;for(;l<r;){for(i=e[l];l<r&&(a=o[l],(s=vd(a))!==void 0);)i+=s+e[++l],d=!0;l!==r&&c.push(a),n.push(i),l++}if(l===r&&n.push(e[r]),d){const f=n.join("$$lit$$");(e=Dn.get(f))===void 0&&(n.raw=n,Dn.set(f,e=n)),o=c}return t(e,...o)},vo=yd(Yi);/**
1081
1081
  * @license
1082
1082
  * Copyright 2018 Google LLC
1083
1083
  * SPDX-License-Identifier: BSD-3-Clause
1084
- */const E=e=>e??G;var N=class extends j{constructor(){super(...arguments),this.formControlController=new go(this,{form:e=>{if(e.hasAttribute("form")){const t=e.getRootNode(),o=e.getAttribute("form");return t.getElementById(o)}return e.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new _e(this,"[default]","prefix","suffix"),this.localize=new Jt(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:Wo}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){const e=this.isLink(),t=e?Yo`a`:Yo`button`;return vo`
1085
- <${t}
1084
+ */const E=t=>t??G;var N=class extends j{constructor(){super(...arguments),this.formControlController=new po(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");return e.getElementById(o)}return t.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new xt(this,"[default]","prefix","suffix"),this.localize=new Je(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:Ko}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?Jo`a`:Jo`button`;return vo`
1085
+ <${e}
1086
1086
  part="base"
1087
1087
  class=${K({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
1088
- ?disabled=${E(e?void 0:this.disabled)}
1089
- type=${E(e?void 0:this.type)}
1088
+ ?disabled=${E(t?void 0:this.disabled)}
1089
+ type=${E(t?void 0:this.type)}
1090
1090
  title=${this.title}
1091
- name=${E(e?void 0:this.name)}
1092
- value=${E(e?void 0:this.value)}
1093
- href=${E(e?this.href:void 0)}
1094
- target=${E(e?this.target:void 0)}
1095
- download=${E(e?this.download:void 0)}
1096
- rel=${E(e?this.rel:void 0)}
1097
- role=${E(e?void 0:"button")}
1091
+ name=${E(t?void 0:this.name)}
1092
+ value=${E(t?void 0:this.value)}
1093
+ href=${E(t?this.href:void 0)}
1094
+ target=${E(t?this.target:void 0)}
1095
+ download=${E(t?this.download:void 0)}
1096
+ rel=${E(t?this.rel:void 0)}
1097
+ role=${E(t?void 0:"button")}
1098
1098
  aria-disabled=${this.disabled?"true":"false"}
1099
1099
  tabindex=${this.disabled?"-1":"0"}
1100
1100
  @blur=${this.handleBlur}
@@ -1107,8 +1107,8 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1107
1107
  <slot name="suffix" part="suffix" class="button__suffix"></slot>
1108
1108
  ${this.caret?vo` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
1109
1109
  ${this.loading?vo`<sl-spinner part="spinner"></sl-spinner>`:""}
1110
- </${t}>
1111
- `}};N.styles=ki,N.dependencies={"sl-icon":dt,"sl-spinner":ls},f([V(".button")],N.prototype,"button",2),f([rt()],N.prototype,"hasFocus",2),f([rt()],N.prototype,"invalid",2),f([g()],N.prototype,"title",2),f([g({reflect:!0})],N.prototype,"variant",2),f([g({reflect:!0})],N.prototype,"size",2),f([g({type:Boolean,reflect:!0})],N.prototype,"caret",2),f([g({type:Boolean,reflect:!0})],N.prototype,"disabled",2),f([g({type:Boolean,reflect:!0})],N.prototype,"loading",2),f([g({type:Boolean,reflect:!0})],N.prototype,"outline",2),f([g({type:Boolean,reflect:!0})],N.prototype,"pill",2),f([g({type:Boolean,reflect:!0})],N.prototype,"circle",2),f([g()],N.prototype,"type",2),f([g()],N.prototype,"name",2),f([g()],N.prototype,"value",2),f([g()],N.prototype,"href",2),f([g()],N.prototype,"target",2),f([g()],N.prototype,"rel",2),f([g()],N.prototype,"download",2),f([g()],N.prototype,"form",2),f([g({attribute:"formaction"})],N.prototype,"formAction",2),f([g({attribute:"formenctype"})],N.prototype,"formEnctype",2),f([g({attribute:"formmethod"})],N.prototype,"formMethod",2),f([g({attribute:"formnovalidate",type:Boolean})],N.prototype,"formNoValidate",2),f([g({attribute:"formtarget"})],N.prototype,"formTarget",2),f([H("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),N.define("sl-button");var yu={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:e=>e===0?"No options selected":e===1?"1 option selected":`${e} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};Gc(yu);var wu=z`
1110
+ </${e}>
1111
+ `}};N.styles=kn,N.dependencies={"sl-icon":fe,"sl-spinner":is},b([V(".button")],N.prototype,"button",2),b([re()],N.prototype,"hasFocus",2),b([re()],N.prototype,"invalid",2),b([p()],N.prototype,"title",2),b([p({reflect:!0})],N.prototype,"variant",2),b([p({reflect:!0})],N.prototype,"size",2),b([p({type:Boolean,reflect:!0})],N.prototype,"caret",2),b([p({type:Boolean,reflect:!0})],N.prototype,"disabled",2),b([p({type:Boolean,reflect:!0})],N.prototype,"loading",2),b([p({type:Boolean,reflect:!0})],N.prototype,"outline",2),b([p({type:Boolean,reflect:!0})],N.prototype,"pill",2),b([p({type:Boolean,reflect:!0})],N.prototype,"circle",2),b([p()],N.prototype,"type",2),b([p()],N.prototype,"name",2),b([p()],N.prototype,"value",2),b([p()],N.prototype,"href",2),b([p()],N.prototype,"target",2),b([p()],N.prototype,"rel",2),b([p()],N.prototype,"download",2),b([p()],N.prototype,"form",2),b([p({attribute:"formaction"})],N.prototype,"formAction",2),b([p({attribute:"formenctype"})],N.prototype,"formEnctype",2),b([p({attribute:"formmethod"})],N.prototype,"formMethod",2),b([p({attribute:"formnovalidate",type:Boolean})],N.prototype,"formNoValidate",2),b([p({attribute:"formtarget"})],N.prototype,"formTarget",2),b([H("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),N.define("sl-button");var wd={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>t===0?"No options selected":t===1?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};Zl(wd);var _d=z`
1112
1112
  ${Q}
1113
1113
 
1114
1114
  :host {
@@ -1173,7 +1173,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1173
1173
  object-fit: cover;
1174
1174
  overflow: hidden;
1175
1175
  }
1176
- `,St=class extends j{constructor(){super(...arguments),this.hasError=!1,this.image="",this.label="",this.initials="",this.loading="eager",this.shape="circle"}handleImageChange(){this.hasError=!1}render(){const e=A`
1176
+ `,Se=class extends j{constructor(){super(...arguments),this.hasError=!1,this.image="",this.label="",this.initials="",this.loading="eager",this.shape="circle"}handleImageChange(){this.hasError=!1}render(){const t=A`
1177
1177
  <img
1178
1178
  part="image"
1179
1179
  class="avatar__image"
@@ -1182,7 +1182,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1182
1182
  alt=""
1183
1183
  @error="${()=>this.hasError=!0}"
1184
1184
  />
1185
- `;let t=A``;return this.initials?t=A`<div part="initials" class="avatar__initials">${this.initials}</div>`:t=A`
1185
+ `;let e=A``;return this.initials?e=A`<div part="initials" class="avatar__initials">${this.initials}</div>`:e=A`
1186
1186
  <div part="icon" class="avatar__icon" aria-hidden="true">
1187
1187
  <slot name="icon">
1188
1188
  <sl-icon name="person-fill" library="system"></sl-icon>
@@ -1195,9 +1195,9 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1195
1195
  role="img"
1196
1196
  aria-label=${this.label}
1197
1197
  >
1198
- ${this.image&&!this.hasError?e:t}
1198
+ ${this.image&&!this.hasError?t:e}
1199
1199
  </div>
1200
- `}};St.styles=wu,St.dependencies={"sl-icon":dt},f([rt()],St.prototype,"hasError",2),f([g()],St.prototype,"image",2),f([g()],St.prototype,"label",2),f([g()],St.prototype,"initials",2),f([g()],St.prototype,"loading",2),f([g({reflect:!0})],St.prototype,"shape",2),f([H("image")],St.prototype,"handleImageChange",1),St.define("sl-avatar");var ms=z`
1200
+ `}};Se.styles=_d,Se.dependencies={"sl-icon":fe},b([re()],Se.prototype,"hasError",2),b([p()],Se.prototype,"image",2),b([p()],Se.prototype,"label",2),b([p()],Se.prototype,"initials",2),b([p()],Se.prototype,"loading",2),b([p({reflect:!0})],Se.prototype,"shape",2),b([H("image")],Se.prototype,"handleImageChange",1),Se.define("sl-avatar");var ms=z`
1201
1201
  .form-control .form-control__label {
1202
1202
  display: none;
1203
1203
  }
@@ -1253,7 +1253,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1253
1253
  .form-control--has-help-text.form-control--radio-group .form-control__help-text {
1254
1254
  margin-top: var(--sl-spacing-2x-small);
1255
1255
  }
1256
- `,_u=z`
1256
+ `,xd=z`
1257
1257
  ${Q}
1258
1258
  ${ms}
1259
1259
 
@@ -1550,11 +1550,11 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1550
1550
  .input--no-spin-buttons input[type='number'] {
1551
1551
  -moz-appearance: textfield;
1552
1552
  }
1553
- `,vs=(e="value")=>(t,o)=>{const r=t.constructor,s=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(n,i,a){var l;const c=r.getPropertyOptions(e),u=typeof c.attribute=="string"?c.attribute:e;if(n===u){const d=c.converter||ro,h=(typeof d=="function"?d:(l=d==null?void 0:d.fromAttribute)!=null?l:ro.fromAttribute)(a,c.type);this[e]!==h&&(this[o]=h)}s.call(this,n,i,a)}};/**
1553
+ `,vs=(t="value")=>(e,o)=>{const r=e.constructor,s=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,n,c){var i;const l=r.getPropertyOptions(t),d=typeof l.attribute=="string"?l.attribute:t;if(a===d){const f=l.converter||ro,u=(typeof f=="function"?f:(i=f==null?void 0:f.fromAttribute)!=null?i:ro.fromAttribute)(c,l.type);this[t]!==u&&(this[o]=u)}s.call(this,a,n,c)}};/**
1554
1554
  * @license
1555
1555
  * Copyright 2020 Google LLC
1556
1556
  * SPDX-License-Identifier: BSD-3-Clause
1557
- */const ys=gs(class extends bs{constructor(e){if(super(e),e.type!==Xt.PROPERTY&&e.type!==Xt.ATTRIBUTE&&e.type!==Xt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!fu(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===xt||t===G)return t;const o=e.element,r=e.name;if(e.type===Xt.PROPERTY){if(t===o[r])return xt}else if(e.type===Xt.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(r))return xt}else if(e.type===Xt.ATTRIBUTE&&o.getAttribute(r)===t+"")return xt;return Si(e),t}});var L=class extends j{constructor(){super(...arguments),this.formControlController=new go(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new _e(this,"help-text","label"),this.localize=new Jt(this),this.hasFocus=!1,this.title="",this.__numberInput=Object.assign(document.createElement("input"),{type:"number"}),this.__dateInput=Object.assign(document.createElement("input"),{type:"date"}),this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.pill=!1,this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var e;return this.__dateInput.type=this.type,this.__dateInput.value=this.value,((e=this.input)==null?void 0:e.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(e){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=e,this.value=this.__dateInput.value}get valueAsNumber(){var e;return this.__numberInput.value=this.value,((e=this.input)==null?void 0:e.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(e){this.__numberInput.valueAsNumber=e,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.emit("sl-change")}handleClearClick(e){this.value="",this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change"),this.input.focus(),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleKeyDown(e){const t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!t&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,o="none"){this.input.setSelectionRange(e,t,o)}setRangeText(e,t,o,r){this.input.setRangeText(e,t,o,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=this.label?!0:!!e,r=this.helpText?!0:!!t,s=this.clearable&&!this.disabled&&!this.readonly,n=s&&(typeof this.value=="number"||this.value.length>0);return A`
1557
+ */const ys=ps(class extends gs{constructor(t){if(super(t),t.type!==Xe.PROPERTY&&t.type!==Xe.ATTRIBUTE&&t.type!==Xe.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pd(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===xe||e===G)return e;const o=t.element,r=t.name;if(t.type===Xe.PROPERTY){if(e===o[r])return xe}else if(t.type===Xe.BOOLEAN_ATTRIBUTE){if(!!e===o.hasAttribute(r))return xe}else if(t.type===Xe.ATTRIBUTE&&o.getAttribute(r)===e+"")return xe;return Sn(t),e}});var L=class extends j{constructor(){super(...arguments),this.formControlController=new po(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new xt(this,"help-text","label"),this.localize=new Je(this),this.hasFocus=!1,this.title="",this.__numberInput=Object.assign(document.createElement("input"),{type:"number"}),this.__dateInput=Object.assign(document.createElement("input"),{type:"date"}),this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.pill=!1,this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var t;return this.__dateInput.type=this.type,this.__dateInput.value=this.value,((t=this.input)==null?void 0:t.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){var t;return this.__numberInput.value=this.value,((t=this.input)==null?void 0:t.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.emit("sl-change")}handleClearClick(t){this.value="",this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,r){this.input.setRangeText(t,e,o,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),o=this.label?!0:!!t,r=this.helpText?!0:!!e,s=this.clearable&&!this.disabled&&!this.readonly,a=s&&(typeof this.value=="number"||this.value.length>0);return A`
1558
1558
  <div
1559
1559
  part="form-control"
1560
1560
  class=${K({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":o,"form-control--has-help-text":r})}
@@ -1614,7 +1614,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1614
1614
  ${s?A`
1615
1615
  <button
1616
1616
  part="clear-button"
1617
- class=${K({input__clear:!0,"input__clear--visible":n})}
1617
+ class=${K({input__clear:!0,"input__clear--visible":a})}
1618
1618
  type="button"
1619
1619
  aria-label=${this.localize.term("clearEntry")}
1620
1620
  @click=${this.handleClearClick}
@@ -1661,7 +1661,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1661
1661
  <slot name="help-text">${this.helpText}</slot>
1662
1662
  </div>
1663
1663
  </div>
1664
- `}};L.styles=_u,L.dependencies={"sl-icon":dt},f([V(".input__control")],L.prototype,"input",2),f([rt()],L.prototype,"hasFocus",2),f([g()],L.prototype,"title",2),f([g({reflect:!0})],L.prototype,"type",2),f([g()],L.prototype,"name",2),f([g()],L.prototype,"value",2),f([vs()],L.prototype,"defaultValue",2),f([g({reflect:!0})],L.prototype,"size",2),f([g({type:Boolean,reflect:!0})],L.prototype,"filled",2),f([g({type:Boolean,reflect:!0})],L.prototype,"pill",2),f([g()],L.prototype,"label",2),f([g({attribute:"help-text"})],L.prototype,"helpText",2),f([g({type:Boolean})],L.prototype,"clearable",2),f([g({type:Boolean,reflect:!0})],L.prototype,"disabled",2),f([g()],L.prototype,"placeholder",2),f([g({type:Boolean,reflect:!0})],L.prototype,"readonly",2),f([g({attribute:"password-toggle",type:Boolean})],L.prototype,"passwordToggle",2),f([g({attribute:"password-visible",type:Boolean})],L.prototype,"passwordVisible",2),f([g({attribute:"no-spin-buttons",type:Boolean})],L.prototype,"noSpinButtons",2),f([g({reflect:!0})],L.prototype,"form",2),f([g({type:Boolean,reflect:!0})],L.prototype,"required",2),f([g()],L.prototype,"pattern",2),f([g({type:Number})],L.prototype,"minlength",2),f([g({type:Number})],L.prototype,"maxlength",2),f([g()],L.prototype,"min",2),f([g()],L.prototype,"max",2),f([g()],L.prototype,"step",2),f([g()],L.prototype,"autocapitalize",2),f([g()],L.prototype,"autocorrect",2),f([g()],L.prototype,"autocomplete",2),f([g({type:Boolean})],L.prototype,"autofocus",2),f([g()],L.prototype,"enterkeyhint",2),f([g({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],L.prototype,"spellcheck",2),f([g()],L.prototype,"inputmode",2),f([H("disabled",{waitUntilFirstUpdate:!0})],L.prototype,"handleDisabledChange",1),f([H("step",{waitUntilFirstUpdate:!0})],L.prototype,"handleStepChange",1),f([H("value",{waitUntilFirstUpdate:!0})],L.prototype,"handleValueChange",1),L.define("sl-input");var xu=z`
1664
+ `}};L.styles=xd,L.dependencies={"sl-icon":fe},b([V(".input__control")],L.prototype,"input",2),b([re()],L.prototype,"hasFocus",2),b([p()],L.prototype,"title",2),b([p({reflect:!0})],L.prototype,"type",2),b([p()],L.prototype,"name",2),b([p()],L.prototype,"value",2),b([vs()],L.prototype,"defaultValue",2),b([p({reflect:!0})],L.prototype,"size",2),b([p({type:Boolean,reflect:!0})],L.prototype,"filled",2),b([p({type:Boolean,reflect:!0})],L.prototype,"pill",2),b([p()],L.prototype,"label",2),b([p({attribute:"help-text"})],L.prototype,"helpText",2),b([p({type:Boolean})],L.prototype,"clearable",2),b([p({type:Boolean,reflect:!0})],L.prototype,"disabled",2),b([p()],L.prototype,"placeholder",2),b([p({type:Boolean,reflect:!0})],L.prototype,"readonly",2),b([p({attribute:"password-toggle",type:Boolean})],L.prototype,"passwordToggle",2),b([p({attribute:"password-visible",type:Boolean})],L.prototype,"passwordVisible",2),b([p({attribute:"no-spin-buttons",type:Boolean})],L.prototype,"noSpinButtons",2),b([p({reflect:!0})],L.prototype,"form",2),b([p({type:Boolean,reflect:!0})],L.prototype,"required",2),b([p()],L.prototype,"pattern",2),b([p({type:Number})],L.prototype,"minlength",2),b([p({type:Number})],L.prototype,"maxlength",2),b([p()],L.prototype,"min",2),b([p()],L.prototype,"max",2),b([p()],L.prototype,"step",2),b([p()],L.prototype,"autocapitalize",2),b([p()],L.prototype,"autocorrect",2),b([p()],L.prototype,"autocomplete",2),b([p({type:Boolean})],L.prototype,"autofocus",2),b([p()],L.prototype,"enterkeyhint",2),b([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],L.prototype,"spellcheck",2),b([p()],L.prototype,"inputmode",2),b([H("disabled",{waitUntilFirstUpdate:!0})],L.prototype,"handleDisabledChange",1),b([H("step",{waitUntilFirstUpdate:!0})],L.prototype,"handleStepChange",1),b([H("value",{waitUntilFirstUpdate:!0})],L.prototype,"handleValueChange",1),L.define("sl-input");var kd=z`
1665
1665
  ${Q}
1666
1666
  ${ms}
1667
1667
 
@@ -1829,7 +1829,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1829
1829
  resize: none;
1830
1830
  overflow-y: hidden;
1831
1831
  }
1832
- `,B=class extends j{constructor(){super(...arguments),this.formControlController=new go(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new _e(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setTextareaHeight()),this.updateComplete.then(()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}setTextareaHeight(){this.resize==="auto"?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(e){if(e){typeof e.top=="number"&&(this.input.scrollTop=e.top),typeof e.left=="number"&&(this.input.scrollLeft=e.left);return}return{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(e,t,o="none"){this.input.setSelectionRange(e,t,o)}setRangeText(e,t,o,r){this.input.setRangeText(e,t,o,r),this.value!==this.input.value&&(this.value=this.input.value),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=this.label?!0:!!e,r=this.helpText?!0:!!t;return A`
1832
+ `,B=class extends j{constructor(){super(...arguments),this.formControlController=new po(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new xt(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setTextareaHeight()),this.updateComplete.then(()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}setTextareaHeight(){this.resize==="auto"?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.input.scrollTop=t.top),typeof t.left=="number"&&(this.input.scrollLeft=t.left);return}return{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(t,e,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,r){this.input.setRangeText(t,e,o,r),this.value!==this.input.value&&(this.value=this.input.value),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),o=this.label?!0:!!t,r=this.helpText?!0:!!e;return A`
1833
1833
  <div
1834
1834
  part="form-control"
1835
1835
  class=${K({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":o,"form-control--has-help-text":r})}
@@ -1887,7 +1887,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
1887
1887
  <slot name="help-text">${this.helpText}</slot>
1888
1888
  </div>
1889
1889
  </div>
1890
- `}};B.styles=xu,f([V(".textarea__control")],B.prototype,"input",2),f([rt()],B.prototype,"hasFocus",2),f([g()],B.prototype,"title",2),f([g()],B.prototype,"name",2),f([g()],B.prototype,"value",2),f([g({reflect:!0})],B.prototype,"size",2),f([g({type:Boolean,reflect:!0})],B.prototype,"filled",2),f([g()],B.prototype,"label",2),f([g({attribute:"help-text"})],B.prototype,"helpText",2),f([g()],B.prototype,"placeholder",2),f([g({type:Number})],B.prototype,"rows",2),f([g()],B.prototype,"resize",2),f([g({type:Boolean,reflect:!0})],B.prototype,"disabled",2),f([g({type:Boolean,reflect:!0})],B.prototype,"readonly",2),f([g({reflect:!0})],B.prototype,"form",2),f([g({type:Boolean,reflect:!0})],B.prototype,"required",2),f([g({type:Number})],B.prototype,"minlength",2),f([g({type:Number})],B.prototype,"maxlength",2),f([g()],B.prototype,"autocapitalize",2),f([g()],B.prototype,"autocorrect",2),f([g()],B.prototype,"autocomplete",2),f([g({type:Boolean})],B.prototype,"autofocus",2),f([g()],B.prototype,"enterkeyhint",2),f([g({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],B.prototype,"spellcheck",2),f([g()],B.prototype,"inputmode",2),f([vs()],B.prototype,"defaultValue",2),f([H("disabled",{waitUntilFirstUpdate:!0})],B.prototype,"handleDisabledChange",1),f([H("rows",{waitUntilFirstUpdate:!0})],B.prototype,"handleRowsChange",1),f([H("value",{waitUntilFirstUpdate:!0})],B.prototype,"handleValueChange",1),B.define("sl-textarea");function ku(e){return!!(e.offsetParent||e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function Au(e){const t=e.tagName.toLowerCase();return e.getAttribute("tabindex")==="-1"||e.hasAttribute("disabled")||t==="input"&&e.getAttribute("type")==="radio"&&!e.hasAttribute("checked")||!ku(e)||window.getComputedStyle(e).visibility==="hidden"?!1:(t==="audio"||t==="video")&&e.hasAttribute("controls")||e.hasAttribute("tabindex")||e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(t)}function Ti(e){const t=[];function o(r){if(r instanceof Element){if(r.hasAttribute("inert"))return;!t.includes(r)&&Au(r)&&t.push(r);const s=n=>{var i;return((i=n.getRootNode({composed:!0}))==null?void 0:i.host)!==e};r instanceof HTMLSlotElement&&s(r)&&r.assignedElements({flatten:!0}).forEach(n=>{o(n)}),r.shadowRoot!==null&&r.shadowRoot.mode==="open"&&o(r.shadowRoot)}[...r.children].forEach(s=>o(s))}return o(e),t.sort((r,s)=>{const n=Number(r.getAttribute("tabindex"))||0;return(Number(s.getAttribute("tabindex"))||0)-n})}function*Li(e=document.activeElement){e!=null&&(yield e,"shadowRoot"in e&&e.shadowRoot&&e.shadowRoot.mode!=="closed"&&(yield*tu(Li(e.shadowRoot.activeElement))))}function Cu(){return[...Li()].pop()}var yo=[],$u=class{constructor(e){this.tabDirection="forward",this.handleFocusIn=()=>{this.checkFocus()},this.handleKeyDown=t=>{var o,r;if(t.key!=="Tab"||this.isExternalActivated)return;t.shiftKey?this.tabDirection="backward":this.tabDirection="forward",t.preventDefault();const s=Ti(this.element),n=Cu();let i=s.findIndex(l=>l===n);if(i===-1){this.currentFocus=s[0],(o=this.currentFocus)==null||o.focus({preventScroll:!0});return}const a=this.tabDirection==="forward"?1:-1;i+a>=s.length?i=0:i+a<0?i=s.length-1:i+=a,this.currentFocus=s[i],(r=this.currentFocus)==null||r.focus({preventScroll:!0}),setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=e}activate(){yo.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){yo=yo.filter(e=>e!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return yo[yo.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const e=Ti(this.element);if(!this.element.matches(":focus-within")){const t=e[0],o=e[e.length-1],r=this.tabDirection==="forward"?t:o;typeof(r==null?void 0:r.focus)=="function"&&(this.currentFocus=r,r.focus({preventScroll:!0}))}}}};function Eu(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}var ws=new Set;function Su(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}function zi(e){if(ws.add(e),!document.body.classList.contains("sl-scroll-lock")){const t=Su();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function Ri(e){ws.delete(e),ws.size===0&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}function Pi(e,t,o="vertical",r="smooth"){const s=Eu(e,t),n=s.top+t.scrollTop,i=s.left+t.scrollLeft,a=t.scrollLeft,l=t.scrollLeft+t.offsetWidth,c=t.scrollTop,u=t.scrollTop+t.offsetHeight;(o==="horizontal"||o==="both")&&(i<a?t.scrollTo({left:i,behavior:r}):i+e.clientWidth>l&&t.scrollTo({left:i-t.offsetWidth+e.clientWidth,behavior:r})),(o==="vertical"||o==="both")&&(n<c?t.scrollTo({top:n,behavior:r}):n+e.clientHeight>u&&t.scrollTo({top:n-t.offsetHeight+e.clientHeight,behavior:r}))}var qu=z`
1890
+ `}};B.styles=kd,b([V(".textarea__control")],B.prototype,"input",2),b([re()],B.prototype,"hasFocus",2),b([p()],B.prototype,"title",2),b([p()],B.prototype,"name",2),b([p()],B.prototype,"value",2),b([p({reflect:!0})],B.prototype,"size",2),b([p({type:Boolean,reflect:!0})],B.prototype,"filled",2),b([p()],B.prototype,"label",2),b([p({attribute:"help-text"})],B.prototype,"helpText",2),b([p()],B.prototype,"placeholder",2),b([p({type:Number})],B.prototype,"rows",2),b([p()],B.prototype,"resize",2),b([p({type:Boolean,reflect:!0})],B.prototype,"disabled",2),b([p({type:Boolean,reflect:!0})],B.prototype,"readonly",2),b([p({reflect:!0})],B.prototype,"form",2),b([p({type:Boolean,reflect:!0})],B.prototype,"required",2),b([p({type:Number})],B.prototype,"minlength",2),b([p({type:Number})],B.prototype,"maxlength",2),b([p()],B.prototype,"autocapitalize",2),b([p()],B.prototype,"autocorrect",2),b([p()],B.prototype,"autocomplete",2),b([p({type:Boolean})],B.prototype,"autofocus",2),b([p()],B.prototype,"enterkeyhint",2),b([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],B.prototype,"spellcheck",2),b([p()],B.prototype,"inputmode",2),b([vs()],B.prototype,"defaultValue",2),b([H("disabled",{waitUntilFirstUpdate:!0})],B.prototype,"handleDisabledChange",1),b([H("rows",{waitUntilFirstUpdate:!0})],B.prototype,"handleRowsChange",1),b([H("value",{waitUntilFirstUpdate:!0})],B.prototype,"handleValueChange",1),B.define("sl-textarea");function Ad(t){return!!(t.offsetParent||t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Cd(t){const e=t.tagName.toLowerCase();return t.getAttribute("tabindex")==="-1"||t.hasAttribute("disabled")||e==="input"&&t.getAttribute("type")==="radio"&&!t.hasAttribute("checked")||!Ad(t)||window.getComputedStyle(t).visibility==="hidden"?!1:(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(e)}function Tn(t){const e=[];function o(r){if(r instanceof Element){if(r.hasAttribute("inert"))return;!e.includes(r)&&Cd(r)&&e.push(r);const s=a=>{var n;return((n=a.getRootNode({composed:!0}))==null?void 0:n.host)!==t};r instanceof HTMLSlotElement&&s(r)&&r.assignedElements({flatten:!0}).forEach(a=>{o(a)}),r.shadowRoot!==null&&r.shadowRoot.mode==="open"&&o(r.shadowRoot)}[...r.children].forEach(s=>o(s))}return o(t),e.sort((r,s)=>{const a=Number(r.getAttribute("tabindex"))||0;return(Number(s.getAttribute("tabindex"))||0)-a})}function*Ln(t=document.activeElement){t!=null&&(yield t,"shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"&&(yield*td(Ln(t.shadowRoot.activeElement))))}function $d(){return[...Ln()].pop()}var yo=[],Ed=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.checkFocus()},this.handleKeyDown=e=>{var o,r;if(e.key!=="Tab"||this.isExternalActivated)return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward",e.preventDefault();const s=Tn(this.element),a=$d();let n=s.findIndex(i=>i===a);if(n===-1){this.currentFocus=s[0],(o=this.currentFocus)==null||o.focus({preventScroll:!0});return}const c=this.tabDirection==="forward"?1:-1;n+c>=s.length?n=0:n+c<0?n=s.length-1:n+=c,this.currentFocus=s[n],(r=this.currentFocus)==null||r.focus({preventScroll:!0}),setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t}activate(){yo.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){yo=yo.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return yo[yo.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=Tn(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r=this.tabDirection==="forward"?e:o;typeof(r==null?void 0:r.focus)=="function"&&(this.currentFocus=r,r.focus({preventScroll:!0}))}}}};function Sd(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}var ws=new Set;function qd(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function zn(t){if(ws.add(t),!document.body.classList.contains("sl-scroll-lock")){const e=qd();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function Rn(t){ws.delete(t),ws.size===0&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}function Pn(t,e,o="vertical",r="smooth"){const s=Sd(t,e),a=s.top+e.scrollTop,n=s.left+e.scrollLeft,c=e.scrollLeft,i=e.scrollLeft+e.offsetWidth,l=e.scrollTop,d=e.scrollTop+e.offsetHeight;(o==="horizontal"||o==="both")&&(n<c?e.scrollTo({left:n,behavior:r}):n+t.clientWidth>i&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:r})),(o==="vertical"||o==="both")&&(a<l?e.scrollTo({top:a,behavior:r}):a+t.clientHeight>d&&e.scrollTo({top:a-e.offsetHeight+t.clientHeight,behavior:r}))}var Dd=z`
1891
1891
  ${Q}
1892
1892
 
1893
1893
  :host {
@@ -2006,7 +2006,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2006
2006
  border: solid 1px var(--sl-color-neutral-0);
2007
2007
  }
2008
2008
  }
2009
- `,Du=z`
2009
+ `,Td=z`
2010
2010
  ${Q}
2011
2011
 
2012
2012
  :host {
@@ -2055,17 +2055,17 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2055
2055
  .icon-button__icon {
2056
2056
  pointer-events: none;
2057
2057
  }
2058
- `,nt=class extends j{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){const e=!!this.href,t=e?Yo`a`:Yo`button`;return vo`
2059
- <${t}
2058
+ `,ae=class extends j{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?Jo`a`:Jo`button`;return vo`
2059
+ <${e}
2060
2060
  part="base"
2061
- class=${K({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})}
2062
- ?disabled=${E(e?void 0:this.disabled)}
2063
- type=${E(e?void 0:"button")}
2064
- href=${E(e?this.href:void 0)}
2065
- target=${E(e?this.target:void 0)}
2066
- download=${E(e?this.download:void 0)}
2067
- rel=${E(e&&this.target?"noreferrer noopener":void 0)}
2068
- role=${E(e?void 0:"button")}
2061
+ class=${K({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
2062
+ ?disabled=${E(t?void 0:this.disabled)}
2063
+ type=${E(t?void 0:"button")}
2064
+ href=${E(t?this.href:void 0)}
2065
+ target=${E(t?this.target:void 0)}
2066
+ download=${E(t?this.download:void 0)}
2067
+ rel=${E(t&&this.target?"noreferrer noopener":void 0)}
2068
+ role=${E(t?void 0:"button")}
2069
2069
  aria-disabled=${this.disabled?"true":"false"}
2070
2070
  aria-label="${this.label}"
2071
2071
  tabindex=${this.disabled?"-1":"0"}
@@ -2080,8 +2080,8 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2080
2080
  src=${E(this.src)}
2081
2081
  aria-hidden="true"
2082
2082
  ></sl-icon>
2083
- </${t}>
2084
- `}};nt.styles=Du,nt.dependencies={"sl-icon":dt},f([V(".icon-button")],nt.prototype,"button",2),f([rt()],nt.prototype,"hasFocus",2),f([g()],nt.prototype,"name",2),f([g()],nt.prototype,"library",2),f([g()],nt.prototype,"src",2),f([g()],nt.prototype,"href",2),f([g()],nt.prototype,"target",2),f([g()],nt.prototype,"download",2),f([g()],nt.prototype,"label",2),f([g({type:Boolean,reflect:!0})],nt.prototype,"disabled",2);var Mi=new Map,Tu=new WeakMap;function Lu(e){return e??{keyframes:[],options:{duration:0}}}function Ii(e,t){return t.toLowerCase()==="rtl"?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function Ot(e,t){Mi.set(e,Lu(t))}function Nt(e,t,o){const r=Tu.get(e);if(r!=null&&r[t])return Ii(r[t],o.dir);const s=Mi.get(t);return s?Ii(s,o.dir):{keyframes:[],options:{duration:0}}}function Re(e,t){return new Promise(o=>{function r(s){s.target===e&&(e.removeEventListener(t,r),o())}e.addEventListener(t,r)})}function Vt(e,t,o){return new Promise(r=>{if((o==null?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const s=e.animate(t,Go(Qt({},o),{duration:zu()?0:o.duration}));s.addEventListener("cancel",r,{once:!0}),s.addEventListener("finish",r,{once:!0})})}function Fi(e){return e=e.toString().toLowerCase(),e.indexOf("ms")>-1?parseFloat(e):e.indexOf("s")>-1?parseFloat(e)*1e3:parseFloat(e)}function zu(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function te(e){return Promise.all(e.getAnimations().map(t=>new Promise(o=>{const r=requestAnimationFrame(o);t.addEventListener("cancel",()=>r,{once:!0}),t.addEventListener("finish",()=>r,{once:!0}),t.cancel()})))}var qt=class extends j{constructor(){super(...arguments),this.hasSlotController=new _e(this,"footer"),this.localize=new Jt(this),this.modal=new $u(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.modal.isActive()&&this.open&&(e.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),zi(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),Ri(this)}requestClose(e){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){const o=Nt(this,"dialog.denyClose",{dir:this.localize.dir()});Vt(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),zi(this);const e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([te(this.dialog),te(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});const t=Nt(this,"dialog.show",{dir:this.localize.dir()}),o=Nt(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([Vt(this.panel,t.keyframes,t.options),Vt(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([te(this.dialog),te(this.overlay)]);const e=Nt(this,"dialog.hide",{dir:this.localize.dir()}),t=Nt(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([Vt(this.overlay,t.keyframes,t.options).then(()=>{this.overlay.hidden=!0}),Vt(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Ri(this);const o=this.originalTrigger;typeof(o==null?void 0:o.focus)=="function"&&setTimeout(()=>o.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,Re(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Re(this,"sl-after-hide")}render(){return A`
2083
+ </${e}>
2084
+ `}};ae.styles=Td,ae.dependencies={"sl-icon":fe},b([V(".icon-button")],ae.prototype,"button",2),b([re()],ae.prototype,"hasFocus",2),b([p()],ae.prototype,"name",2),b([p()],ae.prototype,"library",2),b([p()],ae.prototype,"src",2),b([p()],ae.prototype,"href",2),b([p()],ae.prototype,"target",2),b([p()],ae.prototype,"download",2),b([p()],ae.prototype,"label",2),b([p({type:Boolean,reflect:!0})],ae.prototype,"disabled",2);var Mn=new Map,Ld=new WeakMap;function zd(t){return t??{keyframes:[],options:{duration:0}}}function In(t,e){return e.toLowerCase()==="rtl"?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function Oe(t,e){Mn.set(t,zd(e))}function Ne(t,e,o){const r=Ld.get(t);if(r!=null&&r[e])return In(r[e],o.dir);const s=Mn.get(e);return s?In(s,o.dir):{keyframes:[],options:{duration:0}}}function Rt(t,e){return new Promise(o=>{function r(s){s.target===t&&(t.removeEventListener(e,r),o())}t.addEventListener(e,r)})}function Ve(t,e,o){return new Promise(r=>{if((o==null?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const s=t.animate(e,Zo(Qe({},o),{duration:Rd()?0:o.duration}));s.addEventListener("cancel",r,{once:!0}),s.addEventListener("finish",r,{once:!0})})}function Fn(t){return t=t.toString().toLowerCase(),t.indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?parseFloat(t)*1e3:parseFloat(t)}function Rd(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function et(t){return Promise.all(t.getAnimations().map(e=>new Promise(o=>{const r=requestAnimationFrame(o);e.addEventListener("cancel",()=>r,{once:!0}),e.addEventListener("finish",()=>r,{once:!0}),e.cancel()})))}var qe=class extends j{constructor(){super(...arguments),this.hasSlotController=new xt(this,"footer"),this.localize=new Je(this),this.modal=new Ed(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),zn(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),Rn(this)}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const o=Ne(this,"dialog.denyClose",{dir:this.localize.dir()});Ve(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),zn(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([et(this.dialog),et(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=Ne(this,"dialog.show",{dir:this.localize.dir()}),o=Ne(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([Ve(this.panel,e.keyframes,e.options),Ve(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([et(this.dialog),et(this.overlay)]);const t=Ne(this,"dialog.hide",{dir:this.localize.dir()}),e=Ne(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([Ve(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),Ve(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Rn(this);const o=this.originalTrigger;typeof(o==null?void 0:o.focus)=="function"&&setTimeout(()=>o.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,Rt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Rt(this,"sl-after-hide")}render(){return A`
2085
2085
  <div
2086
2086
  part="base"
2087
2087
  class=${K({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
@@ -2125,7 +2125,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2125
2125
  </footer>
2126
2126
  </div>
2127
2127
  </div>
2128
- `}};qt.styles=qu,qt.dependencies={"sl-icon-button":nt},f([V(".dialog")],qt.prototype,"dialog",2),f([V(".dialog__panel")],qt.prototype,"panel",2),f([V(".dialog__overlay")],qt.prototype,"overlay",2),f([g({type:Boolean,reflect:!0})],qt.prototype,"open",2),f([g({reflect:!0})],qt.prototype,"label",2),f([g({attribute:"no-header",type:Boolean,reflect:!0})],qt.prototype,"noHeader",2),f([H("open",{waitUntilFirstUpdate:!0})],qt.prototype,"handleOpenChange",1),Ot("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Ot("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),Ot("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),Ot("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Ot("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),qt.define("sl-dialog");var Ru=z`
2128
+ `}};qe.styles=Dd,qe.dependencies={"sl-icon-button":ae},b([V(".dialog")],qe.prototype,"dialog",2),b([V(".dialog__panel")],qe.prototype,"panel",2),b([V(".dialog__overlay")],qe.prototype,"overlay",2),b([p({type:Boolean,reflect:!0})],qe.prototype,"open",2),b([p({reflect:!0})],qe.prototype,"label",2),b([p({attribute:"no-header",type:Boolean,reflect:!0})],qe.prototype,"noHeader",2),b([H("open",{waitUntilFirstUpdate:!0})],qe.prototype,"handleOpenChange",1),Oe("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Oe("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),Oe("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),Oe("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Oe("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),qe.define("sl-dialog");var Pd=z`
2129
2129
  ${Q}
2130
2130
 
2131
2131
  :host {
@@ -2356,7 +2356,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2356
2356
  .tab-group--end ::slotted(sl-tab-panel) {
2357
2357
  --padding: 0 var(--sl-spacing-medium);
2358
2358
  }
2359
- `,ht=class extends j{constructor(){super(...arguments),this.localize=new Jt(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const e=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(t=>{t.some(o=>!["aria-labelledby","aria-controls"].includes(o.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(o=>o.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((o,r)=>{var s;o[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((s=this.getActiveTab())!=null?s:this.tabs[0],{emitEvents:!1}),r.unobserve(o[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(e={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(o=>e.includeDisabled?o.tagName.toLowerCase()==="sl-tab":o.tagName.toLowerCase()==="sl-tab"&&!o.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()==="sl-tab-panel")}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){const o=e.target.closest("sl-tab");(o==null?void 0:o.closest("sl-tab-group"))===this&&o!==null&&this.setActiveTab(o,{scrollBehavior:"smooth"})}handleKeyDown(e){const o=e.target.closest("sl-tab");if((o==null?void 0:o.closest("sl-tab-group"))===this&&(["Enter"," "].includes(e.key)&&o!==null&&(this.setActiveTab(o,{scrollBehavior:"smooth"}),e.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key))){const s=this.tabs.find(i=>i.matches(":focus")),n=this.localize.dir()==="rtl";if((s==null?void 0:s.tagName.toLowerCase())==="sl-tab"){let i=this.tabs.indexOf(s);e.key==="Home"?i=0:e.key==="End"?i=this.tabs.length-1:["top","bottom"].includes(this.placement)&&e.key===(n?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&e.key==="ArrowUp"?i--:(["top","bottom"].includes(this.placement)&&e.key===(n?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&e.key==="ArrowDown")&&i++,i<0&&(i=this.tabs.length-1),i>this.tabs.length-1&&(i=0),this.tabs[i].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[i],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Pi(this.tabs[i],this.nav,"horizontal"),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(e,t){if(t=Qt({emitEvents:!0,scrollBehavior:"auto"},t),e!==this.activeTab&&!e.disabled){const o=this.activeTab;this.activeTab=e,this.tabs.forEach(r=>r.active=r===this.activeTab),this.panels.forEach(r=>{var s;return r.active=r.name===((s=this.activeTab)==null?void 0:s.panel)}),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Pi(this.activeTab,this.nav,"horizontal",t.scrollBehavior),t.emitEvents&&(o&&this.emit("sl-tab-hide",{detail:{name:o.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{const t=this.panels.find(o=>o.name===e.panel);t&&(e.setAttribute("aria-controls",t.getAttribute("id")),t.setAttribute("aria-labelledby",e.getAttribute("id")))})}repositionIndicator(){const e=this.getActiveTab();if(!e)return;const t=e.clientWidth,o=e.clientHeight,r=this.localize.dir()==="rtl",s=this.getAllTabs(),i=s.slice(0,s.indexOf(e)).reduce((a,l)=>({left:a.left+l.clientWidth,top:a.top+l.clientHeight}),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${t}px`,this.indicator.style.height="auto",this.indicator.style.translate=r?`${-1*i.left}px`:`${i.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${o}px`,this.indicator.style.translate=`0 ${i.top}px`;break}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(e){const t=this.tabs.find(o=>o.panel===e);t&&this.setActiveTab(t,{scrollBehavior:"smooth"})}render(){const e=this.localize.dir()==="rtl";return A`
2359
+ `,ue=class extends j{constructor(){super(...arguments),this.localize=new Je(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const t=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(o=>!["aria-labelledby","aria-controls"].includes(o.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(o=>o.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((o,r)=>{var s;o[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((s=this.getActiveTab())!=null?s:this.tabs[0],{emitEvents:!1}),r.unobserve(o[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(o=>t.includeDisabled?o.tagName.toLowerCase()==="sl-tab":o.tagName.toLowerCase()==="sl-tab"&&!o.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sl-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.active)}handleClick(t){const o=t.target.closest("sl-tab");(o==null?void 0:o.closest("sl-tab-group"))===this&&o!==null&&this.setActiveTab(o,{scrollBehavior:"smooth"})}handleKeyDown(t){const o=t.target.closest("sl-tab");if((o==null?void 0:o.closest("sl-tab-group"))===this&&(["Enter"," "].includes(t.key)&&o!==null&&(this.setActiveTab(o,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){const s=this.tabs.find(n=>n.matches(":focus")),a=this.localize.dir()==="rtl";if((s==null?void 0:s.tagName.toLowerCase())==="sl-tab"){let n=this.tabs.indexOf(s);t.key==="Home"?n=0:t.key==="End"?n=this.tabs.length-1:["top","bottom"].includes(this.placement)&&t.key===(a?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&t.key==="ArrowUp"?n--:(["top","bottom"].includes(this.placement)&&t.key===(a?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&t.key==="ArrowDown")&&n++,n<0&&(n=this.tabs.length-1),n>this.tabs.length-1&&(n=0),this.tabs[n].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[n],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Pn(this.tabs[n],this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=Qe({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){const o=this.activeTab;this.activeTab=t,this.tabs.forEach(r=>r.active=r===this.activeTab),this.panels.forEach(r=>{var s;return r.active=r.name===((s=this.activeTab)==null?void 0:s.panel)}),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Pn(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(o&&this.emit("sl-tab-hide",{detail:{name:o.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{const e=this.panels.find(o=>o.name===t.panel);e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))})}repositionIndicator(){const t=this.getActiveTab();if(!t)return;const e=t.clientWidth,o=t.clientHeight,r=this.localize.dir()==="rtl",s=this.getAllTabs(),n=s.slice(0,s.indexOf(t)).reduce((c,i)=>({left:c.left+i.clientWidth,top:c.top+i.clientHeight}),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${e}px`,this.indicator.style.height="auto",this.indicator.style.translate=r?`${-1*n.left}px`:`${n.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${o}px`,this.indicator.style.translate=`0 ${n.top}px`;break}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(t){const e=this.tabs.find(o=>o.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t=this.localize.dir()==="rtl";return A`
2360
2360
  <div
2361
2361
  part="base"
2362
2362
  class=${K({"tab-group":!0,"tab-group--top":this.placement==="top","tab-group--bottom":this.placement==="bottom","tab-group--start":this.placement==="start","tab-group--end":this.placement==="end","tab-group--rtl":this.localize.dir()==="rtl","tab-group--has-scroll-controls":this.hasScrollControls})}
@@ -2369,7 +2369,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2369
2369
  part="scroll-button scroll-button--start"
2370
2370
  exportparts="base:scroll-button__base"
2371
2371
  class="tab-group__scroll-button tab-group__scroll-button--start"
2372
- name=${e?"chevron-right":"chevron-left"}
2372
+ name=${t?"chevron-right":"chevron-left"}
2373
2373
  library="system"
2374
2374
  label=${this.localize.term("scrollToStart")}
2375
2375
  @click=${this.handleScrollToStart}
@@ -2388,7 +2388,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2388
2388
  part="scroll-button scroll-button--end"
2389
2389
  exportparts="base:scroll-button__base"
2390
2390
  class="tab-group__scroll-button tab-group__scroll-button--end"
2391
- name=${e?"chevron-left":"chevron-right"}
2391
+ name=${t?"chevron-left":"chevron-right"}
2392
2392
  library="system"
2393
2393
  label=${this.localize.term("scrollToEnd")}
2394
2394
  @click=${this.handleScrollToEnd}
@@ -2398,7 +2398,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2398
2398
 
2399
2399
  <slot part="body" class="tab-group__body" @slotchange=${this.syncTabsAndPanels}></slot>
2400
2400
  </div>
2401
- `}};ht.styles=Ru,ht.dependencies={"sl-icon-button":nt},f([V(".tab-group")],ht.prototype,"tabGroup",2),f([V(".tab-group__body")],ht.prototype,"body",2),f([V(".tab-group__nav")],ht.prototype,"nav",2),f([V(".tab-group__indicator")],ht.prototype,"indicator",2),f([rt()],ht.prototype,"hasScrollControls",2),f([g()],ht.prototype,"placement",2),f([g()],ht.prototype,"activation",2),f([g({attribute:"no-scroll-controls",type:Boolean})],ht.prototype,"noScrollControls",2),f([H("noScrollControls",{waitUntilFirstUpdate:!0})],ht.prototype,"updateScrollControls",1),f([H("placement",{waitUntilFirstUpdate:!0})],ht.prototype,"syncIndicator",1),ht.define("sl-tab-group");var Pu=z`
2401
+ `}};ue.styles=Pd,ue.dependencies={"sl-icon-button":ae},b([V(".tab-group")],ue.prototype,"tabGroup",2),b([V(".tab-group__body")],ue.prototype,"body",2),b([V(".tab-group__nav")],ue.prototype,"nav",2),b([V(".tab-group__indicator")],ue.prototype,"indicator",2),b([re()],ue.prototype,"hasScrollControls",2),b([p()],ue.prototype,"placement",2),b([p()],ue.prototype,"activation",2),b([p({attribute:"no-scroll-controls",type:Boolean})],ue.prototype,"noScrollControls",2),b([H("noScrollControls",{waitUntilFirstUpdate:!0})],ue.prototype,"updateScrollControls",1),b([H("placement",{waitUntilFirstUpdate:!0})],ue.prototype,"syncIndicator",1),ue.define("sl-tab-group");var Md=z`
2402
2402
  ${Q}
2403
2403
 
2404
2404
  :host {
@@ -2468,7 +2468,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2468
2468
  outline-offset: -3px;
2469
2469
  }
2470
2470
  }
2471
- `,Mu=0,Dt=class extends j{constructor(){super(...arguments),this.localize=new Jt(this),this.attrId=++Mu,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(e){e.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(e){this.tab.focus(e)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,A`
2471
+ `,Id=0,De=class extends j{constructor(){super(...arguments),this.localize=new Je(this),this.attrId=++Id,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(t){t.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,A`
2472
2472
  <div
2473
2473
  part="base"
2474
2474
  class=${K({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
@@ -2488,7 +2488,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2488
2488
  ></sl-icon-button>
2489
2489
  `:""}
2490
2490
  </div>
2491
- `}};Dt.styles=Pu,Dt.dependencies={"sl-icon-button":nt},f([V(".tab")],Dt.prototype,"tab",2),f([g({reflect:!0})],Dt.prototype,"panel",2),f([g({type:Boolean,reflect:!0})],Dt.prototype,"active",2),f([g({type:Boolean})],Dt.prototype,"closable",2),f([g({type:Boolean,reflect:!0})],Dt.prototype,"disabled",2),f([H("active")],Dt.prototype,"handleActiveChange",1),f([H("disabled")],Dt.prototype,"handleDisabledChange",1),Dt.define("sl-tab");var Iu=z`
2491
+ `}};De.styles=Md,De.dependencies={"sl-icon-button":ae},b([V(".tab")],De.prototype,"tab",2),b([p({reflect:!0})],De.prototype,"panel",2),b([p({type:Boolean,reflect:!0})],De.prototype,"active",2),b([p({type:Boolean})],De.prototype,"closable",2),b([p({type:Boolean,reflect:!0})],De.prototype,"disabled",2),b([H("active")],De.prototype,"handleActiveChange",1),b([H("disabled")],De.prototype,"handleDisabledChange",1),De.define("sl-tab");var Fd=z`
2492
2492
  ${Q}
2493
2493
 
2494
2494
  :host {
@@ -2505,12 +2505,12 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2505
2505
  display: block;
2506
2506
  padding: var(--padding);
2507
2507
  }
2508
- `,Fu=0,wo=class extends j{constructor(){super(...arguments),this.attrId=++Fu,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return A`
2508
+ `,Bd=0,wo=class extends j{constructor(){super(...arguments),this.attrId=++Bd,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return A`
2509
2509
  <slot
2510
2510
  part="base"
2511
2511
  class=${K({"tab-panel":!0,"tab-panel--active":this.active})}
2512
2512
  ></slot>
2513
- `}};wo.styles=Iu,f([g({reflect:!0})],wo.prototype,"name",2),f([g({type:Boolean,reflect:!0})],wo.prototype,"active",2),f([H("active")],wo.prototype,"handleActiveChange",1),wo.define("sl-tab-panel");var Bu=z`
2513
+ `}};wo.styles=Fd,b([p({reflect:!0})],wo.prototype,"name",2),b([p({type:Boolean,reflect:!0})],wo.prototype,"active",2),b([H("active")],wo.prototype,"handleActiveChange",1),wo.define("sl-tab-panel");var Od=z`
2514
2514
  ${Q}
2515
2515
 
2516
2516
  :host {
@@ -2624,7 +2624,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2624
2624
  user-select: none;
2625
2625
  -webkit-user-select: none;
2626
2626
  }
2627
- `,Tt=class extends j{constructor(){super(),this.checked=!1,this.hasFocus=!1,this.size="medium",this.disabled=!1,this.handleBlur=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.handleClick=()=>{this.disabled||(this.checked=!0)},this.handleFocus=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}connectedCallback(){super.connectedCallback(),this.setInitialAttributes()}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return A`
2627
+ `,Te=class extends j{constructor(){super(),this.checked=!1,this.hasFocus=!1,this.size="medium",this.disabled=!1,this.handleBlur=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.handleClick=()=>{this.disabled||(this.checked=!0)},this.handleFocus=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}connectedCallback(){super.connectedCallback(),this.setInitialAttributes()}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return A`
2628
2628
  <span
2629
2629
  part="base"
2630
2630
  class=${K({radio:!0,"radio--checked":this.checked,"radio--disabled":this.disabled,"radio--focused":this.hasFocus,"radio--small":this.size==="small","radio--medium":this.size==="medium","radio--large":this.size==="large"})}
@@ -2635,7 +2635,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2635
2635
 
2636
2636
  <slot part="label" class="radio__label"></slot>
2637
2637
  </span>
2638
- `}};Tt.styles=Bu,Tt.dependencies={"sl-icon":dt},f([rt()],Tt.prototype,"checked",2),f([rt()],Tt.prototype,"hasFocus",2),f([g()],Tt.prototype,"value",2),f([g({reflect:!0})],Tt.prototype,"size",2),f([g({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2),f([H("checked")],Tt.prototype,"handleCheckedChange",1),f([H("disabled",{waitUntilFirstUpdate:!0})],Tt.prototype,"handleDisabledChange",1),Tt.define("sl-radio");var Ou=z`
2638
+ `}};Te.styles=Od,Te.dependencies={"sl-icon":fe},b([re()],Te.prototype,"checked",2),b([re()],Te.prototype,"hasFocus",2),b([p()],Te.prototype,"value",2),b([p({reflect:!0})],Te.prototype,"size",2),b([p({type:Boolean,reflect:!0})],Te.prototype,"disabled",2),b([H("checked")],Te.prototype,"handleCheckedChange",1),b([H("disabled",{waitUntilFirstUpdate:!0})],Te.prototype,"handleDisabledChange",1),Te.define("sl-radio");var Nd=z`
2639
2639
  ${Q}
2640
2640
  ${ms}
2641
2641
 
@@ -2670,7 +2670,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2670
2670
  white-space: nowrap;
2671
2671
  border: 0;
2672
2672
  }
2673
- `,Nu=z`
2673
+ `,Vd=z`
2674
2674
  ${Q}
2675
2675
 
2676
2676
  :host {
@@ -2681,7 +2681,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2681
2681
  display: flex;
2682
2682
  flex-wrap: nowrap;
2683
2683
  }
2684
- `,_o=class extends j{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(e){const t=xo(e.target);t==null||t.classList.add("sl-button-group__button--focus")}handleBlur(e){const t=xo(e.target);t==null||t.classList.remove("sl-button-group__button--focus")}handleMouseOver(e){const t=xo(e.target);t==null||t.classList.add("sl-button-group__button--hover")}handleMouseOut(e){const t=xo(e.target);t==null||t.classList.remove("sl-button-group__button--hover")}handleSlotChange(){const e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{const o=e.indexOf(t),r=xo(t);r&&(r.classList.add("sl-button-group__button"),r.classList.toggle("sl-button-group__button--first",o===0),r.classList.toggle("sl-button-group__button--inner",o>0&&o<e.length-1),r.classList.toggle("sl-button-group__button--last",o===e.length-1),r.classList.toggle("sl-button-group__button--radio",r.tagName.toLowerCase()==="sl-radio-button"))})}render(){return A`
2684
+ `,_o=class extends j{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=xo(t.target);e==null||e.classList.add("sl-button-group__button--focus")}handleBlur(t){const e=xo(t.target);e==null||e.classList.remove("sl-button-group__button--focus")}handleMouseOver(t){const e=xo(t.target);e==null||e.classList.add("sl-button-group__button--hover")}handleMouseOut(t){const e=xo(t.target);e==null||e.classList.remove("sl-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{const o=t.indexOf(e),r=xo(e);r&&(r.classList.add("sl-button-group__button"),r.classList.toggle("sl-button-group__button--first",o===0),r.classList.toggle("sl-button-group__button--inner",o>0&&o<t.length-1),r.classList.toggle("sl-button-group__button--last",o===t.length-1),r.classList.toggle("sl-button-group__button--radio",r.tagName.toLowerCase()==="sl-radio-button"))})}render(){return A`
2685
2685
  <div
2686
2686
  part="base"
2687
2687
  class="button-group"
@@ -2694,7 +2694,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2694
2694
  >
2695
2695
  <slot @slotchange=${this.handleSlotChange}></slot>
2696
2696
  </div>
2697
- `}};_o.styles=Nu,f([V("slot")],_o.prototype,"defaultSlot",2),f([rt()],_o.prototype,"disableRole",2),f([g()],_o.prototype,"label",2);function xo(e){var t;const o="sl-button, sl-radio-button";return(t=e.closest(o))!=null?t:e.querySelector(o)}var et=class extends j{constructor(){super(...arguments),this.formControlController=new go(this),this.hasSlotController=new _e(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.errorMessage="",this.defaultValue="",this.label="",this.helpText="",this.name="option",this.value="",this.size="medium",this.form="",this.required=!1}get validity(){const e=this.required&&!this.value;return this.customValidityMessage!==""?ou:e?eu:Wo}get validationMessage(){const e=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:e?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sl-radio, sl-radio-button")]}handleRadioClick(e){const t=e.target.closest("sl-radio, sl-radio-button"),o=this.getAllRadios(),r=this.value;t.disabled||(this.value=t.value,o.forEach(s=>s.checked=s===t),this.value!==r&&(this.emit("sl-change"),this.emit("sl-input")))}handleKeyDown(e){var t;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key))return;const o=this.getAllRadios().filter(a=>!a.disabled),r=(t=o.find(a=>a.checked))!=null?t:o[0],s=e.key===" "?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1,n=this.value;let i=o.indexOf(r)+s;i<0&&(i=o.length-1),i>o.length-1&&(i=0),this.getAllRadios().forEach(a=>{a.checked=!1,this.hasButtonGroup||(a.tabIndex=-1)}),this.value=o[i].value,o[i].checked=!0,this.hasButtonGroup?o[i].shadowRoot.querySelector("button").focus():(o[i].tabIndex=0,o[i].focus()),this.value!==n&&(this.emit("sl-change"),this.emit("sl-input")),e.preventDefault()}handleLabelClick(){const e=this.getAllRadios(),o=e.find(r=>r.checked)||e[0];o&&o.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){var e,t;const o=this.getAllRadios();if(await Promise.all(o.map(async r=>{await r.updateComplete,r.checked=r.value===this.value,r.size=this.size})),this.hasButtonGroup=o.some(r=>r.tagName.toLowerCase()==="sl-radio-button"),!o.some(r=>r.checked))if(this.hasButtonGroup){const r=(e=o[0].shadowRoot)==null?void 0:e.querySelector("button");r&&(r.tabIndex=0)}else o[0].tabIndex=0;if(this.hasButtonGroup){const r=(t=this.shadowRoot)==null?void 0:t.querySelector("sl-button-group");r&&(r.disableRole=!0)}}syncRadios(){if(customElements.get("sl-radio")&&customElements.get("sl-radio-button")){this.syncRadioElements();return}customElements.get("sl-radio")?this.syncRadioElements():customElements.whenDefined("sl-radio").then(()=>this.syncRadios()),customElements.get("sl-radio-button")?this.syncRadioElements():customElements.whenDefined("sl-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(t=>t.checked=t.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){const e=this.required&&!this.value,t=this.customValidityMessage!=="";return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){const e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?"":this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=""){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}render(){const e=this.hasSlotController.test("label"),t=this.hasSlotController.test("help-text"),o=this.label?!0:!!e,r=this.helpText?!0:!!t,s=A`
2697
+ `}};_o.styles=Vd,b([V("slot")],_o.prototype,"defaultSlot",2),b([re()],_o.prototype,"disableRole",2),b([p()],_o.prototype,"label",2);function xo(t){var e;const o="sl-button, sl-radio-button";return(e=t.closest(o))!=null?e:t.querySelector(o)}var te=class extends j{constructor(){super(...arguments),this.formControlController=new po(this),this.hasSlotController=new xt(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.errorMessage="",this.defaultValue="",this.label="",this.helpText="",this.name="option",this.value="",this.size="medium",this.form="",this.required=!1}get validity(){const t=this.required&&!this.value;return this.customValidityMessage!==""?rd:t?od:Ko}get validationMessage(){const t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sl-radio, sl-radio-button")]}handleRadioClick(t){const e=t.target.closest("sl-radio, sl-radio-button"),o=this.getAllRadios(),r=this.value;e.disabled||(this.value=e.value,o.forEach(s=>s.checked=s===e),this.value!==r&&(this.emit("sl-change"),this.emit("sl-input")))}handleKeyDown(t){var e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const o=this.getAllRadios().filter(c=>!c.disabled),r=(e=o.find(c=>c.checked))!=null?e:o[0],s=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,a=this.value;let n=o.indexOf(r)+s;n<0&&(n=o.length-1),n>o.length-1&&(n=0),this.getAllRadios().forEach(c=>{c.checked=!1,this.hasButtonGroup||(c.tabIndex=-1)}),this.value=o[n].value,o[n].checked=!0,this.hasButtonGroup?o[n].shadowRoot.querySelector("button").focus():(o[n].tabIndex=0,o[n].focus()),this.value!==a&&(this.emit("sl-change"),this.emit("sl-input")),t.preventDefault()}handleLabelClick(){const t=this.getAllRadios(),o=t.find(r=>r.checked)||t[0];o&&o.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){var t,e;const o=this.getAllRadios();if(await Promise.all(o.map(async r=>{await r.updateComplete,r.checked=r.value===this.value,r.size=this.size})),this.hasButtonGroup=o.some(r=>r.tagName.toLowerCase()==="sl-radio-button"),!o.some(r=>r.checked))if(this.hasButtonGroup){const r=(t=o[0].shadowRoot)==null?void 0:t.querySelector("button");r&&(r.tabIndex=0)}else o[0].tabIndex=0;if(this.hasButtonGroup){const r=(e=this.shadowRoot)==null?void 0:e.querySelector("sl-button-group");r&&(r.disableRole=!0)}}syncRadios(){if(customElements.get("sl-radio")&&customElements.get("sl-radio-button")){this.syncRadioElements();return}customElements.get("sl-radio")?this.syncRadioElements():customElements.whenDefined("sl-radio").then(()=>this.syncRadios()),customElements.get("sl-radio-button")?this.syncRadioElements():customElements.whenDefined("sl-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){const t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),o=this.label?!0:!!t,r=this.helpText?!0:!!e,s=A`
2698
2698
  <slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
2699
2699
  `;return A`
2700
2700
  <fieldset
@@ -2746,8 +2746,8 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2746
2746
  <slot name="help-text">${this.helpText}</slot>
2747
2747
  </div>
2748
2748
  </fieldset>
2749
- `}};et.styles=Ou,et.dependencies={"sl-button-group":_o},f([V("slot:not([name])")],et.prototype,"defaultSlot",2),f([V(".radio-group__validation-input")],et.prototype,"validationInput",2),f([rt()],et.prototype,"hasButtonGroup",2),f([rt()],et.prototype,"errorMessage",2),f([rt()],et.prototype,"defaultValue",2),f([g()],et.prototype,"label",2),f([g({attribute:"help-text"})],et.prototype,"helpText",2),f([g()],et.prototype,"name",2),f([g({reflect:!0})],et.prototype,"value",2),f([g({reflect:!0})],et.prototype,"size",2),f([g({reflect:!0})],et.prototype,"form",2),f([g({type:Boolean,reflect:!0})],et.prototype,"required",2),f([H("size",{waitUntilFirstUpdate:!0})],et.prototype,"handleSizeChange",1),f([H("value")],et.prototype,"handleValueChange",1),et.define("sl-radio-group");var Vu=z`
2750
- ${ki}
2749
+ `}};te.styles=Nd,te.dependencies={"sl-button-group":_o},b([V("slot:not([name])")],te.prototype,"defaultSlot",2),b([V(".radio-group__validation-input")],te.prototype,"validationInput",2),b([re()],te.prototype,"hasButtonGroup",2),b([re()],te.prototype,"errorMessage",2),b([re()],te.prototype,"defaultValue",2),b([p()],te.prototype,"label",2),b([p({attribute:"help-text"})],te.prototype,"helpText",2),b([p()],te.prototype,"name",2),b([p({reflect:!0})],te.prototype,"value",2),b([p({reflect:!0})],te.prototype,"size",2),b([p({reflect:!0})],te.prototype,"form",2),b([p({type:Boolean,reflect:!0})],te.prototype,"required",2),b([H("size",{waitUntilFirstUpdate:!0})],te.prototype,"handleSizeChange",1),b([H("value")],te.prototype,"handleValueChange",1),te.define("sl-radio-group");var Hd=z`
2750
+ ${kn}
2751
2751
 
2752
2752
  .button__prefix,
2753
2753
  .button__suffix,
@@ -2770,7 +2770,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2770
2770
  opacity: 0;
2771
2771
  z-index: -1;
2772
2772
  }
2773
- `,At=class extends j{constructor(){super(...arguments),this.hasSlotController=new _e(this,"[default]","prefix","suffix"),this.hasFocus=!1,this.checked=!1,this.disabled=!1,this.size="medium",this.pill=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleClick(e){if(this.disabled){e.preventDefault(),e.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){return vo`
2773
+ `,Ae=class extends j{constructor(){super(...arguments),this.hasSlotController=new xt(this,"[default]","prefix","suffix"),this.hasFocus=!1,this.checked=!1,this.disabled=!1,this.size="medium",this.pill=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleClick(t){if(this.disabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){return vo`
2774
2774
  <div part="base" role="presentation">
2775
2775
  <button
2776
2776
  part="${`button${this.checked?" button--checked":""}`}"
@@ -2790,7 +2790,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2790
2790
  <slot name="suffix" part="suffix" class="button__suffix"></slot>
2791
2791
  </button>
2792
2792
  </div>
2793
- `}};At.styles=Vu,f([V(".button")],At.prototype,"input",2),f([V(".hidden-input")],At.prototype,"hiddenInput",2),f([rt()],At.prototype,"hasFocus",2),f([g({type:Boolean,reflect:!0})],At.prototype,"checked",2),f([g()],At.prototype,"value",2),f([g({type:Boolean,reflect:!0})],At.prototype,"disabled",2),f([g({reflect:!0})],At.prototype,"size",2),f([g({type:Boolean,reflect:!0})],At.prototype,"pill",2),f([H("disabled",{waitUntilFirstUpdate:!0})],At.prototype,"handleDisabledChange",1),At.define("sl-radio-button");var Hu=z`
2793
+ `}};Ae.styles=Hd,b([V(".button")],Ae.prototype,"input",2),b([V(".hidden-input")],Ae.prototype,"hiddenInput",2),b([re()],Ae.prototype,"hasFocus",2),b([p({type:Boolean,reflect:!0})],Ae.prototype,"checked",2),b([p()],Ae.prototype,"value",2),b([p({type:Boolean,reflect:!0})],Ae.prototype,"disabled",2),b([p({reflect:!0})],Ae.prototype,"size",2),b([p({type:Boolean,reflect:!0})],Ae.prototype,"pill",2),b([H("disabled",{waitUntilFirstUpdate:!0})],Ae.prototype,"handleDisabledChange",1),Ae.define("sl-radio-button");var Ud=z`
2794
2794
  ${Q}
2795
2795
 
2796
2796
  :host {
@@ -2956,7 +2956,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2956
2956
  background-color: ButtonText;
2957
2957
  }
2958
2958
  }
2959
- `,it=class extends j{constructor(){super(...arguments),this.formControlController=new go(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(e){e.key==="ArrowLeft"&&(e.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),e.key==="ArrowRight"&&(e.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){return A`
2959
+ `,ne=class extends j{constructor(){super(...arguments),this.formControlController=new po(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(t){t.key==="ArrowLeft"&&(t.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),t.key==="ArrowRight"&&(t.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return A`
2960
2960
  <label
2961
2961
  part="base"
2962
2962
  class=${K({switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled,"switch--focused":this.hasFocus,"switch--small":this.size==="small","switch--medium":this.size==="medium","switch--large":this.size==="large"})}
@@ -2988,7 +2988,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
2988
2988
  <slot></slot>
2989
2989
  </div>
2990
2990
  </label>
2991
- `}};it.styles=Hu,f([V('input[type="checkbox"]')],it.prototype,"input",2),f([rt()],it.prototype,"hasFocus",2),f([g()],it.prototype,"title",2),f([g()],it.prototype,"name",2),f([g()],it.prototype,"value",2),f([g({reflect:!0})],it.prototype,"size",2),f([g({type:Boolean,reflect:!0})],it.prototype,"disabled",2),f([g({type:Boolean,reflect:!0})],it.prototype,"checked",2),f([vs("checked")],it.prototype,"defaultChecked",2),f([g({reflect:!0})],it.prototype,"form",2),f([g({type:Boolean,reflect:!0})],it.prototype,"required",2),f([H("checked",{waitUntilFirstUpdate:!0})],it.prototype,"handleCheckedChange",1),f([H("disabled",{waitUntilFirstUpdate:!0})],it.prototype,"handleDisabledChange",1),it.define("sl-switch");var Uu=z`
2991
+ `}};ne.styles=Ud,b([V('input[type="checkbox"]')],ne.prototype,"input",2),b([re()],ne.prototype,"hasFocus",2),b([p()],ne.prototype,"title",2),b([p()],ne.prototype,"name",2),b([p()],ne.prototype,"value",2),b([p({reflect:!0})],ne.prototype,"size",2),b([p({type:Boolean,reflect:!0})],ne.prototype,"disabled",2),b([p({type:Boolean,reflect:!0})],ne.prototype,"checked",2),b([vs("checked")],ne.prototype,"defaultChecked",2),b([p({reflect:!0})],ne.prototype,"form",2),b([p({type:Boolean,reflect:!0})],ne.prototype,"required",2),b([H("checked",{waitUntilFirstUpdate:!0})],ne.prototype,"handleCheckedChange",1),b([H("disabled",{waitUntilFirstUpdate:!0})],ne.prototype,"handleDisabledChange",1),ne.define("sl-switch");var jd=z`
2992
2992
  ${Q}
2993
2993
 
2994
2994
  :host {
@@ -3041,7 +3041,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3041
3041
  user-select: none;
3042
3042
  -webkit-user-select: none;
3043
3043
  }
3044
- `,ju=z`
3044
+ `,Gd=z`
3045
3045
  ${Q}
3046
3046
 
3047
3047
  :host {
@@ -3081,7 +3081,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3081
3081
  background: var(--arrow-color);
3082
3082
  z-index: -1;
3083
3083
  }
3084
- `;const ee=Math.min,pt=Math.max,Jo=Math.round,Qo=Math.floor,oe=e=>({x:e,y:e}),Gu={left:"right",right:"left",bottom:"top",top:"bottom"},Zu={start:"end",end:"start"};function _s(e,t,o){return pt(e,ee(t,o))}function Pe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function Me(e){return e.split("-")[1]}function Bi(e){return e==="x"?"y":"x"}function xs(e){return e==="y"?"height":"width"}function ko(e){return["top","bottom"].includes(re(e))?"y":"x"}function ks(e){return Bi(ko(e))}function Wu(e,t,o){o===void 0&&(o=!1);const r=Me(e),s=ks(e),n=xs(s);let i=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=Xo(i)),[i,Xo(i)]}function Ku(e){const t=Xo(e);return[As(e),t,As(t)]}function As(e){return e.replace(/start|end/g,t=>Zu[t])}function Yu(e,t,o){const r=["left","right"],s=["right","left"],n=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return o?t?s:r:t?r:s;case"left":case"right":return t?n:i;default:return[]}}function Ju(e,t,o,r){const s=Me(e);let n=Yu(re(e),o==="start",r);return s&&(n=n.map(i=>i+"-"+s),t&&(n=n.concat(n.map(As)))),n}function Xo(e){return e.replace(/left|right|bottom|top/g,t=>Gu[t])}function Qu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oi(e){return typeof e!="number"?Qu(e):{top:e,right:e,bottom:e,left:e}}function tr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ni(e,t,o){let{reference:r,floating:s}=e;const n=ko(t),i=ks(t),a=xs(i),l=re(t),c=n==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,p=r[a]/2-s[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-s.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-s.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Me(t)){case"start":h[i]-=p*(o&&c?-1:1);break;case"end":h[i]+=p*(o&&c?-1:1);break}return h}const Xu=async(e,t,o)=>{const{placement:r="bottom",strategy:s="absolute",middleware:n=[],platform:i}=o,a=n.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Ni(c,r,l),p=r,h={},b=0;for(let m=0;m<a.length;m++){const{name:w,fn:y}=a[m],{x:v,y:k,data:C,reset:$}=await y({x:u,y:d,initialPlacement:r,placement:p,strategy:s,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});if(u=v??u,d=k??d,h={...h,[w]:{...h[w],...C}},$&&b<=50){b++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(c=$.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):$.rects),{x:u,y:d}=Ni(c,p,l)),m=-1;continue}}return{x:u,y:d,placement:p,strategy:s,middlewareData:h}};async function Cs(e,t){var o;t===void 0&&(t={});const{x:r,y:s,platform:n,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Pe(t,e),b=Oi(h),w=a[p?d==="floating"?"reference":"floating":d],y=tr(await n.getClippingRect({element:(o=await(n.isElement==null?void 0:n.isElement(w)))==null||o?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{...i.floating,x:r,y:s}:i.reference,k=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),C=await(n.isElement==null?void 0:n.isElement(k))?await(n.getScale==null?void 0:n.getScale(k))||{x:1,y:1}:{x:1,y:1},$=tr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-$.top+b.top)/C.y,bottom:($.bottom-y.bottom+b.bottom)/C.y,left:(y.left-$.left+b.left)/C.x,right:($.right-y.right+b.right)/C.x}}const td=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:s,rects:n,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Pe(e,t)||{};if(c==null)return{};const d=Oi(u),p={x:o,y:r},h=ks(s),b=xs(h),m=await i.getDimensions(c),w=h==="y",y=w?"top":"left",v=w?"bottom":"right",k=w?"clientHeight":"clientWidth",C=n.reference[b]+n.reference[h]-p[h]-n.floating[b],$=p[h]-n.reference[h],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let D=_?_[k]:0;(!D||!await(i.isElement==null?void 0:i.isElement(_)))&&(D=a.floating[k]||n.floating[b]);const P=C/2-$/2,S=D/2-m[b]/2-1,q=ee(d[y],S),I=ee(d[v],S),W=q,yt=D-m[b]-I,x=D/2-m[b]/2+P,F=_s(W,x,yt),T=!l.arrow&&Me(s)!=null&&x!=F&&n.reference[b]/2-(x<W?q:I)-m[b]/2<0,X=T?x<W?x-W:x-yt:0;return{[h]:p[h]+X,data:{[h]:F,centerOffset:x-F-X,...T&&{alignmentOffset:X}},reset:T}}}),ed=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:s,middlewareData:n,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...w}=Pe(e,t);if((o=n.arrow)!=null&&o.alignmentOffset)return{};const y=re(s),v=re(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=p||(v||!m?[Xo(a)]:Ku(a));!p&&b!=="none"&&C.push(...Ju(a,m,b,k));const $=[a,...C],_=await Cs(t,w),D=[];let P=((r=n.flip)==null?void 0:r.overflows)||[];if(u&&D.push(_[y]),d){const W=Wu(s,i,k);D.push(_[W[0]],_[W[1]])}if(P=[...P,{placement:s,overflows:D}],!D.every(W=>W<=0)){var S,q;const W=(((S=n.flip)==null?void 0:S.index)||0)+1,yt=$[W];if(yt)return{data:{index:W,overflows:P},reset:{placement:yt}};let x=(q=P.filter(F=>F.overflows[0]<=0).sort((F,T)=>F.overflows[1]-T.overflows[1])[0])==null?void 0:q.placement;if(!x)switch(h){case"bestFit":{var I;const F=(I=P.map(T=>[T.placement,T.overflows.filter(X=>X>0).reduce((X,zr)=>X+zr,0)]).sort((T,X)=>T[1]-X[1])[0])==null?void 0:I[0];F&&(x=F);break}case"initialPlacement":x=a;break}if(s!==x)return{reset:{placement:x}}}return{}}}};async function od(e,t){const{placement:o,platform:r,elements:s}=e,n=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=re(o),a=Me(o),l=ko(o)==="y",c=["left","top"].includes(i)?-1:1,u=n&&l?-1:1,d=Pe(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}const rd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:o,y:r}=t,s=await od(t,e);return{x:o+s.x,y:r+s.y,data:s}}}},sd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:s}=t,{mainAxis:n=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...l}=Pe(e,t),c={x:o,y:r},u=await Cs(t,l),d=ko(re(s)),p=Bi(d);let h=c[p],b=c[d];if(n){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=h+u[w],k=h-u[y];h=_s(v,h,k)}if(i){const w=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=b+u[w],k=b-u[y];b=_s(v,b,k)}const m=a.fn({...t,[p]:h,[d]:b});return{...m,data:{x:m.x-o,y:m.y-r}}}}},Vi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:r,platform:s,elements:n}=t,{apply:i=()=>{},...a}=Pe(e,t),l=await Cs(t,a),c=re(o),u=Me(o),d=ko(o)==="y",{width:p,height:h}=r.floating;let b,m;c==="top"||c==="bottom"?(b=c,m=u===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(m=c,b=u==="end"?"top":"bottom");const w=h-l[b],y=p-l[m],v=!t.middlewareData.shift;let k=w,C=y;if(d){const _=p-l.left-l.right;C=u||v?ee(y,_):_}else{const _=h-l.top-l.bottom;k=u||v?ee(w,_):_}if(v&&!u){const _=pt(l.left,0),D=pt(l.right,0),P=pt(l.top,0),S=pt(l.bottom,0);d?C=p-2*(_!==0||D!==0?_+D:pt(l.left,l.right)):k=h-2*(P!==0||S!==0?P+S:pt(l.top,l.bottom))}await i({...t,availableWidth:C,availableHeight:k});const $=await s.getDimensions(n.floating);return p!==$.width||h!==$.height?{reset:{rects:!0}}:{}}}};function se(e){return Hi(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(e){var t;return(t=(Hi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hi(e){return e instanceof Node||e instanceof ft(e).Node}function Ut(e){return e instanceof Element||e instanceof ft(e).Element}function Lt(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Ui(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Ao(e){const{overflow:t,overflowX:o,overflowY:r,display:s}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(s)}function nd(e){return["table","td","th"].includes(se(e))}function $s(e){const t=Es(),o=mt(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function id(e){let t=Ie(e);for(;Lt(t)&&!er(t);){if($s(t))return t;t=Ie(t)}return null}function Es(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(e){return["html","body","#document"].includes(se(e))}function mt(e){return ft(e).getComputedStyle(e)}function or(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ie(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ui(e)&&e.host||Ht(e);return Ui(t)?t.host:t}function ji(e){const t=Ie(e);return er(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lt(t)&&Ao(t)?t:ji(t)}function Co(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);const s=ji(e),n=s===((r=e.ownerDocument)==null?void 0:r.body),i=ft(s);return n?t.concat(i,i.visualViewport||[],Ao(s)?s:[],i.frameElement&&o?Co(i.frameElement):[]):t.concat(s,Co(s))}function Gi(e){const t=mt(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Lt(e),n=s?e.offsetWidth:o,i=s?e.offsetHeight:r,a=Jo(o)!==n||Jo(r)!==i;return a&&(o=n,r=i),{width:o,height:r,$:a}}function Ss(e){return Ut(e)?e:e.contextElement}function Fe(e){const t=Ss(e);if(!Lt(t))return oe(1);const o=t.getBoundingClientRect(),{width:r,height:s,$:n}=Gi(t);let i=(n?Jo(o.width):o.width)/r,a=(n?Jo(o.height):o.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ad=oe(0);function Zi(e){const t=ft(e);return!Es()||!t.visualViewport?ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ld(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ft(e)?!1:t}function ke(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const s=e.getBoundingClientRect(),n=Ss(e);let i=oe(1);t&&(r?Ut(r)&&(i=Fe(r)):i=Fe(e));const a=ld(n,o,r)?Zi(n):oe(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,u=s.width/i.x,d=s.height/i.y;if(n){const p=ft(n),h=r&&Ut(r)?ft(r):r;let b=p.frameElement;for(;b&&r&&h!==p;){const m=Fe(b),w=b.getBoundingClientRect(),y=mt(b),v=w.left+(b.clientLeft+parseFloat(y.paddingLeft))*m.x,k=w.top+(b.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=v,c+=k,b=ft(b).frameElement}}return tr({width:u,height:d,x:l,y:c})}function cd(e){let{rect:t,offsetParent:o,strategy:r}=e;const s=Lt(o),n=Ht(o);if(o===n)return t;let i={scrollLeft:0,scrollTop:0},a=oe(1);const l=oe(0);if((s||!s&&r!=="fixed")&&((se(o)!=="body"||Ao(n))&&(i=or(o)),Lt(o))){const c=ke(o);a=Fe(o),l.x=c.x+o.clientLeft,l.y=c.y+o.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}}function ud(e){return Array.from(e.getClientRects())}function Wi(e){return ke(Ht(e)).left+or(e).scrollLeft}function dd(e){const t=Ht(e),o=or(e),r=e.ownerDocument.body,s=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-o.scrollLeft+Wi(e);const a=-o.scrollTop;return mt(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-s),{width:s,height:n,x:i,y:a}}function hd(e,t){const o=ft(e),r=Ht(e),s=o.visualViewport;let n=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){n=s.width,i=s.height;const c=Es();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:n,height:i,x:a,y:l}}function pd(e,t){const o=ke(e,!0,t==="fixed"),r=o.top+e.clientTop,s=o.left+e.clientLeft,n=Lt(e)?Fe(e):oe(1),i=e.clientWidth*n.x,a=e.clientHeight*n.y,l=s*n.x,c=r*n.y;return{width:i,height:a,x:l,y:c}}function Ki(e,t,o){let r;if(t==="viewport")r=hd(e,o);else if(t==="document")r=dd(Ht(e));else if(Ut(t))r=pd(t,o);else{const s=Zi(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return tr(r)}function Yi(e,t){const o=Ie(e);return o===t||!Ut(o)||er(o)?!1:mt(o).position==="fixed"||Yi(o,t)}function fd(e,t){const o=t.get(e);if(o)return o;let r=Co(e,[],!1).filter(a=>Ut(a)&&se(a)!=="body"),s=null;const n=mt(e).position==="fixed";let i=n?Ie(e):e;for(;Ut(i)&&!er(i);){const a=mt(i),l=$s(i);!l&&a.position==="fixed"&&(s=null),(n?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ao(i)&&!l&&Yi(e,i))?r=r.filter(u=>u!==i):s=a,i=Ie(i)}return t.set(e,r),r}function gd(e){let{element:t,boundary:o,rootBoundary:r,strategy:s}=e;const i=[...o==="clippingAncestors"?fd(t,this._c):[].concat(o),r],a=i[0],l=i.reduce((c,u)=>{const d=Ki(t,u,s);return c.top=pt(d.top,c.top),c.right=ee(d.right,c.right),c.bottom=ee(d.bottom,c.bottom),c.left=pt(d.left,c.left),c},Ki(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bd(e){return Gi(e)}function md(e,t,o){const r=Lt(t),s=Ht(t),n=o==="fixed",i=ke(e,!0,n,t);let a={scrollLeft:0,scrollTop:0};const l=oe(0);if(r||!r&&!n)if((se(t)!=="body"||Ao(s))&&(a=or(t)),r){const c=ke(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else s&&(l.x=Wi(s));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Ji(e,t){return!Lt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qi(e,t){const o=ft(e);if(!Lt(e))return o;let r=Ji(e,t);for(;r&&nd(r)&&mt(r).position==="static";)r=Ji(r,t);return r&&(se(r)==="html"||se(r)==="body"&&mt(r).position==="static"&&!$s(r))?o:r||id(e)||o}const vd=async function(e){let{reference:t,floating:o,strategy:r}=e;const s=this.getOffsetParent||Qi,n=this.getDimensions;return{reference:md(t,await s(o),r),floating:{x:0,y:0,...await n(o)}}};function yd(e){return mt(e).direction==="rtl"}const rr={convertOffsetParentRelativeRectToViewportRelativeRect:cd,getDocumentElement:Ht,getClippingRect:gd,getOffsetParent:Qi,getElementRects:vd,getClientRects:ud,getDimensions:bd,getScale:Fe,isElement:Ut,isRTL:yd};function wd(e,t){let o=null,r;const s=Ht(e);function n(){clearTimeout(r),o&&o.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h=Qo(u),b=Qo(s.clientWidth-(c+d)),m=Qo(s.clientHeight-(u+p)),w=Qo(c),v={rootMargin:-h+"px "+-b+"px "+-m+"px "+-w+"px",threshold:pt(0,ee(1,l))||1};let k=!0;function C($){const _=$[0].intersectionRatio;if(_!==l){if(!k)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},100)}k=!1}try{o=new IntersectionObserver(C,{...v,root:s.ownerDocument})}catch{o=new IntersectionObserver(C,v)}o.observe(e)}return i(!0),n}function _d(e,t,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:n=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ss(e),u=s||n?[...c?Co(c):[],...Co(t)]:[];u.forEach(y=>{s&&y.addEventListener("scroll",o,{passive:!0}),n&&y.addEventListener("resize",o)});const d=c&&a?wd(c,o):null;let p=-1,h=null;i&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),o()}),c&&!l&&h.observe(c),h.observe(t));let b,m=l?ke(e):null;l&&w();function w(){const y=ke(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&o(),m=y,b=requestAnimationFrame(w)}return o(),()=>{u.forEach(y=>{s&&y.removeEventListener("scroll",o),n&&y.removeEventListener("resize",o)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const xd=(e,t,o)=>{const r=new Map,s={platform:rr,...o},n={...s.platform,_c:r};return Xu(e,t,{...s,platform:n})};function kd(e){return Ad(e)}function qs(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Ad(e){for(let t=e;t;t=qs(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=qs(e);t;t=qs(t)){if(!(t instanceof Element))continue;const o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}function Cd(e){return e!==null&&typeof e=="object"&&"getBoundingClientRect"in e}var U=class extends j{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(e){super.updated(e),e.has("active")&&(this.active?this.start():this.stop()),e.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const e=this.getRootNode();this.anchorEl=e.getElementById(this.anchor)}else this.anchor instanceof Element||Cd(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=_d(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(e=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>e())):e()})}reposition(){if(!this.active||!this.anchorEl)return;const e=[rd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?e.push(Vi({apply:({rects:o})=>{const r=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${o.reference.width}px`:"",this.popup.style.height=s?`${o.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&e.push(ed({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&e.push(sd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?e.push(Vi({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:o,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${o}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&e.push(td({element:this.arrowEl,padding:this.arrowPadding}));const t=this.strategy==="absolute"?o=>rr.getOffsetParent(o,kd):rr.getOffsetParent;xd(this.anchorEl,this.popup,{placement:this.placement,middleware:e,strategy:this.strategy,platform:Go(Qt({},rr),{getOffsetParent:t})}).then(({x:o,y:r,middlewareData:s,placement:n})=>{const i=getComputedStyle(this).direction==="rtl",a={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${o}px`,top:`${r}px`}),this.arrow){const l=s.arrow.x,c=s.arrow.y;let u="",d="",p="",h="";if(this.arrowPlacement==="start"){const b=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",d=i?b:"",h=i?"":b}else if(this.arrowPlacement==="end"){const b=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=i?"":b,h=i?b:"",p=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(h=typeof l=="number"?"calc(50% - var(--arrow-size-diagonal))":"",u=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(h=typeof l=="number"?`${l}px`:"",u=typeof c=="number"?`${c}px`:"");Object.assign(this.arrowEl.style,{top:u,right:d,bottom:p,left:h,[a]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return A`
3084
+ `;const tt=Math.min,he=Math.max,Qo=Math.round,Xo=Math.floor,ot=t=>({x:t,y:t}),Zd={left:"right",right:"left",bottom:"top",top:"bottom"},Wd={start:"end",end:"start"};function _s(t,e,o){return he(t,tt(e,o))}function Pt(t,e){return typeof t=="function"?t(e):t}function rt(t){return t.split("-")[0]}function Mt(t){return t.split("-")[1]}function Bn(t){return t==="x"?"y":"x"}function xs(t){return t==="y"?"height":"width"}function ko(t){return["top","bottom"].includes(rt(t))?"y":"x"}function ks(t){return Bn(ko(t))}function Kd(t,e,o){o===void 0&&(o=!1);const r=Mt(t),s=ks(t),a=xs(s);let n=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(n=er(n)),[n,er(n)]}function Yd(t){const e=er(t);return[As(t),e,As(e)]}function As(t){return t.replace(/start|end/g,e=>Wd[e])}function Jd(t,e,o){const r=["left","right"],s=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return o?e?s:r:e?r:s;case"left":case"right":return e?a:n;default:return[]}}function Qd(t,e,o,r){const s=Mt(t);let a=Jd(rt(t),o==="start",r);return s&&(a=a.map(n=>n+"-"+s),e&&(a=a.concat(a.map(As)))),a}function er(t){return t.replace(/left|right|bottom|top/g,e=>Zd[e])}function Xd(t){return{top:0,right:0,bottom:0,left:0,...t}}function On(t){return typeof t!="number"?Xd(t):{top:t,right:t,bottom:t,left:t}}function tr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Nn(t,e,o){let{reference:r,floating:s}=t;const a=ko(e),n=ks(e),c=xs(n),i=rt(e),l=a==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[c]/2-s[c]/2;let u;switch(i){case"top":u={x:d,y:r.y-s.height};break;case"bottom":u={x:d,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:f};break;case"left":u={x:r.x-s.width,y:f};break;default:u={x:r.x,y:r.y}}switch(Mt(e)){case"start":u[n]-=h*(o&&l?-1:1);break;case"end":u[n]+=h*(o&&l?-1:1);break}return u}const ef=async(t,e,o)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:n}=o,c=a.filter(Boolean),i=await(n.isRTL==null?void 0:n.isRTL(e));let l=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:f}=Nn(l,r,i),h=r,u={},g=0;for(let m=0;m<c.length;m++){const{name:w,fn:y}=c[m],{x:v,y:k,data:C,reset:$}=await y({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:u,rects:l,platform:n,elements:{reference:t,floating:e}});if(d=v??d,f=k??f,u={...u,[w]:{...u[w],...C}},$&&g<=50){g++,typeof $=="object"&&($.placement&&(h=$.placement),$.rects&&(l=$.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):$.rects),{x:d,y:f}=Nn(l,h,i)),m=-1;continue}}return{x:d,y:f,placement:h,strategy:s,middlewareData:u}};async function Cs(t,e){var o;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:n,elements:c,strategy:i}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:u=0}=Pt(e,t),g=On(u),w=c[h?f==="floating"?"reference":"floating":f],y=tr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(w)))==null||o?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:i})),v=f==="floating"?{...n.floating,x:r,y:s}:n.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},$=tr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:k,strategy:i}):v);return{top:(y.top-$.top+g.top)/C.y,bottom:($.bottom-y.bottom+g.bottom)/C.y,left:(y.left-$.left+g.left)/C.x,right:($.right-y.right+g.right)/C.x}}const tf=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:r,placement:s,rects:a,platform:n,elements:c,middlewareData:i}=e,{element:l,padding:d=0}=Pt(t,e)||{};if(l==null)return{};const f=On(d),h={x:o,y:r},u=ks(s),g=xs(u),m=await n.getDimensions(l),w=u==="y",y=w?"top":"left",v=w?"bottom":"right",k=w?"clientHeight":"clientWidth",C=a.reference[g]+a.reference[u]-h[u]-a.floating[g],$=h[u]-a.reference[u],_=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l));let D=_?_[k]:0;(!D||!await(n.isElement==null?void 0:n.isElement(_)))&&(D=c.floating[k]||a.floating[g]);const P=C/2-$/2,S=D/2-m[g]/2-1,q=tt(f[y],S),I=tt(f[v],S),W=q,ye=D-m[g]-I,x=D/2-m[g]/2+P,F=_s(W,x,ye),T=!i.arrow&&Mt(s)!=null&&x!=F&&a.reference[g]/2-(x<W?q:I)-m[g]/2<0,X=T?x<W?x-W:x-ye:0;return{[u]:h[u]+X,data:{[u]:F,centerOffset:x-F-X,...T&&{alignmentOffset:X}},reset:T}}}),of=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,r;const{placement:s,middlewareData:a,rects:n,initialPlacement:c,platform:i,elements:l}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...w}=Pt(t,e);if((o=a.arrow)!=null&&o.alignmentOffset)return{};const y=rt(s),v=rt(c)===c,k=await(i.isRTL==null?void 0:i.isRTL(l.floating)),C=h||(v||!m?[er(c)]:Yd(c));!h&&g!=="none"&&C.push(...Qd(c,m,g,k));const $=[c,...C],_=await Cs(e,w),D=[];let P=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&D.push(_[y]),f){const W=Kd(s,n,k);D.push(_[W[0]],_[W[1]])}if(P=[...P,{placement:s,overflows:D}],!D.every(W=>W<=0)){var S,q;const W=(((S=a.flip)==null?void 0:S.index)||0)+1,ye=$[W];if(ye)return{data:{index:W,overflows:P},reset:{placement:ye}};let x=(q=P.filter(F=>F.overflows[0]<=0).sort((F,T)=>F.overflows[1]-T.overflows[1])[0])==null?void 0:q.placement;if(!x)switch(u){case"bestFit":{var I;const F=(I=P.map(T=>[T.placement,T.overflows.filter(X=>X>0).reduce((X,Rr)=>X+Rr,0)]).sort((T,X)=>T[1]-X[1])[0])==null?void 0:I[0];F&&(x=F);break}case"initialPlacement":x=c;break}if(s!==x)return{reset:{placement:x}}}return{}}}};async function rf(t,e){const{placement:o,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),n=rt(o),c=Mt(o),i=ko(o)==="y",l=["left","top"].includes(n)?-1:1,d=a&&i?-1:1,f=Pt(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof g=="number"&&(u=c==="end"?g*-1:g),i?{x:u*d,y:h*l}:{x:h*l,y:u*d}}const sf=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:r}=e,s=await rf(e,t);return{x:o+s.x,y:r+s.y,data:s}}}},af=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:n=!1,limiter:c={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...i}=Pt(t,e),l={x:o,y:r},d=await Cs(e,i),f=ko(rt(s)),h=Bn(f);let u=l[h],g=l[f];if(a){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=u+d[w],k=u-d[y];u=_s(v,u,k)}if(n){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=g+d[w],k=g-d[y];g=_s(v,g,k)}const m=c.fn({...e,[h]:u,[f]:g});return{...m,data:{x:m.x-o,y:m.y-r}}}}},Vn=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:r,platform:s,elements:a}=e,{apply:n=()=>{},...c}=Pt(t,e),i=await Cs(e,c),l=rt(o),d=Mt(o),f=ko(o)==="y",{width:h,height:u}=r.floating;let g,m;l==="top"||l==="bottom"?(g=l,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=l,g=d==="end"?"top":"bottom");const w=u-i[g],y=h-i[m],v=!e.middlewareData.shift;let k=w,C=y;if(f){const _=h-i.left-i.right;C=d||v?tt(y,_):_}else{const _=u-i.top-i.bottom;k=d||v?tt(w,_):_}if(v&&!d){const _=he(i.left,0),D=he(i.right,0),P=he(i.top,0),S=he(i.bottom,0);f?C=h-2*(_!==0||D!==0?_+D:he(i.left,i.right)):k=u-2*(P!==0||S!==0?P+S:he(i.top,i.bottom))}await n({...e,availableWidth:C,availableHeight:k});const $=await s.getDimensions(a.floating);return h!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}};function st(t){return Hn(t)?(t.nodeName||"").toLowerCase():"#document"}function be(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function He(t){var e;return(e=(Hn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hn(t){return t instanceof Node||t instanceof be(t).Node}function Ue(t){return t instanceof Element||t instanceof be(t).Element}function Le(t){return t instanceof HTMLElement||t instanceof be(t).HTMLElement}function Un(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof be(t).ShadowRoot}function Ao(t){const{overflow:e,overflowX:o,overflowY:r,display:s}=me(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(s)}function nf(t){return["table","td","th"].includes(st(t))}function $s(t){const e=Es(),o=me(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function cf(t){let e=It(t);for(;Le(e)&&!or(e);){if($s(e))return e;e=It(e)}return null}function Es(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function or(t){return["html","body","#document"].includes(st(t))}function me(t){return be(t).getComputedStyle(t)}function rr(t){return Ue(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function It(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Un(t)&&t.host||He(t);return Un(e)?e.host:e}function jn(t){const e=It(t);return or(e)?t.ownerDocument?t.ownerDocument.body:t.body:Le(e)&&Ao(e)?e:jn(e)}function Co(t,e,o){var r;e===void 0&&(e=[]),o===void 0&&(o=!0);const s=jn(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),n=be(s);return a?e.concat(n,n.visualViewport||[],Ao(s)?s:[],n.frameElement&&o?Co(n.frameElement):[]):e.concat(s,Co(s))}function Gn(t){const e=me(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Le(t),a=s?t.offsetWidth:o,n=s?t.offsetHeight:r,c=Qo(o)!==a||Qo(r)!==n;return c&&(o=a,r=n),{width:o,height:r,$:c}}function Ss(t){return Ue(t)?t:t.contextElement}function Ft(t){const e=Ss(t);if(!Le(e))return ot(1);const o=e.getBoundingClientRect(),{width:r,height:s,$:a}=Gn(e);let n=(a?Qo(o.width):o.width)/r,c=(a?Qo(o.height):o.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!c||!Number.isFinite(c))&&(c=1),{x:n,y:c}}const lf=ot(0);function Zn(t){const e=be(t);return!Es()||!e.visualViewport?lf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function df(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==be(t)?!1:e}function At(t,e,o,r){e===void 0&&(e=!1),o===void 0&&(o=!1);const s=t.getBoundingClientRect(),a=Ss(t);let n=ot(1);e&&(r?Ue(r)&&(n=Ft(r)):n=Ft(t));const c=df(a,o,r)?Zn(a):ot(0);let i=(s.left+c.x)/n.x,l=(s.top+c.y)/n.y,d=s.width/n.x,f=s.height/n.y;if(a){const h=be(a),u=r&&Ue(r)?be(r):r;let g=h.frameElement;for(;g&&r&&u!==h;){const m=Ft(g),w=g.getBoundingClientRect(),y=me(g),v=w.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,k=w.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;i*=m.x,l*=m.y,d*=m.x,f*=m.y,i+=v,l+=k,g=be(g).frameElement}}return tr({width:d,height:f,x:i,y:l})}function ff(t){let{rect:e,offsetParent:o,strategy:r}=t;const s=Le(o),a=He(o);if(o===a)return e;let n={scrollLeft:0,scrollTop:0},c=ot(1);const i=ot(0);if((s||!s&&r!=="fixed")&&((st(o)!=="body"||Ao(a))&&(n=rr(o)),Le(o))){const l=At(o);c=Ft(o),i.x=l.x+o.clientLeft,i.y=l.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-n.scrollLeft*c.x+i.x,y:e.y*c.y-n.scrollTop*c.y+i.y}}function uf(t){return Array.from(t.getClientRects())}function Wn(t){return At(He(t)).left+rr(t).scrollLeft}function hf(t){const e=He(t),o=rr(t),r=t.ownerDocument.body,s=he(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=he(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let n=-o.scrollLeft+Wn(t);const c=-o.scrollTop;return me(r).direction==="rtl"&&(n+=he(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:n,y:c}}function bf(t,e){const o=be(t),r=He(t),s=o.visualViewport;let a=r.clientWidth,n=r.clientHeight,c=0,i=0;if(s){a=s.width,n=s.height;const l=Es();(!l||l&&e==="fixed")&&(c=s.offsetLeft,i=s.offsetTop)}return{width:a,height:n,x:c,y:i}}function pf(t,e){const o=At(t,!0,e==="fixed"),r=o.top+t.clientTop,s=o.left+t.clientLeft,a=Le(t)?Ft(t):ot(1),n=t.clientWidth*a.x,c=t.clientHeight*a.y,i=s*a.x,l=r*a.y;return{width:n,height:c,x:i,y:l}}function Kn(t,e,o){let r;if(e==="viewport")r=bf(t,o);else if(e==="document")r=hf(He(t));else if(Ue(e))r=pf(e,o);else{const s=Zn(t);r={...e,x:e.x-s.x,y:e.y-s.y}}return tr(r)}function Yn(t,e){const o=It(t);return o===e||!Ue(o)||or(o)?!1:me(o).position==="fixed"||Yn(o,e)}function gf(t,e){const o=e.get(t);if(o)return o;let r=Co(t,[],!1).filter(c=>Ue(c)&&st(c)!=="body"),s=null;const a=me(t).position==="fixed";let n=a?It(t):t;for(;Ue(n)&&!or(n);){const c=me(n),i=$s(n);!i&&c.position==="fixed"&&(s=null),(a?!i&&!s:!i&&c.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ao(n)&&!i&&Yn(t,n))?r=r.filter(d=>d!==n):s=c,n=It(n)}return e.set(t,r),r}function mf(t){let{element:e,boundary:o,rootBoundary:r,strategy:s}=t;const n=[...o==="clippingAncestors"?gf(e,this._c):[].concat(o),r],c=n[0],i=n.reduce((l,d)=>{const f=Kn(e,d,s);return l.top=he(f.top,l.top),l.right=tt(f.right,l.right),l.bottom=tt(f.bottom,l.bottom),l.left=he(f.left,l.left),l},Kn(e,c,s));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}}function vf(t){return Gn(t)}function yf(t,e,o){const r=Le(e),s=He(e),a=o==="fixed",n=At(t,!0,a,e);let c={scrollLeft:0,scrollTop:0};const i=ot(0);if(r||!r&&!a)if((st(e)!=="body"||Ao(s))&&(c=rr(e)),r){const l=At(e,!0,a,e);i.x=l.x+e.clientLeft,i.y=l.y+e.clientTop}else s&&(i.x=Wn(s));return{x:n.left+c.scrollLeft-i.x,y:n.top+c.scrollTop-i.y,width:n.width,height:n.height}}function Jn(t,e){return!Le(t)||me(t).position==="fixed"?null:e?e(t):t.offsetParent}function Qn(t,e){const o=be(t);if(!Le(t))return o;let r=Jn(t,e);for(;r&&nf(r)&&me(r).position==="static";)r=Jn(r,e);return r&&(st(r)==="html"||st(r)==="body"&&me(r).position==="static"&&!$s(r))?o:r||cf(t)||o}const wf=async function(t){let{reference:e,floating:o,strategy:r}=t;const s=this.getOffsetParent||Qn,a=this.getDimensions;return{reference:yf(e,await s(o),r),floating:{x:0,y:0,...await a(o)}}};function _f(t){return me(t).direction==="rtl"}const sr={convertOffsetParentRelativeRectToViewportRelativeRect:ff,getDocumentElement:He,getClippingRect:mf,getOffsetParent:Qn,getElementRects:wf,getClientRects:uf,getDimensions:vf,getScale:Ft,isElement:Ue,isRTL:_f};function xf(t,e){let o=null,r;const s=He(t);function a(){clearTimeout(r),o&&o.disconnect(),o=null}function n(c,i){c===void 0&&(c=!1),i===void 0&&(i=1),a();const{left:l,top:d,width:f,height:h}=t.getBoundingClientRect();if(c||e(),!f||!h)return;const u=Xo(d),g=Xo(s.clientWidth-(l+f)),m=Xo(s.clientHeight-(d+h)),w=Xo(l),v={rootMargin:-u+"px "+-g+"px "+-m+"px "+-w+"px",threshold:he(0,tt(1,i))||1};let k=!0;function C($){const _=$[0].intersectionRatio;if(_!==i){if(!k)return n();_?n(!1,_):r=setTimeout(()=>{n(!1,1e-7)},100)}k=!1}try{o=new IntersectionObserver(C,{...v,root:s.ownerDocument})}catch{o=new IntersectionObserver(C,v)}o.observe(t)}return n(!0),a}function kf(t,e,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:i=!1}=r,l=Ss(t),d=s||a?[...l?Co(l):[],...Co(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});const f=l&&c?xf(l,o):null;let h=-1,u=null;n&&(u=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{u&&u.observe(e)})),o()}),l&&!i&&u.observe(l),u.observe(e));let g,m=i?At(t):null;i&&w();function w(){const y=At(t);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&o(),m=y,g=requestAnimationFrame(w)}return o(),()=>{d.forEach(y=>{s&&y.removeEventListener("scroll",o),a&&y.removeEventListener("resize",o)}),f&&f(),u&&u.disconnect(),u=null,i&&cancelAnimationFrame(g)}}const Af=(t,e,o)=>{const r=new Map,s={platform:sr,...o},a={...s.platform,_c:r};return ef(t,e,{...s,platform:a})};function Cf(t){return $f(t)}function qs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function $f(t){for(let e=t;e;e=qs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=qs(t);e;e=qs(e)){if(!(e instanceof Element))continue;const o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}function Ef(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t}var U=class extends j{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||Ef(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=kf(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[sf({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Vn({apply:({rects:o})=>{const r=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${o.reference.width}px`:"",this.popup.style.height=s?`${o.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(of({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(af({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Vn({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:o,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${o}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(tf({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?o=>sr.getOffsetParent(o,Cf):sr.getOffsetParent;Af(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Zo(Qe({},sr),{getOffsetParent:e})}).then(({x:o,y:r,middlewareData:s,placement:a})=>{const n=getComputedStyle(this).direction==="rtl",c={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];if(this.setAttribute("data-current-placement",a),Object.assign(this.popup.style,{left:`${o}px`,top:`${r}px`}),this.arrow){const i=s.arrow.x,l=s.arrow.y;let d="",f="",h="",u="";if(this.arrowPlacement==="start"){const g=typeof i=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",f=n?g:"",u=n?"":g}else if(this.arrowPlacement==="end"){const g=typeof i=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";f=n?"":g,u=n?g:"",h=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(u=typeof i=="number"?"calc(50% - var(--arrow-size-diagonal))":"",d=typeof l=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(u=typeof i=="number"?`${i}px`:"",d=typeof l=="number"?`${l}px`:"");Object.assign(this.arrowEl.style,{top:d,right:f,bottom:h,left:u,[c]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sl-reposition")}render(){return A`
3085
3085
  <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
3086
3086
 
3087
3087
  <div
@@ -3091,7 +3091,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3091
3091
  <slot></slot>
3092
3092
  ${this.arrow?A`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
3093
3093
  </div>
3094
- `}};U.styles=ju,f([V(".popup")],U.prototype,"popup",2),f([V(".popup__arrow")],U.prototype,"arrowEl",2),f([g()],U.prototype,"anchor",2),f([g({type:Boolean,reflect:!0})],U.prototype,"active",2),f([g({reflect:!0})],U.prototype,"placement",2),f([g({reflect:!0})],U.prototype,"strategy",2),f([g({type:Number})],U.prototype,"distance",2),f([g({type:Number})],U.prototype,"skidding",2),f([g({type:Boolean})],U.prototype,"arrow",2),f([g({attribute:"arrow-placement"})],U.prototype,"arrowPlacement",2),f([g({attribute:"arrow-padding",type:Number})],U.prototype,"arrowPadding",2),f([g({type:Boolean})],U.prototype,"flip",2),f([g({attribute:"flip-fallback-placements",converter:{fromAttribute:e=>e.split(" ").map(t=>t.trim()).filter(t=>t!==""),toAttribute:e=>e.join(" ")}})],U.prototype,"flipFallbackPlacements",2),f([g({attribute:"flip-fallback-strategy"})],U.prototype,"flipFallbackStrategy",2),f([g({type:Object})],U.prototype,"flipBoundary",2),f([g({attribute:"flip-padding",type:Number})],U.prototype,"flipPadding",2),f([g({type:Boolean})],U.prototype,"shift",2),f([g({type:Object})],U.prototype,"shiftBoundary",2),f([g({attribute:"shift-padding",type:Number})],U.prototype,"shiftPadding",2),f([g({attribute:"auto-size"})],U.prototype,"autoSize",2),f([g()],U.prototype,"sync",2),f([g({type:Object})],U.prototype,"autoSizeBoundary",2),f([g({attribute:"auto-size-padding",type:Number})],U.prototype,"autoSizePadding",2);var ot=class extends j{constructor(){super(),this.localize=new Jt(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleKeyDown=e=>{this.open&&!this.disabled&&e.key==="Escape"&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const e=Fi(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const e=Fi(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}connectedCallback(){super.connectedCallback()}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sl-show"),await te(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:e,options:t}=Nt(this,"tooltip.show",{dir:this.localize.dir()});await Vt(this.popup.popup,e,t),this.emit("sl-after-show")}else{this.emit("sl-hide"),await te(this.body);const{keyframes:e,options:t}=Nt(this,"tooltip.hide",{dir:this.localize.dir()});await Vt(this.popup.popup,e,t),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Re(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Re(this,"sl-after-hide")}render(){return A`
3094
+ `}};U.styles=Gd,b([V(".popup")],U.prototype,"popup",2),b([V(".popup__arrow")],U.prototype,"arrowEl",2),b([p()],U.prototype,"anchor",2),b([p({type:Boolean,reflect:!0})],U.prototype,"active",2),b([p({reflect:!0})],U.prototype,"placement",2),b([p({reflect:!0})],U.prototype,"strategy",2),b([p({type:Number})],U.prototype,"distance",2),b([p({type:Number})],U.prototype,"skidding",2),b([p({type:Boolean})],U.prototype,"arrow",2),b([p({attribute:"arrow-placement"})],U.prototype,"arrowPlacement",2),b([p({attribute:"arrow-padding",type:Number})],U.prototype,"arrowPadding",2),b([p({type:Boolean})],U.prototype,"flip",2),b([p({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],U.prototype,"flipFallbackPlacements",2),b([p({attribute:"flip-fallback-strategy"})],U.prototype,"flipFallbackStrategy",2),b([p({type:Object})],U.prototype,"flipBoundary",2),b([p({attribute:"flip-padding",type:Number})],U.prototype,"flipPadding",2),b([p({type:Boolean})],U.prototype,"shift",2),b([p({type:Object})],U.prototype,"shiftBoundary",2),b([p({attribute:"shift-padding",type:Number})],U.prototype,"shiftPadding",2),b([p({attribute:"auto-size"})],U.prototype,"autoSize",2),b([p()],U.prototype,"sync",2),b([p({type:Object})],U.prototype,"autoSizeBoundary",2),b([p({attribute:"auto-size-padding",type:Number})],U.prototype,"autoSizePadding",2);var oe=class extends j{constructor(){super(),this.localize=new Je(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleKeyDown=t=>{this.open&&!this.disabled&&t.key==="Escape"&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=Fn(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Fn(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}connectedCallback(){super.connectedCallback()}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sl-show"),await et(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Ne(this,"tooltip.show",{dir:this.localize.dir()});await Ve(this.popup.popup,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),await et(this.body);const{keyframes:t,options:e}=Ne(this,"tooltip.hide",{dir:this.localize.dir()});await Ve(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Rt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Rt(this,"sl-after-hide")}render(){return A`
3095
3095
  <sl-popup
3096
3096
  part="base"
3097
3097
  exportparts="
@@ -3115,7 +3115,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3115
3115
  <slot name="content">${this.content}</slot>
3116
3116
  </div>
3117
3117
  </sl-popup>
3118
- `}};ot.styles=Uu,ot.dependencies={"sl-popup":U},f([V("slot:not([name])")],ot.prototype,"defaultSlot",2),f([V(".tooltip__body")],ot.prototype,"body",2),f([V("sl-popup")],ot.prototype,"popup",2),f([g()],ot.prototype,"content",2),f([g()],ot.prototype,"placement",2),f([g({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),f([g({type:Number})],ot.prototype,"distance",2),f([g({type:Boolean,reflect:!0})],ot.prototype,"open",2),f([g({type:Number})],ot.prototype,"skidding",2),f([g()],ot.prototype,"trigger",2),f([g({type:Boolean})],ot.prototype,"hoist",2),f([H("open",{waitUntilFirstUpdate:!0})],ot.prototype,"handleOpenChange",1),f([H(["content","distance","hoist","placement","skidding"])],ot.prototype,"handleOptionsChange",1),f([H("disabled")],ot.prototype,"handleDisabledChange",1),Ot("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Ot("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),ot.define("sl-tooltip"),ls.define("sl-spinner");var $d=z`
3118
+ `}};oe.styles=jd,oe.dependencies={"sl-popup":U},b([V("slot:not([name])")],oe.prototype,"defaultSlot",2),b([V(".tooltip__body")],oe.prototype,"body",2),b([V("sl-popup")],oe.prototype,"popup",2),b([p()],oe.prototype,"content",2),b([p()],oe.prototype,"placement",2),b([p({type:Boolean,reflect:!0})],oe.prototype,"disabled",2),b([p({type:Number})],oe.prototype,"distance",2),b([p({type:Boolean,reflect:!0})],oe.prototype,"open",2),b([p({type:Number})],oe.prototype,"skidding",2),b([p()],oe.prototype,"trigger",2),b([p({type:Boolean})],oe.prototype,"hoist",2),b([H("open",{waitUntilFirstUpdate:!0})],oe.prototype,"handleOpenChange",1),b([H(["content","distance","hoist","placement","skidding"])],oe.prototype,"handleOptionsChange",1),b([H("disabled")],oe.prototype,"handleDisabledChange",1),Oe("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Oe("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),oe.define("sl-tooltip"),is.define("sl-spinner");var Sf=z`
3119
3119
  ${Q}
3120
3120
 
3121
3121
  :host {
@@ -3208,7 +3208,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3208
3208
  font-size: var(--sl-font-size-medium);
3209
3209
  padding-inline-end: var(--sl-spacing-medium);
3210
3210
  }
3211
- `,Be=Object.assign(document.createElement("div"),{className:"sl-toast-stack"}),zt=class extends j{constructor(){super(...arguments),this.hasSlotController=new _e(this,"icon","suffix"),this.localize=new Jt(this),this.open=!1,this.closable=!1,this.variant="primary",this.duration=1/0}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}handleCloseClick(){this.hide()}handleMouseMove(){this.restartAutoHide()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.duration<1/0&&this.restartAutoHide(),await te(this.base),this.base.hidden=!1;const{keyframes:e,options:t}=Nt(this,"alert.show",{dir:this.localize.dir()});await Vt(this.base,e,t),this.emit("sl-after-show")}else{this.emit("sl-hide"),clearTimeout(this.autoHideTimeout),await te(this.base);const{keyframes:e,options:t}=Nt(this,"alert.hide",{dir:this.localize.dir()});await Vt(this.base,e,t),this.base.hidden=!0,this.emit("sl-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,Re(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Re(this,"sl-after-hide")}async toast(){return new Promise(e=>{Be.parentElement===null&&document.body.append(Be),Be.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sl-after-hide",()=>{Be.removeChild(this),e(),Be.querySelector("sl-alert")===null&&Be.remove()},{once:!0})})}render(){return A`
3211
+ `,Bt=Object.assign(document.createElement("div"),{className:"sl-toast-stack"}),ze=class extends j{constructor(){super(...arguments),this.hasSlotController=new xt(this,"icon","suffix"),this.localize=new Je(this),this.open=!1,this.closable=!1,this.variant="primary",this.duration=1/0}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}handleCloseClick(){this.hide()}handleMouseMove(){this.restartAutoHide()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.duration<1/0&&this.restartAutoHide(),await et(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=Ne(this,"alert.show",{dir:this.localize.dir()});await Ve(this.base,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),clearTimeout(this.autoHideTimeout),await et(this.base);const{keyframes:t,options:e}=Ne(this,"alert.hide",{dir:this.localize.dir()});await Ve(this.base,t,e),this.base.hidden=!0,this.emit("sl-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,Rt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,Rt(this,"sl-after-hide")}async toast(){return new Promise(t=>{Bt.parentElement===null&&document.body.append(Bt),Bt.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sl-after-hide",()=>{Bt.removeChild(this),t(),Bt.querySelector("sl-alert")===null&&Bt.remove()},{once:!0})})}render(){return A`
3212
3212
  <div
3213
3213
  part="base"
3214
3214
  class=${K({alert:!0,"alert--open":this.open,"alert--closable":this.closable,"alert--has-icon":this.hasSlotController.test("icon"),"alert--primary":this.variant==="primary","alert--success":this.variant==="success","alert--neutral":this.variant==="neutral","alert--warning":this.variant==="warning","alert--danger":this.variant==="danger"})}
@@ -3236,7 +3236,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3236
3236
  ></sl-icon-button>
3237
3237
  `:""}
3238
3238
  </div>
3239
- `}};zt.styles=$d,zt.dependencies={"sl-icon-button":nt},f([V('[part~="base"]')],zt.prototype,"base",2),f([g({type:Boolean,reflect:!0})],zt.prototype,"open",2),f([g({type:Boolean,reflect:!0})],zt.prototype,"closable",2),f([g({reflect:!0})],zt.prototype,"variant",2),f([g({type:Number})],zt.prototype,"duration",2),f([H("open",{waitUntilFirstUpdate:!0})],zt.prototype,"handleOpenChange",1),f([H("duration")],zt.prototype,"handleDurationChange",1),Ot("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Ot("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),zt.define("sl-alert");var Ed=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,qd=(e,t,o,r)=>{for(var s=r>1?void 0:r?Sd(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Ed(t,o,s),s};class at extends Bt{constructor(){super(...arguments),this.lang="en"}emit(t,o){const r=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...o});return this.dispatchEvent(r),r}}qd([g({type:String})],at.prototype,"lang",2);const sr='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8L2.146 2.854Z"/></svg>';var Dd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Xi=(e,t,o,r)=>{for(var s=r>1?void 0:r?Td(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Dd(t,o,s),s};let nr=class extends at{constructor(){super(...arguments),this.title="ChatBot"}render(){return A` <header class="cb-header" part="header">
3239
+ `}};ze.styles=Sf,ze.dependencies={"sl-icon-button":ae},b([V('[part~="base"]')],ze.prototype,"base",2),b([p({type:Boolean,reflect:!0})],ze.prototype,"open",2),b([p({type:Boolean,reflect:!0})],ze.prototype,"closable",2),b([p({reflect:!0})],ze.prototype,"variant",2),b([p({type:Number})],ze.prototype,"duration",2),b([H("open",{waitUntilFirstUpdate:!0})],ze.prototype,"handleOpenChange",1),b([H("duration")],ze.prototype,"handleDurationChange",1),Oe("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Oe("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),ze.define("sl-alert");var qf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Tf=(t,e,o,r)=>{for(var s=r>1?void 0:r?Df(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&qf(e,o,s),s};class ce extends Be{constructor(){super(...arguments),this.lang="en"}emit(e,o){const r=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...o});return this.dispatchEvent(r),r}}Tf([p({type:String})],ce.prototype,"lang",2);const ar='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8L2.146 2.854Z"/></svg>';var Lf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,Xn=(t,e,o,r)=>{for(var s=r>1?void 0:r?zf(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Lf(e,o,s),s};let nr=class extends ce{constructor(){super(...arguments),this.title="ChatBot"}render(){return A` <header class="cb-header" part="header">
3240
3240
  <span class="left">
3241
3241
  <sl-button @click=${this._clickHandler} class="cb-setting-button" variant="text" circle>
3242
3242
  <cb-icon color="white" svg="${R.setting.logoSvg}"></cb-icon>
@@ -3245,11 +3245,11 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3245
3245
  <span class="center title">${this.title}</span>
3246
3246
  <span class="right">
3247
3247
  <sl-button @click=${this._clickCloseHandler} class="cb-setting-button" variant="text" circle>
3248
- <cb-icon color="white" svg="${sr}"></cb-icon>
3248
+ <cb-icon color="white" svg="${ar}"></cb-icon>
3249
3249
  </sl-button>
3250
3250
  </span>
3251
- </header>`}_clickHandler(){this.emit("setting:show")}_clickCloseHandler(){this.emit("chatbot:toggle",{detail:{open:!1}})}};nr.styles=Hc,Xi([g({type:String,attribute:"title"})],nr.prototype,"title",2),nr=Xi([tt("cb-header")],nr);const Ld=z`
3252
- ${Et}
3251
+ </header>`}_clickHandler(){this.emit("setting:show")}_clickCloseHandler(){this.emit("chatbot:toggle",{detail:{open:!1}})}};nr.styles=Ul,Xn([p({type:String,attribute:"title"})],nr.prototype,"title",2),nr=Xn([ee("cb-header")],nr);const Rf=z`
3252
+ ${Ee}
3253
3253
  .cb-footer {
3254
3254
  line-height: 60px;
3255
3255
  font-size: 16px;
@@ -3262,7 +3262,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3262
3262
  .link__item {
3263
3263
  color: var(--primary-color);
3264
3264
  }
3265
- `;var zd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,Pd=(e,t,o,r)=>{for(var s=r>1?void 0:r?Rd(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&zd(t,o,s),s};let Ds=class extends at{constructor(){super(...arguments),this.year=new Date().getFullYear()}render(){return A`
3265
+ `;var Pf=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,If=(t,e,o,r)=>{for(var s=r>1?void 0:r?Mf(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Pf(e,o,s),s};let Ds=class extends ce{constructor(){super(...arguments),this.year=new Date().getFullYear()}render(){return A`
3266
3266
  <div class="cb-footer" part="footer">
3267
3267
  yugasun@${this.year}
3268
3268
  <a
@@ -3289,12 +3289,12 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3289
3289
  Vite
3290
3290
  </a>
3291
3291
  </div>
3292
- `}};Ds.styles=Ld,Ds=Pd([tt("cb-footer")],Ds);/**
3292
+ `}};Ds.styles=Rf,Ds=If([ee("cb-footer")],Ds);/**
3293
3293
  * @license
3294
3294
  * Copyright 2017 Google LLC
3295
3295
  * SPDX-License-Identifier: BSD-3-Clause
3296
- */const ta=(e,t,o)=>{const r=new Map;for(let s=t;s<=o;s++)r.set(e[s],s);return r},Ts=gs(class extends bs{constructor(e){if(super(e),e.type!==Xt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,o){let r;o===void 0?o=t:t!==void 0&&(r=t);const s=[],n=[];let i=0;for(const a of e)s[i]=r?r(a,i):i,n[i]=o(a,i),i++;return{values:n,keys:s}}render(e,t,o){return this.ht(e,t,o).values}update(e,[t,o,r]){const s=bu(e),{values:n,keys:i}=this.ht(t,o,r);if(!Array.isArray(s))return this.dt=i,n;const a=this.dt??(this.dt=[]),l=[];let c,u,d=0,p=s.length-1,h=0,b=n.length-1;for(;d<=p&&h<=b;)if(s[d]===null)d++;else if(s[p]===null)p--;else if(a[d]===i[h])l[h]=xe(s[d],n[h]),d++,h++;else if(a[p]===i[b])l[b]=xe(s[p],n[b]),p--,b--;else if(a[d]===i[b])l[b]=xe(s[d],n[b]),bo(e,l[b+1],s[d]),d++,b--;else if(a[p]===i[h])l[h]=xe(s[p],n[h]),bo(e,s[d],s[p]),p--,h++;else if(c===void 0&&(c=ta(i,h,b),u=ta(a,d,p)),c.has(a[d]))if(c.has(a[p])){const m=u.get(i[h]),w=m!==void 0?s[m]:null;if(w===null){const y=bo(e,s[d]);xe(y,n[h]),l[h]=y}else l[h]=xe(w,n[h]),bo(e,s[d],w),s[m]=null;h++}else hs(s[p]),p--;else hs(s[d]),d++;for(;h<=b;){const m=bo(e,l[b+1]);xe(m,n[h]),l[h++]=m}for(;d<=p;){const m=s[d++];m!==null&&hs(m)}return this.dt=i,Si(e,l),xt}}),Md=z`
3297
- ${Et}
3296
+ */const ec=(t,e,o)=>{const r=new Map;for(let s=e;s<=o;s++)r.set(t[s],s);return r},Ts=ps(class extends gs{constructor(t){if(super(t),t.type!==Xe.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;o===void 0?o=e:e!==void 0&&(r=e);const s=[],a=[];let n=0;for(const c of t)s[n]=r?r(c,n):n,a[n]=o(c,n),n++;return{values:a,keys:s}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const s=md(t),{values:a,keys:n}=this.ht(e,o,r);if(!Array.isArray(s))return this.dt=n,a;const c=this.dt??(this.dt=[]),i=[];let l,d,f=0,h=s.length-1,u=0,g=a.length-1;for(;f<=h&&u<=g;)if(s[f]===null)f++;else if(s[h]===null)h--;else if(c[f]===n[u])i[u]=kt(s[f],a[u]),f++,u++;else if(c[h]===n[g])i[g]=kt(s[h],a[g]),h--,g--;else if(c[f]===n[g])i[g]=kt(s[f],a[g]),go(t,i[g+1],s[f]),f++,g--;else if(c[h]===n[u])i[u]=kt(s[h],a[u]),go(t,s[f],s[h]),h--,u++;else if(l===void 0&&(l=ec(n,u,g),d=ec(c,f,h)),l.has(c[f]))if(l.has(c[h])){const m=d.get(n[u]),w=m!==void 0?s[m]:null;if(w===null){const y=go(t,s[f]);kt(y,a[u]),i[u]=y}else i[u]=kt(w,a[u]),go(t,s[f],w),s[m]=null;u++}else us(s[h]),h--;else us(s[f]),f++;for(;u<=g;){const m=go(t,i[g+1]);kt(m,a[u]),i[u++]=m}for(;f<=h;){const m=s[f++];m!==null&&us(m)}return this.dt=n,Sn(t,i),xe}}),Ff=z`
3297
+ ${Ee}
3298
3298
 
3299
3299
  :host {
3300
3300
  width: 100%;
@@ -3393,23 +3393,23 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3393
3393
  * @license
3394
3394
  * Copyright 2021 Google LLC
3395
3395
  * SPDX-License-Identifier: BSD-3-Clause
3396
- */function Oe(e,t,o){return e?t(e):o==null?void 0:o(e)}/**
3396
+ */function Ot(t,e,o){return t?e(t):o==null?void 0:o(t)}/**
3397
3397
  * @license
3398
3398
  * Copyright 2020 Google LLC
3399
3399
  * SPDX-License-Identifier: BSD-3-Clause
3400
- */const Id=e=>e===null||typeof e!="object"&&typeof e!="function",Fd=e=>e.strings===void 0;/**
3400
+ */const Bf=t=>t===null||typeof t!="object"&&typeof t!="function",Of=t=>t.strings===void 0;/**
3401
3401
  * @license
3402
3402
  * Copyright 2017 Google LLC
3403
3403
  * SPDX-License-Identifier: BSD-3-Clause
3404
- */const $o=(e,t)=>{var o,r;const s=e._$AN;if(s===void 0)return!1;for(const n of s)(r=(o=n)._$AO)===null||r===void 0||r.call(o,t,!1),$o(n,t);return!0},ir=e=>{let t,o;do{if((t=e._$AM)===void 0)break;o=t._$AN,o.delete(e),e=t}while((o==null?void 0:o.size)===0)},ea=e=>{for(let t;t=e._$AM;e=t){let o=t._$AN;if(o===void 0)t._$AN=o=new Set;else if(o.has(e))break;o.add(e),Nd(t)}};function Bd(e){this._$AN!==void 0?(ir(this),this._$AM=e,ea(this)):this._$AM=e}function Od(e,t=!1,o=0){const r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(r))for(let n=o;n<r.length;n++)$o(r[n],!1),ir(r[n]);else r!=null&&($o(r,!1),ir(r));else $o(this,e)}const Nd=e=>{var t,o,r,s;e.type==pi.CHILD&&((t=(r=e)._$AP)!==null&&t!==void 0||(r._$AP=Od),(o=(s=e)._$AQ)!==null&&o!==void 0||(s._$AQ=Bd))};let Vd=class extends gi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,o,r){super._$AT(t,o,r),ea(this),this.isConnected=t._$AU}_$AO(t,o=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)===null||r===void 0||r.call(this):(s=this.disconnected)===null||s===void 0||s.call(this)),o&&($o(this,t),ir(this))}setValue(t){if(Fd(this._$Ct))this._$Ct._$AI(t,this);else{const o=[...this._$Ct._$AH];o[this._$Ci]=t,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};/**
3404
+ */const $o=(t,e)=>{var o,r;const s=t._$AN;if(s===void 0)return!1;for(const a of s)(r=(o=a)._$AO)===null||r===void 0||r.call(o,e,!1),$o(a,e);return!0},cr=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while((o==null?void 0:o.size)===0)},tc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),Hf(e)}};function Nf(t){this._$AN!==void 0?(cr(this),this._$AM=t,tc(this)):this._$AM=t}function Vf(t,e=!1,o=0){const r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(r))for(let a=o;a<r.length;a++)$o(r[a],!1),cr(r[a]);else r!=null&&($o(r,!1),cr(r));else $o(this,t)}const Hf=t=>{var e,o,r,s;t.type==hn.CHILD&&((e=(r=t)._$AP)!==null&&e!==void 0||(r._$AP=Vf),(o=(s=t)._$AQ)!==null&&o!==void 0||(s._$AQ=Nf))};let Uf=class extends pn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,r){super._$AT(e,o,r),tc(this),this.isConnected=e._$AU}_$AO(e,o=!0){var r,s;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(s=this.disconnected)===null||s===void 0||s.call(this)),o&&($o(this,e),cr(this))}setValue(e){if(Of(this._$Ct))this._$Ct._$AI(e,this);else{const o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};/**
3405
3405
  * @license
3406
3406
  * Copyright 2021 Google LLC
3407
3407
  * SPDX-License-Identifier: BSD-3-Clause
3408
- */class Hd{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}let Ud=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;(t=this.Y)!==null&&t!==void 0||(this.Y=new Promise(o=>this.Z=o))}resume(){var t;(t=this.Z)===null||t===void 0||t.call(this),this.Y=this.Z=void 0}};/**
3408
+ */class jf{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}let Gf=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var e;(e=this.Y)!==null&&e!==void 0||(this.Y=new Promise(o=>this.Z=o))}resume(){var e;(e=this.Z)===null||e===void 0||e.call(this),this.Y=this.Z=void 0}};/**
3409
3409
  * @license
3410
3410
  * Copyright 2017 Google LLC
3411
3411
  * SPDX-License-Identifier: BSD-3-Clause
3412
- */const oa=e=>!Id(e)&&typeof e.then=="function",ra=1073741823;class jd extends Vd{constructor(){super(...arguments),this._$C_t=ra,this._$Cwt=[],this._$Cq=new Hd(this),this._$CK=new Ud}render(...t){var o;return(o=t.find(r=>!oa(r)))!==null&&o!==void 0?o:Yt}update(t,o){const r=this._$Cwt;let s=r.length;this._$Cwt=o;const n=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let a=0;a<o.length&&!(a>this._$C_t);a++){const l=o[a];if(!oa(l))return this._$C_t=a,l;a<s&&l===r[a]||(this._$C_t=ra,s=0,Promise.resolve(l).then(async c=>{for(;i.get();)await i.get();const u=n.deref();if(u!==void 0){const d=u._$Cwt.indexOf(l);d>-1&&d<u._$C_t&&(u._$C_t=d,u.setValue(c))}}))}return Yt}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const sa=fi(jd);var Gd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Wd=(e,t,o,r)=>{for(var s=r>1?void 0:r?Zd(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Gd(t,o,s),s};let Ls=class extends Bt{render(){return A` <div class="cb-thinking" style="color: rgb(34, 34, 34);"><span></span><span></span><span></span></div>`}};Ls.styles=z`
3412
+ */const oc=t=>!Bf(t)&&typeof t.then=="function",rc=1073741823;class Zf extends Uf{constructor(){super(...arguments),this._$C_t=rc,this._$Cwt=[],this._$Cq=new jf(this),this._$CK=new Gf}render(...e){var o;return(o=e.find(r=>!oc(r)))!==null&&o!==void 0?o:Ye}update(e,o){const r=this._$Cwt;let s=r.length;this._$Cwt=o;const a=this._$Cq,n=this._$CK;this.isConnected||this.disconnected();for(let c=0;c<o.length&&!(c>this._$C_t);c++){const i=o[c];if(!oc(i))return this._$C_t=c,i;c<s&&i===r[c]||(this._$C_t=rc,s=0,Promise.resolve(i).then(async l=>{for(;n.get();)await n.get();const d=a.deref();if(d!==void 0){const f=d._$Cwt.indexOf(i);f>-1&&f<d._$C_t&&(d._$C_t=f,d.setValue(l))}}))}return Ye}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const sc=bn(Zf);var Wf=Object.defineProperty,Kf=Object.getOwnPropertyDescriptor,Yf=(t,e,o,r)=>{for(var s=r>1?void 0:r?Kf(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Wf(e,o,s),s};let Ls=class extends Be{render(){return A` <div class="cb-thinking" style="color: rgb(34, 34, 34);"><span></span><span></span><span></span></div>`}};Ls.styles=z`
3413
3413
  .cb-thinking {
3414
3414
  text-align: center;
3415
3415
  }
@@ -3446,15 +3446,15 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3446
3446
  opacity: 1;
3447
3447
  }
3448
3448
  }
3449
- `,Ls=Wd([tt("cb-thinking")],Ls);var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,na=(e,t,o,r)=>{for(var s=r>1?void 0:r?Yd(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Kd(t,o,s),s};let ar=class extends at{constructor(){super(...arguments),this.files=[]}render(){return A` <div class="cb-uploading">
3449
+ `,Ls=Yf([ee("cb-thinking")],Ls);var Jf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,ac=(t,e,o,r)=>{for(var s=r>1?void 0:r?Qf(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Jf(e,o,s),s};let ir=class extends ce{constructor(){super(...arguments),this.files=[]}render(){return A` <div class="cb-uploading">
3450
3450
  <div class="cb-uploading__title">
3451
3451
  <sl-spinner class="cb-spinner"></sl-spinner>
3452
3452
  <span>Uploading...</span>
3453
3453
  </div>
3454
3454
  <div class="cb-uploading__filelist">
3455
- ${this.files.map(e=>A`${e.name}<br />`)}
3455
+ ${this.files.map(t=>A`${t.name}<br />`)}
3456
3456
  </div>
3457
- </div>`}};ar.styles=z`
3457
+ </div>`}};ir.styles=z`
3458
3458
  .cb-uploading {
3459
3459
  text-align: left;
3460
3460
  }
@@ -3471,8 +3471,8 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3471
3471
  --track-color: white;
3472
3472
  margin-right: 5px;
3473
3473
  }
3474
- `,na([g({type:Array})],ar.prototype,"files",2),ar=na([tt("cb-uploading")],ar);const Jd=z`
3475
- ${Et}
3474
+ `,ac([p({type:Array})],ir.prototype,"files",2),ir=ac([ee("cb-uploading")],ir);const Xf=z`
3475
+ ${Ee}
3476
3476
  :host {
3477
3477
  }
3478
3478
 
@@ -3491,7 +3491,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3491
3491
  font-size: 2em;
3492
3492
  margin-right: 0.2em;
3493
3493
  }
3494
- `;var Qd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,zs=(e,t,o,r)=>{for(var s=r>1?void 0:r?Xd(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Qd(t,o,s),s};let Eo=class extends Bt{constructor(){super(...arguments),this.url="",this.inverse=!1}render(){return A`
3494
+ `;var eu=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,zs=(t,e,o,r)=>{for(var s=r>1?void 0:r?tu(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&eu(e,o,s),s};let Eo=class extends Be{constructor(){super(...arguments),this.url="",this.inverse=!1}render(){return A`
3495
3495
  <a
3496
3496
  class="
3497
3497
  cb-external-link link__item
@@ -3527,7 +3527,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3527
3527
  .cb-external-link:hover {
3528
3528
  text-decoration: underline;
3529
3529
  }
3530
- `,zs([g({type:String})],Eo.prototype,"url",2),zs([g({type:Boolean})],Eo.prototype,"inverse",2),Eo=zs([tt("cb-external-link")],Eo);const th='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337h.794Zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983l-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992l1.274-2.007Zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"/></svg>',eh='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm1.217-1.333v3.999h1.46c.401 0 .734-.08.998-.237a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.589-.68c-.264-.156-.599-.234-1.005-.234H3.362Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.14 1.14 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082h-.563v-2.707Zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638H7.896Z"/></svg>',oh='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H9v-1h3a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM.706 13.189v2.66H0V11.85h.806l1.14 2.596h.026l1.14-2.596h.8v3.999h-.716v-2.66h-.038l-.946 2.159h-.516l-.952-2.16H.706Zm3.919 2.66V11.85h1.459c.406 0 .741.078 1.005.234c.263.157.46.383.589.68c.13.297.196.655.196 1.075c0 .422-.066.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-1 .237H4.626Zm1.353-3.354h-.562v2.707h.562c.186 0 .347-.028.484-.082a.8.8 0 0 0 .334-.252a1.14 1.14 0 0 0 .196-.422c.045-.168.067-.365.067-.592a2.1 2.1 0 0 0-.117-.753a.89.89 0 0 0-.354-.454c-.159-.102-.362-.152-.61-.152Z"/></svg>',rh='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM3.517 14.841a1.13 1.13 0 0 0 .401.823c.13.108.289.192.478.252c.19.061.411.091.665.091c.338 0 .624-.053.859-.158c.236-.105.416-.252.539-.44c.125-.189.187-.408.187-.656c0-.224-.045-.41-.134-.56a1.001 1.001 0 0 0-.375-.357a2.027 2.027 0 0 0-.566-.21l-.621-.144a.97.97 0 0 1-.404-.176a.37.37 0 0 1-.144-.299c0-.156.062-.284.185-.384c.125-.101.296-.152.512-.152c.143 0 .266.023.37.068a.624.624 0 0 1 .246.181a.56.56 0 0 1 .12.258h.75a1.092 1.092 0 0 0-.2-.566a1.21 1.21 0 0 0-.5-.41a1.813 1.813 0 0 0-.78-.152c-.293 0-.551.05-.776.15c-.225.099-.4.24-.527.421c-.127.182-.19.395-.19.639c0 .201.04.376.122.524c.082.149.2.27.352.367c.152.095.332.167.539.213l.618.144c.207.049.361.113.463.193a.387.387 0 0 1 .152.326a.505.505 0 0 1-.085.29a.559.559 0 0 1-.255.193c-.111.047-.249.07-.413.07c-.117 0-.223-.013-.32-.04a.838.838 0 0 1-.248-.115a.578.578 0 0 1-.255-.384h-.765ZM.806 13.693c0-.248.034-.46.102-.633a.868.868 0 0 1 .302-.399a.814.814 0 0 1 .475-.137c.15 0 .283.032.398.097a.7.7 0 0 1 .272.26a.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964a1.441 1.441 0 0 0-.489-.272a1.838 1.838 0 0 0-.606-.097c-.356 0-.66.074-.911.223c-.25.148-.44.359-.572.632c-.13.274-.196.6-.196.979v.498c0 .379.064.704.193.976c.131.271.322.48.572.626c.25.145.554.217.914.217c.293 0 .554-.055.785-.164c.23-.11.414-.26.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.799.799 0 0 1-.118.363a.7.7 0 0 1-.272.25a.874.874 0 0 1-.401.087a.845.845 0 0 1-.478-.132a.833.833 0 0 1-.299-.392a1.699 1.699 0 0 1-.102-.627v-.495Zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879l-1.327 4Z"/></svg>',sh='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.817-1.333h-1.6v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474c.108-.201.161-.427.161-.677c0-.25-.052-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.793.793 0 0 1-.375.082H4.15V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.767-.67v3.336H7.48v-3.337H6.346v-.662h3.065v.662H8.274Z"/></svg>',nh='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5Zm-7.839 9.166v.522c0 .256-.039.47-.117.641a.861.861 0 0 1-.322.387a.877.877 0 0 1-.469.126a.883.883 0 0 1-.471-.126a.868.868 0 0 1-.32-.386a1.55 1.55 0 0 1-.117-.642v-.522c0-.257.04-.471.117-.641a.868.868 0 0 1 .32-.387a.868.868 0 0 1 .471-.129c.176 0 .332.043.469.13a.861.861 0 0 1 .322.386c.078.17.117.384.117.641Zm.803.519v-.513c0-.377-.068-.7-.205-.972a1.46 1.46 0 0 0-.589-.63c-.254-.147-.56-.22-.917-.22c-.355 0-.662.073-.92.22a1.441 1.441 0 0 0-.589.627c-.136.271-.205.596-.205.975v.513c0 .375.069.7.205.973c.137.271.333.48.59.627c.257.144.564.216.92.216c.357 0 .662-.072.916-.216c.256-.147.452-.356.59-.627c.136-.274.204-.598.204-.973ZM0 11.926v4h1.459c.402 0 .735-.08.999-.238a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.59-.68c-.263-.156-.598-.234-1.004-.234H0Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.141 1.141 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082H.79V12.57Zm7.422.483a1.732 1.732 0 0 0-.103.633v.495c0 .246.034.455.103.627a.834.834 0 0 0 .298.393a.845.845 0 0 0 .478.131a.868.868 0 0 0 .401-.088a.699.699 0 0 0 .273-.248a.8.8 0 0 0 .117-.364h.765v.076a1.268 1.268 0 0 1-.226.674c-.137.194-.32.345-.55.454a1.81 1.81 0 0 1-.786.164c-.36 0-.664-.072-.914-.216a1.424 1.424 0 0 1-.571-.627c-.13-.272-.194-.597-.194-.976v-.498c0-.379.066-.705.197-.978c.13-.274.321-.485.571-.633c.252-.149.556-.223.911-.223c.219 0 .421.032.607.097c.187.062.35.153.489.272a1.326 1.326 0 0 1 .466.964v.073H9.78a.85.85 0 0 0-.12-.38a.7.7 0 0 0-.273-.261a.802.802 0 0 0-.398-.097a.814.814 0 0 0-.475.138a.868.868 0 0 0-.301.398Z"/></svg>',ih='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5Zm-6.839 9.688v-.522a1.54 1.54 0 0 0-.117-.641a.861.861 0 0 0-.322-.387a.862.862 0 0 0-.469-.129a.868.868 0 0 0-.471.13a.868.868 0 0 0-.32.386a1.54 1.54 0 0 0-.117.641v.522c0 .256.04.47.117.641a.868.868 0 0 0 .32.387a.883.883 0 0 0 .471.126a.877.877 0 0 0 .469-.126a.861.861 0 0 0 .322-.386a1.55 1.55 0 0 0 .117-.642Zm.803-.516v.513c0 .375-.068.7-.205.973a1.47 1.47 0 0 1-.589.627c-.254.144-.56.216-.917.216a1.86 1.86 0 0 1-.92-.216a1.463 1.463 0 0 1-.589-.627a2.151 2.151 0 0 1-.205-.973v-.513c0-.379.069-.704.205-.975c.137-.274.333-.483.59-.627c.257-.147.564-.22.92-.22c.357 0 .662.073.916.22c.256.146.452.356.59.63c.136.271.204.595.204.972ZM1 15.925v-3.999h1.459c.406 0 .741.078 1.005.235c.264.156.46.382.589.68c.13.296.196.655.196 1.074c0 .422-.065.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-.999.237H1Zm1.354-3.354H1.79v2.707h.563c.185 0 .346-.028.483-.082a.8.8 0 0 0 .334-.252c.088-.114.153-.254.196-.422a2.3 2.3 0 0 0 .068-.592c0-.3-.04-.552-.118-.753a.89.89 0 0 0-.354-.454c-.158-.102-.361-.152-.61-.152Zm6.756 1.116c0-.248.034-.46.103-.633a.868.868 0 0 1 .301-.398a.814.814 0 0 1 .475-.138c.15 0 .283.032.398.097a.7.7 0 0 1 .273.26a.85.85 0 0 1 .12.381h.765v-.073a1.33 1.33 0 0 0-.466-.964a1.44 1.44 0 0 0-.49-.272a1.836 1.836 0 0 0-.606-.097c-.355 0-.66.074-.911.223c-.25.148-.44.359-.571.633c-.131.273-.197.6-.197.978v.498c0 .379.065.704.194.976c.13.271.321.48.571.627c.25.144.555.216.914.216c.293 0 .555-.054.785-.164c.23-.11.414-.26.551-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.765a.8.8 0 0 1-.117.364a.699.699 0 0 1-.273.248a.874.874 0 0 1-.401.088a.845.845 0 0 1-.478-.131a.834.834 0 0 1-.298-.393a1.7 1.7 0 0 1-.103-.627v-.495Zm5.092-1.76h.894l-1.275 2.006l1.254 1.992h-.908l-.85-1.415h-.035l-.852 1.415h-.862l1.24-2.015l-1.228-1.984h.932l.832 1.439h.035l.823-1.439Z"/></svg>';var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Rs=(e,t,o,r)=>{for(var s=r>1?void 0:r?lh(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&ah(t,o,s),s};const ia={pdf:eh,txt:th,md:oh,csv:rh,ppd:sh,doc:nh,docx:ih};let So=class extends at{constructor(){super(...arguments),this.filename="",this.url=""}get type(){const e="txt";if(!this.filename)return e;const t=this.filename.split(".").pop();return t?t.toLowerCase():e}render(){return A`
3530
+ `,zs([p({type:String})],Eo.prototype,"url",2),zs([p({type:Boolean})],Eo.prototype,"inverse",2),Eo=zs([ee("cb-external-link")],Eo);const ou='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337h.794Zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983l-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992l1.274-2.007Zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"/></svg>',ru='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm1.217-1.333v3.999h1.46c.401 0 .734-.08.998-.237a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.589-.68c-.264-.156-.599-.234-1.005-.234H3.362Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.14 1.14 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082h-.563v-2.707Zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638H7.896Z"/></svg>',su='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H9v-1h3a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM.706 13.189v2.66H0V11.85h.806l1.14 2.596h.026l1.14-2.596h.8v3.999h-.716v-2.66h-.038l-.946 2.159h-.516l-.952-2.16H.706Zm3.919 2.66V11.85h1.459c.406 0 .741.078 1.005.234c.263.157.46.383.589.68c.13.297.196.655.196 1.075c0 .422-.066.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-1 .237H4.626Zm1.353-3.354h-.562v2.707h.562c.186 0 .347-.028.484-.082a.8.8 0 0 0 .334-.252a1.14 1.14 0 0 0 .196-.422c.045-.168.067-.365.067-.592a2.1 2.1 0 0 0-.117-.753a.89.89 0 0 0-.354-.454c-.159-.102-.362-.152-.61-.152Z"/></svg>',au='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM3.517 14.841a1.13 1.13 0 0 0 .401.823c.13.108.289.192.478.252c.19.061.411.091.665.091c.338 0 .624-.053.859-.158c.236-.105.416-.252.539-.44c.125-.189.187-.408.187-.656c0-.224-.045-.41-.134-.56a1.001 1.001 0 0 0-.375-.357a2.027 2.027 0 0 0-.566-.21l-.621-.144a.97.97 0 0 1-.404-.176a.37.37 0 0 1-.144-.299c0-.156.062-.284.185-.384c.125-.101.296-.152.512-.152c.143 0 .266.023.37.068a.624.624 0 0 1 .246.181a.56.56 0 0 1 .12.258h.75a1.092 1.092 0 0 0-.2-.566a1.21 1.21 0 0 0-.5-.41a1.813 1.813 0 0 0-.78-.152c-.293 0-.551.05-.776.15c-.225.099-.4.24-.527.421c-.127.182-.19.395-.19.639c0 .201.04.376.122.524c.082.149.2.27.352.367c.152.095.332.167.539.213l.618.144c.207.049.361.113.463.193a.387.387 0 0 1 .152.326a.505.505 0 0 1-.085.29a.559.559 0 0 1-.255.193c-.111.047-.249.07-.413.07c-.117 0-.223-.013-.32-.04a.838.838 0 0 1-.248-.115a.578.578 0 0 1-.255-.384h-.765ZM.806 13.693c0-.248.034-.46.102-.633a.868.868 0 0 1 .302-.399a.814.814 0 0 1 .475-.137c.15 0 .283.032.398.097a.7.7 0 0 1 .272.26a.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964a1.441 1.441 0 0 0-.489-.272a1.838 1.838 0 0 0-.606-.097c-.356 0-.66.074-.911.223c-.25.148-.44.359-.572.632c-.13.274-.196.6-.196.979v.498c0 .379.064.704.193.976c.131.271.322.48.572.626c.25.145.554.217.914.217c.293 0 .554-.055.785-.164c.23-.11.414-.26.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.799.799 0 0 1-.118.363a.7.7 0 0 1-.272.25a.874.874 0 0 1-.401.087a.845.845 0 0 1-.478-.132a.833.833 0 0 1-.299-.392a1.699 1.699 0 0 1-.102-.627v-.495Zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879l-1.327 4Z"/></svg>',nu='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.817-1.333h-1.6v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173c.203-.117.358-.275.463-.474c.108-.201.161-.427.161-.677c0-.25-.052-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38a.574.574 0 0 1-.238.241a.793.793 0 0 1-.375.082H4.15V12.48h.66c.218 0 .389.06.512.181c.123.122.185.296.185.522Zm2.767-.67v3.336H7.48v-3.337H6.346v-.662h3.065v.662H8.274Z"/></svg>',cu='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5Zm-7.839 9.166v.522c0 .256-.039.47-.117.641a.861.861 0 0 1-.322.387a.877.877 0 0 1-.469.126a.883.883 0 0 1-.471-.126a.868.868 0 0 1-.32-.386a1.55 1.55 0 0 1-.117-.642v-.522c0-.257.04-.471.117-.641a.868.868 0 0 1 .32-.387a.868.868 0 0 1 .471-.129c.176 0 .332.043.469.13a.861.861 0 0 1 .322.386c.078.17.117.384.117.641Zm.803.519v-.513c0-.377-.068-.7-.205-.972a1.46 1.46 0 0 0-.589-.63c-.254-.147-.56-.22-.917-.22c-.355 0-.662.073-.92.22a1.441 1.441 0 0 0-.589.627c-.136.271-.205.596-.205.975v.513c0 .375.069.7.205.973c.137.271.333.48.59.627c.257.144.564.216.92.216c.357 0 .662-.072.916-.216c.256-.147.452-.356.59-.627c.136-.274.204-.598.204-.973ZM0 11.926v4h1.459c.402 0 .735-.08.999-.238a1.45 1.45 0 0 0 .595-.689c.13-.3.196-.662.196-1.084c0-.42-.065-.778-.196-1.075a1.426 1.426 0 0 0-.59-.68c-.263-.156-.598-.234-1.004-.234H0Zm.791.645h.563c.248 0 .45.05.609.152a.89.89 0 0 1 .354.454c.079.201.118.452.118.753a2.3 2.3 0 0 1-.068.592a1.141 1.141 0 0 1-.196.422a.8.8 0 0 1-.334.252a1.298 1.298 0 0 1-.483.082H.79V12.57Zm7.422.483a1.732 1.732 0 0 0-.103.633v.495c0 .246.034.455.103.627a.834.834 0 0 0 .298.393a.845.845 0 0 0 .478.131a.868.868 0 0 0 .401-.088a.699.699 0 0 0 .273-.248a.8.8 0 0 0 .117-.364h.765v.076a1.268 1.268 0 0 1-.226.674c-.137.194-.32.345-.55.454a1.81 1.81 0 0 1-.786.164c-.36 0-.664-.072-.914-.216a1.424 1.424 0 0 1-.571-.627c-.13-.272-.194-.597-.194-.976v-.498c0-.379.066-.705.197-.978c.13-.274.321-.485.571-.633c.252-.149.556-.223.911-.223c.219 0 .421.032.607.097c.187.062.35.153.489.272a1.326 1.326 0 0 1 .466.964v.073H9.78a.85.85 0 0 0-.12-.38a.7.7 0 0 0-.273-.261a.802.802 0 0 0-.398-.097a.814.814 0 0 0-.475.138a.868.868 0 0 0-.301.398Z"/></svg>',iu='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5Zm-6.839 9.688v-.522a1.54 1.54 0 0 0-.117-.641a.861.861 0 0 0-.322-.387a.862.862 0 0 0-.469-.129a.868.868 0 0 0-.471.13a.868.868 0 0 0-.32.386a1.54 1.54 0 0 0-.117.641v.522c0 .256.04.47.117.641a.868.868 0 0 0 .32.387a.883.883 0 0 0 .471.126a.877.877 0 0 0 .469-.126a.861.861 0 0 0 .322-.386a1.55 1.55 0 0 0 .117-.642Zm.803-.516v.513c0 .375-.068.7-.205.973a1.47 1.47 0 0 1-.589.627c-.254.144-.56.216-.917.216a1.86 1.86 0 0 1-.92-.216a1.463 1.463 0 0 1-.589-.627a2.151 2.151 0 0 1-.205-.973v-.513c0-.379.069-.704.205-.975c.137-.274.333-.483.59-.627c.257-.147.564-.22.92-.22c.357 0 .662.073.916.22c.256.146.452.356.59.63c.136.271.204.595.204.972ZM1 15.925v-3.999h1.459c.406 0 .741.078 1.005.235c.264.156.46.382.589.68c.13.296.196.655.196 1.074c0 .422-.065.784-.196 1.084c-.131.301-.33.53-.595.689c-.264.158-.597.237-.999.237H1Zm1.354-3.354H1.79v2.707h.563c.185 0 .346-.028.483-.082a.8.8 0 0 0 .334-.252c.088-.114.153-.254.196-.422a2.3 2.3 0 0 0 .068-.592c0-.3-.04-.552-.118-.753a.89.89 0 0 0-.354-.454c-.158-.102-.361-.152-.61-.152Zm6.756 1.116c0-.248.034-.46.103-.633a.868.868 0 0 1 .301-.398a.814.814 0 0 1 .475-.138c.15 0 .283.032.398.097a.7.7 0 0 1 .273.26a.85.85 0 0 1 .12.381h.765v-.073a1.33 1.33 0 0 0-.466-.964a1.44 1.44 0 0 0-.49-.272a1.836 1.836 0 0 0-.606-.097c-.355 0-.66.074-.911.223c-.25.148-.44.359-.571.633c-.131.273-.197.6-.197.978v.498c0 .379.065.704.194.976c.13.271.321.48.571.627c.25.144.555.216.914.216c.293 0 .555-.054.785-.164c.23-.11.414-.26.551-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.765a.8.8 0 0 1-.117.364a.699.699 0 0 1-.273.248a.874.874 0 0 1-.401.088a.845.845 0 0 1-.478-.131a.834.834 0 0 1-.298-.393a1.7 1.7 0 0 1-.103-.627v-.495Zm5.092-1.76h.894l-1.275 2.006l1.254 1.992h-.908l-.85-1.415h-.035l-.852 1.415h-.862l1.24-2.015l-1.228-1.984h.932l.832 1.439h.035l.823-1.439Z"/></svg>';var lu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,Rs=(t,e,o,r)=>{for(var s=r>1?void 0:r?du(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&lu(e,o,s),s};const nc={pdf:ru,txt:ou,md:su,csv:au,ppd:nu,doc:cu,docx:iu};let So=class extends ce{constructor(){super(...arguments),this.filename="",this.url=""}get type(){const t="txt";if(!this.filename)return t;const e=this.filename.split(".").pop();return e?e.toLowerCase():t}render(){return A`
3531
3531
  <cb-external-link url="${this.url}" inverse>
3532
3532
  <div class="cb-file">
3533
3533
  ${this.renderFileIcon()}
@@ -3537,9 +3537,9 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
3537
3537
  `}renderFileIcon(){return A`
3538
3538
  <cb-icon
3539
3539
  class="cb-file-icon"
3540
- svg="${ia[this.type]||ia.txt}"
3540
+ svg="${nc[this.type]||nc.txt}"
3541
3541
  ></cb-icon>
3542
- `}};So.styles=Jd,Rs([g({type:String})],So.prototype,"filename",2),Rs([g({type:String})],So.prototype,"url",2),So=Rs([tt("cb-file")],So);const ch='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"/></g></svg>',uh='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M8 8a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0a2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1s1-4 6-4s6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664h10Z"/></svg>',dh=z`
3542
+ `}};So.styles=Xf,Rs([p({type:String})],So.prototype,"filename",2),Rs([p({type:String})],So.prototype,"url",2),So=Rs([ee("cb-file")],So);const fu='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"/></g></svg>',uu='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M8 8a3 3 0 1 0 0-6a3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0a2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1s1-4 6-4s6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664h10Z"/></svg>',hu=z`
3543
3543
  pre code.hljs {
3544
3544
  display: block;
3545
3545
  overflow-x: auto;
@@ -4704,9 +4704,9 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
4704
4704
  pre {
4705
4705
  background-color: #282c34;
4706
4706
  }
4707
- `,hh=z`
4708
- ${Et}
4709
- ${dh}
4707
+ `,bu=z`
4708
+ ${Ee}
4709
+ ${hu}
4710
4710
 
4711
4711
  .cb-message-row {
4712
4712
  width: 100%;
@@ -4859,73 +4859,73 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
4859
4859
  cb-icon::part(base) {
4860
4860
  font-size: 1em;
4861
4861
  }
4862
- `;var O={},aa={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
4863
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Ps=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ne={},la={};function ph(e){var t,o,r=la[e];if(r)return r;for(r=la[e]=[],t=0;t<128;t++)o=String.fromCharCode(t),/^[0-9a-z]$/i.test(o)?r.push(o):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function lr(e,t,o){var r,s,n,i,a,l="";for(typeof t!="string"&&(o=t,t=lr.defaultChars),typeof o>"u"&&(o=!0),a=ph(t),r=0,s=e.length;r<s;r++){if(n=e.charCodeAt(r),o&&n===37&&r+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){l+=e.slice(r,r+3),r+=2;continue}if(n<128){l+=a[n];continue}if(n>=55296&&n<=57343){if(n>=55296&&n<=56319&&r+1<s&&(i=e.charCodeAt(r+1),i>=56320&&i<=57343)){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[r])}return l}lr.defaultChars=";/?:@&=+$,-_.!~*'()#",lr.componentChars="-_.!~*'()";var fh=lr,ca={};function gh(e){var t,o,r=ca[e];if(r)return r;for(r=ca[e]=[],t=0;t<128;t++)o=String.fromCharCode(t),r.push(o);for(t=0;t<e.length;t++)o=e.charCodeAt(t),r[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return r}function cr(e,t){var o;return typeof t!="string"&&(t=cr.defaultChars),o=gh(t),e.replace(/(%[a-f0-9]{2})+/gi,function(r){var s,n,i,a,l,c,u,d="";for(s=0,n=r.length;s<n;s+=3){if(i=parseInt(r.slice(s+1,s+3),16),i<128){d+=o[i];continue}if((i&224)===192&&s+3<n&&(a=parseInt(r.slice(s+4,s+6),16),(a&192)===128)){u=i<<6&1984|a&63,u<128?d+="��":d+=String.fromCharCode(u),s+=3;continue}if((i&240)===224&&s+6<n&&(a=parseInt(r.slice(s+4,s+6),16),l=parseInt(r.slice(s+7,s+9),16),(a&192)===128&&(l&192)===128)){u=i<<12&61440|a<<6&4032|l&63,u<2048||u>=55296&&u<=57343?d+="���":d+=String.fromCharCode(u),s+=6;continue}if((i&248)===240&&s+9<n&&(a=parseInt(r.slice(s+4,s+6),16),l=parseInt(r.slice(s+7,s+9),16),c=parseInt(r.slice(s+10,s+12),16),(a&192)===128&&(l&192)===128&&(c&192)===128)){u=i<<18&1835008|a<<12&258048|l<<6&4032|c&63,u<65536||u>1114111?d+="����":(u-=65536,d+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),s+=9;continue}d+="�"}return d})}cr.defaultChars=";/?:@&=+$,#",cr.componentChars="";var bh=cr,mh=function(t){var o="";return o+=t.protocol||"",o+=t.slashes?"//":"",o+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?o+="["+t.hostname+"]":o+=t.hostname||"",o+=t.port?":"+t.port:"",o+=t.pathname||"",o+=t.search||"",o+=t.hash||"",o};function ur(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var vh=/^([a-z0-9.+-]+:)/i,yh=/:[0-9]*$/,wh=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_h=["<",">",'"',"`"," ","\r",`
4864
- `," "],xh=["{","}","|","\\","^","`"].concat(_h),kh=["'"].concat(xh),ua=["%","/","?",";","#"].concat(kh),da=["/","?","#"],Ah=255,ha=/^[+a-z0-9A-Z_-]{0,63}$/,Ch=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pa={javascript:!0,"javascript:":!0},fa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function $h(e,t){if(e&&e instanceof ur)return e;var o=new ur;return o.parse(e,t),o}ur.prototype.parse=function(e,t){var o,r,s,n,i,a=e;if(a=a.trim(),!t&&e.split("#").length===1){var l=wh.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=vh.exec(a);if(c&&(c=c[0],s=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(t||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(c&&pa[c])&&(a=a.substr(2),this.slashes=!0)),!pa[c]&&(i||c&&!fa[c])){var u=-1;for(o=0;o<da.length;o++)n=a.indexOf(da[o]),n!==-1&&(u===-1||n<u)&&(u=n);var d,p;for(u===-1?p=a.lastIndexOf("@"):p=a.lastIndexOf("@",u),p!==-1&&(d=a.slice(0,p),a=a.slice(p+1),this.auth=d),u=-1,o=0;o<ua.length;o++)n=a.indexOf(ua[o]),n!==-1&&(u===-1||n<u)&&(u=n);u===-1&&(u=a.length),a[u-1]===":"&&u--;var h=a.slice(0,u);a=a.slice(u),this.parseHost(h),this.hostname=this.hostname||"";var b=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!b){var m=this.hostname.split(/\./);for(o=0,r=m.length;o<r;o++){var w=m[o];if(w&&!w.match(ha)){for(var y="",v=0,k=w.length;v<k;v++)w.charCodeAt(v)>127?y+="x":y+=w[v];if(!y.match(ha)){var C=m.slice(0,o),$=m.slice(o+1),_=w.match(Ch);_&&(C.push(_[1]),$.unshift(_[2])),$.length&&(a=$.join(".")+a),this.hostname=C.join(".");break}}}}this.hostname.length>Ah&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var P=a.indexOf("?");return P!==-1&&(this.search=a.substr(P),a=a.slice(0,P)),a&&(this.pathname=a),fa[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ur.prototype.parseHost=function(e){var t=yh.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Eh=$h;Ne.encode=fh,Ne.decode=bh,Ne.format=mh,Ne.parse=Eh;var Ae={},Ms,ga;function ba(){return ga||(ga=1,Ms=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ms}var Is,ma;function va(){return ma||(ma=1,Is=/[\0-\x1F\x7F-\x9F]/),Is}var Fs,ya;function Sh(){return ya||(ya=1,Fs=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Fs}var Bs,wa;function _a(){return wa||(wa=1,Bs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Bs}var xa;function qh(){return xa||(xa=1,Ae.Any=ba(),Ae.Cc=va(),Ae.Cf=Sh(),Ae.P=Ps,Ae.Z=_a()),Ae}(function(e){function t(x){return Object.prototype.toString.call(x)}function o(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function s(x,F){return r.call(x,F)}function n(x){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(T){if(T){if(typeof T!="object")throw new TypeError(T+"must be object");Object.keys(T).forEach(function(X){x[X]=T[X]})}}),x}function i(x,F,T){return[].concat(x.slice(0,F),T,x.slice(F+1))}function a(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function l(x){if(x>65535){x-=65536;var F=55296+(x>>10),T=56320+(x&1023);return String.fromCharCode(F,T)}return String.fromCharCode(x)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=aa;function b(x,F){var T=0;return s(h,F)?h[F]:F.charCodeAt(0)===35&&p.test(F)&&(T=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),a(T))?l(T):x}function m(x){return x.indexOf("\\")<0?x:x.replace(c,"$1")}function w(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(d,function(F,T,X){return T||b(F,X)})}var y=/[&<>"]/,v=/[&<>"]/g,k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function C(x){return k[x]}function $(x){return y.test(x)?x.replace(v,C):x}var _=/[.?*+^$[\]\\(){}|-]/g;function D(x){return x.replace(_,"\\$&")}function P(x){switch(x){case 9:case 32:return!0}return!1}function S(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var q=Ps;function I(x){return q.test(x)}function W(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function yt(x){return x=x.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(x=x.replace(/ẞ/g,"ß")),x.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Ne,e.lib.ucmicro=qh(),e.assign=n,e.isString=o,e.has=s,e.unescapeMd=m,e.unescapeAll=w,e.isValidEntityCode=a,e.fromCodePoint=l,e.escapeHtml=$,e.arrayReplaceAt=i,e.isSpace=P,e.isWhiteSpace=S,e.isMdAsciiPunct=W,e.isPunctChar=I,e.escapeRE=D,e.normalizeReference=yt})(O);var dr={},Dh=function(t,o,r){var s,n,i,a,l=-1,c=t.posMax,u=t.pos;for(t.pos=o+1,s=1;t.pos<c;){if(i=t.src.charCodeAt(t.pos),i===93&&(s--,s===0)){n=!0;break}if(a=t.pos,t.md.inline.skipToken(t),i===91){if(a===t.pos-1)s++;else if(r)return t.pos=u,-1}}return n&&(l=t.pos),t.pos=u,l},ka=O.unescapeAll,Th=function(t,o,r){var s,n,i=0,a=o,l={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(o)===60){for(o++;o<r;){if(s=t.charCodeAt(o),s===10||s===60)return l;if(s===62)return l.pos=o+1,l.str=ka(t.slice(a+1,o)),l.ok=!0,l;if(s===92&&o+1<r){o+=2;continue}o++}return l}for(n=0;o<r&&(s=t.charCodeAt(o),!(s===32||s<32||s===127));){if(s===92&&o+1<r){if(t.charCodeAt(o+1)===32)break;o+=2;continue}if(s===40&&(n++,n>32))return l;if(s===41){if(n===0)break;n--}o++}return a===o||n!==0||(l.str=ka(t.slice(a,o)),l.lines=i,l.pos=o,l.ok=!0),l},Lh=O.unescapeAll,zh=function(t,o,r){var s,n,i=0,a=o,l={ok:!1,pos:0,lines:0,str:""};if(o>=r||(n=t.charCodeAt(o),n!==34&&n!==39&&n!==40))return l;for(o++,n===40&&(n=41);o<r;){if(s=t.charCodeAt(o),s===n)return l.pos=o+1,l.lines=i,l.str=Lh(t.slice(a+1,o)),l.ok=!0,l;if(s===40&&n===41)return l;s===10?i++:s===92&&o+1<r&&(o++,t.charCodeAt(o)===10&&i++),o++}return l};dr.parseLinkLabel=Dh,dr.parseLinkDestination=Th,dr.parseLinkTitle=zh;var Rh=O.assign,Ph=O.unescapeAll,Ce=O.escapeHtml,Rt={};Rt.code_inline=function(e,t,o,r,s){var n=e[t];return"<code"+s.renderAttrs(n)+">"+Ce(e[t].content)+"</code>"},Rt.code_block=function(e,t,o,r,s){var n=e[t];return"<pre"+s.renderAttrs(n)+"><code>"+Ce(e[t].content)+`</code></pre>
4865
- `},Rt.fence=function(e,t,o,r,s){var n=e[t],i=n.info?Ph(n.info).trim():"",a="",l="",c,u,d,p,h;return i&&(d=i.split(/(\s+)/g),a=d[0],l=d.slice(2).join("")),o.highlight?c=o.highlight(n.content,a,l)||Ce(n.content):c=Ce(n.content),c.indexOf("<pre")===0?c+`
4866
- `:i?(u=n.attrIndex("class"),p=n.attrs?n.attrs.slice():[],u<0?p.push(["class",o.langPrefix+a]):(p[u]=p[u].slice(),p[u][1]+=" "+o.langPrefix+a),h={attrs:p},"<pre><code"+s.renderAttrs(h)+">"+c+`</code></pre>
4867
- `):"<pre><code"+s.renderAttrs(n)+">"+c+`</code></pre>
4868
- `},Rt.image=function(e,t,o,r,s){var n=e[t];return n.attrs[n.attrIndex("alt")][1]=s.renderInlineAsText(n.children,o,r),s.renderToken(e,t,o)},Rt.hardbreak=function(e,t,o){return o.xhtmlOut?`<br />
4862
+ `;var O={},cc={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
4863
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Ps=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Nt={},ic={};function pu(t){var e,o,r=ic[t];if(r)return r;for(r=ic[t]=[],e=0;e<128;e++)o=String.fromCharCode(e),/^[0-9a-z]$/i.test(o)?r.push(o):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function lr(t,e,o){var r,s,a,n,c,i="";for(typeof e!="string"&&(o=e,e=lr.defaultChars),typeof o>"u"&&(o=!0),c=pu(e),r=0,s=t.length;r<s;r++){if(a=t.charCodeAt(r),o&&a===37&&r+2<s&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){i+=t.slice(r,r+3),r+=2;continue}if(a<128){i+=c[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1<s&&(n=t.charCodeAt(r+1),n>=56320&&n<=57343)){i+=encodeURIComponent(t[r]+t[r+1]),r++;continue}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[r])}return i}lr.defaultChars=";/?:@&=+$,-_.!~*'()#",lr.componentChars="-_.!~*'()";var gu=lr,lc={};function mu(t){var e,o,r=lc[t];if(r)return r;for(r=lc[t]=[],e=0;e<128;e++)o=String.fromCharCode(e),r.push(o);for(e=0;e<t.length;e++)o=t.charCodeAt(e),r[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return r}function dr(t,e){var o;return typeof e!="string"&&(e=dr.defaultChars),o=mu(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var s,a,n,c,i,l,d,f="";for(s=0,a=r.length;s<a;s+=3){if(n=parseInt(r.slice(s+1,s+3),16),n<128){f+=o[n];continue}if((n&224)===192&&s+3<a&&(c=parseInt(r.slice(s+4,s+6),16),(c&192)===128)){d=n<<6&1984|c&63,d<128?f+="��":f+=String.fromCharCode(d),s+=3;continue}if((n&240)===224&&s+6<a&&(c=parseInt(r.slice(s+4,s+6),16),i=parseInt(r.slice(s+7,s+9),16),(c&192)===128&&(i&192)===128)){d=n<<12&61440|c<<6&4032|i&63,d<2048||d>=55296&&d<=57343?f+="���":f+=String.fromCharCode(d),s+=6;continue}if((n&248)===240&&s+9<a&&(c=parseInt(r.slice(s+4,s+6),16),i=parseInt(r.slice(s+7,s+9),16),l=parseInt(r.slice(s+10,s+12),16),(c&192)===128&&(i&192)===128&&(l&192)===128)){d=n<<18&1835008|c<<12&258048|i<<6&4032|l&63,d<65536||d>1114111?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}f+="�"}return f})}dr.defaultChars=";/?:@&=+$,#",dr.componentChars="";var vu=dr,yu=function(e){var o="";return o+=e.protocol||"",o+=e.slashes?"//":"",o+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?o+="["+e.hostname+"]":o+=e.hostname||"",o+=e.port?":"+e.port:"",o+=e.pathname||"",o+=e.search||"",o+=e.hash||"",o};function fr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var wu=/^([a-z0-9.+-]+:)/i,_u=/:[0-9]*$/,xu=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ku=["<",">",'"',"`"," ","\r",`
4864
+ `," "],Au=["{","}","|","\\","^","`"].concat(ku),Cu=["'"].concat(Au),dc=["%","/","?",";","#"].concat(Cu),fc=["/","?","#"],$u=255,uc=/^[+a-z0-9A-Z_-]{0,63}$/,Eu=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hc={javascript:!0,"javascript:":!0},bc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Su(t,e){if(t&&t instanceof fr)return t;var o=new fr;return o.parse(t,e),o}fr.prototype.parse=function(t,e){var o,r,s,a,n,c=t;if(c=c.trim(),!e&&t.split("#").length===1){var i=xu.exec(c);if(i)return this.pathname=i[1],i[2]&&(this.search=i[2]),this}var l=wu.exec(c);if(l&&(l=l[0],s=l.toLowerCase(),this.protocol=l,c=c.substr(l.length)),(e||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(n=c.substr(0,2)==="//",n&&!(l&&hc[l])&&(c=c.substr(2),this.slashes=!0)),!hc[l]&&(n||l&&!bc[l])){var d=-1;for(o=0;o<fc.length;o++)a=c.indexOf(fc[o]),a!==-1&&(d===-1||a<d)&&(d=a);var f,h;for(d===-1?h=c.lastIndexOf("@"):h=c.lastIndexOf("@",d),h!==-1&&(f=c.slice(0,h),c=c.slice(h+1),this.auth=f),d=-1,o=0;o<dc.length;o++)a=c.indexOf(dc[o]),a!==-1&&(d===-1||a<d)&&(d=a);d===-1&&(d=c.length),c[d-1]===":"&&d--;var u=c.slice(0,d);c=c.slice(d),this.parseHost(u),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var m=this.hostname.split(/\./);for(o=0,r=m.length;o<r;o++){var w=m[o];if(w&&!w.match(uc)){for(var y="",v=0,k=w.length;v<k;v++)w.charCodeAt(v)>127?y+="x":y+=w[v];if(!y.match(uc)){var C=m.slice(0,o),$=m.slice(o+1),_=w.match(Eu);_&&(C.push(_[1]),$.unshift(_[2])),$.length&&(c=$.join(".")+c),this.hostname=C.join(".");break}}}}this.hostname.length>$u&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=c.indexOf("#");D!==-1&&(this.hash=c.substr(D),c=c.slice(0,D));var P=c.indexOf("?");return P!==-1&&(this.search=c.substr(P),c=c.slice(0,P)),c&&(this.pathname=c),bc[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},fr.prototype.parseHost=function(t){var e=_u.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var qu=Su;Nt.encode=gu,Nt.decode=vu,Nt.format=yu,Nt.parse=qu;var Ct={},Ms,pc;function gc(){return pc||(pc=1,Ms=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ms}var Is,mc;function vc(){return mc||(mc=1,Is=/[\0-\x1F\x7F-\x9F]/),Is}var Fs,yc;function Du(){return yc||(yc=1,Fs=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Fs}var Bs,wc;function _c(){return wc||(wc=1,Bs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Bs}var xc;function Tu(){return xc||(xc=1,Ct.Any=gc(),Ct.Cc=vc(),Ct.Cf=Du(),Ct.P=Ps,Ct.Z=_c()),Ct}(function(t){function e(x){return Object.prototype.toString.call(x)}function o(x){return e(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function s(x,F){return r.call(x,F)}function a(x){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(T){if(T){if(typeof T!="object")throw new TypeError(T+"must be object");Object.keys(T).forEach(function(X){x[X]=T[X]})}}),x}function n(x,F,T){return[].concat(x.slice(0,F),T,x.slice(F+1))}function c(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function i(x){if(x>65535){x-=65536;var F=55296+(x>>10),T=56320+(x&1023);return String.fromCharCode(F,T)}return String.fromCharCode(x)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(l.source+"|"+d.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=cc;function g(x,F){var T=0;return s(u,F)?u[F]:F.charCodeAt(0)===35&&h.test(F)&&(T=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),c(T))?i(T):x}function m(x){return x.indexOf("\\")<0?x:x.replace(l,"$1")}function w(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(f,function(F,T,X){return T||g(F,X)})}var y=/[&<>"]/,v=/[&<>"]/g,k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function C(x){return k[x]}function $(x){return y.test(x)?x.replace(v,C):x}var _=/[.?*+^$[\]\\(){}|-]/g;function D(x){return x.replace(_,"\\$&")}function P(x){switch(x){case 9:case 32:return!0}return!1}function S(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var q=Ps;function I(x){return q.test(x)}function W(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ye(x){return x=x.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(x=x.replace(/ẞ/g,"ß")),x.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Nt,t.lib.ucmicro=Tu(),t.assign=a,t.isString=o,t.has=s,t.unescapeMd=m,t.unescapeAll=w,t.isValidEntityCode=c,t.fromCodePoint=i,t.escapeHtml=$,t.arrayReplaceAt=n,t.isSpace=P,t.isWhiteSpace=S,t.isMdAsciiPunct=W,t.isPunctChar=I,t.escapeRE=D,t.normalizeReference=ye})(O);var ur={},Lu=function(e,o,r){var s,a,n,c,i=-1,l=e.posMax,d=e.pos;for(e.pos=o+1,s=1;e.pos<l;){if(n=e.src.charCodeAt(e.pos),n===93&&(s--,s===0)){a=!0;break}if(c=e.pos,e.md.inline.skipToken(e),n===91){if(c===e.pos-1)s++;else if(r)return e.pos=d,-1}}return a&&(i=e.pos),e.pos=d,i},kc=O.unescapeAll,zu=function(e,o,r){var s,a,n=0,c=o,i={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<r;){if(s=e.charCodeAt(o),s===10||s===60)return i;if(s===62)return i.pos=o+1,i.str=kc(e.slice(c+1,o)),i.ok=!0,i;if(s===92&&o+1<r){o+=2;continue}o++}return i}for(a=0;o<r&&(s=e.charCodeAt(o),!(s===32||s<32||s===127));){if(s===92&&o+1<r){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(s===40&&(a++,a>32))return i;if(s===41){if(a===0)break;a--}o++}return c===o||a!==0||(i.str=kc(e.slice(c,o)),i.lines=n,i.pos=o,i.ok=!0),i},Ru=O.unescapeAll,Pu=function(e,o,r){var s,a,n=0,c=o,i={ok:!1,pos:0,lines:0,str:""};if(o>=r||(a=e.charCodeAt(o),a!==34&&a!==39&&a!==40))return i;for(o++,a===40&&(a=41);o<r;){if(s=e.charCodeAt(o),s===a)return i.pos=o+1,i.lines=n,i.str=Ru(e.slice(c+1,o)),i.ok=!0,i;if(s===40&&a===41)return i;s===10?n++:s===92&&o+1<r&&(o++,e.charCodeAt(o)===10&&n++),o++}return i};ur.parseLinkLabel=Lu,ur.parseLinkDestination=zu,ur.parseLinkTitle=Pu;var Mu=O.assign,Iu=O.unescapeAll,$t=O.escapeHtml,Re={};Re.code_inline=function(t,e,o,r,s){var a=t[e];return"<code"+s.renderAttrs(a)+">"+$t(t[e].content)+"</code>"},Re.code_block=function(t,e,o,r,s){var a=t[e];return"<pre"+s.renderAttrs(a)+"><code>"+$t(t[e].content)+`</code></pre>
4865
+ `},Re.fence=function(t,e,o,r,s){var a=t[e],n=a.info?Iu(a.info).trim():"",c="",i="",l,d,f,h,u;return n&&(f=n.split(/(\s+)/g),c=f[0],i=f.slice(2).join("")),o.highlight?l=o.highlight(a.content,c,i)||$t(a.content):l=$t(a.content),l.indexOf("<pre")===0?l+`
4866
+ `:n?(d=a.attrIndex("class"),h=a.attrs?a.attrs.slice():[],d<0?h.push(["class",o.langPrefix+c]):(h[d]=h[d].slice(),h[d][1]+=" "+o.langPrefix+c),u={attrs:h},"<pre><code"+s.renderAttrs(u)+">"+l+`</code></pre>
4867
+ `):"<pre><code"+s.renderAttrs(a)+">"+l+`</code></pre>
4868
+ `},Re.image=function(t,e,o,r,s){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=s.renderInlineAsText(a.children,o,r),s.renderToken(t,e,o)},Re.hardbreak=function(t,e,o){return o.xhtmlOut?`<br />
4869
4869
  `:`<br>
4870
- `},Rt.softbreak=function(e,t,o){return o.breaks?o.xhtmlOut?`<br />
4870
+ `},Re.softbreak=function(t,e,o){return o.breaks?o.xhtmlOut?`<br />
4871
4871
  `:`<br>
4872
4872
  `:`
4873
- `},Rt.text=function(e,t){return Ce(e[t].content)},Rt.html_block=function(e,t){return e[t].content},Rt.html_inline=function(e,t){return e[t].content};function Ve(){this.rules=Rh({},Rt)}Ve.prototype.renderAttrs=function(t){var o,r,s;if(!t.attrs)return"";for(s="",o=0,r=t.attrs.length;o<r;o++)s+=" "+Ce(t.attrs[o][0])+'="'+Ce(t.attrs[o][1])+'"';return s},Ve.prototype.renderToken=function(t,o,r){var s,n="",i=!1,a=t[o];return a.hidden?"":(a.block&&a.nesting!==-1&&o&&t[o-1].hidden&&(n+=`
4874
- `),n+=(a.nesting===-1?"</":"<")+a.tag,n+=this.renderAttrs(a),a.nesting===0&&r.xhtmlOut&&(n+=" /"),a.block&&(i=!0,a.nesting===1&&o+1<t.length&&(s=t[o+1],(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===a.tag)&&(i=!1))),n+=i?`>
4875
- `:">",n)},Ve.prototype.renderInline=function(e,t,o){for(var r,s="",n=this.rules,i=0,a=e.length;i<a;i++)r=e[i].type,typeof n[r]<"u"?s+=n[r](e,i,t,o,this):s+=this.renderToken(e,i,t);return s},Ve.prototype.renderInlineAsText=function(e,t,o){for(var r="",s=0,n=e.length;s<n;s++)e[s].type==="text"?r+=e[s].content:e[s].type==="image"?r+=this.renderInlineAsText(e[s].children,t,o):e[s].type==="softbreak"&&(r+=`
4876
- `);return r},Ve.prototype.render=function(e,t,o){var r,s,n,i="",a=this.rules;for(r=0,s=e.length;r<s;r++)n=e[r].type,n==="inline"?i+=this.renderInline(e[r].children,t,o):typeof a[n]<"u"?i+=a[e[r].type](e,r,t,o,this):i+=this.renderToken(e,r,t,o);return i};var Mh=Ve;function Ct(){this.__rules__=[],this.__cache__=null}Ct.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Ct.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(o){o.enabled&&o.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(o){e.__cache__[o]=[],e.__rules__.forEach(function(r){r.enabled&&(o&&r.alt.indexOf(o)<0||e.__cache__[o].push(r.fn))})})},Ct.prototype.at=function(e,t,o){var r=this.__find__(e),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=s.alt||[],this.__cache__=null},Ct.prototype.before=function(e,t,o,r){var s=this.__find__(e),n=r||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s,0,{name:t,enabled:!0,fn:o,alt:n.alt||[]}),this.__cache__=null},Ct.prototype.after=function(e,t,o,r){var s=this.__find__(e),n=r||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s+1,0,{name:t,enabled:!0,fn:o,alt:n.alt||[]}),this.__cache__=null},Ct.prototype.push=function(e,t,o){var r=o||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Ct.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var o=[];return e.forEach(function(r){var s=this.__find__(r);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[s].enabled=!0,o.push(r)},this),this.__cache__=null,o},Ct.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(o){o.enabled=!1}),this.enable(e,t)},Ct.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var o=[];return e.forEach(function(r){var s=this.__find__(r);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[s].enabled=!1,o.push(r)},this),this.__cache__=null,o},Ct.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var Os=Ct,Ih=/\r\n?|\n/g,Fh=/\0/g,Bh=function(t){var o;o=t.src.replace(Ih,`
4877
- `),o=o.replace(Fh,"�"),t.src=o},Oh=function(t){var o;t.inlineMode?(o=new t.Token("inline","",0),o.content=t.src,o.map=[0,1],o.children=[],t.tokens.push(o)):t.md.block.parse(t.src,t.md,t.env,t.tokens)},Nh=function(t){var o=t.tokens,r,s,n;for(s=0,n=o.length;s<n;s++)r=o[s],r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)},Vh=O.arrayReplaceAt;function Hh(e){return/^<a[>\s]/i.test(e)}function Uh(e){return/^<\/a\s*>/i.test(e)}var jh=function(t){var o,r,s,n,i,a,l,c,u,d,p,h,b,m,w,y,v=t.tokens,k;if(t.md.options.linkify){for(r=0,s=v.length;r<s;r++)if(!(v[r].type!=="inline"||!t.md.linkify.pretest(v[r].content)))for(n=v[r].children,b=0,o=n.length-1;o>=0;o--){if(a=n[o],a.type==="link_close"){for(o--;n[o].level!==a.level&&n[o].type!=="link_open";)o--;continue}if(a.type==="html_inline"&&(Hh(a.content)&&b>0&&b--,Uh(a.content)&&b++),!(b>0)&&a.type==="text"&&t.md.linkify.test(a.content)){for(u=a.content,k=t.md.linkify.match(u),l=[],h=a.level,p=0,k.length>0&&k[0].index===0&&o>0&&n[o-1].type==="text_special"&&(k=k.slice(1)),c=0;c<k.length;c++)m=k[c].url,w=t.md.normalizeLink(m),t.md.validateLink(w)&&(y=k[c].text,k[c].schema?k[c].schema==="mailto:"&&!/^mailto:/i.test(y)?y=t.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=t.md.normalizeLinkText(y):y=t.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),d=k[c].index,d>p&&(i=new t.Token("text","",0),i.content=u.slice(p,d),i.level=h,l.push(i)),i=new t.Token("link_open","a",1),i.attrs=[["href",w]],i.level=h++,i.markup="linkify",i.info="auto",l.push(i),i=new t.Token("text","",0),i.content=y,i.level=h,l.push(i),i=new t.Token("link_close","a",-1),i.level=--h,i.markup="linkify",i.info="auto",l.push(i),p=k[c].lastIndex);p<u.length&&(i=new t.Token("text","",0),i.content=u.slice(p),i.level=h,l.push(i)),v[r].children=n=Vh(n,o,l)}}}},Aa=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Gh=/\((c|tm|r)\)/i,Zh=/\((c|tm|r)\)/ig,Wh={c:"©",r:"®",tm:"™"};function Kh(e,t){return Wh[t.toLowerCase()]}function Yh(e){var t,o,r=0;for(t=e.length-1;t>=0;t--)o=e[t],o.type==="text"&&!r&&(o.content=o.content.replace(Zh,Kh)),o.type==="link_open"&&o.info==="auto"&&r--,o.type==="link_close"&&o.info==="auto"&&r++}function Jh(e){var t,o,r=0;for(t=e.length-1;t>=0;t--)o=e[t],o.type==="text"&&!r&&Aa.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&r--,o.type==="link_close"&&o.info==="auto"&&r++}var Qh=function(t){var o;if(t.md.options.typographer)for(o=t.tokens.length-1;o>=0;o--)t.tokens[o].type==="inline"&&(Gh.test(t.tokens[o].content)&&Yh(t.tokens[o].children),Aa.test(t.tokens[o].content)&&Jh(t.tokens[o].children))},Ca=O.isWhiteSpace,$a=O.isPunctChar,Ea=O.isMdAsciiPunct,Xh=/['"]/,Sa=/['"]/g,qa="’";function hr(e,t,o){return e.slice(0,t)+o+e.slice(t+1)}function tp(e,t){var o,r,s,n,i,a,l,c,u,d,p,h,b,m,w,y,v,k,C,$,_;for(C=[],o=0;o<e.length;o++){for(r=e[o],l=e[o].level,v=C.length-1;v>=0&&!(C[v].level<=l);v--);if(C.length=v+1,r.type==="text"){s=r.content,i=0,a=s.length;t:for(;i<a&&(Sa.lastIndex=i,n=Sa.exec(s),!!n);){if(w=y=!0,i=n.index+1,k=n[0]==="'",u=32,n.index-1>=0)u=s.charCodeAt(n.index-1);else for(v=o-1;v>=0&&!(e[v].type==="softbreak"||e[v].type==="hardbreak");v--)if(e[v].content){u=e[v].content.charCodeAt(e[v].content.length-1);break}if(d=32,i<a)d=s.charCodeAt(i);else for(v=o+1;v<e.length&&!(e[v].type==="softbreak"||e[v].type==="hardbreak");v++)if(e[v].content){d=e[v].content.charCodeAt(0);break}if(p=Ea(u)||$a(String.fromCharCode(u)),h=Ea(d)||$a(String.fromCharCode(d)),b=Ca(u),m=Ca(d),m?w=!1:h&&(b||p||(w=!1)),b?y=!1:p&&(m||h||(y=!1)),d===34&&n[0]==='"'&&u>=48&&u<=57&&(y=w=!1),w&&y&&(w=p,y=h),!w&&!y){k&&(r.content=hr(r.content,n.index,qa));continue}if(y){for(v=C.length-1;v>=0&&(c=C[v],!(C[v].level<l));v--)if(c.single===k&&C[v].level===l){c=C[v],k?($=t.md.options.quotes[2],_=t.md.options.quotes[3]):($=t.md.options.quotes[0],_=t.md.options.quotes[1]),r.content=hr(r.content,n.index,_),e[c.token].content=hr(e[c.token].content,c.pos,$),i+=_.length-1,c.token===o&&(i+=$.length-1),s=r.content,a=s.length,C.length=v;continue t}}w?C.push({token:o,pos:n.index,single:k,level:l}):y&&k&&(r.content=hr(r.content,n.index,qa))}}}}var ep=function(t){var o;if(t.md.options.typographer)for(o=t.tokens.length-1;o>=0;o--)t.tokens[o].type!=="inline"||!Xh.test(t.tokens[o].content)||tp(t.tokens[o].children,t)},op=function(t){var o,r,s,n,i,a,l=t.tokens;for(o=0,r=l.length;o<r;o++)if(l[o].type==="inline"){for(s=l[o].children,i=s.length,n=0;n<i;n++)s[n].type==="text_special"&&(s[n].type="text");for(n=a=0;n<i;n++)s[n].type==="text"&&n+1<i&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==a&&(s[a]=s[n]),a++);n!==a&&(s.length=a)}};function He(e,t,o){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=o,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}He.prototype.attrIndex=function(t){var o,r,s;if(!this.attrs)return-1;for(o=this.attrs,r=0,s=o.length;r<s;r++)if(o[r][0]===t)return r;return-1},He.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},He.prototype.attrSet=function(t,o){var r=this.attrIndex(t),s=[t,o];r<0?this.attrPush(s):this.attrs[r]=s},He.prototype.attrGet=function(t){var o=this.attrIndex(t),r=null;return o>=0&&(r=this.attrs[o][1]),r},He.prototype.attrJoin=function(t,o){var r=this.attrIndex(t);r<0?this.attrPush([t,o]):this.attrs[r][1]=this.attrs[r][1]+" "+o};var Ns=He,rp=Ns;function Da(e,t,o){this.src=e,this.env=o,this.tokens=[],this.inlineMode=!1,this.md=t}Da.prototype.Token=rp;var sp=Da,np=Os,Vs=[["normalize",Bh],["block",Oh],["inline",Nh],["linkify",jh],["replacements",Qh],["smartquotes",ep],["text_join",op]];function Hs(){this.ruler=new np;for(var e=0;e<Vs.length;e++)this.ruler.push(Vs[e][0],Vs[e][1])}Hs.prototype.process=function(e){var t,o,r;for(r=this.ruler.getRules(""),t=0,o=r.length;t<o;t++)r[t](e)},Hs.prototype.State=sp;var ip=Hs,Us=O.isSpace;function js(e,t){var o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(o,r)}function Ta(e){var t=[],o=0,r=e.length,s,n=!1,i=0,a="";for(s=e.charCodeAt(o);o<r;)s===124&&(n?(a+=e.substring(i,o-1),i=o):(t.push(a+e.substring(i,o)),a="",i=o+1)),n=s===92,o++,s=e.charCodeAt(o);return t.push(a+e.substring(i)),t}var ap=function(t,o,r,s){var n,i,a,l,c,u,d,p,h,b,m,w,y,v,k,C,$,_;if(o+2>r||(u=o+1,t.sCount[u]<t.blkIndent)||t.sCount[u]-t.blkIndent>=4||(a=t.bMarks[u]+t.tShift[u],a>=t.eMarks[u])||($=t.src.charCodeAt(a++),$!==124&&$!==45&&$!==58)||a>=t.eMarks[u]||(_=t.src.charCodeAt(a++),_!==124&&_!==45&&_!==58&&!Us(_))||$===45&&Us(_))return!1;for(;a<t.eMarks[u];){if(n=t.src.charCodeAt(a),n!==124&&n!==45&&n!==58&&!Us(n))return!1;a++}for(i=js(t,o+1),d=i.split("|"),b=[],l=0;l<d.length;l++){if(m=d[l].trim(),!m){if(l===0||l===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?b.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?b.push("left"):b.push("")}if(i=js(t,o).trim(),i.indexOf("|")===-1||t.sCount[o]-t.blkIndent>=4||(d=Ta(i),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),p=d.length,p===0||p!==b.length))return!1;if(s)return!0;for(v=t.parentType,t.parentType="table",C=t.md.block.ruler.getRules("blockquote"),h=t.push("table_open","table",1),h.map=w=[o,0],h=t.push("thead_open","thead",1),h.map=[o,o+1],h=t.push("tr_open","tr",1),h.map=[o,o+1],l=0;l<d.length;l++)h=t.push("th_open","th",1),b[l]&&(h.attrs=[["style","text-align:"+b[l]]]),h=t.push("inline","",0),h.content=d[l].trim(),h.children=[],h=t.push("th_close","th",-1);for(h=t.push("tr_close","tr",-1),h=t.push("thead_close","thead",-1),u=o+2;u<r&&!(t.sCount[u]<t.blkIndent);u++){for(k=!1,l=0,c=C.length;l<c;l++)if(C[l](t,u,r,!0)){k=!0;break}if(k||(i=js(t,u).trim(),!i)||t.sCount[u]-t.blkIndent>=4)break;for(d=Ta(i),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),u===o+2&&(h=t.push("tbody_open","tbody",1),h.map=y=[o+2,0]),h=t.push("tr_open","tr",1),h.map=[u,u+1],l=0;l<p;l++)h=t.push("td_open","td",1),b[l]&&(h.attrs=[["style","text-align:"+b[l]]]),h=t.push("inline","",0),h.content=d[l]?d[l].trim():"",h.children=[],h=t.push("td_close","td",-1);h=t.push("tr_close","tr",-1)}return y&&(h=t.push("tbody_close","tbody",-1),y[1]=u),h=t.push("table_close","table",-1),w[1]=u,t.parentType=v,t.line=u,!0},lp=function(t,o,r){var s,n,i;if(t.sCount[o]-t.blkIndent<4)return!1;for(n=s=o+1;s<r;){if(t.isEmpty(s)){s++;continue}if(t.sCount[s]-t.blkIndent>=4){s++,n=s;continue}break}return t.line=n,i=t.push("code_block","code",0),i.content=t.getLines(o,n,4+t.blkIndent,!1)+`
4878
- `,i.map=[o,t.line],!0},cp=function(t,o,r,s){var n,i,a,l,c,u,d,p=!1,h=t.bMarks[o]+t.tShift[o],b=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||h+3>b||(n=t.src.charCodeAt(h),n!==126&&n!==96)||(c=h,h=t.skipChars(h,n),i=h-c,i<3)||(d=t.src.slice(c,h),a=t.src.slice(h,b),n===96&&a.indexOf(String.fromCharCode(n))>=0))return!1;if(s)return!0;for(l=o;l++,!(l>=r||(h=c=t.bMarks[l]+t.tShift[l],b=t.eMarks[l],h<b&&t.sCount[l]<t.blkIndent));)if(t.src.charCodeAt(h)===n&&!(t.sCount[l]-t.blkIndent>=4)&&(h=t.skipChars(h,n),!(h-c<i)&&(h=t.skipSpaces(h),!(h<b)))){p=!0;break}return i=t.sCount[o],t.line=l+(p?1:0),u=t.push("fence","code",0),u.info=a,u.content=t.getLines(o+1,l,i,!0),u.markup=d,u.map=[o,t.line],!0},La=O.isSpace,up=function(t,o,r,s){var n,i,a,l,c,u,d,p,h,b,m,w,y,v,k,C,$,_,D,P,S=t.lineMax,q=t.bMarks[o]+t.tShift[o],I=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||t.src.charCodeAt(q++)!==62)return!1;if(s)return!0;for(l=h=t.sCount[o]+1,t.src.charCodeAt(q)===32?(q++,l++,h++,n=!1,C=!0):t.src.charCodeAt(q)===9?(C=!0,(t.bsCount[o]+h)%4===3?(q++,l++,h++,n=!1):n=!0):C=!1,b=[t.bMarks[o]],t.bMarks[o]=q;q<I&&(i=t.src.charCodeAt(q),La(i));){i===9?h+=4-(h+t.bsCount[o]+(n?1:0))%4:h++;q++}for(m=[t.bsCount[o]],t.bsCount[o]=t.sCount[o]+1+(C?1:0),u=q>=I,v=[t.sCount[o]],t.sCount[o]=h-l,k=[t.tShift[o]],t.tShift[o]=q-t.bMarks[o],_=t.md.block.ruler.getRules("blockquote"),y=t.parentType,t.parentType="blockquote",p=o+1;p<r&&(P=t.sCount[p]<t.blkIndent,q=t.bMarks[p]+t.tShift[p],I=t.eMarks[p],!(q>=I));p++){if(t.src.charCodeAt(q++)===62&&!P){for(l=h=t.sCount[p]+1,t.src.charCodeAt(q)===32?(q++,l++,h++,n=!1,C=!0):t.src.charCodeAt(q)===9?(C=!0,(t.bsCount[p]+h)%4===3?(q++,l++,h++,n=!1):n=!0):C=!1,b.push(t.bMarks[p]),t.bMarks[p]=q;q<I&&(i=t.src.charCodeAt(q),La(i));){i===9?h+=4-(h+t.bsCount[p]+(n?1:0))%4:h++;q++}u=q>=I,m.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(C?1:0),v.push(t.sCount[p]),t.sCount[p]=h-l,k.push(t.tShift[p]),t.tShift[p]=q-t.bMarks[p];continue}if(u)break;for($=!1,a=0,c=_.length;a<c;a++)if(_[a](t,p,r,!0)){$=!0;break}if($){t.lineMax=p,t.blkIndent!==0&&(b.push(t.bMarks[p]),m.push(t.bsCount[p]),k.push(t.tShift[p]),v.push(t.sCount[p]),t.sCount[p]-=t.blkIndent);break}b.push(t.bMarks[p]),m.push(t.bsCount[p]),k.push(t.tShift[p]),v.push(t.sCount[p]),t.sCount[p]=-1}for(w=t.blkIndent,t.blkIndent=0,D=t.push("blockquote_open","blockquote",1),D.markup=">",D.map=d=[o,0],t.md.block.tokenize(t,o,p),D=t.push("blockquote_close","blockquote",-1),D.markup=">",t.lineMax=S,t.parentType=y,d[1]=t.line,a=0;a<k.length;a++)t.bMarks[a+o]=b[a],t.tShift[a+o]=k[a],t.sCount[a+o]=v[a],t.bsCount[a+o]=m[a];return t.blkIndent=w,!0},dp=O.isSpace,hp=function(t,o,r,s){var n,i,a,l,c=t.bMarks[o]+t.tShift[o],u=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||(n=t.src.charCodeAt(c++),n!==42&&n!==45&&n!==95))return!1;for(i=1;c<u;){if(a=t.src.charCodeAt(c++),a!==n&&!dp(a))return!1;a===n&&i++}return i<3?!1:(s||(t.line=o+1,l=t.push("hr","hr",0),l.map=[o,t.line],l.markup=Array(i+1).join(String.fromCharCode(n))),!0)},za=O.isSpace;function Ra(e,t){var o,r,s,n;return r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],o=e.src.charCodeAt(r++),o!==42&&o!==45&&o!==43||r<s&&(n=e.src.charCodeAt(r),!za(n))?-1:r}function Pa(e,t){var o,r=e.bMarks[t]+e.tShift[t],s=r,n=e.eMarks[t];if(s+1>=n||(o=e.src.charCodeAt(s++),o<48||o>57))return-1;for(;;){if(s>=n)return-1;if(o=e.src.charCodeAt(s++),o>=48&&o<=57){if(s-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return s<n&&(o=e.src.charCodeAt(s),!za(o))?-1:s}function pp(e,t){var o,r,s=e.level+2;for(o=t+2,r=e.tokens.length-2;o<r;o++)e.tokens[o].level===s&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}var fp=function(t,o,r,s){var n,i,a,l,c,u,d,p,h,b,m,w,y,v,k,C,$,_,D,P,S,q,I,W,yt,x,F,T,X=!1,zr=!0;if(t.sCount[o]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[o]-t.listIndent>=4&&t.sCount[o]<t.blkIndent)return!1;if(s&&t.parentType==="paragraph"&&t.sCount[o]>=t.blkIndent&&(X=!0),(I=Pa(t,o))>=0){if(d=!0,yt=t.bMarks[o]+t.tShift[o],y=Number(t.src.slice(yt,I-1)),X&&y!==1)return!1}else if((I=Ra(t,o))>=0)d=!1;else return!1;if(X&&t.skipSpaces(I)>=t.eMarks[o])return!1;if(w=t.src.charCodeAt(I-1),s)return!0;for(m=t.tokens.length,d?(T=t.push("ordered_list_open","ol",1),y!==1&&(T.attrs=[["start",y]])):T=t.push("bullet_list_open","ul",1),T.map=b=[o,0],T.markup=String.fromCharCode(w),k=o,W=!1,F=t.md.block.ruler.getRules("list"),_=t.parentType,t.parentType="list";k<r;){for(q=I,v=t.eMarks[k],u=C=t.sCount[k]+I-(t.bMarks[o]+t.tShift[o]);q<v;){if(n=t.src.charCodeAt(q),n===9)C+=4-(C+t.bsCount[k])%4;else if(n===32)C++;else break;q++}if(i=q,i>=v?c=1:c=C-u,c>4&&(c=1),l=u+c,T=t.push("list_item_open","li",1),T.markup=String.fromCharCode(w),T.map=p=[o,0],d&&(T.info=t.src.slice(yt,I-1)),S=t.tight,P=t.tShift[o],D=t.sCount[o],$=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[o]=i-t.bMarks[o],t.sCount[o]=C,i>=v&&t.isEmpty(o+1)?t.line=Math.min(t.line+2,r):t.md.block.tokenize(t,o,r,!0),(!t.tight||W)&&(zr=!1),W=t.line-o>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=$,t.tShift[o]=P,t.sCount[o]=D,t.tight=S,T=t.push("list_item_close","li",-1),T.markup=String.fromCharCode(w),k=o=t.line,p[1]=k,i=t.bMarks[o],k>=r||t.sCount[k]<t.blkIndent||t.sCount[o]-t.blkIndent>=4)break;for(x=!1,a=0,h=F.length;a<h;a++)if(F[a](t,k,r,!0)){x=!0;break}if(x)break;if(d){if(I=Pa(t,k),I<0)break;yt=t.bMarks[k]+t.tShift[k]}else if(I=Ra(t,k),I<0)break;if(w!==t.src.charCodeAt(I-1))break}return d?T=t.push("ordered_list_close","ol",-1):T=t.push("bullet_list_close","ul",-1),T.markup=String.fromCharCode(w),b[1]=k,t.line=k,t.parentType=_,zr&&pp(t,m),!0},gp=O.normalizeReference,pr=O.isSpace,bp=function(t,o,r,s){var n,i,a,l,c,u,d,p,h,b,m,w,y,v,k,C,$=0,_=t.bMarks[o]+t.tShift[o],D=t.eMarks[o],P=o+1;if(t.sCount[o]-t.blkIndent>=4||t.src.charCodeAt(_)!==91)return!1;for(;++_<D;)if(t.src.charCodeAt(_)===93&&t.src.charCodeAt(_-1)!==92){if(_+1===D||t.src.charCodeAt(_+1)!==58)return!1;break}for(l=t.lineMax,k=t.md.block.ruler.getRules("reference"),b=t.parentType,t.parentType="reference";P<l&&!t.isEmpty(P);P++)if(!(t.sCount[P]-t.blkIndent>3)&&!(t.sCount[P]<0)){for(v=!1,u=0,d=k.length;u<d;u++)if(k[u](t,P,l,!0)){v=!0;break}if(v)break}for(y=t.getLines(o,P,t.blkIndent,!1).trim(),D=y.length,_=1;_<D;_++){if(n=y.charCodeAt(_),n===91)return!1;if(n===93){h=_;break}else n===10?$++:n===92&&(_++,_<D&&y.charCodeAt(_)===10&&$++)}if(h<0||y.charCodeAt(h+1)!==58)return!1;for(_=h+2;_<D;_++)if(n=y.charCodeAt(_),n===10)$++;else if(!pr(n))break;if(m=t.md.helpers.parseLinkDestination(y,_,D),!m.ok||(c=t.md.normalizeLink(m.str),!t.md.validateLink(c)))return!1;for(_=m.pos,$+=m.lines,i=_,a=$,w=_;_<D;_++)if(n=y.charCodeAt(_),n===10)$++;else if(!pr(n))break;for(m=t.md.helpers.parseLinkTitle(y,_,D),_<D&&w!==_&&m.ok?(C=m.str,_=m.pos,$+=m.lines):(C="",_=i,$=a);_<D&&(n=y.charCodeAt(_),!!pr(n));)_++;if(_<D&&y.charCodeAt(_)!==10&&C)for(C="",_=i,$=a;_<D&&(n=y.charCodeAt(_),!!pr(n));)_++;return _<D&&y.charCodeAt(_)!==10||(p=gp(y.slice(1,h)),!p)?!1:(s||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[p]>"u"&&(t.env.references[p]={title:C,href:c}),t.parentType=b,t.line=o+$+1),!0)},mp=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],fr={},vp="[a-zA-Z_:][a-zA-Z0-9:._-]*",yp="[^\"'=<>`\\x00-\\x20]+",wp="'[^']*'",_p='"[^"]*"',xp="(?:"+yp+"|"+wp+"|"+_p+")",kp="(?:\\s+"+vp+"(?:\\s*=\\s*"+xp+")?)",Ma="<[A-Za-z][A-Za-z0-9\\-]*"+kp+"*\\s*\\/?>",Ia="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ap="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Cp="<[?][\\s\\S]*?[?]>",$p="<![A-Z]+\\s+[^>]*>",Ep="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Sp=new RegExp("^(?:"+Ma+"|"+Ia+"|"+Ap+"|"+Cp+"|"+$p+"|"+Ep+")"),qp=new RegExp("^(?:"+Ma+"|"+Ia+")");fr.HTML_TAG_RE=Sp,fr.HTML_OPEN_CLOSE_TAG_RE=qp;var Dp=mp,Tp=fr.HTML_OPEN_CLOSE_TAG_RE,Ue=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Dp.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Tp.source+"\\s*$"),/^$/,!1]],Lp=function(t,o,r,s){var n,i,a,l,c=t.bMarks[o]+t.tShift[o],u=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(c)!==60)return!1;for(l=t.src.slice(c,u),n=0;n<Ue.length&&!Ue[n][0].test(l);n++);if(n===Ue.length)return!1;if(s)return Ue[n][2];if(i=o+1,!Ue[n][1].test(l)){for(;i<r&&!(t.sCount[i]<t.blkIndent);i++)if(c=t.bMarks[i]+t.tShift[i],u=t.eMarks[i],l=t.src.slice(c,u),Ue[n][1].test(l)){l.length!==0&&i++;break}}return t.line=i,a=t.push("html_block","",0),a.map=[o,i],a.content=t.getLines(o,i,t.blkIndent,!0),!0},Fa=O.isSpace,zp=function(t,o,r,s){var n,i,a,l,c=t.bMarks[o]+t.tShift[o],u=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||(n=t.src.charCodeAt(c),n!==35||c>=u))return!1;for(i=1,n=t.src.charCodeAt(++c);n===35&&c<u&&i<=6;)i++,n=t.src.charCodeAt(++c);return i>6||c<u&&!Fa(n)?!1:(s||(u=t.skipSpacesBack(u,c),a=t.skipCharsBack(u,35,c),a>c&&Fa(t.src.charCodeAt(a-1))&&(u=a),t.line=o+1,l=t.push("heading_open","h"+String(i),1),l.markup="########".slice(0,i),l.map=[o,t.line],l=t.push("inline","",0),l.content=t.src.slice(c,u).trim(),l.map=[o,t.line],l.children=[],l=t.push("heading_close","h"+String(i),-1),l.markup="########".slice(0,i)),!0)},Rp=function(t,o,r){var s,n,i,a,l,c,u,d,p,h=o+1,b,m=t.md.block.ruler.getRules("paragraph");if(t.sCount[o]-t.blkIndent>=4)return!1;for(b=t.parentType,t.parentType="paragraph";h<r&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c<u&&(p=t.src.charCodeAt(c),(p===45||p===61)&&(c=t.skipChars(c,p),c=t.skipSpaces(c),c>=u)))){d=p===61?1:2;break}if(!(t.sCount[h]<0)){for(n=!1,i=0,a=m.length;i<a;i++)if(m[i](t,h,r,!0)){n=!0;break}if(n)break}}return d?(s=t.getLines(o,h,t.blkIndent,!1).trim(),t.line=h+1,l=t.push("heading_open","h"+String(d),1),l.markup=String.fromCharCode(p),l.map=[o,t.line],l=t.push("inline","",0),l.content=s,l.map=[o,t.line-1],l.children=[],l=t.push("heading_close","h"+String(d),-1),l.markup=String.fromCharCode(p),t.parentType=b,!0):!1},Pp=function(t,o){var r,s,n,i,a,l,c=o+1,u=t.md.block.ruler.getRules("paragraph"),d=t.lineMax;for(l=t.parentType,t.parentType="paragraph";c<d&&!t.isEmpty(c);c++)if(!(t.sCount[c]-t.blkIndent>3)&&!(t.sCount[c]<0)){for(s=!1,n=0,i=u.length;n<i;n++)if(u[n](t,c,d,!0)){s=!0;break}if(s)break}return r=t.getLines(o,c,t.blkIndent,!1).trim(),t.line=c,a=t.push("paragraph_open","p",1),a.map=[o,t.line],a=t.push("inline","",0),a.content=r,a.map=[o,t.line],a.children=[],a=t.push("paragraph_close","p",-1),t.parentType=l,!0},Ba=Ns,gr=O.isSpace;function Pt(e,t,o,r){var s,n,i,a,l,c,u,d;for(this.src=e,this.md=t,this.env=o,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",n=this.src,d=!1,i=a=c=u=0,l=n.length;a<l;a++){if(s=n.charCodeAt(a),!d)if(gr(s)){c++,s===9?u+=4-u%4:u++;continue}else d=!0;(s===10||a===l-1)&&(s!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(u),this.bsCount.push(0),d=!1,c=0,u=0,i=a+1)}this.bMarks.push(n.length),this.eMarks.push(n.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pt.prototype.push=function(e,t,o){var r=new Ba(e,t,o);return r.block=!0,o<0&&this.level--,r.level=this.level,o>0&&this.level++,this.tokens.push(r),r},Pt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Pt.prototype.skipEmptyLines=function(t){for(var o=this.lineMax;t<o&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Pt.prototype.skipSpaces=function(t){for(var o,r=this.src.length;t<r&&(o=this.src.charCodeAt(t),!!gr(o));t++);return t},Pt.prototype.skipSpacesBack=function(t,o){if(t<=o)return t;for(;t>o;)if(!gr(this.src.charCodeAt(--t)))return t+1;return t},Pt.prototype.skipChars=function(t,o){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===o;t++);return t},Pt.prototype.skipCharsBack=function(t,o,r){if(t<=r)return t;for(;t>r;)if(o!==this.src.charCodeAt(--t))return t+1;return t},Pt.prototype.getLines=function(t,o,r,s){var n,i,a,l,c,u,d,p=t;if(t>=o)return"";for(u=new Array(o-t),n=0;p<o;p++,n++){for(i=0,d=l=this.bMarks[p],p+1<o||s?c=this.eMarks[p]+1:c=this.eMarks[p];l<c&&i<r;){if(a=this.src.charCodeAt(l),gr(a))a===9?i+=4-(i+this.bsCount[p])%4:i++;else if(l-d<this.tShift[p])i++;else break;l++}i>r?u[n]=new Array(i-r+1).join(" ")+this.src.slice(l,c):u[n]=this.src.slice(l,c)}return u.join("")},Pt.prototype.Token=Ba;var Mp=Pt,Ip=Os,br=[["table",ap,["paragraph","reference"]],["code",lp],["fence",cp,["paragraph","reference","blockquote","list"]],["blockquote",up,["paragraph","reference","blockquote","list"]],["hr",hp,["paragraph","reference","blockquote","list"]],["list",fp,["paragraph","reference","blockquote"]],["reference",bp],["html_block",Lp,["paragraph","reference","blockquote"]],["heading",zp,["paragraph","reference","blockquote"]],["lheading",Rp],["paragraph",Pp]];function mr(){this.ruler=new Ip;for(var e=0;e<br.length;e++)this.ruler.push(br[e][0],br[e][1],{alt:(br[e][2]||[]).slice()})}mr.prototype.tokenize=function(e,t,o){for(var r,s,n=this.ruler.getRules(""),i=n.length,a=t,l=!1,c=e.md.options.maxNesting;a<o&&(e.line=a=e.skipEmptyLines(a),!(a>=o||e.sCount[a]<e.blkIndent));){if(e.level>=c){e.line=o;break}for(s=0;s<i&&(r=n[s](e,a,o,!1),!r);s++);e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),a=e.line,a<o&&e.isEmpty(a)&&(l=!0,a++,e.line=a)}},mr.prototype.parse=function(e,t,o,r){var s;e&&(s=new this.State(e,t,o,r),this.tokenize(s,s.line,s.lineMax))},mr.prototype.State=Mp;var Fp=mr;function Bp(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Op=function(t,o){for(var r=t.pos;r<t.posMax&&!Bp(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(o||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)},Np=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Vp=function(t,o){var r,s,n,i,a,l,c,u;return!t.md.options.linkify||t.linkLevel>0||(r=t.pos,s=t.posMax,r+3>s)||t.src.charCodeAt(r)!==58||t.src.charCodeAt(r+1)!==47||t.src.charCodeAt(r+2)!==47||(n=t.pending.match(Np),!n)||(i=n[1],a=t.md.linkify.matchAtStart(t.src.slice(r-i.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),c=t.md.normalizeLink(l),!t.md.validateLink(c))?!1:(o||(t.pending=t.pending.slice(0,-i.length),u=t.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=t.push("text","",0),u.content=t.md.normalizeLinkText(l),u=t.push("link_close","a",-1),u.markup="linkify",u.info="auto"),t.pos+=l.length-i.length,!0)},Hp=O.isSpace,Up=function(t,o){var r,s,n,i=t.pos;if(t.src.charCodeAt(i)!==10)return!1;if(r=t.pending.length-1,s=t.posMax,!o)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(n=r-1;n>=1&&t.pending.charCodeAt(n-1)===32;)n--;t.pending=t.pending.slice(0,n),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(i++;i<s&&Hp(t.src.charCodeAt(i));)i++;return t.pos=i,!0},jp=O.isSpace,Gs=[],Oa=0;Oa<256;Oa++)Gs.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Gs[e.charCodeAt(0)]=1});var Gp=function(t,o){var r,s,n,i,a,l=t.pos,c=t.posMax;if(t.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(r=t.src.charCodeAt(l),r===10){for(o||t.push("hardbreak","br",0),l++;l<c&&(r=t.src.charCodeAt(l),!!jp(r));)l++;return t.pos=l,!0}return i=t.src[l],r>=55296&&r<=56319&&l+1<c&&(s=t.src.charCodeAt(l+1),s>=56320&&s<=57343&&(i+=t.src[l+1],l++)),n="\\"+i,o||(a=t.push("text_special","",0),r<256&&Gs[r]!==0?a.content=i:a.content=n,a.markup=n,a.info="escape"),t.pos=l+1,!0},Zp=function(t,o){var r,s,n,i,a,l,c,u,d=t.pos,p=t.src.charCodeAt(d);if(p!==96)return!1;for(r=d,d++,s=t.posMax;d<s&&t.src.charCodeAt(d)===96;)d++;if(n=t.src.slice(r,d),c=n.length,t.backticksScanned&&(t.backticks[c]||0)<=r)return o||(t.pending+=n),t.pos+=c,!0;for(a=l=d;(a=t.src.indexOf("`",l))!==-1;){for(l=a+1;l<s&&t.src.charCodeAt(l)===96;)l++;if(u=l-a,u===c)return o||(i=t.push("code_inline","code",0),i.markup=n,i.content=t.src.slice(d,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=l,!0;t.backticks[u]=a}return t.backticksScanned=!0,o||(t.pending+=n),t.pos+=c,!0},vr={};vr.tokenize=function(t,o){var r,s,n,i,a,l=t.pos,c=t.src.charCodeAt(l);if(o||c!==126||(s=t.scanDelims(t.pos,!0),i=s.length,a=String.fromCharCode(c),i<2))return!1;for(i%2&&(n=t.push("text","",0),n.content=a,i--),r=0;r<i;r+=2)n=t.push("text","",0),n.content=a+a,t.delimiters.push({marker:c,length:0,token:t.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return t.pos+=s.length,!0};function Na(e,t){var o,r,s,n,i,a=[],l=t.length;for(o=0;o<l;o++)s=t[o],s.marker===126&&s.end!==-1&&(n=t[s.end],i=e.tokens[s.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=e.tokens[n.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",e.tokens[n.token-1].type==="text"&&e.tokens[n.token-1].content==="~"&&a.push(n.token-1));for(;a.length;){for(o=a.pop(),r=o+1;r<e.tokens.length&&e.tokens[r].type==="s_close";)r++;r--,o!==r&&(i=e.tokens[r],e.tokens[r]=e.tokens[o],e.tokens[o]=i)}}vr.postProcess=function(t){var o,r=t.tokens_meta,s=t.tokens_meta.length;for(Na(t,t.delimiters),o=0;o<s;o++)r[o]&&r[o].delimiters&&Na(t,r[o].delimiters)};var yr={};yr.tokenize=function(t,o){var r,s,n,i=t.pos,a=t.src.charCodeAt(i);if(o||a!==95&&a!==42)return!1;for(s=t.scanDelims(t.pos,a===42),r=0;r<s.length;r++)n=t.push("text","",0),n.content=String.fromCharCode(a),t.delimiters.push({marker:a,length:s.length,token:t.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return t.pos+=s.length,!0};function Va(e,t){var o,r,s,n,i,a,l=t.length;for(o=l-1;o>=0;o--)r=t[o],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(s=t[r.end],a=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===s.token+1,i=String.fromCharCode(r.marker),n=e.tokens[r.token],n.type=a?"strong_open":"em_open",n.tag=a?"strong":"em",n.nesting=1,n.markup=a?i+i:i,n.content="",n=e.tokens[s.token],n.type=a?"strong_close":"em_close",n.tag=a?"strong":"em",n.nesting=-1,n.markup=a?i+i:i,n.content="",a&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--))}yr.postProcess=function(t){var o,r=t.tokens_meta,s=t.tokens_meta.length;for(Va(t,t.delimiters),o=0;o<s;o++)r[o]&&r[o].delimiters&&Va(t,r[o].delimiters)};var Wp=O.normalizeReference,Zs=O.isSpace,Kp=function(t,o){var r,s,n,i,a,l,c,u,d,p="",h="",b=t.pos,m=t.posMax,w=t.pos,y=!0;if(t.src.charCodeAt(t.pos)!==91||(a=t.pos+1,i=t.md.helpers.parseLinkLabel(t,t.pos,!0),i<0))return!1;if(l=i+1,l<m&&t.src.charCodeAt(l)===40){for(y=!1,l++;l<m&&(s=t.src.charCodeAt(l),!(!Zs(s)&&s!==10));l++);if(l>=m)return!1;if(w=l,c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),c.ok){for(p=t.md.normalizeLink(c.str),t.md.validateLink(p)?l=c.pos:p="",w=l;l<m&&(s=t.src.charCodeAt(l),!(!Zs(s)&&s!==10));l++);if(c=t.md.helpers.parseLinkTitle(t.src,l,t.posMax),l<m&&w!==l&&c.ok)for(h=c.str,l=c.pos;l<m&&(s=t.src.charCodeAt(l),!(!Zs(s)&&s!==10));l++);}(l>=m||t.src.charCodeAt(l)!==41)&&(y=!0),l++}if(y){if(typeof t.env.references>"u")return!1;if(l<m&&t.src.charCodeAt(l)===91?(w=l+1,l=t.md.helpers.parseLinkLabel(t,l),l>=0?n=t.src.slice(w,l++):l=i+1):l=i+1,n||(n=t.src.slice(a,i)),u=t.env.references[Wp(n)],!u)return t.pos=b,!1;p=u.href,h=u.title}return o||(t.pos=a,t.posMax=i,d=t.push("link_open","a",1),d.attrs=r=[["href",p]],h&&r.push(["title",h]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,d=t.push("link_close","a",-1)),t.pos=l,t.posMax=m,!0},Yp=O.normalizeReference,Ws=O.isSpace,Jp=function(t,o){var r,s,n,i,a,l,c,u,d,p,h,b,m,w="",y=t.pos,v=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(l=t.pos+2,a=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),a<0))return!1;if(c=a+1,c<v&&t.src.charCodeAt(c)===40){for(c++;c<v&&(s=t.src.charCodeAt(c),!(!Ws(s)&&s!==10));c++);if(c>=v)return!1;for(m=c,d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),d.ok&&(w=t.md.normalizeLink(d.str),t.md.validateLink(w)?c=d.pos:w=""),m=c;c<v&&(s=t.src.charCodeAt(c),!(!Ws(s)&&s!==10));c++);if(d=t.md.helpers.parseLinkTitle(t.src,c,t.posMax),c<v&&m!==c&&d.ok)for(p=d.str,c=d.pos;c<v&&(s=t.src.charCodeAt(c),!(!Ws(s)&&s!==10));c++);else p="";if(c>=v||t.src.charCodeAt(c)!==41)return t.pos=y,!1;c++}else{if(typeof t.env.references>"u")return!1;if(c<v&&t.src.charCodeAt(c)===91?(m=c+1,c=t.md.helpers.parseLinkLabel(t,c),c>=0?i=t.src.slice(m,c++):c=a+1):c=a+1,i||(i=t.src.slice(l,a)),u=t.env.references[Yp(i)],!u)return t.pos=y,!1;w=u.href,p=u.title}return o||(n=t.src.slice(l,a),t.md.inline.parse(n,t.md,t.env,b=[]),h=t.push("image","img",0),h.attrs=r=[["src",w],["alt",""]],h.children=b,h.content=n,p&&r.push(["title",p])),t.pos=c,t.posMax=v,!0},Qp=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Xp=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,tf=function(t,o){var r,s,n,i,a,l,c=t.pos;if(t.src.charCodeAt(c)!==60)return!1;for(a=t.pos,l=t.posMax;;){if(++c>=l||(i=t.src.charCodeAt(c),i===60))return!1;if(i===62)break}return r=t.src.slice(a+1,c),Xp.test(r)?(s=t.md.normalizeLink(r),t.md.validateLink(s)?(o||(n=t.push("link_open","a",1),n.attrs=[["href",s]],n.markup="autolink",n.info="auto",n=t.push("text","",0),n.content=t.md.normalizeLinkText(r),n=t.push("link_close","a",-1),n.markup="autolink",n.info="auto"),t.pos+=r.length+2,!0):!1):Qp.test(r)?(s=t.md.normalizeLink("mailto:"+r),t.md.validateLink(s)?(o||(n=t.push("link_open","a",1),n.attrs=[["href",s]],n.markup="autolink",n.info="auto",n=t.push("text","",0),n.content=t.md.normalizeLinkText(r),n=t.push("link_close","a",-1),n.markup="autolink",n.info="auto"),t.pos+=r.length+2,!0):!1):!1},ef=fr.HTML_TAG_RE;function of(e){return/^<a[>\s]/i.test(e)}function rf(e){return/^<\/a\s*>/i.test(e)}function sf(e){var t=e|32;return t>=97&&t<=122}var nf=function(t,o){var r,s,n,i,a=t.pos;return!t.md.options.html||(n=t.posMax,t.src.charCodeAt(a)!==60||a+2>=n)||(r=t.src.charCodeAt(a+1),r!==33&&r!==63&&r!==47&&!sf(r))||(s=t.src.slice(a).match(ef),!s)?!1:(o||(i=t.push("html_inline","",0),i.content=t.src.slice(a,a+s[0].length),of(i.content)&&t.linkLevel++,rf(i.content)&&t.linkLevel--),t.pos+=s[0].length,!0)},Ha=aa,af=O.has,lf=O.isValidEntityCode,Ua=O.fromCodePoint,cf=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,uf=/^&([a-z][a-z0-9]{1,31});/i,df=function(t,o){var r,s,n,i,a=t.pos,l=t.posMax;if(t.src.charCodeAt(a)!==38||a+1>=l)return!1;if(r=t.src.charCodeAt(a+1),r===35){if(n=t.src.slice(a).match(cf),n)return o||(s=n[1][0].toLowerCase()==="x"?parseInt(n[1].slice(1),16):parseInt(n[1],10),i=t.push("text_special","",0),i.content=lf(s)?Ua(s):Ua(65533),i.markup=n[0],i.info="entity"),t.pos+=n[0].length,!0}else if(n=t.src.slice(a).match(uf),n&&af(Ha,n[1]))return o||(i=t.push("text_special","",0),i.content=Ha[n[1]],i.markup=n[0],i.info="entity"),t.pos+=n[0].length,!0;return!1};function ja(e,t){var o,r,s,n,i,a,l,c,u={},d=t.length;if(d){var p=0,h=-2,b=[];for(o=0;o<d;o++)if(s=t[o],b.push(0),(t[p].marker!==s.marker||h!==s.token-1)&&(p=o),h=s.token,s.length=s.length||0,!!s.close){for(u.hasOwnProperty(s.marker)||(u[s.marker]=[-1,-1,-1,-1,-1,-1]),i=u[s.marker][(s.open?3:0)+s.length%3],r=p-b[p]-1,a=r;r>i;r-=b[r]+1)if(n=t[r],n.marker===s.marker&&n.open&&n.end<0&&(l=!1,(n.close||s.open)&&(n.length+s.length)%3===0&&(n.length%3!==0||s.length%3!==0)&&(l=!0),!l)){c=r>0&&!t[r-1].open?b[r-1]+1:0,b[o]=o-r+c,b[r]=c,s.open=!1,n.end=o,n.close=!1,a=-1,h=-2;break}a!==-1&&(u[s.marker][(s.open?3:0)+(s.length||0)%3]=a)}}}var hf=function(t){var o,r=t.tokens_meta,s=t.tokens_meta.length;for(ja(t,t.delimiters),o=0;o<s;o++)r[o]&&r[o].delimiters&&ja(t,r[o].delimiters)},pf=function(t){var o,r,s=0,n=t.tokens,i=t.tokens.length;for(o=r=0;o<i;o++)n[o].nesting<0&&s--,n[o].level=s,n[o].nesting>0&&s++,n[o].type==="text"&&o+1<i&&n[o+1].type==="text"?n[o+1].content=n[o].content+n[o+1].content:(o!==r&&(n[r]=n[o]),r++);o!==r&&(n.length=r)},Ks=Ns,Ga=O.isWhiteSpace,Za=O.isPunctChar,Wa=O.isMdAsciiPunct;function qo(e,t,o,r){this.src=e,this.env=o,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}qo.prototype.pushPending=function(){var e=new Ks("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},qo.prototype.push=function(e,t,o){this.pending&&this.pushPending();var r=new Ks(e,t,o),s=null;return o<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,o>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(s),r},qo.prototype.scanDelims=function(e,t){var o=e,r,s,n,i,a,l,c,u,d,p=!0,h=!0,b=this.posMax,m=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;o<b&&this.src.charCodeAt(o)===m;)o++;return n=o-e,s=o<b?this.src.charCodeAt(o):32,c=Wa(r)||Za(String.fromCharCode(r)),d=Wa(s)||Za(String.fromCharCode(s)),l=Ga(r),u=Ga(s),u?p=!1:d&&(l||c||(p=!1)),l?h=!1:c&&(u||d||(h=!1)),t?(i=p,a=h):(i=p&&(!h||c),a=h&&(!p||d)),{can_open:i,can_close:a,length:n}},qo.prototype.Token=Ks;var ff=qo,Ka=Os,Ys=[["text",Op],["linkify",Vp],["newline",Up],["escape",Gp],["backticks",Zp],["strikethrough",vr.tokenize],["emphasis",yr.tokenize],["link",Kp],["image",Jp],["autolink",tf],["html_inline",nf],["entity",df]],Js=[["balance_pairs",hf],["strikethrough",vr.postProcess],["emphasis",yr.postProcess],["fragments_join",pf]];function Do(){var e;for(this.ruler=new Ka,e=0;e<Ys.length;e++)this.ruler.push(Ys[e][0],Ys[e][1]);for(this.ruler2=new Ka,e=0;e<Js.length;e++)this.ruler2.push(Js[e][0],Js[e][1])}Do.prototype.skipToken=function(e){var t,o,r=e.pos,s=this.ruler.getRules(""),n=s.length,i=e.md.options.maxNesting,a=e.cache;if(typeof a[r]<"u"){e.pos=a[r];return}if(e.level<i)for(o=0;o<n&&(e.level++,t=s[o](e,!0),e.level--,!t);o++);else e.pos=e.posMax;t||e.pos++,a[r]=e.pos},Do.prototype.tokenize=function(e){for(var t,o,r=this.ruler.getRules(""),s=r.length,n=e.posMax,i=e.md.options.maxNesting;e.pos<n;){if(e.level<i)for(o=0;o<s&&(t=r[o](e,!1),!t);o++);if(t){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Do.prototype.parse=function(e,t,o,r){var s,n,i,a=new this.State(e,t,o,r);for(this.tokenize(a),n=this.ruler2.getRules(""),i=n.length,s=0;s<i;s++)n[s](a)},Do.prototype.State=ff;var gf=Do,Qs,Ya;function bf(){return Ya||(Ya=1,Qs=function(e){var t={};e=e||{},t.src_Any=ba().source,t.src_Cc=va().source,t.src_Z=_a().source,t.src_P=Ps.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var o="[><|]";return t.src_pseudo_letter="(?:(?!"+o+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+o+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Qs}function Xs(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(o){o&&Object.keys(o).forEach(function(r){e[r]=o[r]})}),e}function wr(e){return Object.prototype.toString.call(e)}function mf(e){return wr(e)==="[object String]"}function vf(e){return wr(e)==="[object Object]"}function yf(e){return wr(e)==="[object RegExp]"}function Ja(e){return wr(e)==="[object Function]"}function wf(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Qa={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _f(e){return Object.keys(e||{}).reduce(function(t,o){return t||Qa.hasOwnProperty(o)},!1)}var xf={"http:":{validate:function(e,t,o){var r=e.slice(t);return o.re.http||(o.re.http=new RegExp("^\\/\\/"+o.re.src_auth+o.re.src_host_port_strict+o.re.src_path,"i")),o.re.http.test(r)?r.match(o.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,o){var r=e.slice(t);return o.re.no_http||(o.re.no_http=new RegExp("^"+o.re.src_auth+"(?:localhost|(?:(?:"+o.re.src_domain+")\\.)+"+o.re.src_domain_root+")"+o.re.src_port+o.re.src_host_terminator+o.re.src_path,"i")),o.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(o.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,o){var r=e.slice(t);return o.re.mailto||(o.re.mailto=new RegExp("^"+o.re.src_email_name+"@"+o.re.src_host_strict,"i")),o.re.mailto.test(r)?r.match(o.re.mailto)[0].length:0}}},kf="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Af="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Cf(e){e.__index__=-1,e.__text_cache__=""}function $f(e){return function(t,o){var r=t.slice(o);return e.test(r)?r.match(e)[0].length:0}}function Xa(){return function(e,t){t.normalize(e)}}function _r(e){var t=e.re=bf()(e.__opts__),o=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||o.push(kf),o.push(t.src_xn),t.src_tlds=o.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var s=[];e.__compiled__={};function n(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){var l=e.__schemas__[a];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[a]=c,vf(l)){yf(l.validate)?c.validate=$f(l.validate):Ja(l.validate)?c.validate=l.validate:n(a,l),Ja(l.normalize)?c.normalize=l.normalize:l.normalize?n(a,l):c.normalize=Xa();return}if(mf(l)){s.push(a);return}n(a,l)}}),s.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:Xa()};var i=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(wf).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Cf(e)}function Ef(e,t){var o=e.__index__,r=e.__last_index__,s=e.__text_cache__.slice(o,r);this.schema=e.__schema__.toLowerCase(),this.index=o+t,this.lastIndex=r+t,this.raw=s,this.text=s,this.url=s}function tn(e,t){var o=new Ef(e,t);return e.__compiled__[o.schema].normalize(o,e),o}function gt(e,t){if(!(this instanceof gt))return new gt(e,t);t||_f(e)&&(t=e,e={}),this.__opts__=Xs({},Qa,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Xs({},xf,e),this.__compiled__={},this.__tlds__=Af,this.__tlds_replaced__=!1,this.re={},_r(this)}gt.prototype.add=function(t,o){return this.__schemas__[t]=o,_r(this),this},gt.prototype.set=function(t){return this.__opts__=Xs(this.__opts__,t),this},gt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var o,r,s,n,i,a,l,c,u;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(o=l.exec(t))!==null;)if(n=this.testSchemaAt(t,o[2],l.lastIndex),n){this.__schema__=o[2],this.__index__=o.index+o[1].length,this.__last_index__=o.index+o[0].length+n;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=t.indexOf("@"),u>=0&&(s=t.match(this.re.email_fuzzy))!==null&&(i=s.index+s[1].length,a=s.index+s[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0},gt.prototype.pretest=function(t){return this.re.pretest.test(t)},gt.prototype.testSchemaAt=function(t,o,r){return this.__compiled__[o.toLowerCase()]?this.__compiled__[o.toLowerCase()].validate(t,r,this):0},gt.prototype.match=function(t){var o=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(tn(this,o)),o=this.__last_index__);for(var s=o?t.slice(o):t;this.test(s);)r.push(tn(this,o)),s=s.slice(this.__last_index__),o+=this.__last_index__;return r.length?r:null},gt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var o=this.re.schema_at_start.exec(t);if(!o)return null;var r=this.testSchemaAt(t,o[2],o[0].length);return r?(this.__schema__=o[2],this.__index__=o.index+o[1].length,this.__last_index__=o.index+o[0].length+r,tn(this,0)):null},gt.prototype.tlds=function(t,o){return t=Array.isArray(t)?t:[t],o?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,s,n){return r!==n[s-1]}).reverse(),_r(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,_r(this),this)},gt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},gt.prototype.onCompile=function(){};var Sf=gt;const je=2147483647,Mt=36,en=1,To=26,qf=38,Df=700,tl=72,el=128,ol="-",Tf=/^xn--/,Lf=/[^\0-\x7F]/,zf=/[\x2E\u3002\uFF0E\uFF61]/g,Rf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},on=Mt-en,It=Math.floor,rn=String.fromCharCode;function ne(e){throw new RangeError(Rf[e])}function Pf(e,t){const o=[];let r=e.length;for(;r--;)o[r]=t(e[r]);return o}function rl(e,t){const o=e.split("@");let r="";o.length>1&&(r=o[0]+"@",e=o[1]),e=e.replace(zf,".");const s=e.split("."),n=Pf(s,t).join(".");return r+n}function sn(e){const t=[];let o=0;const r=e.length;for(;o<r;){const s=e.charCodeAt(o++);if(s>=55296&&s<=56319&&o<r){const n=e.charCodeAt(o++);(n&64512)==56320?t.push(((s&1023)<<10)+(n&1023)+65536):(t.push(s),o--)}else t.push(s)}return t}const sl=e=>String.fromCodePoint(...e),Mf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Mt},nl=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},il=function(e,t,o){let r=0;for(e=o?It(e/Df):e>>1,e+=It(e/t);e>on*To>>1;r+=Mt)e=It(e/on);return It(r+(on+1)*e/(e+qf))},nn=function(e){const t=[],o=e.length;let r=0,s=el,n=tl,i=e.lastIndexOf(ol);i<0&&(i=0);for(let a=0;a<i;++a)e.charCodeAt(a)>=128&&ne("not-basic"),t.push(e.charCodeAt(a));for(let a=i>0?i+1:0;a<o;){const l=r;for(let u=1,d=Mt;;d+=Mt){a>=o&&ne("invalid-input");const p=Mf(e.charCodeAt(a++));p>=Mt&&ne("invalid-input"),p>It((je-r)/u)&&ne("overflow"),r+=p*u;const h=d<=n?en:d>=n+To?To:d-n;if(p<h)break;const b=Mt-h;u>It(je/b)&&ne("overflow"),u*=b}const c=t.length+1;n=il(r-l,c,l==0),It(r/c)>je-s&&ne("overflow"),s+=It(r/c),r%=c,t.splice(r++,0,s)}return String.fromCodePoint(...t)},an=function(e){const t=[];e=sn(e);const o=e.length;let r=el,s=0,n=tl;for(const l of e)l<128&&t.push(rn(l));const i=t.length;let a=i;for(i&&t.push(ol);a<o;){let l=je;for(const u of e)u>=r&&u<l&&(l=u);const c=a+1;l-r>It((je-s)/c)&&ne("overflow"),s+=(l-r)*c,r=l;for(const u of e)if(u<r&&++s>je&&ne("overflow"),u===r){let d=s;for(let p=Mt;;p+=Mt){const h=p<=n?en:p>=n+To?To:p-n;if(d<h)break;const b=d-h,m=Mt-h;t.push(rn(nl(h+b%m,0))),d=It(b/m)}t.push(rn(nl(d,0))),n=il(s,c,a===i),s=0,++a}++s,++r}return t.join("")},al=function(e){return rl(e,function(t){return Tf.test(t)?nn(t.slice(4).toLowerCase()):t})},ll=function(e){return rl(e,function(t){return Lf.test(t)?"xn--"+an(t):t})},If=_c(Object.freeze(Object.defineProperty({__proto__:null,decode:nn,default:{version:"2.1.0",ucs2:{decode:sn,encode:sl},decode:nn,encode:an,toASCII:ll,toUnicode:al},encode:an,toASCII:ll,toUnicode:al,ucs2decode:sn,ucs2encode:sl},Symbol.toStringTag,{value:"Module"})));var Ff={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Bf={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Of={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Lo=O,Nf=dr,Vf=Mh,Hf=ip,Uf=Fp,jf=gf,Gf=Sf,$e=Ne,cl=If,Zf={default:Ff,zero:Bf,commonmark:Of},Wf=/^(vbscript|javascript|file|data):/,Kf=/^data:image\/(gif|png|jpeg|webp);/;function Yf(e){var t=e.trim().toLowerCase();return Wf.test(t)?!!Kf.test(t):!0}var ul=["http:","https:","mailto:"];function Jf(e){var t=$e.parse(e,!0);if(t.hostname&&(!t.protocol||ul.indexOf(t.protocol)>=0))try{t.hostname=cl.toASCII(t.hostname)}catch{}return $e.encode($e.format(t))}function Qf(e){var t=$e.parse(e,!0);if(t.hostname&&(!t.protocol||ul.indexOf(t.protocol)>=0))try{t.hostname=cl.toUnicode(t.hostname)}catch{}return $e.decode($e.format(t),$e.decode.defaultChars+"%")}function vt(e,t){if(!(this instanceof vt))return new vt(e,t);t||Lo.isString(e)||(t=e||{},e="default"),this.inline=new jf,this.block=new Uf,this.core=new Hf,this.renderer=new Vf,this.linkify=new Gf,this.validateLink=Yf,this.normalizeLink=Jf,this.normalizeLinkText=Qf,this.utils=Lo,this.helpers=Lo.assign({},Nf),this.options={},this.configure(e),t&&this.set(t)}vt.prototype.set=function(e){return Lo.assign(this.options,e),this},vt.prototype.configure=function(e){var t=this,o;if(Lo.isString(e)&&(o=e,e=Zf[o],!e))throw new Error('Wrong `markdown-it` preset "'+o+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},vt.prototype.enable=function(e,t){var o=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){o=o.concat(this[s].ruler.enable(e,!0))},this),o=o.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(s){return o.indexOf(s)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},vt.prototype.disable=function(e,t){var o=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){o=o.concat(this[s].ruler.disable(e,!0))},this),o=o.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(s){return o.indexOf(s)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},vt.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},vt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var o=new this.core.State(e,this,t);return this.core.process(o),o.tokens},vt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},vt.prototype.parseInline=function(e,t){var o=new this.core.State(e,this,t);return o.inlineMode=!0,this.core.process(o),o.tokens},vt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Xf=vt,tg=Xf;const eg=Xr(tg);function og(e,t){var o,r,s=e.attrs[e.attrIndex("href")][1];for(o=0;o<t.length;++o){if(r=t[o],typeof r.matcher=="function"){if(r.matcher(s,r))return r;continue}return r}}function rg(e,t,o){Object.keys(o).forEach(function(r){var s,n=o[r];r==="className"&&(r="class"),s=t[e].attrIndex(r),s<0?t[e].attrPush([r,n]):t[e].attrs[s][1]=n})}function dl(e,t){t?t=Array.isArray(t)?t:[t]:t=[],Object.freeze(t);var o=e.renderer.rules.link_open||this.defaultRender;e.renderer.rules.link_open=function(r,s,n,i,a){var l=og(r[s],t),c=l&&l.attrs;return c&&rg(s,r,c),o(r,s,n,i,a)}}dl.defaultRender=function(e,t,o,r,s){return s.renderToken(e,t,o)};var sg=dl;const ng=Xr(sg);function ig(){const e=new eg({linkify:!0});return e.use(ng,{attrs:{target:"_blank",rel:"noopener"}}),e}async function hl(e){const t=ig();return A`${Le(t.render(e))}`}var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,xr=(e,t,o,r)=>{for(var s=r>1?void 0:r?lg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&ag(t,o,s),s};let Ge=class extends at{constructor(){super(...arguments),this.type="assistant"}disconnectedCallback(){super.disconnectedCallback(),this._removeCopyEvents()}updated(e){super.updated(e),e.has("message")&&requestIdleCallback(()=>{this._addCopyEvents()})}get _isBot(){return this.message.author==="assistant"||this.message.author==="system"}_removeMessageHandler(){this.emit("message:remove",{detail:this.message})}_addCopyEvents(){this.copyBtns.forEach(e=>{e.addEventListener("click",()=>{var o,r;const t=(r=(o=e.parentElement)==null?void 0:o.nextElementSibling)==null?void 0:r.textContent;t&&Fc(t).then(()=>{e.textContent="Success",setTimeout(()=>{e.textContent="Copy"},500)})})})}_removeCopyEvents(){this.copyBtns.forEach(e=>{e.removeEventListener("click",()=>{})})}render(){return Oe(this.message.data||this.message.isThinking,()=>A`
4873
+ `},Re.text=function(t,e){return $t(t[e].content)},Re.html_block=function(t,e){return t[e].content},Re.html_inline=function(t,e){return t[e].content};function Vt(){this.rules=Mu({},Re)}Vt.prototype.renderAttrs=function(e){var o,r,s;if(!e.attrs)return"";for(s="",o=0,r=e.attrs.length;o<r;o++)s+=" "+$t(e.attrs[o][0])+'="'+$t(e.attrs[o][1])+'"';return s},Vt.prototype.renderToken=function(e,o,r){var s,a="",n=!1,c=e[o];return c.hidden?"":(c.block&&c.nesting!==-1&&o&&e[o-1].hidden&&(a+=`
4874
+ `),a+=(c.nesting===-1?"</":"<")+c.tag,a+=this.renderAttrs(c),c.nesting===0&&r.xhtmlOut&&(a+=" /"),c.block&&(n=!0,c.nesting===1&&o+1<e.length&&(s=e[o+1],(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===c.tag)&&(n=!1))),a+=n?`>
4875
+ `:">",a)},Vt.prototype.renderInline=function(t,e,o){for(var r,s="",a=this.rules,n=0,c=t.length;n<c;n++)r=t[n].type,typeof a[r]<"u"?s+=a[r](t,n,e,o,this):s+=this.renderToken(t,n,e);return s},Vt.prototype.renderInlineAsText=function(t,e,o){for(var r="",s=0,a=t.length;s<a;s++)t[s].type==="text"?r+=t[s].content:t[s].type==="image"?r+=this.renderInlineAsText(t[s].children,e,o):t[s].type==="softbreak"&&(r+=`
4876
+ `);return r},Vt.prototype.render=function(t,e,o){var r,s,a,n="",c=this.rules;for(r=0,s=t.length;r<s;r++)a=t[r].type,a==="inline"?n+=this.renderInline(t[r].children,e,o):typeof c[a]<"u"?n+=c[t[r].type](t,r,e,o,this):n+=this.renderToken(t,r,e,o);return n};var Fu=Vt;function Ce(){this.__rules__=[],this.__cache__=null}Ce.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Ce.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(o){o.enabled&&o.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(o){t.__cache__[o]=[],t.__rules__.forEach(function(r){r.enabled&&(o&&r.alt.indexOf(o)<0||t.__cache__[o].push(r.fn))})})},Ce.prototype.at=function(t,e,o){var r=this.__find__(t),s=o||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=s.alt||[],this.__cache__=null},Ce.prototype.before=function(t,e,o,r){var s=this.__find__(t),a=r||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:o,alt:a.alt||[]}),this.__cache__=null},Ce.prototype.after=function(t,e,o,r){var s=this.__find__(t),a=r||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:o,alt:a.alt||[]}),this.__cache__=null},Ce.prototype.push=function(t,e,o){var r=o||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},Ce.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var o=[];return t.forEach(function(r){var s=this.__find__(r);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[s].enabled=!0,o.push(r)},this),this.__cache__=null,o},Ce.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(o){o.enabled=!1}),this.enable(t,e)},Ce.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var o=[];return t.forEach(function(r){var s=this.__find__(r);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[s].enabled=!1,o.push(r)},this),this.__cache__=null,o},Ce.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Os=Ce,Bu=/\r\n?|\n/g,Ou=/\0/g,Nu=function(e){var o;o=e.src.replace(Bu,`
4877
+ `),o=o.replace(Ou,"�"),e.src=o},Vu=function(e){var o;e.inlineMode?(o=new e.Token("inline","",0),o.content=e.src,o.map=[0,1],o.children=[],e.tokens.push(o)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Hu=function(e){var o=e.tokens,r,s,a;for(s=0,a=o.length;s<a;s++)r=o[s],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Uu=O.arrayReplaceAt;function ju(t){return/^<a[>\s]/i.test(t)}function Gu(t){return/^<\/a\s*>/i.test(t)}var Zu=function(e){var o,r,s,a,n,c,i,l,d,f,h,u,g,m,w,y,v=e.tokens,k;if(e.md.options.linkify){for(r=0,s=v.length;r<s;r++)if(!(v[r].type!=="inline"||!e.md.linkify.pretest(v[r].content)))for(a=v[r].children,g=0,o=a.length-1;o>=0;o--){if(c=a[o],c.type==="link_close"){for(o--;a[o].level!==c.level&&a[o].type!=="link_open";)o--;continue}if(c.type==="html_inline"&&(ju(c.content)&&g>0&&g--,Gu(c.content)&&g++),!(g>0)&&c.type==="text"&&e.md.linkify.test(c.content)){for(d=c.content,k=e.md.linkify.match(d),i=[],u=c.level,h=0,k.length>0&&k[0].index===0&&o>0&&a[o-1].type==="text_special"&&(k=k.slice(1)),l=0;l<k.length;l++)m=k[l].url,w=e.md.normalizeLink(m),e.md.validateLink(w)&&(y=k[l].text,k[l].schema?k[l].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),f=k[l].index,f>h&&(n=new e.Token("text","",0),n.content=d.slice(h,f),n.level=u,i.push(n)),n=new e.Token("link_open","a",1),n.attrs=[["href",w]],n.level=u++,n.markup="linkify",n.info="auto",i.push(n),n=new e.Token("text","",0),n.content=y,n.level=u,i.push(n),n=new e.Token("link_close","a",-1),n.level=--u,n.markup="linkify",n.info="auto",i.push(n),h=k[l].lastIndex);h<d.length&&(n=new e.Token("text","",0),n.content=d.slice(h),n.level=u,i.push(n)),v[r].children=a=Uu(a,o,i)}}}},Ac=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Wu=/\((c|tm|r)\)/i,Ku=/\((c|tm|r)\)/ig,Yu={c:"©",r:"®",tm:"™"};function Ju(t,e){return Yu[e.toLowerCase()]}function Qu(t){var e,o,r=0;for(e=t.length-1;e>=0;e--)o=t[e],o.type==="text"&&!r&&(o.content=o.content.replace(Ku,Ju)),o.type==="link_open"&&o.info==="auto"&&r--,o.type==="link_close"&&o.info==="auto"&&r++}function Xu(t){var e,o,r=0;for(e=t.length-1;e>=0;e--)o=t[e],o.type==="text"&&!r&&Ac.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&r--,o.type==="link_close"&&o.info==="auto"&&r++}var eh=function(e){var o;if(e.md.options.typographer)for(o=e.tokens.length-1;o>=0;o--)e.tokens[o].type==="inline"&&(Wu.test(e.tokens[o].content)&&Qu(e.tokens[o].children),Ac.test(e.tokens[o].content)&&Xu(e.tokens[o].children))},Cc=O.isWhiteSpace,$c=O.isPunctChar,Ec=O.isMdAsciiPunct,th=/['"]/,Sc=/['"]/g,qc="’";function hr(t,e,o){return t.slice(0,e)+o+t.slice(e+1)}function oh(t,e){var o,r,s,a,n,c,i,l,d,f,h,u,g,m,w,y,v,k,C,$,_;for(C=[],o=0;o<t.length;o++){for(r=t[o],i=t[o].level,v=C.length-1;v>=0&&!(C[v].level<=i);v--);if(C.length=v+1,r.type==="text"){s=r.content,n=0,c=s.length;e:for(;n<c&&(Sc.lastIndex=n,a=Sc.exec(s),!!a);){if(w=y=!0,n=a.index+1,k=a[0]==="'",d=32,a.index-1>=0)d=s.charCodeAt(a.index-1);else for(v=o-1;v>=0&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v--)if(t[v].content){d=t[v].content.charCodeAt(t[v].content.length-1);break}if(f=32,n<c)f=s.charCodeAt(n);else for(v=o+1;v<t.length&&!(t[v].type==="softbreak"||t[v].type==="hardbreak");v++)if(t[v].content){f=t[v].content.charCodeAt(0);break}if(h=Ec(d)||$c(String.fromCharCode(d)),u=Ec(f)||$c(String.fromCharCode(f)),g=Cc(d),m=Cc(f),m?w=!1:u&&(g||h||(w=!1)),g?y=!1:h&&(m||u||(y=!1)),f===34&&a[0]==='"'&&d>=48&&d<=57&&(y=w=!1),w&&y&&(w=h,y=u),!w&&!y){k&&(r.content=hr(r.content,a.index,qc));continue}if(y){for(v=C.length-1;v>=0&&(l=C[v],!(C[v].level<i));v--)if(l.single===k&&C[v].level===i){l=C[v],k?($=e.md.options.quotes[2],_=e.md.options.quotes[3]):($=e.md.options.quotes[0],_=e.md.options.quotes[1]),r.content=hr(r.content,a.index,_),t[l.token].content=hr(t[l.token].content,l.pos,$),n+=_.length-1,l.token===o&&(n+=$.length-1),s=r.content,c=s.length,C.length=v;continue e}}w?C.push({token:o,pos:a.index,single:k,level:i}):y&&k&&(r.content=hr(r.content,a.index,qc))}}}}var rh=function(e){var o;if(e.md.options.typographer)for(o=e.tokens.length-1;o>=0;o--)e.tokens[o].type!=="inline"||!th.test(e.tokens[o].content)||oh(e.tokens[o].children,e)},sh=function(e){var o,r,s,a,n,c,i=e.tokens;for(o=0,r=i.length;o<r;o++)if(i[o].type==="inline"){for(s=i[o].children,n=s.length,a=0;a<n;a++)s[a].type==="text_special"&&(s[a].type="text");for(a=c=0;a<n;a++)s[a].type==="text"&&a+1<n&&s[a+1].type==="text"?s[a+1].content=s[a].content+s[a+1].content:(a!==c&&(s[c]=s[a]),c++);a!==c&&(s.length=c)}};function Ht(t,e,o){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=o,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ht.prototype.attrIndex=function(e){var o,r,s;if(!this.attrs)return-1;for(o=this.attrs,r=0,s=o.length;r<s;r++)if(o[r][0]===e)return r;return-1},Ht.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ht.prototype.attrSet=function(e,o){var r=this.attrIndex(e),s=[e,o];r<0?this.attrPush(s):this.attrs[r]=s},Ht.prototype.attrGet=function(e){var o=this.attrIndex(e),r=null;return o>=0&&(r=this.attrs[o][1]),r},Ht.prototype.attrJoin=function(e,o){var r=this.attrIndex(e);r<0?this.attrPush([e,o]):this.attrs[r][1]=this.attrs[r][1]+" "+o};var Ns=Ht,ah=Ns;function Dc(t,e,o){this.src=t,this.env=o,this.tokens=[],this.inlineMode=!1,this.md=e}Dc.prototype.Token=ah;var nh=Dc,ch=Os,Vs=[["normalize",Nu],["block",Vu],["inline",Hu],["linkify",Zu],["replacements",eh],["smartquotes",rh],["text_join",sh]];function Hs(){this.ruler=new ch;for(var t=0;t<Vs.length;t++)this.ruler.push(Vs[t][0],Vs[t][1])}Hs.prototype.process=function(t){var e,o,r;for(r=this.ruler.getRules(""),e=0,o=r.length;e<o;e++)r[e](t)},Hs.prototype.State=nh;var ih=Hs,Us=O.isSpace;function js(t,e){var o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(o,r)}function Tc(t){var e=[],o=0,r=t.length,s,a=!1,n=0,c="";for(s=t.charCodeAt(o);o<r;)s===124&&(a?(c+=t.substring(n,o-1),n=o):(e.push(c+t.substring(n,o)),c="",n=o+1)),a=s===92,o++,s=t.charCodeAt(o);return e.push(c+t.substring(n)),e}var lh=function(e,o,r,s){var a,n,c,i,l,d,f,h,u,g,m,w,y,v,k,C,$,_;if(o+2>r||(d=o+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(c=e.bMarks[d]+e.tShift[d],c>=e.eMarks[d])||($=e.src.charCodeAt(c++),$!==124&&$!==45&&$!==58)||c>=e.eMarks[d]||(_=e.src.charCodeAt(c++),_!==124&&_!==45&&_!==58&&!Us(_))||$===45&&Us(_))return!1;for(;c<e.eMarks[d];){if(a=e.src.charCodeAt(c),a!==124&&a!==45&&a!==58&&!Us(a))return!1;c++}for(n=js(e,o+1),f=n.split("|"),g=[],i=0;i<f.length;i++){if(m=f[i].trim(),!m){if(i===0||i===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?g.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?g.push("left"):g.push("")}if(n=js(e,o).trim(),n.indexOf("|")===-1||e.sCount[o]-e.blkIndent>=4||(f=Tc(n),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),h=f.length,h===0||h!==g.length))return!1;if(s)return!0;for(v=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),u=e.push("table_open","table",1),u.map=w=[o,0],u=e.push("thead_open","thead",1),u.map=[o,o+1],u=e.push("tr_open","tr",1),u.map=[o,o+1],i=0;i<f.length;i++)u=e.push("th_open","th",1),g[i]&&(u.attrs=[["style","text-align:"+g[i]]]),u=e.push("inline","",0),u.content=f[i].trim(),u.children=[],u=e.push("th_close","th",-1);for(u=e.push("tr_close","tr",-1),u=e.push("thead_close","thead",-1),d=o+2;d<r&&!(e.sCount[d]<e.blkIndent);d++){for(k=!1,i=0,l=C.length;i<l;i++)if(C[i](e,d,r,!0)){k=!0;break}if(k||(n=js(e,d).trim(),!n)||e.sCount[d]-e.blkIndent>=4)break;for(f=Tc(n),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===o+2&&(u=e.push("tbody_open","tbody",1),u.map=y=[o+2,0]),u=e.push("tr_open","tr",1),u.map=[d,d+1],i=0;i<h;i++)u=e.push("td_open","td",1),g[i]&&(u.attrs=[["style","text-align:"+g[i]]]),u=e.push("inline","",0),u.content=f[i]?f[i].trim():"",u.children=[],u=e.push("td_close","td",-1);u=e.push("tr_close","tr",-1)}return y&&(u=e.push("tbody_close","tbody",-1),y[1]=d),u=e.push("table_close","table",-1),w[1]=d,e.parentType=v,e.line=d,!0},dh=function(e,o,r){var s,a,n;if(e.sCount[o]-e.blkIndent<4)return!1;for(a=s=o+1;s<r;){if(e.isEmpty(s)){s++;continue}if(e.sCount[s]-e.blkIndent>=4){s++,a=s;continue}break}return e.line=a,n=e.push("code_block","code",0),n.content=e.getLines(o,a,4+e.blkIndent,!1)+`
4878
+ `,n.map=[o,e.line],!0},fh=function(e,o,r,s){var a,n,c,i,l,d,f,h=!1,u=e.bMarks[o]+e.tShift[o],g=e.eMarks[o];if(e.sCount[o]-e.blkIndent>=4||u+3>g||(a=e.src.charCodeAt(u),a!==126&&a!==96)||(l=u,u=e.skipChars(u,a),n=u-l,n<3)||(f=e.src.slice(l,u),c=e.src.slice(u,g),a===96&&c.indexOf(String.fromCharCode(a))>=0))return!1;if(s)return!0;for(i=o;i++,!(i>=r||(u=l=e.bMarks[i]+e.tShift[i],g=e.eMarks[i],u<g&&e.sCount[i]<e.blkIndent));)if(e.src.charCodeAt(u)===a&&!(e.sCount[i]-e.blkIndent>=4)&&(u=e.skipChars(u,a),!(u-l<n)&&(u=e.skipSpaces(u),!(u<g)))){h=!0;break}return n=e.sCount[o],e.line=i+(h?1:0),d=e.push("fence","code",0),d.info=c,d.content=e.getLines(o+1,i,n,!0),d.markup=f,d.map=[o,e.line],!0},Lc=O.isSpace,uh=function(e,o,r,s){var a,n,c,i,l,d,f,h,u,g,m,w,y,v,k,C,$,_,D,P,S=e.lineMax,q=e.bMarks[o]+e.tShift[o],I=e.eMarks[o];if(e.sCount[o]-e.blkIndent>=4||e.src.charCodeAt(q++)!==62)return!1;if(s)return!0;for(i=u=e.sCount[o]+1,e.src.charCodeAt(q)===32?(q++,i++,u++,a=!1,C=!0):e.src.charCodeAt(q)===9?(C=!0,(e.bsCount[o]+u)%4===3?(q++,i++,u++,a=!1):a=!0):C=!1,g=[e.bMarks[o]],e.bMarks[o]=q;q<I&&(n=e.src.charCodeAt(q),Lc(n));){n===9?u+=4-(u+e.bsCount[o]+(a?1:0))%4:u++;q++}for(m=[e.bsCount[o]],e.bsCount[o]=e.sCount[o]+1+(C?1:0),d=q>=I,v=[e.sCount[o]],e.sCount[o]=u-i,k=[e.tShift[o]],e.tShift[o]=q-e.bMarks[o],_=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",h=o+1;h<r&&(P=e.sCount[h]<e.blkIndent,q=e.bMarks[h]+e.tShift[h],I=e.eMarks[h],!(q>=I));h++){if(e.src.charCodeAt(q++)===62&&!P){for(i=u=e.sCount[h]+1,e.src.charCodeAt(q)===32?(q++,i++,u++,a=!1,C=!0):e.src.charCodeAt(q)===9?(C=!0,(e.bsCount[h]+u)%4===3?(q++,i++,u++,a=!1):a=!0):C=!1,g.push(e.bMarks[h]),e.bMarks[h]=q;q<I&&(n=e.src.charCodeAt(q),Lc(n));){n===9?u+=4-(u+e.bsCount[h]+(a?1:0))%4:u++;q++}d=q>=I,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(C?1:0),v.push(e.sCount[h]),e.sCount[h]=u-i,k.push(e.tShift[h]),e.tShift[h]=q-e.bMarks[h];continue}if(d)break;for($=!1,c=0,l=_.length;c<l;c++)if(_[c](e,h,r,!0)){$=!0;break}if($){e.lineMax=h,e.blkIndent!==0&&(g.push(e.bMarks[h]),m.push(e.bsCount[h]),k.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}g.push(e.bMarks[h]),m.push(e.bsCount[h]),k.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}for(w=e.blkIndent,e.blkIndent=0,D=e.push("blockquote_open","blockquote",1),D.markup=">",D.map=f=[o,0],e.md.block.tokenize(e,o,h),D=e.push("blockquote_close","blockquote",-1),D.markup=">",e.lineMax=S,e.parentType=y,f[1]=e.line,c=0;c<k.length;c++)e.bMarks[c+o]=g[c],e.tShift[c+o]=k[c],e.sCount[c+o]=v[c],e.bsCount[c+o]=m[c];return e.blkIndent=w,!0},hh=O.isSpace,bh=function(e,o,r,s){var a,n,c,i,l=e.bMarks[o]+e.tShift[o],d=e.eMarks[o];if(e.sCount[o]-e.blkIndent>=4||(a=e.src.charCodeAt(l++),a!==42&&a!==45&&a!==95))return!1;for(n=1;l<d;){if(c=e.src.charCodeAt(l++),c!==a&&!hh(c))return!1;c===a&&n++}return n<3?!1:(s||(e.line=o+1,i=e.push("hr","hr",0),i.map=[o,e.line],i.markup=Array(n+1).join(String.fromCharCode(a))),!0)},zc=O.isSpace;function Rc(t,e){var o,r,s,a;return r=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],o=t.src.charCodeAt(r++),o!==42&&o!==45&&o!==43||r<s&&(a=t.src.charCodeAt(r),!zc(a))?-1:r}function Pc(t,e){var o,r=t.bMarks[e]+t.tShift[e],s=r,a=t.eMarks[e];if(s+1>=a||(o=t.src.charCodeAt(s++),o<48||o>57))return-1;for(;;){if(s>=a)return-1;if(o=t.src.charCodeAt(s++),o>=48&&o<=57){if(s-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return s<a&&(o=t.src.charCodeAt(s),!zc(o))?-1:s}function ph(t,e){var o,r,s=t.level+2;for(o=e+2,r=t.tokens.length-2;o<r;o++)t.tokens[o].level===s&&t.tokens[o].type==="paragraph_open"&&(t.tokens[o+2].hidden=!0,t.tokens[o].hidden=!0,o+=2)}var gh=function(e,o,r,s){var a,n,c,i,l,d,f,h,u,g,m,w,y,v,k,C,$,_,D,P,S,q,I,W,ye,x,F,T,X=!1,Rr=!0;if(e.sCount[o]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[o]-e.listIndent>=4&&e.sCount[o]<e.blkIndent)return!1;if(s&&e.parentType==="paragraph"&&e.sCount[o]>=e.blkIndent&&(X=!0),(I=Pc(e,o))>=0){if(f=!0,ye=e.bMarks[o]+e.tShift[o],y=Number(e.src.slice(ye,I-1)),X&&y!==1)return!1}else if((I=Rc(e,o))>=0)f=!1;else return!1;if(X&&e.skipSpaces(I)>=e.eMarks[o])return!1;if(w=e.src.charCodeAt(I-1),s)return!0;for(m=e.tokens.length,f?(T=e.push("ordered_list_open","ol",1),y!==1&&(T.attrs=[["start",y]])):T=e.push("bullet_list_open","ul",1),T.map=g=[o,0],T.markup=String.fromCharCode(w),k=o,W=!1,F=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";k<r;){for(q=I,v=e.eMarks[k],d=C=e.sCount[k]+I-(e.bMarks[o]+e.tShift[o]);q<v;){if(a=e.src.charCodeAt(q),a===9)C+=4-(C+e.bsCount[k])%4;else if(a===32)C++;else break;q++}if(n=q,n>=v?l=1:l=C-d,l>4&&(l=1),i=d+l,T=e.push("list_item_open","li",1),T.markup=String.fromCharCode(w),T.map=h=[o,0],f&&(T.info=e.src.slice(ye,I-1)),S=e.tight,P=e.tShift[o],D=e.sCount[o],$=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=i,e.tight=!0,e.tShift[o]=n-e.bMarks[o],e.sCount[o]=C,n>=v&&e.isEmpty(o+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,o,r,!0),(!e.tight||W)&&(Rr=!1),W=e.line-o>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=$,e.tShift[o]=P,e.sCount[o]=D,e.tight=S,T=e.push("list_item_close","li",-1),T.markup=String.fromCharCode(w),k=o=e.line,h[1]=k,n=e.bMarks[o],k>=r||e.sCount[k]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)break;for(x=!1,c=0,u=F.length;c<u;c++)if(F[c](e,k,r,!0)){x=!0;break}if(x)break;if(f){if(I=Pc(e,k),I<0)break;ye=e.bMarks[k]+e.tShift[k]}else if(I=Rc(e,k),I<0)break;if(w!==e.src.charCodeAt(I-1))break}return f?T=e.push("ordered_list_close","ol",-1):T=e.push("bullet_list_close","ul",-1),T.markup=String.fromCharCode(w),g[1]=k,e.line=k,e.parentType=_,Rr&&ph(e,m),!0},mh=O.normalizeReference,br=O.isSpace,vh=function(e,o,r,s){var a,n,c,i,l,d,f,h,u,g,m,w,y,v,k,C,$=0,_=e.bMarks[o]+e.tShift[o],D=e.eMarks[o],P=o+1;if(e.sCount[o]-e.blkIndent>=4||e.src.charCodeAt(_)!==91)return!1;for(;++_<D;)if(e.src.charCodeAt(_)===93&&e.src.charCodeAt(_-1)!==92){if(_+1===D||e.src.charCodeAt(_+1)!==58)return!1;break}for(i=e.lineMax,k=e.md.block.ruler.getRules("reference"),g=e.parentType,e.parentType="reference";P<i&&!e.isEmpty(P);P++)if(!(e.sCount[P]-e.blkIndent>3)&&!(e.sCount[P]<0)){for(v=!1,d=0,f=k.length;d<f;d++)if(k[d](e,P,i,!0)){v=!0;break}if(v)break}for(y=e.getLines(o,P,e.blkIndent,!1).trim(),D=y.length,_=1;_<D;_++){if(a=y.charCodeAt(_),a===91)return!1;if(a===93){u=_;break}else a===10?$++:a===92&&(_++,_<D&&y.charCodeAt(_)===10&&$++)}if(u<0||y.charCodeAt(u+1)!==58)return!1;for(_=u+2;_<D;_++)if(a=y.charCodeAt(_),a===10)$++;else if(!br(a))break;if(m=e.md.helpers.parseLinkDestination(y,_,D),!m.ok||(l=e.md.normalizeLink(m.str),!e.md.validateLink(l)))return!1;for(_=m.pos,$+=m.lines,n=_,c=$,w=_;_<D;_++)if(a=y.charCodeAt(_),a===10)$++;else if(!br(a))break;for(m=e.md.helpers.parseLinkTitle(y,_,D),_<D&&w!==_&&m.ok?(C=m.str,_=m.pos,$+=m.lines):(C="",_=n,$=c);_<D&&(a=y.charCodeAt(_),!!br(a));)_++;if(_<D&&y.charCodeAt(_)!==10&&C)for(C="",_=n,$=c;_<D&&(a=y.charCodeAt(_),!!br(a));)_++;return _<D&&y.charCodeAt(_)!==10||(h=mh(y.slice(1,u)),!h)?!1:(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:C,href:l}),e.parentType=g,e.line=o+$+1),!0)},yh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],pr={},wh="[a-zA-Z_:][a-zA-Z0-9:._-]*",_h="[^\"'=<>`\\x00-\\x20]+",xh="'[^']*'",kh='"[^"]*"',Ah="(?:"+_h+"|"+xh+"|"+kh+")",Ch="(?:\\s+"+wh+"(?:\\s*=\\s*"+Ah+")?)",Mc="<[A-Za-z][A-Za-z0-9\\-]*"+Ch+"*\\s*\\/?>",Ic="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",$h="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Eh="<[?][\\s\\S]*?[?]>",Sh="<![A-Z]+\\s+[^>]*>",qh="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Dh=new RegExp("^(?:"+Mc+"|"+Ic+"|"+$h+"|"+Eh+"|"+Sh+"|"+qh+")"),Th=new RegExp("^(?:"+Mc+"|"+Ic+")");pr.HTML_TAG_RE=Dh,pr.HTML_OPEN_CLOSE_TAG_RE=Th;var Lh=yh,zh=pr.HTML_OPEN_CLOSE_TAG_RE,Ut=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Lh.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(zh.source+"\\s*$"),/^$/,!1]],Rh=function(e,o,r,s){var a,n,c,i,l=e.bMarks[o]+e.tShift[o],d=e.eMarks[o];if(e.sCount[o]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(i=e.src.slice(l,d),a=0;a<Ut.length&&!Ut[a][0].test(i);a++);if(a===Ut.length)return!1;if(s)return Ut[a][2];if(n=o+1,!Ut[a][1].test(i)){for(;n<r&&!(e.sCount[n]<e.blkIndent);n++)if(l=e.bMarks[n]+e.tShift[n],d=e.eMarks[n],i=e.src.slice(l,d),Ut[a][1].test(i)){i.length!==0&&n++;break}}return e.line=n,c=e.push("html_block","",0),c.map=[o,n],c.content=e.getLines(o,n,e.blkIndent,!0),!0},Fc=O.isSpace,Ph=function(e,o,r,s){var a,n,c,i,l=e.bMarks[o]+e.tShift[o],d=e.eMarks[o];if(e.sCount[o]-e.blkIndent>=4||(a=e.src.charCodeAt(l),a!==35||l>=d))return!1;for(n=1,a=e.src.charCodeAt(++l);a===35&&l<d&&n<=6;)n++,a=e.src.charCodeAt(++l);return n>6||l<d&&!Fc(a)?!1:(s||(d=e.skipSpacesBack(d,l),c=e.skipCharsBack(d,35,l),c>l&&Fc(e.src.charCodeAt(c-1))&&(d=c),e.line=o+1,i=e.push("heading_open","h"+String(n),1),i.markup="########".slice(0,n),i.map=[o,e.line],i=e.push("inline","",0),i.content=e.src.slice(l,d).trim(),i.map=[o,e.line],i.children=[],i=e.push("heading_close","h"+String(n),-1),i.markup="########".slice(0,n)),!0)},Mh=function(e,o,r){var s,a,n,c,i,l,d,f,h,u=o+1,g,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[o]-e.blkIndent>=4)return!1;for(g=e.parentType,e.parentType="paragraph";u<r&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)){if(e.sCount[u]>=e.blkIndent&&(l=e.bMarks[u]+e.tShift[u],d=e.eMarks[u],l<d&&(h=e.src.charCodeAt(l),(h===45||h===61)&&(l=e.skipChars(l,h),l=e.skipSpaces(l),l>=d)))){f=h===61?1:2;break}if(!(e.sCount[u]<0)){for(a=!1,n=0,c=m.length;n<c;n++)if(m[n](e,u,r,!0)){a=!0;break}if(a)break}}return f?(s=e.getLines(o,u,e.blkIndent,!1).trim(),e.line=u+1,i=e.push("heading_open","h"+String(f),1),i.markup=String.fromCharCode(h),i.map=[o,e.line],i=e.push("inline","",0),i.content=s,i.map=[o,e.line-1],i.children=[],i=e.push("heading_close","h"+String(f),-1),i.markup=String.fromCharCode(h),e.parentType=g,!0):!1},Ih=function(e,o){var r,s,a,n,c,i,l=o+1,d=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(i=e.parentType,e.parentType="paragraph";l<f&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(s=!1,a=0,n=d.length;a<n;a++)if(d[a](e,l,f,!0)){s=!0;break}if(s)break}return r=e.getLines(o,l,e.blkIndent,!1).trim(),e.line=l,c=e.push("paragraph_open","p",1),c.map=[o,e.line],c=e.push("inline","",0),c.content=r,c.map=[o,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=i,!0},Bc=Ns,gr=O.isSpace;function Pe(t,e,o,r){var s,a,n,c,i,l,d,f;for(this.src=t,this.md=e,this.env=o,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,f=!1,n=c=l=d=0,i=a.length;c<i;c++){if(s=a.charCodeAt(c),!f)if(gr(s)){l++,s===9?d+=4-d%4:d++;continue}else f=!0;(s===10||c===i-1)&&(s!==10&&c++,this.bMarks.push(n),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(d),this.bsCount.push(0),f=!1,l=0,d=0,n=c+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pe.prototype.push=function(t,e,o){var r=new Bc(t,e,o);return r.block=!0,o<0&&this.level--,r.level=this.level,o>0&&this.level++,this.tokens.push(r),r},Pe.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Pe.prototype.skipEmptyLines=function(e){for(var o=this.lineMax;e<o&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Pe.prototype.skipSpaces=function(e){for(var o,r=this.src.length;e<r&&(o=this.src.charCodeAt(e),!!gr(o));e++);return e},Pe.prototype.skipSpacesBack=function(e,o){if(e<=o)return e;for(;e>o;)if(!gr(this.src.charCodeAt(--e)))return e+1;return e},Pe.prototype.skipChars=function(e,o){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===o;e++);return e},Pe.prototype.skipCharsBack=function(e,o,r){if(e<=r)return e;for(;e>r;)if(o!==this.src.charCodeAt(--e))return e+1;return e},Pe.prototype.getLines=function(e,o,r,s){var a,n,c,i,l,d,f,h=e;if(e>=o)return"";for(d=new Array(o-e),a=0;h<o;h++,a++){for(n=0,f=i=this.bMarks[h],h+1<o||s?l=this.eMarks[h]+1:l=this.eMarks[h];i<l&&n<r;){if(c=this.src.charCodeAt(i),gr(c))c===9?n+=4-(n+this.bsCount[h])%4:n++;else if(i-f<this.tShift[h])n++;else break;i++}n>r?d[a]=new Array(n-r+1).join(" ")+this.src.slice(i,l):d[a]=this.src.slice(i,l)}return d.join("")},Pe.prototype.Token=Bc;var Fh=Pe,Bh=Os,mr=[["table",lh,["paragraph","reference"]],["code",dh],["fence",fh,["paragraph","reference","blockquote","list"]],["blockquote",uh,["paragraph","reference","blockquote","list"]],["hr",bh,["paragraph","reference","blockquote","list"]],["list",gh,["paragraph","reference","blockquote"]],["reference",vh],["html_block",Rh,["paragraph","reference","blockquote"]],["heading",Ph,["paragraph","reference","blockquote"]],["lheading",Mh],["paragraph",Ih]];function vr(){this.ruler=new Bh;for(var t=0;t<mr.length;t++)this.ruler.push(mr[t][0],mr[t][1],{alt:(mr[t][2]||[]).slice()})}vr.prototype.tokenize=function(t,e,o){for(var r,s,a=this.ruler.getRules(""),n=a.length,c=e,i=!1,l=t.md.options.maxNesting;c<o&&(t.line=c=t.skipEmptyLines(c),!(c>=o||t.sCount[c]<t.blkIndent));){if(t.level>=l){t.line=o;break}for(s=0;s<n&&(r=a[s](t,c,o,!1),!r);s++);t.tight=!i,t.isEmpty(t.line-1)&&(i=!0),c=t.line,c<o&&t.isEmpty(c)&&(i=!0,c++,t.line=c)}},vr.prototype.parse=function(t,e,o,r){var s;t&&(s=new this.State(t,e,o,r),this.tokenize(s,s.line,s.lineMax))},vr.prototype.State=Fh;var Oh=vr;function Nh(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Vh=function(e,o){for(var r=e.pos;r<e.posMax&&!Nh(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(o||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},Hh=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Uh=function(e,o){var r,s,a,n,c,i,l,d;return!e.md.options.linkify||e.linkLevel>0||(r=e.pos,s=e.posMax,r+3>s)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(a=e.pending.match(Hh),!a)||(n=a[1],c=e.md.linkify.matchAtStart(e.src.slice(r-n.length)),!c)||(i=c.url,i=i.replace(/\*+$/,""),l=e.md.normalizeLink(i),!e.md.validateLink(l))?!1:(o||(e.pending=e.pending.slice(0,-n.length),d=e.push("link_open","a",1),d.attrs=[["href",l]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(i),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=i.length-n.length,!0)},jh=O.isSpace,Gh=function(e,o){var r,s,a,n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;if(r=e.pending.length-1,s=e.posMax,!o)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(a=r-1;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<s&&jh(e.src.charCodeAt(n));)n++;return e.pos=n,!0},Zh=O.isSpace,Gs=[],Oc=0;Oc<256;Oc++)Gs.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Gs[t.charCodeAt(0)]=1});var Wh=function(e,o){var r,s,a,n,c,i=e.pos,l=e.posMax;if(e.src.charCodeAt(i)!==92||(i++,i>=l))return!1;if(r=e.src.charCodeAt(i),r===10){for(o||e.push("hardbreak","br",0),i++;i<l&&(r=e.src.charCodeAt(i),!!Zh(r));)i++;return e.pos=i,!0}return n=e.src[i],r>=55296&&r<=56319&&i+1<l&&(s=e.src.charCodeAt(i+1),s>=56320&&s<=57343&&(n+=e.src[i+1],i++)),a="\\"+n,o||(c=e.push("text_special","",0),r<256&&Gs[r]!==0?c.content=n:c.content=a,c.markup=a,c.info="escape"),e.pos=i+1,!0},Kh=function(e,o){var r,s,a,n,c,i,l,d,f=e.pos,h=e.src.charCodeAt(f);if(h!==96)return!1;for(r=f,f++,s=e.posMax;f<s&&e.src.charCodeAt(f)===96;)f++;if(a=e.src.slice(r,f),l=a.length,e.backticksScanned&&(e.backticks[l]||0)<=r)return o||(e.pending+=a),e.pos+=l,!0;for(c=i=f;(c=e.src.indexOf("`",i))!==-1;){for(i=c+1;i<s&&e.src.charCodeAt(i)===96;)i++;if(d=i-c,d===l)return o||(n=e.push("code_inline","code",0),n.markup=a,n.content=e.src.slice(f,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=i,!0;e.backticks[d]=c}return e.backticksScanned=!0,o||(e.pending+=a),e.pos+=l,!0},yr={};yr.tokenize=function(e,o){var r,s,a,n,c,i=e.pos,l=e.src.charCodeAt(i);if(o||l!==126||(s=e.scanDelims(e.pos,!0),n=s.length,c=String.fromCharCode(l),n<2))return!1;for(n%2&&(a=e.push("text","",0),a.content=c,n--),r=0;r<n;r+=2)a=e.push("text","",0),a.content=c+c,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function Nc(t,e){var o,r,s,a,n,c=[],i=e.length;for(o=0;o<i;o++)s=e[o],s.marker===126&&s.end!==-1&&(a=e[s.end],n=t.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&c.push(a.token-1));for(;c.length;){for(o=c.pop(),r=o+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,o!==r&&(n=t.tokens[r],t.tokens[r]=t.tokens[o],t.tokens[o]=n)}}yr.postProcess=function(e){var o,r=e.tokens_meta,s=e.tokens_meta.length;for(Nc(e,e.delimiters),o=0;o<s;o++)r[o]&&r[o].delimiters&&Nc(e,r[o].delimiters)};var wr={};wr.tokenize=function(e,o){var r,s,a,n=e.pos,c=e.src.charCodeAt(n);if(o||c!==95&&c!==42)return!1;for(s=e.scanDelims(e.pos,c===42),r=0;r<s.length;r++)a=e.push("text","",0),a.content=String.fromCharCode(c),e.delimiters.push({marker:c,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function Vc(t,e){var o,r,s,a,n,c,i=e.length;for(o=i-1;o>=0;o--)r=e[o],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(s=e[r.end],c=o>0&&e[o-1].end===r.end+1&&e[o-1].marker===r.marker&&e[o-1].token===r.token-1&&e[r.end+1].token===s.token+1,n=String.fromCharCode(r.marker),a=t.tokens[r.token],a.type=c?"strong_open":"em_open",a.tag=c?"strong":"em",a.nesting=1,a.markup=c?n+n:n,a.content="",a=t.tokens[s.token],a.type=c?"strong_close":"em_close",a.tag=c?"strong":"em",a.nesting=-1,a.markup=c?n+n:n,a.content="",c&&(t.tokens[e[o-1].token].content="",t.tokens[e[r.end+1].token].content="",o--))}wr.postProcess=function(e){var o,r=e.tokens_meta,s=e.tokens_meta.length;for(Vc(e,e.delimiters),o=0;o<s;o++)r[o]&&r[o].delimiters&&Vc(e,r[o].delimiters)};var Yh=O.normalizeReference,Zs=O.isSpace,Jh=function(e,o){var r,s,a,n,c,i,l,d,f,h="",u="",g=e.pos,m=e.posMax,w=e.pos,y=!0;if(e.src.charCodeAt(e.pos)!==91||(c=e.pos+1,n=e.md.helpers.parseLinkLabel(e,e.pos,!0),n<0))return!1;if(i=n+1,i<m&&e.src.charCodeAt(i)===40){for(y=!1,i++;i<m&&(s=e.src.charCodeAt(i),!(!Zs(s)&&s!==10));i++);if(i>=m)return!1;if(w=i,l=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),l.ok){for(h=e.md.normalizeLink(l.str),e.md.validateLink(h)?i=l.pos:h="",w=i;i<m&&(s=e.src.charCodeAt(i),!(!Zs(s)&&s!==10));i++);if(l=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<m&&w!==i&&l.ok)for(u=l.str,i=l.pos;i<m&&(s=e.src.charCodeAt(i),!(!Zs(s)&&s!==10));i++);}(i>=m||e.src.charCodeAt(i)!==41)&&(y=!0),i++}if(y){if(typeof e.env.references>"u")return!1;if(i<m&&e.src.charCodeAt(i)===91?(w=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?a=e.src.slice(w,i++):i=n+1):i=n+1,a||(a=e.src.slice(c,n)),d=e.env.references[Yh(a)],!d)return e.pos=g,!1;h=d.href,u=d.title}return o||(e.pos=c,e.posMax=n,f=e.push("link_open","a",1),f.attrs=r=[["href",h]],u&&r.push(["title",u]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=i,e.posMax=m,!0},Qh=O.normalizeReference,Ws=O.isSpace,Xh=function(e,o){var r,s,a,n,c,i,l,d,f,h,u,g,m,w="",y=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(i=e.pos+2,c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),c<0))return!1;if(l=c+1,l<v&&e.src.charCodeAt(l)===40){for(l++;l<v&&(s=e.src.charCodeAt(l),!(!Ws(s)&&s!==10));l++);if(l>=v)return!1;for(m=l,f=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),f.ok&&(w=e.md.normalizeLink(f.str),e.md.validateLink(w)?l=f.pos:w=""),m=l;l<v&&(s=e.src.charCodeAt(l),!(!Ws(s)&&s!==10));l++);if(f=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&m!==l&&f.ok)for(h=f.str,l=f.pos;l<v&&(s=e.src.charCodeAt(l),!(!Ws(s)&&s!==10));l++);else h="";if(l>=v||e.src.charCodeAt(l)!==41)return e.pos=y,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<v&&e.src.charCodeAt(l)===91?(m=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?n=e.src.slice(m,l++):l=c+1):l=c+1,n||(n=e.src.slice(i,c)),d=e.env.references[Qh(n)],!d)return e.pos=y,!1;w=d.href,h=d.title}return o||(a=e.src.slice(i,c),e.md.inline.parse(a,e.md,e.env,g=[]),u=e.push("image","img",0),u.attrs=r=[["src",w],["alt",""]],u.children=g,u.content=a,h&&r.push(["title",h])),e.pos=l,e.posMax=v,!0},e0=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,t0=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,o0=function(e,o){var r,s,a,n,c,i,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(c=e.pos,i=e.posMax;;){if(++l>=i||(n=e.src.charCodeAt(l),n===60))return!1;if(n===62)break}return r=e.src.slice(c+1,l),t0.test(r)?(s=e.md.normalizeLink(r),e.md.validateLink(s)?(o||(a=e.push("link_open","a",1),a.attrs=[["href",s]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(r),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=r.length+2,!0):!1):e0.test(r)?(s=e.md.normalizeLink("mailto:"+r),e.md.validateLink(s)?(o||(a=e.push("link_open","a",1),a.attrs=[["href",s]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(r),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=r.length+2,!0):!1):!1},r0=pr.HTML_TAG_RE;function s0(t){return/^<a[>\s]/i.test(t)}function a0(t){return/^<\/a\s*>/i.test(t)}function n0(t){var e=t|32;return e>=97&&e<=122}var c0=function(e,o){var r,s,a,n,c=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(c)!==60||c+2>=a)||(r=e.src.charCodeAt(c+1),r!==33&&r!==63&&r!==47&&!n0(r))||(s=e.src.slice(c).match(r0),!s)?!1:(o||(n=e.push("html_inline","",0),n.content=e.src.slice(c,c+s[0].length),s0(n.content)&&e.linkLevel++,a0(n.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},Hc=cc,i0=O.has,l0=O.isValidEntityCode,Uc=O.fromCodePoint,d0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,f0=/^&([a-z][a-z0-9]{1,31});/i,u0=function(e,o){var r,s,a,n,c=e.pos,i=e.posMax;if(e.src.charCodeAt(c)!==38||c+1>=i)return!1;if(r=e.src.charCodeAt(c+1),r===35){if(a=e.src.slice(c).match(d0),a)return o||(s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),n=e.push("text_special","",0),n.content=l0(s)?Uc(s):Uc(65533),n.markup=a[0],n.info="entity"),e.pos+=a[0].length,!0}else if(a=e.src.slice(c).match(f0),a&&i0(Hc,a[1]))return o||(n=e.push("text_special","",0),n.content=Hc[a[1]],n.markup=a[0],n.info="entity"),e.pos+=a[0].length,!0;return!1};function jc(t,e){var o,r,s,a,n,c,i,l,d={},f=e.length;if(f){var h=0,u=-2,g=[];for(o=0;o<f;o++)if(s=e[o],g.push(0),(e[h].marker!==s.marker||u!==s.token-1)&&(h=o),u=s.token,s.length=s.length||0,!!s.close){for(d.hasOwnProperty(s.marker)||(d[s.marker]=[-1,-1,-1,-1,-1,-1]),n=d[s.marker][(s.open?3:0)+s.length%3],r=h-g[h]-1,c=r;r>n;r-=g[r]+1)if(a=e[r],a.marker===s.marker&&a.open&&a.end<0&&(i=!1,(a.close||s.open)&&(a.length+s.length)%3===0&&(a.length%3!==0||s.length%3!==0)&&(i=!0),!i)){l=r>0&&!e[r-1].open?g[r-1]+1:0,g[o]=o-r+l,g[r]=l,s.open=!1,a.end=o,a.close=!1,c=-1,u=-2;break}c!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}}var h0=function(e){var o,r=e.tokens_meta,s=e.tokens_meta.length;for(jc(e,e.delimiters),o=0;o<s;o++)r[o]&&r[o].delimiters&&jc(e,r[o].delimiters)},b0=function(e){var o,r,s=0,a=e.tokens,n=e.tokens.length;for(o=r=0;o<n;o++)a[o].nesting<0&&s--,a[o].level=s,a[o].nesting>0&&s++,a[o].type==="text"&&o+1<n&&a[o+1].type==="text"?a[o+1].content=a[o].content+a[o+1].content:(o!==r&&(a[r]=a[o]),r++);o!==r&&(a.length=r)},Ks=Ns,Gc=O.isWhiteSpace,Zc=O.isPunctChar,Wc=O.isMdAsciiPunct;function qo(t,e,o,r){this.src=t,this.env=o,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}qo.prototype.pushPending=function(){var t=new Ks("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},qo.prototype.push=function(t,e,o){this.pending&&this.pushPending();var r=new Ks(t,e,o),s=null;return o<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,o>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(s),r},qo.prototype.scanDelims=function(t,e){var o=t,r,s,a,n,c,i,l,d,f,h=!0,u=!0,g=this.posMax,m=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;o<g&&this.src.charCodeAt(o)===m;)o++;return a=o-t,s=o<g?this.src.charCodeAt(o):32,l=Wc(r)||Zc(String.fromCharCode(r)),f=Wc(s)||Zc(String.fromCharCode(s)),i=Gc(r),d=Gc(s),d?h=!1:f&&(i||l||(h=!1)),i?u=!1:l&&(d||f||(u=!1)),e?(n=h,c=u):(n=h&&(!u||l),c=u&&(!h||f)),{can_open:n,can_close:c,length:a}},qo.prototype.Token=Ks;var p0=qo,Kc=Os,Ys=[["text",Vh],["linkify",Uh],["newline",Gh],["escape",Wh],["backticks",Kh],["strikethrough",yr.tokenize],["emphasis",wr.tokenize],["link",Jh],["image",Xh],["autolink",o0],["html_inline",c0],["entity",u0]],Js=[["balance_pairs",h0],["strikethrough",yr.postProcess],["emphasis",wr.postProcess],["fragments_join",b0]];function Do(){var t;for(this.ruler=new Kc,t=0;t<Ys.length;t++)this.ruler.push(Ys[t][0],Ys[t][1]);for(this.ruler2=new Kc,t=0;t<Js.length;t++)this.ruler2.push(Js[t][0],Js[t][1])}Do.prototype.skipToken=function(t){var e,o,r=t.pos,s=this.ruler.getRules(""),a=s.length,n=t.md.options.maxNesting,c=t.cache;if(typeof c[r]<"u"){t.pos=c[r];return}if(t.level<n)for(o=0;o<a&&(t.level++,e=s[o](t,!0),t.level--,!e);o++);else t.pos=t.posMax;e||t.pos++,c[r]=t.pos},Do.prototype.tokenize=function(t){for(var e,o,r=this.ruler.getRules(""),s=r.length,a=t.posMax,n=t.md.options.maxNesting;t.pos<a;){if(t.level<n)for(o=0;o<s&&(e=r[o](t,!1),!e);o++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Do.prototype.parse=function(t,e,o,r){var s,a,n,c=new this.State(t,e,o,r);for(this.tokenize(c),a=this.ruler2.getRules(""),n=a.length,s=0;s<n;s++)a[s](c)},Do.prototype.State=p0;var g0=Do,Qs,Yc;function m0(){return Yc||(Yc=1,Qs=function(t){var e={};t=t||{},e.src_Any=gc().source,e.src_Cc=vc().source,e.src_Z=_c().source,e.src_P=Ps.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var o="[><|]";return e.src_pseudo_letter="(?:(?!"+o+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+o+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Qs}function Xs(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(o){o&&Object.keys(o).forEach(function(r){t[r]=o[r]})}),t}function _r(t){return Object.prototype.toString.call(t)}function v0(t){return _r(t)==="[object String]"}function y0(t){return _r(t)==="[object Object]"}function w0(t){return _r(t)==="[object RegExp]"}function Jc(t){return _r(t)==="[object Function]"}function _0(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Qc={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function x0(t){return Object.keys(t||{}).reduce(function(e,o){return e||Qc.hasOwnProperty(o)},!1)}var k0={"http:":{validate:function(t,e,o){var r=t.slice(e);return o.re.http||(o.re.http=new RegExp("^\\/\\/"+o.re.src_auth+o.re.src_host_port_strict+o.re.src_path,"i")),o.re.http.test(r)?r.match(o.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,o){var r=t.slice(e);return o.re.no_http||(o.re.no_http=new RegExp("^"+o.re.src_auth+"(?:localhost|(?:(?:"+o.re.src_domain+")\\.)+"+o.re.src_domain_root+")"+o.re.src_port+o.re.src_host_terminator+o.re.src_path,"i")),o.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(o.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,o){var r=t.slice(e);return o.re.mailto||(o.re.mailto=new RegExp("^"+o.re.src_email_name+"@"+o.re.src_host_strict,"i")),o.re.mailto.test(r)?r.match(o.re.mailto)[0].length:0}}},A0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",C0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function $0(t){t.__index__=-1,t.__text_cache__=""}function E0(t){return function(e,o){var r=e.slice(o);return t.test(r)?r.match(t)[0].length:0}}function Xc(){return function(t,e){e.normalize(t)}}function xr(t){var e=t.re=m0()(t.__opts__),o=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||o.push(A0),o.push(e.src_xn),e.src_tlds=o.join("|");function r(c){return c.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var s=[];t.__compiled__={};function a(c,i){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+i)}Object.keys(t.__schemas__).forEach(function(c){var i=t.__schemas__[c];if(i!==null){var l={validate:null,link:null};if(t.__compiled__[c]=l,y0(i)){w0(i.validate)?l.validate=E0(i.validate):Jc(i.validate)?l.validate=i.validate:a(c,i),Jc(i.normalize)?l.normalize=i.normalize:i.normalize?a(c,i):l.normalize=Xc();return}if(v0(i)){s.push(c);return}a(c,i)}}),s.forEach(function(c){t.__compiled__[t.__schemas__[c]]&&(t.__compiled__[c].validate=t.__compiled__[t.__schemas__[c]].validate,t.__compiled__[c].normalize=t.__compiled__[t.__schemas__[c]].normalize)}),t.__compiled__[""]={validate:null,normalize:Xc()};var n=Object.keys(t.__compiled__).filter(function(c){return c.length>0&&t.__compiled__[c]}).map(_0).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+n+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+n+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),$0(t)}function S0(t,e){var o=t.__index__,r=t.__last_index__,s=t.__text_cache__.slice(o,r);this.schema=t.__schema__.toLowerCase(),this.index=o+e,this.lastIndex=r+e,this.raw=s,this.text=s,this.url=s}function ea(t,e){var o=new S0(t,e);return t.__compiled__[o.schema].normalize(o,t),o}function pe(t,e){if(!(this instanceof pe))return new pe(t,e);e||x0(t)&&(e=t,t={}),this.__opts__=Xs({},Qc,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Xs({},k0,t),this.__compiled__={},this.__tlds__=C0,this.__tlds_replaced__=!1,this.re={},xr(this)}pe.prototype.add=function(e,o){return this.__schemas__[e]=o,xr(this),this},pe.prototype.set=function(e){return this.__opts__=Xs(this.__opts__,e),this},pe.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var o,r,s,a,n,c,i,l,d;if(this.re.schema_test.test(e)){for(i=this.re.schema_search,i.lastIndex=0;(o=i.exec(e))!==null;)if(a=this.testSchemaAt(e,o[2],i.lastIndex),a){this.__schema__=o[2],this.__index__=o.index+o[1].length,this.__last_index__=o.index+o[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(n=r.index+r[1].length,(this.__index__<0||n<this.__index__)&&(this.__schema__="",this.__index__=n,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(s=e.match(this.re.email_fuzzy))!==null&&(n=s.index+s[1].length,c=s.index+s[0].length,(this.__index__<0||n<this.__index__||n===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=n,this.__last_index__=c))),this.__index__>=0},pe.prototype.pretest=function(e){return this.re.pretest.test(e)},pe.prototype.testSchemaAt=function(e,o,r){return this.__compiled__[o.toLowerCase()]?this.__compiled__[o.toLowerCase()].validate(e,r,this):0},pe.prototype.match=function(e){var o=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(ea(this,o)),o=this.__last_index__);for(var s=o?e.slice(o):e;this.test(s);)r.push(ea(this,o)),s=s.slice(this.__last_index__),o+=this.__last_index__;return r.length?r:null},pe.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var o=this.re.schema_at_start.exec(e);if(!o)return null;var r=this.testSchemaAt(e,o[2],o[0].length);return r?(this.__schema__=o[2],this.__index__=o.index+o[1].length,this.__last_index__=o.index+o[0].length+r,ea(this,0)):null},pe.prototype.tlds=function(e,o){return e=Array.isArray(e)?e:[e],o?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,s,a){return r!==a[s-1]}).reverse(),xr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,xr(this),this)},pe.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},pe.prototype.onCompile=function(){};var q0=pe;const jt=2147483647,Me=36,ta=1,To=26,D0=38,T0=700,ei=72,ti=128,oi="-",L0=/^xn--/,z0=/[^\0-\x7F]/,R0=/[\x2E\u3002\uFF0E\uFF61]/g,P0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},oa=Me-ta,Ie=Math.floor,ra=String.fromCharCode;function at(t){throw new RangeError(P0[t])}function M0(t,e){const o=[];let r=t.length;for(;r--;)o[r]=e(t[r]);return o}function ri(t,e){const o=t.split("@");let r="";o.length>1&&(r=o[0]+"@",t=o[1]),t=t.replace(R0,".");const s=t.split("."),a=M0(s,e).join(".");return r+a}function sa(t){const e=[];let o=0;const r=t.length;for(;o<r;){const s=t.charCodeAt(o++);if(s>=55296&&s<=56319&&o<r){const a=t.charCodeAt(o++);(a&64512)==56320?e.push(((s&1023)<<10)+(a&1023)+65536):(e.push(s),o--)}else e.push(s)}return e}const si=t=>String.fromCodePoint(...t),I0=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Me},ai=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},ni=function(t,e,o){let r=0;for(t=o?Ie(t/T0):t>>1,t+=Ie(t/e);t>oa*To>>1;r+=Me)t=Ie(t/oa);return Ie(r+(oa+1)*t/(t+D0))},aa=function(t){const e=[],o=t.length;let r=0,s=ti,a=ei,n=t.lastIndexOf(oi);n<0&&(n=0);for(let c=0;c<n;++c)t.charCodeAt(c)>=128&&at("not-basic"),e.push(t.charCodeAt(c));for(let c=n>0?n+1:0;c<o;){const i=r;for(let d=1,f=Me;;f+=Me){c>=o&&at("invalid-input");const h=I0(t.charCodeAt(c++));h>=Me&&at("invalid-input"),h>Ie((jt-r)/d)&&at("overflow"),r+=h*d;const u=f<=a?ta:f>=a+To?To:f-a;if(h<u)break;const g=Me-u;d>Ie(jt/g)&&at("overflow"),d*=g}const l=e.length+1;a=ni(r-i,l,i==0),Ie(r/l)>jt-s&&at("overflow"),s+=Ie(r/l),r%=l,e.splice(r++,0,s)}return String.fromCodePoint(...e)},na=function(t){const e=[];t=sa(t);const o=t.length;let r=ti,s=0,a=ei;for(const i of t)i<128&&e.push(ra(i));const n=e.length;let c=n;for(n&&e.push(oi);c<o;){let i=jt;for(const d of t)d>=r&&d<i&&(i=d);const l=c+1;i-r>Ie((jt-s)/l)&&at("overflow"),s+=(i-r)*l,r=i;for(const d of t)if(d<r&&++s>jt&&at("overflow"),d===r){let f=s;for(let h=Me;;h+=Me){const u=h<=a?ta:h>=a+To?To:h-a;if(f<u)break;const g=f-u,m=Me-u;e.push(ra(ai(u+g%m,0))),f=Ie(g/m)}e.push(ra(ai(f,0))),a=ni(s,l,c===n),s=0,++c}++s,++r}return e.join("")},ci=function(t){return ri(t,function(e){return L0.test(e)?aa(e.slice(4).toLowerCase()):e})},ii=function(t){return ri(t,function(e){return z0.test(e)?"xn--"+na(e):e})},F0=_l(Object.freeze(Object.defineProperty({__proto__:null,decode:aa,default:{version:"2.1.0",ucs2:{decode:sa,encode:si},decode:aa,encode:na,toASCII:ii,toUnicode:ci},encode:na,toASCII:ii,toUnicode:ci,ucs2decode:sa,ucs2encode:si},Symbol.toStringTag,{value:"Module"})));var B0={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},O0={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},N0={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Lo=O,V0=ur,H0=Fu,U0=ih,j0=Oh,G0=g0,Z0=q0,Et=Nt,li=F0,W0={default:B0,zero:O0,commonmark:N0},K0=/^(vbscript|javascript|file|data):/,Y0=/^data:image\/(gif|png|jpeg|webp);/;function J0(t){var e=t.trim().toLowerCase();return K0.test(e)?!!Y0.test(e):!0}var di=["http:","https:","mailto:"];function Q0(t){var e=Et.parse(t,!0);if(e.hostname&&(!e.protocol||di.indexOf(e.protocol)>=0))try{e.hostname=li.toASCII(e.hostname)}catch{}return Et.encode(Et.format(e))}function X0(t){var e=Et.parse(t,!0);if(e.hostname&&(!e.protocol||di.indexOf(e.protocol)>=0))try{e.hostname=li.toUnicode(e.hostname)}catch{}return Et.decode(Et.format(e),Et.decode.defaultChars+"%")}function ve(t,e){if(!(this instanceof ve))return new ve(t,e);e||Lo.isString(t)||(e=t||{},t="default"),this.inline=new G0,this.block=new j0,this.core=new U0,this.renderer=new H0,this.linkify=new Z0,this.validateLink=J0,this.normalizeLink=Q0,this.normalizeLinkText=X0,this.utils=Lo,this.helpers=Lo.assign({},V0),this.options={},this.configure(t),e&&this.set(e)}ve.prototype.set=function(t){return Lo.assign(this.options,t),this},ve.prototype.configure=function(t){var e=this,o;if(Lo.isString(t)&&(o=t,t=W0[o],!t))throw new Error('Wrong `markdown-it` preset "'+o+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},ve.prototype.enable=function(t,e){var o=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(s){o=o.concat(this[s].ruler.enable(t,!0))},this),o=o.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(s){return o.indexOf(s)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},ve.prototype.disable=function(t,e){var o=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(s){o=o.concat(this[s].ruler.disable(t,!0))},this),o=o.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(s){return o.indexOf(s)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},ve.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},ve.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var o=new this.core.State(t,this,e);return this.core.process(o),o.tokens},ve.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},ve.prototype.parseInline=function(t,e){var o=new this.core.State(t,this,e);return o.inlineMode=!0,this.core.process(o),o.tokens},ve.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var eb=ve,tb=eb;const ob=Xr(tb);function rb(t,e){var o,r,s=t.attrs[t.attrIndex("href")][1];for(o=0;o<e.length;++o){if(r=e[o],typeof r.matcher=="function"){if(r.matcher(s,r))return r;continue}return r}}function sb(t,e,o){Object.keys(o).forEach(function(r){var s,a=o[r];r==="className"&&(r="class"),s=e[t].attrIndex(r),s<0?e[t].attrPush([r,a]):e[t].attrs[s][1]=a})}function fi(t,e){e?e=Array.isArray(e)?e:[e]:e=[],Object.freeze(e);var o=t.renderer.rules.link_open||this.defaultRender;t.renderer.rules.link_open=function(r,s,a,n,c){var i=rb(r[s],e),l=i&&i.attrs;return l&&sb(s,r,l),o(r,s,a,n,c)}}fi.defaultRender=function(t,e,o,r,s){return s.renderToken(t,e,o)};var ab=fi;const nb=Xr(ab);function cb(){const t=new ob({linkify:!0});return t.use(nb,{attrs:{target:"_blank",rel:"noopener"}}),t}async function ui(t){const e=cb();return A`${yt(e.render(t))}`}var ib=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,kr=(t,e,o,r)=>{for(var s=r>1?void 0:r?lb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&ib(e,o,s),s};let Gt=class extends ce{constructor(){super(...arguments),this.type="assistant"}disconnectedCallback(){super.disconnectedCallback(),this._removeCopyEvents()}updated(t){super.updated(t),t.has("message")&&requestIdleCallback(()=>{this._addCopyEvents()})}get _isBot(){return this.message.author==="assistant"||this.message.author==="system"}_removeMessageHandler(){this.emit("message:remove",{detail:this.message})}_addCopyEvents(){this.copyBtns.forEach(t=>{t.addEventListener("click",()=>{var o,r;const e=(r=(o=t.parentElement)==null?void 0:o.nextElementSibling)==null?void 0:r.textContent;e&&Fl(e).then(()=>{t.textContent="Success",setTimeout(()=>{t.textContent="Copy"},500)})})})}_removeCopyEvents(){this.copyBtns.forEach(t=>{t.removeEventListener("click",()=>{})})}render(){return Ot(this.message.data||this.message.isThinking,()=>A`
4879
4879
  <div class="cb-message-row" part="cb-message-row">
4880
4880
  <!-- message -->
4881
- ${Oe(this._isBot,()=>this.renderBotMessage(this.message),()=>this.renderUserMessage(this.message))}
4881
+ ${Ot(this._isBot,()=>this.renderBotMessage(this.message),()=>this.renderUserMessage(this.message))}
4882
4882
  </div>
4883
- `,()=>null)}renderButtons(e="left"){return A`<div class="cb-message__buttons ${e}">
4883
+ `,()=>null)}renderButtons(t="left"){return A`<div class="cb-message__buttons ${t}">
4884
4884
  <!-- delete button -->
4885
4885
  <sl-button class="cb-message__delete-button" name="trash" @click=${this._removeMessageHandler} circle variant="text" size="small">
4886
- <cb-icon svg="${ch}" style="font-size: 1em !important;"></cb-icon>
4886
+ <cb-icon svg="${fu}" style="font-size: 1em !important;"></cb-icon>
4887
4887
  </sl-button>
4888
- </div>`}renderMessage(e){return A`
4888
+ </div>`}renderMessage(t){return A`
4889
4889
  <div
4890
4890
  class="cb-message__content
4891
- ${e.author}-message
4892
- message-type-${e.type}
4893
- ${e.isThinking?"thinking":""}"
4891
+ ${t.author}-message
4892
+ message-type-${t.type}
4893
+ ${t.isThinking?"thinking":""}"
4894
4894
  style="display: flex"
4895
4895
  >
4896
- ${this.renderMessageContent(e)}
4896
+ ${this.renderMessageContent(t)}
4897
4897
  </div>
4898
- `}async _getMessageText(e){return hl(e.data.text)}renderMessageContent(e){var t;return e.isThinking?A`<cb-thinking></cb-thinking>`:e.isUploading?A`<cb-uploading .files="${e.data.files||[]}"></cb-uploading>`:e.type==="text"?A`<div class="cb-message-text">
4899
- ${Oe(e.data.userName,()=>A`<div style="font-size: 12px; color:#9ca3af">${e.data.userName}</div>`,()=>null)}
4900
- ${sa(this._getMessageText(e).then(o=>A`${o}`))}
4901
- </div>`:e.type==="file"?A`${Ts(e.data.files||[],o=>o.id,o=>A`<cb-file filename="${o.name}" url="${o.url}"></cb-file>`)}`:A`<div class="cb-message-text">
4902
- ${sa(hl(((t=e.data.text)==null?void 0:t.toString())||"").then(o=>A`${o}`))}
4903
- </div>`}renderBotMessageAvatar(e){if(e.data.userName&&e.data.userName!==""){const t=e.data.userAvatar||"";return A` <img src="${t}" style="width: 24px;height: 24px;" /> `}return e.author==="system"?Zr`${Le(R.setting.systemIconSvg)}`:Zr`${Le(R.setting.botIconSvg)}`}renderBotMessage(e){return A`
4898
+ `}async _getMessageText(t){return ui(t.data.text)}renderMessageContent(t){var e;return t.isThinking?A`<cb-thinking></cb-thinking>`:t.isUploading?A`<cb-uploading .files="${t.data.files||[]}"></cb-uploading>`:t.type==="text"?A`<div class="cb-message-text">
4899
+ ${Ot(t.data.userName,()=>A`<div style="font-size: 12px; color:#9ca3af">${t.data.userName}</div>`,()=>null)}
4900
+ ${sc(this._getMessageText(t).then(o=>A`${o}`))}
4901
+ </div>`:t.type==="file"?A`${Ts(t.data.files||[],o=>o.id,o=>A`<cb-file filename="${o.name}" url="${o.url}"></cb-file>`)}`:A`<div class="cb-message-text">
4902
+ ${sc(ui(((e=t.data.text)==null?void 0:e.toString())||"").then(o=>A`${o}`))}
4903
+ </div>`}renderBotMessageAvatar(t){if(t.data.userName&&t.data.userName!==""){const e=t.data.userAvatar||"";return A` <img src="${e}" style="width: 24px;height: 24px;" /> `}return t.author==="system"?Oo`${yt(R.setting.systemIconSvg)}`:Oo`${yt(R.setting.botIconSvg)}`}renderBotMessage(t){return A`
4904
4904
  <div class="cb-message cb-bot-message-wrapper" part="cb-message">
4905
- <div class="avatar assistant-avatar xsmall" style="margin-top:4px;">${this.renderBotMessageAvatar(e)}</div>
4906
- <div style="margin-left: 4px;width: 100%">${this.renderMessage(e)}</div>
4905
+ <div class="avatar assistant-avatar xsmall" style="margin-top:4px;">${this.renderBotMessageAvatar(t)}</div>
4906
+ <div style="margin-left: 4px;width: 100%">${this.renderMessage(t)}</div>
4907
4907
  </div>
4908
- `}renderUserMessage(e){return A`
4908
+ `}renderUserMessage(t){return A`
4909
4909
  <div class="cb-message" part="cb-message" style="display: flex; justify-content: end;align-items: start;">
4910
4910
  <!--<sl-avatar class="avatar user-avatar small" label="User">
4911
- <cb-icon slot="icon" svg="${uh}" color="white"></cb-icon>
4911
+ <cb-icon slot="icon" svg="${uu}" color="white"></cb-icon>
4912
4912
  </sl-avatar>-->
4913
- <div class="avatar user-avatar">${Le(R.setting.userIconSvg)}</div>
4914
- ${this.renderMessage(e)}
4913
+ <div class="avatar user-avatar">${yt(R.setting.userIconSvg)}</div>
4914
+ ${this.renderMessage(t)}
4915
4915
  </div>
4916
- `}};Ge.styles=hh,xr([g({type:Object})],Ge.prototype,"message",2),xr([g({type:String})],Ge.prototype,"type",2),xr([yc(".code-block-header__copy")],Ge.prototype,"copyBtns",2),Ge=xr([tt("cb-message")],Ge);var cg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,Ze=(e,t,o,r)=>{for(var s=r>1?void 0:r?ug(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&cg(t,o,s),s};const kr=No.noConflict();kr.setLevel("info");let ie=class extends at{constructor(){super(...arguments),this.messages=[],this.actions=[],this.calendlyInjected=!1,this.activeCalendlyAction=-1}render(){return A`
4916
+ `}};Gt.styles=bu,kr([p({type:Object})],Gt.prototype,"message",2),kr([p({type:String})],Gt.prototype,"type",2),kr([yl(".code-block-header__copy")],Gt.prototype,"copyBtns",2),Gt=kr([ee("cb-message")],Gt);var db=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,Zt=(t,e,o,r)=>{for(var s=r>1?void 0:r?fb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&db(e,o,s),s};const Ar=Vo.noConflict();Ar.setLevel("info");let nt=class extends ce{constructor(){super(...arguments),this.messages=[],this.actions=[],this.calendlyInjected=!1,this.activeCalendlyAction=-1}render(){return A`
4917
4917
  <div class="cb-message-list" part="cb-message-list">
4918
- ${Ts(this.messages,e=>e.id+JSON.stringify(e.data),e=>A`<cb-message .message="${e}"></cb-message>`)}
4918
+ ${Ts(this.messages,t=>t.id+JSON.stringify(t.data),t=>A`<cb-message .message="${t}"></cb-message>`)}
4919
4919
  ${this.renderActions()}
4920
4920
  <div id="cb-message-list-bottom-anchor"></div>
4921
4921
  </div>
4922
4922
  `}renderActions(){return!Array.isArray(this.actions)||this.actions.length<=0?null:A`
4923
4923
  <div class="cb-actions-list">
4924
- ${Ts(this.actions,e=>e,e=>this.renderAction(e))}
4924
+ ${Ts(this.actions,t=>t,t=>this.renderAction(t))}
4925
4925
  </div>
4926
- `}scrollToBottom(){this._messageListBottomAnchor.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}renderAction(e){switch(e.type){case"calendlyMeeting":return this.renderCalendlyAction(e);case"link":return this.renderLinkAction(e)}return null}handleCalendlyEvent(e){switch(kr.info("Got Calendly Event:",e.data),e.data.event){case"calendly.event_scheduled":{const t=this.activeCalendlyAction;t>=0&&(R.removeAction(t),R.addSystemMessage("Your meeting has been scheduled!"),this.activeCalendlyAction=-1)}}}invokeLinkAction(e={}){kr.info("invokeLinkAction:",e),window.open(e.url,"_blank")}invokeCalendlyAction(e={}){return kr.info("invokeCalendlyAction:",e),"Calendly"in window&&(this.activeCalendlyAction=e.internalId,window.Calendly.initPopupWidget({url:e.url})),!1}renderCalendlyAction(e){if(!("Calendly"in window)&&!this.calendlyInjected){let t=document.createElement("link");t.href="https://assets.calendly.com/assets/external/widget.css",t.rel="stylesheet",document.body.appendChild(t);let o=document.createElement("script");o.type="text/javascript",o.src="https://assets.calendly.com/assets/external/widget.js",document.body.appendChild(o),console.log("Injected Calendly"),window.addEventListener("message",r=>{r.origin==="https://calendly.com"&&r.data.event&&r.data.event.indexOf("calendly.")!==-1&&this.handleCalendlyEvent(r)}),this.calendlyInjected=!0}return A`
4926
+ `}scrollToBottom(){this._messageListBottomAnchor.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}renderAction(t){switch(t.type){case"calendlyMeeting":return this.renderCalendlyAction(t);case"link":return this.renderLinkAction(t)}return null}handleCalendlyEvent(t){switch(Ar.info("Got Calendly Event:",t.data),t.data.event){case"calendly.event_scheduled":{const e=this.activeCalendlyAction;e>=0&&(R.removeAction(e),R.addSystemMessage("Your meeting has been scheduled!"),this.activeCalendlyAction=-1)}}}invokeLinkAction(t={}){Ar.info("invokeLinkAction:",t),window.open(t.url,"_blank")}invokeCalendlyAction(t={}){return Ar.info("invokeCalendlyAction:",t),"Calendly"in window&&(this.activeCalendlyAction=t.internalId,window.Calendly.initPopupWidget({url:t.url})),!1}renderCalendlyAction(t){if(!("Calendly"in window)&&!this.calendlyInjected){let e=document.createElement("link");e.href="https://assets.calendly.com/assets/external/widget.css",e.rel="stylesheet",document.body.appendChild(e);let o=document.createElement("script");o.type="text/javascript",o.src="https://assets.calendly.com/assets/external/widget.js",document.body.appendChild(o),console.log("Injected Calendly"),window.addEventListener("message",r=>{r.origin==="https://calendly.com"&&r.data.event&&r.data.event.indexOf("calendly.")!==-1&&this.handleCalendlyEvent(r)}),this.calendlyInjected=!0}return A`
4927
4927
  <div class="cb-actions-list">
4928
- <div class="cb-action ripple" @click="${this.invokeCalendlyAction.bind(this,e)}">
4928
+ <div class="cb-action ripple" @click="${this.invokeCalendlyAction.bind(this,t)}">
4929
4929
  <div class="cb-action-icon">
4930
4930
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4931
4931
  <path
@@ -4934,22 +4934,22 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
4934
4934
  />
4935
4935
  </svg>
4936
4936
  </div>
4937
- ${e.title}
4937
+ ${t.title}
4938
4938
  </div>
4939
4939
  </div>
4940
- `}renderLinkAction(e){return A`
4940
+ `}renderLinkAction(t){return A`
4941
4941
  <div class="cb-actions-list">
4942
- <div class="cb-action ripple" @click="${this.invokeLinkAction.bind(this,e)}">
4942
+ <div class="cb-action ripple" @click="${this.invokeLinkAction.bind(this,t)}">
4943
4943
  <div class="cb-action-icon">
4944
4944
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
4945
4945
  <path d="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z" fill="currentColor" />
4946
4946
  </svg>
4947
4947
  </div>
4948
- ${e.title}
4948
+ ${t.title}
4949
4949
  </div>
4950
4950
  </div>
4951
- `}};ie.styles=Md,Ze([g({type:Array})],ie.prototype,"messages",2),Ze([g({type:Array})],ie.prototype,"actions",2),Ze([V("#cb-message-list-bottom-anchor")],ie.prototype,"_messageListBottomAnchor",2),Ze([ti({capture:!1,passive:!0})],ie.prototype,"invokeLinkAction",1),Ze([ti({capture:!1,passive:!0})],ie.prototype,"invokeCalendlyAction",1),ie=Ze([tt("cb-message-list")],ie);const dg=z`
4952
- ${Et}
4951
+ `}};nt.styles=Ff,Zt([p({type:Array})],nt.prototype,"messages",2),Zt([p({type:Array})],nt.prototype,"actions",2),Zt([V("#cb-message-list-bottom-anchor")],nt.prototype,"_messageListBottomAnchor",2),Zt([Xa({capture:!1,passive:!0})],nt.prototype,"invokeLinkAction",1),Zt([Xa({capture:!1,passive:!0})],nt.prototype,"invokeCalendlyAction",1),nt=Zt([ee("cb-message-list")],nt);const ub=z`
4952
+ ${Ee}
4953
4953
 
4954
4954
  :host {
4955
4955
  width: 100%;
@@ -4991,7 +4991,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
4991
4991
  .cb-input-buttons {
4992
4992
  padding: 0 5px;
4993
4993
  }
4994
- `,hg='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576L6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76l7.494-7.493Z"/></svg>',pg='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0V3z"/></svg>';var fg=Object.defineProperty,gg=Object.getOwnPropertyDescriptor,jt=(e,t,o,r)=>{for(var s=r>1?void 0:r?gg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&fg(t,o,s),s};let $t=class extends at{constructor(){super(...arguments),this.placeholder="Type a message...",this.sendButtonLabel="Send",this.enableFileUpload=!1,this.value="",this.loading=!1,this.disabled=!1,this.currentKey=""}_inputChangeHandler(e){const t=e.target;this.value=t.value}_sendHandler(){this.emit("message:send",{detail:{timestamp:Date.now(),author:"user",type:"text",data:{text:this.value}}}),this.value="",this.inputElement.blur(),requestIdleCallback(()=>{this.inputElement.focus()})}async _sendFileHandler(){const e=await Bc();this.emit("message:send:file",{detail:{files:e}})}render(){return A`
4994
+ `,hb='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576L6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76l7.494-7.493Z"/></svg>',bb='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0V3z"/></svg>';var pb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,je=(t,e,o,r)=>{for(var s=r>1?void 0:r?gb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&pb(e,o,s),s};let $e=class extends ce{constructor(){super(...arguments),this.placeholder="Type a message...",this.sendButtonLabel="Send",this.enableFileUpload=!1,this.value="",this.loading=!1,this.disabled=!1,this.currentKey=""}_inputChangeHandler(t){const e=t.target;this.value=e.value}_sendHandler(){this.emit("message:send",{detail:{timestamp:Date.now(),author:"user",type:"text",data:{text:this.value}}}),this.value="",this.inputElement.blur(),requestIdleCallback(()=>{this.inputElement.focus()})}async _sendFileHandler(){const t=await Bl();this.emit("message:send:file",{detail:{files:t}})}render(){return A`
4995
4995
  <div class="cb-user-input-wrapper" part="user-input-wrapper">
4996
4996
  <sl-textarea
4997
4997
  @sl-input=${this._inputChangeHandler}
@@ -5008,9 +5008,9 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5008
5008
  ></sl-textarea>
5009
5009
 
5010
5010
  <span class="cb-input-buttons">
5011
- ${Oe(this.enableFileUpload,()=>A`
5011
+ ${Ot(this.enableFileUpload,()=>A`
5012
5012
  <sl-button @click=${this._sendFileHandler} name="paperclip" label="Attachment" size="large" class="paperclip-button" variant="text" circle>
5013
- <cb-icon svg="${pg}"></cb-icon>
5013
+ <cb-icon svg="${bb}"></cb-icon>
5014
5014
  <!-- select file input -->
5015
5015
  <input type="file" id="file" name="file" class="file-input" />
5016
5016
  </sl-button>
@@ -5026,12 +5026,12 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5026
5026
  ?loading=${this.loading}
5027
5027
  circle
5028
5028
  >
5029
- <cb-icon svg="${hg}"></cb-icon>
5029
+ <cb-icon svg="${hb}"></cb-icon>
5030
5030
  </sl-button>
5031
5031
  </span>
5032
5032
  </div>
5033
- `}_keyDownHandler(e){e.key==="Enter"&&!e.shiftKey&&this._sendHandler()}};$t.styles=dg,jt([g({type:String,attribute:"placeholder"})],$t.prototype,"placeholder",2),jt([g({type:String,attribute:"send-button-label"})],$t.prototype,"sendButtonLabel",2),jt([g({type:Boolean,attribute:"enable-file-upload"})],$t.prototype,"enableFileUpload",2),jt([g({type:String})],$t.prototype,"value",2),jt([g({type:Boolean})],$t.prototype,"loading",2),jt([g({type:Boolean})],$t.prototype,"disabled",2),jt([g({type:String})],$t.prototype,"currentKey",2),jt([V("sl-textarea")],$t.prototype,"inputElement",2),$t=jt([tt("cb-user-input")],$t);const bg=z`
5034
- ${Et}
5033
+ `}_keyDownHandler(t){t.key==="Enter"&&!t.shiftKey&&this._sendHandler()}};$e.styles=ub,je([p({type:String,attribute:"placeholder"})],$e.prototype,"placeholder",2),je([p({type:String,attribute:"send-button-label"})],$e.prototype,"sendButtonLabel",2),je([p({type:Boolean,attribute:"enable-file-upload"})],$e.prototype,"enableFileUpload",2),je([p({type:String})],$e.prototype,"value",2),je([p({type:Boolean})],$e.prototype,"loading",2),je([p({type:Boolean})],$e.prototype,"disabled",2),je([p({type:String})],$e.prototype,"currentKey",2),je([V("sl-textarea")],$e.prototype,"inputElement",2),$e=je([ee("cb-user-input")],$e);const mb=z`
5034
+ ${Ee}
5035
5035
 
5036
5036
  sl-dialog::part(base) {
5037
5037
  z-index: 1000;
@@ -5064,7 +5064,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5064
5064
  justify-content: flex-end;
5065
5065
  gap: 8px;
5066
5066
  }
5067
- `;var mg=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,Ar=(e,t,o,r)=>{for(var s=r>1?void 0:r?vg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&mg(t,o,s),s};let We=class extends at{constructor(){super(...arguments),this.open=!1,this.label="Dialog",this.zindex=100}_settingCancelHandler(){this.emit("cancel")}render(){return A` <sl-dialog
5067
+ `;var vb=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,Cr=(t,e,o,r)=>{for(var s=r>1?void 0:r?yb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&vb(e,o,s),s};let Wt=class extends ce{constructor(){super(...arguments),this.open=!1,this.label="Dialog",this.zindex=100}_settingCancelHandler(){this.emit("cancel")}render(){return A` <sl-dialog
5068
5068
  label="Setting"
5069
5069
  class="cb-dialog"
5070
5070
  style="sl-dialog::part(base) { z-index: ${this.zindex}; }"
@@ -5087,7 +5087,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5087
5087
  <cb-icon
5088
5088
  color="default"
5089
5089
  style="font-size: 1em;"
5090
- svg="${sr}"
5090
+ svg="${ar}"
5091
5091
  ></cb-icon>
5092
5092
  </sl-button>
5093
5093
  </header>
@@ -5097,7 +5097,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5097
5097
  <div part="footer" class="cb-dialog__footer">
5098
5098
  <slot name="cb-footer"></slot>
5099
5099
  </div>
5100
- </sl-dialog>`}};We.styles=bg,Ar([g({type:Boolean})],We.prototype,"open",2),Ar([g({type:String,attribute:"label"})],We.prototype,"label",2),Ar([g({type:Number})],We.prototype,"zindex",2),We=Ar([tt("cb-dialog")],We);var yg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,pl=(e,t,o,r)=>{for(var s=r>1?void 0:r?wg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&yg(t,o,s),s};let Cr=class extends at{constructor(){super(...arguments),this.open=!1}render(){return A` <cb-dialog
5100
+ </sl-dialog>`}};Wt.styles=mb,Cr([p({type:Boolean})],Wt.prototype,"open",2),Cr([p({type:String,attribute:"label"})],Wt.prototype,"label",2),Cr([p({type:Number})],Wt.prototype,"zindex",2),Wt=Cr([ee("cb-dialog")],Wt);var wb=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,hi=(t,e,o,r)=>{for(var s=r>1?void 0:r?_b(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&wb(e,o,s),s};let $r=class extends ce{constructor(){super(...arguments),this.open=!1}render(){return A` <cb-dialog
5101
5101
  label="Confirm"
5102
5102
  class="cb-clear-message-dialog"
5103
5103
  ?open=${this.open}
@@ -5117,14 +5117,14 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5117
5117
  @click=${this._cancelHandler}
5118
5118
  >Close</sl-button
5119
5119
  >
5120
- </cb-dialog>`}_confirmHandler(){this.emit("confirm")}_cancelHandler(){this.emit("cancel")}};Cr.styles=z`
5120
+ </cb-dialog>`}_confirmHandler(){this.emit("confirm")}_cancelHandler(){this.emit("cancel")}};$r.styles=z`
5121
5121
  .cb-clear-message-dialog {
5122
5122
  }
5123
5123
 
5124
5124
  sl-dialog::part(base) {
5125
5125
  z-index: 1000;
5126
5126
  }
5127
- `,pl([g({type:Boolean})],Cr.prototype,"open",2),Cr=pl([tt("cb-clear-message-dialog")],Cr);const _g=z`
5127
+ `,hi([p({type:Boolean})],$r.prototype,"open",2),$r=hi([ee("cb-clear-message-dialog")],$r);const xb=z`
5128
5128
  :host {
5129
5129
  // width: 380px;
5130
5130
 
@@ -5183,7 +5183,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5183
5183
  .setting-input::part(form-control-help-text) {
5184
5184
  grid-column-start: 2;
5185
5185
  }
5186
- `;var xg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Ke=(e,t,o,r)=>{for(var s=r>1?void 0:r?kg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&xg(t,o,s),s};let ae=class extends at{constructor(){super(...arguments),this.open=!1,this.clearMessageDialogOpen=!1,this.customRequest=!1}render(){return this.customRequest=this.setting.customRequest,A`
5186
+ `;var kb=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Kt=(t,e,o,r)=>{for(var s=r>1?void 0:r?Ab(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&kb(e,o,s),s};let ct=class extends ce{constructor(){super(...arguments),this.open=!1,this.clearMessageDialogOpen=!1,this.customRequest=!1}render(){return this.customRequest=this.setting.customRequest,A`
5187
5187
  <cb-dialog
5188
5188
  label="Setting"
5189
5189
  class="cb-dialog"
@@ -5215,7 +5215,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5215
5215
  Enable it for your own backend.
5216
5216
  </sl-switch>
5217
5217
  </div> -->
5218
- ${Oe(this.customRequest,()=>null,()=>this.renderInternalServices())}
5218
+ ${Ot(this.customRequest,()=>null,()=>this.renderInternalServices())}
5219
5219
 
5220
5220
  <div class="form-item">
5221
5221
  <label class="label">Streaming</label>
@@ -5295,8 +5295,8 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5295
5295
  @sl-change=${this._inputChangeHandler}
5296
5296
  ></sl-input>
5297
5297
  </div>
5298
- `}_clearCacheHandler(){this.emit("message:clear"),this.clearMessageDialogOpen=!1}_inputChangeHandler(e){const{name:t,value:o}=e.target,[r,s]=t.split(".");s?this.setting[r][s]=o:this.setting[r]=o}_checkChangeHandler(e){const{name:t,checked:o}=e.target,[r,s]=t.split(".");s?this.setting[r][s]=o:this.setting[r]=o,r==="customRequest"&&(this.customRequest=o)}_settingConfirmHandler(){this.emit("setting:confirm",{detail:{setting:this.setting}})}_settingCancelHandler(){this.emit("setting:hide")}updated(e){var t;super.updated(e),(t=this.dialog)==null||t.addEventListener("sl-request-close",o=>{o.detail.source==="overlay"&&o.preventDefault()})}};ae.styles=_g,Ke([g({type:Boolean})],ae.prototype,"open",2),Ke([g({type:Object})],ae.prototype,"setting",2),Ke([g({type:Boolean})],ae.prototype,"clearMessageDialogOpen",2),Ke([V("sl-dialog")],ae.prototype,"dialog",2),Ke([g({type:Boolean})],ae.prototype,"customRequest",2),ae=Ke([tt("cb-setting")],ae),U.define("sl-popup");const Ag=z`
5299
- ${Et}
5298
+ `}_clearCacheHandler(){this.emit("message:clear"),this.clearMessageDialogOpen=!1}_inputChangeHandler(t){const{name:e,value:o}=t.target,[r,s]=e.split(".");s?this.setting[r][s]=o:this.setting[r]=o}_checkChangeHandler(t){const{name:e,checked:o}=t.target,[r,s]=e.split(".");s?this.setting[r][s]=o:this.setting[r]=o,r==="customRequest"&&(this.customRequest=o)}_settingConfirmHandler(){this.emit("setting:confirm",{detail:{setting:this.setting}})}_settingCancelHandler(){this.emit("setting:hide")}updated(t){var e;super.updated(t),(e=this.dialog)==null||e.addEventListener("sl-request-close",o=>{o.detail.source==="overlay"&&o.preventDefault()})}};ct.styles=xb,Kt([p({type:Boolean})],ct.prototype,"open",2),Kt([p({type:Object})],ct.prototype,"setting",2),Kt([p({type:Boolean})],ct.prototype,"clearMessageDialogOpen",2),Kt([V("sl-dialog")],ct.prototype,"dialog",2),Kt([p({type:Boolean})],ct.prototype,"customRequest",2),ct=Kt([ee("cb-setting")],ct),U.define("sl-popup");const Cb=z`
5299
+ ${Ee}
5300
5300
  :host {
5301
5301
  --primary-color: var(--sl-color-primary-600);
5302
5302
 
@@ -5343,7 +5343,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5343
5343
  min-width: 250px;
5344
5344
  min-height: 100px;
5345
5345
  color: var(--enegelai-bot-popup-color, rgb(0, 0, 0));
5346
- padding: 10px;
5346
+ padding: 10px 20px 10px 10px;
5347
5347
  background: var(--enegelai-bot-popup-background, var(--sl-color-gray-50));
5348
5348
  //border: 1px solid;
5349
5349
  //border-color: var(--sl-color-gray-100);
@@ -5352,6 +5352,7 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5352
5352
  -webkit-font-smoothing: subpixel-antialiased;
5353
5353
  font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
5354
5354
  //font-size: 0.9rem;
5355
+ line-height: 1.4;
5355
5356
  font-style: normal;
5356
5357
  letter-spacing: normal;
5357
5358
  font-stretch: normal;
@@ -5367,6 +5368,10 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5367
5368
  --arrow-color: var(--sl-color-gray-500);
5368
5369
  }
5369
5370
 
5371
+ .cb-engage-popup-logo {
5372
+ color: var(--enegelai-bot-popup-logo-color, rgb(0, 208, 117));
5373
+ }
5374
+
5370
5375
  .cb-engage-popup-close {
5371
5376
  position: absolute;
5372
5377
  top: 0;
@@ -5382,24 +5387,25 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5382
5387
  align-items: start;
5383
5388
  gap: 10px;
5384
5389
  }
5385
- `,Cg='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M16 8c0 3.866-3.582 7-8 7a9.06 9.06 0 0 1-2.347-.306c-.584.296-1.925.864-4.181 1.234c-.2.032-.352-.176-.273-.362c.354-.836.674-1.95.77-2.966C.744 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7zM5 8a1 1 0 1 0-2 0a1 1 0 0 0 2 0zm4 0a1 1 0 1 0-2 0a1 1 0 0 0 2 0zm3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2z"/></svg>';var $g=Object.defineProperty,Eg=Object.getOwnPropertyDescriptor,fl=(e,t,o,r)=>{for(var s=r>1?void 0:r?Eg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&$g(t,o,s),s};let $r=class extends at{constructor(){super(...arguments),this.store=new pn(this,R),this.open=!1}_clickHandler(){const e=!this.open;this.emit("chatbot:toggle",{detail:{open:e}}),this.open=e}_engageClickHandler(e){console.log("engage close clicked!"),R.engage=!1,e.stopPropagation()}render(){return A`
5390
+ `,$b='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><path fill="currentColor" d="M16 8c0 3.866-3.582 7-8 7a9.06 9.06 0 0 1-2.347-.306c-.584.296-1.925.864-4.181 1.234c-.2.032-.352-.176-.273-.362c.354-.836.674-1.95.77-2.966C.744 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7zM5 8a1 1 0 1 0-2 0a1 1 0 0 0 2 0zm4 0a1 1 0 1 0-2 0a1 1 0 0 0 2 0zm3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2z"/></svg>';var Eb=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,bi=(t,e,o,r)=>{for(var s=r>1?void 0:r?Sb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Eb(e,o,s),s};let Er=class extends ce{constructor(){super(...arguments),this.store=new ua(this,R),this.open=!1}_clickHandler(){const t=!this.open;this.emit("chatbot:toggle",{detail:{open:t}}),this.open=t}_engageClickHandler(t){console.log("engage close clicked!"),R.engage=!1,t.stopPropagation()}render(){return A`
5386
5391
  <div class="cb-anchor ${this.open?"open":""}" part="cb-anchor" @click=${this._clickHandler.bind(this)}>
5387
5392
  <sl-popup placement="top-end" distance="16" ?active="${R.engage&&!R.open}">
5388
5393
  <sl-button slot="anchor" label="Start" size="large" variant="primary" class="icon anchor-button" circle>
5389
- ${Oe(this.open,()=>A`<cb-icon color="white" svg="${sr}"></cb-icon>`,()=>A`<cb-icon color="white" svg="${Cg}"></cb-icon>`)}
5394
+ ${Ot(this.open,()=>A`<cb-icon color="white" svg="${ar}"></cb-icon>`,()=>A`<cb-icon color="white" svg="${$b}"></cb-icon>`)}
5390
5395
  </sl-button>
5391
5396
  <div class="cb-engage-popup">
5392
- <div class="cb-engage-popup-close" @click=${this._engageClickHandler.bind(this)}>${Zr`${Le(sr)}`}</div>
5397
+ <div class="cb-engage-popup-close" @click=${this._engageClickHandler.bind(this)}>${Oo`${yt(ar)}`}</div>
5393
5398
  <div class="cb-engage-popup-content">
5394
- <cb-icon svg="${R.setting.logoSvg}"></cb-icon>
5399
+ <div class="cb-engage-popup-logo">${Oo`${yt(R.setting.logoSvg)}`}</div>
5400
+ <!--<cb-icon class="cb-engage-popup-logo" svg="${R.setting.logoSvg}"></cb-icon>-->
5395
5401
  <div>${R.setting.engageMessage}</div>
5396
5402
  </div>
5397
5403
  </div>
5398
5404
  </sl-popup>
5399
5405
  </div>
5400
- `}};$r.styles=Ag,fl([g({type:Boolean})],$r.prototype,"open",2),$r=fl([tt("cb-anchor")],$r);const Sg=z`
5401
- ${Et}
5402
- `,ln='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1L1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1H5.1z"/><path d="M7.002 11a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"/></g></svg>',gl='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016a.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06a.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017a.163.163 0 0 1-.054-.06a.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/><path d="M7.002 12a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/></g></svg>',bl='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764a.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0a5.5 5.5 0 1 1-11 0z"/><path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293L5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z"/></g></svg>',ml='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/><path d="m8.93 6.588l-2.29.287l-.082.38l.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319c.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246c-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0z"/></g></svg>';var qg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,vl=(e,t,o,r)=>{for(var s=r>1?void 0:r?Dg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&qg(t,o,s),s};const yl={error:{variant:"danger",icon:ln},danger:{variant:"danger",icon:ln},warning:{variant:"warning",icon:gl},success:{variant:"success",icon:bl},info:{variant:"primary",icon:ml}};let Er=class extends at{constructor(){super(...arguments),this.status="info"}render(){const{variant:e,icon:t}=yl[this.status]||yl.info;return A`<cb-icon svg=${t} color="${e}"></cb-icon>`}};Er.styles=bi,vl([g({type:String})],Er.prototype,"status",2),Er=vl([tt("cb-status-icon")],Er);var Tg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,zg=(e,t,o,r)=>{for(var s=r>1?void 0:r?Lg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Tg(t,o,s),s};let cn=class extends at{render(){return A` <sl-alert variant="danger" open>
5406
+ `}};Er.styles=Cb,bi([p({type:Boolean})],Er.prototype,"open",2),Er=bi([ee("cb-anchor")],Er);const qb=z`
5407
+ ${Ee}
5408
+ `,ca='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1L1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1H5.1z"/><path d="M7.002 11a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"/></g></svg>',pi='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016a.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06a.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017a.163.163 0 0 1-.054-.06a.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/><path d="M7.002 12a1 1 0 1 1 2 0a1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/></g></svg>',gi='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764a.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0a5.5 5.5 0 1 1-11 0z"/><path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293L5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z"/></g></svg>',mi='<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="currentColor"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/><path d="m8.93 6.588l-2.29.287l-.082.38l.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319c.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246c-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0z"/></g></svg>';var Db=Object.defineProperty,Tb=Object.getOwnPropertyDescriptor,vi=(t,e,o,r)=>{for(var s=r>1?void 0:r?Tb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Db(e,o,s),s};const yi={error:{variant:"danger",icon:ca},danger:{variant:"danger",icon:ca},warning:{variant:"warning",icon:pi},success:{variant:"success",icon:gi},info:{variant:"primary",icon:mi}};let Sr=class extends ce{constructor(){super(...arguments),this.status="info"}render(){const{variant:t,icon:e}=yi[this.status]||yi.info;return A`<cb-icon svg=${e} color="${t}"></cb-icon>`}};Sr.styles=gn,vi([p({type:String})],Sr.prototype,"status",2),Sr=vi([ee("cb-status-icon")],Sr);var Lb=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,Rb=(t,e,o,r)=>{for(var s=r>1?void 0:r?zb(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Lb(e,o,s),s};let ia=class extends ce{render(){return A` <sl-alert variant="danger" open>
5403
5409
  <cb-status-icon status="error" slot="icon"></cb-status-icon>
5404
5410
  Please config openai api key in the settings.
5405
5411
  <span
@@ -5407,22 +5413,22 @@ var tb=Object.defineProperty;var eb=(M,lt,ct)=>lt in M?tb(M,lt,{enumerable:!0,co
5407
5413
  class="color-primary text-button"
5408
5414
  >Config Now</span
5409
5415
  >
5410
- </sl-alert>`}_handleConfig(){this.emit("setting:show")}};cn.styles=Sg,cn=zg([tt("cb-auth-alert")],cn);class wl extends Error{constructor(t,o,r){const s=t.status||t.status===0?t.status:"",n=t.statusText||"",i=`${s} ${n}`.trim(),a=i?`status code ${i}`:"an unknown error";super(`Request failed with ${a}`),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="HTTPError",this.response=t,this.request=o,this.options=r}}class _l extends Error{constructor(t){super("Request timed out"),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.request=t}}const Sr=e=>e!==null&&typeof e=="object",qr=(...e)=>{for(const t of e)if((!Sr(t)||Array.isArray(t))&&typeof t<"u")throw new TypeError("The `options` argument must be an object");return un({},...e)},xl=(e={},t={})=>{const o=new globalThis.Headers(e),r=t instanceof globalThis.Headers,s=new globalThis.Headers(t);for(const[n,i]of s.entries())r&&i==="undefined"||i===void 0?o.delete(n):o.set(n,i);return o},un=(...e)=>{let t={},o={};for(const r of e)if(Array.isArray(r))Array.isArray(t)||(t=[]),t=[...t,...r];else if(Sr(r)){for(let[s,n]of Object.entries(r))Sr(n)&&s in t&&(n=un(t[s],n)),t={...t,[s]:n};Sr(r.headers)&&(o=xl(o,r.headers),t.headers=o)}return t},Rg=(()=>{let e=!1,t=!1;const o=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";return o&&r&&(t=new globalThis.Request("https://a.com",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")),e&&!t})(),Pg=typeof globalThis.AbortController=="function",Mg=typeof globalThis.ReadableStream=="function",Ig=typeof globalThis.FormData=="function",kl=["get","post","put","patch","head","delete"],Fg={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},dn=2147483647,Al=Symbol("stop"),Bg=e=>kl.includes(e)?e.toUpperCase():e,Og=["get","put","head","delete","options","trace"],Ng=[408,413,429,500,502,503,504],Cl=[413,429,503],$l={limit:2,methods:Og,statusCodes:Ng,afterStatusCodes:Cl,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY},Vg=(e={})=>{if(typeof e=="number")return{...$l,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...$l,...e,afterStatusCodes:Cl}};async function Hg(e,t,o){return new Promise((r,s)=>{const n=setTimeout(()=>{t&&t.abort(),s(new _l(e))},o.timeout);o.fetch(e).then(r).catch(s).then(()=>{clearTimeout(n)})})}const Ug=!!globalThis.DOMException;function El(e){if(Ug)return new DOMException((e==null?void 0:e.reason)??"The operation was aborted.","AbortError");const t=new Error((e==null?void 0:e.reason)??"The operation was aborted.");return t.name="AbortError",t}async function jg(e,{signal:t}){return new Promise((o,r)=>{if(t){if(t.aborted){r(El(t));return}t.addEventListener("abort",s,{once:!0})}function s(){r(El(t)),clearTimeout(n)}const n=setTimeout(()=>{t==null||t.removeEventListener("abort",s),o()},e)})}class Dr{static create(t,o){const r=new Dr(t,o),s=async()=>{if(r._options.timeout>dn)throw new RangeError(`The \`timeout\` option cannot be greater than ${dn}`);await Promise.resolve();let a=await r._fetch();for(const l of r._options.hooks.afterResponse){const c=await l(r.request,r._options,r._decorateResponse(a.clone()));c instanceof globalThis.Response&&(a=c)}if(r._decorateResponse(a),!a.ok&&r._options.throwHttpErrors){let l=new wl(a,r.request,r._options);for(const c of r._options.hooks.beforeError)l=await c(l);throw l}if(r._options.onDownloadProgress){if(typeof r._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Mg)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(a.clone(),r._options.onDownloadProgress)}return a},i=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(s):s();for(const[a,l]of Object.entries(Fg))i[a]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||l);const u=(await i).clone();if(a==="json"){if(u.status===204||(await u.clone().arrayBuffer()).byteLength===0)return"";if(o.parseJson)return o.parseJson(await u.text())}return u[a]()};return i}constructor(t,o={}){if(Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"abortController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_retryCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._input=t,this._options={credentials:this._input.credentials||"same-origin",...o,headers:xl(this._input.headers,o.headers),hooks:un({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:Bg(o.method??this._input.method),prefixUrl:String(o.prefixUrl||""),retry:Vg(o.retry),throwHttpErrors:o.throwHttpErrors!==!1,timeout:typeof o.timeout>"u"?1e4:o.timeout,fetch:o.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(Pg){if(this.abortController=new globalThis.AbortController,this._options.signal){const r=this._options.signal;this._options.signal.addEventListener("abort",()=>{this.abortController.abort(r.reason)})}this._options.signal=this.abortController.signal}if(Rg&&(this._options.duplex="half"),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const s="?"+(typeof this._options.searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),n=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,s);(Ig&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(n,{...this.request}),this._options)}this._options.json!==void 0&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",this._options.headers.get("content-type")??"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}_calculateRetryDelay(t){if(this._retryCount++,this._retryCount<this._options.retry.limit&&!(t instanceof _l)){if(t instanceof wl){if(!this._options.retry.statusCodes.includes(t.response.status))return 0;const r=t.response.headers.get("Retry-After");if(r&&this._options.retry.afterStatusCodes.includes(t.response.status)){let s=Number(r);return Number.isNaN(s)?s=Date.parse(r)-Date.now():s*=1e3,typeof this._options.retry.maxRetryAfter<"u"&&s>this._options.retry.maxRetryAfter?0:s}if(t.response.status===413)return 0}const o=.3;return Math.min(this._options.retry.backoffLimit,o*2**(this._retryCount-1)*1e3)}return 0}_decorateResponse(t){return this._options.parseJson&&(t.json=async()=>this._options.parseJson(await t.text())),t}async _retry(t){try{return await t()}catch(o){const r=Math.min(this._calculateRetryDelay(o),dn);if(r!==0&&this._retryCount>0){await jg(r,{signal:this._options.signal});for(const s of this._options.hooks.beforeRetry)if(await s({request:this.request,options:this._options,error:o,retryCount:this._retryCount})===Al)return;return this._retry(t)}throw o}}async _fetch(){for(const t of this._options.hooks.beforeRequest){const o=await t(this.request,this._options);if(o instanceof Request){this.request=o;break}if(o instanceof Response)return o}return this._options.timeout===!1?this._options.fetch(this.request.clone()):Hg(this.request.clone(),this.abortController,this._options)}_stream(t,o){const r=Number(t.headers.get("content-length"))||0;let s=0;return t.status===204?(o&&o({percent:1,totalBytes:r,transferredBytes:s},new Uint8Array),new globalThis.Response(null,{status:t.status,statusText:t.statusText,headers:t.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(n){const i=t.body.getReader();o&&o({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array);async function a(){const{done:l,value:c}=await i.read();if(l){n.close();return}if(o){s+=c.byteLength;const u=r===0?0:s/r;o({percent:u,transferredBytes:s,totalBytes:r},c)}n.enqueue(c),await a()}await a()}}),{status:t.status,statusText:t.statusText,headers:t.headers})}}/*! MIT License © Sindre Sorhus */const hn=e=>{const t=(o,r)=>Dr.create(o,qr(e,r));for(const o of kl)t[o]=(r,s)=>Dr.create(r,qr(e,s,{method:o}));return t.create=o=>hn(qr(o)),t.extend=o=>hn(qr(e,o)),t.stop=Al,t},Sl=hn().extend({hooks:{beforeRequest:[()=>{}]}});async function Gg(e,t){const{onmessage:o,onclose:r,...s}=t,n=async(i,a)=>{const{value:l,done:c}=await a.read();c?(i.close(),r==null||r()):(o==null||o(l),i.enqueue(l),n(i,a))};return s.body&&typeof s.body=="object"&&(s.body=JSON.stringify(s.body)),console.log("Fetching:",s),fetch(e,s).then(i=>{const a=i.body.getReader();return new ReadableStream({start(c){n(c,a)}})}).then(i=>new Response(i,{headers:{"Content-Type":"text/html"}}).text())}async function Zg(e,t){const o=new FormData;for(let s=0;s<t.length;s++)o.append("files",t[s]);const r=await Sl.post(e,{body:o});try{return await r.json()}catch(s){return{code:1,url:"",message:s.message}}}const ql={error:{variant:"danger",icon:ln},warning:{variant:"warning",icon:gl},success:{variant:"success",icon:bl},info:{variant:"primary",icon:ml}};function Wg(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Kg(e="info",t,o=1e8){const{variant:r,icon:s}=ql[e]||ql.info,n=Object.assign(document.createElement("sl-alert"),{variant:r,closable:!0,duration:o,innerHTML:`
5411
- <cb-status-icon slot="icon" status="${e}"></cb-status-icon>
5412
- ${Wg(t)}
5413
- `});return document.body.append(n),n.toast()}async function Yg(e,t){const o=e.getReader(),r=new TextDecoder("utf-8");let s=!1;for(;!s;){const{value:n,done:i}=await o.read();if(n){let a=r.decode(n);const l=a.lastIndexOf("data:"),c=a.lastIndexOf(`
5414
- `);if(l!==-1&&(a=a.slice(l+6)),c!==-1&&(a=a.slice(0,c)),a=a.trim(),a===`
5415
- `||a==="")continue;if(a==="[DONE]"){s=!0;continue}try{const u=JSON.parse(a);t(null,u)}catch(u){console.log("error",u),t(u,null)}}s=i}}async function Jg(e){var s;if(!e.apiKey)throw new Error("apiKey is required");const t=e.options??{};t.model||(t.model="gpt-3.5-turbo");const o=await Sl.post(e.url,{json:{messages:e.messages,...e.options??{}},headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.apiKey}`},timeout:1e3*60*10,signal:e.signal}),r=o.body;if(!r)throw new Error("No data");if((s=e.options)!=null&&s.stream){await Yg(r,e.onMessage);return}return o.json()}var Qg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,Y=(e,t,o,r)=>{for(var s=r>1?void 0:r?Xg(t,o):t,n=e.length-1,i;n>=0;n--)(i=e[n])&&(s=(r?i(t,o,s):i(s))||s);return r&&s&&Qg(t,o,s),s};const Tr=No.noConflict();Tr.setLevel("info"),M.default=class extends at{constructor(){super(...arguments),this.store=new pn(this,R),this.displayLicense=!1,this.name="ChatBot",this.orgId="",this.botId="",this.url="ws://localhost:3070",this.logoSvg=` <svg width="24" height="24" viewBox="0 0 40 40">
5416
+ </sl-alert>`}_handleConfig(){this.emit("setting:show")}};ia.styles=qb,ia=Rb([ee("cb-auth-alert")],ia);class wi extends Error{constructor(e,o,r){const s=e.status||e.status===0?e.status:"",a=e.statusText||"",n=`${s} ${a}`.trim(),c=n?`status code ${n}`:"an unknown error";super(`Request failed with ${c}`),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="HTTPError",this.response=e,this.request=o,this.options=r}}class _i extends Error{constructor(e){super("Request timed out"),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.request=e}}const qr=t=>t!==null&&typeof t=="object",Dr=(...t)=>{for(const e of t)if((!qr(e)||Array.isArray(e))&&typeof e<"u")throw new TypeError("The `options` argument must be an object");return la({},...t)},xi=(t={},e={})=>{const o=new globalThis.Headers(t),r=e instanceof globalThis.Headers,s=new globalThis.Headers(e);for(const[a,n]of s.entries())r&&n==="undefined"||n===void 0?o.delete(a):o.set(a,n);return o},la=(...t)=>{let e={},o={};for(const r of t)if(Array.isArray(r))Array.isArray(e)||(e=[]),e=[...e,...r];else if(qr(r)){for(let[s,a]of Object.entries(r))qr(a)&&s in e&&(a=la(e[s],a)),e={...e,[s]:a};qr(r.headers)&&(o=xi(o,r.headers),e.headers=o)}return e},Pb=(()=>{let t=!1,e=!1;const o=typeof globalThis.ReadableStream=="function",r=typeof globalThis.Request=="function";return o&&r&&(e=new globalThis.Request("https://a.com",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")),t&&!e})(),Mb=typeof globalThis.AbortController=="function",Ib=typeof globalThis.ReadableStream=="function",Fb=typeof globalThis.FormData=="function",ki=["get","post","put","patch","head","delete"],Bb={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},da=2147483647,Ai=Symbol("stop"),Ob=t=>ki.includes(t)?t.toUpperCase():t,Nb=["get","put","head","delete","options","trace"],Vb=[408,413,429,500,502,503,504],Ci=[413,429,503],$i={limit:2,methods:Nb,statusCodes:Vb,afterStatusCodes:Ci,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY},Hb=(t={})=>{if(typeof t=="number")return{...$i,limit:t};if(t.methods&&!Array.isArray(t.methods))throw new Error("retry.methods must be an array");if(t.statusCodes&&!Array.isArray(t.statusCodes))throw new Error("retry.statusCodes must be an array");return{...$i,...t,afterStatusCodes:Ci}};async function Ub(t,e,o){return new Promise((r,s)=>{const a=setTimeout(()=>{e&&e.abort(),s(new _i(t))},o.timeout);o.fetch(t).then(r).catch(s).then(()=>{clearTimeout(a)})})}const jb=!!globalThis.DOMException;function Ei(t){if(jb)return new DOMException((t==null?void 0:t.reason)??"The operation was aborted.","AbortError");const e=new Error((t==null?void 0:t.reason)??"The operation was aborted.");return e.name="AbortError",e}async function Gb(t,{signal:e}){return new Promise((o,r)=>{if(e){if(e.aborted){r(Ei(e));return}e.addEventListener("abort",s,{once:!0})}function s(){r(Ei(e)),clearTimeout(a)}const a=setTimeout(()=>{e==null||e.removeEventListener("abort",s),o()},t)})}class Tr{static create(e,o){const r=new Tr(e,o),s=async()=>{if(r._options.timeout>da)throw new RangeError(`The \`timeout\` option cannot be greater than ${da}`);await Promise.resolve();let c=await r._fetch();for(const i of r._options.hooks.afterResponse){const l=await i(r.request,r._options,r._decorateResponse(c.clone()));l instanceof globalThis.Response&&(c=l)}if(r._decorateResponse(c),!c.ok&&r._options.throwHttpErrors){let i=new wi(c,r.request,r._options);for(const l of r._options.hooks.beforeError)i=await l(i);throw i}if(r._options.onDownloadProgress){if(typeof r._options.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Ib)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(c.clone(),r._options.onDownloadProgress)}return c},n=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(s):s();for(const[c,i]of Object.entries(Bb))n[c]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||i);const d=(await n).clone();if(c==="json"){if(d.status===204||(await d.clone().arrayBuffer()).byteLength===0)return"";if(o.parseJson)return o.parseJson(await d.text())}return d[c]()};return n}constructor(e,o={}){if(Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"abortController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_retryCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._input=e,this._options={credentials:this._input.credentials||"same-origin",...o,headers:xi(this._input.headers,o.headers),hooks:la({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},o.hooks),method:Ob(o.method??this._input.method),prefixUrl:String(o.prefixUrl||""),retry:Hb(o.retry),throwHttpErrors:o.throwHttpErrors!==!1,timeout:typeof o.timeout>"u"?1e4:o.timeout,fetch:o.fetch??globalThis.fetch.bind(globalThis)},typeof this._input!="string"&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&typeof this._input=="string"){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(Mb){if(this.abortController=new globalThis.AbortController,this._options.signal){const r=this._options.signal;this._options.signal.addEventListener("abort",()=>{this.abortController.abort(r.reason)})}this._options.signal=this.abortController.signal}if(Pb&&(this._options.duplex="half"),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const s="?"+(typeof this._options.searchParams=="string"?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),a=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,s);(Fb&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(a,{...this.request}),this._options)}this._options.json!==void 0&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",this._options.headers.get("content-type")??"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount<this._options.retry.limit&&!(e instanceof _i)){if(e instanceof wi){if(!this._options.retry.statusCodes.includes(e.response.status))return 0;const r=e.response.headers.get("Retry-After");if(r&&this._options.retry.afterStatusCodes.includes(e.response.status)){let s=Number(r);return Number.isNaN(s)?s=Date.parse(r)-Date.now():s*=1e3,typeof this._options.retry.maxRetryAfter<"u"&&s>this._options.retry.maxRetryAfter?0:s}if(e.response.status===413)return 0}const o=.3;return Math.min(this._options.retry.backoffLimit,o*2**(this._retryCount-1)*1e3)}return 0}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(o){const r=Math.min(this._calculateRetryDelay(o),da);if(r!==0&&this._retryCount>0){await Gb(r,{signal:this._options.signal});for(const s of this._options.hooks.beforeRetry)if(await s({request:this.request,options:this._options,error:o,retryCount:this._retryCount})===Ai)return;return this._retry(e)}throw o}}async _fetch(){for(const e of this._options.hooks.beforeRequest){const o=await e(this.request,this._options);if(o instanceof Request){this.request=o;break}if(o instanceof Response)return o}return this._options.timeout===!1?this._options.fetch(this.request.clone()):Ub(this.request.clone(),this.abortController,this._options)}_stream(e,o){const r=Number(e.headers.get("content-length"))||0;let s=0;return e.status===204?(o&&o({percent:1,totalBytes:r,transferredBytes:s},new Uint8Array),new globalThis.Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(a){const n=e.body.getReader();o&&o({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array);async function c(){const{done:i,value:l}=await n.read();if(i){a.close();return}if(o){s+=l.byteLength;const d=r===0?0:s/r;o({percent:d,transferredBytes:s,totalBytes:r},l)}a.enqueue(l),await c()}await c()}}),{status:e.status,statusText:e.statusText,headers:e.headers})}}/*! MIT License © Sindre Sorhus */const fa=t=>{const e=(o,r)=>Tr.create(o,Dr(t,r));for(const o of ki)e[o]=(r,s)=>Tr.create(r,Dr(t,s,{method:o}));return e.create=o=>fa(Dr(o)),e.extend=o=>fa(Dr(t,o)),e.stop=Ai,e},Si=fa().extend({hooks:{beforeRequest:[()=>{}]}});async function Zb(t,e){const{onmessage:o,onclose:r,...s}=e,a=async(n,c)=>{const{value:i,done:l}=await c.read();l?(n.close(),r==null||r()):(o==null||o(i),n.enqueue(i),a(n,c))};return s.body&&typeof s.body=="object"&&(s.body=JSON.stringify(s.body)),console.log("Fetching:",s),fetch(t,s).then(n=>{const c=n.body.getReader();return new ReadableStream({start(l){a(l,c)}})}).then(n=>new Response(n,{headers:{"Content-Type":"text/html"}}).text())}async function Wb(t,e){const o=new FormData;for(let s=0;s<e.length;s++)o.append("files",e[s]);const r=await Si.post(t,{body:o});try{return await r.json()}catch(s){return{code:1,url:"",message:s.message}}}const qi={error:{variant:"danger",icon:ca},warning:{variant:"warning",icon:pi},success:{variant:"success",icon:gi},info:{variant:"primary",icon:mi}};function Kb(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Yb(t="info",e,o=1e8){const{variant:r,icon:s}=qi[t]||qi.info,a=Object.assign(document.createElement("sl-alert"),{variant:r,closable:!0,duration:o,innerHTML:`
5417
+ <cb-status-icon slot="icon" status="${t}"></cb-status-icon>
5418
+ ${Kb(e)}
5419
+ `});return document.body.append(a),a.toast()}async function Jb(t,e){const o=t.getReader(),r=new TextDecoder("utf-8");let s=!1;for(;!s;){const{value:a,done:n}=await o.read();if(a){let c=r.decode(a);const i=c.lastIndexOf("data:"),l=c.lastIndexOf(`
5420
+ `);if(i!==-1&&(c=c.slice(i+6)),l!==-1&&(c=c.slice(0,l)),c=c.trim(),c===`
5421
+ `||c==="")continue;if(c==="[DONE]"){s=!0;continue}try{const d=JSON.parse(c);e(null,d)}catch(d){console.log("error",d),e(d,null)}}s=n}}async function Qb(t){var s;if(!t.apiKey)throw new Error("apiKey is required");const e=t.options??{};e.model||(e.model="gpt-3.5-turbo");const o=await Si.post(t.url,{json:{messages:t.messages,...t.options??{}},headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.apiKey}`},timeout:1e3*60*10,signal:t.signal}),r=o.body;if(!r)throw new Error("No data");if((s=t.options)!=null&&s.stream){await Jb(r,t.onMessage);return}return o.json()}var Xb=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Y=(t,e,o,r)=>{for(var s=r>1?void 0:r?ep(e,o):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,o,s):n(s))||s);return r&&s&&Xb(e,o,s),s};const Lr=Vo.noConflict();Lr.setLevel("info"),M.default=class extends ce{constructor(){super(...arguments),this.store=new ua(this,R),this.displayLicense=!1,this.name="ChatBot",this.orgId="",this.botId="",this.url="ws://localhost:3070",this.logoSvg=` <svg width="24" height="24" viewBox="0 0 40 40">
5416
5422
  <path
5417
5423
  d="M34.728 0.275L2.245 15.267c-3.748 1.749 -2.498 7.246 1.499 7.246h13.743v13.743c0 3.998 5.497 5.248 7.246 1.499l14.992 -32.483c1.249 -2.999 -1.999 -6.248 -4.998 -4.998z"
5418
5424
  fill="#E24D42"
5419
5425
  ></path>
5420
5426
  </svg>
5421
- `,this.botIconSvg='<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z" /></svg>',this.userIconSvg='<svg fill="currentColor" viewBox="0 0 24 24" width="24" height="24"> <path d="M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4Z" /></svg>',this.systemIconSvg='<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg>',this.stream=!1,this.customRequest=!1,this.enableFileUpload=!1,this.uploadFileUrl="",this.open=!1,this.loading=!1,this.showSetting=!1,this.showAuthAlert=!1,this.fetchStream=Gg}decodeStreamData(t){return new TextDecoder().decode(t)}addMessage(){const t={author:"assistant",type:"text",isThinking:!0,data:{}};return R.addMessage(t),t}addTestMessage(){const t={author:"assistant",type:"text",isThinking:!1,data:{text:"Long text.The element may not be scrolled completely to the top or bottom depending on the layout of other elements.The element may not be scrolled completely to the top or bottom depending on the layout of other elements."}};return R.addMessage(t),t}render(){return A`
5427
+ `,this.botIconSvg='<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z" /></svg>',this.userIconSvg='<svg fill="currentColor" viewBox="0 0 24 24" width="24" height="24"> <path d="M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4Z" /></svg>',this.systemIconSvg='<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24"> <path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg>',this.stream=!1,this.customRequest=!1,this.enableFileUpload=!1,this.uploadFileUrl="",this.open=!1,this.loading=!1,this.showSetting=!1,this.showAuthAlert=!1,this.fetchStream=Zb}decodeStreamData(e){return new TextDecoder().decode(e)}addMessage(){const e={author:"assistant",type:"text",isThinking:!0,data:{}};return R.addMessage(e),e}addTestMessage(){const e={author:"assistant",type:"text",isThinking:!1,data:{text:"Long text.The element may not be scrolled completely to the top or bottom depending on the layout of other elements.The element may not be scrolled completely to the top or bottom depending on the layout of other elements."}};return R.addMessage(e),e}render(){return A`
5422
5428
  <div class="cb-wrapper" style="${R.open?"display:flex":"display:none"}">
5423
5429
  <cb-header title="${this.name}"></cb-header>
5424
5430
  <cb-message-list .messages=${R.messages} .actions=${R.actions}></cb-message-list>
5425
5431
  <cb-user-input ?loading=${this.loading} ?disabled=${this.loading||this.showAuthAlert} ?enable-file-upload=${this.enableFileUpload}></cb-user-input>
5426
5432
  </div>
5427
5433
  <cb-anchor ?open=${R.open}></cb-anchor>
5428
- `}connectedCallback(){super.connectedCallback(),Tr.info("connectedCallback"),addEventListener("setting:show",()=>{this.showSetting=!0}),addEventListener("message:send",this._addMessageHandler.bind(this)),addEventListener("message:remove",this._deleteMessageHandler.bind(this)),addEventListener("setting:confirm",this._settingConfirmHandler.bind(this)),addEventListener("setting:hide",()=>{this.showSetting=!1}),addEventListener("chatbot:toggle",t=>{const o=t.detail;R.open=o.open,R.engage=!1}),addEventListener("message:clear",()=>{R.clearMessages()}),addEventListener("message:send:file",this._sendFileHandler.bind(this)),addEventListener("setting:show",()=>{this.showSetting=!0})}updated(t){super.updated(t),Tr.info("updated,_changedProperties:",t),t.size>0&&(Tr.info("updated,_changedProperties:",t),this._initSetting()),setTimeout(()=>{this._scrollToBottom()},0)}_initSetting(){const t=R.setting;t.orgId=this.orgId,t.botId=this.botId,t.url=this.url,t.logoSvg=this.logoSvg,t.botIconSvg=this.botIconSvg,t.userIconSvg=this.userIconSvg,t.systemIconSvg=this.systemIconSvg,R.setSetting(t)}setLoading(t){this.loading=t}clearConversation(){R.clearConversation()}_checkAuth(){}async _sendToOpenai(t,o){let r="";const s=R.setting.openai.apiBase||"https://api.openai.com/v1",n=await Jg({url:`${s}/chat/completions`,apiKey:R.setting.openai.apiKey,messages:o,options:{stream:R.setting.stream,model:R.setting.openai.model},onMessage:(i,a)=>{var l;if(i){console.error(i);return}a&&((l=a.choices[0].delta)!=null&&l.content)&&requestIdleCallback(()=>{r+=a.choices[0].delta.content,R.updateMessage(t,r)})}});!R.setting.stream&&n&&R.updateMessage(t,n.choices[0].message.content)}async _sendHandler(t){this.setLoading(!0);const o={author:"assistant",type:"text",isThinking:!0,data:{}};if(R.addMessage(o),this.customRequest)await this.emit("chatbot:send",{detail:{newMessage:o,messages:t},bubbles:!0,composed:!0});else try{await this._sendToOpenai(o,t)}catch(r){Kg("error",r.message),console.error(r)}this.setLoading(!1)}_addMessageHandler(t){const o=t.detail;R.sendMessage(o)}_deleteMessageHandler(t){const o=t.detail;R.removeMessage(o.id)}async _sendFileHandler(t){const o=t.detail,s={author:"user",type:"file",isUploading:!0,data:{files:o.files.map((n,i)=>({id:`${n.name}-${i}`,name:n.name,size:n.size,type:n.type,url:""}))}};if(R.addMessage(s),this.uploadFileUrl){const n=await Zg(this.uploadFileUrl,o.files);n.code===0&&n.data&&(s.isUploading=!1,s.data={files:n.data},R.updateMessage(s))}this.emit("chatbot:file:send",{detail:{files:o.files,message:s}})}_settingConfirmHandler(t){const o=t.detail;R.setSetting(o.setting),this.showSetting=!1,this._checkAuth()}_scrollToBottom(t=!1){var o;console.log("Scrolling to bottom ..."),(o=this._messageList)==null||o.scrollToBottom()}},M.default.styles=kc,Y([g({type:Boolean,attribute:"display-license"})],M.default.prototype,"displayLicense",2),Y([g({type:String,attribute:"name"})],M.default.prototype,"name",2),Y([g({type:String,attribute:"org-id"})],M.default.prototype,"orgId",2),Y([g({type:String,attribute:"bot-id"})],M.default.prototype,"botId",2),Y([g({type:String,attribute:"url"})],M.default.prototype,"url",2),Y([g({type:String,attribute:"logo-svg"})],M.default.prototype,"logoSvg",2),Y([g({type:String,attribute:"bot-icon-svg"})],M.default.prototype,"botIconSvg",2),Y([g({type:String,attribute:"user-icon-svg"})],M.default.prototype,"userIconSvg",2),Y([g({type:String,attribute:"system-icon-svg"})],M.default.prototype,"systemIconSvg",2),Y([g({type:Boolean,attribute:"stream"})],M.default.prototype,"stream",2),Y([g({type:Boolean,attribute:"custom-request"})],M.default.prototype,"customRequest",2),Y([g({type:Boolean,attribute:"enable-file-upload"})],M.default.prototype,"enableFileUpload",2),Y([g({type:String,attribute:"upload-file-url"})],M.default.prototype,"uploadFileUrl",2),Y([g({type:Boolean,attribute:"open"})],M.default.prototype,"open",2),Y([g({type:Boolean})],M.default.prototype,"loading",2),Y([g({type:Boolean})],M.default.prototype,"showSetting",2),Y([g({type:Boolean})],M.default.prototype,"showAuthAlert",2),Y([V("cb-message-list")],M.default.prototype,"_messageList",2),M.default=Y([tt("enegelai-bot")],M.default),Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5434
+ `}connectedCallback(){super.connectedCallback(),Lr.info("connectedCallback"),addEventListener("setting:show",()=>{this.showSetting=!0}),addEventListener("message:send",this._addMessageHandler.bind(this)),addEventListener("message:remove",this._deleteMessageHandler.bind(this)),addEventListener("setting:confirm",this._settingConfirmHandler.bind(this)),addEventListener("setting:hide",()=>{this.showSetting=!1}),addEventListener("chatbot:toggle",e=>{const o=e.detail;R.open=o.open,R.engage=!1}),addEventListener("message:clear",()=>{R.clearMessages()}),addEventListener("message:send:file",this._sendFileHandler.bind(this)),addEventListener("setting:show",()=>{this.showSetting=!0})}updated(e){super.updated(e),Lr.info("updated,_changedProperties:",e),e.size>0&&(Lr.info("updated,_changedProperties:",e),this._initSetting()),setTimeout(()=>{this._scrollToBottom()},0)}_initSetting(){const e=R.setting;e.orgId=this.orgId,e.botId=this.botId,e.url=this.url,e.logoSvg=this.logoSvg,e.botIconSvg=this.botIconSvg,e.userIconSvg=this.userIconSvg,e.systemIconSvg=this.systemIconSvg,R.setSetting(e)}setLoading(e){this.loading=e}clearConversation(){R.clearConversation()}_checkAuth(){}async _sendToOpenai(e,o){let r="";const s=R.setting.openai.apiBase||"https://api.openai.com/v1",a=await Qb({url:`${s}/chat/completions`,apiKey:R.setting.openai.apiKey,messages:o,options:{stream:R.setting.stream,model:R.setting.openai.model},onMessage:(n,c)=>{var i;if(n){console.error(n);return}c&&((i=c.choices[0].delta)!=null&&i.content)&&requestIdleCallback(()=>{r+=c.choices[0].delta.content,R.updateMessage(e,r)})}});!R.setting.stream&&a&&R.updateMessage(e,a.choices[0].message.content)}async _sendHandler(e){this.setLoading(!0);const o={author:"assistant",type:"text",isThinking:!0,data:{}};if(R.addMessage(o),this.customRequest)await this.emit("chatbot:send",{detail:{newMessage:o,messages:e},bubbles:!0,composed:!0});else try{await this._sendToOpenai(o,e)}catch(r){Yb("error",r.message),console.error(r)}this.setLoading(!1)}_addMessageHandler(e){const o=e.detail;R.sendMessage(o)}_deleteMessageHandler(e){const o=e.detail;R.removeMessage(o.id)}async _sendFileHandler(e){const o=e.detail,s={author:"user",type:"file",isUploading:!0,data:{files:o.files.map((a,n)=>({id:`${a.name}-${n}`,name:a.name,size:a.size,type:a.type,url:""}))}};if(R.addMessage(s),this.uploadFileUrl){const a=await Wb(this.uploadFileUrl,o.files);a.code===0&&a.data&&(s.isUploading=!1,s.data={files:a.data},R.updateMessage(s))}this.emit("chatbot:file:send",{detail:{files:o.files,message:s}})}_settingConfirmHandler(e){const o=e.detail;R.setSetting(o.setting),this.showSetting=!1,this._checkAuth()}_scrollToBottom(e=!1){var o;console.log("Scrolling to bottom ..."),(o=this._messageList)==null||o.scrollToBottom()}},M.default.styles=kl,Y([p({type:Boolean,attribute:"display-license"})],M.default.prototype,"displayLicense",2),Y([p({type:String,attribute:"name"})],M.default.prototype,"name",2),Y([p({type:String,attribute:"org-id"})],M.default.prototype,"orgId",2),Y([p({type:String,attribute:"bot-id"})],M.default.prototype,"botId",2),Y([p({type:String,attribute:"url"})],M.default.prototype,"url",2),Y([p({type:String,attribute:"logo-svg"})],M.default.prototype,"logoSvg",2),Y([p({type:String,attribute:"bot-icon-svg"})],M.default.prototype,"botIconSvg",2),Y([p({type:String,attribute:"user-icon-svg"})],M.default.prototype,"userIconSvg",2),Y([p({type:String,attribute:"system-icon-svg"})],M.default.prototype,"systemIconSvg",2),Y([p({type:Boolean,attribute:"stream"})],M.default.prototype,"stream",2),Y([p({type:Boolean,attribute:"custom-request"})],M.default.prototype,"customRequest",2),Y([p({type:Boolean,attribute:"enable-file-upload"})],M.default.prototype,"enableFileUpload",2),Y([p({type:String,attribute:"upload-file-url"})],M.default.prototype,"uploadFileUrl",2),Y([p({type:Boolean,attribute:"open"})],M.default.prototype,"open",2),Y([p({type:Boolean})],M.default.prototype,"loading",2),Y([p({type:Boolean})],M.default.prototype,"showSetting",2),Y([p({type:Boolean})],M.default.prototype,"showAuthAlert",2),Y([V("cb-message-list")],M.default.prototype,"_messageList",2),M.default=Y([ee("enegelai-bot")],M.default),Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});